[03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:45]accept exits with 8 [03:21:45]New connection [03:21:45]New thread 3066699108 created [03:21:45]Thread 3066555748 joined [03:21:45]Waiting for new connection... [03:21:45] Sock 8.Parse request [03:21:45]Sock 8.Check first char [03:21:45]Sock 8.First char is OK [03:21:45]request: POST /json_proto HTTP/1.0 [03:21:45]Method: POST [03:21:45]URL: /json_proto [03:21:45]Method is POST - this is cgi request [03:21:45]url: /json_proto [03:21:45]query_string will be loaded in cgi processing [03:21:45]execute_cgi json_proto POST (null) [03:21:45]execute_cgi path=json_proto method=POST [03:21:45]POST find Content-Length [03:21:45]Host: 172.17.44.196:8080 [03:21:45]Content-Length: 749 [03:21:45]Content-Type: application/json [03:21:45] [03:21:45]POST finish read [03:21:45]Found Content-Length = 749 [03:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272718", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:45]execute_script... [03:21: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)272718", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:45]POST & json_proto [03:21:45]process_json_proto [03:21:45]json parsed OK: [03:21:45]protocol is kg_v1.0 [03:21:45]action value=close_receipt [03:21:45]process_action close_receipt [03:21:45]cmd_close_receipt [03:21:45]MH_GetDate [03:21:45]Write to MH i2c: F0 00 00 06 55 4A [03:21:45]Write i2c OK [03:21:45]MH_I2C_Read... [03:21:45]Read from MH i2c: F0 [03:21:45]MH_I2C_Read... [03:21:45]Read from MH i2c: F0 09 00 [03:21:45]MH_I2C_Read... [03:21:45]Read from MH i2c: F0 09 00 06 55 00 51 77 14 67 E7 19 F8 65 F3 [03:21:45]GetLastDocTimeStamp 1729393733 [03:21:45]current date 1729394513 [03:21:45]FM_GetShiftState [03:21:45]SAM_PROTO_GetShiftState [03:21:45]wFMCommunicate request_size=4 [03:21:45]MH_SAM_APDU [03:21:45]CAPDU: 80 13 01 00 [03:21:45]Write to MH i2c: E2 08 00 07 55 80 13 01 00 00 00 00 00 D9 [03:21:45]Write i2c OK [03:21:45]MH_I2C_Read... [03:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:45]Read from MH i2c: E2 [03:21:45]MH_I2C_Read... [03:21:45]Read from MH i2c: E2 0E 00 [03:21:45]MH_I2C_Read... [03:21:45]Read from MH i2c: E2 0E 00 07 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1E [03:21:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [03:21:45]wFMCommunicate OK [03:21:45]SAM_PROTO_GetShiftState done [03:21:45]FM_GetShiftState done [03:21:45]opened in 1729384303 [03:21:45]opened+sec_in_day 1729470703 [03:21:45]quantity*price = 15000 [03:21:45]sum+1 = 15001 [03:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 16 20.10.2024 03:21 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73690 ФПД: 83272872533164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T032153&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73690&fm=83272872533164&tin=02508201610067®Number=0000000000161154&sum=15000 0 [03:21:46]StoreToDocumentArchive [03:21:46]shift 170 fd 73690 [03:21:46]save to /storage/0170/doc_00073690 [03:21:46]save last doc name /storage/0170/doc_00073690 to /storage/kkm_last_doc_name [03:21:46]save OK [03:21:46]Clear old archive folders... [03:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=274 [03:21:46]tlvbuf is 010987B0 [03:21:46]SAM_PROTO_ClearQueue [03:21:46]wFMCommunicate request_size=4 [03:21:46]MH_SAM_APDU [03:21:46]CAPDU: 80 09 00 00 [03:21:46]Write to MH i2c: E2 08 00 14 55 80 09 00 00 00 00 00 00 DB [03:21:46]Write i2c OK [03:21:46]MH_I2C_Read... [03:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:21:46]Read from MH i2c: E2 [03:21:46]MH_I2C_Read... [03:21:46]Read from MH i2c: E2 03 00 [03:21:46]MH_I2C_Read... [03:21:46]Read from MH i2c: E2 03 00 14 55 00 90 00 DD [03:21:46]RAPDU: 90 00 [03:21:46]wFMCommunicate OK [03:21:46]SAM_PROTO_ClearQueue done [03:21:46]KKMCreateOFDPacket [03:21:46]OFDProtocolAddRootSTLVToBuf [03:21:46]FM_MakeSignedData [03:21:46]FM_MakeSignedData [03:21:46]SAM_PROTO_SignData [03:21:46]wFMCommunicate request_size=4 [03:21:46]MH_SAM_APDU [03:21:46]CAPDU: 80 0D 01 02 [03:21:46]Write to MH i2c: E2 08 00 15 55 80 0D 01 02 00 00 00 00 E3 [03:21:46]Write i2c OK [03:21:46]MH_I2C_Read... [03:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:21:47]Read from MH i2c: E2 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 03 00 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 03 00 15 55 00 90 00 DE [03:21:47]RAPDU: 90 00 [03:21:47]wFMCommunicate OK [03:21:47]wFMCommunicate request_size=255 [03:21:47]MH_SAM_APDU [03:21:47]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 34 35 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 4D 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 51 77 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [03:21:47]Write to MH i2c: E2 02 01 16 55 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 34 35 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 4D 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 51 77 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 76 [03:21:47]Write i2c OK [03:21:47]MH_I2C_Read... [03:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:47]Read from MH i2c: E2 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 03 00 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 03 00 16 55 00 90 00 DF [03:21:47]RAPDU: 90 00 [03:21:47]wFMCommunicate OK [03:21:47]wFMCommunicate request_size=33 [03:21:47]MH_SAM_APDU [03:21:47]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 1F 01 00 35 04 06 00 4B BC 79 FC 9C AC [03:21:47]Write to MH i2c: E2 24 00 17 55 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 1F 01 00 35 04 06 00 4B BC 79 FC 9C AC 00 00 2D [03:21:47]Write i2c OK [03:21:47]MH_I2C_Read... [03:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:47]Read from MH i2c: E2 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 03 00 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 03 00 17 55 00 90 00 E0 [03:21:47]RAPDU: 90 00 [03:21:47]wFMCommunicate OK [03:21:47]wFMCommunicate request_size=4 [03:21:47]MH_SAM_APDU [03:21:47]CAPDU: 80 0D 03 02 [03:21:47]Write to MH i2c: E2 08 00 18 55 80 0D 03 02 00 00 00 00 E8 [03:21:47]Write i2c OK [03:21:47]MH_I2C_Read... [03:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:21:47]Read from MH i2c: E2 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 0B 00 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 0B 00 18 55 00 D0 19 A7 A8 AA 5B FC A1 90 00 C3 [03:21:47]RAPDU: D0 19 A7 A8 AA 5B FC A1 90 00 [03:21:47]wFMCommunicate OK [03:21:47]SAM_PROTO_SignData done [03:21:47]FM_MakeSignedData done [03:21:47]CreateOFDProtocolMessage [03:21:47]wFMCommunicate request_size=4 [03:21:47]MH_SAM_APDU [03:21:47]CAPDU: 80 11 00 00 [03:21:47]Write to MH i2c: E2 08 00 19 55 80 11 00 00 00 00 00 00 E8 [03:21:47]Write i2c OK [03:21:47]MH_I2C_Read... [03:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:47]Read from MH i2c: E2 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 17 00 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: E2 17 00 19 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 35 [03:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:21:47]wFMCommunicate OK [03:21:47]CreateOFDProtocolMessage done [03:21:47]OFDSenderStorePacket 73690 [03:21:47]StoreOFDPacket docnum=73690 [03:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 96 96 1E 01 E2 45 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 34 35 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 4D 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 51 77 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 1F 01 00 35 04 06 00 4B BC 79 FC 9C AC D0 19 A7 A8 AA 5B FC A1 [03:21:47]CheckFolder [03:21:47]dirname=/storage/ofd_packets [03:21:47]CheckFolder done [03:21:47]ProducePacketName [03:21:47]name=ofd_packets/00073690 [03:21:47]NVStorageSaveData ofd_packets/00073690 [03:21:47]File name is /storage/ofd_packets/00073690 [03:21:47]Write 324 bytes [03:21:47]NVStorageSaveData done [03:21:47]OFDSenderStorePacket done [03:21:47]KKMCreateOFDPacket done [03:21:47]NVStorageSaveData kkm_last_timestamp [03:21:47]File name is /storage/kkm_last_timestamp [03:21:47]Write 4 bytes [03:21:47]NVStorageSaveData done [03:21:47]ExternCall_PrintAddStr [03:21:47]wPrintStart [03:21:47]Write to MH i2c: 01 00 00 1A 55 6F [03:21:47]Write i2c OK [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: 01 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: 01 07 00 [03:21:47]MH_I2C_Read... [03:21:47]Read from MH i2c: 01 07 00 1A 55 00 00 00 00 00 FF 0F 84 [03:21:47]RasterBufferAndPrint [03:21:47]line Счет N : (3)272718 [03:21:47]line ИНН: 02508201610067 [03:21:47]line Контрольно-Кассовый Чек [03:21:47]line ПРОДАЖА [03:21:47]line Товар: 4640030091645 [03:21:47]line Сигареты ESSE Exchange M [03:21:47]line 1.000 * 150.00 [03:21:47]line = 150.00 [03:21:47]line НДС 12% НСП 1% [03:21:47]line > о реализуемом товаре [03:21:47]line ИТОГО: 150.00 [03:21:47]line НСП 1% : 1.33 [03:21:47]line НДС 12% : 15.93 [03:21:47]line Наличными: 0.00 [03:21:47]line Безнал.: 150.00 [03:21:47]line Место: АЗС № 133 "Партнер Нефть" [03:21:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [03:21:47]line СНО: Общий режим [03:21:47]line Чек 16 20.10.2024 03:21 [03:21:47]line Смена: 170 ФФД: 1.0 [03:21:47]line ЗНМ: 0300000020 [03:21:47]line РНМ: 0000000000161154 [03:21:47]line Версия ККМ: v1.0 [03:21:47]line Платежная система: Mbank [03:21:47]line ФМ: 0000000000963323 [03:21:47]line ФД: 73690 [03:21:47]line ФПД: 83272872533164 [03:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T032153&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73690&fm=83272872533164&tin=02508201610067®Number=0000000000161154&sum=15000 [03:21:47]line 0 [03:21:47]OFD Sender: Processing packet 73690 [packets to send 15, broken 14] [03:21:47]ProducePacketName [03:21:47]name=ofd_packets/00073690 [03:21:47]OFD Sender: To server: pG, [03:21:47]CommunicateWithHost lk.salyk.kg:30040 [03:21:47]ConnectInit lk.salyk.kg [03:21:47]written 0, free lines is 4095 [03:21:47]Connected sock=10 [03:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 96 96 1E 01 E2 45 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 34 35 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 4D 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 51 77 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 1F 01 00 35 04 06 00 4B BC 79 FC 9C AC D0 19 A7 A8 AA 5B FC A1 [03:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF 4E 47 00 4F 78 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 39 36 33 33 32 33 10 04 04 00 DA 1F 01 00 F4 03 04 00 37 20 14 67 B6 04 01 00 00 A1 59 31 96 74 EE EC 6D [03:21:48]CommunicateWithHost err = 0 [03:21:48]CheckOFDResponse [03:21:48]1017 (14) - 77093643461234 [03:21:48]1041 (16) - 0000000000963323 [03:21:48]1040 (4) - 73690 [03:21:48]1012 (4) - 19.10.2024 21:10 [03:21:48]1206 (1) - 0 [03:21:48]OFD Sender: Remove packet 73690 [03:21:48]ProducePacketName [03:21:48]name=ofd_packets/00073690 [03:21:48]NVStorageDeleteData [03:21:48]Write to MH i2c: 01 00 00 42 55 97 [03:21:48]Write i2c OK [03:21:48]MH_I2C_Read... [03:21:48]Read from MH i2c: 01 [03:21:48]MH_I2C_Read... [03:21:48]Read from MH i2c: 01 07 00 [03:21:48]MH_I2C_Read... [03:21:48]Read from MH i2c: 01 07 00 42 55 00 00 00 00 00 D0 0C 7A [03:21:48]RasterBufferAndPrint [03:21:48]line [03:21:48]line [03:21:48]line [03:21:48]line [03:21:48]line [03:21:48]written 0, free lines is 3286 [03:21:48]MH_Cut [03:21:48]Write to MH i2c: D1 01 00 49 55 01 70 [03:21:48]Write i2c OK [03:21:48]MH_I2C_Read... [03:21:48]Read from MH i2c: D1 [03:21:48]MH_I2C_Read... [03:21:48]Read from MH i2c: D1 01 00 [03:21:48]MH_I2C_Read... [03:21:48]Read from MH i2c: D1 01 00 49 55 00 6F [03:21:48]Write to MH i2c: 01 00 00 4A 55 9F [03:21:48]Write i2c OK [03:21:48]MH_I2C_Read... [03:21:48]OFD Sender: No OFD packet to send [03:21:49]*** Cut start [03:21:49]*** Partial cut [03:21:49]*** CUTSNS_PIN = 1 [03:21:49]*** CUTSNS_PIN = 0 [03:21:49]*** Brake cut motor [03:21:49]Read from MH i2c: 01 [03:21:49]MH_I2C_Read... [03:21:49]*** Stop cut motor [03:21:49]*** Cut end [03:21:49]Read from MH i2c: 01 07 00 [03:21:49]MH_I2C_Read... [03:21:49]Read from MH i2c: 01 07 00 4A 55 00 00 00 00 00 FF 0F B4 [03:21:49]process_action close_receipt done [03:21:49]requested_data is exist [03:21:49]produce_requested_data [03:21:49]requested_item fm.sn is exist - process it [03:21:49]wFMCommunicate request_size=4 [03:21:49]MH_SAM_APDU [03:21:49]CAPDU: 80 11 00 00 [03:21:49]Write to MH i2c: E2 08 00 4B 55 80 11 00 00 00 00 00 00 1A [03:21:49]Write i2c OK [03:21:49]MH_I2C_Read... [03:21:49]Read from MH i2c: E2 [03:21:49]MH_I2C_Read... [03:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:49]Read from MH i2c: E2 17 00 [03:21:49]MH_I2C_Read... [03:21:49]Read from MH i2c: E2 17 00 4B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [03:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:21:49]wFMCommunicate OK [03:21:49]requested_item fd.num is exist - process it [03:21:49]SAM_PROTO_GetFieldsCounters [03:21:49]wFMCommunicate request_size=4 [03:21:49]MH_SAM_APDU [03:21:49]CAPDU: 80 13 00 00 [03:21:49]Write to MH i2c: E2 08 00 4C 55 80 13 00 00 00 00 00 00 1D [03:21:49]Write i2c OK [03:21:49]MH_I2C_Read... [03:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:21:49]Read from MH i2c: E2 [03:21:49]MH_I2C_Read... [03:21:49]Read from MH i2c: E2 62 00 [03:21:49]MH_I2C_Read... [03:21:49]Read from MH i2c: E2 62 00 4C 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DA 1F 01 00 0E 04 04 00 AA 00 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 05 [03:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DA 1F 01 00 0E 04 04 00 AA 00 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 [03:21:49]wFMCommunicate OK [03:21:49]SAM_PROTO_GetFieldsCounters done [03:21:49]requested_item shift.num is exist - process it [03:21:49]requested_item shift.opened is exist - process it [03:21:49]req_shift_opened [03:21:49]FM_GetShiftState [03:21:49]SAM_PROTO_GetShiftState [03:21:49]wFMCommunicate request_size=4 [03:21:49]MH_SAM_APDU [03:21:49]CAPDU: 80 13 01 00 [03:21:49]Write to MH i2c: E2 08 00 4D 55 80 13 01 00 00 00 00 00 1F [03:21:50]Write i2c OK [03:21:50]MH_I2C_Read... [03:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:50]Read from MH i2c: E2 [03:21:50]MH_I2C_Read... [03:21:50]Read from MH i2c: E2 0E 00 [03:21:50]MH_I2C_Read... [03:21:50]Read from MH i2c: E2 0E 00 4D 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 64 [03:21:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [03:21:50]wFMCommunicate OK [03:21:50]SAM_PROTO_GetShiftState done [03:21:50]FM_GetShiftState done [03:21:50]req_shift_opened done [03:21:50]requested_item shift.open_date is exist - process it [03:21:50]req_shift_open_date [03:21:50]req_shift_open_date done [03:21:50]produce_requested_data done [03:21:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73690,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [03:21:50]process_action_free close_receipt [03:21:50]json_value_free [03:21:50]json_value_free done [03:21:50]process_json_proto returns [03:21:50]Send response to host [03:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73690,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [03:21:50]free response buf [03:21:50]execute_script done [03:21:50]execute_script returns [03:21:50]free content buf [03:21:50]Sock 8.Close socket [03:21:50]Sock 8.Thread stoped [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:03]accept exits with 9 [03:30:03]New connection [03:30:03]New thread 3066555748 created [03:30:03]Thread 3066699108 joined [03:30:03]Waiting for new connection... [03:30:03] Sock 9.Parse request [03:30:03]Sock 9.Check first char [03:30:03]Sock 9.First char is OK [03:30:03]request: POST /json_proto HTTP/1.0 [03:30:03]Method: POST [03:30:03]URL: /json_proto [03:30:03]Method is POST - this is cgi request [03:30:03]url: /json_proto [03:30:03]query_string will be loaded in cgi processing [03:30:03]execute_cgi json_proto POST (null) [03:30:03]execute_cgi path=json_proto method=POST [03:30:03]POST find Content-Length [03:30:03]Host: 172.17.44.196:8080 [03:30:03]Content-Length: 1124 [03:30:03]Content-Type: application/json [03:30:03] [03:30:03]POST finish read [03:30:03]Found Content-Length = 1124 [03:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272719", "tax_sys" : 0, "items" : [ { "code": "4870001151546", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0437\u0435\u043B.\u044F\u0431\u043B", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [03:30:03]execute_script... [03:30: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)272719", "tax_sys" : 0, "items" : [ { "code": "4870001151546", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0437\u0435\u043B.\u044F\u0431\u043B", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [03:30:03]POST & json_proto [03:30:03]process_json_proto [03:30:03]json parsed OK: [03:30:03]protocol is kg_v1.0 [03:30:03]action value=close_receipt [03:30:03]process_action close_receipt [03:30:03]cmd_close_receipt [03:30:03]MH_GetDate [03:30:03]Write to MH i2c: F0 00 00 4E 55 92 [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: F0 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: F0 09 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: F0 09 00 4E 55 00 42 79 14 67 E7 19 F8 65 2E [03:30:03]GetLastDocTimeStamp 1729394513 [03:30:03]current date 1729395010 [03:30:03]FM_GetShiftState [03:30:03]SAM_PROTO_GetShiftState [03:30:03]wFMCommunicate request_size=4 [03:30:03]MH_SAM_APDU [03:30:03]CAPDU: 80 13 01 00 [03:30:03]Write to MH i2c: E2 08 00 4F 55 80 13 01 00 00 00 00 00 21 [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:03]Read from MH i2c: E2 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 0E 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 0E 00 4F 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 66 [03:30:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [03:30:03]wFMCommunicate OK [03:30:03]SAM_PROTO_GetShiftState done [03:30:03]FM_GetShiftState done [03:30:03]opened in 1729384303 [03:30:03]opened+sec_in_day 1729470703 [03:30:03]quantity*price = 15000 [03:30:03]sum+1 = 15001 [03:30:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 17 20.10.2024 03:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73691 ФПД: 243958700401706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T033010&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73691&fm=243958700401706&tin=02508201610067®Number=0000000000161154&sum=42000 0 [03:30:04]StoreToDocumentArchive [03:30:04]shift 170 fd 73691 [03:30:04]save to /storage/0170/doc_00073691 [03:30:04]save last doc name /storage/0170/doc_00073691 to /storage/kkm_last_doc_name [03:30:04]save OK [03:30:04]Clear old archive folders... [03:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=480 [03:30:04]tlvbuf is B6F1A940 [03:30:04]SAM_PROTO_ClearQueue [03:30:04]wFMCommunicate request_size=4 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 09 00 00 [03:30:04]Write to MH i2c: E2 08 00 5C 55 80 09 00 00 00 00 00 00 23 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 5C 55 00 90 00 25 [03:30:04]RAPDU: 90 00 [03:30:04]wFMCommunicate OK [03:30:04]SAM_PROTO_ClearQueue done [03:30:04]KKMCreateOFDPacket [03:30:04]OFDProtocolAddRootSTLVToBuf [03:30:04]FM_MakeSignedData [03:30:04]FM_MakeSignedData [03:30:04]SAM_PROTO_SignData [03:30:04]wFMCommunicate request_size=4 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 0D 01 02 [03:30:04]Write to MH i2c: E2 08 00 5D 55 80 0D 01 02 00 00 00 00 2B [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 5D 55 00 90 00 26 [03:30:04]RAPDU: 90 00 [03:30:04]wFMCommunicate OK [03:30:04]wFMCommunicate request_size=255 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 0D 02 02 FA 03 00 E0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 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 [03:30:04]Write to MH i2c: E2 02 01 5E 55 80 0D 02 02 FA 00 03 00 E0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 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 00 00 49 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:05]Read from MH i2c: E2 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 03 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 03 00 5E 55 00 90 00 27 [03:30:05]RAPDU: 90 00 [03:30:05]wFMCommunicate OK [03:30:05]wFMCommunicate request_size=239 [03:30:05]MH_SAM_APDU [03:30:05]CAPDU: 80 0D 02 02 EA 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 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 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 11 00 00 00 F4 03 04 00 42 79 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 1F 01 00 35 04 06 00 DD E1 0F AD 64 2A [03:30:05]Write to MH i2c: E2 F2 00 5F 55 80 0D 02 02 EA 00 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 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 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 11 00 00 00 F4 03 04 00 42 79 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 1F 01 00 35 04 06 00 DD E1 0F AD 64 2A 00 00 8B [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:05]Read from MH i2c: E2 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 03 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 03 00 5F 55 00 90 00 28 [03:30:05]RAPDU: 90 00 [03:30:05]wFMCommunicate OK [03:30:05]wFMCommunicate request_size=4 [03:30:05]MH_SAM_APDU [03:30:05]CAPDU: 80 0D 03 02 [03:30:05]Write to MH i2c: E2 08 00 60 55 80 0D 03 02 00 00 00 00 30 [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:05]Read from MH i2c: E2 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 0B 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 0B 00 60 55 00 F0 60 10 8A 9D AD 8B A2 90 00 92 [03:30:05]RAPDU: F0 60 10 8A 9D AD 8B A2 90 00 [03:30:05]wFMCommunicate OK [03:30:05]SAM_PROTO_SignData done [03:30:05]FM_MakeSignedData done [03:30:05]CreateOFDProtocolMessage [03:30:05]wFMCommunicate request_size=4 [03:30:05]MH_SAM_APDU [03:30:05]CAPDU: 80 11 00 00 [03:30:05]Write to MH i2c: E2 08 00 61 55 80 11 00 00 00 00 00 00 30 [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:05]Read from MH i2c: E2 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 17 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: E2 17 00 61 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7D [03:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:30:05]wFMCommunicate OK [03:30:05]CreateOFDProtocolMessage done [03:30:05]OFDSenderStorePacket 73691 [03:30:05]StoreOFDPacket docnum=73691 [03:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F4 01 00 00 CF A5 EC 01 03 8B 5A 03 01 00 03 00 E0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 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 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 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 11 00 00 00 F4 03 04 00 42 79 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 1F 01 00 35 04 06 00 DD E1 0F AD 64 2A F0 60 10 8A 9D AD 8B A2 [03:30:05]CheckFolder [03:30:05]dirname=/storage/ofd_packets [03:30:05]CheckFolder done [03:30:05]ProducePacketName [03:30:05]name=ofd_packets/00073691 [03:30:05]NVStorageSaveData ofd_packets/00073691 [03:30:05]File name is /storage/ofd_packets/00073691 [03:30:05]Write 530 bytes [03:30:05]NVStorageSaveData done [03:30:05]OFDSenderStorePacket done [03:30:05]KKMCreateOFDPacket done [03:30:05]NVStorageSaveData kkm_last_timestamp [03:30:05]File name is /storage/kkm_last_timestamp [03:30:05]Write 4 bytes [03:30:05]NVStorageSaveData done [03:30:05]ExternCall_PrintAddStr [03:30:05]wPrintStart [03:30:05]Write to MH i2c: 01 00 00 62 55 B7 [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 62 55 00 00 00 00 00 FF 0F CC [03:30:05]RasterBufferAndPrint [03:30:05]line Счет N : (3)272719 [03:30:05]line ИНН: 02508201610067 [03:30:05]line Контрольно-Кассовый Чек [03:30:05]line ПРОДАЖА [03:30:05]line Товар: 4870001151546 [03:30:05]line Сок Da-Da 1л зел.ябл [03:30:05]line 1.000 * 150.00 [03:30:05]line = 150.00 [03:30:05]line НДС 12% НСП 1% [03:30:05]line > о реализуемом товаре [03:30:05]line Товар: 4630007400389 [03:30:05]line Семечки ДЖИНН 140г [03:30:05]line 1.000 * 130.00 [03:30:05]line = 130.00 [03:30:05]line НДС 12% НСП 1% [03:30:05]line > о реализуемом товаре [03:30:05]line Товар: 48743587 [03:30:05]line Сигареты Winston XStyle Silver [03:30:05]line 1.000 * 140.00 [03:30:05]line = 140.00 [03:30:05]line НДС 12% НСП 1% [03:30:05]line > о реализуемом товаре [03:30:05]line ИТОГО: 420.00 [03:30:05]line НСП 1% : 3.72 [03:30:05]line НДС 12% : 44.60 [03:30:05]line Наличными: 420.00 [03:30:05]line Безнал.: 0.00 [03:30:05]line Место: АЗС № 133 "Партнер Нефть" [03:30:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [03:30:05]line СНО: Общий режим [03:30:05]line Чек 17 20.10.2024 03:30 [03:30:05]line Смена: 170 ФФД: 1.0 [03:30:05]line ЗНМ: 0300000020 [03:30:05]line РНМ: 0000000000161154 [03:30:05]line Версия ККМ: v1.0 [03:30:05]line ФМ: 0000000000963323 [03:30:05]line ФД: 73691 [03:30:05]line ФПД: 243958700401706 [03:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T033010&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73691&fm=243958700401706&tin=02508201610067®Number=0000000000161154&sum=42000 [03:30:05]line 0 [03:30:05]written 0, free lines is 4095 [03:30:05]OFD Sender: Processing packet 73691 [packets to send 15, broken 14] [03:30:05]ProducePacketName [03:30:05]name=ofd_packets/00073691 [03:30:05]OFD Sender: To server: pG, [03:30:05]CommunicateWithHost lk.salyk.kg:30040 [03:30:05]ConnectInit lk.salyk.kg [03:30:05]Connected sock=10 [03:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F4 01 00 00 CF A5 EC 01 03 8B 5A 03 01 00 03 00 E0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 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 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 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 11 00 00 00 F4 03 04 00 42 79 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 1F 01 00 35 04 06 00 DD E1 0F AD 64 2A F0 60 10 8A 9D AD 8B A2 [03:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D4 E3 47 00 0D C4 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 39 36 33 33 32 33 10 04 04 00 DB 1F 01 00 F4 03 04 00 29 22 14 67 B6 04 01 00 00 BB DA C5 77 36 B9 0E 44 [03:30:05]CommunicateWithHost err = 0 [03:30:05]CheckOFDResponse [03:30:05]1017 (14) - 77093643461234 [03:30:05]1041 (16) - 0000000000963323 [03:30:05]1040 (4) - 73691 [03:30:05]1012 (4) - 19.10.2024 21:18 [03:30:05]1206 (1) - 0 [03:30:05]OFD Sender: Remove packet 73691 [03:30:05]ProducePacketName [03:30:05]name=ofd_packets/00073691 [03:30:05]NVStorageDeleteData [03:30:05]Write to MH i2c: 01 00 00 96 55 EB [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 96 55 00 00 00 00 00 FA 0B F7 [03:30:05]RasterBufferAndPrint [03:30:05]line [03:30:05]line [03:30:05]line [03:30:05]line [03:30:05]line [03:30:05]written 0, free lines is 3070 [03:30:06]MH_Cut [03:30:06]Write to MH i2c: D1 01 00 9D 55 01 C4 [03:30:06]Write i2c OK [03:30:06]MH_I2C_Read... [03:30:06]Read from MH i2c: D1 [03:30:06]MH_I2C_Read... [03:30:06]Read from MH i2c: D1 01 00 [03:30:06]MH_I2C_Read... [03:30:06]Read from MH i2c: D1 01 00 9D 55 00 C3 [03:30:06]Write to MH i2c: 01 00 00 9E 55 F3 [03:30:06]Write i2c OK [03:30:06]MH_I2C_Read... [03:30:06]OFD Sender: No OFD packet to send [03:30:07]*** Cut start [03:30:07]*** Partial cut [03:30:07]*** CUTSNS_PIN = 1 [03:30:07]*** CUTSNS_PIN = 0 [03:30:07]*** Brake cut motor [03:30:07]Read from MH i2c: 01 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: 01 07 00 [03:30:07]MH_I2C_Read... [03:30:07]*** Stop cut motor [03:30:07]*** Cut end [03:30:07]Read from MH i2c: 01 07 00 9E 55 00 00 00 00 00 FF 0F 08 [03:30:07]process_action close_receipt done [03:30:07]requested_data is exist [03:30:07]produce_requested_data [03:30:07]requested_item fm.sn is exist - process it [03:30:07]wFMCommunicate request_size=4 [03:30:07]MH_SAM_APDU [03:30:07]CAPDU: 80 11 00 00 [03:30:07]Write to MH i2c: E2 08 00 9F 55 80 11 00 00 00 00 00 00 6E [03:30:07]Write i2c OK [03:30:07]MH_I2C_Read... [03:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:07]Read from MH i2c: E2 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 17 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 17 00 9F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [03:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:30:07]wFMCommunicate OK [03:30:07]requested_item fd.num is exist - process it [03:30:07]SAM_PROTO_GetFieldsCounters [03:30:07]wFMCommunicate request_size=4 [03:30:07]MH_SAM_APDU [03:30:07]CAPDU: 80 13 00 00 [03:30:07]Write to MH i2c: E2 08 00 A0 55 80 13 00 00 00 00 00 00 71 [03:30:07]Write i2c OK [03:30:07]MH_I2C_Read... [03:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:07]Read from MH i2c: E2 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 62 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 62 00 A0 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DB 1F 01 00 0E 04 04 00 AA 00 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 5D [03:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DB 1F 01 00 0E 04 04 00 AA 00 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 [03:30:07]wFMCommunicate OK [03:30:07]SAM_PROTO_GetFieldsCounters done [03:30:07]requested_item shift.num is exist - process it [03:30:07]requested_item shift.opened is exist - process it [03:30:07]req_shift_opened [03:30:07]FM_GetShiftState [03:30:07]SAM_PROTO_GetShiftState [03:30:07]wFMCommunicate request_size=4 [03:30:07]MH_SAM_APDU [03:30:07]CAPDU: 80 13 01 00 [03:30:07]Write to MH i2c: E2 08 00 A1 55 80 13 01 00 00 00 00 00 73 [03:30:07]Write i2c OK [03:30:07]MH_I2C_Read... [03:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:07]Read from MH i2c: E2 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 0E 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 0E 00 A1 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B8 [03:30:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [03:30:07]wFMCommunicate OK [03:30:07]SAM_PROTO_GetShiftState done [03:30:07]FM_GetShiftState done [03:30:07]req_shift_opened done [03:30:07]requested_item shift.open_date is exist - process it [03:30:07]req_shift_open_date [03:30:07]req_shift_open_date done [03:30:07]produce_requested_data done [03:30:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73691,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [03:30:07]process_action_free close_receipt [03:30:07]json_value_free [03:30:07]json_value_free done [03:30:07]process_json_proto returns [03:30:07]Send response to host [03:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73691,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [03:30:07]free response buf [03:30:07]execute_script done [03:30:07]execute_script returns [03:30:07]free content buf [03:30:07]Sock 9.Close socket [03:30:07]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:29]accept exits with 8 [03:54:29]New connection [03:54:29]New thread 3066699108 created [03:54:29]Thread 3066555748 joined [03:54:29]Waiting for new connection... [03:54:29] Sock 8.Parse request [03:54:29]Sock 8.Check first char [03:54:29]Sock 8.First char is OK [03:54:29]request: POST /json_proto HTTP/1.0 [03:54:29]Method: POST [03:54:29]URL: /json_proto [03:54:29]Method is POST - this is cgi request [03:54:29]url: /json_proto [03:54:29]query_string will be loaded in cgi processing [03:54:29]execute_cgi json_proto POST (null) [03:54:29]execute_cgi path=json_proto method=POST [03:54:29]POST find Content-Length [03:54:29]Host: 172.17.44.196:8080 [03:54:29]Content-Length: 909 [03:54:29]Content-Type: application/json [03:54:29] [03:54:29]POST finish read [03:54:29]Found Content-Length = 909 [03:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272720", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [03:54:29]execute_script... [03:54: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)272720", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [03:54:29]POST & json_proto [03:54:29]process_json_proto [03:54:29]json parsed OK: [03:54:29]protocol is kg_v1.0 [03:54:29]action value=close_receipt [03:54:29]process_action close_receipt [03:54:29]cmd_close_receipt [03:54:29]MH_GetDate [03:54:29]Write to MH i2c: F0 00 00 A2 55 E6 [03:54:29]Write i2c OK [03:54:29]MH_I2C_Read... [03:54:29]Read from MH i2c: F0 [03:54:29]MH_I2C_Read... [03:54:29]Read from MH i2c: F0 09 00 [03:54:29]MH_I2C_Read... [03:54:29]Read from MH i2c: F0 09 00 A2 55 00 FC 7E 14 67 E7 19 F8 65 41 [03:54:29]GetLastDocTimeStamp 1729395010 [03:54:29]current date 1729396476 [03:54:29]FM_GetShiftState [03:54:29]SAM_PROTO_GetShiftState [03:54:29]wFMCommunicate request_size=4 [03:54:29]MH_SAM_APDU [03:54:29]CAPDU: 80 13 01 00 [03:54:29]Write to MH i2c: E2 08 00 A3 55 80 13 01 00 00 00 00 00 75 [03:54:29]Write i2c OK [03:54:29]MH_I2C_Read... [03:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:29]Read from MH i2c: E2 [03:54:29]MH_I2C_Read... [03:54:29]Read from MH i2c: E2 0E 00 [03:54:29]MH_I2C_Read... [03:54:29]Read from MH i2c: E2 0E 00 A3 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BA [03:54:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [03:54:29]wFMCommunicate OK [03:54:29]SAM_PROTO_GetShiftState done [03:54:29]FM_GetShiftState done [03:54:29]opened in 1729384303 [03:54:29]opened+sec_in_day 1729470703 [03:54:29]quantity*price = 13000 [03:54:29]sum+1 = 13001 [03:54:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 18 20.10.2024 03:54 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73692 ФПД: 89239561864869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T035436&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73692&fm=89239561864869&tin=02508201610067®Number=0000000000161154&sum=14000 0 [03:54:30]StoreToDocumentArchive [03:54:30]shift 170 fd 73692 [03:54:30]save to /storage/0170/doc_00073692 [03:54:30]save last doc name /storage/0170/doc_00073692 to /storage/kkm_last_doc_name [03:54:30]save OK [03:54:30]Clear old archive folders... [03:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=382 [03:54:30]tlvbuf is 010ED520 [03:54:30]SAM_PROTO_ClearQueue [03:54:30]wFMCommunicate request_size=4 [03:54:30]MH_SAM_APDU [03:54:30]CAPDU: 80 09 00 00 [03:54:30]Write to MH i2c: E2 08 00 B0 55 80 09 00 00 00 00 00 00 77 [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:54:30]Read from MH i2c: E2 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 B0 55 00 90 00 79 [03:54:30]RAPDU: 90 00 [03:54:30]wFMCommunicate OK [03:54:30]SAM_PROTO_ClearQueue done [03:54:30]KKMCreateOFDPacket [03:54:30]OFDProtocolAddRootSTLVToBuf [03:54:30]FM_MakeSignedData [03:54:30]FM_MakeSignedData [03:54:30]SAM_PROTO_SignData [03:54:30]wFMCommunicate request_size=4 [03:54:30]MH_SAM_APDU [03:54:30]CAPDU: 80 0D 01 02 [03:54:30]Write to MH i2c: E2 08 00 B1 55 80 0D 01 02 00 00 00 00 7F [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:54:30]Read from MH i2c: E2 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 B1 55 00 90 00 7A [03:54:30]RAPDU: 90 00 [03:54:30]wFMCommunicate OK [03:54:30]wFMCommunicate request_size=255 [03:54:30]MH_SAM_APDU [03:54:30]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [03:54:30]Write to MH i2c: E2 02 01 B2 55 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 E0 [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:30]Read from MH i2c: E2 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 B2 55 00 90 00 7B [03:54:30]RAPDU: 90 00 [03:54:30]wFMCommunicate OK [03:54:30]wFMCommunicate request_size=141 [03:54:30]MH_SAM_APDU [03:54:30]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 12 00 00 00 F4 03 04 00 FC 7E 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 1F 01 00 35 04 06 00 51 29 B4 62 86 A5 [03:54:30]Write to MH i2c: E2 90 00 B3 55 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 12 00 00 00 F4 03 04 00 FC 7E 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 1F 01 00 35 04 06 00 51 29 B4 62 86 A5 00 00 D3 [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:30]Read from MH i2c: E2 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 03 00 B3 55 00 90 00 7C [03:54:30]RAPDU: 90 00 [03:54:30]wFMCommunicate OK [03:54:30]wFMCommunicate request_size=4 [03:54:30]MH_SAM_APDU [03:54:30]CAPDU: 80 0D 03 02 [03:54:30]Write to MH i2c: E2 08 00 B4 55 80 0D 03 02 00 00 00 00 84 [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:54:30]Read from MH i2c: E2 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 0B 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 0B 00 B4 55 00 45 35 75 41 66 F4 0D 0B 90 00 27 [03:54:30]RAPDU: 45 35 75 41 66 F4 0D 0B 90 00 [03:54:30]wFMCommunicate OK [03:54:30]SAM_PROTO_SignData done [03:54:30]FM_MakeSignedData done [03:54:30]CreateOFDProtocolMessage [03:54:30]wFMCommunicate request_size=4 [03:54:30]MH_SAM_APDU [03:54:30]CAPDU: 80 11 00 00 [03:54:30]Write to MH i2c: E2 08 00 B5 55 80 11 00 00 00 00 00 00 84 [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:30]Read from MH i2c: E2 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 17 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: E2 17 00 B5 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [03:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:54:30]wFMCommunicate OK [03:54:30]CreateOFDProtocolMessage done [03:54:30]OFDSenderStorePacket 73692 [03:54:30]StoreOFDPacket docnum=73692 [03:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 92 01 00 00 BE 60 8A 01 91 79 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 CE 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 12 00 00 00 F4 03 04 00 FC 7E 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 1F 01 00 35 04 06 00 51 29 B4 62 86 A5 45 35 75 41 66 F4 0D 0B [03:54:30]CheckFolder [03:54:30]dirname=/storage/ofd_packets [03:54:30]CheckFolder done [03:54:30]ProducePacketName [03:54:30]name=ofd_packets/00073692 [03:54:30]NVStorageSaveData ofd_packets/00073692 [03:54:30]File name is /storage/ofd_packets/00073692 [03:54:30]Write 432 bytes [03:54:30]NVStorageSaveData done [03:54:30]OFDSenderStorePacket done [03:54:30]KKMCreateOFDPacket done [03:54:30]NVStorageSaveData kkm_last_timestamp [03:54:30]File name is /storage/kkm_last_timestamp [03:54:30]Write 4 bytes [03:54:30]NVStorageSaveData done [03:54:30]ExternCall_PrintAddStr [03:54:30]wPrintStart [03:54:30]Write to MH i2c: 01 00 00 B6 55 0B [03:54:30]Write i2c OK [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: 01 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: 01 07 00 [03:54:30]MH_I2C_Read... [03:54:30]Read from MH i2c: 01 07 00 B6 55 00 00 00 00 00 FF 0F 20 [03:54:30]RasterBufferAndPrint [03:54:30]line Счет N : (3)272720 [03:54:30]line ИНН: 02508201610067 [03:54:30]line Контрольно-Кассовый Чек [03:54:30]line ПРОДАЖА [03:54:30]line Товар: 47011656 [03:54:31]line Водка Пшеничная 0,1л [03:54:31]line 2.000 * 65.00 [03:54:31]line = 130.00 [03:54:31]line НДС 12% НСП 1% [03:54:31]line > о реализуемом товаре [03:54:31]line Товар: 46226617 [03:54:31]line Mentos ПВ Нежная Мята 6*100*2г [03:54:31]line 1.000 * 10.00 [03:54:31]line = 10.00 [03:54:31]line НДС 12% НСП 1% [03:54:31]line > о реализуемом товаре [03:54:31]line ИТОГО: 140.00 [03:54:31]line НСП 1% : 1.24 [03:54:31]line НДС 12% : 14.86 [03:54:31]line Наличными: 140.00 [03:54:31]line Безнал.: 0.00 [03:54:31]line Место: АЗС № 133 "Партнер Нефть" [03:54:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [03:54:31]line СНО: Общий режим [03:54:31]line Чек 18 20.10.2024 03:54 [03:54:31]line Смена: 170 ФФД: 1.0 [03:54:31]line ЗНМ: 0300000020 [03:54:31]line РНМ: 0000000000161154 [03:54:31]line Версия ККМ: v1.0 [03:54:31]line ФМ: 0000000000963323 [03:54:31]line ФД: 73692 [03:54:31]line ФПД: 89239561864869 [03:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T035436&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73692&fm=89239561864869&tin=02508201610067®Number=0000000000161154&sum=14000 [03:54:31]OFD Sender: Processing packet 73692 [packets to send 15, broken 14] [03:54:31]ProducePacketName [03:54:31]name=ofd_packets/00073692 [03:54:31]OFD Sender: To server: pG, [03:54:31]CommunicateWithHost lk.salyk.kg:30040 [03:54:31]ConnectInit lk.salyk.kg [03:54:31]line 0 [03:54:31]written 0, free lines is 4095 [03:54:31]Connected sock=10 [03:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 92 01 00 00 BE 60 8A 01 91 79 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 CE 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 12 00 00 00 F4 03 04 00 FC 7E 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 1F 01 00 35 04 06 00 51 29 B4 62 86 A5 45 35 75 41 66 F4 0D 0B [03:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 96 80 47 00 B4 D4 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 39 36 33 33 32 33 10 04 04 00 DC 1F 01 00 F4 03 04 00 E2 27 14 67 B6 04 01 00 00 1B F6 8B 64 B0 34 A0 0C [03:54:31]CommunicateWithHost err = 0 [03:54:31]CheckOFDResponse [03:54:31]1017 (14) - 77093643461234 [03:54:31]1041 (16) - 0000000000963323 [03:54:31]1040 (4) - 73692 [03:54:31]1012 (4) - 19.10.2024 21:42 [03:54:31]1206 (1) - 0 [03:54:31]OFD Sender: Remove packet 73692 [03:54:31]ProducePacketName [03:54:31]name=ofd_packets/00073692 [03:54:31]NVStorageDeleteData [03:54:31]Write to MH i2c: 01 00 00 E4 55 39 [03:54:31]Write i2c OK [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: 01 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: 01 07 00 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: 01 07 00 E4 55 00 00 00 00 00 51 0C 9D [03:54:31]RasterBufferAndPrint [03:54:31]line [03:54:31]line [03:54:31]line [03:54:31]line [03:54:31]line [03:54:31]written 0, free lines is 3160 [03:54:31]MH_Cut [03:54:31]Write to MH i2c: D1 01 00 EB 55 01 12 [03:54:31]Write i2c OK [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: D1 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: D1 01 00 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: D1 01 00 EB 55 00 11 [03:54:31]Write to MH i2c: 01 00 00 EC 55 41 [03:54:31]Write i2c OK [03:54:31]MH_I2C_Read... [03:54:32]OFD Sender: No OFD packet to send [03:54:32]*** Cut start [03:54:32]*** Partial cut [03:54:32]*** CUTSNS_PIN = 1 [03:54:32]*** CUTSNS_PIN = 0 [03:54:32]*** Brake cut motor [03:54:33]Read from MH i2c: 01 [03:54:33]MH_I2C_Read... [03:54:33]*** Stop cut motor [03:54:33]*** Cut end [03:54:33]Read from MH i2c: 01 07 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: 01 07 00 EC 55 00 00 00 00 00 FF 0F 56 [03:54:33]process_action close_receipt done [03:54:33]requested_data is exist [03:54:33]produce_requested_data [03:54:33]requested_item fm.sn is exist - process it [03:54:33]wFMCommunicate request_size=4 [03:54:33]MH_SAM_APDU [03:54:33]CAPDU: 80 11 00 00 [03:54:33]Write to MH i2c: E2 08 00 ED 55 80 11 00 00 00 00 00 00 BC [03:54:33]Write i2c OK [03:54:33]MH_I2C_Read... [03:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:33]Read from MH i2c: E2 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 17 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 17 00 ED 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 09 [03:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:54:33]wFMCommunicate OK [03:54:33]requested_item fd.num is exist - process it [03:54:33]SAM_PROTO_GetFieldsCounters [03:54:33]wFMCommunicate request_size=4 [03:54:33]MH_SAM_APDU [03:54:33]CAPDU: 80 13 00 00 [03:54:33]Write to MH i2c: E2 08 00 EE 55 80 13 00 00 00 00 00 00 BF [03:54:33]Write i2c OK [03:54:33]MH_I2C_Read... [03:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:54:33]Read from MH i2c: E2 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 62 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 62 00 EE 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DC 1F 01 00 0E 04 04 00 AA 00 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 AF [03:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DC 1F 01 00 0E 04 04 00 AA 00 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 [03:54:33]wFMCommunicate OK [03:54:33]SAM_PROTO_GetFieldsCounters done [03:54:33]requested_item shift.num is exist - process it [03:54:33]requested_item shift.opened is exist - process it [03:54:33]req_shift_opened [03:54:33]FM_GetShiftState [03:54:33]SAM_PROTO_GetShiftState [03:54:33]wFMCommunicate request_size=4 [03:54:33]MH_SAM_APDU [03:54:33]CAPDU: 80 13 01 00 [03:54:33]Write to MH i2c: E2 08 00 EF 55 80 13 01 00 00 00 00 00 C1 [03:54:33]Write i2c OK [03:54:33]MH_I2C_Read... [03:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:33]Read from MH i2c: E2 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 0E 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 0E 00 EF 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 06 [03:54:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [03:54:33]wFMCommunicate OK [03:54:33]SAM_PROTO_GetShiftState done [03:54:33]FM_GetShiftState done [03:54:33]req_shift_opened done [03:54:33]requested_item shift.open_date is exist - process it [03:54:33]req_shift_open_date [03:54:33]req_shift_open_date done [03:54:33]produce_requested_data done [03:54:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73692,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [03:54:33]process_action_free close_receipt [03:54:33]json_value_free [03:54:33]json_value_free done [03:54:33]process_json_proto returns [03:54:33]Send response to host [03:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73692,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [03:54:33]free response buf [03:54:33]execute_script done [03:54:33]execute_script returns [03:54:33]free content buf [03:54:33]Sock 8.Close socket [03:54:33]Sock 8.Thread stoped [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]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:36]accept exits with 9 [04:28:36]New connection [04:28:36]New thread 3066555748 created [04:28:36]Thread 3066699108 joined [04:28:36]Waiting for new connection... [04:28:36] Sock 9.Parse request [04:28:36]Sock 9.Check first char [04:28:36]Sock 9.First char is OK [04:28:36]request: POST /json_proto HTTP/1.0 [04:28:36]Method: POST [04:28:36]URL: /json_proto [04:28:36]Method is POST - this is cgi request [04:28:36]url: /json_proto [04:28:36]query_string will be loaded in cgi processing [04:28:36]execute_cgi json_proto POST (null) [04:28:36]execute_cgi path=json_proto method=POST [04:28:36]POST find Content-Length [04:28:36]Host: 172.17.44.196:8080 [04:28:36]Content-Length: 1292 [04:28:36]Content-Type: application/json [04:28:36] [04:28:36]POST finish read [04:28:36]Found Content-Length = 1292 [04:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272721", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\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: Mbank", "payments": [ { "type": 1, "sum" : 765.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:36]execute_script... [04:28: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)272721", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\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: Mbank", "payments": [ { "type": 1, "sum" : 765.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:36]POST & json_proto [04:28:36]process_json_proto [04:28:36]json parsed OK: [04:28:36]protocol is kg_v1.0 [04:28:36]action value=close_receipt [04:28:36]process_action close_receipt [04:28:36]cmd_close_receipt [04:28:36]MH_GetDate [04:28:36]Write to MH i2c: F0 00 00 F0 55 34 [04:28:36]Write i2c OK [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: F0 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: F0 09 00 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: F0 09 00 F0 55 00 FB 86 14 67 E7 19 F8 65 96 [04:28:36]GetLastDocTimeStamp 1729396476 [04:28:36]current date 1729398523 [04:28:36]FM_GetShiftState [04:28:36]SAM_PROTO_GetShiftState [04:28:36]wFMCommunicate request_size=4 [04:28:36]MH_SAM_APDU [04:28:36]CAPDU: 80 13 01 00 [04:28:36]Write to MH i2c: E2 08 00 F1 55 80 13 01 00 00 00 00 00 C3 [04:28:36]Write i2c OK [04:28:36]MH_I2C_Read... [04:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:36]Read from MH i2c: E2 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: E2 0E 00 [04:28:36]MH_I2C_Read... [04:28:36]Read from MH i2c: E2 0E 00 F1 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 08 [04:28:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [04:28:36]wFMCommunicate OK [04:28:36]SAM_PROTO_GetShiftState done [04:28:36]FM_GetShiftState done [04:28:36]opened in 1729384303 [04:28:36]opened+sec_in_day 1729470703 [04:28:36]quantity*price = 56000 [04:28:36]sum+1 = 56001 [04:28:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000066473 Вода Бонаква 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 765.00 НСП 1% : 6.77 НДС 12% : 81.24 Наличными: 0.00 Безнал.: 765.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 19 20.10.2024 04:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73693 ФПД: 115075256109972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042843&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73693&fm=115075256109972&tin=02508201610067®Number=0000000000161154&sum=76500 0 [04:28:37]StoreToDocumentArchive [04:28:37]shift 170 fd 73693 [04:28:37]save to /storage/0170/doc_00073693 [04:28:37]save last doc name /storage/0170/doc_00073693 to /storage/kkm_last_doc_name [04:28:37]save OK [04:28:37]Clear old archive folders... [04:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=491 [04:28:37]tlvbuf is 010E0230 [04:28:37]SAM_PROTO_ClearQueue [04:28:37]wFMCommunicate request_size=4 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 09 00 00 [04:28:37]Write to MH i2c: E2 08 00 FE 55 80 09 00 00 00 00 00 00 C5 [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:37]Read from MH i2c: E2 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 FE 55 00 90 00 C7 [04:28:37]RAPDU: 90 00 [04:28:37]wFMCommunicate OK [04:28:37]SAM_PROTO_ClearQueue done [04:28:37]KKMCreateOFDPacket [04:28:37]OFDProtocolAddRootSTLVToBuf [04:28:37]FM_MakeSignedData [04:28:37]FM_MakeSignedData [04:28:37]SAM_PROTO_SignData [04:28:37]wFMCommunicate request_size=4 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 0D 01 02 [04:28:37]Write to MH i2c: E2 08 00 FF 55 80 0D 01 02 00 00 00 00 CD [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:37]Read from MH i2c: E2 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 FF 55 00 90 00 C8 [04:28:37]RAPDU: 90 00 [04:28:37]wFMCommunicate OK [04:28:37]wFMCommunicate request_size=255 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 0D 02 02 FA 03 00 EB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 [04:28:37]Write to MH i2c: E2 02 01 00 56 80 0D 02 02 FA 00 03 00 EB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 00 00 E7 [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:37]Read from MH i2c: E2 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 00 56 00 90 00 CA [04:28:37]RAPDU: 90 00 [04:28:37]wFMCommunicate OK [04:28:37]wFMCommunicate request_size=250 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 0D 02 02 F5 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 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 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB 86 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 1F 01 00 35 04 06 00 68 A9 0B C3 4B 94 [04:28:37]Write to MH i2c: E2 FD 00 01 56 80 0D 02 02 F5 00 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 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 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB 86 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 1F 01 00 35 04 06 00 68 A9 0B C3 4B 94 00 00 2B [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:37]Read from MH i2c: E2 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 03 00 01 56 00 90 00 CB [04:28:37]RAPDU: 90 00 [04:28:37]wFMCommunicate OK [04:28:37]wFMCommunicate request_size=4 [04:28:37]MH_SAM_APDU [04:28:37]CAPDU: 80 0D 03 02 [04:28:37]Write to MH i2c: E2 08 00 02 56 80 0D 03 02 00 00 00 00 D3 [04:28:37]Write i2c OK [04:28:37]MH_I2C_Read... [04:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:37]Read from MH i2c: E2 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 0B 00 [04:28:37]MH_I2C_Read... [04:28:37]Read from MH i2c: E2 0B 00 02 56 00 81 DD 80 44 97 1A 44 EA 90 00 D5 [04:28:37]RAPDU: 81 DD 80 44 97 1A 44 EA 90 00 [04:28:37]wFMCommunicate OK [04:28:38]SAM_PROTO_SignData done [04:28:38]FM_MakeSignedData done [04:28:38]CreateOFDProtocolMessage [04:28:38]wFMCommunicate request_size=4 [04:28:38]MH_SAM_APDU [04:28:38]CAPDU: 80 11 00 00 [04:28:38]Write to MH i2c: E2 08 00 03 56 80 11 00 00 00 00 00 00 D3 [04:28:38]Write i2c OK [04:28:38]MH_I2C_Read... [04:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:38]Read from MH i2c: E2 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: E2 17 00 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: E2 17 00 03 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 20 [04:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:28:38]wFMCommunicate OK [04:28:38]CreateOFDProtocolMessage done [04:28:38]OFDSenderStorePacket 73693 [04:28:38]StoreOFDPacket docnum=73693 [04:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FF 01 00 00 1C 18 F7 01 9B 9D 5A 03 01 00 03 00 EB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 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 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB 86 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 1F 01 00 35 04 06 00 68 A9 0B C3 4B 94 81 DD 80 44 97 1A 44 EA [04:28:38]CheckFolder [04:28:38]dirname=/storage/ofd_packets [04:28:38]CheckFolder done [04:28:38]ProducePacketName [04:28:38]name=ofd_packets/00073693 [04:28:38]NVStorageSaveData ofd_packets/00073693 [04:28:38]File name is /storage/ofd_packets/00073693 [04:28:38]Write 541 bytes [04:28:38]NVStorageSaveData done [04:28:38]OFDSenderStorePacket done [04:28:38]KKMCreateOFDPacket done [04:28:38]NVStorageSaveData kkm_last_timestamp [04:28:38]File name is /storage/kkm_last_timestamp [04:28:38]Write 4 bytes [04:28:38]NVStorageSaveData done [04:28:38]ExternCall_PrintAddStr [04:28:38]wPrintStart [04:28:38]Write to MH i2c: 01 00 00 04 56 5A [04:28:38]Write i2c OK [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: 01 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: 01 07 00 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: 01 07 00 04 56 00 00 00 00 00 FF 0F 6F [04:28:38]RasterBufferAndPrint [04:28:38]line Счет N : (3)272721 [04:28:38]line ИНН: 02508201610067 [04:28:38]line Контрольно-Кассовый Чек [04:28:38]line ПРОДАЖА [04:28:38]line Товар: 4700003150936 [04:28:38]line Новая Водка Organic 40% 0,48л [04:28:38]line 1.000 * 560.00 [04:28:38]line = 560.00 [04:28:38]line НДС 12% НСП 1% [04:28:38]line > о реализуемом товаре [04:28:38]line Товар: 5449000000439 [04:28:38]line Напиток Кока-Кола 1,5л [04:28:38]line 1.000 * 155.00 [04:28:38]line = 155.00 [04:28:38]line НДС 12% НСП 1% [04:28:38]line > о реализуемом товаре [04:28:38]line Товар: 5449000066473 [04:28:38]line Вода Бонаква 1л [04:28:38]line 1.000 * 50.00 [04:28:38]line = 50.00 [04:28:38]line НДС 12% НСП 1% [04:28:38]line > о реализуемом товаре [04:28:38]line ИТОГО: 765.00 [04:28:38]line НСП 1% : 6.77 [04:28:38]line НДС 12% : 81.24 [04:28:38]line Наличными: 0.00 [04:28:38]line Безнал.: 765.00 [04:28:38]line Место: АЗС № 133 "Партнер Нефть" [04:28:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [04:28:38]line СНО: Общий режим [04:28:38]line Чек 19 20.10.2024 04:28 [04:28:38]line Смена: 170 ФФД: 1.0 [04:28:38]line ЗНМ: 0300000020 [04:28:38]line РНМ: 0000000000161154 [04:28:38]line Версия ККМ: v1.0 [04:28:38]line Платежная система: Mbank [04:28:38]line ФМ: 0000000000963323 [04:28:38]line ФД: 73693 [04:28:38]line ФПД: 115075256109972 [04:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042843&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73693&fm=115075256109972&tin=02508201610067®Number=0000000000161154&sum=76500 [04:28:38]line 0 [04:28:38]OFD Sender: Processing packet 73693 [packets to send 15, broken 14] [04:28:38]ProducePacketName [04:28:38]name=ofd_packets/00073693 [04:28:38]OFD Sender: To server: pG, [04:28:38]CommunicateWithHost lk.salyk.kg:30040 [04:28:38]ConnectInit lk.salyk.kg [04:28:38]written 0, free lines is 4095 [04:28:38]Connected sock=10 [04:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FF 01 00 00 1C 18 F7 01 9B 9D 5A 03 01 00 03 00 EB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 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 D4 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB 86 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 1F 01 00 35 04 06 00 68 A9 0B C3 4B 94 81 DD 80 44 97 1A 44 EA [04:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1E CB 47 00 D6 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 39 36 33 33 32 33 10 04 04 00 DD 1F 01 00 F4 03 04 00 E2 2F 14 67 B6 04 01 00 00 A6 A3 AC CA 4C 93 E0 6A [04:28:38]CommunicateWithHost err = 0 [04:28:38]CheckOFDResponse [04:28:38]1017 (14) - 77093643461234 [04:28:38]1041 (16) - 0000000000963323 [04:28:38]1040 (4) - 73693 [04:28:38]1012 (4) - 19.10.2024 22:17 [04:28:38]1206 (1) - 0 [04:28:38]OFD Sender: Remove packet 73693 [04:28:38]ProducePacketName [04:28:38]name=ofd_packets/00073693 [04:28:38]NVStorageDeleteData [04:28:38]Write to MH i2c: 01 00 00 39 56 8F [04:28:38]Write i2c OK [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: 01 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: 01 07 00 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: 01 07 00 39 56 00 00 00 00 00 E8 0B 89 [04:28:38]RasterBufferAndPrint [04:28:38]line [04:28:38]line [04:28:38]line [04:28:38]line [04:28:38]line [04:28:38]written 0, free lines is 3053 [04:28:38]MH_Cut [04:28:38]Write to MH i2c: D1 01 00 40 56 01 68 [04:28:38]Write i2c OK [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: D1 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: D1 01 00 [04:28:38]MH_I2C_Read... [04:28:38]Read from MH i2c: D1 01 00 40 56 00 67 [04:28:38]Write to MH i2c: 01 00 00 41 56 97 [04:28:38]Write i2c OK [04:28:38]MH_I2C_Read... [04:28:39]OFD Sender: No OFD packet to send [04:28:40]*** Cut start [04:28:40]*** Partial cut [04:28:40]*** CUTSNS_PIN = 1 [04:28:40]*** CUTSNS_PIN = 0 [04:28:40]*** Brake cut motor [04:28:40]Read from MH i2c: 01 [04:28:40]MH_I2C_Read... [04:28:40]*** Stop cut motor [04:28:40]*** Cut end [04:28:40]Read from MH i2c: 01 07 00 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: 01 07 00 41 56 00 00 00 00 00 FF 0F AC [04:28:40]process_action close_receipt done [04:28:40]requested_data is exist [04:28:40]produce_requested_data [04:28:40]requested_item fm.sn is exist - process it [04:28:40]wFMCommunicate request_size=4 [04:28:40]MH_SAM_APDU [04:28:40]CAPDU: 80 11 00 00 [04:28:40]Write to MH i2c: E2 08 00 42 56 80 11 00 00 00 00 00 00 12 [04:28:40]Write i2c OK [04:28:40]MH_I2C_Read... [04:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:40]Read from MH i2c: E2 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: E2 17 00 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: E2 17 00 42 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5F [04:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:28:40]wFMCommunicate OK [04:28:40]requested_item fd.num is exist - process it [04:28:40]SAM_PROTO_GetFieldsCounters [04:28:40]wFMCommunicate request_size=4 [04:28:40]MH_SAM_APDU [04:28:40]CAPDU: 80 13 00 00 [04:28:40]Write to MH i2c: E2 08 00 43 56 80 13 00 00 00 00 00 00 15 [04:28:40]Write i2c OK [04:28:40]MH_I2C_Read... [04:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:40]Read from MH i2c: E2 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: E2 62 00 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: E2 62 00 43 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DD 1F 01 00 0E 04 04 00 AA 00 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 09 [04:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DD 1F 01 00 0E 04 04 00 AA 00 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 [04:28:40]wFMCommunicate OK [04:28:40]SAM_PROTO_GetFieldsCounters done [04:28:40]requested_item shift.num is exist - process it [04:28:40]requested_item shift.opened is exist - process it [04:28:40]req_shift_opened [04:28:40]FM_GetShiftState [04:28:40]SAM_PROTO_GetShiftState [04:28:40]wFMCommunicate request_size=4 [04:28:40]MH_SAM_APDU [04:28:40]CAPDU: 80 13 01 00 [04:28:40]Write to MH i2c: E2 08 00 44 56 80 13 01 00 00 00 00 00 17 [04:28:40]Write i2c OK [04:28:40]MH_I2C_Read... [04:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:40]Read from MH i2c: E2 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: E2 0E 00 [04:28:40]MH_I2C_Read... [04:28:40]Read from MH i2c: E2 0E 00 44 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5C [04:28:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [04:28:40]wFMCommunicate OK [04:28:40]SAM_PROTO_GetShiftState done [04:28:40]FM_GetShiftState done [04:28:40]req_shift_opened done [04:28:40]requested_item shift.open_date is exist - process it [04:28:40]req_shift_open_date [04:28:40]req_shift_open_date done [04:28:40]produce_requested_data done [04:28:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73693,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [04:28:40]process_action_free close_receipt [04:28:40]json_value_free [04:28:40]json_value_free done [04:28:40]process_json_proto returns [04:28:40]Send response to host [04:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73693,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [04:28:40]free response buf [04:28:40]execute_script done [04:28:40]execute_script returns [04:28:40]free content buf [04:28:40]Sock 9.Close socket [04:28:40]Sock 9.Thread stoped [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]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:49]OFD Sender: No OFD packet to send [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:22]accept exits with 8 [04:34:22]New connection [04:34:22]New thread 3066699108 created [04:34:22]Thread 3066555748 joined [04:34:22]Waiting for new connection... [04:34:22] Sock 8.Parse request [04:34:22]Sock 8.Check first char [04:34:22]Sock 8.First char is OK [04:34:22]request: POST /json_proto HTTP/1.0 [04:34:22]Method: POST [04:34:22]URL: /json_proto [04:34:22]Method is POST - this is cgi request [04:34:22]url: /json_proto [04:34:22]query_string will be loaded in cgi processing [04:34:22]execute_cgi json_proto POST (null) [04:34:22]execute_cgi path=json_proto method=POST [04:34:22]POST find Content-Length [04:34:22]Host: 172.17.44.196:8080 [04:34:22]Content-Length: 1296 [04:34:22]Content-Type: application/json [04:34:22] [04:34:22]POST finish read [04:34:22]Found Content-Length = 1296 [04:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272722", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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: Mbank", "payments": [ { "type": 1, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:22]execute_script... [04:34: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)272722", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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: Mbank", "payments": [ { "type": 1, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:22]POST & json_proto [04:34:22]process_json_proto [04:34:22]json parsed OK: [04:34:22]protocol is kg_v1.0 [04:34:22]action value=close_receipt [04:34:22]process_action close_receipt [04:34:22]cmd_close_receipt [04:34:22]MH_GetDate [04:34:22]Write to MH i2c: F0 00 00 45 56 8A [04:34:22]Write i2c OK [04:34:22]MH_I2C_Read... [04:34:22]Read from MH i2c: F0 [04:34:22]MH_I2C_Read... [04:34:22]Read from MH i2c: F0 09 00 [04:34:22]MH_I2C_Read... [04:34:22]Read from MH i2c: F0 09 00 45 56 00 55 88 14 67 E7 19 F8 65 48 [04:34:22]GetLastDocTimeStamp 1729398523 [04:34:22]current date 1729398869 [04:34:22]FM_GetShiftState [04:34:22]SAM_PROTO_GetShiftState [04:34:22]wFMCommunicate request_size=4 [04:34:22]MH_SAM_APDU [04:34:22]CAPDU: 80 13 01 00 [04:34:22]Write to MH i2c: E2 08 00 46 56 80 13 01 00 00 00 00 00 19 [04:34:22]Write i2c OK [04:34:22]MH_I2C_Read... [04:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:22]Read from MH i2c: E2 [04:34:22]MH_I2C_Read... [04:34:22]Read from MH i2c: E2 0E 00 [04:34:22]MH_I2C_Read... [04:34:22]Read from MH i2c: E2 0E 00 46 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5E [04:34:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [04:34:22]wFMCommunicate OK [04:34:22]SAM_PROTO_GetShiftState done [04:34:22]FM_GetShiftState done [04:34:22]opened in 1729384303 [04:34:22]opened+sec_in_day 1729470703 [04:34:22]quantity*price = 23000 [04:34:22]sum+1 = 23001 [04:34:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.38 НДС 12% : 28.67 Наличными: 0.00 Безнал.: 270.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 20 20.10.2024 04:34 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73694 ФПД: 128103799150021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T043430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73694&fm=128103799150021&tin=02508201610067®Number=0000000000161154&sum=27000 0 [04:34:23]StoreToDocumentArchive [04:34:23]shift 170 fd 73694 [04:34:23]save to /storage/0170/doc_00073694 [04:34:23]save last doc name /storage/0170/doc_00073694 to /storage/kkm_last_doc_name [04:34:23]save OK [04:34:23]Clear old archive folders... [04:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=497 [04:34:23]tlvbuf is 00FA9AE0 [04:34:23]SAM_PROTO_ClearQueue [04:34:23]wFMCommunicate request_size=4 [04:34:23]MH_SAM_APDU [04:34:23]CAPDU: 80 09 00 00 [04:34:23]Write to MH i2c: E2 08 00 53 56 80 09 00 00 00 00 00 00 1B [04:34:23]Write i2c OK [04:34:23]MH_I2C_Read... [04:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:23]Read from MH i2c: E2 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: E2 03 00 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: E2 03 00 53 56 00 90 00 1D [04:34:23]RAPDU: 90 00 [04:34:23]wFMCommunicate OK [04:34:23]SAM_PROTO_ClearQueue done [04:34:23]KKMCreateOFDPacket [04:34:23]OFDProtocolAddRootSTLVToBuf [04:34:23]FM_MakeSignedData [04:34:23]FM_MakeSignedData [04:34:23]SAM_PROTO_SignData [04:34:23]wFMCommunicate request_size=4 [04:34:23]MH_SAM_APDU [04:34:23]CAPDU: 80 0D 01 02 [04:34:23]Write to MH i2c: E2 08 00 54 56 80 0D 01 02 00 00 00 00 23 [04:34:23]Write i2c OK [04:34:23]MH_I2C_Read... [04:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:23]Read from MH i2c: E2 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: E2 03 00 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: E2 03 00 54 56 00 90 00 1E [04:34:23]RAPDU: 90 00 [04:34:23]wFMCommunicate OK [04:34:23]wFMCommunicate request_size=255 [04:34:23]MH_SAM_APDU [04:34:23]CAPDU: 80 0D 02 02 FA 03 00 F1 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 [04:34:23]Write to MH i2c: E2 02 01 55 56 80 0D 02 02 FA 00 03 00 F1 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 00 00 16 [04:34:23]Write i2c OK [04:34:23]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 55 56 00 90 00 1F [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]wFMCommunicate request_size=255 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 0D 02 02 FA 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 56 88 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 1F 01 00 35 04 06 00 74 82 7D 71 55 [04:34:24]Write to MH i2c: E2 02 01 56 56 80 0D 02 02 FA 00 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 56 88 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 1F 01 00 35 04 06 00 74 82 7D 71 55 00 00 F3 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 56 56 00 90 00 20 [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]wFMCommunicate request_size=6 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 0D 02 02 01 C5 [04:34:24]Write to MH i2c: E2 09 00 57 56 80 0D 02 02 01 00 C5 00 00 EE [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 57 56 00 90 00 21 [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 0D 03 02 [04:34:24]Write to MH i2c: E2 08 00 58 56 80 0D 03 02 00 00 00 00 29 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 0B 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 0B 00 58 56 00 2D AB 61 33 4B A1 4E C9 90 00 99 [04:34:24]RAPDU: 2D AB 61 33 4B A1 4E C9 90 00 [04:34:24]wFMCommunicate OK [04:34:24]SAM_PROTO_SignData done [04:34:24]FM_MakeSignedData done [04:34:24]CreateOFDProtocolMessage [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 11 00 00 [04:34:24]Write to MH i2c: E2 08 00 59 56 80 11 00 00 00 00 00 00 29 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 17 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 17 00 59 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 76 [04:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:34:24]wFMCommunicate OK [04:34:24]CreateOFDProtocolMessage done [04:34:24]OFDSenderStorePacket 73694 [04:34:24]StoreOFDPacket docnum=73694 [04:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 05 02 00 00 1F 50 FD 01 E5 90 5A 03 01 00 03 00 F1 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 56 88 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 1F 01 00 35 04 06 00 74 82 7D 71 55 C5 2D AB 61 33 4B A1 4E C9 [04:34:24]CheckFolder [04:34:24]dirname=/storage/ofd_packets [04:34:24]CheckFolder done [04:34:24]ProducePacketName [04:34:24]name=ofd_packets/00073694 [04:34:24]NVStorageSaveData ofd_packets/00073694 [04:34:24]File name is /storage/ofd_packets/00073694 [04:34:24]Write 547 bytes [04:34:24]NVStorageSaveData done [04:34:24]OFDSenderStorePacket done [04:34:24]KKMCreateOFDPacket done [04:34:24]NVStorageSaveData kkm_last_timestamp [04:34:24]File name is /storage/kkm_last_timestamp [04:34:24]Write 4 bytes [04:34:24]NVStorageSaveData done [04:34:24]ExternCall_PrintAddStr [04:34:24]wPrintStart [04:34:24]Write to MH i2c: 01 00 00 5A 56 B0 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: 01 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: 01 07 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: 01 07 00 5A 56 00 00 00 00 00 FF 0F C5 [04:34:24]RasterBufferAndPrint [04:34:24]line Счет N : (3)272722 [04:34:24]line ИНН: 02508201610067 [04:34:24]line Контрольно-Кассовый Чек [04:34:24]line ПРОДАЖА [04:34:24]line Товар: 2000036210013 [04:34:24]line Кофе Капучино (GABB TRADE) [04:34:24]line 2.000 * 115.00 [04:34:24]line = 230.00 [04:34:24]line НДС 12% НСП 1% [04:34:24]line > о реализуемом товаре [04:34:24]line Товар: 4700000310173 [04:34:24]line Вода Адыгене 0,5л б/г [04:34:24]line 1.000 * 30.00 [04:34:24]line = 30.00 [04:34:24]line НДС 12% НСП 1% [04:34:24]line > о реализуемом товаре [04:34:24]line Товар: 46226617 [04:34:24]line Mentos ПВ Нежная Мята 6*100*2г [04:34:24]line 1.000 * 10.00 [04:34:24]line = 10.00 [04:34:24]line НДС 12% НСП 1% [04:34:24]line > о реализуемом товаре [04:34:24]line ИТОГО: 270.00 [04:34:24]line НСП 1% : 2.38 [04:34:24]line НДС 12% : 28.67 [04:34:24]line Наличными: 0.00 [04:34:24]line Безнал.: 270.00 [04:34:24]line Место: АЗС № 133 "Партнер Нефть" [04:34:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [04:34:24]line СНО: Общий режим [04:34:24]line Чек 20 20.10.2024 04:34 [04:34:24]line Смена: 170 ФФД: 1.0 [04:34:24]line ЗНМ: 0300000020 [04:34:24]line РНМ: 0000000000161154 [04:34:24]line Версия ККМ: v1.0 [04:34:24]line Платежная система: Mbank [04:34:24]line ФМ: 0000000000963323 [04:34:24]line ФД: 73694 [04:34:24]line ФПД: 128103799150021 [04:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T043430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73694&fm=128103799150021&tin=02508201610067®Number=0000000000161154&sum=27000 [04:34:24]line 0 [04:34:24]written 0, free lines is 4095 [04:34:24]OFD Sender: Processing packet 73694 [packets to send 15, broken 14] [04:34:24]ProducePacketName [04:34:24]name=ofd_packets/00073694 [04:34:24]OFD Sender: To server: pG, [04:34:24]CommunicateWithHost lk.salyk.kg:30040 [04:34:24]ConnectInit lk.salyk.kg [04:34:24]Connected sock=9 [04:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 05 02 00 00 1F 50 FD 01 E5 90 5A 03 01 00 03 00 F1 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 56 88 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 1F 01 00 35 04 06 00 74 82 7D 71 55 C5 2D AB 61 33 4B A1 4E C9 [04:34:25]Write to MH i2c: 01 00 00 8F 56 E5 [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: 01 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: 01 07 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: 01 07 00 8F 56 00 00 00 00 00 E4 0B DB [04:34:25]RasterBufferAndPrint [04:34:25]line [04:34:25]line [04:34:25]line [04:34:25]line [04:34:25]line [04:34:25]written 0, free lines is 3050 [04:34:25]MH_Cut [04:34:25]Write to MH i2c: D1 01 00 96 56 01 BE [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: D1 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: D1 01 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: D1 01 00 96 56 00 BD [04:34:25]Write to MH i2c: 01 00 00 97 56 ED [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 16 27 47 00 6D 39 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 39 36 33 33 32 33 10 04 04 00 DE 1F 01 00 F4 03 04 00 3C 31 14 67 B6 04 01 00 00 04 9E 95 EF 18 B9 24 35 [04:34:25]CommunicateWithHost err = 0 [04:34:25]CheckOFDResponse [04:34:25]1017 (14) - 77093643461234 [04:34:25]1041 (16) - 0000000000963323 [04:34:25]1040 (4) - 73694 [04:34:25]1012 (4) - 19.10.2024 22:22 [04:34:25]1206 (1) - 0 [04:34:25]OFD Sender: Remove packet 73694 [04:34:25]ProducePacketName [04:34:25]name=ofd_packets/00073694 [04:34:25]NVStorageDeleteData [04:34:25]OFD Sender: No OFD packet to send [04:34:26]*** Cut start [04:34:26]*** Partial cut [04:34:26]*** CUTSNS_PIN = 1 [04:34:26]*** CUTSNS_PIN = 0 [04:34:26]*** Brake cut motor [04:34:26]Read from MH i2c: 01 [04:34:26]MH_I2C_Read... [04:34:26]*** Stop cut motor [04:34:26]*** Cut end [04:34:26]Read from MH i2c: 01 07 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 07 00 97 56 00 00 00 00 00 FF 0F 02 [04:34:26]process_action close_receipt done [04:34:26]requested_data is exist [04:34:26]produce_requested_data [04:34:26]requested_item fm.sn is exist - process it [04:34:26]wFMCommunicate request_size=4 [04:34:26]MH_SAM_APDU [04:34:26]CAPDU: 80 11 00 00 [04:34:26]Write to MH i2c: E2 08 00 98 56 80 11 00 00 00 00 00 00 68 [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:26]Read from MH i2c: E2 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: E2 17 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: E2 17 00 98 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B5 [04:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:34:26]wFMCommunicate OK [04:34:26]requested_item fd.num is exist - process it [04:34:26]SAM_PROTO_GetFieldsCounters [04:34:26]wFMCommunicate request_size=4 [04:34:26]MH_SAM_APDU [04:34:26]CAPDU: 80 13 00 00 [04:34:26]Write to MH i2c: E2 08 00 99 56 80 13 00 00 00 00 00 00 6B [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:27]Read from MH i2c: E2 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 62 00 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 62 00 99 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DE 1F 01 00 0E 04 04 00 AA 00 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 63 [04:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DE 1F 01 00 0E 04 04 00 AA 00 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 [04:34:27]wFMCommunicate OK [04:34:27]SAM_PROTO_GetFieldsCounters done [04:34:27]requested_item shift.num is exist - process it [04:34:27]requested_item shift.opened is exist - process it [04:34:27]req_shift_opened [04:34:27]FM_GetShiftState [04:34:27]SAM_PROTO_GetShiftState [04:34:27]wFMCommunicate request_size=4 [04:34:27]MH_SAM_APDU [04:34:27]CAPDU: 80 13 01 00 [04:34:27]Write to MH i2c: E2 08 00 9A 56 80 13 01 00 00 00 00 00 6D [04:34:27]Write i2c OK [04:34:27]MH_I2C_Read... [04:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:27]Read from MH i2c: E2 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 0E 00 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 0E 00 9A 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B2 [04:34:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [04:34:27]wFMCommunicate OK [04:34:27]SAM_PROTO_GetShiftState done [04:34:27]FM_GetShiftState done [04:34:27]req_shift_opened done [04:34:27]requested_item shift.open_date is exist - process it [04:34:27]req_shift_open_date [04:34:27]req_shift_open_date done [04:34:27]produce_requested_data done [04:34:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73694,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [04:34:27]process_action_free close_receipt [04:34:27]json_value_free [04:34:27]json_value_free done [04:34:27]process_json_proto returns [04:34:27]Send response to host [04:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73694,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [04:34:27]free response buf [04:34:27]execute_script done [04:34:27]execute_script returns [04:34:27]free content buf [04:34:27]Sock 8.Close socket [04:34:27]Sock 8.Thread stoped [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:01]accept exits with 10 [04:41:01]New connection [04:41:01]New thread 3066555748 created [04:41:01]Thread 3066699108 joined [04:41:01]Waiting for new connection... [04:41:01] Sock 10.Parse request [04:41:01]Sock 10.Check first char [04:41:01]Sock 10.First char is OK [04:41:01]request: POST /json_proto HTTP/1.0 [04:41:01]Method: POST [04:41:01]URL: /json_proto [04:41:01]Method is POST - this is cgi request [04:41:01]url: /json_proto [04:41:01]query_string will be loaded in cgi processing [04:41:01]execute_cgi json_proto POST (null) [04:41:01]execute_cgi path=json_proto method=POST [04:41:01]POST find Content-Length [04:41:01]Host: 172.17.44.196:8080 [04:41:01]Content-Length: 903 [04:41:01]Content-Type: application/json [04:41:01] [04:41:01]POST finish read [04:41:01]Found Content-Length = 903 [04:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272723", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:01]execute_script... [04:41:01]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)272723", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:01]POST & json_proto [04:41:01]process_json_proto [04:41:01]json parsed OK: [04:41:01]protocol is kg_v1.0 [04:41:01]action value=close_receipt [04:41:01]process_action close_receipt [04:41:01]cmd_close_receipt [04:41:01]MH_GetDate [04:41:01]Write to MH i2c: F0 00 00 9B 56 E0 [04:41:01]Write i2c OK [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: F0 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: F0 09 00 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: F0 09 00 9B 56 00 E5 89 14 67 E7 19 F8 65 2F [04:41:01]GetLastDocTimeStamp 1729398870 [04:41:01]current date 1729399269 [04:41:01]FM_GetShiftState [04:41:01]SAM_PROTO_GetShiftState [04:41:01]wFMCommunicate request_size=4 [04:41:01]MH_SAM_APDU [04:41:01]CAPDU: 80 13 01 00 [04:41:01]Write to MH i2c: E2 08 00 9C 56 80 13 01 00 00 00 00 00 6F [04:41:01]Write i2c OK [04:41:01]MH_I2C_Read... [04:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:02]Read from MH i2c: E2 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 0E 00 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 0E 00 9C 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B4 [04:41:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [04:41:02]wFMCommunicate OK [04:41:02]SAM_PROTO_GetShiftState done [04:41:02]FM_GetShiftState done [04:41:02]opened in 1729384303 [04:41:02]opened+sec_in_day 1729470703 [04:41:02]quantity*price = 11500 [04:41:02]sum+1 = 11501 [04:41:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 171.00 НСП 1% : 1.52 НДС 12% : 18.16 Наличными: 171.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 21 20.10.2024 04:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73695 ФПД: 222600303920163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T044109&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73695&fm=222600303920163&tin=02508201610067®Number=0000000000161154&sum=17100 0 [04:41:03]StoreToDocumentArchive [04:41:03]shift 170 fd 73695 [04:41:03]save to /storage/0170/doc_00073695 [04:41:03]save last doc name /storage/0170/doc_00073695 to /storage/kkm_last_doc_name [04:41:03]save OK [04:41:03]Clear old archive folders... [04:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=391 [04:41:03]tlvbuf is 01005990 [04:41:03]SAM_PROTO_ClearQueue [04:41:03]wFMCommunicate request_size=4 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 09 00 00 [04:41:03]Write to MH i2c: E2 08 00 A9 56 80 09 00 00 00 00 00 00 71 [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 A9 56 00 90 00 73 [04:41:03]RAPDU: 90 00 [04:41:03]wFMCommunicate OK [04:41:03]SAM_PROTO_ClearQueue done [04:41:03]KKMCreateOFDPacket [04:41:03]OFDProtocolAddRootSTLVToBuf [04:41:03]FM_MakeSignedData [04:41:03]FM_MakeSignedData [04:41:03]SAM_PROTO_SignData [04:41:03]wFMCommunicate request_size=4 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 0D 01 02 [04:41:03]Write to MH i2c: E2 08 00 AA 56 80 0D 01 02 00 00 00 00 79 [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 AA 56 00 90 00 74 [04:41:03]RAPDU: 90 00 [04:41:03]wFMCommunicate OK [04:41:03]wFMCommunicate request_size=255 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 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 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [04:41:03]Write to MH i2c: E2 02 01 AB 56 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 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 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 5F [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 AB 56 00 90 00 75 [04:41:03]RAPDU: 90 00 [04:41:03]wFMCommunicate OK [04:41:03]wFMCommunicate request_size=150 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 15 00 00 00 F4 03 04 00 E5 89 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 1F 01 00 35 04 06 00 CA 74 2C 0A C4 23 [04:41:03]Write to MH i2c: E2 99 00 AC 56 80 0D 02 02 91 00 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 15 00 00 00 F4 03 04 00 E5 89 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 1F 01 00 35 04 06 00 CA 74 2C 0A C4 23 00 00 87 [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 AC 56 00 90 00 76 [04:41:03]RAPDU: 90 00 [04:41:03]wFMCommunicate OK [04:41:03]wFMCommunicate request_size=4 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 0D 03 02 [04:41:03]Write to MH i2c: E2 08 00 AD 56 80 0D 03 02 00 00 00 00 7E [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 0B 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 0B 00 AD 56 00 4F A0 29 DC FE E9 92 32 90 00 1E [04:41:03]RAPDU: 4F A0 29 DC FE E9 92 32 90 00 [04:41:03]wFMCommunicate OK [04:41:03]SAM_PROTO_SignData done [04:41:03]FM_MakeSignedData done [04:41:03]CreateOFDProtocolMessage [04:41:03]wFMCommunicate request_size=4 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 11 00 00 [04:41:03]Write to MH i2c: E2 08 00 AE 56 80 11 00 00 00 00 00 00 7E [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 17 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 17 00 AE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [04:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:41:03]wFMCommunicate OK [04:41:03]CreateOFDProtocolMessage done [04:41:03]OFDSenderStorePacket 73695 [04:41:03]StoreOFDPacket docnum=73695 [04:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 01 00 00 31 86 93 01 47 1E 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 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 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 15 00 00 00 F4 03 04 00 E5 89 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 1F 01 00 35 04 06 00 CA 74 2C 0A C4 23 4F A0 29 DC FE E9 92 32 [04:41:03]CheckFolder [04:41:03]dirname=/storage/ofd_packets [04:41:03]CheckFolder done [04:41:03]ProducePacketName [04:41:03]name=ofd_packets/00073695 [04:41:03]NVStorageSaveData ofd_packets/00073695 [04:41:03]File name is /storage/ofd_packets/00073695 [04:41:03]Write 441 bytes [04:41:03]NVStorageSaveData done [04:41:03]OFDSenderStorePacket done [04:41:03]KKMCreateOFDPacket done [04:41:03]NVStorageSaveData kkm_last_timestamp [04:41:03]File name is /storage/kkm_last_timestamp [04:41:03]Write 4 bytes [04:41:03]NVStorageSaveData done [04:41:03]ExternCall_PrintAddStr [04:41:03]wPrintStart [04:41:03]Write to MH i2c: 01 00 00 AF 56 05 [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: 01 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: 01 07 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: 01 07 00 AF 56 00 00 00 00 00 FF 0F 1A [04:41:03]RasterBufferAndPrint [04:41:03]line Счет N : (3)272723 [04:41:03]line ИНН: 02508201610067 [04:41:04]line Контрольно-Кассовый Чек [04:41:04]line ПРОДАЖА [04:41:04]line Товар: 2000036210013 [04:41:04]line Кофе Капучино (GABB TRADE) [04:41:04]line 1.000 * 115.00 [04:41:04]line = 115.00 [04:41:04]line НДС 12% НСП 1% [04:41:04]line > о реализуемом товаре [04:41:04]line Товар: 4607065001445 [04:41:04]line Шок батончик Snickers 50,5г [04:41:04]line 1.000 * 56.00 [04:41:04]line = 56.00 [04:41:04]line НДС 12% НСП 1% [04:41:04]line > о реализуемом товаре [04:41:04]line ИТОГО: 171.00 [04:41:04]line НСП 1% : 1.52 [04:41:04]line НДС 12% : 18.16 [04:41:04]line Наличными: 171.00 [04:41:04]line Безнал.: 0.00 [04:41:04]line Место: АЗС № 133 "Партнер Нефть" [04:41:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [04:41:04]line СНО: Общий режим [04:41:04]line Чек 21 20.10.2024 04:41 [04:41:04]line Смена: 170 ФФД: 1.0 [04:41:04]line ЗНМ: 0300000020 [04:41:04]line РНМ: 0000000000161154 [04:41:04]line Версия ККМ: v1.0 [04:41:04]line ФМ: 0000000000963323 [04:41:04]line ФД: 73695 [04:41:04]line ФПД: 222600303920163 [04:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T044109&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73695&fm=222600303920163&tin=02508201610067®Number=0000000000161154&sum=17100 [04:41:04]line 0 [04:41:04]OFD Sender: Processing packet 73695 [packets to send 15, broken 14] [04:41:04]ProducePacketName [04:41:04]name=ofd_packets/00073695 [04:41:04]OFD Sender: To server: pG, [04:41:04]CommunicateWithHost lk.salyk.kg:30040 [04:41:04]ConnectInit lk.salyk.kg [04:41:04]written 0, free lines is 4095 [04:41:04]Write to MH i2c: 01 00 00 DC 56 32 [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: 01 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: 01 07 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: 01 07 00 DC 56 00 00 00 00 00 66 0C AB [04:41:04]RasterBufferAndPrint [04:41:04]line [04:41:04]line [04:41:04]line [04:41:04]line [04:41:04]line [04:41:04]written 0, free lines is 3178 [04:41:04]MH_Cut [04:41:04]Write to MH i2c: D1 01 00 E3 56 01 0B [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: D1 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: D1 01 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: D1 01 00 E3 56 00 0A [04:41:04]Write to MH i2c: 01 00 00 E4 56 3A [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:05]*** Cut start [04:41:05]*** Partial cut [04:41:05]*** CUTSNS_PIN = 1 [04:41:05]*** CUTSNS_PIN = 0 [04:41:05]*** Brake cut motor [04:41:06]Read from MH i2c: 01 [04:41:06]MH_I2C_Read... [04:41:06]*** Stop cut motor [04:41:06]*** Cut end [04:41:06]Read from MH i2c: 01 07 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: 01 07 00 E4 56 00 00 00 00 00 FF 0F 4F [04:41:06]process_action close_receipt done [04:41:06]requested_data is exist [04:41:06]produce_requested_data [04:41:06]requested_item fm.sn is exist - process it [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 11 00 00 [04:41:06]Write to MH i2c: E2 08 00 E5 56 80 11 00 00 00 00 00 00 B5 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 17 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 17 00 E5 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [04:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:41:06]wFMCommunicate OK [04:41:06]requested_item fd.num is exist - process it [04:41:06]SAM_PROTO_GetFieldsCounters [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 13 00 00 [04:41:06]Write to MH i2c: E2 08 00 E6 56 80 13 00 00 00 00 00 00 B8 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 62 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 62 00 E6 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DF 1F 01 00 0E 04 04 00 AA 00 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 B4 [04:41:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DF 1F 01 00 0E 04 04 00 AA 00 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 [04:41:06]wFMCommunicate OK [04:41:06]SAM_PROTO_GetFieldsCounters done [04:41:06]requested_item shift.num is exist - process it [04:41:06]requested_item shift.opened is exist - process it [04:41:06]req_shift_opened [04:41:06]FM_GetShiftState [04:41:06]SAM_PROTO_GetShiftState [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 13 01 00 [04:41:06]Write to MH i2c: E2 08 00 E7 56 80 13 01 00 00 00 00 00 BA [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 0E 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 0E 00 E7 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [04:41:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [04:41:06]wFMCommunicate OK [04:41:06]SAM_PROTO_GetShiftState done [04:41:06]FM_GetShiftState done [04:41:06]req_shift_opened done [04:41:06]requested_item shift.open_date is exist - process it [04:41:06]req_shift_open_date [04:41:06]req_shift_open_date done [04:41:06]produce_requested_data done [04:41:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73695,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [04:41:06]process_action_free close_receipt [04:41:06]json_value_free [04:41:06]json_value_free done [04:41:06]process_json_proto returns [04:41:06]Send response to host [04:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73695,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [04:41:06]free response buf [04:41:06]execute_script done [04:41:06]execute_script returns [04:41:06]free content buf [04:41:06]Sock 10.Close socket [04:41:06]Sock 10.Thread stoped [04:43:14]ConnectInit Can't connect to host [04:43:14]CommunicateWithHost connect error [04:43:14]CommunicateWithHost err = -1 [04:43:14]OFD Sender: Server communicate error [04:43:19]OFD Sender: Processing packet 73695 [packets to send 15, broken 14] [04:43:19]ProducePacketName [04:43:19]name=ofd_packets/00073695 [04:43:19]OFD Sender: To server: pG, [04:43:19]CommunicateWithHost lk.salyk.kg:30040 [04:43:19]ConnectInit lk.salyk.kg [04:43:19]Connected sock=9 [04:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 01 00 00 31 86 93 01 47 1E 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 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 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 07 00 00 00 00 07 04 06 00 CC 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 15 00 00 00 F4 03 04 00 E5 89 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 1F 01 00 35 04 06 00 CA 74 2C 0A C4 23 4F A0 29 DC FE E9 92 32 [04:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 50 04 47 00 E8 7A 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 39 36 33 33 32 33 10 04 04 00 DF 1F 01 00 F4 03 04 00 52 33 14 67 B6 04 01 00 00 7A 93 9C 3B 03 6C E3 B1 [04:43:19]CommunicateWithHost err = 0 [04:43:19]CheckOFDResponse [04:43:19]1017 (14) - 77093643461234 [04:43:19]1041 (16) - 0000000000963323 [04:43:19]1040 (4) - 73695 [04:43:19]1012 (4) - 19.10.2024 22:31 [04:43:19]1206 (1) - 0 [04:43:19]OFD Sender: Remove packet 73695 [04:43:19]ProducePacketName [04:43:19]name=ofd_packets/00073695 [04:43:19]NVStorageDeleteData [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]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:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]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:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]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:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:38]accept exits with 8 [05:33:38]New connection [05:33:38]New thread 3066699108 created [05:33:38]Thread 3066555748 joined [05:33:38]Waiting for new connection... [05:33:38] Sock 8.Parse request [05:33:38]Sock 8.Check first char [05:33:38]Sock 8.First char is OK [05:33:38]request: POST /json_proto HTTP/1.0 [05:33:38]Method: POST [05:33:38]URL: /json_proto [05:33:38]Method is POST - this is cgi request [05:33:38]url: /json_proto [05:33:38]query_string will be loaded in cgi processing [05:33:38]execute_cgi json_proto POST (null) [05:33:38]execute_cgi path=json_proto method=POST [05:33:38]POST find Content-Length [05:33:38]Host: 172.17.44.196:8080 [05:33:38]Content-Length: 654 [05:33:38]Content-Type: application/json [05:33:38] [05:33:38]POST finish read [05:33:38]Found Content-Length = 654 [05:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272724", "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" ] } } [05:33:38]execute_script... [05:33: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)272724", "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" ] } } [05:33:38]POST & json_proto [05:33:38]process_json_proto [05:33:38]json parsed OK: [05:33:38]protocol is kg_v1.0 [05:33:38]action value=close_receipt [05:33:38]process_action close_receipt [05:33:38]cmd_close_receipt [05:33:38]MH_GetDate [05:33:38]Write to MH i2c: F0 00 00 E8 56 2D [05:33:38]Write i2c OK [05:33:38]MH_I2C_Read... [05:33:38]Read from MH i2c: F0 [05:33:38]MH_I2C_Read... [05:33:38]Read from MH i2c: F0 09 00 [05:33:38]MH_I2C_Read... [05:33:38]Read from MH i2c: F0 09 00 E8 56 00 3A 96 14 67 E7 19 F8 65 DE [05:33:38]GetLastDocTimeStamp 1729399269 [05:33:38]current date 1729402426 [05:33:38]FM_GetShiftState [05:33:38]SAM_PROTO_GetShiftState [05:33:38]wFMCommunicate request_size=4 [05:33:38]MH_SAM_APDU [05:33:38]CAPDU: 80 13 01 00 [05:33:38]Write to MH i2c: E2 08 00 E9 56 80 13 01 00 00 00 00 00 BC [05:33:38]Write i2c OK [05:33:38]MH_I2C_Read... [05:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:38]Read from MH i2c: E2 [05:33:38]MH_I2C_Read... [05:33:38]Read from MH i2c: E2 0E 00 [05:33:38]MH_I2C_Read... [05:33:38]Read from MH i2c: E2 0E 00 E9 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [05:33:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [05:33:38]wFMCommunicate OK [05:33:38]SAM_PROTO_GetShiftState done [05:33:38]FM_GetShiftState done [05:33:38]opened in 1729384303 [05:33:38]opened+sec_in_day 1729470703 [05:33:38]quantity*price = 4900 [05:33:38]sum+1 = 4901 [05:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 22 20.10.2024 05:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73696 ФПД: 179100792093837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T053346&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73696&fm=179100792093837&tin=02508201610067®Number=0000000000161154&sum=4900 0 [05:33:39]StoreToDocumentArchive [05:33:39]shift 170 fd 73696 [05:33:39]save to /storage/0170/doc_00073696 [05:33:39]save last doc name /storage/0170/doc_00073696 to /storage/kkm_last_doc_name [05:33:39]save OK [05:33:39]Clear old archive folders... [05:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=289 [05:33:39]tlvbuf is 010D6110 [05:33:39]SAM_PROTO_ClearQueue [05:33:39]wFMCommunicate request_size=4 [05:33:39]MH_SAM_APDU [05:33:39]CAPDU: 80 09 00 00 [05:33:39]Write to MH i2c: E2 08 00 F6 56 80 09 00 00 00 00 00 00 BE [05:33:39]Write i2c OK [05:33:39]MH_I2C_Read... [05:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:33:39]Read from MH i2c: E2 [05:33:39]MH_I2C_Read... [05:33:39]Read from MH i2c: E2 03 00 [05:33:39]MH_I2C_Read... [05:33:39]Read from MH i2c: E2 03 00 F6 56 00 90 00 C0 [05:33:39]RAPDU: 90 00 [05:33:39]wFMCommunicate OK [05:33:39]SAM_PROTO_ClearQueue done [05:33:39]KKMCreateOFDPacket [05:33:39]OFDProtocolAddRootSTLVToBuf [05:33:39]FM_MakeSignedData [05:33:39]FM_MakeSignedData [05:33:39]SAM_PROTO_SignData [05:33:39]wFMCommunicate request_size=4 [05:33:39]MH_SAM_APDU [05:33:39]CAPDU: 80 0D 01 02 [05:33:39]Write to MH i2c: E2 08 00 F7 56 80 0D 01 02 00 00 00 00 C6 [05:33:39]Write i2c OK [05:33:39]MH_I2C_Read... [05:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:33:39]Read from MH i2c: E2 [05:33:39]MH_I2C_Read... [05:33:39]Read from MH i2c: E2 03 00 [05:33:39]MH_I2C_Read... [05:33:39]Read from MH i2c: E2 03 00 F7 56 00 90 00 C1 [05:33:39]RAPDU: 90 00 [05:33:39]wFMCommunicate OK [05:33:39]wFMCommunicate request_size=255 [05:33:39]MH_SAM_APDU [05:33:39]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 16 00 00 00 F4 03 04 00 3A 96 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 [05:33:39]Write to MH i2c: E2 02 01 F8 56 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 16 00 00 00 F4 03 04 00 3A 96 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 00 00 98 [05:33:39]Write i2c OK [05:33:39]MH_I2C_Read... [05:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:40]Read from MH i2c: E2 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 03 00 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 03 00 F8 56 00 90 00 C2 [05:33:40]RAPDU: 90 00 [05:33:40]wFMCommunicate OK [05:33:40]wFMCommunicate request_size=48 [05:33:40]MH_SAM_APDU [05:33:40]CAPDU: 80 0D 02 02 2B 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 1F 01 00 35 04 06 00 A2 E4 27 17 7C 8D [05:33:40]Write to MH i2c: E2 33 00 F9 56 80 0D 02 02 2B 00 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 1F 01 00 35 04 06 00 A2 E4 27 17 7C 8D 00 00 83 [05:33:40]Write i2c OK [05:33:40]MH_I2C_Read... [05:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:40]Read from MH i2c: E2 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 03 00 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 03 00 F9 56 00 90 00 C3 [05:33:40]RAPDU: 90 00 [05:33:40]wFMCommunicate OK [05:33:40]wFMCommunicate request_size=4 [05:33:40]MH_SAM_APDU [05:33:40]CAPDU: 80 0D 03 02 [05:33:40]Write to MH i2c: E2 08 00 FA 56 80 0D 03 02 00 00 00 00 CB [05:33:40]Write i2c OK [05:33:40]MH_I2C_Read... [05:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:33:40]Read from MH i2c: E2 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 0B 00 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 0B 00 FA 56 00 F9 D2 5E 43 5E A7 80 29 90 00 E6 [05:33:40]RAPDU: F9 D2 5E 43 5E A7 80 29 90 00 [05:33:40]wFMCommunicate OK [05:33:40]SAM_PROTO_SignData done [05:33:40]FM_MakeSignedData done [05:33:40]CreateOFDProtocolMessage [05:33:40]wFMCommunicate request_size=4 [05:33:40]MH_SAM_APDU [05:33:40]CAPDU: 80 11 00 00 [05:33:40]Write to MH i2c: E2 08 00 FB 56 80 11 00 00 00 00 00 00 CB [05:33:40]Write i2c OK [05:33:40]MH_I2C_Read... [05:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:40]Read from MH i2c: E2 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 17 00 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: E2 17 00 FB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [05:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [05:33:40]wFMCommunicate OK [05:33:40]CreateOFDProtocolMessage done [05:33:40]OFDSenderStorePacket 73696 [05:33:40]StoreOFDPacket docnum=73696 [05:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 01 00 00 EA AA 2D 01 8F A4 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 16 00 00 00 F4 03 04 00 3A 96 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 1F 01 00 35 04 06 00 A2 E4 27 17 7C 8D F9 D2 5E 43 5E A7 80 29 [05:33:40]CheckFolder [05:33:40]dirname=/storage/ofd_packets [05:33:40]CheckFolder done [05:33:40]ProducePacketName [05:33:40]name=ofd_packets/00073696 [05:33:40]NVStorageSaveData ofd_packets/00073696 [05:33:40]File name is /storage/ofd_packets/00073696 [05:33:40]Write 339 bytes [05:33:40]NVStorageSaveData done [05:33:40]OFDSenderStorePacket done [05:33:40]KKMCreateOFDPacket done [05:33:40]NVStorageSaveData kkm_last_timestamp [05:33:40]File name is /storage/kkm_last_timestamp [05:33:40]Write 4 bytes [05:33:40]NVStorageSaveData done [05:33:40]ExternCall_PrintAddStr [05:33:40]wPrintStart [05:33:40]Write to MH i2c: 01 00 00 FC 56 52 [05:33:40]Write i2c OK [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: 01 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: 01 07 00 [05:33:40]MH_I2C_Read... [05:33:40]Read from MH i2c: 01 07 00 FC 56 00 00 00 00 00 FF 0F 67 [05:33:40]RasterBufferAndPrint [05:33:40]line Счет N : (3)272724 [05:33:40]line ИНН: 02508201610067 [05:33:40]line Контрольно-Кассовый Чек [05:33:40]line ПРОДАЖА [05:33:40]line Товар: 46214638 [05:33:40]line Р/ж mentos p.white нежная мята 16/15,5г [05:33:40]line 1.000 * 49.00 [05:33:40]line = 49.00 [05:33:40]line НДС 12% НСП 1% [05:33:40]line > о реализуемом товаре [05:33:40]line ИТОГО: 49.00 [05:33:40]line НСП 1% : 0.43 [05:33:40]line НДС 12% : 5.20 [05:33:40]line Наличными: 49.00 [05:33:40]line Безнал.: 0.00 [05:33:40]line Место: АЗС № 133 "Партнер Нефть" [05:33:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [05:33:40]line СНО: Общий режим [05:33:40]line Чек 22 20.10.2024 05:33 [05:33:40]line Смена: 170 ФФД: 1.0 [05:33:40]line ЗНМ: 0300000020 [05:33:40]line РНМ: 0000000000161154 [05:33:40]line Версия ККМ: v1.0 [05:33:40]line ФМ: 0000000000963323 [05:33:40]line ФД: 73696 [05:33:40]line ФПД: 179100792093837 [05:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T053346&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73696&fm=179100792093837&tin=02508201610067®Number=0000000000161154&sum=4900 [05:33:40]line 0 [05:33:40]OFD Sender: Processing packet 73696 [packets to send 15, broken 14] [05:33:40]ProducePacketName [05:33:40]name=ofd_packets/00073696 [05:33:40]OFD Sender: To server: pG, [05:33:40]CommunicateWithHost lk.salyk.kg:30040 [05:33:40]ConnectInit lk.salyk.kg [05:33:40]written 0, free lines is 4095 [05:33:40]Connected sock=10 [05:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 01 00 00 EA AA 2D 01 8F A4 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 16 00 00 00 F4 03 04 00 3A 96 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 1F 01 00 35 04 06 00 A2 E4 27 17 7C 8D F9 D2 5E 43 5E A7 80 29 [05:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 65 2C 47 00 23 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 39 36 33 33 32 33 10 04 04 00 E0 1F 01 00 F4 03 04 00 20 3F 14 67 B6 04 01 00 00 61 A2 D0 B2 7D 97 E1 66 [05:33:41]CommunicateWithHost err = 0 [05:33:41]CheckOFDResponse [05:33:41]1017 (14) - 77093643461234 [05:33:41]1041 (16) - 0000000000963323 [05:33:41]1040 (4) - 73696 [05:33:41]1012 (4) - 19.10.2024 23:22 [05:33:41]1206 (1) - 0 [05:33:41]OFD Sender: Remove packet 73696 [05:33:41]ProducePacketName [05:33:41]name=ofd_packets/00073696 [05:33:41]NVStorageDeleteData [05:33:41]Write to MH i2c: 01 00 00 24 57 7B [05:33:41]Write i2c OK [05:33:41]MH_I2C_Read... [05:33:41]Read from MH i2c: 01 [05:33:41]MH_I2C_Read... [05:33:41]Read from MH i2c: 01 07 00 [05:33:41]MH_I2C_Read... [05:33:41]Read from MH i2c: 01 07 00 24 57 00 00 00 00 00 CE 0C 5C [05:33:41]RasterBufferAndPrint [05:33:41]line [05:33:41]line [05:33:41]line [05:33:41]line [05:33:41]line [05:33:41]written 0, free lines is 3283 [05:33:41]MH_Cut [05:33:41]Write to MH i2c: D1 01 00 2B 57 01 54 [05:33:41]Write i2c OK [05:33:41]MH_I2C_Read... [05:33:41]Read from MH i2c: D1 [05:33:41]MH_I2C_Read... [05:33:41]Read from MH i2c: D1 01 00 [05:33:41]MH_I2C_Read... [05:33:41]Read from MH i2c: D1 01 00 2B 57 00 53 [05:33:41]Write to MH i2c: 01 00 00 2C 57 83 [05:33:41]Write i2c OK [05:33:41]MH_I2C_Read... [05:33:41]OFD Sender: No OFD packet to send [05:33:42]*** Cut start [05:33:42]*** Partial cut [05:33:42]*** CUTSNS_PIN = 1 [05:33:42]*** CUTSNS_PIN = 0 [05:33:42]*** Brake cut motor [05:33:42]Read from MH i2c: 01 [05:33:42]MH_I2C_Read... [05:33:42]*** Stop cut motor [05:33:42]*** Cut end [05:33:42]Read from MH i2c: 01 07 00 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: 01 07 00 2C 57 00 00 00 00 00 FF 0F 98 [05:33:42]process_action close_receipt done [05:33:42]requested_data is exist [05:33:42]produce_requested_data [05:33:42]requested_item fm.sn is exist - process it [05:33:42]wFMCommunicate request_size=4 [05:33:42]MH_SAM_APDU [05:33:42]CAPDU: 80 11 00 00 [05:33:42]Write to MH i2c: E2 08 00 2D 57 80 11 00 00 00 00 00 00 FE [05:33:42]Write i2c OK [05:33:42]MH_I2C_Read... [05:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:42]Read from MH i2c: E2 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: E2 17 00 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: E2 17 00 2D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [05:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [05:33:42]wFMCommunicate OK [05:33:42]requested_item fd.num is exist - process it [05:33:42]SAM_PROTO_GetFieldsCounters [05:33:42]wFMCommunicate request_size=4 [05:33:42]MH_SAM_APDU [05:33:42]CAPDU: 80 13 00 00 [05:33:42]Write to MH i2c: E2 08 00 2E 57 80 13 00 00 00 00 00 00 01 [05:33:42]Write i2c OK [05:33:42]MH_I2C_Read... [05:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:33:42]Read from MH i2c: E2 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: E2 62 00 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: E2 62 00 2E 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E0 1F 01 00 0E 04 04 00 AA 00 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 01 [05:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E0 1F 01 00 0E 04 04 00 AA 00 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 [05:33:42]wFMCommunicate OK [05:33:42]SAM_PROTO_GetFieldsCounters done [05:33:42]requested_item shift.num is exist - process it [05:33:42]requested_item shift.opened is exist - process it [05:33:42]req_shift_opened [05:33:42]FM_GetShiftState [05:33:42]SAM_PROTO_GetShiftState [05:33:42]wFMCommunicate request_size=4 [05:33:42]MH_SAM_APDU [05:33:42]CAPDU: 80 13 01 00 [05:33:42]Write to MH i2c: E2 08 00 2F 57 80 13 01 00 00 00 00 00 03 [05:33:42]Write i2c OK [05:33:42]MH_I2C_Read... [05:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:42]Read from MH i2c: E2 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: E2 0E 00 [05:33:42]MH_I2C_Read... [05:33:42]Read from MH i2c: E2 0E 00 2F 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 48 [05:33:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [05:33:42]wFMCommunicate OK [05:33:42]SAM_PROTO_GetShiftState done [05:33:42]FM_GetShiftState done [05:33:42]req_shift_opened done [05:33:42]requested_item shift.open_date is exist - process it [05:33:42]req_shift_open_date [05:33:42]req_shift_open_date done [05:33:42]produce_requested_data done [05:33:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73696,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [05:33:42]process_action_free close_receipt [05:33:42]json_value_free [05:33:42]json_value_free done [05:33:42]process_json_proto returns [05:33:42]Send response to host [05:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73696,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [05:33:42]free response buf [05:33:42]execute_script done [05:33:42]execute_script returns [05:33:42]free content buf [05:33:42]Sock 8.Close socket [05:33:42]Sock 8.Thread stoped [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:02]accept exits with 9 [05:40:02]New connection [05:40:02]New thread 3066555748 created [05:40:02]Thread 3066699108 joined [05:40:02]Waiting for new connection... [05:40:02] Sock 9.Parse request [05:40:02]Sock 9.Check first char [05:40:02]Sock 9.First char is OK [05:40:02]request: POST /json_proto HTTP/1.0 [05:40:02]Method: POST [05:40:02]URL: /json_proto [05:40:02]Method is POST - this is cgi request [05:40:02]url: /json_proto [05:40:02]query_string will be loaded in cgi processing [05:40:02]execute_cgi json_proto POST (null) [05:40:02]execute_cgi path=json_proto method=POST [05:40:02]POST find Content-Length [05:40:02]Host: 172.17.44.196:8080 [05:40:02]Content-Length: 654 [05:40:02]Content-Type: application/json [05:40:02] [05:40:02]POST finish read [05:40:02]Found Content-Length = 654 [05:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272725", "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" : 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" ] } } [05:40:02]execute_script... [05:40: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)272725", "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" : 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" ] } } [05:40:02]POST & json_proto [05:40:02]process_json_proto [05:40:02]json parsed OK: [05:40:02]protocol is kg_v1.0 [05:40:02]action value=close_receipt [05:40:02]process_action close_receipt [05:40:02]cmd_close_receipt [05:40:02]MH_GetDate [05:40:02]Write to MH i2c: F0 00 00 30 57 76 [05:40:02]Write i2c OK [05:40:02]MH_I2C_Read... [05:40:02]Read from MH i2c: F0 [05:40:02]MH_I2C_Read... [05:40:02]Read from MH i2c: F0 09 00 [05:40:02]MH_I2C_Read... [05:40:02]Read from MH i2c: F0 09 00 30 57 00 BA 97 14 67 E7 19 F8 65 A8 [05:40:02]GetLastDocTimeStamp 1729402426 [05:40:02]current date 1729402810 [05:40:02]FM_GetShiftState [05:40:02]SAM_PROTO_GetShiftState [05:40:02]wFMCommunicate request_size=4 [05:40:02]MH_SAM_APDU [05:40:02]CAPDU: 80 13 01 00 [05:40:02]Write to MH i2c: E2 08 00 31 57 80 13 01 00 00 00 00 00 05 [05:40:02]Write i2c OK [05:40:02]MH_I2C_Read... [05:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:02]Read from MH i2c: E2 [05:40:02]MH_I2C_Read... [05:40:02]Read from MH i2c: E2 0E 00 [05:40:02]MH_I2C_Read... [05:40:02]Read from MH i2c: E2 0E 00 31 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [05:40:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [05:40:02]wFMCommunicate OK [05:40:02]SAM_PROTO_GetShiftState done [05:40:02]FM_GetShiftState done [05:40:02]opened in 1729384303 [05:40:02]opened+sec_in_day 1729470703 [05:40:02]quantity*price = 9500 [05:40:02]sum+1 = 9501 [05:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 23 20.10.2024 05:40 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73697 ФПД: 140518410538239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054010&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73697&fm=140518410538239&tin=02508201610067®Number=0000000000161154&sum=9500 0 [05:40:03]StoreToDocumentArchive [05:40:03]shift 170 fd 73697 [05:40:03]save to /storage/0170/doc_00073697 [05:40:03]save last doc name /storage/0170/doc_00073697 to /storage/kkm_last_doc_name [05:40:03]save OK [05:40:03]Clear old archive folders... [05:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=293 [05:40:03]tlvbuf is 0104ABC0 [05:40:03]SAM_PROTO_ClearQueue [05:40:03]wFMCommunicate request_size=4 [05:40:03]MH_SAM_APDU [05:40:03]CAPDU: 80 09 00 00 [05:40:03]Write to MH i2c: E2 08 00 3E 57 80 09 00 00 00 00 00 00 07 [05:40:03]Write i2c OK [05:40:03]MH_I2C_Read... [05:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:03]Read from MH i2c: E2 [05:40:03]MH_I2C_Read... [05:40:03]Read from MH i2c: E2 03 00 [05:40:03]MH_I2C_Read... [05:40:03]Read from MH i2c: E2 03 00 3E 57 00 90 00 09 [05:40:03]RAPDU: 90 00 [05:40:03]wFMCommunicate OK [05:40:03]SAM_PROTO_ClearQueue done [05:40:03]KKMCreateOFDPacket [05:40:03]OFDProtocolAddRootSTLVToBuf [05:40:03]FM_MakeSignedData [05:40:03]FM_MakeSignedData [05:40:03]SAM_PROTO_SignData [05:40:03]wFMCommunicate request_size=4 [05:40:03]MH_SAM_APDU [05:40:03]CAPDU: 80 0D 01 02 [05:40:03]Write to MH i2c: E2 08 00 3F 57 80 0D 01 02 00 00 00 00 0F [05:40:03]Write i2c OK [05:40:03]MH_I2C_Read... [05:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:03]Read from MH i2c: E2 [05:40:03]MH_I2C_Read... [05:40:03]Read from MH i2c: E2 03 00 [05:40:03]MH_I2C_Read... [05:40:03]Read from MH i2c: E2 03 00 3F 57 00 90 00 0A [05:40:03]RAPDU: 90 00 [05:40:03]wFMCommunicate OK [05:40:03]wFMCommunicate request_size=255 [05:40:03]MH_SAM_APDU [05:40:03]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 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 17 00 00 00 F4 03 04 00 BA 97 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [05:40:03]Write to MH i2c: E2 02 01 40 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 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 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 17 00 00 00 F4 03 04 00 BA 97 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 3C [05:40:03]Write i2c OK [05:40:03]MH_I2C_Read... [05:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:04]Read from MH i2c: E2 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 03 00 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 03 00 40 57 00 90 00 0B [05:40:04]RAPDU: 90 00 [05:40:04]wFMCommunicate OK [05:40:04]wFMCommunicate request_size=52 [05:40:04]MH_SAM_APDU [05:40:04]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 1F 01 00 35 04 06 00 7F CC FD F1 CC FF [05:40:04]Write to MH i2c: E2 37 00 41 57 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 1F 01 00 35 04 06 00 7F CC FD F1 CC FF 00 00 CD [05:40:04]Write i2c OK [05:40:04]MH_I2C_Read... [05:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:04]Read from MH i2c: E2 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 03 00 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 03 00 41 57 00 90 00 0C [05:40:04]RAPDU: 90 00 [05:40:04]wFMCommunicate OK [05:40:04]wFMCommunicate request_size=4 [05:40:04]MH_SAM_APDU [05:40:04]CAPDU: 80 0D 03 02 [05:40:04]Write to MH i2c: E2 08 00 42 57 80 0D 03 02 00 00 00 00 14 [05:40:04]Write i2c OK [05:40:04]MH_I2C_Read... [05:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:04]Read from MH i2c: E2 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 0B 00 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 0B 00 42 57 00 D4 4B 12 5B B6 E7 34 EA 90 00 5C [05:40:04]RAPDU: D4 4B 12 5B B6 E7 34 EA 90 00 [05:40:04]wFMCommunicate OK [05:40:04]SAM_PROTO_SignData done [05:40:04]FM_MakeSignedData done [05:40:04]CreateOFDProtocolMessage [05:40:04]wFMCommunicate request_size=4 [05:40:04]MH_SAM_APDU [05:40:04]CAPDU: 80 11 00 00 [05:40:04]Write to MH i2c: E2 08 00 43 57 80 11 00 00 00 00 00 00 14 [05:40:04]Write i2c OK [05:40:04]MH_I2C_Read... [05:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:04]Read from MH i2c: E2 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 17 00 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: E2 17 00 43 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [05:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [05:40:04]wFMCommunicate OK [05:40:04]CreateOFDProtocolMessage done [05:40:04]OFDSenderStorePacket 73697 [05:40:04]StoreOFDPacket docnum=73697 [05:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 AB 53 31 01 61 70 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 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 17 00 00 00 F4 03 04 00 BA 97 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 1F 01 00 35 04 06 00 7F CC FD F1 CC FF D4 4B 12 5B B6 E7 34 EA [05:40:04]CheckFolder [05:40:04]dirname=/storage/ofd_packets [05:40:04]CheckFolder done [05:40:04]ProducePacketName [05:40:04]name=ofd_packets/00073697 [05:40:04]NVStorageSaveData ofd_packets/00073697 [05:40:04]File name is /storage/ofd_packets/00073697 [05:40:04]Write 343 bytes [05:40:04]NVStorageSaveData done [05:40:04]OFDSenderStorePacket done [05:40:04]KKMCreateOFDPacket done [05:40:04]NVStorageSaveData kkm_last_timestamp [05:40:04]File name is /storage/kkm_last_timestamp [05:40:04]Write 4 bytes [05:40:04]NVStorageSaveData done [05:40:04]ExternCall_PrintAddStr [05:40:04]wPrintStart [05:40:04]Write to MH i2c: 01 00 00 44 57 9B [05:40:04]OFD Sender: Processing packet 73697 [packets to send 15, broken 14] [05:40:04]ProducePacketName [05:40:04]name=ofd_packets/00073697 [05:40:04]OFD Sender: To server: pG, [05:40:04]CommunicateWithHost lk.salyk.kg:30040 [05:40:04]ConnectInit lk.salyk.kg [05:40:04]Write i2c OK [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: 01 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: 01 07 00 [05:40:04]MH_I2C_Read... [05:40:04]Read from MH i2c: 01 07 00 44 57 00 00 00 00 00 FF 0F B0 [05:40:04]RasterBufferAndPrint [05:40:04]line Счет N : (3)272725 [05:40:04]line ИНН: 02508201610067 [05:40:04]line Контрольно-Кассовый Чек [05:40:04]line ПРОДАЖА [05:40:04]line Товар: 4700000480050 [05:40:04]line Напиток Nitro Energy эн green ж/б 0,45л [05:40:04]line 1.000 * 95.00 [05:40:04]line = 95.00 [05:40:04]line НДС 12% НСП 1% [05:40:04]line > о реализуемом товаре [05:40:04]line ИТОГО: 95.00 [05:40:04]line НСП 1% : 0.84 [05:40:04]line НДС 12% : 10.09 [05:40:04]line Наличными: 95.00 [05:40:04]line Безнал.: 0.00 [05:40:04]line Место: АЗС № 133 "Партнер Нефть" [05:40:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [05:40:04]line СНО: Общий режим [05:40:04]line Чек 23 20.10.2024 05:40 [05:40:04]line Смена: 170 ФФД: 1.0 [05:40:04]line ЗНМ: 0300000020 [05:40:04]line РНМ: 0000000000161154 [05:40:04]line Версия ККМ: v1.0 [05:40:04]line ФМ: 0000000000963323 [05:40:04]line ФД: 73697 [05:40:04]line ФПД: 140518410538239 [05:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054010&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73697&fm=140518410538239&tin=02508201610067®Number=0000000000161154&sum=9500 [05:40:04]line 0 [05:40:04]written 0, free lines is 4095 [05:40:05]Write to MH i2c: 01 00 00 6C 57 C3 [05:40:05]Write i2c OK [05:40:05]MH_I2C_Read... [05:40:05]Read from MH i2c: 01 [05:40:05]MH_I2C_Read... [05:40:05]Read from MH i2c: 01 07 00 [05:40:05]MH_I2C_Read... [05:40:05]Read from MH i2c: 01 07 00 6C 57 00 00 00 00 00 B7 0C 8D [05:40:05]RasterBufferAndPrint [05:40:05]line [05:40:05]line [05:40:05]line [05:40:05]line [05:40:05]line [05:40:05]written 0, free lines is 3258 [05:40:05]MH_Cut [05:40:05]Write to MH i2c: D1 01 00 73 57 01 9C [05:40:05]Write i2c OK [05:40:05]MH_I2C_Read... [05:40:05]Read from MH i2c: D1 [05:40:05]MH_I2C_Read... [05:40:05]Read from MH i2c: D1 01 00 [05:40:05]MH_I2C_Read... [05:40:05]Read from MH i2c: D1 01 00 73 57 00 9B [05:40:05]Write to MH i2c: 01 00 00 74 57 CB [05:40:05]Write i2c OK [05:40:05]MH_I2C_Read... [05:40:06]*** Cut start [05:40:06]*** Partial cut [05:40:06]*** CUTSNS_PIN = 1 [05:40:06]*** CUTSNS_PIN = 0 [05:40:06]*** Brake cut motor [05:40:06]Read from MH i2c: 01 [05:40:06]MH_I2C_Read... [05:40:06]*** Stop cut motor [05:40:06]*** Cut end [05:40:06]Read from MH i2c: 01 07 00 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: 01 07 00 74 57 00 00 00 00 00 FF 0F E0 [05:40:06]process_action close_receipt done [05:40:06]requested_data is exist [05:40:06]produce_requested_data [05:40:06]requested_item fm.sn is exist - process it [05:40:06]wFMCommunicate request_size=4 [05:40:06]MH_SAM_APDU [05:40:06]CAPDU: 80 11 00 00 [05:40:06]Write to MH i2c: E2 08 00 75 57 80 11 00 00 00 00 00 00 46 [05:40:06]Write i2c OK [05:40:06]MH_I2C_Read... [05:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:06]Read from MH i2c: E2 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 17 00 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 17 00 75 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 93 [05:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [05:40:06]wFMCommunicate OK [05:40:06]requested_item fd.num is exist - process it [05:40:06]SAM_PROTO_GetFieldsCounters [05:40:06]wFMCommunicate request_size=4 [05:40:06]MH_SAM_APDU [05:40:06]CAPDU: 80 13 00 00 [05:40:06]Write to MH i2c: E2 08 00 76 57 80 13 00 00 00 00 00 00 49 [05:40:06]Write i2c OK [05:40:06]MH_I2C_Read... [05:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:06]Read from MH i2c: E2 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 62 00 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 62 00 76 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E1 1F 01 00 0E 04 04 00 AA 00 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 4D [05:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E1 1F 01 00 0E 04 04 00 AA 00 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 [05:40:06]wFMCommunicate OK [05:40:06]SAM_PROTO_GetFieldsCounters done [05:40:06]requested_item shift.num is exist - process it [05:40:06]requested_item shift.opened is exist - process it [05:40:06]req_shift_opened [05:40:06]FM_GetShiftState [05:40:06]SAM_PROTO_GetShiftState [05:40:06]wFMCommunicate request_size=4 [05:40:06]MH_SAM_APDU [05:40:06]CAPDU: 80 13 01 00 [05:40:06]Write to MH i2c: E2 08 00 77 57 80 13 01 00 00 00 00 00 4B [05:40:06]Write i2c OK [05:40:06]MH_I2C_Read... [05:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:06]Read from MH i2c: E2 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 0E 00 [05:40:06]MH_I2C_Read... [05:40:06]Read from MH i2c: E2 0E 00 77 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 90 [05:40:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [05:40:06]wFMCommunicate OK [05:40:06]SAM_PROTO_GetShiftState done [05:40:06]FM_GetShiftState done [05:40:06]req_shift_opened done [05:40:06]requested_item shift.open_date is exist - process it [05:40:06]req_shift_open_date [05:40:06]req_shift_open_date done [05:40:06]produce_requested_data done [05:40:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73697,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [05:40:06]process_action_free close_receipt [05:40:06]json_value_free [05:40:06]json_value_free done [05:40:06]process_json_proto returns [05:40:06]Send response to host [05:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73697,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [05:40:06]free response buf [05:40:06]execute_script done [05:40:06]execute_script returns [05:40:06]free content buf [05:40:06]Sock 9.Close socket [05:40:06]Sock 9.Thread stoped [05:42:17]ConnectInit Can't connect to host [05:42:17]CommunicateWithHost connect error [05:42:17]CommunicateWithHost err = -1 [05:42:17]OFD Sender: Server communicate error [05:42:22]OFD Sender: Processing packet 73697 [packets to send 15, broken 14] [05:42:22]ProducePacketName [05:42:22]name=ofd_packets/00073697 [05:42:22]OFD Sender: To server: pG, [05:42:22]CommunicateWithHost lk.salyk.kg:30040 [05:42:22]ConnectInit lk.salyk.kg [05:42:22]Connected sock=9 [05:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 AB 53 31 01 61 70 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 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 17 00 00 00 F4 03 04 00 BA 97 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 1F 01 00 35 04 06 00 7F CC FD F1 CC FF D4 4B 12 5B B6 E7 34 EA [05:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 40 FC 47 00 B4 75 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 39 36 33 33 32 33 10 04 04 00 E1 1F 01 00 F4 03 04 00 29 41 14 67 B6 04 01 00 00 6C 95 99 C4 78 1E AC 92 [05:42:22]CommunicateWithHost err = 0 [05:42:22]CheckOFDResponse [05:42:22]1017 (14) - 77093643461234 [05:42:22]1041 (16) - 0000000000963323 [05:42:22]1040 (4) - 73697 [05:42:22]1012 (4) - 19.10.2024 23:30 [05:42:22]1206 (1) - 0 [05:42:22]OFD Sender: Remove packet 73697 [05:42:22]ProducePacketName [05:42:22]name=ofd_packets/00073697 [05:42:22]NVStorageDeleteData [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]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:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]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:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:28]accept exits with 8 [06:20:28]New connection [06:20:28]New thread 3066699108 created [06:20:28]Thread 3066555748 joined [06:20:28]Waiting for new connection... [06:20:28] Sock 8.Parse request [06:20:28]Sock 8.Check first char [06:20:28]Sock 8.First char is OK [06:20:28]request: POST /json_proto HTTP/1.0 [06:20:28]Method: POST [06:20:28]URL: /json_proto [06:20:28]Method is POST - this is cgi request [06:20:28]url: /json_proto [06:20:28]query_string will be loaded in cgi processing [06:20:28]execute_cgi json_proto POST (null) [06:20:28]execute_cgi path=json_proto method=POST [06:20:28]POST find Content-Length [06:20:28]Host: 172.17.44.196:8080 [06:20:28]Content-Length: 675 [06:20:28]Content-Type: application/json [06:20:28] [06:20:28]POST finish read [06:20:28]Found Content-Length = 675 [06:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272726", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:20:28]execute_script... [06:20: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)272726", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:20:28]POST & json_proto [06:20:28]process_json_proto [06:20:28]json parsed OK: [06:20:28]protocol is kg_v1.0 [06:20:28]action value=close_receipt [06:20:28]process_action close_receipt [06:20:28]cmd_close_receipt [06:20:28]MH_GetDate [06:20:28]Write to MH i2c: F0 00 00 78 57 BE [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: F0 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: F0 09 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: F0 09 00 78 57 00 34 A1 14 67 E7 19 F8 65 74 [06:20:28]GetLastDocTimeStamp 1729402810 [06:20:28]current date 1729405236 [06:20:28]FM_GetShiftState [06:20:28]SAM_PROTO_GetShiftState [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 13 01 00 [06:20:28]Write to MH i2c: E2 08 00 79 57 80 13 01 00 00 00 00 00 4D [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 0E 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 0E 00 79 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 92 [06:20:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:20:28]wFMCommunicate OK [06:20:28]SAM_PROTO_GetShiftState done [06:20:28]FM_GetShiftState done [06:20:28]opened in 1729384303 [06:20:28]opened+sec_in_day 1729470703 [06:20:28]quantity*price = 6500 [06:20:28]sum+1 = 6501 [06:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 24 20.10.2024 06:20 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73698 ФПД: 23045981099951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062036&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73698&fm=23045981099951&tin=02508201610067®Number=0000000000161154&sum=6500 0 [06:20:29]StoreToDocumentArchive [06:20:29]shift 170 fd 73698 [06:20:29]save to /storage/0170/doc_00073698 [06:20:29]save last doc name /storage/0170/doc_00073698 to /storage/kkm_last_doc_name [06:20:29]save OK [06:20:29]Clear old archive folders... [06:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=286 [06:20:29]tlvbuf is 00F91A60 [06:20:29]SAM_PROTO_ClearQueue [06:20:29]wFMCommunicate request_size=4 [06:20:29]MH_SAM_APDU [06:20:29]CAPDU: 80 09 00 00 [06:20:29]Write to MH i2c: E2 08 00 86 57 80 09 00 00 00 00 00 00 4F [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 86 57 00 90 00 51 [06:20:29]RAPDU: 90 00 [06:20:29]wFMCommunicate OK [06:20:29]SAM_PROTO_ClearQueue done [06:20:29]KKMCreateOFDPacket [06:20:29]OFDProtocolAddRootSTLVToBuf [06:20:29]FM_MakeSignedData [06:20:29]FM_MakeSignedData [06:20:29]SAM_PROTO_SignData [06:20:29]wFMCommunicate request_size=4 [06:20:29]MH_SAM_APDU [06:20:29]CAPDU: 80 0D 01 02 [06:20:29]Write to MH i2c: E2 08 00 87 57 80 0D 01 02 00 00 00 00 57 [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]OFD Sender: No OFD packet to send [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:20:29]Read from MH i2c: E2 03 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 03 00 87 57 00 90 00 52 [06:20:29]RAPDU: 90 00 [06:20:29]wFMCommunicate OK [06:20:29]wFMCommunicate request_size=255 [06:20:29]MH_SAM_APDU [06:20:29]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 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 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 34 A1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 [06:20:29]Write to MH i2c: E2 02 01 88 57 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 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 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 34 A1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 00 00 29 [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:30]Read from MH i2c: E2 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 03 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 03 00 88 57 00 90 00 53 [06:20:30]RAPDU: 90 00 [06:20:30]wFMCommunicate OK [06:20:30]wFMCommunicate request_size=45 [06:20:30]MH_SAM_APDU [06:20:30]CAPDU: 80 0D 02 02 28 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 1F 01 00 35 04 06 00 14 F5 CF 84 57 AF [06:20:30]Write to MH i2c: E2 30 00 89 57 80 0D 02 02 28 00 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 1F 01 00 35 04 06 00 14 F5 CF 84 57 AF 00 00 0D [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:30]Read from MH i2c: E2 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 03 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 03 00 89 57 00 90 00 54 [06:20:30]RAPDU: 90 00 [06:20:30]wFMCommunicate OK [06:20:30]wFMCommunicate request_size=4 [06:20:30]MH_SAM_APDU [06:20:30]CAPDU: 80 0D 03 02 [06:20:30]Write to MH i2c: E2 08 00 8A 57 80 0D 03 02 00 00 00 00 5C [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:20:30]Read from MH i2c: E2 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 0B 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 0B 00 8A 57 00 B8 46 D7 82 31 D5 0A BA 90 00 7E [06:20:30]RAPDU: B8 46 D7 82 31 D5 0A BA 90 00 [06:20:30]wFMCommunicate OK [06:20:30]SAM_PROTO_SignData done [06:20:30]FM_MakeSignedData done [06:20:30]CreateOFDProtocolMessage [06:20:30]wFMCommunicate request_size=4 [06:20:30]MH_SAM_APDU [06:20:30]CAPDU: 80 11 00 00 [06:20:30]Write to MH i2c: E2 08 00 8B 57 80 11 00 00 00 00 00 00 5C [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:30]Read from MH i2c: E2 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 17 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: E2 17 00 8B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A9 [06:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:20:30]wFMCommunicate OK [06:20:30]CreateOFDProtocolMessage done [06:20:30]OFDSenderStorePacket 73698 [06:20:30]StoreOFDPacket docnum=73698 [06:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 32 01 00 00 02 40 2A 01 82 B1 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 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 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 34 A1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 1F 01 00 35 04 06 00 14 F5 CF 84 57 AF B8 46 D7 82 31 D5 0A BA [06:20:30]CheckFolder [06:20:30]dirname=/storage/ofd_packets [06:20:30]CheckFolder done [06:20:30]ProducePacketName [06:20:30]name=ofd_packets/00073698 [06:20:30]NVStorageSaveData ofd_packets/00073698 [06:20:30]File name is /storage/ofd_packets/00073698 [06:20:30]Write 336 bytes [06:20:30]NVStorageSaveData done [06:20:30]OFDSenderStorePacket done [06:20:30]KKMCreateOFDPacket done [06:20:30]NVStorageSaveData kkm_last_timestamp [06:20:30]File name is /storage/kkm_last_timestamp [06:20:30]Write 4 bytes [06:20:30]NVStorageSaveData done [06:20:30]ExternCall_PrintAddStr [06:20:30]wPrintStart [06:20:30]Write to MH i2c: 01 00 00 8C 57 E3 [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 07 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 07 00 8C 57 00 00 00 00 00 FF 0F F8 [06:20:30]RasterBufferAndPrint [06:20:30]line Счет N : (3)272726 [06:20:30]line ИНН: 02508201610067 [06:20:30]line Контрольно-Кассовый Чек [06:20:30]line ПРОДАЖА [06:20:30]line Товар: 4700040114120 [06:20:30]line Султан чай 1л. чер персик [06:20:30]line 1.000 * 65.00 [06:20:30]line = 65.00 [06:20:30]line НДС 12% НСП 1% [06:20:30]line > о реализуемом товаре [06:20:30]line ИТОГО: 65.00 [06:20:30]line НСП 1% : 0.57 [06:20:30]line НДС 12% : 6.90 [06:20:30]line Наличными: 65.00 [06:20:30]line Безнал.: 0.00 [06:20:30]line Место: АЗС № 133 "Партнер Нефть" [06:20:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [06:20:30]line СНО: Общий режим [06:20:30]line Чек 24 20.10.2024 06:20 [06:20:30]line Смена: 170 ФФД: 1.0 [06:20:30]line ЗНМ: 0300000020 [06:20:30]line РНМ: 0000000000161154 [06:20:30]line Версия ККМ: v1.0 [06:20:30]line ФМ: 0000000000963323 [06:20:30]line ФД: 73698 [06:20:30]line ФПД: 23045981099951 [06:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062036&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73698&fm=23045981099951&tin=02508201610067®Number=0000000000161154&sum=6500 [06:20:30]line 0 [06:20:30]OFD Sender: Processing packet 73698 [packets to send 15, broken 14] [06:20:30]ProducePacketName [06:20:30]name=ofd_packets/00073698 [06:20:30]OFD Sender: To server: pG, [06:20:30]CommunicateWithHost lk.salyk.kg:30040 [06:20:30]ConnectInit lk.salyk.kg [06:20:30]written 0, free lines is 4095 [06:20:30]Connected sock=10 [06:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 32 01 00 00 02 40 2A 01 82 B1 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 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 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 34 A1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 1F 01 00 35 04 06 00 14 F5 CF 84 57 AF B8 46 D7 82 31 D5 0A BA [06:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AC E5 47 00 B1 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 39 36 33 33 32 33 10 04 04 00 E2 1F 01 00 F4 03 04 00 1A 4A 14 67 B6 04 01 00 00 5F 6F 1E E5 84 48 13 DB [06:20:30]CommunicateWithHost err = 0 [06:20:30]CheckOFDResponse [06:20:30]1017 (14) - 77093643461234 [06:20:30]1041 (16) - 0000000000963323 [06:20:30]1040 (4) - 73698 [06:20:30]1012 (4) - 20.10.2024 00:08 [06:20:30]1206 (1) - 0 [06:20:30]OFD Sender: Remove packet 73698 [06:20:30]ProducePacketName [06:20:30]name=ofd_packets/00073698 [06:20:30]NVStorageDeleteData [06:20:30]Write to MH i2c: 01 00 00 B3 57 0A [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 07 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: 01 07 00 B3 57 00 00 00 00 00 D6 0C F3 [06:20:30]RasterBufferAndPrint [06:20:30]line [06:20:30]line [06:20:30]line [06:20:30]line [06:20:30]line [06:20:30]written 0, free lines is 3292 [06:20:30]MH_Cut [06:20:30]Write to MH i2c: D1 01 00 BA 57 01 E3 [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: D1 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: D1 01 00 [06:20:30]MH_I2C_Read... [06:20:30]Read from MH i2c: D1 01 00 BA 57 00 E2 [06:20:30]Write to MH i2c: 01 00 00 BB 57 12 [06:20:30]Write i2c OK [06:20:30]MH_I2C_Read... [06:20:31]OFD Sender: No OFD packet to send [06:20:31]*** Cut start [06:20:31]*** Partial cut [06:20:31]*** CUTSNS_PIN = 1 [06:20:31]*** CUTSNS_PIN = 0 [06:20:32]*** Brake cut motor [06:20:32]Read from MH i2c: 01 [06:20:32]MH_I2C_Read... [06:20:32]*** Stop cut motor [06:20:32]*** Cut end [06:20:32]Read from MH i2c: 01 07 00 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: 01 07 00 BB 57 00 00 00 00 00 FF 0F 27 [06:20:32]process_action close_receipt done [06:20:32]requested_data is exist [06:20:32]produce_requested_data [06:20:32]requested_item fm.sn is exist - process it [06:20:32]wFMCommunicate request_size=4 [06:20:32]MH_SAM_APDU [06:20:32]CAPDU: 80 11 00 00 [06:20:32]Write to MH i2c: E2 08 00 BC 57 80 11 00 00 00 00 00 00 8D [06:20:32]Write i2c OK [06:20:32]MH_I2C_Read... [06:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:32]Read from MH i2c: E2 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 17 00 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 17 00 BC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DA [06:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:20:32]wFMCommunicate OK [06:20:32]requested_item fd.num is exist - process it [06:20:32]SAM_PROTO_GetFieldsCounters [06:20:32]wFMCommunicate request_size=4 [06:20:32]MH_SAM_APDU [06:20:32]CAPDU: 80 13 00 00 [06:20:32]Write to MH i2c: E2 08 00 BD 57 80 13 00 00 00 00 00 00 90 [06:20:32]Write i2c OK [06:20:32]MH_I2C_Read... [06:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:20:32]Read from MH i2c: E2 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 62 00 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 62 00 BD 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E2 1F 01 00 0E 04 04 00 AA 00 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 98 [06:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E2 1F 01 00 0E 04 04 00 AA 00 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 [06:20:32]wFMCommunicate OK [06:20:32]SAM_PROTO_GetFieldsCounters done [06:20:32]requested_item shift.num is exist - process it [06:20:32]requested_item shift.opened is exist - process it [06:20:32]req_shift_opened [06:20:32]FM_GetShiftState [06:20:32]SAM_PROTO_GetShiftState [06:20:32]wFMCommunicate request_size=4 [06:20:32]MH_SAM_APDU [06:20:32]CAPDU: 80 13 01 00 [06:20:32]Write to MH i2c: E2 08 00 BE 57 80 13 01 00 00 00 00 00 92 [06:20:32]Write i2c OK [06:20:32]MH_I2C_Read... [06:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:32]Read from MH i2c: E2 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 0E 00 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 0E 00 BE 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D7 [06:20:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:20:32]wFMCommunicate OK [06:20:32]SAM_PROTO_GetShiftState done [06:20:32]FM_GetShiftState done [06:20:32]req_shift_opened done [06:20:32]requested_item shift.open_date is exist - process it [06:20:32]req_shift_open_date [06:20:32]req_shift_open_date done [06:20:32]produce_requested_data done [06:20:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73698,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [06:20:32]process_action_free close_receipt [06:20:32]json_value_free [06:20:32]json_value_free done [06:20:32]process_json_proto returns [06:20:32]Send response to host [06:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73698,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [06:20:32]free response buf [06:20:32]execute_script done [06:20:32]execute_script returns [06:20:32]free content buf [06:20:32]Sock 8.Close socket [06:20:32]Sock 8.Thread stoped [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]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:13]accept exits with 9 [06:28:13]New connection [06:28:13]New thread 3066555748 created [06:28:13]Thread 3066699108 joined [06:28:13]Waiting for new connection... [06:28:13] Sock 9.Parse request [06:28:13]Sock 9.Check first char [06:28:13]Sock 9.First char is OK [06:28:13]request: POST /json_proto HTTP/1.0 [06:28:13]Method: POST [06:28:13]URL: /json_proto [06:28:13]Method is POST - this is cgi request [06:28:13]url: /json_proto [06:28:13]query_string will be loaded in cgi processing [06:28:13]execute_cgi json_proto POST (null) [06:28:13]execute_cgi path=json_proto method=POST [06:28:13]POST find Content-Length [06:28:13]Host: 172.17.44.196:8080 [06:28:13]Content-Length: 848 [06:28:13]Content-Type: application/json [06:28:13] [06:28:13]POST finish read [06:28:13]Found Content-Length = 848 [06:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272727", "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": "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:13]execute_script... [06:28:13]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)272727", "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": "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:13]POST & json_proto [06:28:13]process_json_proto [06:28:13]json parsed OK: [06:28:13]protocol is kg_v1.0 [06:28:13]action value=close_receipt [06:28:13]process_action close_receipt [06:28:13]cmd_close_receipt [06:28:13]MH_GetDate [06:28:13]Write to MH i2c: F0 00 00 BF 57 05 [06:28:13]Write i2c OK [06:28:13]MH_I2C_Read... [06:28:13]Read from MH i2c: F0 [06:28:13]MH_I2C_Read... [06:28:13]Read from MH i2c: F0 09 00 [06:28:13]MH_I2C_Read... [06:28:13]Read from MH i2c: F0 09 00 BF 57 00 05 A3 14 67 E7 19 F8 65 8E [06:28:13]GetLastDocTimeStamp 1729405236 [06:28:13]current date 1729405701 [06:28:13]FM_GetShiftState [06:28:13]SAM_PROTO_GetShiftState [06:28:13]wFMCommunicate request_size=4 [06:28:13]MH_SAM_APDU [06:28:13]CAPDU: 80 13 01 00 [06:28:13]Write to MH i2c: E2 08 00 C0 57 80 13 01 00 00 00 00 00 94 [06:28:13]Write i2c OK [06:28:13]MH_I2C_Read... [06:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:13]Read from MH i2c: E2 [06:28:13]MH_I2C_Read... [06:28:13]Read from MH i2c: E2 0E 00 [06:28:13]MH_I2C_Read... [06:28:13]Read from MH i2c: E2 0E 00 C0 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D9 [06:28:13]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:28:13]wFMCommunicate OK [06:28:13]SAM_PROTO_GetShiftState done [06:28:13]FM_GetShiftState done [06:28:13]opened in 1729384303 [06:28:13]opened+sec_in_day 1729470703 [06:28:13]quantity*price = 4000 [06:28:13]sum+1 = 4001 [06:28:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40099484 Жев Orbit White под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 25 20.10.2024 06:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73699 ФПД: 118255528366836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73699&fm=118255528366836&tin=02508201610067®Number=0000000000161154&sum=8500 0 [06:28:14]StoreToDocumentArchive [06:28:14]shift 170 fd 73699 [06:28:14]save to /storage/0170/doc_00073699 [06:28:14]save last doc name /storage/0170/doc_00073699 to /storage/kkm_last_doc_name [06:28:14]save OK [06:28:14]Clear old archive folders... [06:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=363 [06:28:14]tlvbuf is 00F91560 [06:28:14]SAM_PROTO_ClearQueue [06:28:14]wFMCommunicate request_size=4 [06:28:14]MH_SAM_APDU [06:28:14]CAPDU: 80 09 00 00 [06:28:14]Write to MH i2c: E2 08 00 CD 57 80 09 00 00 00 00 00 00 96 [06:28:14]Write i2c OK [06:28:14]MH_I2C_Read... [06:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:14]Read from MH i2c: E2 [06:28:14]MH_I2C_Read... [06:28:14]Read from MH i2c: E2 03 00 [06:28:14]MH_I2C_Read... [06:28:14]Read from MH i2c: E2 03 00 CD 57 00 90 00 98 [06:28:14]RAPDU: 90 00 [06:28:14]wFMCommunicate OK [06:28:14]SAM_PROTO_ClearQueue done [06:28:14]KKMCreateOFDPacket [06:28:14]OFDProtocolAddRootSTLVToBuf [06:28:14]FM_MakeSignedData [06:28:14]FM_MakeSignedData [06:28:14]SAM_PROTO_SignData [06:28:14]wFMCommunicate request_size=4 [06:28:14]MH_SAM_APDU [06:28:14]CAPDU: 80 0D 01 02 [06:28:14]Write to MH i2c: E2 08 00 CE 57 80 0D 01 02 00 00 00 00 9E [06:28:14]Write i2c OK [06:28:14]MH_I2C_Read... [06:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:14]Read from MH i2c: E2 [06:28:14]MH_I2C_Read... [06:28:14]Read from MH i2c: E2 03 00 [06:28:14]MH_I2C_Read... [06:28:14]Read from MH i2c: E2 03 00 CE 57 00 90 00 99 [06:28:14]RAPDU: 90 00 [06:28:14]wFMCommunicate OK [06:28:14]wFMCommunicate request_size=255 [06:28:14]MH_SAM_APDU [06:28:14]CAPDU: 80 0D 02 02 FA 03 00 6B 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 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 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 [06:28:14]Write to MH i2c: E2 02 01 CF 57 80 0D 02 02 FA 00 03 00 6B 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 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 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 0C [06:28:14]Write i2c OK [06:28:14]MH_I2C_Read... [06:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:15]Read from MH i2c: E2 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 03 00 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 03 00 CF 57 00 90 00 9A [06:28:15]RAPDU: 90 00 [06:28:15]wFMCommunicate OK [06:28:15]wFMCommunicate request_size=122 [06:28:15]MH_SAM_APDU [06:28:15]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 34 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 19 00 00 00 F4 03 04 00 05 A3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 1F 01 00 35 04 06 00 6B 8D 82 C2 D2 F4 [06:28:15]Write to MH i2c: E2 7D 00 D0 57 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 34 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 19 00 00 00 F4 03 04 00 05 A3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 1F 01 00 35 04 06 00 6B 8D 82 C2 D2 F4 00 00 F8 [06:28:15]Write i2c OK [06:28:15]MH_I2C_Read... [06:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:15]Read from MH i2c: E2 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 03 00 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 03 00 D0 57 00 90 00 9B [06:28:15]RAPDU: 90 00 [06:28:15]wFMCommunicate OK [06:28:15]wFMCommunicate request_size=4 [06:28:15]MH_SAM_APDU [06:28:15]CAPDU: 80 0D 03 02 [06:28:15]Write to MH i2c: E2 08 00 D1 57 80 0D 03 02 00 00 00 00 A3 [06:28:15]Write i2c OK [06:28:15]MH_I2C_Read... [06:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:15]Read from MH i2c: E2 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 0B 00 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 0B 00 D1 57 00 85 6B 70 B8 7A 66 0A 5B 90 00 01 [06:28:15]RAPDU: 85 6B 70 B8 7A 66 0A 5B 90 00 [06:28:15]wFMCommunicate OK [06:28:15]SAM_PROTO_SignData done [06:28:15]FM_MakeSignedData done [06:28:15]CreateOFDProtocolMessage [06:28:15]wFMCommunicate request_size=4 [06:28:15]MH_SAM_APDU [06:28:15]CAPDU: 80 11 00 00 [06:28:15]Write to MH i2c: E2 08 00 D2 57 80 11 00 00 00 00 00 00 A3 [06:28:15]Write i2c OK [06:28:15]MH_I2C_Read... [06:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:15]Read from MH i2c: E2 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 17 00 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: E2 17 00 D2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [06:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:28:15]wFMCommunicate OK [06:28:15]CreateOFDProtocolMessage done [06:28:15]OFDSenderStorePacket 73699 [06:28:15]StoreOFDPacket docnum=73699 [06:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 7F 01 00 00 16 43 77 01 E2 DD 5A 03 01 00 03 00 6B 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 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 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 34 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 19 00 00 00 F4 03 04 00 05 A3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 1F 01 00 35 04 06 00 6B 8D 82 C2 D2 F4 85 6B 70 B8 7A 66 0A 5B [06:28:15]CheckFolder [06:28:15]dirname=/storage/ofd_packets [06:28:15]CheckFolder done [06:28:15]ProducePacketName [06:28:15]name=ofd_packets/00073699 [06:28:15]NVStorageSaveData ofd_packets/00073699 [06:28:15]File name is /storage/ofd_packets/00073699 [06:28:15]Write 413 bytes [06:28:15]NVStorageSaveData done [06:28:15]OFDSenderStorePacket done [06:28:15]KKMCreateOFDPacket done [06:28:15]NVStorageSaveData kkm_last_timestamp [06:28:15]File name is /storage/kkm_last_timestamp [06:28:15]Write 4 bytes [06:28:15]NVStorageSaveData done [06:28:15]ExternCall_PrintAddStr [06:28:15]wPrintStart [06:28:15]Write to MH i2c: 01 00 00 D3 57 2A [06:28:15]Write i2c OK [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: 01 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: 01 07 00 [06:28:15]MH_I2C_Read... [06:28:15]Read from MH i2c: 01 07 00 D3 57 00 00 00 00 00 FF 0F 3F [06:28:15]RasterBufferAndPrint [06:28:15]line Счет N : (3)272727 [06:28:15]line ИНН: 02508201610067 [06:28:15]line Контрольно-Кассовый Чек [06:28:15]line ПРОДАЖА [06:28:15]line Товар: 4700000160211 [06:28:15]line Вода Легенда 0,5л [06:28:15]line 1.000 * 40.00 [06:28:15]line = 40.00 [06:28:15]line НДС 12% НСП 1% [06:28:15]line > о реализуемом товаре [06:28:15]line Товар: 40099484 [06:28:15]line Жев Orbit White под [06:28:15]line 1.000 * 45.00 [06:28:15]line = 45.00 [06:28:15]line НДС 12% НСП 1% [06:28:15]line > о реализуемом товаре [06:28:15]line ИТОГО: 85.00 [06:28:15]line НСП 1% : 0.75 [06:28:15]line НДС 12% : 9.03 [06:28:15]line Наличными: 85.00 [06:28:15]line Безнал.: 0.00 [06:28:15]line Место: АЗС № 133 "Партнер Нефть" [06:28:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [06:28:15]line СНО: Общий режим [06:28:15]line Чек 25 20.10.2024 06:28 [06:28:15]line Смена: 170 ФФД: 1.0 [06:28:15]line ЗНМ: 0300000020 [06:28:15]line РНМ: 0000000000161154 [06:28:15]line Версия ККМ: v1.0 [06:28:15]line ФМ: 0000000000963323 [06:28:15]line ФД: 73699 [06:28:15]line ФПД: 118255528366836 [06:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T062821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73699&fm=118255528366836&tin=02508201610067®Number=0000000000161154&sum=8500 [06:28:15]line 0 [06:28:15]OFD Sender: Processing packet 73699 [packets to send 15, broken 14] [06:28:15]ProducePacketName [06:28:15]name=ofd_packets/00073699 [06:28:15]OFD Sender: To server: pG, [06:28:15]CommunicateWithHost lk.salyk.kg:30040 [06:28:15]ConnectInit lk.salyk.kg [06:28:15]written 0, free lines is 4095 [06:28:15]Connected sock=10 [06:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 7F 01 00 00 16 43 77 01 E2 DD 5A 03 01 00 03 00 6B 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 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 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 34 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 19 00 00 00 F4 03 04 00 05 A3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 1F 01 00 35 04 06 00 6B 8D 82 C2 D2 F4 85 6B 70 B8 7A 66 0A 5B [06:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 00 04 47 00 4D 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 39 36 33 33 32 33 10 04 04 00 E3 1F 01 00 F4 03 04 00 EB 4B 14 67 B6 04 01 00 00 FA D7 C6 38 6A 66 B3 B5 [06:28:16]CommunicateWithHost err = 0 [06:28:16]CheckOFDResponse [06:28:16]1017 (14) - 77093643461234 [06:28:16]1041 (16) - 0000000000963323 [06:28:16]1040 (4) - 73699 [06:28:16]1012 (4) - 20.10.2024 00:16 [06:28:16]1206 (1) - 0 [06:28:16]OFD Sender: Remove packet 73699 [06:28:16]ProducePacketName [06:28:16]name=ofd_packets/00073699 [06:28:16]NVStorageDeleteData [06:28:16]Write to MH i2c: 01 00 00 00 58 58 [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: 01 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: 01 07 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: 01 07 00 00 58 00 00 00 00 00 69 0C D4 [06:28:16]RasterBufferAndPrint [06:28:16]line [06:28:16]line [06:28:16]line [06:28:16]line [06:28:16]line [06:28:16]written 0, free lines is 3181 [06:28:16]MH_Cut [06:28:16]Write to MH i2c: D1 01 00 07 58 01 31 [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: D1 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: D1 01 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: D1 01 00 07 58 00 30 [06:28:16]Write to MH i2c: 01 00 00 08 58 60 [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]OFD Sender: No OFD packet to send [06:28:17]*** Cut start [06:28:17]*** Partial cut [06:28:17]*** CUTSNS_PIN = 1 [06:28:17]*** CUTSNS_PIN = 0 [06:28:17]*** Brake cut motor [06:28:17]Read from MH i2c: 01 [06:28:17]MH_I2C_Read... [06:28:17]*** Stop cut motor [06:28:17]*** Cut end [06:28:17]Read from MH i2c: 01 07 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: 01 07 00 08 58 00 00 00 00 00 FF 0F 75 [06:28:17]process_action close_receipt done [06:28:17]requested_data is exist [06:28:17]produce_requested_data [06:28:17]requested_item fm.sn is exist - process it [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 11 00 00 [06:28:17]Write to MH i2c: E2 08 00 09 58 80 11 00 00 00 00 00 00 DB [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 17 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 17 00 09 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [06:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:28:17]wFMCommunicate OK [06:28:17]requested_item fd.num is exist - process it [06:28:17]SAM_PROTO_GetFieldsCounters [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 13 00 00 [06:28:17]Write to MH i2c: E2 08 00 0A 58 80 13 00 00 00 00 00 00 DE [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 62 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 62 00 0A 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E3 1F 01 00 0E 04 04 00 AA 00 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 EA [06:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E3 1F 01 00 0E 04 04 00 AA 00 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 [06:28:18]wFMCommunicate OK [06:28:18]SAM_PROTO_GetFieldsCounters done [06:28:18]requested_item shift.num is exist - process it [06:28:18]requested_item shift.opened is exist - process it [06:28:18]req_shift_opened [06:28:18]FM_GetShiftState [06:28:18]SAM_PROTO_GetShiftState [06:28:18]wFMCommunicate request_size=4 [06:28:18]MH_SAM_APDU [06:28:18]CAPDU: 80 13 01 00 [06:28:18]Write to MH i2c: E2 08 00 0B 58 80 13 01 00 00 00 00 00 E0 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 0E 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 0E 00 0B 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 25 [06:28:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:28:18]wFMCommunicate OK [06:28:18]SAM_PROTO_GetShiftState done [06:28:18]FM_GetShiftState done [06:28:18]req_shift_opened done [06:28:18]requested_item shift.open_date is exist - process it [06:28:18]req_shift_open_date [06:28:18]req_shift_open_date done [06:28:18]produce_requested_data done [06:28:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73699,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [06:28:18]process_action_free close_receipt [06:28:18]json_value_free [06:28:18]json_value_free done [06:28:18]process_json_proto returns [06:28:18]Send response to host [06:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73699,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [06:28:18]free response buf [06:28:18]execute_script done [06:28:18]execute_script returns [06:28:18]free content buf [06:28:18]Sock 9.Close socket [06:28:18]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:45]accept exits with 8 [06:37:45]New connection [06:37:45]New thread 3066699108 created [06:37:45]Thread 3066555748 joined [06:37:45]Waiting for new connection... [06:37:45] Sock 8.Parse request [06:37:45]Sock 8.Check first char [06:37:45]Sock 8.First char is OK [06:37:45]request: POST /json_proto HTTP/1.0 [06:37:45]Method: POST [06:37:45]URL: /json_proto [06:37:45]Method is POST - this is cgi request [06:37:45]url: /json_proto [06:37:45]query_string will be loaded in cgi processing [06:37:45]execute_cgi json_proto POST (null) [06:37:45]execute_cgi path=json_proto method=POST [06:37:45]POST find Content-Length [06:37:45]Host: 172.17.44.196:8080 [06:37:45]Content-Length: 905 [06:37:45]Content-Type: application/json [06:37:45] [06:37:45]POST finish read [06:37:45]Found Content-Length = 905 [06:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272728", "tax_sys" : 0, "items" : [ { "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": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [06:37:45]execute_script... [06:37: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)272728", "tax_sys" : 0, "items" : [ { "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": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [06:37:45]POST & json_proto [06:37:45]process_json_proto [06:37:45]json parsed OK: [06:37:45]protocol is kg_v1.0 [06:37:45]action value=close_receipt [06:37:45]process_action close_receipt [06:37:45]cmd_close_receipt [06:37:45]MH_GetDate [06:37:45]Write to MH i2c: F0 00 00 0C 58 53 [06:37:45]Write i2c OK [06:37:45]MH_I2C_Read... [06:37:45]Read from MH i2c: F0 [06:37:45]MH_I2C_Read... [06:37:45]Read from MH i2c: F0 09 00 [06:37:45]MH_I2C_Read... [06:37:45]Read from MH i2c: F0 09 00 0C 58 00 41 A5 14 67 E7 19 F8 65 1A [06:37:45]GetLastDocTimeStamp 1729405701 [06:37:45]current date 1729406273 [06:37:45]FM_GetShiftState [06:37:45]SAM_PROTO_GetShiftState [06:37:45]wFMCommunicate request_size=4 [06:37:45]MH_SAM_APDU [06:37:45]CAPDU: 80 13 01 00 [06:37:45]Write to MH i2c: E2 08 00 0D 58 80 13 01 00 00 00 00 00 E2 [06:37:45]Write i2c OK [06:37:45]MH_I2C_Read... [06:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:45]Read from MH i2c: E2 [06:37:45]MH_I2C_Read... [06:37:45]Read from MH i2c: E2 0E 00 [06:37:45]MH_I2C_Read... [06:37:45]Read from MH i2c: E2 0E 00 0D 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 27 [06:37:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:37:45]wFMCommunicate OK [06:37:45]SAM_PROTO_GetShiftState done [06:37:45]FM_GetShiftState done [06:37:45]opened in 1729384303 [06:37:45]opened+sec_in_day 1729470703 [06:37:45]quantity*price = 6000 [06:37:45]sum+1 = 6001 [06:37:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 26 20.10.2024 06:37 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73700 ФПД: 24019159969082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063753&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73700&fm=24019159969082&tin=02508201610067®Number=0000000000161154&sum=7000 0 [06:37:46]StoreToDocumentArchive [06:37:46]shift 170 fd 73700 [06:37:46]save to /storage/0170/doc_00073700 [06:37:46]save last doc name /storage/0170/doc_00073700 to /storage/kkm_last_doc_name [06:37:46]save OK [06:37:46]Clear old archive folders... [06:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=384 [06:37:46]tlvbuf is 00F9E950 [06:37:46]SAM_PROTO_ClearQueue [06:37:46]wFMCommunicate request_size=4 [06:37:46]MH_SAM_APDU [06:37:46]CAPDU: 80 09 00 00 [06:37:46]Write to MH i2c: E2 08 00 1A 58 80 09 00 00 00 00 00 00 E4 [06:37:46]Write i2c OK [06:37:46]MH_I2C_Read... [06:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:46]Read from MH i2c: E2 [06:37:46]MH_I2C_Read... [06:37:46]Read from MH i2c: E2 03 00 [06:37:46]MH_I2C_Read... [06:37:46]Read from MH i2c: E2 03 00 1A 58 00 90 00 E6 [06:37:46]RAPDU: 90 00 [06:37:46]wFMCommunicate OK [06:37:46]SAM_PROTO_ClearQueue done [06:37:46]KKMCreateOFDPacket [06:37:46]OFDProtocolAddRootSTLVToBuf [06:37:46]FM_MakeSignedData [06:37:46]FM_MakeSignedData [06:37:46]SAM_PROTO_SignData [06:37:46]wFMCommunicate request_size=4 [06:37:46]MH_SAM_APDU [06:37:46]CAPDU: 80 0D 01 02 [06:37:46]Write to MH i2c: E2 08 00 1B 58 80 0D 01 02 00 00 00 00 EC [06:37:46]Write i2c OK [06:37:46]MH_I2C_Read... [06:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:46]Read from MH i2c: E2 [06:37:46]MH_I2C_Read... [06:37:46]Read from MH i2c: E2 03 00 [06:37:46]MH_I2C_Read... [06:37:46]Read from MH i2c: E2 03 00 1B 58 00 90 00 E7 [06:37:46]RAPDU: 90 00 [06:37:46]wFMCommunicate OK [06:37:46]wFMCommunicate request_size=255 [06:37:46]MH_SAM_APDU [06:37:46]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [06:37:46]Write to MH i2c: E2 02 01 1C 58 80 0D 02 02 FA 00 03 00 80 01 1E 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 00 00 C0 [06:37:46]Write i2c OK [06:37:46]MH_I2C_Read... [06:37:47]OFD Sender: No OFD packet to send [06:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:47]Read from MH i2c: E2 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 03 00 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 03 00 1C 58 00 90 00 E8 [06:37:47]RAPDU: 90 00 [06:37:47]wFMCommunicate OK [06:37:47]wFMCommunicate request_size=143 [06:37:47]MH_SAM_APDU [06:37:47]CAPDU: 80 0D 02 02 8A 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 1A 00 00 00 F4 03 04 00 41 A5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 1F 01 00 35 04 06 00 15 D8 65 7F 6D 3A [06:37:47]Write to MH i2c: E2 92 00 1D 58 80 0D 02 02 8A 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 1A 00 00 00 F4 03 04 00 41 A5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 1F 01 00 35 04 06 00 15 D8 65 7F 6D 3A 00 00 5E [06:37:47]Write i2c OK [06:37:47]MH_I2C_Read... [06:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:47]Read from MH i2c: E2 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 03 00 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 03 00 1D 58 00 90 00 E9 [06:37:47]RAPDU: 90 00 [06:37:47]wFMCommunicate OK [06:37:47]wFMCommunicate request_size=4 [06:37:47]MH_SAM_APDU [06:37:47]CAPDU: 80 0D 03 02 [06:37:47]Write to MH i2c: E2 08 00 1E 58 80 0D 03 02 00 00 00 00 F1 [06:37:47]Write i2c OK [06:37:47]MH_I2C_Read... [06:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:47]Read from MH i2c: E2 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 0B 00 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 0B 00 1E 58 00 A2 F4 62 49 A9 90 EC 36 90 00 8E [06:37:47]RAPDU: A2 F4 62 49 A9 90 EC 36 90 00 [06:37:47]wFMCommunicate OK [06:37:47]SAM_PROTO_SignData done [06:37:47]FM_MakeSignedData done [06:37:47]CreateOFDProtocolMessage [06:37:47]wFMCommunicate request_size=4 [06:37:47]MH_SAM_APDU [06:37:47]CAPDU: 80 11 00 00 [06:37:47]Write to MH i2c: E2 08 00 1F 58 80 11 00 00 00 00 00 00 F1 [06:37:47]Write i2c OK [06:37:47]MH_I2C_Read... [06:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:47]Read from MH i2c: E2 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 17 00 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: E2 17 00 1F 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [06:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:37:47]wFMCommunicate OK [06:37:47]CreateOFDProtocolMessage done [06:37:47]OFDSenderStorePacket 73700 [06:37:47]StoreOFDPacket docnum=73700 [06:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 94 01 00 00 5A 53 8C 01 93 6A 5A 03 01 00 03 00 80 01 1E 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 1A 00 00 00 F4 03 04 00 41 A5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 1F 01 00 35 04 06 00 15 D8 65 7F 6D 3A A2 F4 62 49 A9 90 EC 36 [06:37:47]CheckFolder [06:37:47]dirname=/storage/ofd_packets [06:37:47]CheckFolder done [06:37:47]ProducePacketName [06:37:47]name=ofd_packets/00073700 [06:37:47]NVStorageSaveData ofd_packets/00073700 [06:37:47]File name is /storage/ofd_packets/00073700 [06:37:47]Write 434 bytes [06:37:47]NVStorageSaveData done [06:37:47]OFDSenderStorePacket done [06:37:47]KKMCreateOFDPacket done [06:37:47]NVStorageSaveData kkm_last_timestamp [06:37:47]File name is /storage/kkm_last_timestamp [06:37:47]Write 4 bytes [06:37:47]NVStorageSaveData done [06:37:47]ExternCall_PrintAddStr [06:37:47]wPrintStart [06:37:47]Write to MH i2c: 01 00 00 20 58 78 [06:37:47]Write i2c OK [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: 01 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: 01 07 00 [06:37:47]MH_I2C_Read... [06:37:47]Read from MH i2c: 01 07 00 20 58 00 00 00 00 00 FF 0F 8D [06:37:47]RasterBufferAndPrint [06:37:47]line Счет N : (3)272728 [06:37:47]line ИНН: 02508201610067 [06:37:47]line Контрольно-Кассовый Чек [06:37:47]line ПРОДАЖА [06:37:47]line Товар: 4011100977952 [06:37:47]line Шок Батончик Твикс 55г [06:37:47]line 1.000 * 60.00 [06:37:47]line = 60.00 [06:37:47]line НДС 12% НСП 1% [06:37:47]line > о реализуемом товаре [06:37:47]line Товар: 46226624 [06:37:47]line Mentos ПВ Клубника 6*100*2 [06:37:47]line 1.000 * 10.00 [06:37:47]line = 10.00 [06:37:47]line НДС 12% НСП 1% [06:37:47]line > о реализуемом товаре [06:37:47]line ИТОГО: 70.00 [06:37:47]line НСП 1% : 0.62 [06:37:47]line НДС 12% : 7.43 [06:37:47]line Наличными: 70.00 [06:37:47]line Безнал.: 0.00 [06:37:47]line Место: АЗС № 133 "Партнер Нефть" [06:37:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [06:37:47]line СНО: Общий режим [06:37:47]line Чек 26 20.10.2024 06:37 [06:37:47]line Смена: 170 ФФД: 1.0 [06:37:47]line ЗНМ: 0300000020 [06:37:47]line РНМ: 0000000000161154 [06:37:47]line Версия ККМ: v1.0 [06:37:47]line ФМ: 0000000000963323 [06:37:47]line ФД: 73700 [06:37:47]line ФПД: 24019159969082 [06:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063753&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73700&fm=24019159969082&tin=02508201610067®Number=0000000000161154&sum=7000 [06:37:47]line 0 [06:37:47]OFD Sender: Processing packet 73700 [packets to send 15, broken 14] [06:37:47]ProducePacketName [06:37:47]name=ofd_packets/00073700 [06:37:47]OFD Sender: To server: pG, [06:37:47]CommunicateWithHost lk.salyk.kg:30040 [06:37:47]ConnectInit lk.salyk.kg [06:37:47]written 0, free lines is 4095 [06:37:47]Connected sock=10 [06:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 94 01 00 00 5A 53 8C 01 93 6A 5A 03 01 00 03 00 80 01 1E 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 1A 00 00 00 F4 03 04 00 41 A5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 1F 01 00 35 04 06 00 15 D8 65 7F 6D 3A A2 F4 62 49 A9 90 EC 36 [06:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 24 B6 47 00 A3 57 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 39 36 33 33 32 33 10 04 04 00 E4 1F 01 00 F4 03 04 00 27 4E 14 67 B6 04 01 00 00 F4 16 AF 1A B9 D8 01 18 [06:37:48]CommunicateWithHost err = 0 [06:37:48]CheckOFDResponse [06:37:48]1017 (14) - 77093643461234 [06:37:48]1041 (16) - 0000000000963323 [06:37:48]1040 (4) - 73700 [06:37:48]1012 (4) - 20.10.2024 00:26 [06:37:48]1206 (1) - 0 [06:37:48]OFD Sender: Remove packet 73700 [06:37:48]ProducePacketName [06:37:48]name=ofd_packets/00073700 [06:37:48]NVStorageDeleteData [06:37:48]Write to MH i2c: 01 00 00 4D 58 A5 [06:37:48]Write i2c OK [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: 01 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: 01 07 00 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: 01 07 00 4D 58 00 00 00 00 00 6A 0C 22 [06:37:48]RasterBufferAndPrint [06:37:48]line [06:37:48]line [06:37:48]line [06:37:48]line [06:37:48]line [06:37:48]written 0, free lines is 3183 [06:37:48]MH_Cut [06:37:48]Write to MH i2c: D1 01 00 54 58 01 7E [06:37:48]Write i2c OK [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: D1 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: D1 01 00 [06:37:48]MH_I2C_Read... [06:37:48]Read from MH i2c: D1 01 00 54 58 00 7D [06:37:48]Write to MH i2c: 01 00 00 55 58 AD [06:37:48]Write i2c OK [06:37:48]MH_I2C_Read... [06:37:48]OFD Sender: No OFD packet to send [06:37:49]*** Cut start [06:37:49]*** Partial cut [06:37:49]*** CUTSNS_PIN = 1 [06:37:49]*** CUTSNS_PIN = 0 [06:37:49]*** Brake cut motor [06:37:49]Read from MH i2c: 01 [06:37:49]MH_I2C_Read... [06:37:49]*** Stop cut motor [06:37:49]*** Cut end [06:37:49]Read from MH i2c: 01 07 00 [06:37:49]MH_I2C_Read... [06:37:49]Read from MH i2c: 01 07 00 55 58 00 00 00 00 00 FF 0F C2 [06:37:49]process_action close_receipt done [06:37:49]requested_data is exist [06:37:49]produce_requested_data [06:37:49]requested_item fm.sn is exist - process it [06:37:49]wFMCommunicate request_size=4 [06:37:49]MH_SAM_APDU [06:37:49]CAPDU: 80 11 00 00 [06:37:49]Write to MH i2c: E2 08 00 56 58 80 11 00 00 00 00 00 00 28 [06:37:49]Write i2c OK [06:37:49]MH_I2C_Read... [06:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:49]Read from MH i2c: E2 [06:37:49]MH_I2C_Read... [06:37:49]Read from MH i2c: E2 17 00 [06:37:49]MH_I2C_Read... [06:37:49]Read from MH i2c: E2 17 00 56 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 75 [06:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:37:49]wFMCommunicate OK [06:37:49]requested_item fd.num is exist - process it [06:37:49]SAM_PROTO_GetFieldsCounters [06:37:49]wFMCommunicate request_size=4 [06:37:49]MH_SAM_APDU [06:37:49]CAPDU: 80 13 00 00 [06:37:49]Write to MH i2c: E2 08 00 57 58 80 13 00 00 00 00 00 00 2B [06:37:49]Write i2c OK [06:37:49]MH_I2C_Read... [06:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:49]Read from MH i2c: E2 [06:37:49]MH_I2C_Read... [06:37:49]Read from MH i2c: E2 62 00 [06:37:49]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 62 00 57 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E4 1F 01 00 0E 04 04 00 AA 00 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 3B [06:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E4 1F 01 00 0E 04 04 00 AA 00 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 [06:37:50]wFMCommunicate OK [06:37:50]SAM_PROTO_GetFieldsCounters done [06:37:50]requested_item shift.num is exist - process it [06:37:50]requested_item shift.opened is exist - process it [06:37:50]req_shift_opened [06:37:50]FM_GetShiftState [06:37:50]SAM_PROTO_GetShiftState [06:37:50]wFMCommunicate request_size=4 [06:37:50]MH_SAM_APDU [06:37:50]CAPDU: 80 13 01 00 [06:37:50]Write to MH i2c: E2 08 00 58 58 80 13 01 00 00 00 00 00 2D [06:37:50]Write i2c OK [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 [06:37:50]MH_I2C_Read... [06:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:50]Read from MH i2c: E2 0E 00 [06:37:50]MH_I2C_Read... [06:37:50]Read from MH i2c: E2 0E 00 58 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 72 [06:37:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:37:50]wFMCommunicate OK [06:37:50]SAM_PROTO_GetShiftState done [06:37:50]FM_GetShiftState done [06:37:50]req_shift_opened done [06:37:50]requested_item shift.open_date is exist - process it [06:37:50]req_shift_open_date [06:37:50]req_shift_open_date done [06:37:50]produce_requested_data done [06:37:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73700,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [06:37:50]process_action_free close_receipt [06:37:50]json_value_free [06:37:50]json_value_free done [06:37:50]process_json_proto returns [06:37:50]Send response to host [06:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73700,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [06:37:50]free response buf [06:37:50]execute_script done [06:37:50]execute_script returns [06:37:50]free content buf [06:37:50]Sock 8.Close socket [06:37:50]Sock 8.Thread stoped [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:00]accept exits with 9 [06:51:00]New connection [06:51:00]New thread 3066555748 created [06:51:00]Thread 3066699108 joined [06:51:00]Waiting for new connection... [06:51:00] Sock 9.Parse request [06:51:00]Sock 9.Check first char [06:51:00]Sock 9.First char is OK [06:51:00]request: POST /json_proto HTTP/1.0 [06:51:00]Method: POST [06:51:00]URL: /json_proto [06:51:00]Method is POST - this is cgi request [06:51:00]url: /json_proto [06:51:00]query_string will be loaded in cgi processing [06:51:00]execute_cgi json_proto POST (null) [06:51:00]execute_cgi path=json_proto method=POST [06:51:00]POST find Content-Length [06:51:00]Host: 172.17.44.196:8080 [06:51:00]Content-Length: 910 [06:51:00]Content-Type: application/json [06:51:00] [06:51:00]POST finish read [06:51:00]Found Content-Length = 910 [06:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272729", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:00]execute_script... [06:51: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)272729", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:00]POST & json_proto [06:51:00]process_json_proto [06:51:00]json parsed OK: [06:51:00]protocol is kg_v1.0 [06:51:00]action value=close_receipt [06:51:00]process_action close_receipt [06:51:00]cmd_close_receipt [06:51:00]MH_GetDate [06:51:00]Write to MH i2c: F0 00 00 59 58 A0 [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: F0 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: F0 09 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: F0 09 00 59 58 00 5C A8 14 67 E7 19 F8 65 85 [06:51:00]GetLastDocTimeStamp 1729406273 [06:51:00]current date 1729407068 [06:51:00]FM_GetShiftState [06:51:00]SAM_PROTO_GetShiftState [06:51:00]wFMCommunicate request_size=4 [06:51:00]MH_SAM_APDU [06:51:00]CAPDU: 80 13 01 00 [06:51:00]Write to MH i2c: E2 08 00 5A 58 80 13 01 00 00 00 00 00 2F [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:00]Read from MH i2c: E2 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 0E 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: E2 0E 00 5A 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 74 [06:51:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:51:00]wFMCommunicate OK [06:51:00]SAM_PROTO_GetShiftState done [06:51:00]FM_GetShiftState done [06:51:00]opened in 1729384303 [06:51:00]opened+sec_in_day 1729470703 [06:51:00]quantity*price = 10500 [06:51:00]sum+1 = 10501 [06:51:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 335.00 НСП 1% : 2.96 НДС 12% : 35.57 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 27 20.10.2024 06:51 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73701 ФПД: 27394419554370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065108&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73701&fm=27394419554370&tin=02508201610067®Number=0000000000161154&sum=33500 0 [06:51:01]StoreToDocumentArchive [06:51:01]shift 170 fd 73701 [06:51:01]save to /storage/0170/doc_00073701 [06:51:01]save last doc name /storage/0170/doc_00073701 to /storage/kkm_last_doc_name [06:51:01]save OK [06:51:01]Clear old archive folders... [06:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=392 [06:51:01]tlvbuf is 01099030 [06:51:01]SAM_PROTO_ClearQueue [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 09 00 00 [06:51:01]Write to MH i2c: E2 08 00 67 58 80 09 00 00 00 00 00 00 31 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 03 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 03 00 67 58 00 90 00 33 [06:51:01]RAPDU: 90 00 [06:51:01]wFMCommunicate OK [06:51:01]SAM_PROTO_ClearQueue done [06:51:01]KKMCreateOFDPacket [06:51:01]OFDProtocolAddRootSTLVToBuf [06:51:01]FM_MakeSignedData [06:51:01]FM_MakeSignedData [06:51:01]SAM_PROTO_SignData [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 0D 01 02 [06:51:01]Write to MH i2c: E2 08 00 68 58 80 0D 01 02 00 00 00 00 39 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 03 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 03 00 68 58 00 90 00 34 [06:51:01]RAPDU: 90 00 [06:51:01]wFMCommunicate OK [06:51:01]wFMCommunicate request_size=255 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [06:51:01]Write to MH i2c: E2 02 01 69 58 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 F0 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 03 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 03 00 69 58 00 90 00 35 [06:51:02]RAPDU: 90 00 [06:51:02]wFMCommunicate OK [06:51:02]wFMCommunicate request_size=151 [06:51:02]MH_SAM_APDU [06:51:02]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 5C A8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 1F 01 00 35 04 06 00 18 EA 42 A5 78 42 [06:51:02]Write to MH i2c: E2 9A 00 6A 58 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 5C A8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 1F 01 00 35 04 06 00 18 EA 42 A5 78 42 00 00 EA [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 03 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 03 00 6A 58 00 90 00 36 [06:51:02]RAPDU: 90 00 [06:51:02]wFMCommunicate OK [06:51:02]wFMCommunicate request_size=4 [06:51:02]MH_SAM_APDU [06:51:02]CAPDU: 80 0D 03 02 [06:51:02]Write to MH i2c: E2 08 00 6B 58 80 0D 03 02 00 00 00 00 3E [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 0B 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 0B 00 6B 58 00 0D 77 1A 3B EE F9 9E 85 90 00 22 [06:51:02]RAPDU: 0D 77 1A 3B EE F9 9E 85 90 00 [06:51:02]wFMCommunicate OK [06:51:02]SAM_PROTO_SignData done [06:51:02]FM_MakeSignedData done [06:51:02]CreateOFDProtocolMessage [06:51:02]wFMCommunicate request_size=4 [06:51:02]MH_SAM_APDU [06:51:02]CAPDU: 80 11 00 00 [06:51:02]Write to MH i2c: E2 08 00 6C 58 80 11 00 00 00 00 00 00 3E [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:02]Read from MH i2c: E2 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 17 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: E2 17 00 6C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8B [06:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:51:02]wFMCommunicate OK [06:51:02]CreateOFDProtocolMessage done [06:51:02]OFDSenderStorePacket 73701 [06:51:02]StoreOFDPacket docnum=73701 [06:51:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9C 01 00 00 E0 14 94 01 A9 CD 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 5C A8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 1F 01 00 35 04 06 00 18 EA 42 A5 78 42 0D 77 1A 3B EE F9 9E 85 [06:51:02]CheckFolder [06:51:02]dirname=/storage/ofd_packets [06:51:02]CheckFolder done [06:51:02]ProducePacketName [06:51:02]name=ofd_packets/00073701 [06:51:02]NVStorageSaveData ofd_packets/00073701 [06:51:02]File name is /storage/ofd_packets/00073701 [06:51:02]Write 442 bytes [06:51:02]NVStorageSaveData done [06:51:02]OFDSenderStorePacket done [06:51:02]KKMCreateOFDPacket done [06:51:02]NVStorageSaveData kkm_last_timestamp [06:51:02]File name is /storage/kkm_last_timestamp [06:51:02]Write 4 bytes [06:51:02]NVStorageSaveData done [06:51:02]ExternCall_PrintAddStr [06:51:02]wPrintStart [06:51:02]Write to MH i2c: 01 00 00 6D 58 C5 [06:51:02]Write i2c OK [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: 01 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: 01 07 00 [06:51:02]MH_I2C_Read... [06:51:02]Read from MH i2c: 01 07 00 6D 58 00 00 00 00 00 FF 0F DA [06:51:02]RasterBufferAndPrint [06:51:02]line Счет N : (3)272729 [06:51:02]line ИНН: 02508201610067 [06:51:02]line Контрольно-Кассовый Чек [06:51:02]line ПРОДАЖА [06:51:02]line Товар: 2000034730018 [06:51:02]line Кофе Американо (GABB TRADE) [06:51:02]line 1.000 * 105.00 [06:51:02]line = 105.00 [06:51:02]line НДС 12% НСП 1% [06:51:02]line > о реализуемом товаре [06:51:02]line Товар: 2000036210013 [06:51:02]line Кофе Капучино (GABB TRADE) [06:51:02]line 2.000 * 115.00 [06:51:02]line = 230.00 [06:51:02]line НДС 12% НСП 1% [06:51:02]line > о реализуемом товаре [06:51:02]line ИТОГО: 335.00 [06:51:02]line НСП 1% : 2.96 [06:51:02]line НДС 12% : 35.57 [06:51:02]line Наличными: 335.00 [06:51:02]line Безнал.: 0.00 [06:51:02]line Место: АЗС № 133 "Партнер Нефть" [06:51:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [06:51:02]line СНО: Общий режим [06:51:02]line Чек 27 20.10.2024 06:51 [06:51:02]line Смена: 170 ФФД: 1.0 [06:51:02]line ЗНМ: 0300000020 [06:51:02]line РНМ: 0000000000161154 [06:51:02]line Версия ККМ: v1.0 [06:51:02]line ФМ: 0000000000963323 [06:51:02]line ФД: 73701 [06:51:02]line ФПД: 27394419554370 [06:51:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065108&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73701&fm=27394419554370&tin=02508201610067®Number=0000000000161154&sum=33500 [06:51:02]OFD Sender: Processing packet 73701 [packets to send 15, broken 14] [06:51:02]ProducePacketName [06:51:02]name=ofd_packets/00073701 [06:51:02]OFD Sender: To server: pG, [06:51:02]CommunicateWithHost lk.salyk.kg:30040 [06:51:02]ConnectInit lk.salyk.kg [06:51:02]line 0 [06:51:02]written 0, free lines is 4095 [06:51:02]Connected sock=10 [06:51:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9C 01 00 00 E0 14 94 01 A9 CD 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 5C A8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 1F 01 00 35 04 06 00 18 EA 42 A5 78 42 0D 77 1A 3B EE F9 9E 85 [06:51:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 03 04 47 00 AF 7B 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 39 36 33 33 32 33 10 04 04 00 E5 1F 01 00 F4 03 04 00 42 51 14 67 B6 04 01 00 00 DA FD 70 E5 83 34 E4 AF [06:51:03]CommunicateWithHost err = 0 [06:51:03]CheckOFDResponse [06:51:03]1017 (14) - 77093643461234 [06:51:03]1041 (16) - 0000000000963323 [06:51:03]1040 (4) - 73701 [06:51:03]1012 (4) - 20.10.2024 00:39 [06:51:03]1206 (1) - 0 [06:51:03]OFD Sender: Remove packet 73701 [06:51:03]ProducePacketName [06:51:03]name=ofd_packets/00073701 [06:51:03]NVStorageDeleteData [06:51:03]Write to MH i2c: 01 00 00 9B 58 F3 [06:51:03]Write i2c OK [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: 01 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: 01 07 00 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: 01 07 00 9B 58 00 00 00 00 00 66 0C 6C [06:51:03]RasterBufferAndPrint [06:51:03]line [06:51:03]line [06:51:03]line [06:51:03]line [06:51:03]line [06:51:03]written 0, free lines is 3180 [06:51:03]MH_Cut [06:51:03]Write to MH i2c: D1 01 00 A2 58 01 CC [06:51:03]Write i2c OK [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: D1 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: D1 01 00 [06:51:03]MH_I2C_Read... [06:51:03]Read from MH i2c: D1 01 00 A2 58 00 CB [06:51:03]Write to MH i2c: 01 00 00 A3 58 FB [06:51:03]Write i2c OK [06:51:03]MH_I2C_Read... [06:51:03]OFD Sender: No OFD packet to send [06:51:04]*** Cut start [06:51:04]*** Partial cut [06:51:04]*** CUTSNS_PIN = 1 [06:51:04]*** CUTSNS_PIN = 0 [06:51:04]*** Brake cut motor [06:51:04]Read from MH i2c: 01 [06:51:04]MH_I2C_Read... [06:51:04]*** Stop cut motor [06:51:04]*** Cut end [06:51:04]Read from MH i2c: 01 07 00 [06:51:04]MH_I2C_Read... [06:51:04]Read from MH i2c: 01 07 00 A3 58 00 00 00 00 00 FF 0F 10 [06:51:04]process_action close_receipt done [06:51:04]requested_data is exist [06:51:04]produce_requested_data [06:51:04]requested_item fm.sn is exist - process it [06:51:04]wFMCommunicate request_size=4 [06:51:04]MH_SAM_APDU [06:51:04]CAPDU: 80 11 00 00 [06:51:04]Write to MH i2c: E2 08 00 A4 58 80 11 00 00 00 00 00 00 76 [06:51:04]Write i2c OK [06:51:04]MH_I2C_Read... [06:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:04]Read from MH i2c: E2 [06:51:04]MH_I2C_Read... [06:51:04]Read from MH i2c: E2 17 00 [06:51:04]MH_I2C_Read... [06:51:04]Read from MH i2c: E2 17 00 A4 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C3 [06:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [06:51:04]wFMCommunicate OK [06:51:04]requested_item fd.num is exist - process it [06:51:04]SAM_PROTO_GetFieldsCounters [06:51:04]wFMCommunicate request_size=4 [06:51:04]MH_SAM_APDU [06:51:04]CAPDU: 80 13 00 00 [06:51:04]Write to MH i2c: E2 08 00 A5 58 80 13 00 00 00 00 00 00 79 [06:51:04]Write i2c OK [06:51:04]MH_I2C_Read... [06:51:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:05]Read from MH i2c: E2 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: E2 62 00 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: E2 62 00 A5 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E5 1F 01 00 0E 04 04 00 AA 00 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 8D [06:51:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E5 1F 01 00 0E 04 04 00 AA 00 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 [06:51:05]wFMCommunicate OK [06:51:05]SAM_PROTO_GetFieldsCounters done [06:51:05]requested_item shift.num is exist - process it [06:51:05]requested_item shift.opened is exist - process it [06:51:05]req_shift_opened [06:51:05]FM_GetShiftState [06:51:05]SAM_PROTO_GetShiftState [06:51:05]wFMCommunicate request_size=4 [06:51:05]MH_SAM_APDU [06:51:05]CAPDU: 80 13 01 00 [06:51:05]Write to MH i2c: E2 08 00 A6 58 80 13 01 00 00 00 00 00 7B [06:51:05]Write i2c OK [06:51:05]MH_I2C_Read... [06:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:05]Read from MH i2c: E2 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: E2 0E 00 [06:51:05]MH_I2C_Read... [06:51:05]Read from MH i2c: E2 0E 00 A6 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C0 [06:51:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [06:51:05]wFMCommunicate OK [06:51:05]SAM_PROTO_GetShiftState done [06:51:05]FM_GetShiftState done [06:51:05]req_shift_opened done [06:51:05]requested_item shift.open_date is exist - process it [06:51:05]req_shift_open_date [06:51:05]req_shift_open_date done [06:51:05]produce_requested_data done [06:51:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73701,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [06:51:05]process_action_free close_receipt [06:51:05]json_value_free [06:51:05]json_value_free done [06:51:05]process_json_proto returns [06:51:05]Send response to host [06:51:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73701,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [06:51:05]free response buf [06:51:05]execute_script done [06:51:05]execute_script returns [06:51:05]free content buf [06:51:05]Sock 9.Close socket [06:51:05]Sock 9.Thread stoped [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]accept exits with 8 [07:10:19]New connection [07:10:19]New thread 3066699108 created [07:10:19]Thread 3066555748 joined [07:10:19]Waiting for new connection... [07:10:19] Sock 8.Parse request [07:10:19]Sock 8.Check first char [07:10:19]Sock 8.First char is OK [07:10:19]request: POST /json_proto HTTP/1.0 [07:10:19]Method: POST [07:10:19]URL: /json_proto [07:10:19]Method is POST - this is cgi request [07:10:19]url: /json_proto [07:10:19]query_string will be loaded in cgi processing [07:10:19]execute_cgi json_proto POST (null) [07:10:19]execute_cgi path=json_proto method=POST [07:10:19]POST find Content-Length [07:10:19]Host: 172.17.44.196:8080 [07:10:19]Content-Length: 607 [07:10:19]Content-Type: application/json [07:10:19] [07:10:19]POST finish read [07:10:19]Found Content-Length = 607 [07:10:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272730", "tax_sys" : 0, "items" : [ { "code": "4620103784221", "name": "\u0425\u043E\u043C\u0443\u0442 3,6 370 1\u0448\u0442", "price" : 12.00, "quantity" : 8.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 96.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:19]execute_script... [07:10: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 : (3)272730", "tax_sys" : 0, "items" : [ { "code": "4620103784221", "name": "\u0425\u043E\u043C\u0443\u0442 3,6 370 1\u0448\u0442", "price" : 12.00, "quantity" : 8.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 96.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:19]POST & json_proto [07:10:19]process_json_proto [07:10:19]json parsed OK: [07:10:19]protocol is kg_v1.0 [07:10:19]action value=close_receipt [07:10:19]process_action close_receipt [07:10:19]cmd_close_receipt [07:10:19]MH_GetDate [07:10:19]Write to MH i2c: F0 00 00 A7 58 EE [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: F0 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: F0 09 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: F0 09 00 A7 58 00 E3 AC 14 67 E7 19 F8 65 5E [07:10:19]GetLastDocTimeStamp 1729407068 [07:10:19]current date 1729408227 [07:10:19]FM_GetShiftState [07:10:19]SAM_PROTO_GetShiftState [07:10:19]wFMCommunicate request_size=4 [07:10:19]MH_SAM_APDU [07:10:19]CAPDU: 80 13 01 00 [07:10:19]Write to MH i2c: E2 08 00 A8 58 80 13 01 00 00 00 00 00 7D [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 0E 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 0E 00 A8 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C2 [07:10:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [07:10:19]wFMCommunicate OK [07:10:19]SAM_PROTO_GetShiftState done [07:10:19]FM_GetShiftState done [07:10:19]opened in 1729384303 [07:10:19]opened+sec_in_day 1729470703 [07:10:19]quantity*price = 9600 [07:10:19]sum+1 = 9601 [07:10:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 96.00 НСП 1% : 0.85 НДС 12% : 10.19 Наличными: 96.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 28 20.10.2024 07:10 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73702 ФПД: 77321741071683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071027&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73702&fm=77321741071683&tin=02508201610067®Number=0000000000161154&sum=9600 0 [07:10:20]StoreToDocumentArchive [07:10:20]shift 170 fd 73702 [07:10:20]save to /storage/0170/doc_00073702 [07:10:20]save last doc name /storage/0170/doc_00073702 to /storage/kkm_last_doc_name [07:10:20]save OK [07:10:20]Clear old archive folders... [07:10:20]ProcessDocumentItem done err = 0, tmpTLVsize=266 [07:10:20]tlvbuf is 010D5E20 [07:10:20]SAM_PROTO_ClearQueue [07:10:20]wFMCommunicate request_size=4 [07:10:20]MH_SAM_APDU [07:10:20]CAPDU: 80 09 00 00 [07:10:20]Write to MH i2c: E2 08 00 B5 58 80 09 00 00 00 00 00 00 7F [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:20]Read from MH i2c: E2 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: E2 03 00 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: E2 03 00 B5 58 00 90 00 81 [07:10:20]RAPDU: 90 00 [07:10:20]wFMCommunicate OK [07:10:20]SAM_PROTO_ClearQueue done [07:10:20]KKMCreateOFDPacket [07:10:20]OFDProtocolAddRootSTLVToBuf [07:10:20]FM_MakeSignedData [07:10:20]FM_MakeSignedData [07:10:20]SAM_PROTO_SignData [07:10:20]wFMCommunicate request_size=4 [07:10:20]MH_SAM_APDU [07:10:20]CAPDU: 80 0D 01 02 [07:10:20]Write to MH i2c: E2 08 00 B6 58 80 0D 01 02 00 00 00 00 87 [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:20]Read from MH i2c: E2 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: E2 03 00 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: E2 03 00 B6 58 00 90 00 82 [07:10:20]RAPDU: 90 00 [07:10:20]wFMCommunicate OK [07:10:20]wFMCommunicate request_size=255 [07:10:20]MH_SAM_APDU [07:10:20]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 31 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 33 2C 36 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 04 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 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 1C 00 00 00 F4 03 04 00 E3 AC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 [07:10:20]Write to MH i2c: E2 02 01 B7 58 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 31 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 33 2C 36 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 04 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 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 1C 00 00 00 F4 03 04 00 E3 AC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 00 00 E7 [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:20]Read from MH i2c: E2 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: E2 03 00 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: E2 03 00 B7 58 00 90 00 83 [07:10:20]RAPDU: 90 00 [07:10:20]wFMCommunicate OK [07:10:20]wFMCommunicate request_size=25 [07:10:20]MH_SAM_APDU [07:10:20]CAPDU: 80 0D 02 02 14 32 33 10 04 04 00 E6 1F 01 00 35 04 06 00 46 52 DE E8 F5 43 [07:10:20]Write to MH i2c: E2 1C 00 B8 58 80 0D 02 02 14 00 32 33 10 04 04 00 E6 1F 01 00 35 04 06 00 46 52 DE E8 F5 43 00 00 0A [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:21]Read from MH i2c: E2 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 03 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 03 00 B8 58 00 90 00 84 [07:10:21]RAPDU: 90 00 [07:10:21]wFMCommunicate OK [07:10:21]wFMCommunicate request_size=4 [07:10:21]MH_SAM_APDU [07:10:21]CAPDU: 80 0D 03 02 [07:10:21]Write to MH i2c: E2 08 00 B9 58 80 0D 03 02 00 00 00 00 8C [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:21]Read from MH i2c: E2 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 0B 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 0B 00 B9 58 00 FF 02 F4 96 BD 34 19 50 90 00 72 [07:10:21]RAPDU: FF 02 F4 96 BD 34 19 50 90 00 [07:10:21]wFMCommunicate OK [07:10:21]SAM_PROTO_SignData done [07:10:21]FM_MakeSignedData done [07:10:21]CreateOFDProtocolMessage [07:10:21]wFMCommunicate request_size=4 [07:10:21]MH_SAM_APDU [07:10:21]CAPDU: 80 11 00 00 [07:10:21]Write to MH i2c: E2 08 00 BA 58 80 11 00 00 00 00 00 00 8C [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:21]Read from MH i2c: E2 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 17 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 17 00 BA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [07:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:10:21]wFMCommunicate OK [07:10:21]CreateOFDProtocolMessage done [07:10:21]OFDSenderStorePacket 73702 [07:10:21]StoreOFDPacket docnum=73702 [07:10:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 AB 59 16 01 B4 08 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 31 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 33 2C 36 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 04 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 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 1C 00 00 00 F4 03 04 00 E3 AC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 1F 01 00 35 04 06 00 46 52 DE E8 F5 43 FF 02 F4 96 BD 34 19 50 [07:10:21]CheckFolder [07:10:21]dirname=/storage/ofd_packets [07:10:21]CheckFolder done [07:10:21]ProducePacketName [07:10:21]name=ofd_packets/00073702 [07:10:21]NVStorageSaveData ofd_packets/00073702 [07:10:21]File name is /storage/ofd_packets/00073702 [07:10:21]Write 316 bytes [07:10:21]NVStorageSaveData done [07:10:21]OFDSenderStorePacket done [07:10:21]KKMCreateOFDPacket done [07:10:21]NVStorageSaveData kkm_last_timestamp [07:10:21]File name is /storage/kkm_last_timestamp [07:10:21]Write 4 bytes [07:10:21]NVStorageSaveData done [07:10:21]ExternCall_PrintAddStr [07:10:21]wPrintStart [07:10:21]Write to MH i2c: 01 00 00 BB 58 13 [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 07 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 07 00 BB 58 00 00 00 00 00 FF 0F 28 [07:10:21]RasterBufferAndPrint [07:10:21]line Счет N : (3)272730 [07:10:21]line ИНН: 02508201610067 [07:10:21]line Контрольно-Кассовый Чек [07:10:21]line ПРОДАЖА [07:10:21]line Товар: 4620103784221 [07:10:21]line Хомут 3,6 370 1шт [07:10:21]line 8.000 * 12.00 [07:10:21]line = 96.00 [07:10:21]line НДС 12% НСП 1% [07:10:21]line > о реализуемом товаре [07:10:21]line ИТОГО: 96.00 [07:10:21]line НСП 1% : 0.85 [07:10:21]line НДС 12% : 10.19 [07:10:21]line Наличными: 96.00 [07:10:21]line Безнал.: 0.00 [07:10:21]line Место: АЗС № 133 "Партнер Нефть" [07:10:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [07:10:21]line СНО: Общий режим [07:10:21]line Чек 28 20.10.2024 07:10 [07:10:21]line Смена: 170 ФФД: 1.0 [07:10:21]line ЗНМ: 0300000020 [07:10:21]line РНМ: 0000000000161154 [07:10:21]line Версия ККМ: v1.0 [07:10:21]line ФМ: 0000000000963323 [07:10:21]line ФД: 73702 [07:10:21]line ФПД: 77321741071683 [07:10:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071027&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73702&fm=77321741071683&tin=02508201610067®Number=0000000000161154&sum=9600 [07:10:21]line 0 [07:10:21]OFD Sender: Processing packet 73702 [packets to send 15, broken 14] [07:10:21]ProducePacketName [07:10:21]name=ofd_packets/00073702 [07:10:21]OFD Sender: To server: pG, [07:10:21]CommunicateWithHost lk.salyk.kg:30040 [07:10:21]ConnectInit lk.salyk.kg [07:10:21]written 0, free lines is 4095 [07:10:21]Connected sock=10 [07:10:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 AB 59 16 01 B4 08 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 31 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 33 2C 36 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 04 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 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 1C 00 00 00 F4 03 04 00 E3 AC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 1F 01 00 35 04 06 00 46 52 DE E8 F5 43 FF 02 F4 96 BD 34 19 50 [07:10:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B2 25 47 00 E6 AE 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 39 36 33 33 32 33 10 04 04 00 E6 1F 01 00 F4 03 04 00 C9 55 14 67 B6 04 01 00 00 75 82 A8 11 30 92 BA F7 [07:10:21]CommunicateWithHost err = 0 [07:10:21]CheckOFDResponse [07:10:21]1017 (14) - 77093643461234 [07:10:21]1041 (16) - 0000000000963323 [07:10:21]1040 (4) - 73702 [07:10:21]1012 (4) - 20.10.2024 00:58 [07:10:21]1206 (1) - 0 [07:10:21]OFD Sender: Remove packet 73702 [07:10:21]ProducePacketName [07:10:21]name=ofd_packets/00073702 [07:10:21]NVStorageDeleteData [07:10:21]Write to MH i2c: 01 00 00 E2 58 3A [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 07 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 07 00 E2 58 00 00 00 00 00 D8 0C 25 [07:10:21]RasterBufferAndPrint [07:10:21]line [07:10:21]line [07:10:21]line [07:10:21]line [07:10:21]line [07:10:21]written 0, free lines is 3293 [07:10:21]MH_Cut [07:10:21]Write to MH i2c: D1 01 00 E9 58 01 13 [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: D1 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: D1 01 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: D1 01 00 E9 58 00 12 [07:10:21]Write to MH i2c: 01 00 00 EA 58 42 [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:22]OFD Sender: No OFD packet to send [07:10:22]*** Cut start [07:10:22]*** Partial cut [07:10:22]*** CUTSNS_PIN = 1 [07:10:22]*** CUTSNS_PIN = 0 [07:10:23]*** Brake cut motor [07:10:23]Read from MH i2c: 01 [07:10:23]MH_I2C_Read... [07:10:23]*** Stop cut motor [07:10:23]*** Cut end [07:10:23]Read from MH i2c: 01 07 00 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: 01 07 00 EA 58 00 00 00 00 00 FF 0F 57 [07:10:23]process_action close_receipt done [07:10:23]requested_data is exist [07:10:23]produce_requested_data [07:10:23]requested_item fm.sn is exist - process it [07:10:23]wFMCommunicate request_size=4 [07:10:23]MH_SAM_APDU [07:10:23]CAPDU: 80 11 00 00 [07:10:23]Write to MH i2c: E2 08 00 EB 58 80 11 00 00 00 00 00 00 BD [07:10:23]Write i2c OK [07:10:23]MH_I2C_Read... [07:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:23]Read from MH i2c: E2 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 17 00 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 17 00 EB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0A [07:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:10:23]wFMCommunicate OK [07:10:23]requested_item fd.num is exist - process it [07:10:23]SAM_PROTO_GetFieldsCounters [07:10:23]wFMCommunicate request_size=4 [07:10:23]MH_SAM_APDU [07:10:23]CAPDU: 80 13 00 00 [07:10:23]Write to MH i2c: E2 08 00 EC 58 80 13 00 00 00 00 00 00 C0 [07:10:23]Write i2c OK [07:10:23]MH_I2C_Read... [07:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:23]Read from MH i2c: E2 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 62 00 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 62 00 EC 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E6 1F 01 00 0E 04 04 00 AA 00 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 D8 [07:10:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E6 1F 01 00 0E 04 04 00 AA 00 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 [07:10:23]wFMCommunicate OK [07:10:23]SAM_PROTO_GetFieldsCounters done [07:10:23]requested_item shift.num is exist - process it [07:10:23]requested_item shift.opened is exist - process it [07:10:23]req_shift_opened [07:10:23]FM_GetShiftState [07:10:23]SAM_PROTO_GetShiftState [07:10:23]wFMCommunicate request_size=4 [07:10:23]MH_SAM_APDU [07:10:23]CAPDU: 80 13 01 00 [07:10:23]Write to MH i2c: E2 08 00 ED 58 80 13 01 00 00 00 00 00 C2 [07:10:23]Write i2c OK [07:10:23]MH_I2C_Read... [07:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:23]Read from MH i2c: E2 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 0E 00 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 0E 00 ED 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 07 [07:10:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [07:10:23]wFMCommunicate OK [07:10:23]SAM_PROTO_GetShiftState done [07:10:23]FM_GetShiftState done [07:10:23]req_shift_opened done [07:10:23]requested_item shift.open_date is exist - process it [07:10:23]req_shift_open_date [07:10:23]req_shift_open_date done [07:10:23]produce_requested_data done [07:10:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73702,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [07:10:23]process_action_free close_receipt [07:10:23]json_value_free [07:10:23]json_value_free done [07:10:23]process_json_proto returns [07:10:23]Send response to host [07:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73702,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [07:10:23]free response buf [07:10:23]execute_script done [07:10:23]execute_script returns [07:10:23]free content buf [07:10:23]Sock 8.Close socket [07:10:23]Sock 8.Thread stoped [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:01]accept exits with 9 [07:33:01]New connection [07:33:01]New thread 3066555748 created [07:33:01]Thread 3066699108 joined [07:33:01]Waiting for new connection... [07:33:01] Sock 9.Parse request [07:33:01]Sock 9.Check first char [07:33:01]Sock 9.First char is OK [07:33:01]request: POST /json_proto HTTP/1.0 [07:33:01]Method: POST [07:33:01]URL: /json_proto [07:33:01]Method is POST - this is cgi request [07:33:01]url: /json_proto [07:33:01]query_string will be loaded in cgi processing [07:33:01]execute_cgi json_proto POST (null) [07:33:01]execute_cgi path=json_proto method=POST [07:33:01]POST find Content-Length [07:33:01]Host: 172.17.44.196:8080 [07:33:01]Content-Length: 899 [07:33:01]Content-Type: application/json [07:33:01] [07:33:01]POST finish read [07:33:01]Found Content-Length = 899 [07:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272731", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "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" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:01]execute_script... [07:33:01]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)272731", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "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" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:01]POST & json_proto [07:33:01]process_json_proto [07:33:01]json parsed OK: [07:33:01]protocol is kg_v1.0 [07:33:01]action value=close_receipt [07:33:01]process_action close_receipt [07:33:01]cmd_close_receipt [07:33:01]MH_GetDate [07:33:01]Write to MH i2c: F0 00 00 EE 58 35 [07:33:01]Write i2c OK [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: F0 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: F0 09 00 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: F0 09 00 EE 58 00 36 B2 14 67 E7 19 F8 65 FE [07:33:01]GetLastDocTimeStamp 1729408227 [07:33:01]current date 1729409590 [07:33:01]FM_GetShiftState [07:33:01]SAM_PROTO_GetShiftState [07:33:01]wFMCommunicate request_size=4 [07:33:01]MH_SAM_APDU [07:33:01]CAPDU: 80 13 01 00 [07:33:01]Write to MH i2c: E2 08 00 EF 58 80 13 01 00 00 00 00 00 C4 [07:33:01]Write i2c OK [07:33:01]MH_I2C_Read... [07:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:01]Read from MH i2c: E2 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 0E 00 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 0E 00 EF 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 09 [07:33:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [07:33:01]wFMCommunicate OK [07:33:01]SAM_PROTO_GetShiftState done [07:33:01]FM_GetShiftState done [07:33:01]opened in 1729384303 [07:33:01]opened+sec_in_day 1729470703 [07:33:01]quantity*price = 14000 [07:33:01]sum+1 = 14001 [07:33:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 367.00 НСП 1% : 3.24 НДС 12% : 38.97 Наличными: 367.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 30 20.10.2024 08:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73704 ФПД: 123982516102497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081810&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73704&fm=123982516102497&tin=02508201610067®Number=0000000000161154&sum=36700 0 [08:18:11]StoreToDocumentArchive [08:18:11]shift 170 fd 73704 [08:18:11]save to /storage/0170/doc_00073704 [08:18:11]save last doc name /storage/0170/doc_00073704 to /storage/kkm_last_doc_name [08:18:11]save OK [08:18:11]Clear old archive folders... [08:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=369 [08:18:11]tlvbuf is 003598E0 [08:18:11]SAM_PROTO_ClearQueue [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 09 00 00 [08:18:11]Write to MH i2c: E2 08 00 3C 00 80 09 00 00 00 00 00 00 AE [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 3C 00 00 90 00 B0 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]SAM_PROTO_ClearQueue done [08:18:11]KKMCreateOFDPacket [08:18:11]OFDProtocolAddRootSTLVToBuf [08:18:11]FM_MakeSignedData [08:18:11]FM_MakeSignedData [08:18:11]SAM_PROTO_SignData [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 01 02 [08:18:11]Write to MH i2c: E2 08 00 3D 00 80 0D 01 02 00 00 00 00 B6 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 3D 00 00 90 00 B1 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]wFMCommunicate request_size=255 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 75 00 00 00 00 13 04 06 00 F8 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 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [08:18:11]Write to MH i2c: E2 02 01 3E 00 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 75 00 00 00 00 13 04 06 00 F8 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 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 E0 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 3E 00 00 90 00 B2 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]wFMCommunicate request_size=128 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 02 02 7B F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 C2 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 1F 01 00 35 04 06 00 70 C2 ED D4 A5 61 [08:18:11]Write to MH i2c: E2 83 00 3F 00 80 0D 02 02 7B 00 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 C2 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 1F 01 00 35 04 06 00 70 C2 ED D4 A5 61 00 00 CD [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 3F 00 00 90 00 B3 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 03 02 [08:18:11]Write to MH i2c: E2 08 00 40 00 80 0D 03 02 00 00 00 00 BB [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 0B 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 0B 00 40 00 00 13 64 EC 2C 7E 1C 44 4C 90 00 75 [08:18:11]RAPDU: 13 64 EC 2C 7E 1C 44 4C 90 00 [08:18:11]wFMCommunicate OK [08:18:11]SAM_PROTO_SignData done [08:18:11]FM_MakeSignedData done [08:18:11]CreateOFDProtocolMessage [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 11 00 00 [08:18:11]Write to MH i2c: E2 08 00 41 00 80 11 00 00 00 00 00 00 BB [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:12]Read from MH i2c: E2 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 17 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: E2 17 00 41 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 08 [08:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:18:12]wFMCommunicate OK [08:18:12]CreateOFDProtocolMessage done [08:18:12]OFDSenderStorePacket 73704 [08:18:12]StoreOFDPacket docnum=73704 [08:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 85 01 00 00 B6 07 7D 01 3F 5D 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 75 00 00 00 00 13 04 06 00 F8 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 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 C2 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 1F 01 00 35 04 06 00 70 C2 ED D4 A5 61 13 64 EC 2C 7E 1C 44 4C [08:18:12]CheckFolder [08:18:12]dirname=/storage/ofd_packets [08:18:12]CheckFolder done [08:18:12]ProducePacketName [08:18:12]name=ofd_packets/00073704 [08:18:12]NVStorageSaveData ofd_packets/00073704 [08:18:12]File name is /storage/ofd_packets/00073704 [08:18:12]Write 419 bytes [08:18:12]NVStorageSaveData done [08:18:12]OFDSenderStorePacket done [08:18:12]KKMCreateOFDPacket done [08:18:12]NVStorageSaveData kkm_last_timestamp [08:18:12]File name is /storage/kkm_last_timestamp [08:18:12]Write 4 bytes [08:18:12]NVStorageSaveData done [08:18:12]ExternCall_PrintAddStr [08:18:12]wPrintStart [08:18:12]Write to MH i2c: 01 00 00 42 00 42 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 07 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 07 00 42 00 00 00 00 00 00 FF 0F 57 [08:18:12]RasterBufferAndPrint [08:18:12]line Счет N : (3)272732 [08:18:12]line ИНН: 02508201610067 [08:18:12]line Контрольно-Кассовый Чек [08:18:12]line ПРОДАЖА [08:18:12]line Товар: 4700003150486 [08:18:12]line Водка Ороон 0,5 [08:18:12]line 1.000 * 302.00 [08:18:12]line = 302.00 [08:18:12]line НДС 12% НСП 1% [08:18:12]line > о реализуемом товаре [08:18:12]line Товар: 47011656 [08:18:12]line Водка Пшеничная 0,1л [08:18:12]line 1.000 * 65.00 [08:18:12]line = 65.00 [08:18:12]line НДС 12% НСП 1% [08:18:12]line > о реализуемом товаре [08:18:12]line ИТОГО: 367.00 [08:18:12]line НСП 1% : 3.24 [08:18:12]line НДС 12% : 38.97 [08:18:12]line Наличными: 367.00 [08:18:12]line Безнал.: 0.00 [08:18:12]line Место: АЗС № 133 "Партнер Нефть" [08:18:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:18:12]line СНО: Общий режим [08:18:12]line Чек 30 20.10.2024 08:18 [08:18:12]line Смена: 170 ФФД: 1.0 [08:18:12]line ЗНМ: 0300000020 [08:18:12]line РНМ: 0000000000161154 [08:18:12]line Версия ККМ: v1.0 [08:18:12]line ФМ: 0000000000963323 [08:18:12]line ФД: 73704 [08:18:12]line ФПД: 123982516102497 [08:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081810&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73704&fm=123982516102497&tin=02508201610067®Number=0000000000161154&sum=36700 [08:18:12]OFD Sender: Processing packet 73704 [packets to send 15, broken 14] [08:18:12]ProducePacketName [08:18:12]name=ofd_packets/00073704 [08:18:12]OFD Sender: To server: pG, [08:18:12]CommunicateWithHost lk.salyk.kg:30040 [08:18:12]ConnectInit lk.salyk.kg [08:18:12]line 0 [08:18:12]written 0, free lines is 4095 [08:18:12]Connected sock=10 [08:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 85 01 00 00 B6 07 7D 01 3F 5D 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 75 00 00 00 00 13 04 06 00 F8 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 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 C2 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 1F 01 00 35 04 06 00 70 C2 ED D4 A5 61 13 64 EC 2C 7E 1C 44 4C [08:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C2 66 47 00 8E 7A 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 39 36 33 33 32 33 10 04 04 00 E8 1F 01 00 F4 03 04 00 A8 65 14 67 B6 04 01 00 00 32 20 1A AC 41 AB 20 4C [08:18:12]CommunicateWithHost err = 0 [08:18:12]CheckOFDResponse [08:18:12]1017 (14) - 77093643461234 [08:18:12]1041 (16) - 0000000000963323 [08:18:12]1040 (4) - 73704 [08:18:12]1012 (4) - 20.10.2024 02:06 [08:18:12]1206 (1) - 0 [08:18:12]OFD Sender: Remove packet 73704 [08:18:12]ProducePacketName [08:18:12]name=ofd_packets/00073704 [08:18:12]NVStorageDeleteData [08:18:12]Write to MH i2c: 01 00 00 6F 00 6F [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 07 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 79 0C FB [08:18:12]RasterBufferAndPrint [08:18:12]line [08:18:12]line [08:18:12]line [08:18:12]line [08:18:12]line [08:18:12]written 0, free lines is 3207 [08:18:12]MH_Cut [08:18:12]Write to MH i2c: D1 01 00 76 00 01 48 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: D1 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: D1 01 00 [08:18:12]MH_I2C_Read... [08:18:12]Read from MH i2c: D1 01 00 76 00 00 47 [08:18:12]Write to MH i2c: 01 00 00 77 00 77 [08:18:12]Write i2c OK [08:18:12]MH_I2C_Read... [08:18:13]OFD Sender: No OFD packet to send [08:18:13]*** Cut start [08:18:13]*** Partial cut [08:18:13]*** CUTSNS_PIN = 1 [08:18:13]*** CUTSNS_PIN = 0 [08:18:14]*** Brake cut motor [08:18:14]Read from MH i2c: 01 [08:18:14]MH_I2C_Read... [08:18:14]*** Stop cut motor [08:18:14]*** Cut end [08:18:14]Read from MH i2c: 01 07 00 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: 01 07 00 77 00 00 00 00 00 00 FF 0F 8C [08:18:14]process_action close_receipt done [08:18:14]requested_data is exist [08:18:14]produce_requested_data [08:18:14]requested_item fm.sn is exist - process it [08:18:14]wFMCommunicate request_size=4 [08:18:14]MH_SAM_APDU [08:18:14]CAPDU: 80 11 00 00 [08:18:14]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [08:18:14]Write i2c OK [08:18:14]MH_I2C_Read... [08:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:14]Read from MH i2c: E2 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: E2 17 00 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [08:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:18:14]wFMCommunicate OK [08:18:14]requested_item fd.num is exist - process it [08:18:14]SAM_PROTO_GetFieldsCounters [08:18:14]wFMCommunicate request_size=4 [08:18:14]MH_SAM_APDU [08:18:14]CAPDU: 80 13 00 00 [08:18:14]Write to MH i2c: E2 08 00 79 00 80 13 00 00 00 00 00 00 F5 [08:18:14]Write i2c OK [08:18:14]MH_I2C_Read... [08:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:14]Read from MH i2c: E2 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: E2 62 00 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: E2 62 00 79 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E8 1F 01 00 0E 04 04 00 AA 00 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 15 [08:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E8 1F 01 00 0E 04 04 00 AA 00 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 [08:18:14]wFMCommunicate OK [08:18:14]SAM_PROTO_GetFieldsCounters done [08:18:14]requested_item shift.num is exist - process it [08:18:14]requested_item shift.opened is exist - process it [08:18:14]req_shift_opened [08:18:14]FM_GetShiftState [08:18:14]SAM_PROTO_GetShiftState [08:18:14]wFMCommunicate request_size=4 [08:18:14]MH_SAM_APDU [08:18:14]CAPDU: 80 13 01 00 [08:18:14]Write to MH i2c: E2 08 00 7A 00 80 13 01 00 00 00 00 00 F7 [08:18:14]Write i2c OK [08:18:14]MH_I2C_Read... [08:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:14]Read from MH i2c: E2 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: E2 0E 00 [08:18:14]MH_I2C_Read... [08:18:14]Read from MH i2c: E2 0E 00 7A 00 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3C [08:18:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:18:14]wFMCommunicate OK [08:18:14]SAM_PROTO_GetShiftState done [08:18:14]FM_GetShiftState done [08:18:14]req_shift_opened done [08:18:14]requested_item shift.open_date is exist - process it [08:18:14]req_shift_open_date [08:18:14]req_shift_open_date done [08:18:14]produce_requested_data done [08:18:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73704,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:18:14]process_action_free close_receipt [08:18:14]json_value_free [08:18:14]json_value_free done [08:18:14]process_json_proto returns [08:18:14]Send response to host [08:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73704,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:18:14]free response buf [08:18:14]execute_script done [08:18:14]execute_script returns [08:18:14]free content buf [08:18:14]Sock 5.Close socket [08:18:14]Sock 5.Thread stoped [08:18:16]accept exits with 9 [08:18:16]New connection [08:18:16]New thread 3067432292 created [08:18:16]Thread 3067575652 joined [08:18:16]Waiting for new connection... [08:18:16] Sock 9.Parse request [08:18:16]Sock 9.Check first char [08:18:16]Sock 9.First char is OK [08:18:16]request: POST /json_proto HTTP/1.0 [08:18:16]Method: POST [08:18:16]URL: /json_proto [08:18:16]Method is POST - this is cgi request [08:18:16]url: /json_proto [08:18:16]query_string will be loaded in cgi processing [08:18:16]execute_cgi json_proto POST (null) [08:18:16]execute_cgi path=json_proto method=POST [08:18:16]POST find Content-Length [08:18:16]Host: 172.17.44.196:8080 [08:18:16]Content-Length: 639 [08:18:16]Content-Type: application/json [08:18:16] [08:18:16]POST finish read [08:18:16]Found Content-Length = 639 [08:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272733", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:16]execute_script... [08:18: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)272733", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:16]POST & json_proto [08:18:16]process_json_proto [08:18:16]json parsed OK: [08:18:16]protocol is kg_v1.0 [08:18:16]action value=close_receipt [08:18:16]process_action close_receipt [08:18:16]cmd_close_receipt [08:18:16]MH_GetDate [08:18:16]Write to MH i2c: F0 00 00 7B 00 6A [08:18:16]Write i2c OK [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 09 00 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 09 00 7B 00 00 C8 BC 14 67 E7 19 F8 65 CF [08:18:16]GetLastDocTimeStamp 1729412290 [08:18:16]current date 1729412296 [08:18:16]FM_GetShiftState [08:18:16]SAM_PROTO_GetShiftState [08:18:16]wFMCommunicate request_size=4 [08:18:16]MH_SAM_APDU [08:18:16]CAPDU: 80 13 01 00 [08:18:16]Write to MH i2c: E2 08 00 7C 00 80 13 01 00 00 00 00 00 F9 [08:18:16]Write i2c OK [08:18:16]MH_I2C_Read... [08:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:16]Read from MH i2c: E2 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: E2 0E 00 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: E2 0E 00 7C 00 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3E [08:18:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:18:16]wFMCommunicate OK [08:18:16]SAM_PROTO_GetShiftState done [08:18:16]FM_GetShiftState done [08:18:16]opened in 1729384303 [08:18:16]opened+sec_in_day 1729470703 [08:18:16]quantity*price = 12500 [08:18:16]sum+1 = 12501 [08:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 31 20.10.2024 08:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73705 ФПД: 132062518594503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081817&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73705&fm=132062518594503&tin=02508201610067®Number=0000000000161154&sum=12500 0 [08:18:18]StoreToDocumentArchive [08:18:18]shift 170 fd 73705 [08:18:18]save to /storage/0170/doc_00073705 [08:18:18]save last doc name /storage/0170/doc_00073705 to /storage/kkm_last_doc_name [08:18:18]save OK [08:18:18]Clear old archive folders... [08:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=271 [08:18:18]tlvbuf is 0035EE60 [08:18:18]SAM_PROTO_ClearQueue [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 09 00 00 [08:18:18]Write to MH i2c: E2 08 00 89 00 80 09 00 00 00 00 00 00 FB [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 89 00 00 90 00 FD [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]SAM_PROTO_ClearQueue done [08:18:18]KKMCreateOFDPacket [08:18:18]OFDProtocolAddRootSTLVToBuf [08:18:18]FM_MakeSignedData [08:18:18]FM_MakeSignedData [08:18:18]SAM_PROTO_SignData [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 01 02 [08:18:18]Write to MH i2c: E2 08 00 8A 00 80 0D 01 02 00 00 00 00 03 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 8A 00 00 90 00 FE [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=255 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 C9 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [08:18:18]Write to MH i2c: E2 02 01 8B 00 80 0D 02 02 FA 00 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 C9 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 CA [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]OFD Sender: No OFD packet to send [08:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 8B 00 00 90 00 FF [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=30 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 E9 1F 01 00 35 04 06 00 78 1C 33 82 4B C7 [08:18:18]Write to MH i2c: E2 21 00 8C 00 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 E9 1F 01 00 35 04 06 00 78 1C 33 82 4B C7 00 00 5D [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 8C 00 00 90 00 00 [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 03 02 [08:18:18]Write to MH i2c: E2 08 00 8D 00 80 0D 03 02 00 00 00 00 08 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 0B 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 0B 00 8D 00 00 D6 42 F7 02 49 2C 5D 15 90 00 01 [08:18:18]RAPDU: D6 42 F7 02 49 2C 5D 15 90 00 [08:18:18]wFMCommunicate OK [08:18:18]SAM_PROTO_SignData done [08:18:18]FM_MakeSignedData done [08:18:18]CreateOFDProtocolMessage [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 11 00 00 [08:18:18]Write to MH i2c: E2 08 00 8E 00 80 11 00 00 00 00 00 00 08 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 8E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [08:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:18:18]wFMCommunicate OK [08:18:18]CreateOFDProtocolMessage done [08:18:18]OFDSenderStorePacket 73705 [08:18:18]StoreOFDPacket docnum=73705 [08:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 C4 F2 1B 01 2A 81 5A 03 01 00 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 C9 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 1F 01 00 35 04 06 00 78 1C 33 82 4B C7 D6 42 F7 02 49 2C 5D 15 [08:18:18]CheckFolder [08:18:18]dirname=/storage/ofd_packets [08:18:18]CheckFolder done [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00073705 [08:18:18]NVStorageSaveData ofd_packets/00073705 [08:18:18]File name is /storage/ofd_packets/00073705 [08:18:18]Write 321 bytes [08:18:18]NVStorageSaveData done [08:18:18]OFDSenderStorePacket done [08:18:18]KKMCreateOFDPacket done [08:18:18]NVStorageSaveData kkm_last_timestamp [08:18:18]File name is /storage/kkm_last_timestamp [08:18:18]Write 4 bytes [08:18:18]NVStorageSaveData done [08:18:18]ExternCall_PrintAddStr [08:18:18]wPrintStart [08:18:18]Write to MH i2c: 01 00 00 8F 00 8F [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 [08:18:18]MH_I2C_Read... [08:18:18]OFD Sender: Processing packet 73705 [packets to send 15, broken 14] [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00073705 [08:18:18]OFD Sender: To server: pG, [08:18:18]CommunicateWithHost lk.salyk.kg:30040 [08:18:18]ConnectInit lk.salyk.kg [08:18:18]Read from MH i2c: 01 07 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 FF 0F A4 [08:18:18]RasterBufferAndPrint [08:18:18]line Счет N : (3)272733 [08:18:18]line ИНН: 02508201610067 [08:18:18]line Контрольно-Кассовый Чек [08:18:18]line ПРОДАЖА [08:18:18]line Товар: 5449000006271 [08:18:18]line Напиток Фанта 1л [08:18:18]line 1.000 * 125.00 [08:18:18]line = 125.00 [08:18:18]line НДС 12% НСП 1% [08:18:18]line > о реализуемом товаре [08:18:18]line ИТОГО: 125.00 [08:18:18]line НСП 1% : 1.11 [08:18:18]line НДС 12% : 13.27 [08:18:18]line Наличными: 125.00 [08:18:18]line Безнал.: 0.00 [08:18:18]line Место: АЗС № 133 "Партнер Нефть" [08:18:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:18:18]line СНО: Общий режим [08:18:18]line Чек 31 20.10.2024 08:18 [08:18:18]line Смена: 170 ФФД: 1.0 [08:18:18]line ЗНМ: 0300000020 [08:18:18]line РНМ: 0000000000161154 [08:18:18]line Версия ККМ: v1.0 [08:18:18]line ФМ: 0000000000963323 [08:18:18]line ФД: 73705 [08:18:18]line ФПД: 132062518594503 [08:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081817&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73705&fm=132062518594503&tin=02508201610067®Number=0000000000161154&sum=12500 [08:18:18]line 0 [08:18:18]written 0, free lines is 4095 [08:18:18]Connected sock=8 [08:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 C4 F2 1B 01 2A 81 5A 03 01 00 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 1F 00 00 00 F4 03 04 00 C9 BC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 1F 01 00 35 04 06 00 78 1C 33 82 4B C7 D6 42 F7 02 49 2C 5D 15 [08:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B3 0F 47 00 5B 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 39 36 33 33 32 33 10 04 04 00 E9 1F 01 00 F4 03 04 00 AE 65 14 67 B6 04 01 00 00 96 C7 70 FB D9 7D 09 2E [08:18:19]CommunicateWithHost err = 0 [08:18:19]CheckOFDResponse [08:18:19]1017 (14) - 77093643461234 [08:18:19]1041 (16) - 0000000000963323 [08:18:19]1040 (4) - 73705 [08:18:19]1012 (4) - 20.10.2024 02:06 [08:18:19]1206 (1) - 0 [08:18:19]OFD Sender: Remove packet 73705 [08:18:19]ProducePacketName [08:18:19]name=ofd_packets/00073705 [08:18:19]NVStorageDeleteData [08:18:19]Write to MH i2c: 01 00 00 B6 00 B6 [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 07 00 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 E9 0C B2 [08:18:19]RasterBufferAndPrint [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]written 0, free lines is 3322 [08:18:19]MH_Cut [08:18:19]Write to MH i2c: D1 01 00 BD 00 01 8F [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 01 00 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 01 00 BD 00 00 8E [08:18:19]Write to MH i2c: 01 00 00 BE 00 BE [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]OFD Sender: No OFD packet to send [08:18:20]*** Cut start [08:18:20]*** Partial cut [08:18:20]*** CUTSNS_PIN = 1 [08:18:20]*** CUTSNS_PIN = 0 [08:18:20]*** Brake cut motor [08:18:20]Read from MH i2c: 01 [08:18:20]MH_I2C_Read... [08:18:20]*** Stop cut motor [08:18:20]*** Cut end [08:18:20]Read from MH i2c: 01 07 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: 01 07 00 BE 00 00 00 00 00 00 FF 0F D3 [08:18:20]process_action close_receipt done [08:18:20]requested_data is exist [08:18:20]produce_requested_data [08:18:20]requested_item fm.sn is exist - process it [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 11 00 00 [08:18:20]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [08:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:18:20]wFMCommunicate OK [08:18:20]requested_item fd.num is exist - process it [08:18:20]SAM_PROTO_GetFieldsCounters [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 00 00 [08:18:20]Write to MH i2c: E2 08 00 C0 00 80 13 00 00 00 00 00 00 3C [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 C0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E9 1F 01 00 0E 04 04 00 AA 00 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 60 [08:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E9 1F 01 00 0E 04 04 00 AA 00 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 [08:18:20]wFMCommunicate OK [08:18:20]SAM_PROTO_GetFieldsCounters done [08:18:20]requested_item shift.num is exist - process it [08:18:20]requested_item shift.opened is exist - process it [08:18:20]req_shift_opened [08:18:20]FM_GetShiftState [08:18:20]SAM_PROTO_GetShiftState [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 01 00 [08:18:20]Write to MH i2c: E2 08 00 C1 00 80 13 01 00 00 00 00 00 3E [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 0E 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 0E 00 C1 00 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 83 [08:18:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:18:21]wFMCommunicate OK [08:18:21]SAM_PROTO_GetShiftState done [08:18:21]FM_GetShiftState done [08:18:21]req_shift_opened done [08:18:21]requested_item shift.open_date is exist - process it [08:18:21]req_shift_open_date [08:18:21]req_shift_open_date done [08:18:21]produce_requested_data done [08:18:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73705,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:18:21]process_action_free close_receipt [08:18:21]json_value_free [08:18:21]json_value_free done [08:18:21]process_json_proto returns [08:18:21]Send response to host [08:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73705,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:18:21]free response buf [08:18:21]execute_script done [08:18:21]execute_script returns [08:18:21]free content buf [08:18:21]Sock 9.Close socket [08:18:21]Sock 9.Thread stoped [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:25]accept exits with 10 [08:21:25]New connection [08:21:25]New thread 3067575652 created [08:21:25]Thread 3067432292 joined [08:21:25]Waiting for new connection... [08:21:25] Sock 10.Parse request [08:21:25]Sock 10.Check first char [08:21:25]Sock 10.First char is OK [08:21:25]request: POST /json_proto HTTP/1.0 [08:21:25]Method: POST [08:21:25]URL: /json_proto [08:21:25]Method is POST - this is cgi request [08:21:25]url: /json_proto [08:21:25]query_string will be loaded in cgi processing [08:21:25]execute_cgi json_proto POST (null) [08:21:25]execute_cgi path=json_proto method=POST [08:21:25]POST find Content-Length [08:21:25]Host: 172.17.44.196:8080 [08:21:25]Content-Length: 1159 [08:21:25]Content-Type: application/json [08:21:25] [08:21:25]POST finish read [08:21:25]Found Content-Length = 1159 [08:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272734", "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" : 157.00, "quantity" : 1.000, "sum" : 157.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" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 422.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:25]execute_script... [08:21: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)272734", "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" : 157.00, "quantity" : 1.000, "sum" : 157.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" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 422.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:25]POST & json_proto [08:21:25]process_json_proto [08:21:25]json parsed OK: [08:21:25]protocol is kg_v1.0 [08:21:25]action value=close_receipt [08:21:25]process_action close_receipt [08:21:25]cmd_close_receipt [08:21:25]MH_GetDate [08:21:25]Write to MH i2c: F0 00 00 C2 00 B1 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: F0 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: F0 09 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: F0 09 00 C2 00 00 86 BD 14 67 E7 19 F8 65 D5 [08:21:25]GetLastDocTimeStamp 1729412297 [08:21:25]current date 1729412486 [08:21:25]FM_GetShiftState [08:21:25]SAM_PROTO_GetShiftState [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 13 01 00 [08:21:25]Write to MH i2c: E2 08 00 C3 00 80 13 01 00 00 00 00 00 40 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0E 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0E 00 C3 00 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 85 [08:21:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:21:25]wFMCommunicate OK [08:21:25]SAM_PROTO_GetShiftState done [08:21:25]FM_GetShiftState done [08:21:25]opened in 1729384303 [08:21:25]opened+sec_in_day 1729470703 [08:21:25]quantity*price = 15700 [08:21:25]sum+1 = 15701 [08:21:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 422.00 НСП 1% : 3.74 НДС 12% : 44.81 Наличными: 422.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 32 20.10.2024 08:21 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73706 ФПД: 280336956395719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73706&fm=280336956395719&tin=02508201610067®Number=0000000000161154&sum=42200 0 [08:21:27]StoreToDocumentArchive [08:21:27]shift 170 fd 73706 [08:21:27]save to /storage/0170/doc_00073706 [08:21:27]save last doc name /storage/0170/doc_00073706 to /storage/kkm_last_doc_name [08:21:27]save OK [08:21:27]Clear old archive folders... [08:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=491 [08:21:27]tlvbuf is B6FED070 [08:21:27]SAM_PROTO_ClearQueue [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 09 00 00 [08:21:27]Write to MH i2c: E2 08 00 D0 00 80 09 00 00 00 00 00 00 42 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]SAM_PROTO_ClearQueue done [08:21:27]KKMCreateOFDPacket [08:21:27]OFDProtocolAddRootSTLVToBuf [08:21:27]FM_MakeSignedData [08:21:27]FM_MakeSignedData [08:21:27]SAM_PROTO_SignData [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 01 02 [08:21:27]Write to MH i2c: E2 08 00 D1 00 80 0D 01 02 00 00 00 00 4A [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=255 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 02 02 FA 03 00 EB 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 54 3D 00 00 00 00 13 04 06 00 54 3D 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 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 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 [08:21:27]Write to MH i2c: E2 02 01 D2 00 80 0D 02 02 FA 00 03 00 EB 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 54 3D 00 00 00 00 13 04 06 00 54 3D 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 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 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 00 00 66 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=250 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 02 02 F5 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 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 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 11 00 00 00 00 07 04 06 00 D8 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 86 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 1F 01 00 35 04 06 00 FE F7 08 B4 10 C7 [08:21:27]Write to MH i2c: E2 FD 00 D3 00 80 0D 02 02 F5 00 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 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 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 11 00 00 00 00 07 04 06 00 D8 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 86 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 1F 01 00 35 04 06 00 FE F7 08 B4 10 C7 00 00 45 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 03 02 [08:21:27]Write to MH i2c: E2 08 00 D4 00 80 0D 03 02 00 00 00 00 4F [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 0B 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 0B 00 D4 00 00 72 96 D1 9C D8 87 D6 2E 90 00 28 [08:21:28]RAPDU: 72 96 D1 9C D8 87 D6 2E 90 00 [08:21:28]wFMCommunicate OK [08:21:28]SAM_PROTO_SignData done [08:21:28]FM_MakeSignedData done [08:21:28]CreateOFDProtocolMessage [08:21:28]wFMCommunicate request_size=4 [08:21:28]MH_SAM_APDU [08:21:28]CAPDU: 80 11 00 00 [08:21:28]Write to MH i2c: E2 08 00 D5 00 80 11 00 00 00 00 00 00 4F [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 17 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 17 00 D5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9C [08:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:21:28]wFMCommunicate OK [08:21:28]CreateOFDProtocolMessage done [08:21:28]OFDSenderStorePacket 73706 [08:21:28]StoreOFDPacket docnum=73706 [08:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FF 01 00 00 D7 73 F7 01 07 88 5A 03 01 00 03 00 EB 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 54 3D 00 00 00 00 13 04 06 00 54 3D 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 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 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 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 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 11 00 00 00 00 07 04 06 00 D8 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 86 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 1F 01 00 35 04 06 00 FE F7 08 B4 10 C7 72 96 D1 9C D8 87 D6 2E [08:21:28]CheckFolder [08:21:28]dirname=/storage/ofd_packets [08:21:28]CheckFolder done [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00073706 [08:21:28]NVStorageSaveData ofd_packets/00073706 [08:21:28]File name is /storage/ofd_packets/00073706 [08:21:28]Write 541 bytes [08:21:28]NVStorageSaveData done [08:21:28]OFDSenderStorePacket done [08:21:28]KKMCreateOFDPacket done [08:21:28]NVStorageSaveData kkm_last_timestamp [08:21:28]File name is /storage/kkm_last_timestamp [08:21:28]Write 4 bytes [08:21:28]NVStorageSaveData done [08:21:28]ExternCall_PrintAddStr [08:21:28]wPrintStart [08:21:28]Write to MH i2c: 01 00 00 D6 00 D6 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 D6 00 00 00 00 00 00 FF 0F EB [08:21:28]RasterBufferAndPrint [08:21:28]line Счет N : (3)272734 [08:21:28]line ИНН: 02508201610067 [08:21:28]line Контрольно-Кассовый Чек [08:21:28]line ПРОДАЖА [08:21:28]line Товар: 90162602 [08:21:28]line Энерг напиток Red bull 0,25л [08:21:28]line 1.000 * 157.00 [08:21:28]line = 157.00 [08:21:28]line НДС 12% НСП 1% [08:21:28]line > о реализуемом товаре [08:21:28]line Товар: 5449000054227 [08:21:28]line Напиток Кока-Кола 1л [08:21:28]line 1.000 * 125.00 [08:21:28]line = 125.00 [08:21:28]line НДС 12% НСП 1% [08:21:28]line > о реализуемом товаре [08:21:28]line Товар: 48743587 [08:21:28]line Сигареты Winston XStyle Silver [08:21:28]line 1.000 * 140.00 [08:21:28]line = 140.00 [08:21:28]line НДС 12% НСП 1% [08:21:28]line > о реализуемом товаре [08:21:28]line ИТОГО: 422.00 [08:21:28]line НСП 1% : 3.74 [08:21:28]line НДС 12% : 44.81 [08:21:28]line Наличными: 422.00 [08:21:28]line Безнал.: 0.00 [08:21:28]line Место: АЗС № 133 "Партнер Нефть" [08:21:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:21:28]line СНО: Общий режим [08:21:28]line Чек 32 20.10.2024 08:21 [08:21:28]line Смена: 170 ФФД: 1.0 [08:21:28]line ЗНМ: 0300000020 [08:21:28]line РНМ: 0000000000161154 [08:21:28]line Версия ККМ: v1.0 [08:21:28]line ФМ: 0000000000963323 [08:21:28]line ФД: 73706 [08:21:28]line ФПД: 280336956395719 [08:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73706&fm=280336956395719&tin=02508201610067®Number=0000000000161154&sum=42200 [08:21:28]line 0 [08:21:28]written 0, free lines is 4095 [08:21:28]OFD Sender: Processing packet 73706 [packets to send 15, broken 14] [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00073706 [08:21:28]OFD Sender: To server: pG, [08:21:28]CommunicateWithHost lk.salyk.kg:30040 [08:21:28]ConnectInit lk.salyk.kg [08:21:28]Connected sock=9 [08:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FF 01 00 00 D7 73 F7 01 07 88 5A 03 01 00 03 00 EB 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 54 3D 00 00 00 00 13 04 06 00 54 3D 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 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 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 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 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 11 00 00 00 00 07 04 06 00 D8 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 86 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 1F 01 00 35 04 06 00 FE F7 08 B4 10 C7 72 96 D1 9C D8 87 D6 2E [08:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 88 73 47 00 1E 4B 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 39 36 33 33 32 33 10 04 04 00 EA 1F 01 00 F4 03 04 00 6C 66 14 67 B6 04 01 00 00 B3 F1 3D 91 93 CE 67 13 [08:21:28]CommunicateWithHost err = 0 [08:21:28]CheckOFDResponse [08:21:28]1017 (14) - 77093643461234 [08:21:28]1041 (16) - 0000000000963323 [08:21:28]1040 (4) - 73706 [08:21:28]1012 (4) - 20.10.2024 02:09 [08:21:28]1206 (1) - 0 [08:21:28]OFD Sender: Remove packet 73706 [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00073706 [08:21:28]NVStorageDeleteData [08:21:28]Write to MH i2c: 01 00 00 0A 01 0B [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 0A 01 00 00 00 00 00 FC 0B 19 [08:21:28]RasterBufferAndPrint [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]written 0, free lines is 3073 [08:21:28]MH_Cut [08:21:28]Write to MH i2c: D1 01 00 11 01 01 E4 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 01 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 01 00 11 01 00 E3 [08:21:28]Write to MH i2c: 01 00 00 12 01 13 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]OFD Sender: No OFD packet to send [08:21:29]*** Cut start [08:21:29]*** Partial cut [08:21:29]*** CUTSNS_PIN = 1 [08:21:29]*** CUTSNS_PIN = 0 [08:21:29]*** Brake cut motor [08:21:30]Read from MH i2c: 01 [08:21:30]MH_I2C_Read... [08:21:30]*** Stop cut motor [08:21:30]*** Cut end [08:21:30]Read from MH i2c: 01 07 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [08:21:30]process_action close_receipt done [08:21:30]requested_data is exist [08:21:30]produce_requested_data [08:21:30]requested_item fm.sn is exist - process it [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 11 00 00 [08:21:30]Write to MH i2c: E2 08 00 13 01 80 11 00 00 00 00 00 00 8E [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [08:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:21:30]wFMCommunicate OK [08:21:30]requested_item fd.num is exist - process it [08:21:30]SAM_PROTO_GetFieldsCounters [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 13 00 00 [08:21:30]Write to MH i2c: E2 08 00 14 01 80 13 00 00 00 00 00 00 91 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 62 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 62 00 14 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EA 1F 01 00 0E 04 04 00 AA 00 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 B9 [08:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EA 1F 01 00 0E 04 04 00 AA 00 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 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_GetFieldsCounters done [08:21:30]requested_item shift.num is exist - process it [08:21:30]requested_item shift.opened is exist - process it [08:21:30]req_shift_opened [08:21:30]FM_GetShiftState [08:21:30]SAM_PROTO_GetShiftState [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 13 01 00 [08:21:30]Write to MH i2c: E2 08 00 15 01 80 13 01 00 00 00 00 00 93 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0E 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0E 00 15 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [08:21:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_GetShiftState done [08:21:30]FM_GetShiftState done [08:21:30]req_shift_opened done [08:21:30]requested_item shift.open_date is exist - process it [08:21:30]req_shift_open_date [08:21:30]req_shift_open_date done [08:21:30]produce_requested_data done [08:21:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73706,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:21:30]process_action_free close_receipt [08:21:30]json_value_free [08:21:30]json_value_free done [08:21:30]process_json_proto returns [08:21:30]Send response to host [08:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73706,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:21:30]free response buf [08:21:30]execute_script done [08:21:30]execute_script returns [08:21:30]free content buf [08:21:30]Sock 10.Close socket [08:21:30]Sock 10.Thread stoped [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:56]accept exits with 8 [08:22:56]New connection [08:22:56]New thread 3067432292 created [08:22:56]Thread 3067575652 joined [08:22:56]Waiting for new connection... [08:22:56] Sock 8.Parse request [08:22:56]Sock 8.Check first char [08:22:56]Sock 8.First char is OK [08:22:56]request: POST /json_proto HTTP/1.0 [08:22:56]Method: POST [08:22:56]URL: /json_proto [08:22:56]Method is POST - this is cgi request [08:22:56]url: /json_proto [08:22:56]query_string will be loaded in cgi processing [08:22:56]execute_cgi json_proto POST (null) [08:22:56]execute_cgi path=json_proto method=POST [08:22:56]POST find Content-Length [08:22:56]Host: 172.17.44.196:8080 [08:22:56]Content-Length: 678 [08:22:56]Content-Type: application/json [08:22:56] [08:22:56]POST finish read [08:22:56]Found Content-Length = 678 [08:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962682", "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" : 7.480, "sum" : 500.41, "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" ] } } [08:22:56]execute_script... [08:22: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 : (1)1962682", "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" : 7.480, "sum" : 500.41, "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" ] } } [08:22:56]POST & json_proto [08:22:56]process_json_proto [08:22:56]json parsed OK: [08:22:56]protocol is kg_v1.0 [08:22:56]action value=close_receipt [08:22:56]process_action close_receipt [08:22:56]cmd_close_receipt [08:22:56]MH_GetDate [08:22:56]Write to MH i2c: F0 00 00 16 01 06 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: F0 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: F0 09 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: F0 09 00 16 01 00 E1 BD 14 67 E7 19 F8 65 85 [08:22:56]GetLastDocTimeStamp 1729412486 [08:22:56]current date 1729412577 [08:22:56]FM_GetShiftState [08:22:56]SAM_PROTO_GetShiftState [08:22:56]wFMCommunicate request_size=4 [08:22:56]MH_SAM_APDU [08:22:56]CAPDU: 80 13 01 00 [08:22:56]Write to MH i2c: E2 08 00 17 01 80 13 01 00 00 00 00 00 95 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 0E 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 0E 00 17 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DA [08:22:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:22:56]wFMCommunicate OK [08:22:56]SAM_PROTO_GetShiftState done [08:22:56]FM_GetShiftState done [08:22:56]opened in 1729384303 [08:22:56]opened+sec_in_day 1729470703 [08:22:56]quantity*price = 50041 [08:22:56]sum+1 = 50042 [08:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 33 20.10.2024 08:22 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73707 ФПД: 4235790967109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082257&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73707&fm=4235790967109&tin=02508201610067®Number=0000000000161154&sum=50000 [08:22:57]StoreToDocumentArchive [08:22:57]shift 170 fd 73707 [08:22:57]save to /storage/0170/doc_00073707 [08:22:57]save last doc name /storage/0170/doc_00073707 to /storage/kkm_last_doc_name [08:22:57]save OK [08:22:57]Clear old archive folders... [08:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:57]tlvbuf is 00313B60 [08:22:57]SAM_PROTO_ClearQueue [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 09 00 00 [08:22:57]Write to MH i2c: E2 08 00 24 01 80 09 00 00 00 00 00 00 97 [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 03 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 03 00 24 01 00 90 00 99 [08:22:57]RAPDU: 90 00 [08:22:57]wFMCommunicate OK [08:22:57]SAM_PROTO_ClearQueue done [08:22:57]KKMCreateOFDPacket [08:22:57]OFDProtocolAddRootSTLVToBuf [08:22:57]FM_MakeSignedData [08:22:57]FM_MakeSignedData [08:22:57]SAM_PROTO_SignData [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 0D 01 02 [08:22:57]Write to MH i2c: E2 08 00 25 01 80 0D 01 02 00 00 00 00 9F [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 03 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 03 00 25 01 00 90 00 9A [08:22:57]RAPDU: 90 00 [08:22:57]wFMCommunicate OK [08:22:57]wFMCommunicate request_size=255 [08:22:57]MH_SAM_APDU [08:22: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 21 00 00 00 F4 03 04 00 E1 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 1F 01 00 35 04 06 00 03 [08:22:57]Write to MH i2c: E2 02 01 26 01 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 21 00 00 00 F4 03 04 00 E1 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 1F 01 00 35 04 06 00 03 00 00 13 [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:58]Read from MH i2c: E2 03 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 03 00 26 01 00 90 00 9B [08:22:58]RAPDU: 90 00 [08:22:58]wFMCommunicate OK [08:22:58]wFMCommunicate request_size=10 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 0D 02 02 05 DA 38 D0 E1 45 [08:22:58]Write to MH i2c: E2 0D 00 27 01 80 0D 02 02 05 00 DA 38 D0 E1 45 00 00 B4 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 03 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 03 00 27 01 00 90 00 9C [08:22:58]RAPDU: 90 00 [08:22:58]wFMCommunicate OK [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 0D 03 02 [08:22:58]Write to MH i2c: E2 08 00 28 01 80 0D 03 02 00 00 00 00 A4 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0B 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0B 00 28 01 00 DA 4B 02 9B 91 89 6D 2E 90 00 1C [08:22:58]RAPDU: DA 4B 02 9B 91 89 6D 2E 90 00 [08:22:58]wFMCommunicate OK [08:22:58]SAM_PROTO_SignData done [08:22:58]FM_MakeSignedData done [08:22:58]CreateOFDProtocolMessage [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 11 00 00 [08:22:58]Write to MH i2c: E2 08 00 29 01 80 11 00 00 00 00 00 00 A4 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 17 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 17 00 29 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F1 [08:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:22:58]wFMCommunicate OK [08:22:58]CreateOFDProtocolMessage done [08:22:58]OFDSenderStorePacket 73707 [08:22:58]StoreOFDPacket docnum=73707 [08:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8F FF 07 01 40 2B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 21 00 00 00 F4 03 04 00 E1 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 1F 01 00 35 04 06 00 03 DA 38 D0 E1 45 DA 4B 02 9B 91 89 6D 2E [08:22:58]CheckFolder [08:22:58]dirname=/storage/ofd_packets [08:22:58]CheckFolder done [08:22:58]ProducePacketName [08:22:58]name=ofd_packets/00073707 [08:22:58]NVStorageSaveData ofd_packets/00073707 [08:22:58]File name is /storage/ofd_packets/00073707 [08:22:58]Write 301 bytes [08:22:58]NVStorageSaveData done [08:22:58]OFDSenderStorePacket done [08:22:58]KKMCreateOFDPacket done [08:22:58]NVStorageSaveData kkm_last_timestamp [08:22:58]File name is /storage/kkm_last_timestamp [08:22:58]Write 4 bytes [08:22:58]NVStorageSaveData done [08:22:58]ExternCall_PrintAddStr [08:22:58]wPrintStart [08:22:58]Write to MH i2c: 01 00 00 2A 01 2B [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 07 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [08:22:58]RasterBufferAndPrint [08:22:58]line Счет N : (1)1962682 [08:22:58]line ИНН: 02508201610067 [08:22:58]line Контрольно-Кассовый Чек [08:22:58]line ПРОДАЖА [08:22:58]line ТРК (МРК, ГНК) : 43 [08:22:58]line Товар: 2710124130 [08:22:58]line Аи-92-К-5 [08:22:58]line 7.480 * 66.90 [08:22:58]line = 500.41 [08:22:58]line НДС 12% НСП 1% [08:22:58]line > о реализуемом товаре [08:22:58]line ОКРУГЛЕНИЕ: -0.41 [08:22:58]line ИТОГО: 500.00 [08:22:58]line Внесено: 500.00 [08:22:58]line СДАЧА: 0.00 [08:22:58]line НСП 1% : 4.43 [08:22:58]line НДС 12% : 53.14 [08:22:58]line Наличными: 500.00 [08:22:58]line Безнал.: 0.00 [08:22:58]line Место: АЗС № 133 "Партнер Нефть" [08:22:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:22:58]line СНО: Общий режим [08:22:58]line Чек 33 20.10.2024 08:22 [08:22:58]line Смена: 170 ФФД: 1.0 [08:22:58]line ЗНМ: 0300000020 [08:22:58]line РНМ: 0000000000161154 [08:22:58]line Версия ККМ: v1.0 [08:22:58]line ФМ: 0000000000963323 [08:22:58]line ФД: 73707 [08:22:58]line ФПД: 4235790967109 [08:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082257&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73707&fm=4235790967109&tin=02508201610067®Number=0000000000161154&sum=50000 [08:22:58]OFD Sender: Processing packet 73707 [packets to send 15, broken 14] [08:22:58]ProducePacketName [08:22:58]name=ofd_packets/00073707 [08:22:58]OFD Sender: To server: pG, [08:22:58]CommunicateWithHost lk.salyk.kg:30040 [08:22:58]ConnectInit lk.salyk.kg [08:22:58]written 0, free lines is 4095 [08:22:58]Connected sock=10 [08:22:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8F FF 07 01 40 2B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 21 00 00 00 F4 03 04 00 E1 BD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 1F 01 00 35 04 06 00 03 DA 38 D0 E1 45 DA 4B 02 9B 91 89 6D 2E [08:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2E 23 47 00 24 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 39 36 33 33 32 33 10 04 04 00 EB 1F 01 00 F4 03 04 00 C6 66 14 67 B6 04 01 00 00 B8 6F 3D 9F 67 81 37 99 [08:22:58]CommunicateWithHost err = 0 [08:22:58]CheckOFDResponse [08:22:58]1017 (14) - 77093643461234 [08:22:58]1041 (16) - 0000000000963323 [08:22:58]1040 (4) - 73707 [08:22:58]1012 (4) - 20.10.2024 02:11 [08:22:58]1206 (1) - 0 [08:22:58]OFD Sender: Remove packet 73707 [08:22:58]ProducePacketName [08:22:58]name=ofd_packets/00073707 [08:22:58]NVStorageDeleteData [08:22:58]Write to MH i2c: 01 00 00 54 01 55 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 07 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 AD 0C 15 [08:22:58]RasterBufferAndPrint [08:22:58]line [08:22:58]line [08:22:58]line [08:22:58]line [08:22:58]line [08:22:58]written 0, free lines is 3248 [08:22:58]MH_Cut [08:22:58]Write to MH i2c: D1 01 00 5B 01 01 2E [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: D1 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: D1 01 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: D1 01 00 5B 01 00 2D [08:22:58]Write to MH i2c: 01 00 00 5C 01 5D [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:59]OFD Sender: No OFD packet to send [08:22:59]*** Cut start [08:22:59]*** Partial cut [08:22:59]*** CUTSNS_PIN = 1 [08:22:59]*** CUTSNS_PIN = 0 [08:23:00]*** Brake cut motor [08:23:00]Read from MH i2c: 01 [08:23:00]MH_I2C_Read... [08:23:00]*** Stop cut motor [08:23:00]*** Cut end [08:23:00]Read from MH i2c: 01 07 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [08:23:00]process_action close_receipt done [08:23:00]requested_data is exist [08:23:00]produce_requested_data [08:23:00]requested_item fm.sn is exist - process it [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 11 00 00 [08:23:00]Write to MH i2c: E2 08 00 5D 01 80 11 00 00 00 00 00 00 D8 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 17 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 17 00 5D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [08:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:23:00]wFMCommunicate OK [08:23:00]requested_item fd.num is exist - process it [08:23:00]SAM_PROTO_GetFieldsCounters [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 13 00 00 [08:23:00]Write to MH i2c: E2 08 00 5E 01 80 13 00 00 00 00 00 00 DB [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 62 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 62 00 5E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EB 1F 01 00 0E 04 04 00 AA 00 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 07 [08:23:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EB 1F 01 00 0E 04 04 00 AA 00 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 [08:23:00]wFMCommunicate OK [08:23:00]SAM_PROTO_GetFieldsCounters done [08:23:00]requested_item shift.num is exist - process it [08:23:00]requested_item shift.opened is exist - process it [08:23:00]req_shift_opened [08:23:00]FM_GetShiftState [08:23:00]SAM_PROTO_GetShiftState [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 13 01 00 [08:23:00]Write to MH i2c: E2 08 00 5F 01 80 13 01 00 00 00 00 00 DD [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 0E 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 0E 00 5F 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 22 [08:23:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:23:00]wFMCommunicate OK [08:23:00]SAM_PROTO_GetShiftState done [08:23:00]FM_GetShiftState done [08:23:00]req_shift_opened done [08:23:00]requested_item shift.open_date is exist - process it [08:23:00]req_shift_open_date [08:23:00]req_shift_open_date done [08:23:00]produce_requested_data done [08:23:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73707,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:23:00]process_action_free close_receipt [08:23:00]json_value_free [08:23:00]json_value_free done [08:23:00]process_json_proto returns [08:23:00]Send response to host [08:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73707,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:23:00]free response buf [08:23:00]execute_script done [08:23:00]execute_script returns [08:23:00]free content buf [08:23:00]Sock 8.Close socket [08:23:00]Sock 8.Thread stoped [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:50]accept exits with 9 [08:24:50]New connection [08:24:50]New thread 3067575652 created [08:24:50]Thread 3067432292 joined [08:24:50]Waiting for new connection... [08:24:50] Sock 9.Parse request [08:24:50]Sock 9.Check first char [08:24:50]Sock 9.First char is OK [08:24:50]request: POST /json_proto HTTP/1.0 [08:24:50]Method: POST [08:24:50]URL: /json_proto [08:24:50]Method is POST - this is cgi request [08:24:50]url: /json_proto [08:24:50]query_string will be loaded in cgi processing [08:24:50]execute_cgi json_proto POST (null) [08:24:50]execute_cgi path=json_proto method=POST [08:24:50]POST find Content-Length [08:24:50]Host: 172.17.44.196:8080 [08:24:50]Content-Length: 979 [08:24:50]Content-Type: application/json [08:24:50] [08:24:50]POST finish read [08:24:50]Found Content-Length = 979 [08:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:50]execute_script... [08:24: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 : (1)1962684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:50]POST & json_proto [08:24:50]process_json_proto [08:24:50]json parsed OK: [08:24:50]protocol is kg_v1.0 [08:24:50]action value=close_receipt [08:24:50]process_action close_receipt [08:24:50]cmd_close_receipt [08:24:50]MH_GetDate [08:24:50]Write to MH i2c: F0 00 00 60 01 50 [08:24:50]Write i2c OK [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: F0 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: F0 09 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: F0 09 00 60 01 00 52 BE 14 67 E7 19 F8 65 41 [08:24:50]GetLastDocTimeStamp 1729412577 [08:24:50]current date 1729412690 [08:24:50]FM_GetShiftState [08:24:50]SAM_PROTO_GetShiftState [08:24:50]wFMCommunicate request_size=4 [08:24:50]MH_SAM_APDU [08:24:50]CAPDU: 80 13 01 00 [08:24:50]Write to MH i2c: E2 08 00 61 01 80 13 01 00 00 00 00 00 DF [08:24:50]Write i2c OK [08:24:50]MH_I2C_Read... [08:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:50]Read from MH i2c: E2 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 0E 00 [08:24:50]MH_I2C_Read... [08:24:50]Read from MH i2c: E2 0E 00 61 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 24 [08:24:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:24:50]wFMCommunicate OK [08:24:50]SAM_PROTO_GetShiftState done [08:24:50]FM_GetShiftState done [08:24:50]opened in 1729384303 [08:24:50]opened+sec_in_day 1729470703 [08:24:50]quantity*price = 450072 [08:24:50]sum+1 = 450073 [08:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 34 20.10.2024 08:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 59.85 сом ФМ: 0000000000963323 ФД: 73708 ФПД: 27821061178842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082450&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73708&fm=27821061178842&tin=02508201610067®Number=0000000000161154&sum=450000 [08:24:51]StoreToDocumentArchive [08:24:51]shift 170 fd 73708 [08:24:51]save to /storage/0170/doc_00073708 [08:24:51]save last doc name /storage/0170/doc_00073708 to /storage/kkm_last_doc_name [08:24:51]save OK [08:24:51]Clear old archive folders... [08:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:24:51]tlvbuf is 00313850 [08:24:51]SAM_PROTO_ClearQueue [08:24:51]wFMCommunicate request_size=4 [08:24:51]MH_SAM_APDU [08:24:51]CAPDU: 80 09 00 00 [08:24:51]Write to MH i2c: E2 08 00 6E 01 80 09 00 00 00 00 00 00 E1 [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:51]Read from MH i2c: E2 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 6E 01 00 90 00 E3 [08:24:51]RAPDU: 90 00 [08:24:51]wFMCommunicate OK [08:24:51]SAM_PROTO_ClearQueue done [08:24:51]KKMCreateOFDPacket [08:24:51]OFDProtocolAddRootSTLVToBuf [08:24:51]FM_MakeSignedData [08:24:51]FM_MakeSignedData [08:24:51]SAM_PROTO_SignData [08:24:51]wFMCommunicate request_size=4 [08:24:51]MH_SAM_APDU [08:24:51]CAPDU: 80 0D 01 02 [08:24:51]Write to MH i2c: E2 08 00 6F 01 80 0D 01 02 00 00 00 00 E9 [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:51]Read from MH i2c: E2 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 6F 01 00 90 00 E4 [08:24:51]RAPDU: 90 00 [08:24:51]wFMCommunicate OK [08:24:51]wFMCommunicate request_size=255 [08:24:51]MH_SAM_APDU [08:24:51]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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 52 BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 1F 01 00 35 04 06 00 19 4D 98 78 [08:24:51]Write to MH i2c: E2 02 01 70 01 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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 52 BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 1F 01 00 35 04 06 00 19 4D 98 78 00 00 AF [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:51]Read from MH i2c: E2 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 70 01 00 90 00 E5 [08:24:51]RAPDU: 90 00 [08:24:51]wFMCommunicate OK [08:24:51]wFMCommunicate request_size=7 [08:24:51]MH_SAM_APDU [08:24:51]CAPDU: 80 0D 02 02 02 05 DA [08:24:51]Write to MH i2c: E2 0A 00 71 01 80 0D 02 02 02 00 05 DA 00 00 CF [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:51]Read from MH i2c: E2 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [08:24:51]RAPDU: 90 00 [08:24:51]wFMCommunicate OK [08:24:51]wFMCommunicate request_size=4 [08:24:51]MH_SAM_APDU [08:24:51]CAPDU: 80 0D 03 02 [08:24:51]Write to MH i2c: E2 08 00 72 01 80 0D 03 02 00 00 00 00 EE [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:51]Read from MH i2c: E2 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 0B 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 0B 00 72 01 00 C4 DD 6B 94 EE FD 0B 9A 90 00 1F [08:24:51]RAPDU: C4 DD 6B 94 EE FD 0B 9A 90 00 [08:24:51]wFMCommunicate OK [08:24:51]SAM_PROTO_SignData done [08:24:51]FM_MakeSignedData done [08:24:51]CreateOFDProtocolMessage [08:24:51]wFMCommunicate request_size=4 [08:24:51]MH_SAM_APDU [08:24:51]CAPDU: 80 11 00 00 [08:24:51]Write to MH i2c: E2 08 00 73 01 80 11 00 00 00 00 00 00 EE [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:51]Read from MH i2c: E2 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 17 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: E2 17 00 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [08:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:24:51]wFMCommunicate OK [08:24:51]CreateOFDProtocolMessage done [08:24:51]OFDSenderStorePacket 73708 [08:24:51]StoreOFDPacket docnum=73708 [08:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 26 3A 04 01 80 F4 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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 52 BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 1F 01 00 35 04 06 00 19 4D 98 78 05 DA C4 DD 6B 94 EE FD 0B 9A [08:24:51]CheckFolder [08:24:51]dirname=/storage/ofd_packets [08:24:51]CheckFolder done [08:24:51]ProducePacketName [08:24:51]name=ofd_packets/00073708 [08:24:51]NVStorageSaveData ofd_packets/00073708 [08:24:51]File name is /storage/ofd_packets/00073708 [08:24:51]Write 298 bytes [08:24:51]NVStorageSaveData done [08:24:51]OFDSenderStorePacket done [08:24:51]KKMCreateOFDPacket done [08:24:51]NVStorageSaveData kkm_last_timestamp [08:24:51]File name is /storage/kkm_last_timestamp [08:24:51]Write 4 bytes [08:24:51]NVStorageSaveData done [08:24:51]ExternCall_PrintAddStr [08:24:51]wPrintStart [08:24:51]Write to MH i2c: 01 00 00 74 01 75 [08:24:51]Write i2c OK [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: 01 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: 01 07 00 [08:24:51]MH_I2C_Read... [08:24:51]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [08:24:51]RasterBufferAndPrint [08:24:51]line Счет N : (1)1962684 [08:24:51]line ИНН: 02508201610067 [08:24:51]line Контрольно-Кассовый Чек [08:24:51]line ПРОДАЖА [08:24:51]line ТРК (МРК, ГНК) : 11 [08:24:51]line Товар: 2710194210 [08:24:51]line ДТ-К-5 [08:24:51]line 59.850 * 75.20 [08:24:51]line = 4500.72 [08:24:51]line НДС 12% НСП 1% [08:24:51]line > о реализуемом товаре [08:24:51]line ОКРУГЛЕНИЕ: -0.72 [08:24:51]line ИТОГО: 4500.00 [08:24:51]line Внесено: 4500.00 [08:24:51]line СДАЧА: 0.00 [08:24:51]line НСП 1% : 39.83 [08:24:51]line НДС 12% : 477.95 [08:24:51]line Наличными: 4500.00 [08:24:51]line Безнал.: 0.00 [08:24:51]line Место: АЗС № 133 "Партнер Нефть" [08:24:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:24:51]line СНО: Общий режим [08:24:51]line Чек 34 20.10.2024 08:24 [08:24:51]line Смена: 170 ФФД: 1.0 [08:24:51]line ЗНМ: 0300000020 [08:24:51]line РНМ: 0000000000161154 [08:24:51]line Версия ККМ: v1.0 [08:24:51]line [08:24:51]line Дисконтная программа [08:24:51]line ДТ [08:24:51]line номер 133 [08:24:51]line сэкономлено 59.85 сом [08:24:51]line ФМ: 0000000000963323 [08:24:51]line ФД: 73708 [08:24:51]line ФПД: 27821061178842 [08:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082450&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73708&fm=27821061178842&tin=02508201610067®Number=0000000000161154&sum=450000 [08:24:52]OFD Sender: Processing packet 73708 [packets to send 15, broken 14] [08:24:52]ProducePacketName [08:24:52]name=ofd_packets/00073708 [08:24:52]OFD Sender: To server: pG, [08:24:52]CommunicateWithHost lk.salyk.kg:30040 [08:24:52]ConnectInit lk.salyk.kg [08:24:52]written 0, free lines is 4095 [08:24:52]Connected sock=10 [08:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 26 3A 04 01 80 F4 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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 52 BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 1F 01 00 35 04 06 00 19 4D 98 78 05 DA C4 DD 6B 94 EE FD 0B 9A [08:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CB 66 47 00 D0 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 39 36 33 33 32 33 10 04 04 00 EC 1F 01 00 F4 03 04 00 38 67 14 67 B6 04 01 00 00 5F D1 7A AE DB 39 BF AB [08:24:52]CommunicateWithHost err = 0 [08:24:52]CheckOFDResponse [08:24:52]1017 (14) - 77093643461234 [08:24:52]1041 (16) - 0000000000963323 [08:24:52]1040 (4) - 73708 [08:24:52]1012 (4) - 20.10.2024 02:13 [08:24:52]1206 (1) - 0 [08:24:52]OFD Sender: Remove packet 73708 [08:24:52]ProducePacketName [08:24:52]name=ofd_packets/00073708 [08:24:52]NVStorageDeleteData [08:24:52]Write to MH i2c: 01 00 00 A3 01 A4 [08:24:52]Write i2c OK [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: 01 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: 01 07 00 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 47 0C FE [08:24:52]RasterBufferAndPrint [08:24:52]line [08:24:52]line [08:24:52]line [08:24:52]line [08:24:52]line [08:24:52]written 0, free lines is 3148 [08:24:52]MH_Cut [08:24:52]Write to MH i2c: D1 01 00 AA 01 01 7D [08:24:52]Write i2c OK [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: D1 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: D1 01 00 [08:24:52]MH_I2C_Read... [08:24:52]Read from MH i2c: D1 01 00 AA 01 00 7C [08:24:52]Write to MH i2c: 01 00 00 AB 01 AC [08:24:52]Write i2c OK [08:24:52]MH_I2C_Read... [08:24:53]OFD Sender: No OFD packet to send [08:24:53]*** Cut start [08:24:53]*** Partial cut [08:24:53]*** CUTSNS_PIN = 1 [08:24:53]*** CUTSNS_PIN = 0 [08:24:53]*** Brake cut motor [08:24:54]Read from MH i2c: 01 [08:24:54]MH_I2C_Read... [08:24:54]*** Stop cut motor [08:24:54]*** Cut end [08:24:54]Read from MH i2c: 01 07 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [08:24:54]process_action close_receipt done [08:24:54]requested_data is exist [08:24:54]produce_requested_data [08:24:54]requested_item fm.sn is exist - process it [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 11 00 00 [08:24:54]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 17 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [08:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:24:54]wFMCommunicate OK [08:24:54]requested_item fd.num is exist - process it [08:24:54]SAM_PROTO_GetFieldsCounters [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 13 00 00 [08:24:54]Write to MH i2c: E2 08 00 AD 01 80 13 00 00 00 00 00 00 2A [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 62 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 62 00 AD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EC 1F 01 00 0E 04 04 00 AA 00 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 5A [08:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EC 1F 01 00 0E 04 04 00 AA 00 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 [08:24:54]wFMCommunicate OK [08:24:54]SAM_PROTO_GetFieldsCounters done [08:24:54]requested_item shift.num is exist - process it [08:24:54]requested_item shift.opened is exist - process it [08:24:54]req_shift_opened [08:24:54]FM_GetShiftState [08:24:54]SAM_PROTO_GetShiftState [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 13 01 00 [08:24:54]Write to MH i2c: E2 08 00 AE 01 80 13 01 00 00 00 00 00 2C [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 0E 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 0E 00 AE 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [08:24:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:24:54]wFMCommunicate OK [08:24:54]SAM_PROTO_GetShiftState done [08:24:54]FM_GetShiftState done [08:24:54]req_shift_opened done [08:24:54]requested_item shift.open_date is exist - process it [08:24:54]req_shift_open_date [08:24:54]req_shift_open_date done [08:24:54]produce_requested_data done [08:24:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73708,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:24:54]process_action_free close_receipt [08:24:54]json_value_free [08:24:54]json_value_free done [08:24:54]process_json_proto returns [08:24:54]Send response to host [08:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73708,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:24:54]free response buf [08:24:54]execute_script done [08:24:54]execute_script returns [08:24:54]free content buf [08:24:54]Sock 9.Close socket [08:24:54]Sock 9.Thread stoped [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:14]accept exits with 8 [08:25:14]New connection [08:25:14]New thread 3067432292 created [08:25:14]Thread 3067575652 joined [08:25:14]Waiting for new connection... [08:25:14] Sock 8.Parse request [08:25:14]Sock 8.Check first char [08:25:14]Sock 8.First char is OK [08:25:14]request: POST /json_proto HTTP/1.0 [08:25:14]Method: POST [08:25:14]URL: /json_proto [08:25:14]Method is POST - this is cgi request [08:25:14]url: /json_proto [08:25:14]query_string will be loaded in cgi processing [08:25:14]execute_cgi json_proto POST (null) [08:25:14]execute_cgi path=json_proto method=POST [08:25:14]POST find Content-Length [08:25:14]Host: 172.17.44.196:8080 [08:25:14]Content-Length: 624 [08:25:14]Content-Type: application/json [08:25:14] [08:25:14]POST finish read [08:25:14]Found Content-Length = 624 [08:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272735", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "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" ] } } [08:25:14]execute_script... [08:25: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)272735", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "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" ] } } [08:25:14]POST & json_proto [08:25:14]process_json_proto [08:25:14]json parsed OK: [08:25:14]protocol is kg_v1.0 [08:25:14]action value=close_receipt [08:25:14]process_action close_receipt [08:25:14]cmd_close_receipt [08:25:14]MH_GetDate [08:25:14]Write to MH i2c: F0 00 00 AF 01 9F [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: F0 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: F0 09 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: F0 09 00 AF 01 00 6A BE 14 67 E7 19 F8 65 A8 [08:25:14]GetLastDocTimeStamp 1729412690 [08:25:14]current date 1729412714 [08:25:14]FM_GetShiftState [08:25:14]SAM_PROTO_GetShiftState [08:25:14]wFMCommunicate request_size=4 [08:25:14]MH_SAM_APDU [08:25:14]CAPDU: 80 13 01 00 [08:25:14]Write to MH i2c: E2 08 00 B0 01 80 13 01 00 00 00 00 00 2E [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:14]Read from MH i2c: E2 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 0E 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 0E 00 B0 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [08:25:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:25:14]wFMCommunicate OK [08:25:14]SAM_PROTO_GetShiftState done [08:25:14]FM_GetShiftState done [08:25:14]opened in 1729384303 [08:25:14]opened+sec_in_day 1729470703 [08:25:14]quantity*price = 15000 [08:25:14]sum+1 = 15001 [08:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 35 20.10.2024 08:25 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73709 ФПД: 214993203298443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082514&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73709&fm=214993203298443&tin=02508201610067®Number=0000000000161154&sum=15000 0 [08:25:15]StoreToDocumentArchive [08:25:15]shift 170 fd 73709 [08:25:15]save to /storage/0170/doc_00073709 [08:25:15]save last doc name /storage/0170/doc_00073709 to /storage/kkm_last_doc_name [08:25:15]save OK [08:25:15]Clear old archive folders... [08:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:25:15]tlvbuf is 0039EE20 [08:25:15]SAM_PROTO_ClearQueue [08:25:15]wFMCommunicate request_size=4 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 09 00 00 [08:25:15]Write to MH i2c: E2 08 00 BD 01 80 09 00 00 00 00 00 00 30 [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 BD 01 00 90 00 32 [08:25:15]RAPDU: 90 00 [08:25:15]wFMCommunicate OK [08:25:15]SAM_PROTO_ClearQueue done [08:25:15]KKMCreateOFDPacket [08:25:15]OFDProtocolAddRootSTLVToBuf [08:25:15]FM_MakeSignedData [08:25:15]FM_MakeSignedData [08:25:15]SAM_PROTO_SignData [08:25:15]wFMCommunicate request_size=4 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 0D 01 02 [08:25:15]Write to MH i2c: E2 08 00 BE 01 80 0D 01 02 00 00 00 00 38 [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 BE 01 00 90 00 33 [08:25:15]RAPDU: 90 00 [08:25:15]wFMCommunicate OK [08:25:15]wFMCommunicate request_size=255 [08:25:15]MH_SAM_APDU [08:25:15]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 37 30 37 33 06 04 27 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 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 23 00 00 00 F4 03 04 00 6A BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 [08:25:15]Write to MH i2c: E2 02 01 BF 01 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 37 30 37 33 06 04 27 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 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 23 00 00 00 F4 03 04 00 6A BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 00 00 59 [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [08:25:15]RAPDU: 90 00 [08:25:15]wFMCommunicate OK [08:25:15]wFMCommunicate request_size=35 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 1F 01 00 35 04 06 00 C3 89 01 83 00 8B [08:25:15]Write to MH i2c: E2 26 00 C0 01 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 1F 01 00 35 04 06 00 C3 89 01 83 00 8B 00 00 90 [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 03 00 C0 01 00 90 00 35 [08:25:15]RAPDU: 90 00 [08:25:15]wFMCommunicate OK [08:25:15]wFMCommunicate request_size=4 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 0D 03 02 [08:25:15]Write to MH i2c: E2 08 00 C1 01 80 0D 03 02 00 00 00 00 3D [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 0B 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 0B 00 C1 01 00 19 FE A0 3A 45 15 29 40 90 00 F2 [08:25:16]RAPDU: 19 FE A0 3A 45 15 29 40 90 00 [08:25:16]wFMCommunicate OK [08:25:16]SAM_PROTO_SignData done [08:25:16]FM_MakeSignedData done [08:25:16]CreateOFDProtocolMessage [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 11 00 00 [08:25:16]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 17 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [08:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:25:16]wFMCommunicate OK [08:25:16]CreateOFDProtocolMessage done [08:25:16]OFDSenderStorePacket 73709 [08:25:16]StoreOFDPacket docnum=73709 [08:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 C2 53 20 01 4F 9A 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 37 30 37 33 06 04 27 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 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 23 00 00 00 F4 03 04 00 6A BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 1F 01 00 35 04 06 00 C3 89 01 83 00 8B 19 FE A0 3A 45 15 29 40 [08:25:16]CheckFolder [08:25:16]dirname=/storage/ofd_packets [08:25:16]CheckFolder done [08:25:16]ProducePacketName [08:25:16]name=ofd_packets/00073709 [08:25:16]NVStorageSaveData ofd_packets/00073709 [08:25:16]File name is /storage/ofd_packets/00073709 [08:25:16]Write 326 bytes [08:25:16]NVStorageSaveData done [08:25:16]OFDSenderStorePacket done [08:25:16]KKMCreateOFDPacket done [08:25:16]NVStorageSaveData kkm_last_timestamp [08:25:16]File name is /storage/kkm_last_timestamp [08:25:16]Write 4 bytes [08:25:16]NVStorageSaveData done [08:25:16]ExternCall_PrintAddStr [08:25:16]wPrintStart [08:25:16]Write to MH i2c: 01 00 00 C3 01 C4 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 07 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [08:25:16]RasterBufferAndPrint [08:25:16]line Счет N : (3)272735 [08:25:16]line ИНН: 02508201610067 [08:25:16]line Контрольно-Кассовый Чек [08:25:16]line ПРОДАЖА [08:25:16]line Товар: 48747073 [08:25:16]line Сигареты Richmond Royal Edition [08:25:16]line 1.000 * 150.00 [08:25:16]line = 150.00 [08:25:16]line НДС 12% НСП 1% [08:25:16]line > о реализуемом товаре [08:25:16]line ИТОГО: 150.00 [08:25:16]line НСП 1% : 1.33 [08:25:16]line НДС 12% : 15.93 [08:25:16]line Наличными: 150.00 [08:25:16]line Безнал.: 0.00 [08:25:16]line Место: АЗС № 133 "Партнер Нефть" [08:25:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:25:16]line СНО: Общий режим [08:25:16]line Чек 35 20.10.2024 08:25 [08:25:16]line Смена: 170 ФФД: 1.0 [08:25:16]line ЗНМ: 0300000020 [08:25:16]line РНМ: 0000000000161154 [08:25:16]line Версия ККМ: v1.0 [08:25:16]line ФМ: 0000000000963323 [08:25:16]line ФД: 73709 [08:25:16]line ФПД: 214993203298443 [08:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082514&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73709&fm=214993203298443&tin=02508201610067®Number=0000000000161154&sum=15000 [08:25:16]line 0 [08:25:16]OFD Sender: Processing packet 73709 [packets to send 15, broken 14] [08:25:16]ProducePacketName [08:25:16]name=ofd_packets/00073709 [08:25:16]OFD Sender: To server: pG, [08:25:16]CommunicateWithHost lk.salyk.kg:30040 [08:25:16]ConnectInit lk.salyk.kg [08:25:16]written 0, free lines is 4095 [08:25:16]Connected sock=10 [08:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 C2 53 20 01 4F 9A 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 37 30 37 33 06 04 27 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 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 23 00 00 00 F4 03 04 00 6A BE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 1F 01 00 35 04 06 00 C3 89 01 83 00 8B 19 FE A0 3A 45 15 29 40 [08:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 77 9D 47 00 4A 96 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 39 36 33 33 32 33 10 04 04 00 ED 1F 01 00 F4 03 04 00 50 67 14 67 B6 04 01 00 00 C8 05 B2 65 8B AF C9 D9 [08:25:16]CommunicateWithHost err = 0 [08:25:16]CheckOFDResponse [08:25:16]1017 (14) - 77093643461234 [08:25:16]1041 (16) - 0000000000963323 [08:25:16]1040 (4) - 73709 [08:25:16]1012 (4) - 20.10.2024 02:13 [08:25:16]1206 (1) - 0 [08:25:16]OFD Sender: Remove packet 73709 [08:25:16]ProducePacketName [08:25:16]name=ofd_packets/00073709 [08:25:16]NVStorageDeleteData [08:25:16]Write to MH i2c: 01 00 00 EB 01 EC [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 07 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 CD 0C CC [08:25:16]RasterBufferAndPrint [08:25:16]line [08:25:16]line [08:25:16]line [08:25:16]line [08:25:16]line [08:25:16]written 0, free lines is 3281 [08:25:16]MH_Cut [08:25:16]Write to MH i2c: D1 01 00 F2 01 01 C5 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: D1 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: D1 01 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: D1 01 00 F2 01 00 C4 [08:25:16]Write to MH i2c: 01 00 00 F3 01 F4 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:17]OFD Sender: No OFD packet to send [08:25:17]*** Cut start [08:25:17]*** Partial cut [08:25:17]*** CUTSNS_PIN = 1 [08:25:17]*** CUTSNS_PIN = 0 [08:25:18]*** Brake cut motor [08:25:18]Read from MH i2c: 01 [08:25:18]MH_I2C_Read... [08:25:18]*** Stop cut motor [08:25:18]*** Cut end [08:25:18]Read from MH i2c: 01 07 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [08:25:18]process_action close_receipt done [08:25:18]requested_data is exist [08:25:18]produce_requested_data [08:25:18]requested_item fm.sn is exist - process it [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 11 00 00 [08:25:18]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 17 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [08:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:25:18]wFMCommunicate OK [08:25:18]requested_item fd.num is exist - process it [08:25:18]SAM_PROTO_GetFieldsCounters [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 13 00 00 [08:25:18]Write to MH i2c: E2 08 00 F5 01 80 13 00 00 00 00 00 00 72 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 62 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 62 00 F5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 ED 1F 01 00 0E 04 04 00 AA 00 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 A6 [08:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 ED 1F 01 00 0E 04 04 00 AA 00 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 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_GetFieldsCounters done [08:25:18]requested_item shift.num is exist - process it [08:25:18]requested_item shift.opened is exist - process it [08:25:18]req_shift_opened [08:25:18]FM_GetShiftState [08:25:18]SAM_PROTO_GetShiftState [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 13 01 00 [08:25:18]Write to MH i2c: E2 08 00 F6 01 80 13 01 00 00 00 00 00 74 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0E 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0E 00 F6 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B9 [08:25:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_GetShiftState done [08:25:18]FM_GetShiftState done [08:25:18]req_shift_opened done [08:25:18]requested_item shift.open_date is exist - process it [08:25:18]req_shift_open_date [08:25:18]req_shift_open_date done [08:25:18]produce_requested_data done [08:25:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73709,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:25:18]process_action_free close_receipt [08:25:18]json_value_free [08:25:18]json_value_free done [08:25:18]process_json_proto returns [08:25:18]Send response to host [08:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73709,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:25:18]free response buf [08:25:18]execute_script done [08:25:18]execute_script returns [08:25:18]free content buf [08:25:18]Sock 8.Close socket [08:25:18]Sock 8.Thread stoped [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:25]accept exits with 9 [08:35:25]New connection [08:35:25]New thread 3067575652 created [08:35:25]Thread 3067432292 joined [08:35:25]Waiting for new connection... [08:35:25] Sock 9.Parse request [08:35:25]Sock 9.Check first char [08:35:25]Sock 9.First char is OK [08:35:25]request: POST /json_proto HTTP/1.0 [08:35:25]Method: POST [08:35:25]URL: /json_proto [08:35:25]Method is POST - this is cgi request [08:35:25]url: /json_proto [08:35:25]query_string will be loaded in cgi processing [08:35:25]execute_cgi json_proto POST (null) [08:35:25]execute_cgi path=json_proto method=POST [08:35:25]POST find Content-Length [08:35:25]Host: 172.17.44.196:8080 [08:35:25]Content-Length: 755 [08:35:25]Content-Type: application/json [08:35:25] [08:35:25]POST finish read [08:35:25]Found Content-Length = 755 [08:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115531", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:25]execute_script... [08:35: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 : (1)1962692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115531", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:25]POST & json_proto [08:35:25]process_json_proto [08:35:25]json parsed OK: [08:35:25]protocol is kg_v1.0 [08:35:25]action value=close_receipt [08:35:25]process_action close_receipt [08:35:25]cmd_close_receipt [08:35:25]MH_GetDate [08:35:25]Write to MH i2c: F0 00 00 F7 01 E7 [08:35:25]Write i2c OK [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: F0 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: F0 09 00 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: F0 09 00 F7 01 00 CD C0 14 67 E7 19 F8 65 55 [08:35:25]GetLastDocTimeStamp 1729412714 [08:35:25]current date 1729413325 [08:35:25]FM_GetShiftState [08:35:25]SAM_PROTO_GetShiftState [08:35:25]wFMCommunicate request_size=4 [08:35:25]MH_SAM_APDU [08:35:25]CAPDU: 80 13 01 00 [08:35:25]Write to MH i2c: E2 08 00 F8 01 80 13 01 00 00 00 00 00 76 [08:35:25]Write i2c OK [08:35:25]MH_I2C_Read... [08:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:25]Read from MH i2c: E2 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 0E 00 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 0E 00 F8 01 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [08:35:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:35:25]wFMCommunicate OK [08:35:25]SAM_PROTO_GetShiftState done [08:35:25]FM_GetShiftState done [08:35:25]opened in 1729384303 [08:35:25]opened+sec_in_day 1729470703 [08:35:25]quantity*price = 0 [08:35:25]sum+1 = 1 [08:35:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 36 20.10.2024 08:35 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30115531 ФМ: 0000000000963323 ФД: 73710 ФПД: 101555956815476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083525&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73710&fm=101555956815476&tin=02508201610067®Number=0000000000161154&sum=0 [08:35:26]StoreToDocumentArchive [08:35:26]shift 170 fd 73710 [08:35:26]save to /storage/0170/doc_00073710 [08:35:26]save last doc name /storage/0170/doc_00073710 to /storage/kkm_last_doc_name [08:35:26]save OK [08:35:26]Clear old archive folders... [08:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:26]tlvbuf is 0039E200 [08:35:26]SAM_PROTO_ClearQueue [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 09 00 00 [08:35:26]Write to MH i2c: E2 08 00 05 02 80 09 00 00 00 00 00 00 79 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 05 02 00 90 00 7B [08:35:26]RAPDU: 90 00 [08:35:26]wFMCommunicate OK [08:35:26]SAM_PROTO_ClearQueue done [08:35:26]KKMCreateOFDPacket [08:35:26]OFDProtocolAddRootSTLVToBuf [08:35:26]FM_MakeSignedData [08:35:26]FM_MakeSignedData [08:35:26]SAM_PROTO_SignData [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 0D 01 02 [08:35:26]Write to MH i2c: E2 08 00 06 02 80 0D 01 02 00 00 00 00 81 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 06 02 00 90 00 7C [08:35:26]RAPDU: 90 00 [08:35:26]wFMCommunicate OK [08:35:26]wFMCommunicate request_size=255 [08:35:26]MH_SAM_APDU [08:35:26]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 20 4E 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 24 00 00 00 F4 03 04 00 CD C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 1F 01 00 35 04 06 00 5C [08:35:26]Write to MH i2c: E2 02 01 07 02 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 20 4E 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 24 00 00 00 F4 03 04 00 CD C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 1F 01 00 35 04 06 00 5C 00 00 30 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [08:35:26]RAPDU: 90 00 [08:35:26]wFMCommunicate OK [08:35:26]wFMCommunicate request_size=10 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 0D 02 02 05 5D 56 BB 16 74 [08:35:26]Write to MH i2c: E2 0D 00 08 02 80 0D 02 02 05 00 5D 56 BB 16 74 00 00 86 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 03 00 08 02 00 90 00 7E [08:35:26]RAPDU: 90 00 [08:35:26]wFMCommunicate OK [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 0D 03 02 [08:35:26]Write to MH i2c: E2 08 00 09 02 80 0D 03 02 00 00 00 00 86 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 0B 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 0B 00 09 02 00 39 EE 19 1C DA FE 9E 8C 90 00 E5 [08:35:26]RAPDU: 39 EE 19 1C DA FE 9E 8C 90 00 [08:35:26]wFMCommunicate OK [08:35:26]SAM_PROTO_SignData done [08:35:26]FM_MakeSignedData done [08:35:26]CreateOFDProtocolMessage [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 11 00 00 [08:35:26]Write to MH i2c: E2 08 00 0A 02 80 11 00 00 00 00 00 00 86 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 17 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 17 00 0A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D3 [08:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:35:26]wFMCommunicate OK [08:35:26]CreateOFDProtocolMessage done [08:35:26]OFDSenderStorePacket 73710 [08:35:26]StoreOFDPacket docnum=73710 [08:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 3D 69 07 01 7C 3D 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 20 4E 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 24 00 00 00 F4 03 04 00 CD C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 1F 01 00 35 04 06 00 5C 5D 56 BB 16 74 39 EE 19 1C DA FE 9E 8C [08:35:26]CheckFolder [08:35:26]dirname=/storage/ofd_packets [08:35:26]CheckFolder done [08:35:26]ProducePacketName [08:35:26]name=ofd_packets/00073710 [08:35:26]NVStorageSaveData ofd_packets/00073710 [08:35:26]File name is /storage/ofd_packets/00073710 [08:35:26]Write 301 bytes [08:35:26]NVStorageSaveData done [08:35:26]OFDSenderStorePacket done [08:35:26]KKMCreateOFDPacket done [08:35:26]NVStorageSaveData kkm_last_timestamp [08:35:26]File name is /storage/kkm_last_timestamp [08:35:26]Write 4 bytes [08:35:26]NVStorageSaveData done [08:35:26]ExternCall_PrintAddStr [08:35:26]wPrintStart [08:35:26]Write to MH i2c: 01 00 00 0B 02 0D [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: 01 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: 01 07 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 FF 0F 22 [08:35:26]RasterBufferAndPrint [08:35:26]line Счет N : (1)1962692 [08:35:26]line ИНН: 02508201610067 [08:35:26]line Контрольно-Кассовый Чек [08:35:26]line ПРОДАЖА [08:35:26]line ТРК (МРК, ГНК) : 34 [08:35:26]line Товар: 2710124500 [08:35:26]line Аи-95-К-5 [08:35:26]line 20.000 * 0.00 [08:35:26]line = 0.00 [08:35:26]line НДС 12% НСП 1% [08:35:26]line > о реализуемом товаре [08:35:26]line ИТОГО: 0.00 [08:35:26]line НСП 1% : 0.00 [08:35:26]line НДС 12% : 0.00 [08:35:26]line Наличными: 0.00 [08:35:26]line Безнал.: 0.00 [08:35:26]line Место: АЗС № 133 "Партнер Нефть" [08:35:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:35:26]line СНО: Общий режим [08:35:26]line Чек 36 20.10.2024 08:35 [08:35:26]line Смена: 170 ФФД: 1.0 [08:35:26]line ЗНМ: 0300000020 [08:35:26]line РНМ: 0000000000161154 [08:35:26]line Версия ККМ: v1.0 [08:35:26]line Талоны: ТК ГПНА Online [08:35:26]line 30115531 [08:35:26]line ФМ: 0000000000963323 [08:35:26]line ФД: 73710 [08:35:26]line ФПД: 101555956815476 [08:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083525&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73710&fm=101555956815476&tin=02508201610067®Number=0000000000161154&sum=0 [08:35:27]OFD Sender: Processing packet 73710 [packets to send 15, broken 14] [08:35:27]ProducePacketName [08:35:27]name=ofd_packets/00073710 [08:35:27]OFD Sender: To server: pG, [08:35:27]CommunicateWithHost lk.salyk.kg:30040 [08:35:27]ConnectInit lk.salyk.kg [08:35:27]written 0, free lines is 4095 [08:35:27]Connected sock=10 [08:35:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 3D 69 07 01 7C 3D 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 20 4E 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 24 00 00 00 F4 03 04 00 CD C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 1F 01 00 35 04 06 00 5C 5D 56 BB 16 74 39 EE 19 1C DA FE 9E 8C [08:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 96 19 47 00 D2 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 39 36 33 33 32 33 10 04 04 00 EE 1F 01 00 F4 03 04 00 B3 69 14 67 B6 04 01 00 00 CC 30 AB 08 1D FE CA 6C [08:35:27]CommunicateWithHost err = 0 [08:35:27]CheckOFDResponse [08:35:27]1017 (14) - 77093643461234 [08:35:27]1041 (16) - 0000000000963323 [08:35:27]1040 (4) - 73710 [08:35:27]1012 (4) - 20.10.2024 02:23 [08:35:27]1206 (1) - 0 [08:35:27]OFD Sender: Remove packet 73710 [08:35:27]ProducePacketName [08:35:27]name=ofd_packets/00073710 [08:35:27]NVStorageDeleteData [08:35:27]Write to MH i2c: 01 00 00 34 02 36 [08:35:27]Write i2c OK [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: 01 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: 01 07 00 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 BE 0C 07 [08:35:27]RasterBufferAndPrint [08:35:27]line [08:35:27]line [08:35:27]line [08:35:27]line [08:35:27]line [08:35:27]written 0, free lines is 3265 [08:35:27]MH_Cut [08:35:27]Write to MH i2c: D1 01 00 3B 02 01 0F [08:35:27]Write i2c OK [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: D1 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: D1 01 00 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: D1 01 00 3B 02 00 0E [08:35:27]Write to MH i2c: 01 00 00 3C 02 3E [08:35:27]Write i2c OK [08:35:27]MH_I2C_Read... [08:35:28]OFD Sender: No OFD packet to send [08:35:28]*** Cut start [08:35:28]*** Partial cut [08:35:28]*** CUTSNS_PIN = 1 [08:35:28]*** CUTSNS_PIN = 0 [08:35:28]*** Brake cut motor [08:35:29]Read from MH i2c: 01 [08:35:29]MH_I2C_Read... [08:35:29]*** Stop cut motor [08:35:29]*** Cut end [08:35:29]Read from MH i2c: 01 07 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [08:35:29]process_action close_receipt done [08:35:29]requested_data is exist [08:35:29]produce_requested_data [08:35:29]requested_item fm.sn is exist - process it [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 11 00 00 [08:35:29]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 17 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 06 [08:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:35:29]wFMCommunicate OK [08:35:29]requested_item fd.num is exist - process it [08:35:29]SAM_PROTO_GetFieldsCounters [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 13 00 00 [08:35:29]Write to MH i2c: E2 08 00 3E 02 80 13 00 00 00 00 00 00 BC [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 62 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 62 00 3E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EE 1F 01 00 0E 04 04 00 AA 00 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 F4 [08:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EE 1F 01 00 0E 04 04 00 AA 00 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 [08:35:29]wFMCommunicate OK [08:35:29]SAM_PROTO_GetFieldsCounters done [08:35:29]requested_item shift.num is exist - process it [08:35:29]requested_item shift.opened is exist - process it [08:35:29]req_shift_opened [08:35:29]FM_GetShiftState [08:35:29]SAM_PROTO_GetShiftState [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 13 01 00 [08:35:29]Write to MH i2c: E2 08 00 3F 02 80 13 01 00 00 00 00 00 BE [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0E 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0E 00 3F 02 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 03 [08:35:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:35:29]wFMCommunicate OK [08:35:29]SAM_PROTO_GetShiftState done [08:35:29]FM_GetShiftState done [08:35:29]req_shift_opened done [08:35:29]requested_item shift.open_date is exist - process it [08:35:29]req_shift_open_date [08:35:29]req_shift_open_date done [08:35:29]produce_requested_data done [08:35:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73710,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:35:29]process_action_free close_receipt [08:35:29]json_value_free [08:35:29]json_value_free done [08:35:29]process_json_proto returns [08:35:29]Send response to host [08:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73710,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:35:29]free response buf [08:35:29]execute_script done [08:35:29]execute_script returns [08:35:29]free content buf [08:35:29]Sock 9.Close socket [08:35:29]Sock 9.Thread stoped [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:14]accept exits with 8 [08:36:14]New connection [08:36:14]New thread 3067432292 created [08:36:14]Thread 3067575652 joined [08:36:14]Waiting for new connection... [08:36:14] Sock 8.Parse request [08:36:14]Sock 8.Check first char [08:36:14]Sock 8.First char is OK [08:36:14]request: POST /json_proto HTTP/1.0 [08:36:14]Method: POST [08:36:14]URL: /json_proto [08:36:14]Method is POST - this is cgi request [08:36:14]url: /json_proto [08:36:14]query_string will be loaded in cgi processing [08:36:14]execute_cgi json_proto POST (null) [08:36:14]execute_cgi path=json_proto method=POST [08:36:14]POST find Content-Length [08:36:14]Host: 172.17.44.196:8080 [08:36:14]Content-Length: 979 [08:36:14]Content-Type: application/json [08:36:14] [08:36:14]POST finish read [08:36:14]Found Content-Length = 979 [08:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:14]execute_script... [08:36: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 : (1)1962693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:14]POST & json_proto [08:36:14]process_json_proto [08:36:14]json parsed OK: [08:36:14]protocol is kg_v1.0 [08:36:14]action value=close_receipt [08:36:14]process_action close_receipt [08:36:14]cmd_close_receipt [08:36:14]MH_GetDate [08:36:14]Write to MH i2c: F0 00 00 40 02 31 [08:36:14]Write i2c OK [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: F0 [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: F0 09 00 [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: F0 09 00 40 02 00 FF C0 14 67 E7 19 F8 65 D1 [08:36:14]GetLastDocTimeStamp 1729413325 [08:36:14]current date 1729413375 [08:36:14]FM_GetShiftState [08:36:14]SAM_PROTO_GetShiftState [08:36:14]wFMCommunicate request_size=4 [08:36:14]MH_SAM_APDU [08:36:14]CAPDU: 80 13 01 00 [08:36:14]Write to MH i2c: E2 08 00 41 02 80 13 01 00 00 00 00 00 C0 [08:36:14]Write i2c OK [08:36:14]MH_I2C_Read... [08:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:14]Read from MH i2c: E2 [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: E2 0E 00 [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: E2 0E 00 41 02 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 05 [08:36:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:36:14]wFMCommunicate OK [08:36:14]SAM_PROTO_GetShiftState done [08:36:14]FM_GetShiftState done [08:36:14]opened in 1729384303 [08:36:14]opened+sec_in_day 1729470703 [08:36:14]quantity*price = 400064 [08:36:14]sum+1 = 400065 [08:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 37 20.10.2024 08:36 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 53.20 сом ФМ: 0000000000963323 ФД: 73711 ФПД: 208522651911682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083615&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73711&fm=208522651911682&tin=02508201610067®Number=0000000000161154&sum=400000 [08:36:15]StoreToDocumentArchive [08:36:15]shift 170 fd 73711 [08:36:15]save to /storage/0170/doc_00073711 [08:36:15]save last doc name /storage/0170/doc_00073711 to /storage/kkm_last_doc_name [08:36:15]save OK [08:36:15]Clear old archive folders... [08:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:36:15]tlvbuf is B6F59A40 [08:36:15]SAM_PROTO_ClearQueue [08:36:15]wFMCommunicate request_size=4 [08:36:15]MH_SAM_APDU [08:36:15]CAPDU: 80 09 00 00 [08:36:15]Write to MH i2c: E2 08 00 4E 02 80 09 00 00 00 00 00 00 C2 [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:15]Read from MH i2c: E2 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 03 00 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [08:36:15]RAPDU: 90 00 [08:36:15]wFMCommunicate OK [08:36:15]SAM_PROTO_ClearQueue done [08:36:15]KKMCreateOFDPacket [08:36:15]OFDProtocolAddRootSTLVToBuf [08:36:15]FM_MakeSignedData [08:36:15]FM_MakeSignedData [08:36:15]SAM_PROTO_SignData [08:36:15]wFMCommunicate request_size=4 [08:36:15]MH_SAM_APDU [08:36:15]CAPDU: 80 0D 01 02 [08:36:15]Write to MH i2c: E2 08 00 4F 02 80 0D 01 02 00 00 00 00 CA [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 4F 02 00 90 00 C5 [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=255 [08:36:16]MH_SAM_APDU [08:36:16]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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 FF C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 1F 01 00 35 04 06 00 BD A6 76 98 [08:36:16]Write to MH i2c: E2 02 01 50 02 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 FF C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 1F 01 00 35 04 06 00 BD A6 76 98 00 00 5A [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=7 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 02 02 02 46 02 [08:36:16]Write to MH i2c: E2 0A 00 51 02 80 0D 02 02 02 00 46 02 00 00 19 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 03 02 [08:36:16]Write to MH i2c: E2 08 00 52 02 80 0D 03 02 00 00 00 00 CF [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0B 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0B 00 52 02 00 02 06 89 32 35 4C 33 81 90 00 C8 [08:36:16]RAPDU: 02 06 89 32 35 4C 33 81 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_SignData done [08:36:16]FM_MakeSignedData done [08:36:16]CreateOFDProtocolMessage [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 11 00 00 [08:36:16]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 17 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1C [08:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:36:16]wFMCommunicate OK [08:36:16]CreateOFDProtocolMessage done [08:36:16]OFDSenderStorePacket 73711 [08:36:16]StoreOFDPacket docnum=73711 [08:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 43 E8 04 01 AD 9C 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 FF C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 1F 01 00 35 04 06 00 BD A6 76 98 46 02 02 06 89 32 35 4C 33 81 [08:36:16]CheckFolder [08:36:16]dirname=/storage/ofd_packets [08:36:16]CheckFolder done [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00073711 [08:36:16]NVStorageSaveData ofd_packets/00073711 [08:36:16]File name is /storage/ofd_packets/00073711 [08:36:16]Write 298 bytes [08:36:16]NVStorageSaveData done [08:36:16]OFDSenderStorePacket done [08:36:16]KKMCreateOFDPacket done [08:36:16]NVStorageSaveData kkm_last_timestamp [08:36:16]File name is /storage/kkm_last_timestamp [08:36:16]Write 4 bytes [08:36:16]NVStorageSaveData done [08:36:16]ExternCall_PrintAddStr [08:36:16]wPrintStart [08:36:16]Write to MH i2c: 01 00 00 54 02 56 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 07 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 FF 0F 6B [08:36:16]RasterBufferAndPrint [08:36:16]line Счет N : (1)1962693 [08:36:16]line ИНН: 02508201610067 [08:36:16]line Контрольно-Кассовый Чек [08:36:16]line ПРОДАЖА [08:36:16]line ТРК (МРК, ГНК) : 21 [08:36:16]line Товар: 2710194210 [08:36:16]line ДТ-К-5 [08:36:16]line 53.200 * 75.20 [08:36:16]line = 4000.64 [08:36:16]line НДС 12% НСП 1% [08:36:16]line > о реализуемом товаре [08:36:16]line ОКРУГЛЕНИЕ: -0.64 [08:36:16]line ИТОГО: 4000.00 [08:36:16]line Внесено: 4000.00 [08:36:16]line СДАЧА: 0.00 [08:36:16]line НСП 1% : 35.40 [08:36:16]line НДС 12% : 424.85 [08:36:16]line Наличными: 4000.00 [08:36:16]line Безнал.: 0.00 [08:36:16]line Место: АЗС № 133 "Партнер Нефть" [08:36:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:36:16]line СНО: Общий режим [08:36:16]line Чек 37 20.10.2024 08:36 [08:36:16]line Смена: 170 ФФД: 1.0 [08:36:16]line ЗНМ: 0300000020 [08:36:16]line РНМ: 0000000000161154 [08:36:16]line Версия ККМ: v1.0 [08:36:16]line [08:36:16]line Дисконтная программа [08:36:16]line ДТ [08:36:16]line номер 133 [08:36:16]line сэкономлено 53.20 сом [08:36:16]line ФМ: 0000000000963323 [08:36:16]line ФД: 73711 [08:36:16]line ФПД: 208522651911682 [08:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083615&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73711&fm=208522651911682&tin=02508201610067®Number=0000000000161154&sum=400000 [08:36:16]OFD Sender: Processing packet 73711 [packets to send 15, broken 14] [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00073711 [08:36:16]OFD Sender: To server: pG, [08:36:16]CommunicateWithHost lk.salyk.kg:30040 [08:36:16]ConnectInit lk.salyk.kg [08:36:16]written 0, free lines is 4095 [08:36:16]Connected sock=10 [08:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 43 E8 04 01 AD 9C 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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 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 FF C0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 1F 01 00 35 04 06 00 BD A6 76 98 46 02 02 06 89 32 35 4C 33 81 [08:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 99 1C 47 00 BD 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 39 36 33 33 32 33 10 04 04 00 EF 1F 01 00 F4 03 04 00 E4 69 14 67 B6 04 01 00 00 A7 E2 51 BC 04 F5 F4 58 [08:36:17]CommunicateWithHost err = 0 [08:36:17]CheckOFDResponse [08:36:17]1017 (14) - 77093643461234 [08:36:17]1041 (16) - 0000000000963323 [08:36:17]1040 (4) - 73711 [08:36:17]1012 (4) - 20.10.2024 02:24 [08:36:17]1206 (1) - 0 [08:36:17]OFD Sender: Remove packet 73711 [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00073711 [08:36:17]NVStorageDeleteData [08:36:17]Write to MH i2c: 01 00 00 83 02 85 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 50 0C E8 [08:36:17]RasterBufferAndPrint [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]written 0, free lines is 3156 [08:36:17]MH_Cut [08:36:17]Write to MH i2c: D1 01 00 8A 02 01 5E [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 8A 02 00 5D [08:36:17]Write to MH i2c: 01 00 00 8B 02 8D [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]OFD Sender: No OFD packet to send [08:36:18]*** Cut start [08:36:18]*** Partial cut [08:36:18]*** CUTSNS_PIN = 1 [08:36:18]*** CUTSNS_PIN = 0 [08:36:18]*** Brake cut motor [08:36:18]Read from MH i2c: 01 [08:36:18]*** Stop cut motor [08:36:18]*** Cut end [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 FF 0F A2 [08:36:18]process_action close_receipt done [08:36:18]requested_data is exist [08:36:18]produce_requested_data [08:36:18]requested_item fm.sn is exist - process it [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 11 00 00 [08:36:18]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [08:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:36:18]wFMCommunicate OK [08:36:18]requested_item fd.num is exist - process it [08:36:18]SAM_PROTO_GetFieldsCounters [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 13 00 00 [08:36:18]Write to MH i2c: E2 08 00 8D 02 80 13 00 00 00 00 00 00 0B [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 62 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 62 00 8D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EF 1F 01 00 0E 04 04 00 AA 00 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 47 [08:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EF 1F 01 00 0E 04 04 00 AA 00 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 [08:36:19]wFMCommunicate OK [08:36:19]SAM_PROTO_GetFieldsCounters done [08:36:19]requested_item shift.num is exist - process it [08:36:19]requested_item shift.opened is exist - process it [08:36:19]req_shift_opened [08:36:19]FM_GetShiftState [08:36:19]SAM_PROTO_GetShiftState [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 13 01 00 [08:36:19]Write to MH i2c: E2 08 00 8E 02 80 13 01 00 00 00 00 00 0D [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 0E 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 0E 00 8E 02 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 52 [08:36:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:36:19]wFMCommunicate OK [08:36:19]SAM_PROTO_GetShiftState done [08:36:19]FM_GetShiftState done [08:36:19]req_shift_opened done [08:36:19]requested_item shift.open_date is exist - process it [08:36:19]req_shift_open_date [08:36:19]req_shift_open_date done [08:36:19]produce_requested_data done [08:36:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73711,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:36:19]process_action_free close_receipt [08:36:19]json_value_free [08:36:19]json_value_free done [08:36:19]process_json_proto returns [08:36:19]Send response to host [08:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73711,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:36:19]free response buf [08:36:19]execute_script done [08:36:19]execute_script returns [08:36:19]free content buf [08:36:19]Sock 8.Close socket [08:36:19]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:45]accept exits with 9 [08:41:45]New connection [08:41:45]New thread 3067575652 created [08:41:45]Thread 3067432292 joined [08:41:45]Waiting for new connection... [08:41:45] Sock 9.Parse request [08:41:45]Sock 9.Check first char [08:41:45]Sock 9.First char is OK [08:41:45]request: POST /json_proto HTTP/1.0 [08:41:45]Method: POST [08:41:45]URL: /json_proto [08:41:45]Method is POST - this is cgi request [08:41:45]url: /json_proto [08:41:45]query_string will be loaded in cgi processing [08:41:45]execute_cgi json_proto POST (null) [08:41:45]execute_cgi path=json_proto method=POST [08:41:45]POST find Content-Length [08:41:45]Host: 172.17.44.196:8080 [08:41:45]Content-Length: 623 [08:41:45]Content-Type: application/json [08:41:45] [08:41:45]POST finish read [08:41:45]Found Content-Length = 623 [08:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272736", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "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" ] } } [08:41:45]execute_script... [08:41: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)272736", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "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" ] } } [08:41:45]POST & json_proto [08:41:45]process_json_proto [08:41:45]json parsed OK: [08:41:45]protocol is kg_v1.0 [08:41:45]action value=close_receipt [08:41:45]process_action close_receipt [08:41:45]cmd_close_receipt [08:41:45]MH_GetDate [08:41:45]Write to MH i2c: F0 00 00 8F 02 80 [08:41:45]Write i2c OK [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 09 00 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 09 00 8F 02 00 4A C2 14 67 E7 19 F8 65 6D [08:41:45]GetLastDocTimeStamp 1729413375 [08:41:45]current date 1729413706 [08:41:45]FM_GetShiftState [08:41:45]SAM_PROTO_GetShiftState [08:41:45]wFMCommunicate request_size=4 [08:41:45]MH_SAM_APDU [08:41:45]CAPDU: 80 13 01 00 [08:41:45]Write to MH i2c: E2 08 00 90 02 80 13 01 00 00 00 00 00 0F [08:41:45]Write i2c OK [08:41:45]MH_I2C_Read... [08:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:45]Read from MH i2c: E2 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: E2 0E 00 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: E2 0E 00 90 02 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 54 [08:41:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:41:45]wFMCommunicate OK [08:41:45]SAM_PROTO_GetShiftState done [08:41:45]FM_GetShiftState done [08:41:45]opened in 1729384303 [08:41:45]opened+sec_in_day 1729470703 [08:41:45]quantity*price = 28000 [08:41:45]sum+1 = 28001 [08:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 38 20.10.2024 08:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73712 ФПД: 203569561390870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084146&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73712&fm=203569561390870&tin=02508201610067®Number=0000000000161154&sum=28000 0 [08:41:46]StoreToDocumentArchive [08:41:46]shift 170 fd 73712 [08:41:46]save to /storage/0170/doc_00073712 [08:41:46]save last doc name /storage/0170/doc_00073712 to /storage/kkm_last_doc_name [08:41:46]save OK [08:41:46]Clear old archive folders... [08:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:41:46]tlvbuf is 0032CFA0 [08:41:46]SAM_PROTO_ClearQueue [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 09 00 00 [08:41:46]Write to MH i2c: E2 08 00 9D 02 80 09 00 00 00 00 00 00 11 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]SAM_PROTO_ClearQueue done [08:41:46]KKMCreateOFDPacket [08:41:46]OFDProtocolAddRootSTLVToBuf [08:41:46]FM_MakeSignedData [08:41:46]FM_MakeSignedData [08:41:46]SAM_PROTO_SignData [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 01 02 [08:41:46]Write to MH i2c: E2 08 00 9E 02 80 0D 01 02 00 00 00 00 19 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]wFMCommunicate request_size=255 [08:41:46]MH_SAM_APDU [08:41:46]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 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 26 00 00 00 F4 03 04 00 4A C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [08:41:46]Write to MH i2c: E2 02 01 9F 02 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 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 26 00 00 00 F4 03 04 00 4A C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 EA [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [08:41:47]RAPDU: 90 00 [08:41:47]wFMCommunicate OK [08:41:47]wFMCommunicate request_size=34 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 1F 01 00 35 04 06 00 B9 25 3B 64 CF 16 [08:41:47]Write to MH i2c: E2 25 00 A0 02 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 1F 01 00 35 04 06 00 B9 25 3B 64 CF 16 00 00 49 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [08:41:47]RAPDU: 90 00 [08:41:47]wFMCommunicate OK [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 0D 03 02 [08:41:47]Write to MH i2c: E2 08 00 A1 02 80 0D 03 02 00 00 00 00 1E [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 0B 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 0B 00 A1 02 00 BF EA E8 D5 2A 38 1D 8B 90 00 8F [08:41:47]RAPDU: BF EA E8 D5 2A 38 1D 8B 90 00 [08:41:47]wFMCommunicate OK [08:41:47]SAM_PROTO_SignData done [08:41:47]FM_MakeSignedData done [08:41:47]CreateOFDProtocolMessage [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 11 00 00 [08:41:47]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 17 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6B [08:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:41:47]wFMCommunicate OK [08:41:47]CreateOFDProtocolMessage done [08:41:47]OFDSenderStorePacket 73712 [08:41:47]StoreOFDPacket docnum=73712 [08:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 E4 CD 1F 01 6F 1E 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 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 26 00 00 00 F4 03 04 00 4A C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 1F 01 00 35 04 06 00 B9 25 3B 64 CF 16 BF EA E8 D5 2A 38 1D 8B [08:41:47]CheckFolder [08:41:47]dirname=/storage/ofd_packets [08:41:47]CheckFolder done [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00073712 [08:41:47]NVStorageSaveData ofd_packets/00073712 [08:41:47]File name is /storage/ofd_packets/00073712 [08:41:47]Write 325 bytes [08:41:47]NVStorageSaveData done [08:41:47]OFDSenderStorePacket done [08:41:47]KKMCreateOFDPacket done [08:41:47]NVStorageSaveData kkm_last_timestamp [08:41:47]File name is /storage/kkm_last_timestamp [08:41:47]Write 4 bytes [08:41:47]NVStorageSaveData done [08:41:47]ExternCall_PrintAddStr [08:41:47]wPrintStart [08:41:47]Write to MH i2c: 01 00 00 A3 02 A5 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [08:41:47]RasterBufferAndPrint [08:41:47]line Счет N : (3)272736 [08:41:47]line ИНН: 02508201610067 [08:41:47]line Контрольно-Кассовый Чек [08:41:47]line ПРОДАЖА [08:41:47]line Товар: 48743587 [08:41:47]line Сигареты Winston XStyle Silver [08:41:47]line 2.000 * 140.00 [08:41:47]line = 280.00 [08:41:47]line НДС 12% НСП 1% [08:41:47]line > о реализуемом товаре [08:41:47]line ИТОГО: 280.00 [08:41:47]line НСП 1% : 2.48 [08:41:47]line НДС 12% : 29.73 [08:41:47]line Наличными: 280.00 [08:41:47]line Безнал.: 0.00 [08:41:47]line Место: АЗС № 133 "Партнер Нефть" [08:41:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:41:47]line СНО: Общий режим [08:41:47]line Чек 38 20.10.2024 08:41 [08:41:47]line Смена: 170 ФФД: 1.0 [08:41:47]line ЗНМ: 0300000020 [08:41:47]line РНМ: 0000000000161154 [08:41:47]line Версия ККМ: v1.0 [08:41:47]line ФМ: 0000000000963323 [08:41:47]line ФД: 73712 [08:41:47]line ФПД: 203569561390870 [08:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084146&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73712&fm=203569561390870&tin=02508201610067®Number=0000000000161154&sum=28000 [08:41:47]line 0 [08:41:47]OFD Sender: Processing packet 73712 [packets to send 15, broken 14] [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00073712 [08:41:47]OFD Sender: To server: pG, [08:41:47]CommunicateWithHost lk.salyk.kg:30040 [08:41:47]ConnectInit lk.salyk.kg [08:41:47]written 0, free lines is 4095 [08:41:47]Connected sock=10 [08:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 E4 CD 1F 01 6F 1E 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 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 26 00 00 00 F4 03 04 00 4A C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 1F 01 00 35 04 06 00 B9 25 3B 64 CF 16 BF EA E8 D5 2A 38 1D 8B [08:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8A B7 47 00 26 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 39 36 33 33 32 33 10 04 04 00 F0 1F 01 00 F4 03 04 00 2F 6B 14 67 B6 04 01 00 00 B3 2E 87 05 A8 E9 B1 DC [08:41:47]CommunicateWithHost err = 0 [08:41:47]CheckOFDResponse [08:41:47]1017 (14) - 77093643461234 [08:41:47]1041 (16) - 0000000000963323 [08:41:47]1040 (4) - 73712 [08:41:47]1012 (4) - 20.10.2024 02:30 [08:41:47]1206 (1) - 0 [08:41:47]OFD Sender: Remove packet 73712 [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00073712 [08:41:47]NVStorageDeleteData [08:41:47]Write to MH i2c: 01 00 00 CB 02 CD [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 D6 0C B6 [08:41:47]RasterBufferAndPrint [08:41:47]line [08:41:47]line [08:41:47]line [08:41:47]line [08:41:47]line [08:41:47]written 0, free lines is 3290 [08:41:47]MH_Cut [08:41:47]Write to MH i2c: D1 01 00 D2 02 01 A6 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: D1 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: D1 01 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: D1 01 00 D2 02 00 A5 [08:41:47]Write to MH i2c: 01 00 00 D3 02 D5 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:48]OFD Sender: No OFD packet to send [08:41:48]*** Cut start [08:41:48]*** Partial cut [08:41:48]*** CUTSNS_PIN = 1 [08:41:48]*** CUTSNS_PIN = 0 [08:41:49]*** Brake cut motor [08:41:49]Read from MH i2c: 01 [08:41:49]MH_I2C_Read... [08:41:49]*** Stop cut motor [08:41:49]*** Cut end [08:41:49]Read from MH i2c: 01 07 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [08:41:49]process_action close_receipt done [08:41:49]requested_data is exist [08:41:49]produce_requested_data [08:41:49]requested_item fm.sn is exist - process it [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 11 00 00 [08:41:49]Write to MH i2c: E2 08 00 D4 02 80 11 00 00 00 00 00 00 50 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 D4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9D [08:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:41:49]wFMCommunicate OK [08:41:49]requested_item fd.num is exist - process it [08:41:49]SAM_PROTO_GetFieldsCounters [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 00 00 [08:41:49]Write to MH i2c: E2 08 00 D5 02 80 13 00 00 00 00 00 00 53 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 D5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F0 1F 01 00 0E 04 04 00 AA 00 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 93 [08:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F0 1F 01 00 0E 04 04 00 AA 00 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 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetFieldsCounters done [08:41:49]requested_item shift.num is exist - process it [08:41:49]requested_item shift.opened is exist - process it [08:41:49]req_shift_opened [08:41:49]FM_GetShiftState [08:41:49]SAM_PROTO_GetShiftState [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 01 00 [08:41:49]Write to MH i2c: E2 08 00 D6 02 80 13 01 00 00 00 00 00 55 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 D6 02 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9A [08:41:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetShiftState done [08:41:49]FM_GetShiftState done [08:41:49]req_shift_opened done [08:41:49]requested_item shift.open_date is exist - process it [08:41:49]req_shift_open_date [08:41:49]req_shift_open_date done [08:41:49]produce_requested_data done [08:41:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73712,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:41:49]process_action_free close_receipt [08:41:49]json_value_free [08:41:49]json_value_free done [08:41:49]process_json_proto returns [08:41:49]Send response to host [08:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73712,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:41:49]free response buf [08:41:49]execute_script done [08:41:49]execute_script returns [08:41:49]free content buf [08:41:49]Sock 9.Close socket [08:41:49]Sock 9.Thread stoped [08:41:53]OFD Sender: No OFD packet to send [08:41:54]accept exits with 8 [08:41:54]New connection [08:41:54]New thread 3067432292 created [08:41:54]Thread 3067575652 joined [08:41:54]Waiting for new connection... [08:41:54] Sock 8.Parse request [08:41:54]Sock 8.Check first char [08:41:54]Sock 8.First char is OK [08:41:54]request: POST /json_proto HTTP/1.0 [08:41:54]Method: POST [08:41:54]URL: /json_proto [08:41:54]Method is POST - this is cgi request [08:41:54]url: /json_proto [08:41:54]query_string will be loaded in cgi processing [08:41:54]execute_cgi json_proto POST (null) [08:41:54]execute_cgi path=json_proto method=POST [08:41:54]POST find Content-Length [08:41:54]Host: 172.17.44.196:8080 [08:41:54]Content-Length: 619 [08:41:54]Content-Type: application/json [08:41:54] [08:41:54]POST finish read [08:41:54]Found Content-Length = 619 [08:41:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272737", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [08:41:54]execute_script... [08:41: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)272737", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [08:41:54]POST & json_proto [08:41:54]process_json_proto [08:41:54]json parsed OK: [08:41:54]protocol is kg_v1.0 [08:41:54]action value=close_receipt [08:41:54]process_action close_receipt [08:41:54]cmd_close_receipt [08:41:54]MH_GetDate [08:41:54]Write to MH i2c: F0 00 00 D7 02 C8 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: F0 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: F0 09 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: F0 09 00 D7 02 00 53 C2 14 67 E7 19 F8 65 BE [08:41:54]GetLastDocTimeStamp 1729413706 [08:41:54]current date 1729413715 [08:41:54]FM_GetShiftState [08:41:54]SAM_PROTO_GetShiftState [08:41:54]wFMCommunicate request_size=4 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 13 01 00 [08:41:54]Write to MH i2c: E2 08 00 D8 02 80 13 01 00 00 00 00 00 57 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 0E 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 0E 00 D8 02 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9C [08:41:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:41:54]wFMCommunicate OK [08:41:54]SAM_PROTO_GetShiftState done [08:41:54]FM_GetShiftState done [08:41:54]opened in 1729384303 [08:41:54]opened+sec_in_day 1729470703 [08:41:54]quantity*price = 14000 [08:41:54]sum+1 = 14001 [08:41:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 39 20.10.2024 08:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73713 ФПД: 108809394260378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084155&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73713&fm=108809394260378&tin=02508201610067®Number=0000000000161154&sum=14000 0 [08:41:55]StoreToDocumentArchive [08:41:55]shift 170 fd 73713 [08:41:55]save to /storage/0170/doc_00073713 [08:41:55]save last doc name /storage/0170/doc_00073713 to /storage/kkm_last_doc_name [08:41:55]save OK [08:41:55]Clear old archive folders... [08:41:55]ProcessDocumentItem done err = 0, tmpTLVsize=271 [08:41:55]tlvbuf is B6F72610 [08:41:55]SAM_PROTO_ClearQueue [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 09 00 00 [08:41:55]Write to MH i2c: E2 08 00 E5 02 80 09 00 00 00 00 00 00 59 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [08:41:55]RAPDU: 90 00 [08:41:55]wFMCommunicate OK [08:41:55]SAM_PROTO_ClearQueue done [08:41:55]KKMCreateOFDPacket [08:41:55]OFDProtocolAddRootSTLVToBuf [08:41:55]FM_MakeSignedData [08:41:55]FM_MakeSignedData [08:41:55]SAM_PROTO_SignData [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 0D 01 02 [08:41:55]Write to MH i2c: E2 08 00 E6 02 80 0D 01 02 00 00 00 00 61 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [08:41:55]RAPDU: 90 00 [08:41:55]wFMCommunicate OK [08:41:55]wFMCommunicate request_size=255 [08:41:55]MH_SAM_APDU [08:41:55]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 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 27 00 00 00 F4 03 04 00 53 C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [08:41:55]Write to MH i2c: E2 02 01 E7 02 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 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 27 00 00 00 F4 03 04 00 53 C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 3F [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [08:41:55]RAPDU: 90 00 [08:41:55]wFMCommunicate OK [08:41:55]wFMCommunicate request_size=30 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 F1 1F 01 00 35 04 06 00 62 F6 29 4B 09 9A [08:41:55]Write to MH i2c: E2 21 00 E8 02 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 F1 1F 01 00 35 04 06 00 62 F6 29 4B 09 9A 00 00 D7 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [08:41:55]RAPDU: 90 00 [08:41:55]wFMCommunicate OK [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 0D 03 02 [08:41:55]Write to MH i2c: E2 08 00 E9 02 80 0D 03 02 00 00 00 00 66 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:56]Read from MH i2c: E2 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 0B 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 0B 00 E9 02 00 48 B1 F7 BB 18 A0 A8 54 90 00 C6 [08:41:56]RAPDU: 48 B1 F7 BB 18 A0 A8 54 90 00 [08:41:56]wFMCommunicate OK [08:41:56]SAM_PROTO_SignData done [08:41:56]FM_MakeSignedData done [08:41:56]CreateOFDProtocolMessage [08:41:56]wFMCommunicate request_size=4 [08:41:56]MH_SAM_APDU [08:41:56]CAPDU: 80 11 00 00 [08:41:56]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:56]Read from MH i2c: E2 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 17 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B3 [08:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:41:56]wFMCommunicate OK [08:41:56]CreateOFDProtocolMessage done [08:41:56]OFDSenderStorePacket 73713 [08:41:56]StoreOFDPacket docnum=73713 [08:41:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 98 89 1B 01 BC DD 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 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 27 00 00 00 F4 03 04 00 53 C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 1F 01 00 35 04 06 00 62 F6 29 4B 09 9A 48 B1 F7 BB 18 A0 A8 54 [08:41:56]CheckFolder [08:41:56]dirname=/storage/ofd_packets [08:41:56]CheckFolder done [08:41:56]ProducePacketName [08:41:56]name=ofd_packets/00073713 [08:41:56]NVStorageSaveData ofd_packets/00073713 [08:41:56]File name is /storage/ofd_packets/00073713 [08:41:56]Write 321 bytes [08:41:56]NVStorageSaveData done [08:41:56]OFDSenderStorePacket done [08:41:56]KKMCreateOFDPacket done [08:41:56]NVStorageSaveData kkm_last_timestamp [08:41:56]File name is /storage/kkm_last_timestamp [08:41:56]Write 4 bytes [08:41:56]NVStorageSaveData done [08:41:56]ExternCall_PrintAddStr [08:41:56]wPrintStart [08:41:56]Write to MH i2c: 01 00 00 EB 02 ED [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: 01 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: 01 07 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [08:41:56]RasterBufferAndPrint [08:41:56]line Счет N : (3)272737 [08:41:56]line ИНН: 02508201610067 [08:41:56]line Контрольно-Кассовый Чек [08:41:56]line ПРОДАЖА [08:41:56]line Товар: 47802995 [08:41:56]line Сигареты Winston XS Silver [08:41:56]line 1.000 * 140.00 [08:41:56]line = 140.00 [08:41:56]line НДС 12% НСП 1% [08:41:56]line > о реализуемом товаре [08:41:56]line ИТОГО: 140.00 [08:41:56]line НСП 1% : 1.24 [08:41:56]line НДС 12% : 14.87 [08:41:56]line Наличными: 140.00 [08:41:56]line Безнал.: 0.00 [08:41:56]line Место: АЗС № 133 "Партнер Нефть" [08:41:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:41:56]line СНО: Общий режим [08:41:56]line Чек 39 20.10.2024 08:41 [08:41:56]line Смена: 170 ФФД: 1.0 [08:41:56]line ЗНМ: 0300000020 [08:41:56]line РНМ: 0000000000161154 [08:41:56]line Версия ККМ: v1.0 [08:41:56]line ФМ: 0000000000963323 [08:41:56]line ФД: 73713 [08:41:56]line ФПД: 108809394260378 [08:41:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084155&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73713&fm=108809394260378&tin=02508201610067®Number=0000000000161154&sum=14000 [08:41:56]line 0 [08:41:56]OFD Sender: Processing packet 73713 [packets to send 15, broken 14] [08:41:56]ProducePacketName [08:41:56]name=ofd_packets/00073713 [08:41:56]OFD Sender: To server: pG, [08:41:56]CommunicateWithHost lk.salyk.kg:30040 [08:41:56]ConnectInit lk.salyk.kg [08:41:56]written 0, free lines is 4095 [08:41:56]Connected sock=10 [08:41:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 98 89 1B 01 BC DD 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 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 27 00 00 00 F4 03 04 00 53 C2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 1F 01 00 35 04 06 00 62 F6 29 4B 09 9A 48 B1 F7 BB 18 A0 A8 54 [08:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9F 0E 47 00 76 4C 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 39 36 33 33 32 33 10 04 04 00 F1 1F 01 00 F4 03 04 00 38 6B 14 67 B6 04 01 00 00 D9 EF 80 E6 E9 1E 1F C2 [08:41:56]CommunicateWithHost err = 0 [08:41:56]CheckOFDResponse [08:41:56]1017 (14) - 77093643461234 [08:41:56]1041 (16) - 0000000000963323 [08:41:56]1040 (4) - 73713 [08:41:56]1012 (4) - 20.10.2024 02:30 [08:41:56]1206 (1) - 0 [08:41:56]OFD Sender: Remove packet 73713 [08:41:56]ProducePacketName [08:41:56]name=ofd_packets/00073713 [08:41:56]NVStorageDeleteData [08:41:56]Write to MH i2c: 01 00 00 12 03 15 [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: 01 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: 01 07 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 DF 0C 07 [08:41:56]RasterBufferAndPrint [08:41:56]line [08:41:56]line [08:41:56]line [08:41:56]line [08:41:56]line [08:41:56]written 0, free lines is 3302 [08:41:56]MH_Cut [08:41:56]Write to MH i2c: D1 01 00 19 03 01 EE [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: D1 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: D1 01 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: D1 01 00 19 03 00 ED [08:41:56]Write to MH i2c: 01 00 00 1A 03 1D [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:57]OFD Sender: No OFD packet to send [08:41:57]*** Cut start [08:41:57]*** Partial cut [08:41:57]*** CUTSNS_PIN = 1 [08:41:57]*** CUTSNS_PIN = 0 [08:41:57]*** Brake cut motor [08:41:58]Read from MH i2c: 01 [08:41:58]MH_I2C_Read... [08:41:58]*** Stop cut motor [08:41:58]*** Cut end [08:41:58]Read from MH i2c: 01 07 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [08:41:58]process_action close_receipt done [08:41:58]requested_data is exist [08:41:58]produce_requested_data [08:41:58]requested_item fm.sn is exist - process it [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 11 00 00 [08:41:58]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 17 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [08:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:41:58]wFMCommunicate OK [08:41:58]requested_item fd.num is exist - process it [08:41:58]SAM_PROTO_GetFieldsCounters [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 13 00 00 [08:41:58]Write to MH i2c: E2 08 00 1C 03 80 13 00 00 00 00 00 00 9B [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 62 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 62 00 1C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F1 1F 01 00 0E 04 04 00 AA 00 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 DF [08:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F1 1F 01 00 0E 04 04 00 AA 00 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 [08:41:58]wFMCommunicate OK [08:41:58]SAM_PROTO_GetFieldsCounters done [08:41:58]requested_item shift.num is exist - process it [08:41:58]requested_item shift.opened is exist - process it [08:41:58]req_shift_opened [08:41:58]FM_GetShiftState [08:41:58]SAM_PROTO_GetShiftState [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 13 01 00 [08:41:58]Write to MH i2c: E2 08 00 1D 03 80 13 01 00 00 00 00 00 9D [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 0E 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 0E 00 1D 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E2 [08:41:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:41:58]wFMCommunicate OK [08:41:58]SAM_PROTO_GetShiftState done [08:41:58]FM_GetShiftState done [08:41:58]req_shift_opened done [08:41:58]requested_item shift.open_date is exist - process it [08:41:58]req_shift_open_date [08:41:58]req_shift_open_date done [08:41:58]produce_requested_data done [08:41:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73713,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:41:58]process_action_free close_receipt [08:41:58]json_value_free [08:41:58]json_value_free done [08:41:58]process_json_proto returns [08:41:58]Send response to host [08:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73713,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:41:58]free response buf [08:41:58]execute_script done [08:41:58]execute_script returns [08:41:58]free content buf [08:41:58]Sock 8.Close socket [08:41:58]Sock 8.Thread stoped [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]accept exits with 9 [08:48:47]New connection [08:48:47]New thread 3067575652 created [08:48:47]Thread 3067432292 joined [08:48:47]Waiting for new connection... [08:48:47] Sock 9.Parse request [08:48:47]Sock 9.Check first char [08:48:47]Sock 9.First char is OK [08:48:47]request: POST /json_proto HTTP/1.0 [08:48:47]Method: POST [08:48:47]URL: /json_proto [08:48:47]Method is POST - this is cgi request [08:48:47]url: /json_proto [08:48:47]query_string will be loaded in cgi processing [08:48:47]execute_cgi json_proto POST (null) [08:48:47]execute_cgi path=json_proto method=POST [08:48:47]POST find Content-Length [08:48:47]Host: 172.17.44.196:8080 [08:48:47]Content-Length: 683 [08:48:47]Content-Type: application/json [08:48:47] [08:48:47]POST finish read [08:48:47]Found Content-Length = 683 [08:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [08:48:47]execute_script... [08:48: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 : (1)1962701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [08:48:47]POST & json_proto [08:48:47]process_json_proto [08:48:47]json parsed OK: [08:48:47]protocol is kg_v1.0 [08:48:47]action value=close_receipt [08:48:47]process_action close_receipt [08:48:47]cmd_close_receipt [08:48:47]MH_GetDate [08:48:47]Write to MH i2c: F0 00 00 1E 03 10 [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: F0 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: F0 09 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: F0 09 00 1E 03 00 F0 C3 14 67 E7 19 F8 65 A4 [08:48:47]GetLastDocTimeStamp 1729413715 [08:48:47]current date 1729414128 [08:48:47]FM_GetShiftState [08:48:47]SAM_PROTO_GetShiftState [08:48:47]wFMCommunicate request_size=4 [08:48:47]MH_SAM_APDU [08:48:47]CAPDU: 80 13 01 00 [08:48:47]Write to MH i2c: E2 08 00 1F 03 80 13 01 00 00 00 00 00 9F [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:47]Read from MH i2c: E2 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 0E 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 0E 00 1F 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E4 [08:48:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:48:47]wFMCommunicate OK [08:48:47]SAM_PROTO_GetShiftState done [08:48:47]FM_GetShiftState done [08:48:47]opened in 1729384303 [08:48:47]opened+sec_in_day 1729470703 [08:48:47]quantity*price = 100021 [08:48:47]sum+1 = 100023 [08:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 40 20.10.2024 08:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73714 ФПД: 263670088190596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084848&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73714&fm=263670088190596&tin=02508201610067®Number=0000000000161154&sum=100000 [08:48:48]StoreToDocumentArchive [08:48:48]shift 170 fd 73714 [08:48:48]save to /storage/0170/doc_00073714 [08:48:48]save last doc name /storage/0170/doc_00073714 to /storage/kkm_last_doc_name [08:48:48]save OK [08:48:48]Clear old archive folders... [08:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:48]tlvbuf is 0032D390 [08:48:48]SAM_PROTO_ClearQueue [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 09 00 00 [08:48:48]Write to MH i2c: E2 08 00 2C 03 80 09 00 00 00 00 00 00 A1 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [08:48:48]RAPDU: 90 00 [08:48:48]wFMCommunicate OK [08:48:48]SAM_PROTO_ClearQueue done [08:48:48]KKMCreateOFDPacket [08:48:48]OFDProtocolAddRootSTLVToBuf [08:48:48]FM_MakeSignedData [08:48:48]FM_MakeSignedData [08:48:48]SAM_PROTO_SignData [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 0D 01 02 [08:48:48]Write to MH i2c: E2 08 00 2D 03 80 0D 01 02 00 00 00 00 A9 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [08:48:48]RAPDU: 90 00 [08:48:48]wFMCommunicate OK [08:48:48]wFMCommunicate request_size=255 [08:48:48]MH_SAM_APDU [08:48:48]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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 28 00 00 00 F4 03 04 00 F0 C3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 1F 01 00 35 04 06 00 EF [08:48:48]Write to MH i2c: E2 02 01 2E 03 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 28 00 00 00 F4 03 04 00 F0 C3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 1F 01 00 35 04 06 00 EF 00 00 49 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 2E 03 00 90 00 A5 [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=10 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 02 02 05 CE 79 F1 CA 84 [08:48:49]Write to MH i2c: E2 0D 00 2F 03 80 0D 02 02 05 00 CE 79 F1 CA 84 00 00 3C [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 03 02 [08:48:49]Write to MH i2c: E2 08 00 30 03 80 0D 03 02 00 00 00 00 AE [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 0B 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 0B 00 30 03 00 12 08 39 9D 39 F2 10 04 90 00 DE [08:48:49]RAPDU: 12 08 39 9D 39 F2 10 04 90 00 [08:48:49]wFMCommunicate OK [08:48:49]SAM_PROTO_SignData done [08:48:49]FM_MakeSignedData done [08:48:49]CreateOFDProtocolMessage [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 11 00 00 [08:48:49]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 17 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FB [08:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:48:49]wFMCommunicate OK [08:48:49]CreateOFDProtocolMessage done [08:48:49]OFDSenderStorePacket 73714 [08:48:49]StoreOFDPacket docnum=73714 [08:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 24 04 07 01 28 F9 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 28 00 00 00 F4 03 04 00 F0 C3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 1F 01 00 35 04 06 00 EF CE 79 F1 CA 84 12 08 39 9D 39 F2 10 04 [08:48:49]CheckFolder [08:48:49]dirname=/storage/ofd_packets [08:48:49]CheckFolder done [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00073714 [08:48:49]NVStorageSaveData ofd_packets/00073714 [08:48:49]File name is /storage/ofd_packets/00073714 [08:48:49]Write 301 bytes [08:48:49]NVStorageSaveData done [08:48:49]OFDSenderStorePacket done [08:48:49]KKMCreateOFDPacket done [08:48:49]NVStorageSaveData kkm_last_timestamp [08:48:49]File name is /storage/kkm_last_timestamp [08:48:49]Write 4 bytes [08:48:49]NVStorageSaveData done [08:48:49]ExternCall_PrintAddStr [08:48:49]wPrintStart [08:48:49]Write to MH i2c: 01 00 00 32 03 35 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [08:48:49]RasterBufferAndPrint [08:48:49]line Счет N : (1)1962701 [08:48:49]line ИНН: 02508201610067 [08:48:49]line Контрольно-Кассовый Чек [08:48:49]line ПРОДАЖА [08:48:49]line ТРК (МРК, ГНК) : 44 [08:48:49]line Товар: 2710124500 [08:48:49]line Аи-95-К-5 [08:48:49]line 13.480 * 74.20 [08:48:49]line = 1000.22 [08:48:49]line НДС 12% НСП 1% [08:48:49]line > о реализуемом товаре [08:48:49]line ОКРУГЛЕНИЕ: -0.22 [08:48:49]line ИТОГО: 1000.00 [08:48:49]line Внесено: 1000.00 [08:48:49]line СДАЧА: 0.00 [08:48:49]line НСП 1% : 8.85 [08:48:49]line НДС 12% : 106.22 [08:48:49]line Наличными: 1000.00 [08:48:49]line Безнал.: 0.00 [08:48:49]line Место: АЗС № 133 "Партнер Нефть" [08:48:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:48:49]line СНО: Общий режим [08:48:49]line Чек 40 20.10.2024 08:48 [08:48:49]line Смена: 170 ФФД: 1.0 [08:48:49]line ЗНМ: 0300000020 [08:48:49]line РНМ: 0000000000161154 [08:48:49]line Версия ККМ: v1.0 [08:48:49]line ФМ: 0000000000963323 [08:48:49]line ФД: 73714 [08:48:49]line ФПД: 263670088190596 [08:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084848&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73714&fm=263670088190596&tin=02508201610067®Number=0000000000161154&sum=100000 [08:48:49]OFD Sender: Processing packet 73714 [packets to send 15, broken 14] [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00073714 [08:48:49]OFD Sender: To server: pG, [08:48:49]CommunicateWithHost lk.salyk.kg:30040 [08:48:49]ConnectInit lk.salyk.kg [08:48:49]written 0, free lines is 4095 [08:48:49]Connected sock=8 [08:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 24 04 07 01 28 F9 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 28 00 00 00 F4 03 04 00 F0 C3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 1F 01 00 35 04 06 00 EF CE 79 F1 CA 84 12 08 39 9D 39 F2 10 04 [08:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 04 B2 47 00 03 93 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 39 36 33 33 32 33 10 04 04 00 F2 1F 01 00 F4 03 04 00 D5 6C 14 67 B6 04 01 00 00 DB E9 AA 93 DF 26 35 E3 [08:48:49]CommunicateWithHost err = 0 [08:48:49]CheckOFDResponse [08:48:49]1017 (14) - 77093643461234 [08:48:49]1041 (16) - 0000000000963323 [08:48:49]1040 (4) - 73714 [08:48:49]1012 (4) - 20.10.2024 02:37 [08:48:49]1206 (1) - 0 [08:48:49]OFD Sender: Remove packet 73714 [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00073714 [08:48:49]NVStorageDeleteData [08:48:50]Write to MH i2c: 01 00 00 5C 03 5F [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 A6 0C 18 [08:48:50]RasterBufferAndPrint [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]written 0, free lines is 3242 [08:48:50]MH_Cut [08:48:50]Write to MH i2c: D1 01 00 63 03 01 38 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 01 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 01 00 63 03 00 37 [08:48:50]Write to MH i2c: 01 00 00 64 03 67 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]OFD Sender: No OFD packet to send [08:48:50]*** Cut start [08:48:50]*** Partial cut [08:48:50]*** CUTSNS_PIN = 1 [08:48:50]*** CUTSNS_PIN = 0 [08:48:51]*** Brake cut motor [08:48:51]Read from MH i2c: 01 [08:48:51]MH_I2C_Read... [08:48:51]*** Stop cut motor [08:48:51]*** Cut end [08:48:51]Read from MH i2c: 01 07 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [08:48:51]process_action close_receipt done [08:48:51]requested_data is exist [08:48:51]produce_requested_data [08:48:51]requested_item fm.sn is exist - process it [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 11 00 00 [08:48:51]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 17 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [08:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:48:51]wFMCommunicate OK [08:48:51]requested_item fd.num is exist - process it [08:48:51]SAM_PROTO_GetFieldsCounters [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 00 00 [08:48:51]Write to MH i2c: E2 08 00 66 03 80 13 00 00 00 00 00 00 E5 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 62 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 62 00 66 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F2 1F 01 00 0E 04 04 00 AA 00 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 2D [08:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F2 1F 01 00 0E 04 04 00 AA 00 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 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetFieldsCounters done [08:48:51]requested_item shift.num is exist - process it [08:48:51]requested_item shift.opened is exist - process it [08:48:51]req_shift_opened [08:48:51]FM_GetShiftState [08:48:51]SAM_PROTO_GetShiftState [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 01 00 [08:48:51]Write to MH i2c: E2 08 00 67 03 80 13 01 00 00 00 00 00 E7 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 67 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2C [08:48:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetShiftState done [08:48:51]FM_GetShiftState done [08:48:51]req_shift_opened done [08:48:51]requested_item shift.open_date is exist - process it [08:48:51]req_shift_open_date [08:48:51]req_shift_open_date done [08:48:51]produce_requested_data done [08:48:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73714,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:48:51]process_action_free close_receipt [08:48:51]json_value_free [08:48:51]json_value_free done [08:48:51]process_json_proto returns [08:48:51]Send response to host [08:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73714,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:48:51]free response buf [08:48:51]execute_script done [08:48:51]execute_script returns [08:48:51]free content buf [08:48:51]Sock 9.Close socket [08:48:51]Sock 9.Thread stoped [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:54]accept exits with 10 [08:51:54]New connection [08:51:54]New thread 3067432292 created [08:51:54]Thread 3067575652 joined [08:51:54]Waiting for new connection... [08:51:54] Sock 10.Parse request [08:51:54]Sock 10.Check first char [08:51:54]Sock 10.First char is OK [08:51:54]request: POST /json_proto HTTP/1.0 [08:51:54]Method: POST [08:51:54]URL: /json_proto [08:51:54]Method is POST - this is cgi request [08:51:54]url: /json_proto [08:51:54]query_string will be loaded in cgi processing [08:51:54]execute_cgi json_proto POST (null) [08:51:54]execute_cgi path=json_proto method=POST [08:51:54]POST find Content-Length [08:51:54]Host: 172.17.44.196:8080 [08:51:54]Content-Length: 623 [08:51:54]Content-Type: application/json [08:51:54] [08:51:54]POST finish read [08:51:54]Found Content-Length = 623 [08:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272738", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [08:51:54]execute_script... [08:51: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)272738", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [08:51:54]POST & json_proto [08:51:54]process_json_proto [08:51:54]json parsed OK: [08:51:54]protocol is kg_v1.0 [08:51:54]action value=close_receipt [08:51:54]process_action close_receipt [08:51:54]cmd_close_receipt [08:51:54]MH_GetDate [08:51:54]Write to MH i2c: F0 00 00 68 03 5A [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: F0 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: F0 09 00 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: F0 09 00 68 03 00 AA C4 14 67 E7 19 F8 65 A9 [08:51:54]GetLastDocTimeStamp 1729414128 [08:51:54]current date 1729414314 [08:51:54]FM_GetShiftState [08:51:54]SAM_PROTO_GetShiftState [08:51:54]wFMCommunicate request_size=4 [08:51:54]MH_SAM_APDU [08:51:54]CAPDU: 80 13 01 00 [08:51:54]Write to MH i2c: E2 08 00 69 03 80 13 01 00 00 00 00 00 E9 [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:54]Read from MH i2c: E2 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: E2 0E 00 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: E2 0E 00 69 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2E [08:51:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:51:54]wFMCommunicate OK [08:51:54]SAM_PROTO_GetShiftState done [08:51:54]FM_GetShiftState done [08:51:54]opened in 1729384303 [08:51:54]opened+sec_in_day 1729470703 [08:51:54]quantity*price = 14000 [08:51:54]sum+1 = 14001 [08:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 41 20.10.2024 08:51 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73715 ФПД: 191458928425465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085154&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73715&fm=191458928425465&tin=02508201610067®Number=0000000000161154&sum=14000 0 [08:51:55]StoreToDocumentArchive [08:51:55]shift 170 fd 73715 [08:51:55]save to /storage/0170/doc_00073715 [08:51:55]save last doc name /storage/0170/doc_00073715 to /storage/kkm_last_doc_name [08:51:55]save OK [08:51:55]Clear old archive folders... [08:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:51:55]tlvbuf is 003309A0 [08:51:55]SAM_PROTO_ClearQueue [08:51:55]wFMCommunicate request_size=4 [08:51:55]MH_SAM_APDU [08:51:55]CAPDU: 80 09 00 00 [08:51:55]Write to MH i2c: E2 08 00 76 03 80 09 00 00 00 00 00 00 EB [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:55]Read from MH i2c: E2 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [08:51:55]RAPDU: 90 00 [08:51:55]wFMCommunicate OK [08:51:55]SAM_PROTO_ClearQueue done [08:51:55]KKMCreateOFDPacket [08:51:55]OFDProtocolAddRootSTLVToBuf [08:51:55]FM_MakeSignedData [08:51:55]FM_MakeSignedData [08:51:55]SAM_PROTO_SignData [08:51:55]wFMCommunicate request_size=4 [08:51:55]MH_SAM_APDU [08:51:55]CAPDU: 80 0D 01 02 [08:51:55]Write to MH i2c: E2 08 00 77 03 80 0D 01 02 00 00 00 00 F3 [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:55]Read from MH i2c: E2 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 77 03 00 90 00 EE [08:51:55]RAPDU: 90 00 [08:51:55]wFMCommunicate OK [08:51:55]wFMCommunicate request_size=255 [08:51:55]MH_SAM_APDU [08:51:55]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 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 29 00 00 00 F4 03 04 00 AA C4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [08:51:55]Write to MH i2c: E2 02 01 78 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 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 29 00 00 00 F4 03 04 00 AA C4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 38 [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]OFD Sender: No OFD packet to send [08:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:55]Read from MH i2c: E2 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [08:51:55]RAPDU: 90 00 [08:51:55]wFMCommunicate OK [08:51:55]wFMCommunicate request_size=34 [08:51:55]MH_SAM_APDU [08:51:55]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 1F 01 00 35 04 06 00 AE 21 81 6A F9 F9 [08:51:55]Write to MH i2c: E2 25 00 79 03 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 1F 01 00 35 04 06 00 AE 21 81 6A F9 F9 00 00 70 [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:55]Read from MH i2c: E2 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [08:51:55]RAPDU: 90 00 [08:51:55]wFMCommunicate OK [08:51:55]wFMCommunicate request_size=4 [08:51:55]MH_SAM_APDU [08:51:55]CAPDU: 80 0D 03 02 [08:51:55]Write to MH i2c: E2 08 00 7A 03 80 0D 03 02 00 00 00 00 F8 [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:55]Read from MH i2c: E2 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 0B 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 0B 00 7A 03 00 47 AC C5 D4 9C 1D 04 AD 90 00 EF [08:51:55]RAPDU: 47 AC C5 D4 9C 1D 04 AD 90 00 [08:51:55]wFMCommunicate OK [08:51:55]SAM_PROTO_SignData done [08:51:55]FM_MakeSignedData done [08:51:55]CreateOFDProtocolMessage [08:51:55]wFMCommunicate request_size=4 [08:51:55]MH_SAM_APDU [08:51:55]CAPDU: 80 11 00 00 [08:51:55]Write to MH i2c: E2 08 00 7B 03 80 11 00 00 00 00 00 00 F8 [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:55]Read from MH i2c: E2 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 17 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: E2 17 00 7B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 45 [08:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:51:55]wFMCommunicate OK [08:51:55]CreateOFDProtocolMessage done [08:51:55]OFDSenderStorePacket 73715 [08:51:55]StoreOFDPacket docnum=73715 [08:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 85 D1 1F 01 F8 54 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 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 29 00 00 00 F4 03 04 00 AA C4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 1F 01 00 35 04 06 00 AE 21 81 6A F9 F9 47 AC C5 D4 9C 1D 04 AD [08:51:55]CheckFolder [08:51:55]dirname=/storage/ofd_packets [08:51:55]CheckFolder done [08:51:55]ProducePacketName [08:51:55]name=ofd_packets/00073715 [08:51:55]NVStorageSaveData ofd_packets/00073715 [08:51:55]File name is /storage/ofd_packets/00073715 [08:51:55]Write 325 bytes [08:51:55]NVStorageSaveData done [08:51:55]OFDSenderStorePacket done [08:51:55]KKMCreateOFDPacket done [08:51:55]NVStorageSaveData kkm_last_timestamp [08:51:55]File name is /storage/kkm_last_timestamp [08:51:55]Write 4 bytes [08:51:55]NVStorageSaveData done [08:51:55]ExternCall_PrintAddStr [08:51:55]wPrintStart [08:51:55]Write to MH i2c: 01 00 00 7C 03 7F [08:51:55]Write i2c OK [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: 01 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: 01 07 00 [08:51:55]MH_I2C_Read... [08:51:55]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 FF 0F 94 [08:51:55]RasterBufferAndPrint [08:51:55]line Счет N : (3)272738 [08:51:55]line ИНН: 02508201610067 [08:51:55]line Контрольно-Кассовый Чек [08:51:55]line ПРОДАЖА [08:51:55]line Товар: 48743587 [08:51:55]line Сигареты Winston XStyle Silver [08:51:55]line 1.000 * 140.00 [08:51:55]line = 140.00 [08:51:55]line НДС 12% НСП 1% [08:51:55]line > о реализуемом товаре [08:51:55]line ИТОГО: 140.00 [08:51:55]line НСП 1% : 1.24 [08:51:55]line НДС 12% : 14.87 [08:51:55]line Наличными: 140.00 [08:51:55]line Безнал.: 0.00 [08:51:55]line Место: АЗС № 133 "Партнер Нефть" [08:51:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:51:55]line СНО: Общий режим [08:51:55]line Чек 41 20.10.2024 08:51 [08:51:55]line Смена: 170 ФФД: 1.0 [08:51:55]line ЗНМ: 0300000020 [08:51:55]line РНМ: 0000000000161154 [08:51:55]line Версия ККМ: v1.0 [08:51:55]line ФМ: 0000000000963323 [08:51:55]line ФД: 73715 [08:51:55]line ФПД: 191458928425465 [08:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085154&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73715&fm=191458928425465&tin=02508201610067®Number=0000000000161154&sum=14000 [08:51:56]line 0 [08:51:56]OFD Sender: Processing packet 73715 [packets to send 15, broken 14] [08:51:56]ProducePacketName [08:51:56]name=ofd_packets/00073715 [08:51:56]OFD Sender: To server: pG, [08:51:56]CommunicateWithHost lk.salyk.kg:30040 [08:51:56]ConnectInit lk.salyk.kg [08:51:56]written 0, free lines is 4095 [08:51:56]Connected sock=9 [08:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 85 D1 1F 01 F8 54 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 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 29 00 00 00 F4 03 04 00 AA C4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 1F 01 00 35 04 06 00 AE 21 81 6A F9 F9 47 AC C5 D4 9C 1D 04 AD [08:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B7 6B 47 00 60 C3 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 39 36 33 33 32 33 10 04 04 00 F3 1F 01 00 F4 03 04 00 90 6D 14 67 B6 04 01 00 00 C4 F7 EE 7C 83 C2 98 A1 [08:51:56]CommunicateWithHost err = 0 [08:51:56]CheckOFDResponse [08:51:56]1017 (14) - 77093643461234 [08:51:56]1041 (16) - 0000000000963323 [08:51:56]1040 (4) - 73715 [08:51:56]1012 (4) - 20.10.2024 02:40 [08:51:56]1206 (1) - 0 [08:51:56]OFD Sender: Remove packet 73715 [08:51:56]ProducePacketName [08:51:56]name=ofd_packets/00073715 [08:51:56]NVStorageDeleteData [08:51:56]Write to MH i2c: 01 00 00 A4 03 A7 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 07 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 CC 0C 86 [08:51:56]RasterBufferAndPrint [08:51:56]line [08:51:56]line [08:51:56]line [08:51:56]line [08:51:56]line [08:51:56]written 0, free lines is 3280 [08:51:56]MH_Cut [08:51:56]Write to MH i2c: D1 01 00 AB 03 01 80 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: D1 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: D1 01 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: D1 01 00 AB 03 00 7F [08:51:56]Write to MH i2c: 01 00 00 AC 03 AF [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:57]OFD Sender: No OFD packet to send [08:51:57]*** Cut start [08:51:57]*** Partial cut [08:51:57]*** CUTSNS_PIN = 1 [08:51:57]*** CUTSNS_PIN = 0 [08:51:57]*** Brake cut motor [08:51:58]Read from MH i2c: 01 [08:51:58]MH_I2C_Read... [08:51:58]*** Stop cut motor [08:51:58]*** Cut end [08:51:58]Read from MH i2c: 01 07 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [08:51:58]process_action close_receipt done [08:51:58]requested_data is exist [08:51:58]produce_requested_data [08:51:58]requested_item fm.sn is exist - process it [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 11 00 00 [08:51:58]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 17 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 77 [08:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:51:58]wFMCommunicate OK [08:51:58]requested_item fd.num is exist - process it [08:51:58]SAM_PROTO_GetFieldsCounters [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 13 00 00 [08:51:58]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 62 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F3 1F 01 00 0E 04 04 00 AA 00 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 79 [08:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F3 1F 01 00 0E 04 04 00 AA 00 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 [08:51:58]wFMCommunicate OK [08:51:58]SAM_PROTO_GetFieldsCounters done [08:51:58]requested_item shift.num is exist - process it [08:51:58]requested_item shift.opened is exist - process it [08:51:58]req_shift_opened [08:51:58]FM_GetShiftState [08:51:58]SAM_PROTO_GetShiftState [08:51:58]wFMCommunicate request_size=4 [08:51:58]MH_SAM_APDU [08:51:58]CAPDU: 80 13 01 00 [08:51:58]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:58]Read from MH i2c: E2 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 0E 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 74 [08:51:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:51:58]wFMCommunicate OK [08:51:58]SAM_PROTO_GetShiftState done [08:51:58]FM_GetShiftState done [08:51:58]req_shift_opened done [08:51:58]requested_item shift.open_date is exist - process it [08:51:58]req_shift_open_date [08:51:58]req_shift_open_date done [08:51:58]produce_requested_data done [08:51:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73715,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:51:58]process_action_free close_receipt [08:51:58]json_value_free [08:51:58]json_value_free done [08:51:58]process_json_proto returns [08:51:58]Send response to host [08:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73715,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:51:58]free response buf [08:51:58]execute_script done [08:51:58]execute_script returns [08:51:58]free content buf [08:51:58]Sock 10.Close socket [08:51:58]Sock 10.Thread stoped [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:10]accept exits with 8 [08:56:10]New connection [08:56:10]New thread 3067575652 created [08:56:10]Thread 3067432292 joined [08:56:10]Waiting for new connection... [08:56:10] Sock 8.Parse request [08:56:10]Sock 8.Check first char [08:56:10]Sock 8.First char is OK [08:56:10]request: POST /json_proto HTTP/1.0 [08:56:10]Method: POST [08:56:10]URL: /json_proto [08:56:10]Method is POST - this is cgi request [08:56:10]url: /json_proto [08:56:10]query_string will be loaded in cgi processing [08:56:10]execute_cgi json_proto POST (null) [08:56:10]execute_cgi path=json_proto method=POST [08:56:10]POST find Content-Length [08:56:10]Host: 172.17.44.196:8080 [08:56:10]Content-Length: 645 [08:56:10]Content-Type: application/json [08:56:10] [08:56:10]POST finish read [08:56:10]Found Content-Length = 645 [08:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272739", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:10]execute_script... [08:56: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)272739", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:10]POST & json_proto [08:56:10]process_json_proto [08:56:10]json parsed OK: [08:56:10]protocol is kg_v1.0 [08:56:10]action value=close_receipt [08:56:10]process_action close_receipt [08:56:10]cmd_close_receipt [08:56:10]MH_GetDate [08:56:10]Write to MH i2c: F0 00 00 B0 03 A2 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: F0 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: F0 09 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: F0 09 00 B0 03 00 AB C5 14 67 E7 19 F8 65 F3 [08:56:10]GetLastDocTimeStamp 1729414314 [08:56:10]current date 1729414571 [08:56:10]FM_GetShiftState [08:56:10]SAM_PROTO_GetShiftState [08:56:10]wFMCommunicate request_size=4 [08:56:10]MH_SAM_APDU [08:56:10]CAPDU: 80 13 01 00 [08:56:10]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 0E 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 76 [08:56:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:56:10]wFMCommunicate OK [08:56:10]SAM_PROTO_GetShiftState done [08:56:10]FM_GetShiftState done [08:56:10]opened in 1729384303 [08:56:10]opened+sec_in_day 1729470703 [08:56:10]quantity*price = 6500 [08:56:10]sum+1 = 6501 [08:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 42 20.10.2024 08:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73716 ФПД: 105358678431618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085611&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73716&fm=105358678431618&tin=02508201610067®Number=0000000000161154&sum=6500 0 [08:56:11]StoreToDocumentArchive [08:56:11]shift 170 fd 73716 [08:56:11]save to /storage/0170/doc_00073716 [08:56:11]save last doc name /storage/0170/doc_00073716 to /storage/kkm_last_doc_name [08:56:11]save OK [08:56:11]Clear old archive folders... [08:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:56:11]tlvbuf is 0032C2B0 [08:56:11]SAM_PROTO_ClearQueue [08:56:11]wFMCommunicate request_size=4 [08:56:11]MH_SAM_APDU [08:56:11]CAPDU: 80 09 00 00 [08:56:11]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:11]Read from MH i2c: E2 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: E2 03 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [08:56:11]RAPDU: 90 00 [08:56:11]wFMCommunicate OK [08:56:11]SAM_PROTO_ClearQueue done [08:56:11]KKMCreateOFDPacket [08:56:11]OFDProtocolAddRootSTLVToBuf [08:56:11]FM_MakeSignedData [08:56:11]FM_MakeSignedData [08:56:11]SAM_PROTO_SignData [08:56:11]wFMCommunicate request_size=4 [08:56:11]MH_SAM_APDU [08:56:11]CAPDU: 80 0D 01 02 [08:56:11]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:11]Read from MH i2c: E2 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: E2 03 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [08:56:11]RAPDU: 90 00 [08:56:11]wFMCommunicate OK [08:56:11]wFMCommunicate request_size=255 [08:56:11]MH_SAM_APDU [08:56:11]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 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 AB C5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [08:56:11]Write to MH i2c: E2 02 01 C0 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 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 AB C5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 3F [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:11]Read from MH i2c: E2 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: E2 03 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [08:56:11]RAPDU: 90 00 [08:56:11]wFMCommunicate OK [08:56:11]wFMCommunicate request_size=31 [08:56:11]MH_SAM_APDU [08:56:11]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 F4 1F 01 00 35 04 06 00 5F D2 BA 9A 17 82 [08:56:11]Write to MH i2c: E2 22 00 C1 03 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 F4 1F 01 00 35 04 06 00 5F D2 BA 9A 17 82 00 00 95 [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 03 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [08:56:12]RAPDU: 90 00 [08:56:12]wFMCommunicate OK [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 0D 03 02 [08:56:12]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0B 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0B 00 C2 03 00 C8 FC 89 D4 10 B8 24 0F 90 00 5D [08:56:12]RAPDU: C8 FC 89 D4 10 B8 24 0F 90 00 [08:56:12]wFMCommunicate OK [08:56:12]SAM_PROTO_SignData done [08:56:12]FM_MakeSignedData done [08:56:12]CreateOFDProtocolMessage [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 11 00 00 [08:56:12]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 17 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8D [08:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:56:12]wFMCommunicate OK [08:56:12]CreateOFDProtocolMessage done [08:56:12]OFDSenderStorePacket 73716 [08:56:12]StoreOFDPacket docnum=73716 [08:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 79 2B 1C 01 BF 9A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 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 AB C5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 1F 01 00 35 04 06 00 5F D2 BA 9A 17 82 C8 FC 89 D4 10 B8 24 0F [08:56:12]CheckFolder [08:56:12]dirname=/storage/ofd_packets [08:56:12]CheckFolder done [08:56:12]ProducePacketName [08:56:12]name=ofd_packets/00073716 [08:56:12]NVStorageSaveData ofd_packets/00073716 [08:56:12]File name is /storage/ofd_packets/00073716 [08:56:12]Write 322 bytes [08:56:12]NVStorageSaveData done [08:56:12]OFDSenderStorePacket done [08:56:12]KKMCreateOFDPacket done [08:56:12]NVStorageSaveData kkm_last_timestamp [08:56:12]File name is /storage/kkm_last_timestamp [08:56:12]Write 4 bytes [08:56:12]NVStorageSaveData done [08:56:12]ExternCall_PrintAddStr [08:56:12]wPrintStart [08:56:12]Write to MH i2c: 01 00 00 C4 03 C7 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 07 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [08:56:12]RasterBufferAndPrint [08:56:12]line Счет N : (3)272739 [08:56:12]line ИНН: 02508201610067 [08:56:12]line Контрольно-Кассовый Чек [08:56:12]line ПРОДАЖА [08:56:12]line Товар: 47011656 [08:56:12]line Водка Пшеничная 0,1л [08:56:12]line 1.000 * 65.00 [08:56:12]line = 65.00 [08:56:12]line НДС 12% НСП 1% [08:56:12]line > о реализуемом товаре [08:56:12]line ИТОГО: 65.00 [08:56:12]line НСП 1% : 0.57 [08:56:12]line НДС 12% : 6.90 [08:56:12]line Наличными: 65.00 [08:56:12]line Безнал.: 0.00 [08:56:12]line Место: АЗС № 133 "Партнер Нефть" [08:56:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:56:12]line СНО: Общий режим [08:56:12]line Чек 42 20.10.2024 08:56 [08:56:12]line Смена: 170 ФФД: 1.0 [08:56:12]line ЗНМ: 0300000020 [08:56:12]line РНМ: 0000000000161154 [08:56:12]line Версия ККМ: v1.0 [08:56:12]line ФМ: 0000000000963323 [08:56:12]line ФД: 73716 [08:56:12]line ФПД: 105358678431618 [08:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085611&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73716&fm=105358678431618&tin=02508201610067®Number=0000000000161154&sum=6500 [08:56:12]line 0 [08:56:12]OFD Sender: Processing packet 73716 [packets to send 15, broken 14] [08:56:12]ProducePacketName [08:56:12]name=ofd_packets/00073716 [08:56:12]OFD Sender: To server: pG, [08:56:12]CommunicateWithHost lk.salyk.kg:30040 [08:56:12]ConnectInit lk.salyk.kg [08:56:12]written 0, free lines is 4095 [08:56:12]Connected sock=10 [08:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 79 2B 1C 01 BF 9A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 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 AB C5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 1F 01 00 35 04 06 00 5F D2 BA 9A 17 82 C8 FC 89 D4 10 B8 24 0F [08:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B5 F0 47 00 20 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 39 36 33 33 32 33 10 04 04 00 F4 1F 01 00 F4 03 04 00 90 6E 14 67 B6 04 01 00 00 C3 0C 85 69 EA BB 28 8A [08:56:12]CommunicateWithHost err = 0 [08:56:12]CheckOFDResponse [08:56:12]1017 (14) - 77093643461234 [08:56:12]1041 (16) - 0000000000963323 [08:56:12]1040 (4) - 73716 [08:56:12]1012 (4) - 20.10.2024 02:44 [08:56:12]1206 (1) - 0 [08:56:12]OFD Sender: Remove packet 73716 [08:56:12]ProducePacketName [08:56:12]name=ofd_packets/00073716 [08:56:12]NVStorageDeleteData [08:56:12]Write to MH i2c: 01 00 00 EB 03 EE [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 07 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 D2 0C D3 [08:56:12]RasterBufferAndPrint [08:56:12]line [08:56:12]line [08:56:12]line [08:56:12]line [08:56:12]line [08:56:12]written 0, free lines is 3286 [08:56:12]MH_Cut [08:56:12]Write to MH i2c: D1 01 00 F2 03 01 C7 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: D1 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: D1 01 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: D1 01 00 F2 03 00 C6 [08:56:12]Write to MH i2c: 01 00 00 F3 03 F6 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:13]OFD Sender: No OFD packet to send [08:56:13]*** Cut start [08:56:13]*** Partial cut [08:56:13]*** CUTSNS_PIN = 1 [08:56:13]*** CUTSNS_PIN = 0 [08:56:13]*** Brake cut motor [08:56:14]Read from MH i2c: 01 [08:56:14]MH_I2C_Read... [08:56:14]*** Stop cut motor [08:56:14]*** Cut end [08:56:14]Read from MH i2c: 01 07 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 FF 0F 0B [08:56:14]process_action close_receipt done [08:56:14]requested_data is exist [08:56:14]produce_requested_data [08:56:14]requested_item fm.sn is exist - process it [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 11 00 00 [08:56:14]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BE [08:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:56:14]wFMCommunicate OK [08:56:14]requested_item fd.num is exist - process it [08:56:14]SAM_PROTO_GetFieldsCounters [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 13 00 00 [08:56:14]Write to MH i2c: E2 08 00 F5 03 80 13 00 00 00 00 00 00 74 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 62 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 62 00 F5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F4 1F 01 00 0E 04 04 00 AA 00 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 C4 [08:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F4 1F 01 00 0E 04 04 00 AA 00 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 [08:56:14]wFMCommunicate OK [08:56:14]SAM_PROTO_GetFieldsCounters done [08:56:14]requested_item shift.num is exist - process it [08:56:14]requested_item shift.opened is exist - process it [08:56:14]req_shift_opened [08:56:14]FM_GetShiftState [08:56:14]SAM_PROTO_GetShiftState [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 13 01 00 [08:56:14]Write to MH i2c: E2 08 00 F6 03 80 13 01 00 00 00 00 00 76 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 0E 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 0E 00 F6 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [08:56:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [08:56:14]wFMCommunicate OK [08:56:14]SAM_PROTO_GetShiftState done [08:56:14]FM_GetShiftState done [08:56:14]req_shift_opened done [08:56:14]requested_item shift.open_date is exist - process it [08:56:14]req_shift_open_date [08:56:14]req_shift_open_date done [08:56:14]produce_requested_data done [08:56:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73716,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [08:56:14]process_action_free close_receipt [08:56:14]json_value_free [08:56:14]json_value_free done [08:56:14]process_json_proto returns [08:56:14]Send response to host [08:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73716,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [08:56:14]free response buf [08:56:14]execute_script done [08:56:14]execute_script returns [08:56:14]free content buf [08:56:14]Sock 8.Close socket [08:56:14]Sock 8.Thread stoped [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]accept exits with 9 [09:04:03]New connection [09:04:03]New thread 3067432292 created [09:04:03]Thread 3067575652 joined [09:04:03]Waiting for new connection... [09:04:03] Sock 9.Parse request [09:04:03]Sock 9.Check first char [09:04:03]Sock 9.First char is OK [09:04:03]request: POST /json_proto HTTP/1.0 [09:04:03]Method: POST [09:04:03]URL: /json_proto [09:04:03]Method is POST - this is cgi request [09:04:03]url: /json_proto [09:04:03]query_string will be loaded in cgi processing [09:04:03]execute_cgi json_proto POST (null) [09:04:03]execute_cgi path=json_proto method=POST [09:04:03]POST find Content-Length [09:04:03]Host: 172.17.44.196:8080 [09:04:03]Content-Length: 773 [09:04:03]Content-Type: application/json [09:04:03] [09:04:03]POST finish read [09:04:03]Found Content-Length = 773 [09:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272740", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:03]execute_script... [09:04: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)272740", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:03]POST & json_proto [09:04:03]process_json_proto [09:04:03]json parsed OK: [09:04:03]protocol is kg_v1.0 [09:04:03]action value=close_receipt [09:04:03]process_action close_receipt [09:04:03]cmd_close_receipt [09:04:03]MH_GetDate [09:04:03]Write to MH i2c: F0 00 00 F7 03 E9 [09:04:03]Write i2c OK [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: F0 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: F0 09 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: F0 09 00 F7 03 00 83 C7 14 67 E7 19 F8 65 14 [09:04:03]GetLastDocTimeStamp 1729414571 [09:04:03]current date 1729415043 [09:04:03]FM_GetShiftState [09:04:03]SAM_PROTO_GetShiftState [09:04:03]wFMCommunicate request_size=4 [09:04:03]MH_SAM_APDU [09:04:03]CAPDU: 80 13 01 00 [09:04:03]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [09:04:03]Write i2c OK [09:04:03]MH_I2C_Read... [09:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:03]Read from MH i2c: E2 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 0E 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BD [09:04:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:04:03]wFMCommunicate OK [09:04:03]SAM_PROTO_GetShiftState done [09:04:03]FM_GetShiftState done [09:04:03]opened in 1729384303 [09:04:03]opened+sec_in_day 1729470703 [09:04:03]quantity*price = 13000 [09:04:03]sum+1 = 13001 [09:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 43 20.10.2024 09:04 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73717 ФПД: 70644811698081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090404&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73717&fm=70644811698081&tin=02508201610067®Number=0000000000161154&sum=13000 0 [09:04:04]StoreToDocumentArchive [09:04:04]shift 170 fd 73717 [09:04:04]save to /storage/0170/doc_00073717 [09:04:04]save last doc name /storage/0170/doc_00073717 to /storage/kkm_last_doc_name [09:04:04]save OK [09:04:04]Clear old archive folders... [09:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:04:04]tlvbuf is 00395E70 [09:04:04]SAM_PROTO_ClearQueue [09:04:04]wFMCommunicate request_size=4 [09:04:04]MH_SAM_APDU [09:04:04]CAPDU: 80 09 00 00 [09:04:04]Write to MH i2c: E2 08 00 05 04 80 09 00 00 00 00 00 00 7B [09:04:04]Write i2c OK [09:04:04]MH_I2C_Read... [09:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:04]Read from MH i2c: E2 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [09:04:04]RAPDU: 90 00 [09:04:04]wFMCommunicate OK [09:04:04]SAM_PROTO_ClearQueue done [09:04:04]KKMCreateOFDPacket [09:04:04]OFDProtocolAddRootSTLVToBuf [09:04:04]FM_MakeSignedData [09:04:04]FM_MakeSignedData [09:04:04]SAM_PROTO_SignData [09:04:04]wFMCommunicate request_size=4 [09:04:04]MH_SAM_APDU [09:04:04]CAPDU: 80 0D 01 02 [09:04:04]Write to MH i2c: E2 08 00 06 04 80 0D 01 02 00 00 00 00 83 [09:04:04]Write i2c OK [09:04:04]MH_I2C_Read... [09:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:04]Read from MH i2c: E2 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [09:04:04]RAPDU: 90 00 [09:04:04]wFMCommunicate OK [09:04:04]wFMCommunicate request_size=255 [09:04:04]MH_SAM_APDU [09:04:04]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 2B 00 00 00 F4 03 04 00 84 C7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [09:04:04]Write to MH i2c: E2 02 01 07 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 2B 00 00 00 F4 03 04 00 84 C7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 26 [09:04:04]Write i2c OK [09:04:04]MH_I2C_Read... [09:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:04]Read from MH i2c: E2 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [09:04:04]RAPDU: 90 00 [09:04:04]wFMCommunicate OK [09:04:04]wFMCommunicate request_size=41 [09:04:04]MH_SAM_APDU [09:04:04]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 1F 01 00 35 04 06 00 40 40 46 E8 0F A1 [09:04:04]Write to MH i2c: E2 2C 00 08 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 1F 01 00 35 04 06 00 40 40 46 E8 0F A1 00 00 C2 [09:04:04]Write i2c OK [09:04:04]MH_I2C_Read... [09:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:04]Read from MH i2c: E2 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [09:04:04]RAPDU: 90 00 [09:04:04]wFMCommunicate OK [09:04:04]wFMCommunicate request_size=4 [09:04:04]MH_SAM_APDU [09:04:04]CAPDU: 80 0D 03 02 [09:04:04]Write to MH i2c: E2 08 00 09 04 80 0D 03 02 00 00 00 00 88 [09:04:04]Write i2c OK [09:04:04]MH_I2C_Read... [09:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:04]Read from MH i2c: E2 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 0B 00 [09:04:04]MH_I2C_Read... [09:04:04]Read from MH i2c: E2 0B 00 09 04 00 64 59 09 07 D8 EE 2B 8C 90 00 D3 [09:04:04]RAPDU: 64 59 09 07 D8 EE 2B 8C 90 00 [09:04:04]wFMCommunicate OK [09:04:04]SAM_PROTO_SignData done [09:04:04]FM_MakeSignedData done [09:04:04]CreateOFDProtocolMessage [09:04:04]wFMCommunicate request_size=4 [09:04:04]MH_SAM_APDU [09:04:04]CAPDU: 80 11 00 00 [09:04:04]Write to MH i2c: E2 08 00 0A 04 80 11 00 00 00 00 00 00 88 [09:04:04]Write i2c OK [09:04:04]MH_I2C_Read... [09:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:05]Read from MH i2c: E2 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: E2 17 00 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: E2 17 00 0A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D5 [09:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:04:05]wFMCommunicate OK [09:04:05]CreateOFDProtocolMessage done [09:04:05]OFDSenderStorePacket 73717 [09:04:05]StoreOFDPacket docnum=73717 [09:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 D5 55 26 01 F3 ED 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 2B 00 00 00 F4 03 04 00 84 C7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 1F 01 00 35 04 06 00 40 40 46 E8 0F A1 64 59 09 07 D8 EE 2B 8C [09:04:05]CheckFolder [09:04:05]dirname=/storage/ofd_packets [09:04:05]CheckFolder done [09:04:05]ProducePacketName [09:04:05]name=ofd_packets/00073717 [09:04:05]NVStorageSaveData ofd_packets/00073717 [09:04:05]File name is /storage/ofd_packets/00073717 [09:04:05]Write 332 bytes [09:04:05]NVStorageSaveData done [09:04:05]OFDSenderStorePacket done [09:04:05]KKMCreateOFDPacket done [09:04:05]NVStorageSaveData kkm_last_timestamp [09:04:05]File name is /storage/kkm_last_timestamp [09:04:05]Write 4 bytes [09:04:05]NVStorageSaveData done [09:04:05]ExternCall_PrintAddStr [09:04:05]wPrintStart [09:04:05]Write to MH i2c: 01 00 00 0B 04 0F [09:04:05]Write i2c OK [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: 01 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: 01 07 00 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 FF 0F 24 [09:04:05]RasterBufferAndPrint [09:04:05]line Счет N : (3)272740 [09:04:05]line ИНН: 02508201610067 [09:04:05]line Контрольно-Кассовый Чек [09:04:05]line ПРОДАЖА [09:04:05]line Товар: 2000036220012 [09:04:05]line Кофе Капучино XL(GABB TRADE) [09:04:05]line 1.000 * 130.00 [09:04:05]line = 130.00 [09:04:05]line НДС 12% НСП 1% [09:04:05]line > о реализуемом товаре [09:04:05]line ИТОГО: 130.00 [09:04:05]line НСП 1% : 1.15 [09:04:05]line НДС 12% : 13.80 [09:04:05]line Наличными: 0.00 [09:04:05]line Безнал.: 130.00 [09:04:05]line Место: АЗС № 133 "Партнер Нефть" [09:04:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:04:05]line СНО: Общий режим [09:04:05]line Чек 43 20.10.2024 09:04 [09:04:05]line Смена: 170 ФФД: 1.0 [09:04:05]line ЗНМ: 0300000020 [09:04:05]line РНМ: 0000000000161154 [09:04:05]line Версия ККМ: v1.0 [09:04:05]line Платежная система: Mbank [09:04:05]line ФМ: 0000000000963323 [09:04:05]line ФД: 73717 [09:04:05]line ФПД: 70644811698081 [09:04:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090404&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73717&fm=70644811698081&tin=02508201610067®Number=0000000000161154&sum=13000 [09:04:05]line 0 [09:04:05]OFD Sender: Processing packet 73717 [packets to send 15, broken 14] [09:04:05]ProducePacketName [09:04:05]name=ofd_packets/00073717 [09:04:05]OFD Sender: To server: pG, [09:04:05]CommunicateWithHost lk.salyk.kg:30040 [09:04:05]ConnectInit lk.salyk.kg [09:04:05]written 0, free lines is 4095 [09:04:05]Connected sock=10 [09:04:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 D5 55 26 01 F3 ED 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 2B 00 00 00 F4 03 04 00 84 C7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 1F 01 00 35 04 06 00 40 40 46 E8 0F A1 64 59 09 07 D8 EE 2B 8C [09:04:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 47 6D 47 00 C8 CA 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 39 36 33 33 32 33 10 04 04 00 F5 1F 01 00 F4 03 04 00 69 70 14 67 B6 04 01 00 00 DB 7D 2F F4 66 18 2D DD [09:04:05]CommunicateWithHost err = 0 [09:04:05]CheckOFDResponse [09:04:05]1017 (14) - 77093643461234 [09:04:05]1041 (16) - 0000000000963323 [09:04:05]1040 (4) - 73717 [09:04:05]1012 (4) - 20.10.2024 02:52 [09:04:05]1206 (1) - 0 [09:04:05]OFD Sender: Remove packet 73717 [09:04:05]ProducePacketName [09:04:05]name=ofd_packets/00073717 [09:04:05]NVStorageDeleteData [09:04:05]Write to MH i2c: 01 00 00 34 04 38 [09:04:05]Write i2c OK [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: 01 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: 01 07 00 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 B5 0C 00 [09:04:05]RasterBufferAndPrint [09:04:05]line [09:04:05]line [09:04:05]line [09:04:05]line [09:04:05]line [09:04:05]written 0, free lines is 3258 [09:04:05]MH_Cut [09:04:05]Write to MH i2c: D1 01 00 3B 04 01 11 [09:04:05]Write i2c OK [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: D1 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: D1 01 00 [09:04:05]MH_I2C_Read... [09:04:05]Read from MH i2c: D1 01 00 3B 04 00 10 [09:04:05]Write to MH i2c: 01 00 00 3C 04 40 [09:04:05]Write i2c OK [09:04:05]MH_I2C_Read... [09:04:06]OFD Sender: No OFD packet to send [09:04:06]*** Cut start [09:04:06]*** Partial cut [09:04:06]*** CUTSNS_PIN = 1 [09:04:06]*** CUTSNS_PIN = 0 [09:04:06]*** Brake cut motor [09:04:07]Read from MH i2c: 01 [09:04:07]MH_I2C_Read... [09:04:07]*** Stop cut motor [09:04:07]*** Cut end [09:04:07]Read from MH i2c: 01 07 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [09:04:07]process_action close_receipt done [09:04:07]requested_data is exist [09:04:07]produce_requested_data [09:04:07]requested_item fm.sn is exist - process it [09:04:07]wFMCommunicate request_size=4 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 11 00 00 [09:04:07]Write to MH i2c: E2 08 00 3D 04 80 11 00 00 00 00 00 00 BB [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 17 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 17 00 3D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 08 [09:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:04:07]wFMCommunicate OK [09:04:07]requested_item fd.num is exist - process it [09:04:07]SAM_PROTO_GetFieldsCounters [09:04:07]wFMCommunicate request_size=4 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 13 00 00 [09:04:07]Write to MH i2c: E2 08 00 3E 04 80 13 00 00 00 00 00 00 BE [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 62 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 62 00 3E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F5 1F 01 00 0E 04 04 00 AA 00 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 [09:04:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F5 1F 01 00 0E 04 04 00 AA 00 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 [09:04:07]wFMCommunicate OK [09:04:07]SAM_PROTO_GetFieldsCounters done [09:04:07]requested_item shift.num is exist - process it [09:04:07]requested_item shift.opened is exist - process it [09:04:07]req_shift_opened [09:04:07]FM_GetShiftState [09:04:07]SAM_PROTO_GetShiftState [09:04:07]wFMCommunicate request_size=4 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 13 01 00 [09:04:07]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 0E 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 05 [09:04:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:04:07]wFMCommunicate OK [09:04:07]SAM_PROTO_GetShiftState done [09:04:07]FM_GetShiftState done [09:04:07]req_shift_opened done [09:04:07]requested_item shift.open_date is exist - process it [09:04:07]req_shift_open_date [09:04:07]req_shift_open_date done [09:04:07]produce_requested_data done [09:04:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73717,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:04:07]process_action_free close_receipt [09:04:07]json_value_free [09:04:07]json_value_free done [09:04:07]process_json_proto returns [09:04:07]Send response to host [09:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73717,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:04:07]free response buf [09:04:07]execute_script done [09:04:07]execute_script returns [09:04:07]free content buf [09:04:07]Sock 9.Close socket [09:04:07]Sock 9.Thread stoped [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:50]int [09:05:50]Write to MH i2c: 01 00 00 40 04 44 [09:05:50]*** FLAG_PRN_PAP1 set [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 40 04 00 01 00 00 00 FF 0F 5A [09:05:50]state=0 [09:05:50]No paper [09:05:50]int [09:05:50]Write to MH i2c: 01 00 00 41 04 45 [09:05:50]*** FLAG_PRN_PAP1 reset [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 41 04 00 00 00 00 00 FF 0F 5A [09:05:50]state=0 [09:05:50]int [09:05:50]Write to MH i2c: 01 00 00 42 04 46 [09:05:50]*** FLAG_PRN_PAP1 set [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 42 04 00 01 00 00 00 FF 0F 5C [09:05:50]state=0 [09:05:50]No paper [09:05:50]int [09:05:50]Write to MH i2c: 01 00 00 43 04 47 [09:05:50]*** FLAG_PRN_PAP2 set [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 43 04 00 03 00 00 00 FF 0F 5F [09:05:50]state=0 [09:05:50]No paper [09:05:50]Cover opened [09:05:51]OFD Sender: No OFD packet to send [09:05:54]int [09:05:54]Write to MH i2c: 01 00 00 44 04 48 [09:05:54]Write i2c OK [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 [09:05:54]MH_I2C_Read... [09:05:54]*** FLAG_PRN_PAP2 reset [09:05:54]*** FLAG_PRN_PAP1 reset [09:05:54]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [09:05:54]state=3 [09:05:54]Cover closed [09:05:54]int [09:05:54]Write to MH i2c: 01 00 00 45 04 49 [09:05:54]Write i2c OK [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 [09:05:54]MH_I2C_Read... [09:05:54]*** FLAG_PRN_PAP1 set [09:05:54]*** FLAG_PRN_PAP1 reset [09:05:54]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [09:05:54]state=0 [09:05:54]int [09:05:54]Write to MH i2c: 01 00 00 46 04 4A [09:05:54]*** FLAG_PRN_KEY set [09:05:54]Write i2c OK [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 46 04 00 08 00 00 00 FF 0F 67 [09:05:54]state=0 [09:05:54]Key pressed [09:05:54]Feed [09:05:54]Write to MH i2c: D8 00 00 47 04 22 [09:05:54]Write i2c OK [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: D8 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: D8 01 00 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: D8 01 00 47 04 00 23 [09:05:54]int [09:05:54]Write to MH i2c: 01 00 00 48 04 4C [09:05:54]Write i2c OK [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 [09:05:54]MH_I2C_Read... [09:05:54]Read from MH i2c: 01 07 00 48 04 00 48 00 00 00 3C 00 D7 [09:05:54]state=2 [09:05:54]Key pressed [09:05:55]int [09:05:55]Write to MH i2c: 01 00 00 49 04 4D [09:05:55]*** FLAG_PRN_KEY reset [09:05:55]Write i2c OK [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: 01 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: 01 07 00 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 F6 0F 59 [09:05:55]state=2 [09:05:55]Stop feed [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:47]accept exits with 8 [09:06:47]New connection [09:06:47]New thread 3067575652 created [09:06:47]Thread 3067432292 joined [09:06:47]Waiting for new connection... [09:06:47] Sock 8.Parse request [09:06:47]Sock 8.Check first char [09:06:47]Sock 8.First char is OK [09:06:47]request: POST /json_proto HTTP/1.0 [09:06:47]Method: POST [09:06:47]URL: /json_proto [09:06:47]Method is POST - this is cgi request [09:06:47]url: /json_proto [09:06:47]query_string will be loaded in cgi processing [09:06:47]execute_cgi json_proto POST (null) [09:06:47]execute_cgi path=json_proto method=POST [09:06:47]POST find Content-Length [09:06:47]Host: 172.17.44.196:8080 [09:06:47]Content-Length: 683 [09:06:47]Content-Type: application/json [09:06:47] [09:06:47]POST finish read [09:06:47]Found Content-Length = 683 [09:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962718", "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" : 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" ] } } [09:06:47]execute_script... [09:06: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 : (1)1962718", "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" : 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" ] } } [09:06:47]POST & json_proto [09:06:47]process_json_proto [09:06:47]json parsed OK: [09:06:47]protocol is kg_v1.0 [09:06:47]action value=close_receipt [09:06:47]process_action close_receipt [09:06:47]cmd_close_receipt [09:06:47]MH_GetDate [09:06:47]Write to MH i2c: F0 00 00 4A 04 3D [09:06:47]Write i2c OK [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: F0 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: F0 09 00 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: F0 09 00 4A 04 00 28 C8 14 67 E7 19 F8 65 0E [09:06:47]GetLastDocTimeStamp 1729415044 [09:06:47]current date 1729415208 [09:06:47]FM_GetShiftState [09:06:47]SAM_PROTO_GetShiftState [09:06:47]wFMCommunicate request_size=4 [09:06:47]MH_SAM_APDU [09:06:47]CAPDU: 80 13 01 00 [09:06:47]Write to MH i2c: E2 08 00 4B 04 80 13 01 00 00 00 00 00 CC [09:06:47]Write i2c OK [09:06:47]MH_I2C_Read... [09:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:47]Read from MH i2c: E2 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: E2 0E 00 [09:06:47]MH_I2C_Read... [09:06:47]Read from MH i2c: E2 0E 00 4B 04 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 11 [09:06:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:06:47]wFMCommunicate OK [09:06:47]SAM_PROTO_GetShiftState done [09:06:47]FM_GetShiftState done [09:06:47]opened in 1729384303 [09:06:47]opened+sec_in_day 1729470703 [09:06:47]quantity*price = 100015 [09:06:47]sum+1 = 100017 [09:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 44 20.10.2024 09:06 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73718 ФПД: 20306819991409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090648&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73718&fm=20306819991409&tin=02508201610067®Number=0000000000161154&sum=100000 [09:06:49]StoreToDocumentArchive [09:06:49]shift 170 fd 73718 [09:06:49]save to /storage/0170/doc_00073718 [09:06:49]save last doc name /storage/0170/doc_00073718 to /storage/kkm_last_doc_name [09:06:49]save OK [09:06:49]Clear old archive folders... [09:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:49]tlvbuf is 0033BF10 [09:06:49]SAM_PROTO_ClearQueue [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 09 00 00 [09:06:49]Write to MH i2c: E2 08 00 58 04 80 09 00 00 00 00 00 00 CE [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]SAM_PROTO_ClearQueue done [09:06:49]KKMCreateOFDPacket [09:06:49]OFDProtocolAddRootSTLVToBuf [09:06:49]FM_MakeSignedData [09:06:49]FM_MakeSignedData [09:06:49]SAM_PROTO_SignData [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 01 02 [09:06:49]Write to MH i2c: E2 08 00 59 04 80 0D 01 02 00 00 00 00 D6 [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]wFMCommunicate request_size=255 [09:06:49]MH_SAM_APDU [09:06:49]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 2C 00 00 00 F4 03 04 00 28 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 1F 01 00 35 04 06 00 12 [09:06:49]Write to MH i2c: E2 02 01 5A 04 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 2C 00 00 00 F4 03 04 00 28 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 1F 01 00 35 04 06 00 12 00 00 BB [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]wFMCommunicate request_size=10 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 02 02 05 78 0C CA C7 71 [09:06:49]Write to MH i2c: E2 0D 00 5B 04 80 0D 02 02 05 00 78 0C CA C7 71 00 00 69 [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [09:06:49]RAPDU: 90 00 [09:06:49]wFMCommunicate OK [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 0D 03 02 [09:06:49]Write to MH i2c: E2 08 00 5C 04 80 0D 03 02 00 00 00 00 DB [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 0B 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 0B 00 5C 04 00 25 55 D9 DB 9B 8E 1D B1 90 00 01 [09:06:49]RAPDU: 25 55 D9 DB 9B 8E 1D B1 90 00 [09:06:49]wFMCommunicate OK [09:06:49]SAM_PROTO_SignData done [09:06:49]FM_MakeSignedData done [09:06:49]CreateOFDProtocolMessage [09:06:49]wFMCommunicate request_size=4 [09:06:49]MH_SAM_APDU [09:06:49]CAPDU: 80 11 00 00 [09:06:49]Write to MH i2c: E2 08 00 5D 04 80 11 00 00 00 00 00 00 DB [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:49]Read from MH i2c: E2 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 17 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: E2 17 00 5D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [09:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:06:49]wFMCommunicate OK [09:06:49]CreateOFDProtocolMessage done [09:06:49]OFDSenderStorePacket 73718 [09:06:49]StoreOFDPacket docnum=73718 [09:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AA E5 07 01 06 50 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 2C 00 00 00 F4 03 04 00 28 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 1F 01 00 35 04 06 00 12 78 0C CA C7 71 25 55 D9 DB 9B 8E 1D B1 [09:06:49]CheckFolder [09:06:49]dirname=/storage/ofd_packets [09:06:49]CheckFolder done [09:06:49]ProducePacketName [09:06:49]name=ofd_packets/00073718 [09:06:49]NVStorageSaveData ofd_packets/00073718 [09:06:49]File name is /storage/ofd_packets/00073718 [09:06:49]Write 301 bytes [09:06:49]NVStorageSaveData done [09:06:49]OFDSenderStorePacket done [09:06:49]KKMCreateOFDPacket done [09:06:49]NVStorageSaveData kkm_last_timestamp [09:06:49]File name is /storage/kkm_last_timestamp [09:06:49]Write 4 bytes [09:06:49]NVStorageSaveData done [09:06:49]ExternCall_PrintAddStr [09:06:49]wPrintStart [09:06:49]Write to MH i2c: 01 00 00 5E 04 62 [09:06:49]Write i2c OK [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: 01 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: 01 07 00 [09:06:49]MH_I2C_Read... [09:06:49]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FF 0F 77 [09:06:49]RasterBufferAndPrint [09:06:49]line Счет N : (1)1962718 [09:06:49]line ИНН: 02508201610067 [09:06:49]line Контрольно-Кассовый Чек [09:06:49]line ПРОДАЖА [09:06:49]line ТРК (МРК, ГНК) : 53 [09:06:49]line Товар: 2710124130 [09:06:49]line Аи-92-К-5 [09:06:49]line 14.950 * 66.90 [09:06:49]line = 1000.16 [09:06:49]line НДС 12% НСП 1% [09:06:49]line > о реализуемом товаре [09:06:49]line ОКРУГЛЕНИЕ: -0.16 [09:06:49]line ИТОГО: 1000.00 [09:06:49]line Внесено: 1000.00 [09:06:49]line СДАЧА: 0.00 [09:06:49]line НСП 1% : 8.85 [09:06:49]line НДС 12% : 106.21 [09:06:49]line Наличными: 1000.00 [09:06:49]line Безнал.: 0.00 [09:06:49]line Место: АЗС № 133 "Партнер Нефть" [09:06:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:06:49]line СНО: Общий режим [09:06:49]line Чек 44 20.10.2024 09:06 [09:06:49]line Смена: 170 ФФД: 1.0 [09:06:49]line ЗНМ: 0300000020 [09:06:49]line РНМ: 0000000000161154 [09:06:49]line Версия ККМ: v1.0 [09:06:49]line ФМ: 0000000000963323 [09:06:49]line ФД: 73718 [09:06:49]line ФПД: 20306819991409 [09:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090648&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73718&fm=20306819991409&tin=02508201610067®Number=0000000000161154&sum=100000 [09:06:49]OFD Sender: Processing packet 73718 [packets to send 15, broken 14] [09:06:49]ProducePacketName [09:06:49]name=ofd_packets/00073718 [09:06:49]OFD Sender: To server: pG, [09:06:49]CommunicateWithHost lk.salyk.kg:30040 [09:06:49]ConnectInit lk.salyk.kg [09:06:49]written 0, free lines is 4095 [09:06:50]Connected sock=10 [09:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AA E5 07 01 06 50 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 2C 00 00 00 F4 03 04 00 28 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 1F 01 00 35 04 06 00 12 78 0C CA C7 71 25 55 D9 DB 9B 8E 1D B1 [09:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 39 C7 47 00 4F 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 39 36 33 33 32 33 10 04 04 00 F6 1F 01 00 F4 03 04 00 0D 71 14 67 B6 04 01 00 00 66 A4 73 5E 9D 50 B1 3C [09:06:50]CommunicateWithHost err = 0 [09:06:50]CheckOFDResponse [09:06:50]1017 (14) - 77093643461234 [09:06:50]1041 (16) - 0000000000963323 [09:06:50]1040 (4) - 73718 [09:06:50]1012 (4) - 20.10.2024 02:55 [09:06:50]1206 (1) - 0 [09:06:50]OFD Sender: Remove packet 73718 [09:06:50]ProducePacketName [09:06:50]name=ofd_packets/00073718 [09:06:50]NVStorageDeleteData [09:06:50]Write to MH i2c: 01 00 00 88 04 8C [09:06:50]Write i2c OK [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: 01 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: 01 07 00 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 AA 0C 49 [09:06:50]RasterBufferAndPrint [09:06:50]line [09:06:50]line [09:06:50]line [09:06:50]line [09:06:50]line [09:06:50]written 0, free lines is 3246 [09:06:50]MH_Cut [09:06:50]Write to MH i2c: D1 01 00 8F 04 01 65 [09:06:50]Write i2c OK [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: D1 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: D1 01 00 [09:06:50]MH_I2C_Read... [09:06:50]Read from MH i2c: D1 01 00 8F 04 00 64 [09:06:50]Write to MH i2c: 01 00 00 90 04 94 [09:06:50]Write i2c OK [09:06:50]MH_I2C_Read... [09:06:50]OFD Sender: No OFD packet to send [09:06:51]*** Cut start [09:06:51]*** Partial cut [09:06:51]*** CUTSNS_PIN = 1 [09:06:51]*** CUTSNS_PIN = 0 [09:06:51]*** Brake cut motor [09:06:51]Read from MH i2c: 01 [09:06:51]MH_I2C_Read... [09:06:51]*** Stop cut motor [09:06:51]*** Cut end [09:06:51]Read from MH i2c: 01 07 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [09:06:51]process_action close_receipt done [09:06:51]requested_data is exist [09:06:51]produce_requested_data [09:06:51]requested_item fm.sn is exist - process it [09:06:51]wFMCommunicate request_size=4 [09:06:51]MH_SAM_APDU [09:06:51]CAPDU: 80 11 00 00 [09:06:51]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [09:06:51]Write i2c OK [09:06:51]MH_I2C_Read... [09:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:51]Read from MH i2c: E2 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 17 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5C [09:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:06:51]wFMCommunicate OK [09:06:51]requested_item fd.num is exist - process it [09:06:51]SAM_PROTO_GetFieldsCounters [09:06:51]wFMCommunicate request_size=4 [09:06:51]MH_SAM_APDU [09:06:51]CAPDU: 80 13 00 00 [09:06:51]Write to MH i2c: E2 08 00 92 04 80 13 00 00 00 00 00 00 12 [09:06:51]Write i2c OK [09:06:51]MH_I2C_Read... [09:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:52]Read from MH i2c: E2 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: E2 62 00 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: E2 62 00 92 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F6 1F 01 00 0E 04 04 00 AA 00 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 6A [09:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F6 1F 01 00 0E 04 04 00 AA 00 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 [09:06:52]wFMCommunicate OK [09:06:52]SAM_PROTO_GetFieldsCounters done [09:06:52]requested_item shift.num is exist - process it [09:06:52]requested_item shift.opened is exist - process it [09:06:52]req_shift_opened [09:06:52]FM_GetShiftState [09:06:52]SAM_PROTO_GetShiftState [09:06:52]wFMCommunicate request_size=4 [09:06:52]MH_SAM_APDU [09:06:52]CAPDU: 80 13 01 00 [09:06:52]Write to MH i2c: E2 08 00 93 04 80 13 01 00 00 00 00 00 14 [09:06:52]Write i2c OK [09:06:52]MH_I2C_Read... [09:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:52]Read from MH i2c: E2 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: E2 0E 00 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: E2 0E 00 93 04 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 59 [09:06:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:06:52]wFMCommunicate OK [09:06:52]SAM_PROTO_GetShiftState done [09:06:52]FM_GetShiftState done [09:06:52]req_shift_opened done [09:06:52]requested_item shift.open_date is exist - process it [09:06:52]req_shift_open_date [09:06:52]req_shift_open_date done [09:06:52]produce_requested_data done [09:06:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73718,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:06:52]process_action_free close_receipt [09:06:52]json_value_free [09:06:52]json_value_free done [09:06:52]process_json_proto returns [09:06:52]Send response to host [09:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73718,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:06:52]free response buf [09:06:52]execute_script done [09:06:52]execute_script returns [09:06:52]free content buf [09:06:52]Sock 8.Close socket [09:06:52]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:49]accept exits with 9 [09:07:49]New connection [09:07:49]New thread 3067432292 created [09:07:49]Thread 3067575652 joined [09:07:49]Waiting for new connection... [09:07:49] Sock 9.Parse request [09:07:49]Sock 9.Check first char [09:07:49]Sock 9.First char is OK [09:07:49]request: POST /json_proto HTTP/1.0 [09:07:49]Method: POST [09:07:49]URL: /json_proto [09:07:49]Method is POST - this is cgi request [09:07:49]url: /json_proto [09:07:49]query_string will be loaded in cgi processing [09:07:49]execute_cgi json_proto POST (null) [09:07:49]execute_cgi path=json_proto method=POST [09:07:49]POST find Content-Length [09:07:49]Host: 172.17.44.196:8080 [09:07:49]Content-Length: 678 [09:07:49]Content-Type: application/json [09:07:49] [09:07:49]POST finish read [09:07:49]Found Content-Length = 678 [09:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962719", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [09:07:49]execute_script... [09:07: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)1962719", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [09:07:49]POST & json_proto [09:07:49]process_json_proto [09:07:49]json parsed OK: [09:07:49]protocol is kg_v1.0 [09:07:49]action value=close_receipt [09:07:49]process_action close_receipt [09:07:49]cmd_close_receipt [09:07:49]MH_GetDate [09:07:49]Write to MH i2c: F0 00 00 94 04 87 [09:07:49]Write i2c OK [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: F0 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: F0 09 00 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: F0 09 00 94 04 00 66 C8 14 67 E7 19 F8 65 96 [09:07:49]GetLastDocTimeStamp 1729415208 [09:07:49]current date 1729415270 [09:07:49]FM_GetShiftState [09:07:49]SAM_PROTO_GetShiftState [09:07:49]wFMCommunicate request_size=4 [09:07:49]MH_SAM_APDU [09:07:49]CAPDU: 80 13 01 00 [09:07:49]Write to MH i2c: E2 08 00 95 04 80 13 01 00 00 00 00 00 16 [09:07:49]Write i2c OK [09:07:49]MH_I2C_Read... [09:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:49]Read from MH i2c: E2 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: E2 0E 00 [09:07:49]MH_I2C_Read... [09:07:49]Read from MH i2c: E2 0E 00 95 04 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5B [09:07:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:07:49]wFMCommunicate OK [09:07:49]SAM_PROTO_GetShiftState done [09:07:49]FM_GetShiftState done [09:07:49]opened in 1729384303 [09:07:49]opened+sec_in_day 1729470703 [09:07:49]quantity*price = 50041 [09:07:49]sum+1 = 50042 [09:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 45 20.10.2024 09:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73719 ФПД: 208956214306711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090750&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73719&fm=208956214306711&tin=02508201610067®Number=0000000000161154&sum=50000 [09:07:50]StoreToDocumentArchive [09:07:50]shift 170 fd 73719 [09:07:50]save to /storage/0170/doc_00073719 [09:07:50]save last doc name /storage/0170/doc_00073719 to /storage/kkm_last_doc_name [09:07:50]save OK [09:07:50]Clear old archive folders... [09:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:50]tlvbuf is 00330D40 [09:07:50]SAM_PROTO_ClearQueue [09:07:50]wFMCommunicate request_size=4 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 09 00 00 [09:07:50]Write to MH i2c: E2 08 00 A2 04 80 09 00 00 00 00 00 00 18 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:50]Read from MH i2c: E2 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [09:07:50]RAPDU: 90 00 [09:07:50]wFMCommunicate OK [09:07:50]SAM_PROTO_ClearQueue done [09:07:50]KKMCreateOFDPacket [09:07:50]OFDProtocolAddRootSTLVToBuf [09:07:50]FM_MakeSignedData [09:07:50]FM_MakeSignedData [09:07:50]SAM_PROTO_SignData [09:07:50]wFMCommunicate request_size=4 [09:07:50]MH_SAM_APDU [09:07:50]CAPDU: 80 0D 01 02 [09:07:50]Write to MH i2c: E2 08 00 A3 04 80 0D 01 02 00 00 00 00 20 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:50]OFD Sender: No OFD packet to send [09:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:50]Read from MH i2c: E2 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 [09:07:50]MH_I2C_Read... [09:07:50]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [09:07:50]RAPDU: 90 00 [09:07:50]wFMCommunicate OK [09:07:50]wFMCommunicate request_size=255 [09:07:50]MH_SAM_APDU [09:07:50]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2D 00 00 00 F4 03 04 00 66 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 1F 01 00 35 04 06 00 BE [09:07:50]Write to MH i2c: E2 02 01 A4 04 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2D 00 00 00 F4 03 04 00 66 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 1F 01 00 35 04 06 00 BE 00 00 F7 [09:07:50]Write i2c OK [09:07:50]MH_I2C_Read... [09:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 03 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [09:07:51]RAPDU: 90 00 [09:07:51]wFMCommunicate OK [09:07:51]wFMCommunicate request_size=10 [09:07:51]MH_SAM_APDU [09:07:51]CAPDU: 80 0D 02 02 05 0B 68 ED 67 97 [09:07:51]Write to MH i2c: E2 0D 00 A5 04 80 0D 02 02 05 00 0B 68 ED 67 97 00 00 8B [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 03 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [09:07:51]RAPDU: 90 00 [09:07:51]wFMCommunicate OK [09:07:51]wFMCommunicate request_size=4 [09:07:51]MH_SAM_APDU [09:07:51]CAPDU: 80 0D 03 02 [09:07:51]Write to MH i2c: E2 08 00 A6 04 80 0D 03 02 00 00 00 00 25 [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 0B 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 0B 00 A6 04 00 89 84 72 81 DC EE 2C C9 90 00 E5 [09:07:51]RAPDU: 89 84 72 81 DC EE 2C C9 90 00 [09:07:51]wFMCommunicate OK [09:07:51]SAM_PROTO_SignData done [09:07:51]FM_MakeSignedData done [09:07:51]CreateOFDProtocolMessage [09:07:51]wFMCommunicate request_size=4 [09:07:51]MH_SAM_APDU [09:07:51]CAPDU: 80 11 00 00 [09:07:51]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:51]Read from MH i2c: E2 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 17 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 72 [09:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:07:51]wFMCommunicate OK [09:07:51]CreateOFDProtocolMessage done [09:07:51]OFDSenderStorePacket 73719 [09:07:51]StoreOFDPacket docnum=73719 [09:07:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 E5 07 01 45 64 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2D 00 00 00 F4 03 04 00 66 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 1F 01 00 35 04 06 00 BE 0B 68 ED 67 97 89 84 72 81 DC EE 2C C9 [09:07:51]CheckFolder [09:07:51]dirname=/storage/ofd_packets [09:07:51]CheckFolder done [09:07:51]ProducePacketName [09:07:51]name=ofd_packets/00073719 [09:07:51]NVStorageSaveData ofd_packets/00073719 [09:07:51]File name is /storage/ofd_packets/00073719 [09:07:51]Write 301 bytes [09:07:51]NVStorageSaveData done [09:07:51]OFDSenderStorePacket done [09:07:51]KKMCreateOFDPacket done [09:07:51]NVStorageSaveData kkm_last_timestamp [09:07:51]File name is /storage/kkm_last_timestamp [09:07:51]Write 4 bytes [09:07:51]NVStorageSaveData done [09:07:51]ExternCall_PrintAddStr [09:07:51]wPrintStart [09:07:51]Write to MH i2c: 01 00 00 A8 04 AC [09:07:51]Write i2c OK [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 07 00 [09:07:51]MH_I2C_Read... [09:07:51]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [09:07:51]RasterBufferAndPrint [09:07:51]line Счет N : (1)1962719 [09:07:51]line ИНН: 02508201610067 [09:07:51]line Контрольно-Кассовый Чек [09:07:51]line ПРОДАЖА [09:07:51]line ТРК (МРК, ГНК) : 33 [09:07:51]line Товар: 2710124130 [09:07:51]line Аи-92-К-5 [09:07:51]line 7.480 * 66.90 [09:07:51]line = 500.41 [09:07:51]line НДС 12% НСП 1% [09:07:51]line > о реализуемом товаре [09:07:51]line ОКРУГЛЕНИЕ: -0.41 [09:07:51]line ИТОГО: 500.00 [09:07:51]line Внесено: 500.00 [09:07:51]line СДАЧА: 0.00 [09:07:51]line НСП 1% : 4.43 [09:07:51]line НДС 12% : 53.14 [09:07:51]line Наличными: 500.00 [09:07:51]line Безнал.: 0.00 [09:07:51]line Место: АЗС № 133 "Партнер Нефть" [09:07:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:07:51]line СНО: Общий режим [09:07:51]line Чек 45 20.10.2024 09:07 [09:07:51]line Смена: 170 ФФД: 1.0 [09:07:51]line ЗНМ: 0300000020 [09:07:51]line РНМ: 0000000000161154 [09:07:51]line Версия ККМ: v1.0 [09:07:51]line ФМ: 0000000000963323 [09:07:51]line ФД: 73719 [09:07:51]line ФПД: 208956214306711 [09:07:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090750&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73719&fm=208956214306711&tin=02508201610067®Number=0000000000161154&sum=50000 [09:07:51]OFD Sender: Processing packet 73719 [packets to send 15, broken 14] [09:07:51]ProducePacketName [09:07:51]name=ofd_packets/00073719 [09:07:51]OFD Sender: To server: pG, [09:07:51]CommunicateWithHost lk.salyk.kg:30040 [09:07:51]ConnectInit lk.salyk.kg [09:07:51]written 0, free lines is 4095 [09:07:51]Connected sock=10 [09:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 E5 07 01 45 64 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2D 00 00 00 F4 03 04 00 66 C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 1F 01 00 35 04 06 00 BE 0B 68 ED 67 97 89 84 72 81 DC EE 2C C9 [09:07:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C6 94 47 00 3C 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 39 36 33 33 32 33 10 04 04 00 F7 1F 01 00 F4 03 04 00 4B 71 14 67 B6 04 01 00 00 F1 E2 D9 DB 1B 45 79 17 [09:07:51]CommunicateWithHost err = 0 [09:07:51]CheckOFDResponse [09:07:51]1017 (14) - 77093643461234 [09:07:51]1041 (16) - 0000000000963323 [09:07:51]1040 (4) - 73719 [09:07:51]1012 (4) - 20.10.2024 02:56 [09:07:51]1206 (1) - 0 [09:07:51]OFD Sender: Remove packet 73719 [09:07:51]ProducePacketName [09:07:51]name=ofd_packets/00073719 [09:07:51]NVStorageDeleteData [09:07:52]Write to MH i2c: 01 00 00 D2 04 D6 [09:07:52]Write i2c OK [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: 01 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: 01 07 00 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 A6 0C 8F [09:07:52]RasterBufferAndPrint [09:07:52]line [09:07:52]line [09:07:52]line [09:07:52]line [09:07:52]line [09:07:52]written 0, free lines is 3241 [09:07:52]MH_Cut [09:07:52]Write to MH i2c: D1 01 00 D9 04 01 AF [09:07:52]Write i2c OK [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: D1 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: D1 01 00 [09:07:52]MH_I2C_Read... [09:07:52]Read from MH i2c: D1 01 00 D9 04 00 AE [09:07:52]Write to MH i2c: 01 00 00 DA 04 DE [09:07:52]Write i2c OK [09:07:52]MH_I2C_Read... [09:07:52]OFD Sender: No OFD packet to send [09:07:52]*** Cut start [09:07:52]*** Partial cut [09:07:52]*** CUTSNS_PIN = 1 [09:07:53]*** CUTSNS_PIN = 0 [09:07:53]*** Brake cut motor [09:07:53]Read from MH i2c: 01 [09:07:53]MH_I2C_Read... [09:07:53]*** Stop cut motor [09:07:53]*** Cut end [09:07:53]Read from MH i2c: 01 07 00 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 FF 0F F3 [09:07:53]process_action close_receipt done [09:07:53]requested_data is exist [09:07:53]produce_requested_data [09:07:53]requested_item fm.sn is exist - process it [09:07:53]wFMCommunicate request_size=4 [09:07:53]MH_SAM_APDU [09:07:53]CAPDU: 80 11 00 00 [09:07:53]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [09:07:53]Write i2c OK [09:07:53]MH_I2C_Read... [09:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:53]Read from MH i2c: E2 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: E2 17 00 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A6 [09:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:07:53]wFMCommunicate OK [09:07:53]requested_item fd.num is exist - process it [09:07:53]SAM_PROTO_GetFieldsCounters [09:07:53]wFMCommunicate request_size=4 [09:07:53]MH_SAM_APDU [09:07:53]CAPDU: 80 13 00 00 [09:07:53]Write to MH i2c: E2 08 00 DC 04 80 13 00 00 00 00 00 00 5C [09:07:53]Write i2c OK [09:07:53]MH_I2C_Read... [09:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:53]Read from MH i2c: E2 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: E2 62 00 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: E2 62 00 DC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F7 1F 01 00 0E 04 04 00 AA 00 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 B8 [09:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F7 1F 01 00 0E 04 04 00 AA 00 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 [09:07:53]wFMCommunicate OK [09:07:53]SAM_PROTO_GetFieldsCounters done [09:07:53]requested_item shift.num is exist - process it [09:07:53]requested_item shift.opened is exist - process it [09:07:53]req_shift_opened [09:07:53]FM_GetShiftState [09:07:53]SAM_PROTO_GetShiftState [09:07:53]wFMCommunicate request_size=4 [09:07:53]MH_SAM_APDU [09:07:53]CAPDU: 80 13 01 00 [09:07:53]Write to MH i2c: E2 08 00 DD 04 80 13 01 00 00 00 00 00 5E [09:07:53]Write i2c OK [09:07:53]MH_I2C_Read... [09:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:53]Read from MH i2c: E2 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: E2 0E 00 [09:07:53]MH_I2C_Read... [09:07:53]Read from MH i2c: E2 0E 00 DD 04 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A3 [09:07:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:07:53]wFMCommunicate OK [09:07:53]SAM_PROTO_GetShiftState done [09:07:53]FM_GetShiftState done [09:07:53]req_shift_opened done [09:07:53]requested_item shift.open_date is exist - process it [09:07:53]req_shift_open_date [09:07:53]req_shift_open_date done [09:07:53]produce_requested_data done [09:07:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73719,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:07:53]process_action_free close_receipt [09:07:53]json_value_free [09:07:53]json_value_free done [09:07:53]process_json_proto returns [09:07:53]Send response to host [09:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73719,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:07:53]free response buf [09:07:53]execute_script done [09:07:53]execute_script returns [09:07:53]free content buf [09:07:53]Sock 9.Close socket [09:07:53]Sock 9.Thread stoped [09:07:54]accept exits with 8 [09:07:54]New connection [09:07:54]New thread 3067575652 created [09:07:54]Thread 3067432292 joined [09:07:54]Waiting for new connection... [09:07:54] Sock 8.Parse request [09:07:54]Sock 8.Check first char [09:07:54]Sock 8.First char is OK [09:07:54]request: POST /json_proto HTTP/1.0 [09:07:54]Method: POST [09:07:54]URL: /json_proto [09:07:54]Method is POST - this is cgi request [09:07:54]url: /json_proto [09:07:54]query_string will be loaded in cgi processing [09:07:54]execute_cgi json_proto POST (null) [09:07:54]execute_cgi path=json_proto method=POST [09:07:54]POST find Content-Length [09:07:54]Host: 172.17.44.196:8080 [09:07:54]Content-Length: 680 [09:07:54]Content-Type: application/json [09:07:54] [09:07:54]POST finish read [09:07:54]Found Content-Length = 680 [09:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [09:07:54]execute_script... [09:07: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)1962720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [09:07:54]POST & json_proto [09:07:54]process_json_proto [09:07:54]json parsed OK: [09:07:54]protocol is kg_v1.0 [09:07:54]action value=close_receipt [09:07:54]process_action close_receipt [09:07:54]cmd_close_receipt [09:07:54]MH_GetDate [09:07:54]Write to MH i2c: F0 00 00 DE 04 D1 [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: F0 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: F0 09 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: F0 09 00 DE 04 00 6A C8 14 67 E7 19 F8 65 E4 [09:07:54]GetLastDocTimeStamp 1729415270 [09:07:54]current date 1729415274 [09:07:54]FM_GetShiftState [09:07:54]SAM_PROTO_GetShiftState [09:07:54]wFMCommunicate request_size=4 [09:07:54]MH_SAM_APDU [09:07:54]CAPDU: 80 13 01 00 [09:07:54]Write to MH i2c: E2 08 00 DF 04 80 13 01 00 00 00 00 00 60 [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:54]Read from MH i2c: E2 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: E2 0E 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: E2 0E 00 DF 04 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A5 [09:07:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:07:54]wFMCommunicate OK [09:07:54]SAM_PROTO_GetShiftState done [09:07:54]FM_GetShiftState done [09:07:54]opened in 1729384303 [09:07:54]opened+sec_in_day 1729470703 [09:07:54]quantity*price = 150037 [09:07:54]sum+1 = 150039 [09:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 46 20.10.2024 09:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73720 ФПД: 179041067184288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090755&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73720&fm=179041067184288&tin=02508201610067®Number=0000000000161154&sum=150000 [09:07:55]StoreToDocumentArchive [09:07:55]shift 170 fd 73720 [09:07:55]save to /storage/0170/doc_00073720 [09:07:55]save last doc name /storage/0170/doc_00073720 to /storage/kkm_last_doc_name [09:07:55]save OK [09:07:55]Clear old archive folders... [09:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:07:55]tlvbuf is 003230C0 [09:07:55]SAM_PROTO_ClearQueue [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 09 00 00 [09:07:55]Write to MH i2c: E2 08 00 EC 04 80 09 00 00 00 00 00 00 62 [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [09:07:55]RAPDU: 90 00 [09:07:55]wFMCommunicate OK [09:07:55]SAM_PROTO_ClearQueue done [09:07:55]KKMCreateOFDPacket [09:07:55]OFDProtocolAddRootSTLVToBuf [09:07:55]FM_MakeSignedData [09:07:55]FM_MakeSignedData [09:07:55]SAM_PROTO_SignData [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 0D 01 02 [09:07:55]Write to MH i2c: E2 08 00 ED 04 80 0D 01 02 00 00 00 00 6A [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [09:07:55]RAPDU: 90 00 [09:07:55]wFMCommunicate OK [09:07:55]wFMCommunicate request_size=255 [09:07:55]MH_SAM_APDU [09:07:55]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2E 00 00 00 F4 03 04 00 6B C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 1F 01 00 35 04 06 00 A2 D6 3F 35 [09:07:55]Write to MH i2c: E2 02 01 EE 04 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2E 00 00 00 F4 03 04 00 6B C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 1F 01 00 35 04 06 00 A2 D6 3F 35 00 00 E3 [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 03 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [09:07:56]RAPDU: 90 00 [09:07:56]wFMCommunicate OK [09:07:56]wFMCommunicate request_size=7 [09:07:56]MH_SAM_APDU [09:07:56]CAPDU: 80 0D 02 02 02 B0 A0 [09:07:56]Write to MH i2c: E2 0A 00 EF 04 80 0D 02 02 02 00 B0 A0 00 00 C1 [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 03 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [09:07:56]RAPDU: 90 00 [09:07:56]wFMCommunicate OK [09:07:56]wFMCommunicate request_size=4 [09:07:56]MH_SAM_APDU [09:07:56]CAPDU: 80 0D 03 02 [09:07:56]Write to MH i2c: E2 08 00 F0 04 80 0D 03 02 00 00 00 00 6F [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 0B 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 0B 00 F0 04 00 6D DB FA 9A 61 02 95 35 90 00 79 [09:07:56]RAPDU: 6D DB FA 9A 61 02 95 35 90 00 [09:07:56]wFMCommunicate OK [09:07:56]SAM_PROTO_SignData done [09:07:56]FM_MakeSignedData done [09:07:56]CreateOFDProtocolMessage [09:07:56]wFMCommunicate request_size=4 [09:07:56]MH_SAM_APDU [09:07:56]CAPDU: 80 11 00 00 [09:07:56]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 17 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [09:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:07:56]wFMCommunicate OK [09:07:56]CreateOFDProtocolMessage done [09:07:56]OFDSenderStorePacket 73720 [09:07:56]StoreOFDPacket docnum=73720 [09:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 9B 8D 04 01 B7 BA 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2E 00 00 00 F4 03 04 00 6B C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 1F 01 00 35 04 06 00 A2 D6 3F 35 B0 A0 6D DB FA 9A 61 02 95 35 [09:07:56]CheckFolder [09:07:56]dirname=/storage/ofd_packets [09:07:56]CheckFolder done [09:07:56]ProducePacketName [09:07:56]name=ofd_packets/00073720 [09:07:56]NVStorageSaveData ofd_packets/00073720 [09:07:56]File name is /storage/ofd_packets/00073720 [09:07:56]Write 298 bytes [09:07:56]NVStorageSaveData done [09:07:56]OFDSenderStorePacket done [09:07:56]KKMCreateOFDPacket done [09:07:56]NVStorageSaveData kkm_last_timestamp [09:07:56]File name is /storage/kkm_last_timestamp [09:07:56]Write 4 bytes [09:07:56]NVStorageSaveData done [09:07:56]ExternCall_PrintAddStr [09:07:56]wPrintStart [09:07:56]Write to MH i2c: 01 00 00 F2 04 F6 [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: 01 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: 01 07 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 FF 0F 0B [09:07:56]RasterBufferAndPrint [09:07:56]line Счет N : (1)1962720 [09:07:56]line ИНН: 02508201610067 [09:07:56]line Контрольно-Кассовый Чек [09:07:56]line ПРОДАЖА [09:07:56]line ТРК (МРК, ГНК) : 11 [09:07:56]line Товар: 2710194210 [09:07:56]line ДТ-К-5 [09:07:56]line 19.690 * 76.20 [09:07:56]line = 1500.38 [09:07:56]line НДС 12% НСП 1% [09:07:56]line > о реализуемом товаре [09:07:56]line ОКРУГЛЕНИЕ: -0.38 [09:07:56]line ИТОГО: 1500.00 [09:07:56]line Внесено: 1500.00 [09:07:56]line СДАЧА: 0.00 [09:07:56]line НСП 1% : 13.28 [09:07:56]line НДС 12% : 159.33 [09:07:56]line Наличными: 1500.00 [09:07:56]line Безнал.: 0.00 [09:07:56]line Место: АЗС № 133 "Партнер Нефть" [09:07:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:07:56]line СНО: Общий режим [09:07:56]line Чек 46 20.10.2024 09:07 [09:07:56]line Смена: 170 ФФД: 1.0 [09:07:56]line ЗНМ: 0300000020 [09:07:56]line РНМ: 0000000000161154 [09:07:56]line Версия ККМ: v1.0 [09:07:56]line ФМ: 0000000000963323 [09:07:56]line ФД: 73720 [09:07:56]line ФПД: 179041067184288 [09:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090755&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73720&fm=179041067184288&tin=02508201610067®Number=0000000000161154&sum=150000 [09:07:56]written 0, free lines is 4095 [09:07:56]OFD Sender: Processing packet 73720 [packets to send 15, broken 14] [09:07:56]ProducePacketName [09:07:56]name=ofd_packets/00073720 [09:07:56]OFD Sender: To server: pG, [09:07:56]CommunicateWithHost lk.salyk.kg:30040 [09:07:56]ConnectInit lk.salyk.kg [09:07:56]Connected sock=10 [09:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 9B 8D 04 01 B7 BA 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 2E 00 00 00 F4 03 04 00 6B C8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 1F 01 00 35 04 06 00 A2 D6 3F 35 B0 A0 6D DB FA 9A 61 02 95 35 [09:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E7 4C 47 00 15 D4 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 39 36 33 33 32 33 10 04 04 00 F8 1F 01 00 F4 03 04 00 50 71 14 67 B6 04 01 00 00 22 5D 7C 7F 5A 12 0F C4 [09:07:56]CommunicateWithHost err = 0 [09:07:56]CheckOFDResponse [09:07:56]1017 (14) - 77093643461234 [09:07:56]1041 (16) - 0000000000963323 [09:07:56]1040 (4) - 73720 [09:07:56]1012 (4) - 20.10.2024 02:56 [09:07:56]1206 (1) - 0 [09:07:56]OFD Sender: Remove packet 73720 [09:07:56]ProducePacketName [09:07:56]name=ofd_packets/00073720 [09:07:56]NVStorageDeleteData [09:07:57]Write to MH i2c: 01 00 00 1C 05 21 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 1C 05 00 00 00 00 00 B5 0C E9 [09:07:57]RasterBufferAndPrint [09:07:57]line [09:07:57]line [09:07:57]line [09:07:57]line [09:07:57]line [09:07:57]written 0, free lines is 3259 [09:07:57]MH_Cut [09:07:57]Write to MH i2c: D1 01 00 23 05 01 FA [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: D1 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: D1 01 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: D1 01 00 23 05 00 F9 [09:07:57]Write to MH i2c: 01 00 00 24 05 29 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]OFD Sender: No OFD packet to send [09:07:57]*** Cut start [09:07:57]*** Partial cut [09:07:57]*** CUTSNS_PIN = 1 [09:07:58]*** CUTSNS_PIN = 0 [09:07:58]*** Brake cut motor [09:07:58]Read from MH i2c: 01 [09:07:58]MH_I2C_Read... [09:07:58]*** Stop cut motor [09:07:58]*** Cut end [09:07:58]Read from MH i2c: 01 07 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: 01 07 00 24 05 00 00 00 00 00 FF 0F 3E [09:07:58]process_action close_receipt done [09:07:58]requested_data is exist [09:07:58]produce_requested_data [09:07:58]requested_item fm.sn is exist - process it [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 11 00 00 [09:07:58]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 17 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F1 [09:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:07:58]wFMCommunicate OK [09:07:58]requested_item fd.num is exist - process it [09:07:58]SAM_PROTO_GetFieldsCounters [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 13 00 00 [09:07:58]Write to MH i2c: E2 08 00 26 05 80 13 00 00 00 00 00 00 A7 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:58]Read from MH i2c: E2 62 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 62 00 26 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F8 1F 01 00 0E 04 04 00 AA 00 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 07 [09:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F8 1F 01 00 0E 04 04 00 AA 00 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 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_GetFieldsCounters done [09:07:58]requested_item shift.num is exist - process it [09:07:58]requested_item shift.opened is exist - process it [09:07:58]req_shift_opened [09:07:58]FM_GetShiftState [09:07:58]SAM_PROTO_GetShiftState [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 13 01 00 [09:07:58]Write to MH i2c: E2 08 00 27 05 80 13 01 00 00 00 00 00 A9 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 27 05 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EE [09:07:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_GetShiftState done [09:07:58]FM_GetShiftState done [09:07:58]req_shift_opened done [09:07:58]requested_item shift.open_date is exist - process it [09:07:58]req_shift_open_date [09:07:58]req_shift_open_date done [09:07:58]produce_requested_data done [09:07:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73720,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:07:58]process_action_free close_receipt [09:07:58]json_value_free [09:07:58]json_value_free done [09:07:58]process_json_proto returns [09:07:58]Send response to host [09:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73720,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:07:58]free response buf [09:07:58]execute_script done [09:07:58]execute_script returns [09:07:58]free content buf [09:07:58]Sock 8.Close socket [09:07:58]Sock 8.Thread stoped [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:10:59]accept exits with 9 [09:10:59]New connection [09:10:59]New thread 3067432292 created [09:10:59]Thread 3067575652 joined [09:10:59]Waiting for new connection... [09:10:59] Sock 9.Parse request [09:10:59]Sock 9.Check first char [09:10:59]Sock 9.First char is OK [09:10:59]request: POST /json_proto HTTP/1.0 [09:10:59]Method: POST [09:10:59]URL: /json_proto [09:10:59]Method is POST - this is cgi request [09:10:59]url: /json_proto [09:10:59]query_string will be loaded in cgi processing [09:10:59]execute_cgi json_proto POST (null) [09:10:59]execute_cgi path=json_proto method=POST [09:10:59]POST find Content-Length [09:10:59]Host: 172.17.44.196:8080 [09:10:59]Content-Length: 678 [09:10:59]Content-Type: application/json [09:10:59] [09:10:59]POST finish read [09:10:59]Found Content-Length = 678 [09:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962721", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [09:10:59]execute_script... [09:10:59]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)1962721", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [09:10:59]POST & json_proto [09:10:59]process_json_proto [09:10:59]json parsed OK: [09:10:59]protocol is kg_v1.0 [09:10:59]action value=close_receipt [09:10:59]process_action close_receipt [09:10:59]cmd_close_receipt [09:10:59]MH_GetDate [09:10:59]Write to MH i2c: F0 00 00 28 05 1C [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: F0 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: F0 09 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: F0 09 00 28 05 00 23 C9 14 67 E7 19 F8 65 E9 [09:10:59]GetLastDocTimeStamp 1729415275 [09:10:59]current date 1729415459 [09:10:59]FM_GetShiftState [09:10:59]SAM_PROTO_GetShiftState [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 13 01 00 [09:10:59]Write to MH i2c: E2 08 00 29 05 80 13 01 00 00 00 00 00 AB [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 0E 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 0E 00 29 05 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F0 [09:10:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:10:59]wFMCommunicate OK [09:10:59]SAM_PROTO_GetShiftState done [09:10:59]FM_GetShiftState done [09:10:59]opened in 1729384303 [09:10:59]opened+sec_in_day 1729470703 [09:10:59]quantity*price = 50041 [09:10:59]sum+1 = 50042 [09:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 47 20.10.2024 09:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73721 ФПД: 73484746571486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091100&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73721&fm=73484746571486&tin=02508201610067®Number=0000000000161154&sum=50000 [09:11:00]StoreToDocumentArchive [09:11:00]shift 170 fd 73721 [09:11:00]save to /storage/0170/doc_00073721 [09:11:00]save last doc name /storage/0170/doc_00073721 to /storage/kkm_last_doc_name [09:11:00]save OK [09:11:00]Clear old archive folders... [09:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:00]tlvbuf is 00326BA0 [09:11:00]SAM_PROTO_ClearQueue [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 09 00 00 [09:11:00]Write to MH i2c: E2 08 00 36 05 80 09 00 00 00 00 00 00 AD [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_ClearQueue done [09:11:00]KKMCreateOFDPacket [09:11:00]OFDProtocolAddRootSTLVToBuf [09:11:00]FM_MakeSignedData [09:11:00]FM_MakeSignedData [09:11:00]SAM_PROTO_SignData [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 01 02 [09:11:00]Write to MH i2c: E2 08 00 37 05 80 0D 01 02 00 00 00 00 B5 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=255 [09:11:00]MH_SAM_APDU [09:11:00]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2F 00 00 00 F4 03 04 00 24 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 1F 01 00 35 04 06 00 42 [09:11:00]Write to MH i2c: E2 02 01 38 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2F 00 00 00 F4 03 04 00 24 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 1F 01 00 35 04 06 00 42 00 00 D3 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=10 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 02 02 05 D5 80 37 3E DE [09:11:00]Write to MH i2c: E2 0D 00 39 05 80 0D 02 02 05 00 D5 80 37 3E DE 00 00 6A [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 03 02 [09:11:00]Write to MH i2c: E2 08 00 3A 05 80 0D 03 02 00 00 00 00 BA [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0B 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0B 00 3A 05 00 51 C0 1E A4 4E 21 1C AB 90 00 C4 [09:11:00]RAPDU: 51 C0 1E A4 4E 21 1C AB 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_SignData done [09:11:00]FM_MakeSignedData done [09:11:00]CreateOFDProtocolMessage [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 11 00 00 [09:11:00]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [09:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:11:00]wFMCommunicate OK [09:11:00]CreateOFDProtocolMessage done [09:11:00]OFDSenderStorePacket 73721 [09:11:00]StoreOFDPacket docnum=73721 [09:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 79 ED 07 01 6B 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2F 00 00 00 F4 03 04 00 24 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 1F 01 00 35 04 06 00 42 D5 80 37 3E DE 51 C0 1E A4 4E 21 1C AB [09:11:00]CheckFolder [09:11:00]dirname=/storage/ofd_packets [09:11:00]CheckFolder done [09:11:00]ProducePacketName [09:11:00]name=ofd_packets/00073721 [09:11:00]NVStorageSaveData ofd_packets/00073721 [09:11:00]File name is /storage/ofd_packets/00073721 [09:11:00]Write 301 bytes [09:11:00]NVStorageSaveData done [09:11:00]OFDSenderStorePacket done [09:11:00]KKMCreateOFDPacket done [09:11:00]NVStorageSaveData kkm_last_timestamp [09:11:00]File name is /storage/kkm_last_timestamp [09:11:00]Write 4 bytes [09:11:00]NVStorageSaveData done [09:11:00]ExternCall_PrintAddStr [09:11:00]wPrintStart [09:11:00]Write to MH i2c: 01 00 00 3C 05 41 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [09:11:00]RasterBufferAndPrint [09:11:00]line Счет N : (1)1962721 [09:11:00]line ИНН: 02508201610067 [09:11:00]line Контрольно-Кассовый Чек [09:11:00]line ПРОДАЖА [09:11:00]line ТРК (МРК, ГНК) : 33 [09:11:00]line Товар: 2710124130 [09:11:00]line Аи-92-К-5 [09:11:00]line 7.480 * 66.90 [09:11:00]line = 500.41 [09:11:00]line НДС 12% НСП 1% [09:11:00]line > о реализуемом товаре [09:11:00]line ОКРУГЛЕНИЕ: -0.41 [09:11:00]line ИТОГО: 500.00 [09:11:00]line Внесено: 500.00 [09:11:00]line СДАЧА: 0.00 [09:11:00]line НСП 1% : 4.43 [09:11:00]line НДС 12% : 53.14 [09:11:00]line Наличными: 500.00 [09:11:00]line Безнал.: 0.00 [09:11:00]line Место: АЗС № 133 "Партнер Нефть" [09:11:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:11:00]line СНО: Общий режим [09:11:00]line Чек 47 20.10.2024 09:11 [09:11:00]line Смена: 170 ФФД: 1.0 [09:11:00]line ЗНМ: 0300000020 [09:11:00]line РНМ: 0000000000161154 [09:11:00]line Версия ККМ: v1.0 [09:11:00]line ФМ: 0000000000963323 [09:11:00]line ФД: 73721 [09:11:00]line ФПД: 73484746571486 [09:11:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091100&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73721&fm=73484746571486&tin=02508201610067®Number=0000000000161154&sum=50000 [09:11:01]OFD Sender: Processing packet 73721 [packets to send 15, broken 14] [09:11:01]ProducePacketName [09:11:01]name=ofd_packets/00073721 [09:11:01]OFD Sender: To server: pG, [09:11:01]CommunicateWithHost lk.salyk.kg:30040 [09:11:01]ConnectInit lk.salyk.kg [09:11:01]written 0, free lines is 4095 [09:11:01]Connected sock=10 [09:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 79 ED 07 01 6B 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 2F 00 00 00 F4 03 04 00 24 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 1F 01 00 35 04 06 00 42 D5 80 37 3E DE 51 C0 1E A4 4E 21 1C AB [09:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 A8 47 00 0C F5 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 39 36 33 33 32 33 10 04 04 00 F9 1F 01 00 F4 03 04 00 09 72 14 67 B6 04 01 00 00 13 97 38 6D 34 0C 36 8C [09:11:01]CommunicateWithHost err = 0 [09:11:01]CheckOFDResponse [09:11:01]1017 (14) - 77093643461234 [09:11:01]1041 (16) - 0000000000963323 [09:11:01]1040 (4) - 73721 [09:11:01]1012 (4) - 20.10.2024 02:59 [09:11:01]1206 (1) - 0 [09:11:01]OFD Sender: Remove packet 73721 [09:11:01]ProducePacketName [09:11:01]name=ofd_packets/00073721 [09:11:01]NVStorageDeleteData [09:11:01]Write to MH i2c: 01 00 00 66 05 6B [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 AF 0C 2D [09:11:01]RasterBufferAndPrint [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]written 0, free lines is 3250 [09:11:01]MH_Cut [09:11:01]Write to MH i2c: D1 01 00 6D 05 01 44 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 01 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 01 00 6D 05 00 43 [09:11:01]Write to MH i2c: 01 00 00 6E 05 73 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:02]OFD Sender: No OFD packet to send [09:11:02]*** Cut start [09:11:02]*** Partial cut [09:11:02]*** CUTSNS_PIN = 1 [09:11:02]*** CUTSNS_PIN = 0 [09:11:02]*** Brake cut motor [09:11:03]Read from MH i2c: 01 [09:11:03]MH_I2C_Read... [09:11:03]*** Stop cut motor [09:11:03]*** Cut end [09:11:03]Read from MH i2c: 01 07 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [09:11:03]process_action close_receipt done [09:11:03]requested_data is exist [09:11:03]produce_requested_data [09:11:03]requested_item fm.sn is exist - process it [09:11:03]wFMCommunicate request_size=4 [09:11:03]MH_SAM_APDU [09:11:03]CAPDU: 80 11 00 00 [09:11:03]Write to MH i2c: E2 08 00 6F 05 80 11 00 00 00 00 00 00 EE [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:03]Read from MH i2c: E2 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 17 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 17 00 6F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [09:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:11:03]wFMCommunicate OK [09:11:03]requested_item fd.num is exist - process it [09:11:03]SAM_PROTO_GetFieldsCounters [09:11:03]wFMCommunicate request_size=4 [09:11:03]MH_SAM_APDU [09:11:03]CAPDU: 80 13 00 00 [09:11:03]Write to MH i2c: E2 08 00 70 05 80 13 00 00 00 00 00 00 F1 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:03]Read from MH i2c: E2 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 62 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 62 00 70 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F9 1F 01 00 0E 04 04 00 AA 00 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 55 [09:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F9 1F 01 00 0E 04 04 00 AA 00 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 [09:11:03]wFMCommunicate OK [09:11:03]SAM_PROTO_GetFieldsCounters done [09:11:03]requested_item shift.num is exist - process it [09:11:03]requested_item shift.opened is exist - process it [09:11:03]req_shift_opened [09:11:03]FM_GetShiftState [09:11:03]SAM_PROTO_GetShiftState [09:11:03]wFMCommunicate request_size=4 [09:11:03]MH_SAM_APDU [09:11:03]CAPDU: 80 13 01 00 [09:11:03]Write to MH i2c: E2 08 00 71 05 80 13 01 00 00 00 00 00 F3 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:03]Read from MH i2c: E2 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 0E 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 0E 00 71 05 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 38 [09:11:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:11:03]wFMCommunicate OK [09:11:03]SAM_PROTO_GetShiftState done [09:11:03]FM_GetShiftState done [09:11:03]req_shift_opened done [09:11:03]requested_item shift.open_date is exist - process it [09:11:03]req_shift_open_date [09:11:03]req_shift_open_date done [09:11:03]produce_requested_data done [09:11:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73721,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:11:03]process_action_free close_receipt [09:11:03]json_value_free [09:11:03]json_value_free done [09:11:03]process_json_proto returns [09:11:03]Send response to host [09:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73721,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:11:03]free response buf [09:11:03]execute_script done [09:11:03]execute_script returns [09:11:03]free content buf [09:11:03]Sock 9.Close socket [09:11:03]Sock 9.Thread stoped [09:11:03]accept exits with 8 [09:11:03]New connection [09:11:03]New thread 3067575652 created [09:11:03]Thread 3067432292 joined [09:11:03]Waiting for new connection... [09:11:03] Sock 8.Parse request [09:11:03]Sock 8.Check first char [09:11:03]Sock 8.First char is OK [09:11:03]request: POST /json_proto HTTP/1.0 [09:11:03]Method: POST [09:11:03]URL: /json_proto [09:11:03]Method is POST - this is cgi request [09:11:03]url: /json_proto [09:11:03]query_string will be loaded in cgi processing [09:11:03]execute_cgi json_proto POST (null) [09:11:03]execute_cgi path=json_proto method=POST [09:11:03]POST find Content-Length [09:11:03]Host: 172.17.44.196:8080 [09:11:03]Content-Length: 680 [09:11:03]Content-Type: application/json [09:11:03] [09:11:03]POST finish read [09:11:03]Found Content-Length = 680 [09:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [09:11:03]execute_script... [09:11: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)1962722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [09:11:03]POST & json_proto [09:11:03]process_json_proto [09:11:03]json parsed OK: [09:11:03]protocol is kg_v1.0 [09:11:03]action value=close_receipt [09:11:03]process_action close_receipt [09:11:03]cmd_close_receipt [09:11:03]MH_GetDate [09:11:03]Write to MH i2c: F0 00 00 72 05 66 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: F0 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: F0 09 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: F0 09 00 72 05 00 28 C9 14 67 E7 19 F8 65 38 [09:11:03]GetLastDocTimeStamp 1729415460 [09:11:03]current date 1729415464 [09:11:03]FM_GetShiftState [09:11:03]SAM_PROTO_GetShiftState [09:11:03]wFMCommunicate request_size=4 [09:11:03]MH_SAM_APDU [09:11:03]CAPDU: 80 13 01 00 [09:11:03]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:03]Read from MH i2c: E2 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 0E 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3A [09:11:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:11:03]wFMCommunicate OK [09:11:03]SAM_PROTO_GetShiftState done [09:11:03]FM_GetShiftState done [09:11:03]opened in 1729384303 [09:11:03]opened+sec_in_day 1729470703 [09:11:03]quantity*price = 100050 [09:11:03]sum+1 = 100052 [09:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 48 20.10.2024 09:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73722 ФПД: 273111685644198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091104&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73722&fm=273111685644198&tin=02508201610067®Number=0000000000161154&sum=100000 [09:11:05]StoreToDocumentArchive [09:11:05]shift 170 fd 73722 [09:11:05]save to /storage/0170/doc_00073722 [09:11:05]save last doc name /storage/0170/doc_00073722 to /storage/kkm_last_doc_name [09:11:05]save OK [09:11:05]Clear old archive folders... [09:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:05]tlvbuf is 0032A1A0 [09:11:05]SAM_PROTO_ClearQueue [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 09 00 00 [09:11:05]Write to MH i2c: E2 08 00 80 05 80 09 00 00 00 00 00 00 F7 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 80 05 00 90 00 F9 [09:11:05]RAPDU: 90 00 [09:11:05]wFMCommunicate OK [09:11:05]SAM_PROTO_ClearQueue done [09:11:05]KKMCreateOFDPacket [09:11:05]OFDProtocolAddRootSTLVToBuf [09:11:05]FM_MakeSignedData [09:11:05]FM_MakeSignedData [09:11:05]SAM_PROTO_SignData [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 0D 01 02 [09:11:05]Write to MH i2c: E2 08 00 81 05 80 0D 01 02 00 00 00 00 FF [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [09:11:05]RAPDU: 90 00 [09:11:05]wFMCommunicate OK [09:11:05]wFMCommunicate request_size=255 [09:11:05]MH_SAM_APDU [09:11:05]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 30 00 00 00 F4 03 04 00 28 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 1F 01 00 35 04 06 00 F8 64 C5 01 [09:11:05]Write to MH i2c: E2 02 01 82 05 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 30 00 00 00 F4 03 04 00 28 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 1F 01 00 35 04 06 00 F8 64 C5 01 00 00 F9 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [09:11:05]RAPDU: 90 00 [09:11:05]wFMCommunicate OK [09:11:05]wFMCommunicate request_size=7 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 0D 02 02 02 BF A6 [09:11:05]Write to MH i2c: E2 0A 00 83 05 80 0D 02 02 02 00 BF A6 00 00 6B [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [09:11:05]RAPDU: 90 00 [09:11:05]wFMCommunicate OK [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 0D 03 02 [09:11:05]Write to MH i2c: E2 08 00 84 05 80 0D 03 02 00 00 00 00 04 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 0B 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 0B 00 84 05 00 03 93 CB 34 19 1B 16 5C 90 00 40 [09:11:05]RAPDU: 03 93 CB 34 19 1B 16 5C 90 00 [09:11:05]wFMCommunicate OK [09:11:05]SAM_PROTO_SignData done [09:11:05]FM_MakeSignedData done [09:11:05]CreateOFDProtocolMessage [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 11 00 00 [09:11:05]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 17 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [09:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:11:05]wFMCommunicate OK [09:11:05]CreateOFDProtocolMessage done [09:11:05]OFDSenderStorePacket 73722 [09:11:05]StoreOFDPacket docnum=73722 [09:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A9 4A 04 01 DE 9D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 30 00 00 00 F4 03 04 00 28 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 1F 01 00 35 04 06 00 F8 64 C5 01 BF A6 03 93 CB 34 19 1B 16 5C [09:11:06]CheckFolder [09:11:06]dirname=/storage/ofd_packets [09:11:06]CheckFolder done [09:11:06]ProducePacketName [09:11:06]name=ofd_packets/00073722 [09:11:06]NVStorageSaveData ofd_packets/00073722 [09:11:06]File name is /storage/ofd_packets/00073722 [09:11:06]Write 298 bytes [09:11:06]NVStorageSaveData done [09:11:06]OFDSenderStorePacket done [09:11:06]KKMCreateOFDPacket done [09:11:06]NVStorageSaveData kkm_last_timestamp [09:11:06]File name is /storage/kkm_last_timestamp [09:11:06]Write 4 bytes [09:11:06]NVStorageSaveData done [09:11:06]ExternCall_PrintAddStr [09:11:06]wPrintStart [09:11:06]Write to MH i2c: 01 00 00 86 05 8B [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 07 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [09:11:06]RasterBufferAndPrint [09:11:06]line Счет N : (1)1962722 [09:11:06]line ИНН: 02508201610067 [09:11:06]line Контрольно-Кассовый Чек [09:11:06]line ПРОДАЖА [09:11:06]line ТРК (МРК, ГНК) : 51 [09:11:06]line Товар: 2710194210 [09:11:06]line ДТ-К-5 [09:11:06]line 13.130 * 76.20 [09:11:06]line = 1000.51 [09:11:06]line НДС 12% НСП 1% [09:11:06]line > о реализуемом товаре [09:11:06]line ОКРУГЛЕНИЕ: -0.51 [09:11:06]line ИТОГО: 1000.00 [09:11:06]line Внесено: 1000.00 [09:11:06]line СДАЧА: 0.00 [09:11:06]line НСП 1% : 8.85 [09:11:06]line НДС 12% : 106.25 [09:11:06]line Наличными: 1000.00 [09:11:06]line Безнал.: 0.00 [09:11:06]line Место: АЗС № 133 "Партнер Нефть" [09:11:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:11:06]line СНО: Общий режим [09:11:06]line Чек 48 20.10.2024 09:11 [09:11:06]line Смена: 170 ФФД: 1.0 [09:11:06]line ЗНМ: 0300000020 [09:11:06]line РНМ: 0000000000161154 [09:11:06]line Версия ККМ: v1.0 [09:11:06]line ФМ: 0000000000963323 [09:11:06]line ФД: 73722 [09:11:06]line ФПД: 273111685644198 [09:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091104&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73722&fm=273111685644198&tin=02508201610067®Number=0000000000161154&sum=100000 [09:11:06]OFD Sender: Processing packet 73722 [packets to send 15, broken 14] [09:11:06]ProducePacketName [09:11:06]name=ofd_packets/00073722 [09:11:06]OFD Sender: To server: pG, [09:11:06]CommunicateWithHost lk.salyk.kg:30040 [09:11:06]ConnectInit lk.salyk.kg [09:11:06]written 0, free lines is 4095 [09:11:06]Connected sock=10 [09:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A9 4A 04 01 DE 9D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 30 00 00 00 F4 03 04 00 28 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 1F 01 00 35 04 06 00 F8 64 C5 01 BF A6 03 93 CB 34 19 1B 16 5C [09:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9A 23 47 00 DC 01 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 39 36 33 33 32 33 10 04 04 00 FA 1F 01 00 F4 03 04 00 0E 72 14 67 B6 04 01 00 00 8A B6 20 9F 7B 17 44 63 [09:11:06]CommunicateWithHost err = 0 [09:11:06]CheckOFDResponse [09:11:06]1017 (14) - 77093643461234 [09:11:06]1041 (16) - 0000000000963323 [09:11:06]1040 (4) - 73722 [09:11:06]1012 (4) - 20.10.2024 02:59 [09:11:06]1206 (1) - 0 [09:11:06]OFD Sender: Remove packet 73722 [09:11:06]ProducePacketName [09:11:06]name=ofd_packets/00073722 [09:11:06]NVStorageDeleteData [09:11:06]Write to MH i2c: 01 00 00 B0 05 B5 [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 07 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 AD 0C 75 [09:11:06]RasterBufferAndPrint [09:11:06]line [09:11:06]line [09:11:06]line [09:11:06]line [09:11:06]line [09:11:06]written 0, free lines is 3251 [09:11:06]MH_Cut [09:11:06]Write to MH i2c: D1 01 00 B7 05 01 8E [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: D1 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: D1 01 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: D1 01 00 B7 05 00 8D [09:11:06]Write to MH i2c: 01 00 00 B8 05 BD [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:07]OFD Sender: No OFD packet to send [09:11:07]*** Cut start [09:11:07]*** Partial cut [09:11:07]*** CUTSNS_PIN = 1 [09:11:07]*** CUTSNS_PIN = 0 [09:11:07]*** Brake cut motor [09:11:08]Read from MH i2c: 01 [09:11:08]MH_I2C_Read... [09:11:08]*** Stop cut motor [09:11:08]*** Cut end [09:11:08]Read from MH i2c: 01 07 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 FF 0F D2 [09:11:08]process_action close_receipt done [09:11:08]requested_data is exist [09:11:08]produce_requested_data [09:11:08]requested_item fm.sn is exist - process it [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 11 00 00 [09:11:08]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 17 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 85 [09:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:11:08]wFMCommunicate OK [09:11:08]requested_item fd.num is exist - process it [09:11:08]SAM_PROTO_GetFieldsCounters [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 13 00 00 [09:11:08]Write to MH i2c: E2 08 00 BA 05 80 13 00 00 00 00 00 00 3B [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:08]Read from MH i2c: E2 62 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 62 00 BA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FA 1F 01 00 0E 04 04 00 AA 00 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 A3 [09:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FA 1F 01 00 0E 04 04 00 AA 00 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 [09:11:08]wFMCommunicate OK [09:11:08]SAM_PROTO_GetFieldsCounters done [09:11:08]requested_item shift.num is exist - process it [09:11:08]requested_item shift.opened is exist - process it [09:11:08]req_shift_opened [09:11:08]FM_GetShiftState [09:11:08]SAM_PROTO_GetShiftState [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 13 01 00 [09:11:08]Write to MH i2c: E2 08 00 BB 05 80 13 01 00 00 00 00 00 3D [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 0E 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 0E 00 BB 05 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 82 [09:11:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:11:08]wFMCommunicate OK [09:11:08]SAM_PROTO_GetShiftState done [09:11:08]FM_GetShiftState done [09:11:08]req_shift_opened done [09:11:08]requested_item shift.open_date is exist - process it [09:11:08]req_shift_open_date [09:11:08]req_shift_open_date done [09:11:08]produce_requested_data done [09:11:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73722,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:11:08]process_action_free close_receipt [09:11:08]json_value_free [09:11:08]json_value_free done [09:11:08]process_json_proto returns [09:11:08]Send response to host [09:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73722,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:11:08]free response buf [09:11:08]execute_script done [09:11:08]execute_script returns [09:11:08]free content buf [09:11:08]Sock 8.Close socket [09:11:08]Sock 8.Thread stoped [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:29]accept exits with 9 [09:14:29]New connection [09:14:29]New thread 3067432292 created [09:14:29]Thread 3067575652 joined [09:14:29]Waiting for new connection... [09:14:29] Sock 9.Parse request [09:14:29]Sock 9.Check first char [09:14:29]Sock 9.First char is OK [09:14:29]request: POST /json_proto HTTP/1.0 [09:14:29]Method: POST [09:14:29]URL: /json_proto [09:14:29]Method is POST - this is cgi request [09:14:29]url: /json_proto [09:14:29]query_string will be loaded in cgi processing [09:14:29]execute_cgi json_proto POST (null) [09:14:29]execute_cgi path=json_proto method=POST [09:14:29]POST find Content-Length [09:14:29]Host: 172.17.44.196:8080 [09:14:29]Content-Length: 979 [09:14:29]Content-Type: application/json [09:14:29] [09:14:29]POST finish read [09:14:29]Found Content-Length = 979 [09:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 75.940, "sum" : 5710.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 75.94 \u0441\u043E\u043C", "deposit" : 5710.00, "total" : 5710.00, "payments": [ { "type": 0, "sum" : 5710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:29]execute_script... [09:14: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 : (1)1962723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 75.940, "sum" : 5710.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 75.94 \u0441\u043E\u043C", "deposit" : 5710.00, "total" : 5710.00, "payments": [ { "type": 0, "sum" : 5710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:29]POST & json_proto [09:14:29]process_json_proto [09:14:29]json parsed OK: [09:14:29]protocol is kg_v1.0 [09:14:29]action value=close_receipt [09:14:29]process_action close_receipt [09:14:29]cmd_close_receipt [09:14:29]MH_GetDate [09:14:29]Write to MH i2c: F0 00 00 BC 05 B0 [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 09 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 09 00 BC 05 00 F6 C9 14 67 E7 19 F8 65 50 [09:14:29]GetLastDocTimeStamp 1729415464 [09:14:29]current date 1729415670 [09:14:29]FM_GetShiftState [09:14:29]SAM_PROTO_GetShiftState [09:14:29]wFMCommunicate request_size=4 [09:14:29]MH_SAM_APDU [09:14:29]CAPDU: 80 13 01 00 [09:14:29]Write to MH i2c: E2 08 00 BD 05 80 13 01 00 00 00 00 00 3F [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:29]Read from MH i2c: E2 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: E2 0E 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: E2 0E 00 BD 05 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 84 [09:14:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:14:29]wFMCommunicate OK [09:14:29]SAM_PROTO_GetShiftState done [09:14:29]FM_GetShiftState done [09:14:29]opened in 1729384303 [09:14:29]opened+sec_in_day 1729470703 [09:14:29]quantity*price = 571068 [09:14:29]sum+1 = 571070 [09:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 5710.00 Внесено: 5710.00 СДАЧА: 0.00 НСП 1% : 50.54 НДС 12% : 606.44 Наличными: 5710.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 49 20.10.2024 09:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 75.94 сом ФМ: 0000000000963323 ФД: 73723 ФПД: 106369386865092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73723&fm=106369386865092&tin=02508201610067®Number=0000000000161154&sum=571000 [09:14:30]StoreToDocumentArchive [09:14:30]shift 170 fd 73723 [09:14:30]save to /storage/0170/doc_00073723 [09:14:30]save last doc name /storage/0170/doc_00073723 to /storage/kkm_last_doc_name [09:14:30]save OK [09:14:30]Clear old archive folders... [09:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:30]tlvbuf is 00326A10 [09:14:30]SAM_PROTO_ClearQueue [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 09 00 00 [09:14:30]Write to MH i2c: E2 08 00 CA 05 80 09 00 00 00 00 00 00 41 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [09:14:30]RAPDU: 90 00 [09:14:30]wFMCommunicate OK [09:14:30]SAM_PROTO_ClearQueue done [09:14:30]KKMCreateOFDPacket [09:14:30]OFDProtocolAddRootSTLVToBuf [09:14:30]FM_MakeSignedData [09:14:30]FM_MakeSignedData [09:14:30]SAM_PROTO_SignData [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 0D 01 02 [09:14:30]Write to MH i2c: E2 08 00 CB 05 80 0D 01 02 00 00 00 00 49 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [09:14:30]RAPDU: 90 00 [09:14:30]wFMCommunicate OK [09:14:30]wFMCommunicate request_size=255 [09:14:30]MH_SAM_APDU [09:14:30]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 A4 28 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 BD B6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 B6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 EC 00 00 00 00 07 04 06 00 78 B6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F6 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 1F 01 00 35 04 06 00 60 BE 0D 84 [09:14:30]Write to MH i2c: E2 02 01 CC 05 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 A4 28 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 BD B6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 B6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 EC 00 00 00 00 07 04 06 00 78 B6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F6 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 1F 01 00 35 04 06 00 60 BE 0D 84 00 00 4A [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [09:14:30]RAPDU: 90 00 [09:14:30]wFMCommunicate OK [09:14:30]wFMCommunicate request_size=7 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 0D 02 02 02 E1 C4 [09:14:30]Write to MH i2c: E2 0A 00 CD 05 80 0D 02 02 02 00 E1 C4 00 00 F5 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [09:14:30]RAPDU: 90 00 [09:14:30]wFMCommunicate OK [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 0D 03 02 [09:14:30]Write to MH i2c: E2 08 00 CE 05 80 0D 03 02 00 00 00 00 4E [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 0B 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 0B 00 CE 05 00 2D A3 51 F0 12 28 70 9C 90 00 A6 [09:14:30]RAPDU: 2D A3 51 F0 12 28 70 9C 90 00 [09:14:30]wFMCommunicate OK [09:14:30]SAM_PROTO_SignData done [09:14:30]FM_MakeSignedData done [09:14:30]CreateOFDProtocolMessage [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 11 00 00 [09:14:30]Write to MH i2c: E2 08 00 CF 05 80 11 00 00 00 00 00 00 4E [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 17 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 17 00 CF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [09:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:14:30]wFMCommunicate OK [09:14:30]CreateOFDProtocolMessage done [09:14:30]OFDSenderStorePacket 73723 [09:14:30]StoreOFDPacket docnum=73723 [09:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4D 1F 04 01 60 8B 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 A4 28 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 BD B6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 B6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 EC 00 00 00 00 07 04 06 00 78 B6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F6 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 1F 01 00 35 04 06 00 60 BE 0D 84 E1 C4 2D A3 51 F0 12 28 70 9C [09:14:30]CheckFolder [09:14:30]dirname=/storage/ofd_packets [09:14:30]CheckFolder done [09:14:30]ProducePacketName [09:14:30]name=ofd_packets/00073723 [09:14:30]NVStorageSaveData ofd_packets/00073723 [09:14:30]File name is /storage/ofd_packets/00073723 [09:14:30]Write 298 bytes [09:14:30]NVStorageSaveData done [09:14:30]OFDSenderStorePacket done [09:14:30]KKMCreateOFDPacket done [09:14:30]NVStorageSaveData kkm_last_timestamp [09:14:30]File name is /storage/kkm_last_timestamp [09:14:30]Write 4 bytes [09:14:30]NVStorageSaveData done [09:14:30]ExternCall_PrintAddStr [09:14:30]wPrintStart [09:14:30]Write to MH i2c: 01 00 00 D0 05 D5 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: 01 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: 01 07 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 FF 0F EA [09:14:30]RasterBufferAndPrint [09:14:30]line Счет N : (1)1962723 [09:14:30]line ИНН: 02508201610067 [09:14:30]line Контрольно-Кассовый Чек [09:14:30]line ПРОДАЖА [09:14:30]line ТРК (МРК, ГНК) : 21 [09:14:30]line Товар: 2710194210 [09:14:30]line ДТ-К-5 [09:14:30]line 75.940 * 75.20 [09:14:30]line = 5710.69 [09:14:30]line НДС 12% НСП 1% [09:14:30]line > о реализуемом товаре [09:14:30]line ОКРУГЛЕНИЕ: -0.69 [09:14:30]line ИТОГО: 5710.00 [09:14:30]line Внесено: 5710.00 [09:14:30]line СДАЧА: 0.00 [09:14:30]line НСП 1% : 50.54 [09:14:30]line НДС 12% : 606.44 [09:14:30]line Наличными: 5710.00 [09:14:30]line Безнал.: 0.00 [09:14:30]line Место: АЗС № 133 "Партнер Нефть" [09:14:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:14:30]line СНО: Общий режим [09:14:30]line Чек 49 20.10.2024 09:14 [09:14:30]line Смена: 170 ФФД: 1.0 [09:14:30]line ЗНМ: 0300000020 [09:14:30]line РНМ: 0000000000161154 [09:14:30]line Версия ККМ: v1.0 [09:14:30]line [09:14:30]line Дисконтная программа [09:14:30]line ДТ [09:14:30]line номер 133 [09:14:30]line сэкономлено 75.94 сом [09:14:30]line ФМ: 0000000000963323 [09:14:30]line ФД: 73723 [09:14:30]line ФПД: 106369386865092 [09:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73723&fm=106369386865092&tin=02508201610067®Number=0000000000161154&sum=571000 [09:14:31]OFD Sender: Processing packet 73723 [packets to send 15, broken 14] [09:14:31]ProducePacketName [09:14:31]name=ofd_packets/00073723 [09:14:31]OFD Sender: To server: pG, [09:14:31]CommunicateWithHost lk.salyk.kg:30040 [09:14:31]ConnectInit lk.salyk.kg [09:14:31]written 0, free lines is 4095 [09:14:31]Connected sock=10 [09:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4D 1F 04 01 60 8B 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 A4 28 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 BD B6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 B6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 EC 00 00 00 00 07 04 06 00 78 B6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F6 C9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 1F 01 00 35 04 06 00 60 BE 0D 84 E1 C4 2D A3 51 F0 12 28 70 9C [09:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EA A5 47 00 5E 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 39 36 33 33 32 33 10 04 04 00 FB 1F 01 00 F4 03 04 00 DB 72 14 67 B6 04 01 00 00 2C F2 BA 19 D1 87 B3 7A [09:14:31]CommunicateWithHost err = 0 [09:14:31]CheckOFDResponse [09:14:31]1017 (14) - 77093643461234 [09:14:31]1041 (16) - 0000000000963323 [09:14:31]1040 (4) - 73723 [09:14:31]1012 (4) - 20.10.2024 03:02 [09:14:31]1206 (1) - 0 [09:14:31]OFD Sender: Remove packet 73723 [09:14:31]ProducePacketName [09:14:31]name=ofd_packets/00073723 [09:14:31]NVStorageDeleteData [09:14:31]Write to MH i2c: 01 00 00 FF 05 04 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 FF 05 00 00 00 00 00 43 0C 5A [09:14:31]RasterBufferAndPrint [09:14:31]line [09:14:31]line [09:14:31]line [09:14:31]line [09:14:31]line [09:14:31]written 0, free lines is 3145 [09:14:31]MH_Cut [09:14:31]Write to MH i2c: D1 01 00 06 06 01 DE [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: D1 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: D1 01 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: D1 01 00 06 06 00 DD [09:14:31]Write to MH i2c: 01 00 00 07 06 0D [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:32]OFD Sender: No OFD packet to send [09:14:32]*** Cut start [09:14:32]*** Partial cut [09:14:32]*** CUTSNS_PIN = 1 [09:14:32]*** CUTSNS_PIN = 0 [09:14:33]*** Brake cut motor [09:14:33]Read from MH i2c: 01 [09:14:33]MH_I2C_Read... [09:14:33]*** Stop cut motor [09:14:33]*** Cut end [09:14:33]Read from MH i2c: 01 07 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 FF 0F 22 [09:14:33]process_action close_receipt done [09:14:33]requested_data is exist [09:14:33]produce_requested_data [09:14:33]requested_item fm.sn is exist - process it [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 11 00 00 [09:14:33]Write to MH i2c: E2 08 00 08 06 80 11 00 00 00 00 00 00 88 [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 08 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D5 [09:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:14:33]wFMCommunicate OK [09:14:33]requested_item fd.num is exist - process it [09:14:33]SAM_PROTO_GetFieldsCounters [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 13 00 00 [09:14:33]Write to MH i2c: E2 08 00 09 06 80 13 00 00 00 00 00 00 8B [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 62 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 62 00 09 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FB 1F 01 00 0E 04 04 00 AA 00 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 F7 [09:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FB 1F 01 00 0E 04 04 00 AA 00 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 [09:14:33]wFMCommunicate OK [09:14:33]SAM_PROTO_GetFieldsCounters done [09:14:33]requested_item shift.num is exist - process it [09:14:33]requested_item shift.opened is exist - process it [09:14:33]req_shift_opened [09:14:33]FM_GetShiftState [09:14:33]SAM_PROTO_GetShiftState [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 13 01 00 [09:14:33]Write to MH i2c: E2 08 00 0A 06 80 13 01 00 00 00 00 00 8D [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0E 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0E 00 0A 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D2 [09:14:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:14:33]wFMCommunicate OK [09:14:33]SAM_PROTO_GetShiftState done [09:14:33]FM_GetShiftState done [09:14:33]req_shift_opened done [09:14:33]requested_item shift.open_date is exist - process it [09:14:33]req_shift_open_date [09:14:33]req_shift_open_date done [09:14:33]produce_requested_data done [09:14:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73723,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:14:33]process_action_free close_receipt [09:14:33]json_value_free [09:14:33]json_value_free done [09:14:33]process_json_proto returns [09:14:33]Send response to host [09:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73723,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:14:33]free response buf [09:14:33]execute_script done [09:14:33]execute_script returns [09:14:33]free content buf [09:14:33]Sock 9.Close socket [09:14:33]Sock 9.Thread stoped [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:02]accept exits with 8 [09:16:02]New connection [09:16:02]New thread 3067575652 created [09:16:02]Thread 3067432292 joined [09:16:02]Waiting for new connection... [09:16:02] Sock 8.Parse request [09:16:02]Sock 8.Check first char [09:16:02]Sock 8.First char is OK [09:16:02]request: POST /json_proto HTTP/1.0 [09:16:02]Method: POST [09:16:02]URL: /json_proto [09:16:02]Method is POST - this is cgi request [09:16:02]url: /json_proto [09:16:02]query_string will be loaded in cgi processing [09:16:02]execute_cgi json_proto POST (null) [09:16:02]execute_cgi path=json_proto method=POST [09:16:02]POST find Content-Length [09:16:02]Host: 172.17.44.196:8080 [09:16:02]Content-Length: 645 [09:16:02]Content-Type: application/json [09:16:02] [09:16:02]POST finish read [09:16:02]Found Content-Length = 645 [09:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272741", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:02]execute_script... [09:16: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)272741", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:02]POST & json_proto [09:16:02]process_json_proto [09:16:02]json parsed OK: [09:16:02]protocol is kg_v1.0 [09:16:02]action value=close_receipt [09:16:02]process_action close_receipt [09:16:02]cmd_close_receipt [09:16:02]MH_GetDate [09:16:02]Write to MH i2c: F0 00 00 0B 06 00 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: F0 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: F0 09 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: F0 09 00 0B 06 00 53 CA 14 67 E7 19 F8 65 FE [09:16:02]GetLastDocTimeStamp 1729415670 [09:16:02]current date 1729415763 [09:16:02]FM_GetShiftState [09:16:02]SAM_PROTO_GetShiftState [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 13 01 00 [09:16:02]Write to MH i2c: E2 08 00 0C 06 80 13 01 00 00 00 00 00 8F [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 0E 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 0E 00 0C 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D4 [09:16:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:16:02]wFMCommunicate OK [09:16:02]SAM_PROTO_GetShiftState done [09:16:02]FM_GetShiftState done [09:16:02]opened in 1729384303 [09:16:02]opened+sec_in_day 1729470703 [09:16:02]quantity*price = 6500 [09:16:02]sum+1 = 6501 [09:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 50 20.10.2024 09:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73724 ФПД: 223843233939002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091603&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73724&fm=223843233939002&tin=02508201610067®Number=0000000000161154&sum=6500 0 [09:16:03]StoreToDocumentArchive [09:16:03]shift 170 fd 73724 [09:16:03]save to /storage/0170/doc_00073724 [09:16:03]save last doc name /storage/0170/doc_00073724 to /storage/kkm_last_doc_name [09:16:03]save OK [09:16:03]Clear old archive folders... [09:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:16:03]tlvbuf is 0039E040 [09:16:03]SAM_PROTO_ClearQueue [09:16:03]wFMCommunicate request_size=4 [09:16:03]MH_SAM_APDU [09:16:03]CAPDU: 80 09 00 00 [09:16:03]Write to MH i2c: E2 08 00 19 06 80 09 00 00 00 00 00 00 91 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [09:16:03]RAPDU: 90 00 [09:16:03]wFMCommunicate OK [09:16:03]SAM_PROTO_ClearQueue done [09:16:03]KKMCreateOFDPacket [09:16:03]OFDProtocolAddRootSTLVToBuf [09:16:03]FM_MakeSignedData [09:16:03]FM_MakeSignedData [09:16:03]SAM_PROTO_SignData [09:16:03]wFMCommunicate request_size=4 [09:16:03]MH_SAM_APDU [09:16:03]CAPDU: 80 0D 01 02 [09:16:03]Write to MH i2c: E2 08 00 1A 06 80 0D 01 02 00 00 00 00 99 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 1A 06 00 90 00 94 [09:16:03]RAPDU: 90 00 [09:16:03]wFMCommunicate OK [09:16:03]wFMCommunicate request_size=255 [09:16:03]MH_SAM_APDU [09:16:03]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 53 CA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [09:16:03]Write to MH i2c: E2 02 01 1B 06 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 53 CA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 52 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 1B 06 00 90 00 95 [09:16:03]RAPDU: 90 00 [09:16:03]wFMCommunicate OK [09:16:03]wFMCommunicate request_size=31 [09:16:03]MH_SAM_APDU [09:16:03]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 FC 1F 01 00 35 04 06 00 CB 95 90 71 BE 3A [09:16:03]Write to MH i2c: E2 22 00 1C 06 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 FC 1F 01 00 35 04 06 00 CB 95 90 71 BE 3A 00 00 36 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [09:16:03]RAPDU: 90 00 [09:16:03]wFMCommunicate OK [09:16:03]wFMCommunicate request_size=4 [09:16:03]MH_SAM_APDU [09:16:03]CAPDU: 80 0D 03 02 [09:16:03]Write to MH i2c: E2 08 00 1D 06 80 0D 03 02 00 00 00 00 9E [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 0B 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 0B 00 1D 06 00 AD 00 F0 63 58 93 AE EC 90 00 24 [09:16:03]RAPDU: AD 00 F0 63 58 93 AE EC 90 00 [09:16:03]wFMCommunicate OK [09:16:03]SAM_PROTO_SignData done [09:16:03]FM_MakeSignedData done [09:16:03]CreateOFDProtocolMessage [09:16:03]wFMCommunicate request_size=4 [09:16:03]MH_SAM_APDU [09:16:03]CAPDU: 80 11 00 00 [09:16:03]Write to MH i2c: E2 08 00 1E 06 80 11 00 00 00 00 00 00 9E [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 17 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 17 00 1E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EB [09:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:16:03]wFMCommunicate OK [09:16:03]CreateOFDProtocolMessage done [09:16:03]OFDSenderStorePacket 73724 [09:16:03]StoreOFDPacket docnum=73724 [09:16:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 81 1A 1C 01 E2 C6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 53 CA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 1F 01 00 35 04 06 00 CB 95 90 71 BE 3A AD 00 F0 63 58 93 AE EC [09:16:03]CheckFolder [09:16:03]dirname=/storage/ofd_packets [09:16:03]CheckFolder done [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00073724 [09:16:03]NVStorageSaveData ofd_packets/00073724 [09:16:03]File name is /storage/ofd_packets/00073724 [09:16:03]Write 322 bytes [09:16:03]NVStorageSaveData done [09:16:03]OFDSenderStorePacket done [09:16:03]KKMCreateOFDPacket done [09:16:03]NVStorageSaveData kkm_last_timestamp [09:16:03]File name is /storage/kkm_last_timestamp [09:16:03]Write 4 bytes [09:16:03]NVStorageSaveData done [09:16:03]ExternCall_PrintAddStr [09:16:03]wPrintStart [09:16:03]Write to MH i2c: 01 00 00 1F 06 25 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 07 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 FF 0F 3A [09:16:03]RasterBufferAndPrint [09:16:03]line Счет N : (3)272741 [09:16:03]line ИНН: 02508201610067 [09:16:03]line Контрольно-Кассовый Чек [09:16:03]line ПРОДАЖА [09:16:03]line Товар: 47011656 [09:16:03]line Водка Пшеничная 0,1л [09:16:03]line 1.000 * 65.00 [09:16:03]line = 65.00 [09:16:03]line НДС 12% НСП 1% [09:16:03]line > о реализуемом товаре [09:16:03]line ИТОГО: 65.00 [09:16:03]line НСП 1% : 0.57 [09:16:03]line НДС 12% : 6.90 [09:16:03]line Наличными: 65.00 [09:16:03]line Безнал.: 0.00 [09:16:03]line Место: АЗС № 133 "Партнер Нефть" [09:16:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:16:03]line СНО: Общий режим [09:16:03]line Чек 50 20.10.2024 09:16 [09:16:03]line Смена: 170 ФФД: 1.0 [09:16:03]line ЗНМ: 0300000020 [09:16:03]line РНМ: 0000000000161154 [09:16:03]line Версия ККМ: v1.0 [09:16:03]line ФМ: 0000000000963323 [09:16:03]line ФД: 73724 [09:16:03]line ФПД: 223843233939002 [09:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091603&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73724&fm=223843233939002&tin=02508201610067®Number=0000000000161154&sum=6500 [09:16:04]line 0 [09:16:04]OFD Sender: Processing packet 73724 [packets to send 15, broken 14] [09:16:04]ProducePacketName [09:16:04]name=ofd_packets/00073724 [09:16:04]OFD Sender: To server: pG, [09:16:04]CommunicateWithHost lk.salyk.kg:30040 [09:16:04]ConnectInit lk.salyk.kg [09:16:04]written 0, free lines is 4095 [09:16:04]Connected sock=10 [09:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 81 1A 1C 01 E2 C6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 53 CA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 1F 01 00 35 04 06 00 CB 95 90 71 BE 3A AD 00 F0 63 58 93 AE EC [09:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A5 57 47 00 27 E3 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 39 36 33 33 32 33 10 04 04 00 FC 1F 01 00 F4 03 04 00 38 73 14 67 B6 04 01 00 00 6C 2B DD B4 EF E1 99 41 [09:16:04]CommunicateWithHost err = 0 [09:16:04]CheckOFDResponse [09:16:04]1017 (14) - 77093643461234 [09:16:04]1041 (16) - 0000000000963323 [09:16:04]1040 (4) - 73724 [09:16:04]1012 (4) - 20.10.2024 03:04 [09:16:04]1206 (1) - 0 [09:16:04]OFD Sender: Remove packet 73724 [09:16:04]ProducePacketName [09:16:04]name=ofd_packets/00073724 [09:16:04]NVStorageDeleteData [09:16:04]Write to MH i2c: 01 00 00 46 06 4C [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: 01 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: 01 07 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 D7 0C 36 [09:16:04]RasterBufferAndPrint [09:16:04]line [09:16:04]line [09:16:04]line [09:16:04]line [09:16:04]line [09:16:04]written 0, free lines is 3290 [09:16:04]MH_Cut [09:16:04]Write to MH i2c: D1 01 00 4D 06 01 25 [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: D1 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: D1 01 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: D1 01 00 4D 06 00 24 [09:16:04]Write to MH i2c: 01 00 00 4E 06 54 [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:05]OFD Sender: No OFD packet to send [09:16:05]*** Cut start [09:16:05]*** Partial cut [09:16:05]*** CUTSNS_PIN = 1 [09:16:05]*** CUTSNS_PIN = 0 [09:16:05]*** Brake cut motor [09:16:06]Read from MH i2c: 01 [09:16:06]MH_I2C_Read... [09:16:06]*** Stop cut motor [09:16:06]*** Cut end [09:16:06]Read from MH i2c: 01 07 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [09:16:06]process_action close_receipt done [09:16:06]requested_data is exist [09:16:06]produce_requested_data [09:16:06]requested_item fm.sn is exist - process it [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 11 00 00 [09:16:06]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1C [09:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:16:06]wFMCommunicate OK [09:16:06]requested_item fd.num is exist - process it [09:16:06]SAM_PROTO_GetFieldsCounters [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 13 00 00 [09:16:06]Write to MH i2c: E2 08 00 50 06 80 13 00 00 00 00 00 00 D2 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 62 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 62 00 50 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FC 1F 01 00 0E 04 04 00 AA 00 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 42 [09:16:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FC 1F 01 00 0E 04 04 00 AA 00 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 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_GetFieldsCounters done [09:16:06]requested_item shift.num is exist - process it [09:16:06]requested_item shift.opened is exist - process it [09:16:06]req_shift_opened [09:16:06]FM_GetShiftState [09:16:06]SAM_PROTO_GetShiftState [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 13 01 00 [09:16:06]Write to MH i2c: E2 08 00 51 06 80 13 01 00 00 00 00 00 D4 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0E 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0E 00 51 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 19 [09:16:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_GetShiftState done [09:16:06]FM_GetShiftState done [09:16:06]req_shift_opened done [09:16:06]requested_item shift.open_date is exist - process it [09:16:06]req_shift_open_date [09:16:06]req_shift_open_date done [09:16:06]produce_requested_data done [09:16:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73724,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:16:06]process_action_free close_receipt [09:16:06]json_value_free [09:16:06]json_value_free done [09:16:06]process_json_proto returns [09:16:06]Send response to host [09:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73724,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:16:06]free response buf [09:16:06]execute_script done [09:16:06]execute_script returns [09:16:06]free content buf [09:16:06]Sock 8.Close socket [09:16:06]Sock 8.Thread stoped [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:38]accept exits with 9 [09:26:38]New connection [09:26:38]New thread 3067432292 created [09:26:38]Thread 3067575652 joined [09:26:38]Waiting for new connection... [09:26:38] Sock 9.Parse request [09:26:38]Sock 9.Check first char [09:26:38]Sock 9.First char is OK [09:26:38]request: POST /json_proto HTTP/1.0 [09:26:38]Method: POST [09:26:38]URL: /json_proto [09:26:38]Method is POST - this is cgi request [09:26:38]url: /json_proto [09:26:38]query_string will be loaded in cgi processing [09:26:38]execute_cgi json_proto POST (null) [09:26:38]execute_cgi path=json_proto method=POST [09:26:38]POST find Content-Length [09:26:38]Host: 172.17.44.196:8080 [09:26:38]Content-Length: 678 [09:26:38]Content-Type: application/json [09:26:38] [09:26:38]POST finish read [09:26:38]Found Content-Length = 678 [09:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [09:26:38]execute_script... [09:26: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 : (1)1962739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [09:26:38]POST & json_proto [09:26:38]process_json_proto [09:26:38]json parsed OK: [09:26:38]protocol is kg_v1.0 [09:26:38]action value=close_receipt [09:26:38]process_action close_receipt [09:26:38]cmd_close_receipt [09:26:38]MH_GetDate [09:26:38]Write to MH i2c: F0 00 00 52 06 47 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: F0 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: F0 09 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: F0 09 00 52 06 00 CF CC 14 67 E7 19 F8 65 C3 [09:26:38]GetLastDocTimeStamp 1729415763 [09:26:38]current date 1729416399 [09:26:38]FM_GetShiftState [09:26:38]SAM_PROTO_GetShiftState [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 13 01 00 [09:26:38]Write to MH i2c: E2 08 00 53 06 80 13 01 00 00 00 00 00 D6 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 0E 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 0E 00 53 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1B [09:26:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:26:38]wFMCommunicate OK [09:26:38]SAM_PROTO_GetShiftState done [09:26:38]FM_GetShiftState done [09:26:38]opened in 1729384303 [09:26:38]opened+sec_in_day 1729470703 [09:26:38]quantity*price = 50010 [09:26:38]sum+1 = 50012 [09:26:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 51 20.10.2024 09:26 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73725 ФПД: 172336149617627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73725&fm=172336149617627&tin=02508201610067®Number=0000000000161154&sum=50000 [09:26:40]StoreToDocumentArchive [09:26:40]shift 170 fd 73725 [09:26:40]save to /storage/0170/doc_00073725 [09:26:40]save last doc name /storage/0170/doc_00073725 to /storage/kkm_last_doc_name [09:26:40]save OK [09:26:40]Clear old archive folders... [09:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:40]tlvbuf is 00399490 [09:26:40]SAM_PROTO_ClearQueue [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 09 00 00 [09:26:40]Write to MH i2c: E2 08 00 60 06 80 09 00 00 00 00 00 00 D8 [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [09:26:40]RAPDU: 90 00 [09:26:40]wFMCommunicate OK [09:26:40]SAM_PROTO_ClearQueue done [09:26:40]KKMCreateOFDPacket [09:26:40]OFDProtocolAddRootSTLVToBuf [09:26:40]FM_MakeSignedData [09:26:40]FM_MakeSignedData [09:26:40]SAM_PROTO_SignData [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 0D 01 02 [09:26:40]Write to MH i2c: E2 08 00 61 06 80 0D 01 02 00 00 00 00 E0 [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 61 06 00 90 00 DB [09:26:40]RAPDU: 90 00 [09:26:40]wFMCommunicate OK [09:26:40]wFMCommunicate request_size=255 [09:26:40]MH_SAM_APDU [09:26:40]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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 33 00 00 00 F4 03 04 00 CF CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 1F 01 00 35 04 06 00 9C [09:26:40]Write to MH i2c: E2 02 01 62 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 33 00 00 00 F4 03 04 00 CF CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 1F 01 00 35 04 06 00 9C 00 00 E6 [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 62 06 00 90 00 DC [09:26:40]RAPDU: 90 00 [09:26:40]wFMCommunicate OK [09:26:40]wFMCommunicate request_size=10 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 0D 02 02 05 BD 22 FA DB DB [09:26:40]Write to MH i2c: E2 0D 00 63 06 80 0D 02 02 05 00 BD 22 FA DB DB 00 00 7C [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 03 00 63 06 00 90 00 DD [09:26:40]RAPDU: 90 00 [09:26:40]wFMCommunicate OK [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 0D 03 02 [09:26:40]Write to MH i2c: E2 08 00 64 06 80 0D 03 02 00 00 00 00 E5 [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 0B 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 0B 00 64 06 00 0B 36 3C B0 E5 16 36 1B 90 00 5F [09:26:40]RAPDU: 0B 36 3C B0 E5 16 36 1B 90 00 [09:26:40]wFMCommunicate OK [09:26:40]SAM_PROTO_SignData done [09:26:40]FM_MakeSignedData done [09:26:40]CreateOFDProtocolMessage [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 11 00 00 [09:26:40]Write to MH i2c: E2 08 00 65 06 80 11 00 00 00 00 00 00 E5 [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 17 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 17 00 65 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 32 [09:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:26:40]wFMCommunicate OK [09:26:40]CreateOFDProtocolMessage done [09:26:40]OFDSenderStorePacket 73725 [09:26:40]StoreOFDPacket docnum=73725 [09:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 97 03 07 01 A1 9C 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 33 00 00 00 F4 03 04 00 CF CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 1F 01 00 35 04 06 00 9C BD 22 FA DB DB 0B 36 3C B0 E5 16 36 1B [09:26:40]CheckFolder [09:26:40]dirname=/storage/ofd_packets [09:26:40]CheckFolder done [09:26:40]ProducePacketName [09:26:40]name=ofd_packets/00073725 [09:26:40]NVStorageSaveData ofd_packets/00073725 [09:26:40]File name is /storage/ofd_packets/00073725 [09:26:40]Write 301 bytes [09:26:40]NVStorageSaveData done [09:26:40]OFDSenderStorePacket done [09:26:40]KKMCreateOFDPacket done [09:26:40]NVStorageSaveData kkm_last_timestamp [09:26:40]File name is /storage/kkm_last_timestamp [09:26:40]Write 4 bytes [09:26:40]NVStorageSaveData done [09:26:40]ExternCall_PrintAddStr [09:26:40]wPrintStart [09:26:40]Write to MH i2c: 01 00 00 66 06 6C [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 07 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [09:26:40]RasterBufferAndPrint [09:26:40]line Счет N : (1)1962739 [09:26:40]line ИНН: 02508201610067 [09:26:40]line Контрольно-Кассовый Чек [09:26:40]line ПРОДАЖА [09:26:40]line ТРК (МРК, ГНК) : 64 [09:26:40]line Товар: 2710124500 [09:26:40]line Аи-95-К-5 [09:26:40]line 6.740 * 74.20 [09:26:40]line = 500.11 [09:26:40]line НДС 12% НСП 1% [09:26:40]line > о реализуемом товаре [09:26:40]line ОКРУГЛЕНИЕ: -0.11 [09:26:40]line ИТОГО: 500.00 [09:26:40]line Внесено: 500.00 [09:26:40]line СДАЧА: 0.00 [09:26:40]line НСП 1% : 4.43 [09:26:40]line НДС 12% : 53.11 [09:26:40]line Наличными: 500.00 [09:26:40]line Безнал.: 0.00 [09:26:40]line Место: АЗС № 133 "Партнер Нефть" [09:26:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:26:40]line СНО: Общий режим [09:26:40]line Чек 51 20.10.2024 09:26 [09:26:40]line Смена: 170 ФФД: 1.0 [09:26:40]line ЗНМ: 0300000020 [09:26:40]line РНМ: 0000000000161154 [09:26:40]line Версия ККМ: v1.0 [09:26:40]line ФМ: 0000000000963323 [09:26:40]line ФД: 73725 [09:26:40]line ФПД: 172336149617627 [09:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73725&fm=172336149617627&tin=02508201610067®Number=0000000000161154&sum=50000 [09:26:40]OFD Sender: Processing packet 73725 [packets to send 15, broken 14] [09:26:40]ProducePacketName [09:26:40]name=ofd_packets/00073725 [09:26:40]OFD Sender: To server: pG, [09:26:40]CommunicateWithHost lk.salyk.kg:30040 [09:26:40]ConnectInit lk.salyk.kg [09:26:40]written 0, free lines is 4095 [09:26:41]Connected sock=10 [09:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 97 03 07 01 A1 9C 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 33 00 00 00 F4 03 04 00 CF CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 1F 01 00 35 04 06 00 9C BD 22 FA DB DB 0B 36 3C B0 E5 16 36 1B [09:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0A 92 47 00 3E 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 39 36 33 33 32 33 10 04 04 00 FD 1F 01 00 F4 03 04 00 B4 75 14 67 B6 04 01 00 00 72 01 91 1F 4F 6E E9 13 [09:26:41]CommunicateWithHost err = 0 [09:26:41]CheckOFDResponse [09:26:41]1017 (14) - 77093643461234 [09:26:41]1041 (16) - 0000000000963323 [09:26:41]1040 (4) - 73725 [09:26:41]1012 (4) - 20.10.2024 03:15 [09:26:41]1206 (1) - 0 [09:26:41]OFD Sender: Remove packet 73725 [09:26:41]ProducePacketName [09:26:41]name=ofd_packets/00073725 [09:26:41]NVStorageDeleteData [09:26:41]Write to MH i2c: 01 00 00 90 06 96 [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 07 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 A5 0C 4E [09:26:41]RasterBufferAndPrint [09:26:41]line [09:26:41]line [09:26:41]line [09:26:41]line [09:26:41]line [09:26:41]written 0, free lines is 3242 [09:26:41]MH_Cut [09:26:41]Write to MH i2c: D1 01 00 97 06 01 6F [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: D1 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: D1 01 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: D1 01 00 97 06 00 6E [09:26:41]Write to MH i2c: 01 00 00 98 06 9E [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]OFD Sender: No OFD packet to send [09:26:42]*** Cut start [09:26:42]*** Partial cut [09:26:42]*** CUTSNS_PIN = 1 [09:26:42]*** CUTSNS_PIN = 0 [09:26:42]*** Brake cut motor [09:26:42]Read from MH i2c: 01 [09:26:42]MH_I2C_Read... [09:26:42]*** Stop cut motor [09:26:42]*** Cut end [09:26:42]Read from MH i2c: 01 07 00 [09:26:42]MH_I2C_Read... [09:26:42]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [09:26:42]process_action close_receipt done [09:26:42]requested_data is exist [09:26:42]produce_requested_data [09:26:42]requested_item fm.sn is exist - process it [09:26:42]wFMCommunicate request_size=4 [09:26:42]MH_SAM_APDU [09:26:42]CAPDU: 80 11 00 00 [09:26:42]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [09:26:42]Write i2c OK [09:26:42]MH_I2C_Read... [09:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:42]Read from MH i2c: E2 [09:26:42]MH_I2C_Read... [09:26:42]Read from MH i2c: E2 17 00 [09:26:42]MH_I2C_Read... [09:26:42]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 66 [09:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:26:42]wFMCommunicate OK [09:26:42]requested_item fd.num is exist - process it [09:26:42]SAM_PROTO_GetFieldsCounters [09:26:42]wFMCommunicate request_size=4 [09:26:42]MH_SAM_APDU [09:26:42]CAPDU: 80 13 00 00 [09:26:42]Write to MH i2c: E2 08 00 9A 06 80 13 00 00 00 00 00 00 1C [09:26:42]Write i2c OK [09:26:42]MH_I2C_Read... [09:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:43]Read from MH i2c: E2 [09:26:43]MH_I2C_Read... [09:26:43]Read from MH i2c: E2 62 00 [09:26:43]MH_I2C_Read... [09:26:43]Read from MH i2c: E2 62 00 9A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FD 1F 01 00 0E 04 04 00 AA 00 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 90 [09:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FD 1F 01 00 0E 04 04 00 AA 00 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 [09:26:43]wFMCommunicate OK [09:26:43]SAM_PROTO_GetFieldsCounters done [09:26:43]requested_item shift.num is exist - process it [09:26:43]requested_item shift.opened is exist - process it [09:26:43]req_shift_opened [09:26:43]FM_GetShiftState [09:26:43]SAM_PROTO_GetShiftState [09:26:43]wFMCommunicate request_size=4 [09:26:43]MH_SAM_APDU [09:26:43]CAPDU: 80 13 01 00 [09:26:43]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [09:26:43]Write i2c OK [09:26:43]MH_I2C_Read... [09:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:43]Read from MH i2c: E2 [09:26:43]MH_I2C_Read... [09:26:43]Read from MH i2c: E2 0E 00 [09:26:43]MH_I2C_Read... [09:26:43]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 63 [09:26:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:26:43]wFMCommunicate OK [09:26:43]SAM_PROTO_GetShiftState done [09:26:43]FM_GetShiftState done [09:26:43]req_shift_opened done [09:26:43]requested_item shift.open_date is exist - process it [09:26:43]req_shift_open_date [09:26:43]req_shift_open_date done [09:26:43]produce_requested_data done [09:26:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73725,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:26:43]process_action_free close_receipt [09:26:43]json_value_free [09:26:43]json_value_free done [09:26:43]process_json_proto returns [09:26:43]Send response to host [09:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73725,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:26:43]free response buf [09:26:43]execute_script done [09:26:43]execute_script returns [09:26:43]free content buf [09:26:43]Sock 9.Close socket [09:26:43]Sock 9.Thread stoped [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:18]accept exits with 8 [09:27:18]New connection [09:27:18]New thread 3067575652 created [09:27:18]Thread 3067432292 joined [09:27:18]Waiting for new connection... [09:27:18] Sock 8.Parse request [09:27:18]Sock 8.Check first char [09:27:18]Sock 8.First char is OK [09:27:18]request: POST /json_proto HTTP/1.0 [09:27:18]Method: POST [09:27:18]URL: /json_proto [09:27:18]Method is POST - this is cgi request [09:27:18]url: /json_proto [09:27:18]query_string will be loaded in cgi processing [09:27:18]execute_cgi json_proto POST (null) [09:27:18]execute_cgi path=json_proto method=POST [09:27:18]POST find Content-Length [09:27:18]Host: 172.17.44.196:8080 [09:27:18]Content-Length: 678 [09:27:18]Content-Type: application/json [09:27:18] [09:27:18]POST finish read [09:27:18]Found Content-Length = 678 [09:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962740", "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" : 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" ] } } [09:27:18]execute_script... [09:27: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 : (1)1962740", "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" : 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" ] } } [09:27:18]POST & json_proto [09:27:18]process_json_proto [09:27:18]json parsed OK: [09:27:18]protocol is kg_v1.0 [09:27:18]action value=close_receipt [09:27:18]process_action close_receipt [09:27:18]cmd_close_receipt [09:27:18]MH_GetDate [09:27:18]Write to MH i2c: F0 00 00 9C 06 91 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: F0 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: F0 09 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: F0 09 00 9C 06 00 F7 CC 14 67 E7 19 F8 65 35 [09:27:18]GetLastDocTimeStamp 1729416399 [09:27:18]current date 1729416439 [09:27:18]FM_GetShiftState [09:27:18]SAM_PROTO_GetShiftState [09:27:18]wFMCommunicate request_size=4 [09:27:18]MH_SAM_APDU [09:27:18]CAPDU: 80 13 01 00 [09:27:18]Write to MH i2c: E2 08 00 9D 06 80 13 01 00 00 00 00 00 20 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:18]Read from MH i2c: E2 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 0E 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: E2 0E 00 9D 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 65 [09:27:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:27:18]wFMCommunicate OK [09:27:18]SAM_PROTO_GetShiftState done [09:27:18]FM_GetShiftState done [09:27:18]opened in 1729384303 [09:27:18]opened+sec_in_day 1729470703 [09:27:18]quantity*price = 20003 [09:27:18]sum+1 = 20004 [09:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 52 20.10.2024 09:27 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73726 ФПД: 236240245789713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092719&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73726&fm=236240245789713&tin=02508201610067®Number=0000000000161154&sum=20000 [09:27:19]StoreToDocumentArchive [09:27:19]shift 170 fd 73726 [09:27:19]save to /storage/0170/doc_00073726 [09:27:19]save last doc name /storage/0170/doc_00073726 to /storage/kkm_last_doc_name [09:27:19]save OK [09:27:19]Clear old archive folders... [09:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:19]tlvbuf is 003258A0 [09:27:19]SAM_PROTO_ClearQueue [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 09 00 00 [09:27:19]Write to MH i2c: E2 08 00 AA 06 80 09 00 00 00 00 00 00 22 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 AA 06 00 90 00 24 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]SAM_PROTO_ClearQueue done [09:27:19]KKMCreateOFDPacket [09:27:19]OFDProtocolAddRootSTLVToBuf [09:27:19]FM_MakeSignedData [09:27:19]FM_MakeSignedData [09:27:19]SAM_PROTO_SignData [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 01 02 [09:27:19]Write to MH i2c: E2 08 00 AB 06 80 0D 01 02 00 00 00 00 2A [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 AB 06 00 90 00 25 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]wFMCommunicate request_size=255 [09:27:19]MH_SAM_APDU [09:27:19]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 34 00 00 00 F4 03 04 00 F7 CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 1F 01 00 35 04 06 00 D6 [09:27:19]Write to MH i2c: E2 02 01 AC 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 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 34 00 00 00 F4 03 04 00 F7 CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 1F 01 00 35 04 06 00 D6 00 00 7E [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 AC 06 00 90 00 26 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]wFMCommunicate request_size=10 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 02 02 05 DB F7 EE 94 11 [09:27:19]Write to MH i2c: E2 0D 00 AD 06 80 0D 02 02 05 00 DB F7 EE 94 11 00 00 9C [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 AD 06 00 90 00 27 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 03 02 [09:27:19]Write to MH i2c: E2 08 00 AE 06 80 0D 03 02 00 00 00 00 2F [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:20]Read from MH i2c: E2 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 0B 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 0B 00 AE 06 00 93 75 7D 92 12 0C B8 3F 90 00 5C [09:27:20]RAPDU: 93 75 7D 92 12 0C B8 3F 90 00 [09:27:20]wFMCommunicate OK [09:27:20]SAM_PROTO_SignData done [09:27:20]FM_MakeSignedData done [09:27:20]CreateOFDProtocolMessage [09:27:20]wFMCommunicate request_size=4 [09:27:20]MH_SAM_APDU [09:27:20]CAPDU: 80 11 00 00 [09:27:20]Write to MH i2c: E2 08 00 AF 06 80 11 00 00 00 00 00 00 2F [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:20]Read from MH i2c: E2 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 17 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: E2 17 00 AF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7C [09:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:27:20]wFMCommunicate OK [09:27:20]CreateOFDProtocolMessage done [09:27:20]OFDSenderStorePacket 73726 [09:27:20]StoreOFDPacket docnum=73726 [09:27:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4F 84 07 01 EB E2 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 34 00 00 00 F4 03 04 00 F7 CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 1F 01 00 35 04 06 00 D6 DB F7 EE 94 11 93 75 7D 92 12 0C B8 3F [09:27:20]CheckFolder [09:27:20]dirname=/storage/ofd_packets [09:27:20]CheckFolder done [09:27:20]ProducePacketName [09:27:20]name=ofd_packets/00073726 [09:27:20]NVStorageSaveData ofd_packets/00073726 [09:27:20]File name is /storage/ofd_packets/00073726 [09:27:20]Write 301 bytes [09:27:20]NVStorageSaveData done [09:27:20]OFDSenderStorePacket done [09:27:20]KKMCreateOFDPacket done [09:27:20]NVStorageSaveData kkm_last_timestamp [09:27:20]File name is /storage/kkm_last_timestamp [09:27:20]Write 4 bytes [09:27:20]NVStorageSaveData done [09:27:20]ExternCall_PrintAddStr [09:27:20]wPrintStart [09:27:20]Write to MH i2c: 01 00 00 B0 06 B6 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 B0 06 00 00 00 00 00 FF 0F CB [09:27:20]RasterBufferAndPrint [09:27:20]line Счет N : (1)1962740 [09:27:20]line ИНН: 02508201610067 [09:27:20]line Контрольно-Кассовый Чек [09:27:20]line ПРОДАЖА [09:27:20]line ТРК (МРК, ГНК) : 43 [09:27:20]line Товар: 2710124130 [09:27:20]line Аи-92-К-5 [09:27:20]line 2.990 * 66.90 [09:27:20]line = 200.03 [09:27:20]line НДС 12% НСП 1% [09:27:20]line > о реализуемом товаре [09:27:20]line ОКРУГЛЕНИЕ: -0.03 [09:27:20]line ИТОГО: 200.00 [09:27:20]line Внесено: 200.00 [09:27:20]line СДАЧА: 0.00 [09:27:20]line НСП 1% : 1.77 [09:27:20]line НДС 12% : 21.24 [09:27:20]line Наличными: 200.00 [09:27:20]line Безнал.: 0.00 [09:27:20]line Место: АЗС № 133 "Партнер Нефть" [09:27:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:27:20]line СНО: Общий режим [09:27:20]line Чек 52 20.10.2024 09:27 [09:27:20]line Смена: 170 ФФД: 1.0 [09:27:20]line ЗНМ: 0300000020 [09:27:20]line РНМ: 0000000000161154 [09:27:20]line Версия ККМ: v1.0 [09:27:20]line ФМ: 0000000000963323 [09:27:20]line ФД: 73726 [09:27:20]line ФПД: 236240245789713 [09:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092719&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73726&fm=236240245789713&tin=02508201610067®Number=0000000000161154&sum=20000 [09:27:20]OFD Sender: Processing packet 73726 [packets to send 15, broken 14] [09:27:20]ProducePacketName [09:27:20]name=ofd_packets/00073726 [09:27:20]OFD Sender: To server: pG, [09:27:20]CommunicateWithHost lk.salyk.kg:30040 [09:27:20]ConnectInit lk.salyk.kg [09:27:20]written 0, free lines is 4095 [09:27:20]Connected sock=10 [09:27:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4F 84 07 01 EB E2 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 34 00 00 00 F4 03 04 00 F7 CC 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 1F 01 00 35 04 06 00 D6 DB F7 EE 94 11 93 75 7D 92 12 0C B8 3F [09:27:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 78 32 47 00 F8 6F 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 39 36 33 33 32 33 10 04 04 00 FE 1F 01 00 F4 03 04 00 DC 75 14 67 B6 04 01 00 00 A5 32 D6 CA 52 81 B9 17 [09:27:20]CommunicateWithHost err = 0 [09:27:20]CheckOFDResponse [09:27:20]1017 (14) - 77093643461234 [09:27:20]1041 (16) - 0000000000963323 [09:27:20]1040 (4) - 73726 [09:27:20]1012 (4) - 20.10.2024 03:15 [09:27:20]1206 (1) - 0 [09:27:20]OFD Sender: Remove packet 73726 [09:27:20]ProducePacketName [09:27:20]name=ofd_packets/00073726 [09:27:20]NVStorageDeleteData [09:27:20]Write to MH i2c: 01 00 00 DA 06 E0 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 DA 06 00 00 00 00 00 AA 0C 9D [09:27:20]RasterBufferAndPrint [09:27:20]line [09:27:20]line [09:27:20]line [09:27:20]line [09:27:20]line [09:27:20]written 0, free lines is 3246 [09:27:20]MH_Cut [09:27:20]Write to MH i2c: D1 01 00 E1 06 01 B9 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: D1 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: D1 01 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: D1 01 00 E1 06 00 B8 [09:27:20]Write to MH i2c: 01 00 00 E2 06 E8 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:21]OFD Sender: No OFD packet to send [09:27:21]*** Cut start [09:27:21]*** Partial cut [09:27:21]*** CUTSNS_PIN = 1 [09:27:21]*** CUTSNS_PIN = 0 [09:27:22]*** Brake cut motor [09:27:22]Read from MH i2c: 01 [09:27:22]MH_I2C_Read... [09:27:22]*** Stop cut motor [09:27:22]*** Cut end [09:27:22]Read from MH i2c: 01 07 00 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: 01 07 00 E2 06 00 00 00 00 00 FF 0F FD [09:27:22]process_action close_receipt done [09:27:22]requested_data is exist [09:27:22]produce_requested_data [09:27:22]requested_item fm.sn is exist - process it [09:27:22]wFMCommunicate request_size=4 [09:27:22]MH_SAM_APDU [09:27:22]CAPDU: 80 11 00 00 [09:27:22]Write to MH i2c: E2 08 00 E3 06 80 11 00 00 00 00 00 00 63 [09:27:22]Write i2c OK [09:27:22]MH_I2C_Read... [09:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:22]Read from MH i2c: E2 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 17 00 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 17 00 E3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B0 [09:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:27:22]wFMCommunicate OK [09:27:22]requested_item fd.num is exist - process it [09:27:22]SAM_PROTO_GetFieldsCounters [09:27:22]wFMCommunicate request_size=4 [09:27:22]MH_SAM_APDU [09:27:22]CAPDU: 80 13 00 00 [09:27:22]Write to MH i2c: E2 08 00 E4 06 80 13 00 00 00 00 00 00 66 [09:27:22]Write i2c OK [09:27:22]MH_I2C_Read... [09:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:22]Read from MH i2c: E2 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 62 00 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 62 00 E4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FE 1F 01 00 0E 04 04 00 AA 00 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 DE [09:27:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FE 1F 01 00 0E 04 04 00 AA 00 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 [09:27:22]wFMCommunicate OK [09:27:22]SAM_PROTO_GetFieldsCounters done [09:27:22]requested_item shift.num is exist - process it [09:27:22]requested_item shift.opened is exist - process it [09:27:22]req_shift_opened [09:27:22]FM_GetShiftState [09:27:22]SAM_PROTO_GetShiftState [09:27:22]wFMCommunicate request_size=4 [09:27:22]MH_SAM_APDU [09:27:22]CAPDU: 80 13 01 00 [09:27:22]Write to MH i2c: E2 08 00 E5 06 80 13 01 00 00 00 00 00 68 [09:27:22]Write i2c OK [09:27:22]MH_I2C_Read... [09:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:22]Read from MH i2c: E2 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 0E 00 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 0E 00 E5 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AD [09:27:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:27:22]wFMCommunicate OK [09:27:22]SAM_PROTO_GetShiftState done [09:27:22]FM_GetShiftState done [09:27:22]req_shift_opened done [09:27:22]requested_item shift.open_date is exist - process it [09:27:22]req_shift_open_date [09:27:22]req_shift_open_date done [09:27:22]produce_requested_data done [09:27:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73726,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:27:22]process_action_free close_receipt [09:27:22]json_value_free [09:27:22]json_value_free done [09:27:22]process_json_proto returns [09:27:22]Send response to host [09:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73726,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:27:22]free response buf [09:27:22]execute_script done [09:27:22]execute_script returns [09:27:22]free content buf [09:27:22]Sock 8.Close socket [09:27:22]Sock 8.Thread stoped [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:00]accept exits with 9 [09:28:00]New connection [09:28:00]New thread 3067432292 created [09:28:00]Thread 3067575652 joined [09:28:00]Waiting for new connection... [09:28:00] Sock 9.Parse request [09:28:00]Sock 9.Check first char [09:28:00]Sock 9.First char is OK [09:28:00]request: POST /json_proto HTTP/1.0 [09:28:00]Method: POST [09:28:00]URL: /json_proto [09:28:00]Method is POST - this is cgi request [09:28:00]url: /json_proto [09:28:00]query_string will be loaded in cgi processing [09:28:00]execute_cgi json_proto POST (null) [09:28:00]execute_cgi path=json_proto method=POST [09:28:00]POST find Content-Length [09:28:00]Host: 172.17.44.196:8080 [09:28:00]Content-Length: 827 [09:28:00]Content-Type: application/json [09:28:00] [09:28:00]POST finish read [09:28:00]Found Content-Length = 827 [09:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272742", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" : 172.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:00]execute_script... [09:28: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)272742", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" : 172.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:00]POST & json_proto [09:28:00]process_json_proto [09:28:00]json parsed OK: [09:28:00]protocol is kg_v1.0 [09:28:00]action value=close_receipt [09:28:00]process_action close_receipt [09:28:00]cmd_close_receipt [09:28:00]MH_GetDate [09:28:00]Write to MH i2c: F0 00 00 E6 06 DB [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: F0 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: F0 09 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: F0 09 00 E6 06 00 21 CD 14 67 E7 19 F8 65 AA [09:28:00]GetLastDocTimeStamp 1729416439 [09:28:00]current date 1729416481 [09:28:00]FM_GetShiftState [09:28:00]SAM_PROTO_GetShiftState [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 13 01 00 [09:28:00]Write to MH i2c: E2 08 00 E7 06 80 13 01 00 00 00 00 00 6A [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 0E 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 0E 00 E7 06 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AF [09:28:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:28:00]wFMCommunicate OK [09:28:00]SAM_PROTO_GetShiftState done [09:28:00]FM_GetShiftState done [09:28:00]opened in 1729384303 [09:28:00]opened+sec_in_day 1729470703 [09:28:00]quantity*price = 13500 [09:28:00]sum+1 = 13501 [09:28:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 37.00 = 37.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 172.00 НСП 1% : 1.52 НДС 12% : 18.27 Наличными: 172.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 53 20.10.2024 09:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73727 ФПД: 153219860508982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092801&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73727&fm=153219860508982&tin=02508201610067®Number=0000000000161154&sum=17200 0 [09:28:01]StoreToDocumentArchive [09:28:01]shift 170 fd 73727 [09:28:01]save to /storage/0170/doc_00073727 [09:28:01]save last doc name /storage/0170/doc_00073727 to /storage/kkm_last_doc_name [09:28:01]save OK [09:28:01]Clear old archive folders... [09:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=367 [09:28:01]tlvbuf is 00395D60 [09:28:01]SAM_PROTO_ClearQueue [09:28:01]wFMCommunicate request_size=4 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 09 00 00 [09:28:01]Write to MH i2c: E2 08 00 F4 06 80 09 00 00 00 00 00 00 6C [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]SAM_PROTO_ClearQueue done [09:28:01]KKMCreateOFDPacket [09:28:01]OFDProtocolAddRootSTLVToBuf [09:28:01]FM_MakeSignedData [09:28:01]FM_MakeSignedData [09:28:01]SAM_PROTO_SignData [09:28:01]wFMCommunicate request_size=4 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 0D 01 02 [09:28:01]Write to MH i2c: E2 08 00 F5 06 80 0D 01 02 00 00 00 00 74 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 F5 06 00 90 00 6F [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]wFMCommunicate request_size=255 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 0D 02 02 FA 03 00 6F 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 BC 34 00 00 00 00 13 04 06 00 BC 34 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 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 [09:28:01]Write to MH i2c: E2 02 01 F6 06 80 0D 02 02 FA 00 03 00 6F 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 BC 34 00 00 00 00 13 04 06 00 BC 34 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 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 00 00 BD [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 F6 06 00 90 00 70 [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]wFMCommunicate request_size=126 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 0D 02 02 79 06 00 23 07 00 00 00 00 07 04 06 00 30 43 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 21 CD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 1F 01 00 35 04 06 00 8B 5A 47 5B B1 36 [09:28:01]Write to MH i2c: E2 81 00 F7 06 80 0D 02 02 79 00 06 00 23 07 00 00 00 00 07 04 06 00 30 43 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 21 CD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 1F 01 00 35 04 06 00 8B 5A 47 5B B1 36 00 00 0E [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:02]Read from MH i2c: E2 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 03 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [09:28:02]RAPDU: 90 00 [09:28:02]wFMCommunicate OK [09:28:02]wFMCommunicate request_size=4 [09:28:02]MH_SAM_APDU [09:28:02]CAPDU: 80 0D 03 02 [09:28:02]Write to MH i2c: E2 08 00 F8 06 80 0D 03 02 00 00 00 00 79 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:02]Read from MH i2c: E2 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 0B 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 0B 00 F8 06 00 29 74 FD 5E 76 F1 29 48 90 00 4A [09:28:02]RAPDU: 29 74 FD 5E 76 F1 29 48 90 00 [09:28:02]wFMCommunicate OK [09:28:02]SAM_PROTO_SignData done [09:28:02]FM_MakeSignedData done [09:28:02]CreateOFDProtocolMessage [09:28:02]wFMCommunicate request_size=4 [09:28:02]MH_SAM_APDU [09:28:02]CAPDU: 80 11 00 00 [09:28:02]Write to MH i2c: E2 08 00 F9 06 80 11 00 00 00 00 00 00 79 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:02]Read from MH i2c: E2 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 17 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 17 00 F9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C6 [09:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:28:02]wFMCommunicate OK [09:28:02]CreateOFDProtocolMessage done [09:28:02]OFDSenderStorePacket 73727 [09:28:02]StoreOFDPacket docnum=73727 [09:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 83 01 00 00 C5 18 7B 01 DB A5 5A 03 01 00 03 00 6F 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 BC 34 00 00 00 00 13 04 06 00 BC 34 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 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 07 00 00 00 00 07 04 06 00 30 43 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 21 CD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 1F 01 00 35 04 06 00 8B 5A 47 5B B1 36 29 74 FD 5E 76 F1 29 48 [09:28:02]CheckFolder [09:28:02]dirname=/storage/ofd_packets [09:28:02]CheckFolder done [09:28:02]ProducePacketName [09:28:02]name=ofd_packets/00073727 [09:28:02]NVStorageSaveData ofd_packets/00073727 [09:28:02]File name is /storage/ofd_packets/00073727 [09:28:02]Write 417 bytes [09:28:02]NVStorageSaveData done [09:28:02]OFDSenderStorePacket done [09:28:02]KKMCreateOFDPacket done [09:28:02]NVStorageSaveData kkm_last_timestamp [09:28:02]File name is /storage/kkm_last_timestamp [09:28:02]Write 4 bytes [09:28:02]NVStorageSaveData done [09:28:02]ExternCall_PrintAddStr [09:28:02]wPrintStart [09:28:02]Write to MH i2c: 01 00 00 FA 06 00 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 07 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 07 00 FA 06 00 00 00 00 00 FF 0F 15 [09:28:02]RasterBufferAndPrint [09:28:02]line Счет N : (3)272742 [09:28:02]line ИНН: 02508201610067 [09:28:02]line Контрольно-Кассовый Чек [09:28:02]line ПРОДАЖА [09:28:02]line Товар: 48745000 [09:28:02]line Сигареты Winston Purple Mix [09:28:02]line 1.000 * 135.00 [09:28:02]line = 135.00 [09:28:02]line НДС 12% НСП 1% [09:28:02]line > о реализуемом товаре [09:28:02]line Товар: 42113164 [09:28:02]line Жев Orbit White Spearmint [09:28:02]line 1.000 * 37.00 [09:28:02]line = 37.00 [09:28:02]line НДС 12% НСП 1% [09:28:02]line > о реализуемом товаре [09:28:02]line ИТОГО: 172.00 [09:28:02]line НСП 1% : 1.52 [09:28:02]line НДС 12% : 18.27 [09:28:02]line Наличными: 172.00 [09:28:02]line Безнал.: 0.00 [09:28:02]line Место: АЗС № 133 "Партнер Нефть" [09:28:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:28:02]line СНО: Общий режим [09:28:02]line Чек 53 20.10.2024 09:28 [09:28:02]line Смена: 170 ФФД: 1.0 [09:28:02]line ЗНМ: 0300000020 [09:28:02]line РНМ: 0000000000161154 [09:28:02]line Версия ККМ: v1.0 [09:28:02]line ФМ: 0000000000963323 [09:28:02]line ФД: 73727 [09:28:02]line ФПД: 153219860508982 [09:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092801&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73727&fm=153219860508982&tin=02508201610067®Number=0000000000161154&sum=17200 [09:28:02]line 0 [09:28:02]OFD Sender: Processing packet 73727 [packets to send 15, broken 14] [09:28:02]ProducePacketName [09:28:02]name=ofd_packets/00073727 [09:28:02]OFD Sender: To server: pG, [09:28:02]CommunicateWithHost lk.salyk.kg:30040 [09:28:02]ConnectInit lk.salyk.kg [09:28:02]written 0, free lines is 4095 [09:28:02]Connected sock=10 [09:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 83 01 00 00 C5 18 7B 01 DB A5 5A 03 01 00 03 00 6F 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 BC 34 00 00 00 00 13 04 06 00 BC 34 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 30 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 07 00 00 00 00 07 04 06 00 30 43 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 21 CD 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 1F 01 00 35 04 06 00 8B 5A 47 5B B1 36 29 74 FD 5E 76 F1 29 48 [09:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DD 25 47 00 4D 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 39 36 33 33 32 33 10 04 04 00 FF 1F 01 00 F4 03 04 00 06 76 14 67 B6 04 01 00 00 E0 C3 E3 DA 41 0D C9 5F [09:28:02]CommunicateWithHost err = 0 [09:28:02]CheckOFDResponse [09:28:02]1017 (14) - 77093643461234 [09:28:02]1041 (16) - 0000000000963323 [09:28:02]1040 (4) - 73727 [09:28:02]1012 (4) - 20.10.2024 03:16 [09:28:02]1206 (1) - 0 [09:28:02]OFD Sender: Remove packet 73727 [09:28:02]ProducePacketName [09:28:02]name=ofd_packets/00073727 [09:28:02]NVStorageDeleteData [09:28:02]Write to MH i2c: 01 00 00 27 07 2E [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: 01 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: 01 07 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: 01 07 00 27 07 00 00 00 00 00 70 0C B1 [09:28:03]RasterBufferAndPrint [09:28:03]line [09:28:03]line [09:28:03]line [09:28:03]line [09:28:03]line [09:28:03]written 0, free lines is 3188 [09:28:03]MH_Cut [09:28:03]Write to MH i2c: D1 01 00 2E 07 01 07 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: D1 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: D1 01 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: D1 01 00 2E 07 00 06 [09:28:03]Write to MH i2c: 01 00 00 2F 07 36 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]OFD Sender: No OFD packet to send [09:28:03]*** Cut start [09:28:03]*** Partial cut [09:28:03]*** CUTSNS_PIN = 1 [09:28:04]*** CUTSNS_PIN = 0 [09:28:04]*** Brake cut motor [09:28:04]Read from MH i2c: 01 [09:28:04]MH_I2C_Read... [09:28:04]*** Stop cut motor [09:28:04]*** Cut end [09:28:04]Read from MH i2c: 01 07 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 FF 0F 4B [09:28:04]process_action close_receipt done [09:28:04]requested_data is exist [09:28:04]produce_requested_data [09:28:04]requested_item fm.sn is exist - process it [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 11 00 00 [09:28:04]Write to MH i2c: E2 08 00 30 07 80 11 00 00 00 00 00 00 B1 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 17 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 17 00 30 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FE [09:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:28:04]wFMCommunicate OK [09:28:04]requested_item fd.num is exist - process it [09:28:04]SAM_PROTO_GetFieldsCounters [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 13 00 00 [09:28:04]Write to MH i2c: E2 08 00 31 07 80 13 00 00 00 00 00 00 B4 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 62 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 62 00 31 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FF 1F 01 00 0E 04 04 00 AA 00 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 30 [09:28:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FF 1F 01 00 0E 04 04 00 AA 00 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 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_GetFieldsCounters done [09:28:04]requested_item shift.num is exist - process it [09:28:04]requested_item shift.opened is exist - process it [09:28:04]req_shift_opened [09:28:04]FM_GetShiftState [09:28:04]SAM_PROTO_GetShiftState [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 13 01 00 [09:28:04]Write to MH i2c: E2 08 00 32 07 80 13 01 00 00 00 00 00 B6 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 32 07 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FB [09:28:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_GetShiftState done [09:28:04]FM_GetShiftState done [09:28:04]req_shift_opened done [09:28:04]requested_item shift.open_date is exist - process it [09:28:04]req_shift_open_date [09:28:04]req_shift_open_date done [09:28:04]produce_requested_data done [09:28:04]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73727,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:28:04]process_action_free close_receipt [09:28:04]json_value_free [09:28:04]json_value_free done [09:28:04]process_json_proto returns [09:28:04]Send response to host [09:28:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73727,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:28:04]free response buf [09:28:04]execute_script done [09:28:04]execute_script returns [09:28:04]free content buf [09:28:04]Sock 9.Close socket [09:28:04]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:50]accept exits with 8 [09:33:50]New connection [09:33:50]New thread 3067575652 created [09:33:50]Thread 3067432292 joined [09:33:50]Waiting for new connection... [09:33:50] Sock 8.Parse request [09:33:50]Sock 8.Check first char [09:33:50]Sock 8.First char is OK [09:33:50]request: POST /json_proto HTTP/1.0 [09:33:50]Method: POST [09:33:50]URL: /json_proto [09:33:50]Method is POST - this is cgi request [09:33:50]url: /json_proto [09:33:50]query_string will be loaded in cgi processing [09:33:50]execute_cgi json_proto POST (null) [09:33:50]execute_cgi path=json_proto method=POST [09:33:50]POST find Content-Length [09:33:50]Host: 172.17.44.196:8080 [09:33:50]Content-Length: 680 [09:33:50]Content-Type: application/json [09:33:50] [09:33:50]POST finish read [09:33:50]Found Content-Length = 680 [09:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.390, "sum" : 1401.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1401.00, "payments": [ { "type": 0, "sum" : 1401.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:50]execute_script... [09:33: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 : (1)1962745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.390, "sum" : 1401.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1401.00, "payments": [ { "type": 0, "sum" : 1401.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:50]POST & json_proto [09:33:50]process_json_proto [09:33:50]json parsed OK: [09:33:50]protocol is kg_v1.0 [09:33:50]action value=close_receipt [09:33:50]process_action close_receipt [09:33:50]cmd_close_receipt [09:33:50]MH_GetDate [09:33:50]Write to MH i2c: F0 00 00 33 07 29 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: F0 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: F0 09 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: F0 09 00 33 07 00 7F CE 14 67 E7 19 F8 65 57 [09:33:50]GetLastDocTimeStamp 1729416481 [09:33:50]current date 1729416831 [09:33:50]FM_GetShiftState [09:33:50]SAM_PROTO_GetShiftState [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 13 01 00 [09:33:50]Write to MH i2c: E2 08 00 34 07 80 13 01 00 00 00 00 00 B8 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0E 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0E 00 34 07 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FD [09:33:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_GetShiftState done [09:33:50]FM_GetShiftState done [09:33:50]opened in 1729384303 [09:33:50]opened+sec_in_day 1729470703 [09:33:50]quantity*price = 140131 [09:33:50]sum+1 = 140133 [09:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1401.00 Внесено: 1500.00 СДАЧА: 99.00 НСП 1% : 12.40 НДС 12% : 148.81 Наличными: 1401.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 54 20.10.2024 09:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73728 ФПД: 229832411755466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093351&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73728&fm=229832411755466&tin=02508201610067®Number=0000000000161154&sum=140100 [09:33:51]StoreToDocumentArchive [09:33:51]shift 170 fd 73728 [09:33:51]save to /storage/0170/doc_00073728 [09:33:51]save last doc name /storage/0170/doc_00073728 to /storage/kkm_last_doc_name [09:33:51]save OK [09:33:51]Clear old archive folders... [09:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:51]tlvbuf is 00396FF0 [09:33:51]SAM_PROTO_ClearQueue [09:33:51]wFMCommunicate request_size=4 [09:33:51]MH_SAM_APDU [09:33:51]CAPDU: 80 09 00 00 [09:33:51]Write to MH i2c: E2 08 00 41 07 80 09 00 00 00 00 00 00 BA [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:51]Read from MH i2c: E2 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [09:33:51]RAPDU: 90 00 [09:33:51]wFMCommunicate OK [09:33:51]SAM_PROTO_ClearQueue done [09:33:51]KKMCreateOFDPacket [09:33:51]OFDProtocolAddRootSTLVToBuf [09:33:51]FM_MakeSignedData [09:33:51]FM_MakeSignedData [09:33:51]SAM_PROTO_SignData [09:33:51]wFMCommunicate request_size=4 [09:33:51]MH_SAM_APDU [09:33:51]CAPDU: 80 0D 01 02 [09:33:51]Write to MH i2c: E2 08 00 42 07 80 0D 01 02 00 00 00 00 C2 [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:51]Read from MH i2c: E2 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [09:33:51]RAPDU: 90 00 [09:33:51]wFMCommunicate OK [09:33:51]wFMCommunicate request_size=255 [09:33:51]MH_SAM_APDU [09:33:51]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 D6 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 64 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3A 00 00 00 00 07 04 06 00 44 23 02 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 7F CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 20 01 00 35 04 06 00 D1 08 07 42 [09:33:51]Write to MH i2c: E2 02 01 43 07 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 D6 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 64 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3A 00 00 00 00 07 04 06 00 44 23 02 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 7F CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 20 01 00 35 04 06 00 D1 08 07 42 00 00 8D [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:51]Read from MH i2c: E2 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [09:33:51]RAPDU: 90 00 [09:33:51]wFMCommunicate OK [09:33:51]wFMCommunicate request_size=7 [09:33:51]MH_SAM_APDU [09:33:51]CAPDU: 80 0D 02 02 02 B3 CA [09:33:51]Write to MH i2c: E2 0A 00 44 07 80 0D 02 02 02 00 B3 CA 00 00 46 [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:51]Read from MH i2c: E2 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [09:33:51]RAPDU: 90 00 [09:33:51]wFMCommunicate OK [09:33:51]wFMCommunicate request_size=4 [09:33:51]MH_SAM_APDU [09:33:51]CAPDU: 80 0D 03 02 [09:33:51]Write to MH i2c: E2 08 00 45 07 80 0D 03 02 00 00 00 00 C7 [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0B 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0B 00 45 07 00 22 6A A1 21 A9 BE 00 EC 90 00 69 [09:33:52]RAPDU: 22 6A A1 21 A9 BE 00 EC 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_SignData done [09:33:52]FM_MakeSignedData done [09:33:52]CreateOFDProtocolMessage [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 11 00 00 [09:33:52]Write to MH i2c: E2 08 00 46 07 80 11 00 00 00 00 00 00 C7 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 17 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 17 00 46 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [09:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:33:52]wFMCommunicate OK [09:33:52]CreateOFDProtocolMessage done [09:33:52]OFDSenderStorePacket 73728 [09:33:52]StoreOFDPacket docnum=73728 [09:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 2E 26 04 01 C4 9A 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 D6 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 64 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3A 00 00 00 00 07 04 06 00 44 23 02 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 7F CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 20 01 00 35 04 06 00 D1 08 07 42 B3 CA 22 6A A1 21 A9 BE 00 EC [09:33:52]CheckFolder [09:33:52]dirname=/storage/ofd_packets [09:33:52]CheckFolder done [09:33:52]ProducePacketName [09:33:52]name=ofd_packets/00073728 [09:33:52]NVStorageSaveData ofd_packets/00073728 [09:33:52]File name is /storage/ofd_packets/00073728 [09:33:52]Write 298 bytes [09:33:52]NVStorageSaveData done [09:33:52]OFDSenderStorePacket done [09:33:52]KKMCreateOFDPacket done [09:33:52]NVStorageSaveData kkm_last_timestamp [09:33:52]File name is /storage/kkm_last_timestamp [09:33:52]Write 4 bytes [09:33:52]NVStorageSaveData done [09:33:52]ExternCall_PrintAddStr [09:33:52]wPrintStart [09:33:52]Write to MH i2c: 01 00 00 47 07 4E [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 07 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [09:33:52]RasterBufferAndPrint [09:33:52]line Счет N : (1)1962745 [09:33:52]line ИНН: 02508201610067 [09:33:52]line Контрольно-Кассовый Чек [09:33:52]line ПРОДАЖА [09:33:52]line ТРК (МРК, ГНК) : 21 [09:33:52]line Товар: 2710194210 [09:33:52]line ДТ-К-5 [09:33:52]line 18.390 * 76.20 [09:33:52]line = 1401.32 [09:33:52]line НДС 12% НСП 1% [09:33:52]line > о реализуемом товаре [09:33:52]line ОКРУГЛЕНИЕ: -0.32 [09:33:52]line ИТОГО: 1401.00 [09:33:52]line Внесено: 1500.00 [09:33:52]line СДАЧА: 99.00 [09:33:52]line НСП 1% : 12.40 [09:33:52]line НДС 12% : 148.81 [09:33:52]line Наличными: 1401.00 [09:33:52]line Безнал.: 0.00 [09:33:52]line Место: АЗС № 133 "Партнер Нефть" [09:33:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:33:52]line СНО: Общий режим [09:33:52]line Чек 54 20.10.2024 09:33 [09:33:52]line Смена: 170 ФФД: 1.0 [09:33:52]line ЗНМ: 0300000020 [09:33:52]line РНМ: 0000000000161154 [09:33:52]line Версия ККМ: v1.0 [09:33:52]line ФМ: 0000000000963323 [09:33:52]line ФД: 73728 [09:33:52]line ФПД: 229832411755466 [09:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093351&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73728&fm=229832411755466&tin=02508201610067®Number=0000000000161154&sum=140100 [09:33:52]OFD Sender: Processing packet 73728 [packets to send 15, broken 14] [09:33:52]ProducePacketName [09:33:52]name=ofd_packets/00073728 [09:33:52]OFD Sender: To server: pG, [09:33:52]CommunicateWithHost lk.salyk.kg:30040 [09:33:52]ConnectInit lk.salyk.kg [09:33:52]written 0, free lines is 4095 [09:33:52]Connected sock=11 [09:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 2E 26 04 01 C4 9A 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 D6 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 64 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3A 00 00 00 00 07 04 06 00 44 23 02 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 7F CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 20 01 00 35 04 06 00 D1 08 07 42 B3 CA 22 6A A1 21 A9 BE 00 EC [09:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9F 6D 47 00 1C 96 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 39 36 33 33 32 33 10 04 04 00 00 20 01 00 F4 03 04 00 64 77 14 67 B6 04 01 00 00 E1 54 F4 A9 FF 7E E2 99 [09:33:52]CommunicateWithHost err = 0 [09:33:52]CheckOFDResponse [09:33:52]1017 (14) - 77093643461234 [09:33:52]1041 (16) - 0000000000963323 [09:33:52]1040 (4) - 73728 [09:33:52]1012 (4) - 20.10.2024 03:22 [09:33:52]1206 (1) - 0 [09:33:52]OFD Sender: Remove packet 73728 [09:33:52]ProducePacketName [09:33:52]name=ofd_packets/00073728 [09:33:52]NVStorageDeleteData [09:33:52]Write to MH i2c: 01 00 00 71 07 78 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 07 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 AD 0C 38 [09:33:52]RasterBufferAndPrint [09:33:52]line [09:33:52]line [09:33:52]line [09:33:52]line [09:33:52]line [09:33:52]written 0, free lines is 3248 [09:33:52]MH_Cut [09:33:52]Write to MH i2c: D1 01 00 78 07 01 51 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: D1 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: D1 01 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: D1 01 00 78 07 00 50 [09:33:52]Write to MH i2c: 01 00 00 79 07 80 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:53]OFD Sender: No OFD packet to send [09:33:53]*** Cut start [09:33:53]*** Partial cut [09:33:53]*** CUTSNS_PIN = 1 [09:33:53]*** CUTSNS_PIN = 0 [09:33:54]*** Brake cut motor [09:33:54]Read from MH i2c: 01 [09:33:54]MH_I2C_Read... [09:33:54]*** Stop cut motor [09:33:54]*** Cut end [09:33:54]Read from MH i2c: 01 07 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 FF 0F 95 [09:33:54]process_action close_receipt done [09:33:54]requested_data is exist [09:33:54]produce_requested_data [09:33:54]requested_item fm.sn is exist - process it [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 11 00 00 [09:33:54]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 48 [09:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:33:54]wFMCommunicate OK [09:33:54]requested_item fd.num is exist - process it [09:33:54]SAM_PROTO_GetFieldsCounters [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 13 00 00 [09:33:54]Write to MH i2c: E2 08 00 7B 07 80 13 00 00 00 00 00 00 FE [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 62 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 62 00 7B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 00 20 01 00 0E 04 04 00 AA 00 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 7F [09:33:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 00 20 01 00 0E 04 04 00 AA 00 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 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_GetFieldsCounters done [09:33:54]requested_item shift.num is exist - process it [09:33:54]requested_item shift.opened is exist - process it [09:33:54]req_shift_opened [09:33:54]FM_GetShiftState [09:33:54]SAM_PROTO_GetShiftState [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 13 01 00 [09:33:54]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0E 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 45 [09:33:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_GetShiftState done [09:33:54]FM_GetShiftState done [09:33:54]req_shift_opened done [09:33:54]requested_item shift.open_date is exist - process it [09:33:54]req_shift_open_date [09:33:54]req_shift_open_date done [09:33:54]produce_requested_data done [09:33:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73728,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:33:54]process_action_free close_receipt [09:33:54]json_value_free [09:33:54]json_value_free done [09:33:54]process_json_proto returns [09:33:54]Send response to host [09:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73728,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:33:54]free response buf [09:33:54]execute_script done [09:33:54]execute_script returns [09:33:54]free content buf [09:33:54]Sock 8.Close socket [09:33:54]Sock 8.Thread stoped [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:03]accept exits with 9 [09:34:03]New connection [09:34:03]New thread 3067432292 created [09:34:03]Thread 3067575652 joined [09:34:03]Waiting for new connection... [09:34:03] Sock 9.Parse request [09:34:03]Sock 9.Check first char [09:34:03]Sock 9.First char is OK [09:34:03]request: POST /json_proto HTTP/1.0 [09:34:03]Method: POST [09:34:03]URL: /json_proto [09:34:03]Method is POST - this is cgi request [09:34:03]url: /json_proto [09:34:03]query_string will be loaded in cgi processing [09:34:03]execute_cgi json_proto POST (null) [09:34:03]execute_cgi path=json_proto method=POST [09:34:03]POST find Content-Length [09:34:03]Host: 172.17.44.196:8080 [09:34:03]Content-Length: 678 [09:34:03]Content-Type: application/json [09:34:03] [09:34:03]POST finish read [09:34:03]Found Content-Length = 678 [09:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962746", "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" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:03]execute_script... [09:34: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)1962746", "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" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:03]POST & json_proto [09:34:03]process_json_proto [09:34:03]json parsed OK: [09:34:03]protocol is kg_v1.0 [09:34:03]action value=close_receipt [09:34:03]process_action close_receipt [09:34:03]cmd_close_receipt [09:34:03]MH_GetDate [09:34:03]Write to MH i2c: F0 00 00 7D 07 73 [09:34:03]Write i2c OK [09:34:03]MH_I2C_Read... [09:34:03]Read from MH i2c: F0 [09:34:03]MH_I2C_Read... [09:34:03]Read from MH i2c: F0 09 00 [09:34:03]MH_I2C_Read... [09:34:03]Read from MH i2c: F0 09 00 7D 07 00 8C CE 14 67 E7 19 F8 65 AE [09:34:03]GetLastDocTimeStamp 1729416831 [09:34:03]current date 1729416844 [09:34:03]FM_GetShiftState [09:34:03]SAM_PROTO_GetShiftState [09:34:03]wFMCommunicate request_size=4 [09:34:03]MH_SAM_APDU [09:34:03]CAPDU: 80 13 01 00 [09:34:03]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [09:34:03]Write i2c OK [09:34:03]MH_I2C_Read... [09:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:03]Read from MH i2c: E2 [09:34:03]MH_I2C_Read... [09:34:03]Read from MH i2c: E2 0E 00 [09:34:03]MH_I2C_Read... [09:34:03]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 47 [09:34:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:34:03]wFMCommunicate OK [09:34:03]SAM_PROTO_GetShiftState done [09:34:03]FM_GetShiftState done [09:34:03]opened in 1729384303 [09:34:03]opened+sec_in_day 1729470703 [09:34:03]quantity*price = 60009 [09:34:03]sum+1 = 60010 [09:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 55 20.10.2024 09:34 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73729 ФПД: 238930039807455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093404&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73729&fm=238930039807455&tin=02508201610067®Number=0000000000161154&sum=60000 [09:34:04]StoreToDocumentArchive [09:34:04]shift 170 fd 73729 [09:34:04]save to /storage/0170/doc_00073729 [09:34:04]save last doc name /storage/0170/doc_00073729 to /storage/kkm_last_doc_name [09:34:04]save OK [09:34:04]Clear old archive folders... [09:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:04]tlvbuf is 00396410 [09:34:04]SAM_PROTO_ClearQueue [09:34:04]wFMCommunicate request_size=4 [09:34:04]MH_SAM_APDU [09:34:04]CAPDU: 80 09 00 00 [09:34:04]Write to MH i2c: E2 08 00 8B 07 80 09 00 00 00 00 00 00 04 [09:34:04]Write i2c OK [09:34:04]MH_I2C_Read... [09:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:04]Read from MH i2c: E2 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 03 00 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [09:34:04]RAPDU: 90 00 [09:34:04]wFMCommunicate OK [09:34:04]SAM_PROTO_ClearQueue done [09:34:04]KKMCreateOFDPacket [09:34:04]OFDProtocolAddRootSTLVToBuf [09:34:04]FM_MakeSignedData [09:34:04]FM_MakeSignedData [09:34:04]SAM_PROTO_SignData [09:34:04]wFMCommunicate request_size=4 [09:34:04]MH_SAM_APDU [09:34:04]CAPDU: 80 0D 01 02 [09:34:04]Write to MH i2c: E2 08 00 8C 07 80 0D 01 02 00 00 00 00 0C [09:34:04]Write i2c OK [09:34:04]MH_I2C_Read... [09:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:04]Read from MH i2c: E2 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 03 00 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [09:34:04]RAPDU: 90 00 [09:34:04]wFMCommunicate OK [09:34:04]wFMCommunicate request_size=255 [09:34:04]MH_SAM_APDU [09:34:04]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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 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 8C CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 20 01 00 35 04 06 00 D9 [09:34:04]Write to MH i2c: E2 02 01 8D 07 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 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 8C CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 20 01 00 35 04 06 00 D9 00 00 1C [09:34:04]Write i2c OK [09:34:04]MH_I2C_Read... [09:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:05]Read from MH i2c: E2 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 03 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [09:34:05]RAPDU: 90 00 [09:34:05]wFMCommunicate OK [09:34:05]wFMCommunicate request_size=10 [09:34:05]MH_SAM_APDU [09:34:05]CAPDU: 80 0D 02 02 05 4E 3C 26 1D DF [09:34:05]Write to MH i2c: E2 0D 00 8E 07 80 0D 02 02 05 00 4E 3C 26 1D DF 00 00 C5 [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:05]Read from MH i2c: E2 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 03 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [09:34:05]RAPDU: 90 00 [09:34:05]wFMCommunicate OK [09:34:05]wFMCommunicate request_size=4 [09:34:05]MH_SAM_APDU [09:34:05]CAPDU: 80 0D 03 02 [09:34:05]Write to MH i2c: E2 08 00 8F 07 80 0D 03 02 00 00 00 00 11 [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:05]Read from MH i2c: E2 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 0B 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 0B 00 8F 07 00 7E 10 3E 83 FB 8F 59 F1 90 00 35 [09:34:05]RAPDU: 7E 10 3E 83 FB 8F 59 F1 90 00 [09:34:05]wFMCommunicate OK [09:34:05]SAM_PROTO_SignData done [09:34:05]FM_MakeSignedData done [09:34:05]CreateOFDProtocolMessage [09:34:05]wFMCommunicate request_size=4 [09:34:05]MH_SAM_APDU [09:34:05]CAPDU: 80 11 00 00 [09:34:05]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:05]Read from MH i2c: E2 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 17 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5E [09:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:34:05]wFMCommunicate OK [09:34:05]CreateOFDProtocolMessage done [09:34:05]OFDSenderStorePacket 73729 [09:34:05]StoreOFDPacket docnum=73729 [09:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DC EB 07 01 A8 1B 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 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 8C CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 20 01 00 35 04 06 00 D9 4E 3C 26 1D DF 7E 10 3E 83 FB 8F 59 F1 [09:34:05]CheckFolder [09:34:05]dirname=/storage/ofd_packets [09:34:05]CheckFolder done [09:34:05]ProducePacketName [09:34:05]name=ofd_packets/00073729 [09:34:05]NVStorageSaveData ofd_packets/00073729 [09:34:05]File name is /storage/ofd_packets/00073729 [09:34:05]Write 301 bytes [09:34:05]NVStorageSaveData done [09:34:05]OFDSenderStorePacket done [09:34:05]KKMCreateOFDPacket done [09:34:05]NVStorageSaveData kkm_last_timestamp [09:34:05]File name is /storage/kkm_last_timestamp [09:34:05]Write 4 bytes [09:34:05]NVStorageSaveData done [09:34:05]ExternCall_PrintAddStr [09:34:05]wPrintStart [09:34:05]Write to MH i2c: 01 00 00 91 07 98 [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [09:34:05]RasterBufferAndPrint [09:34:05]line Счет N : (1)1962746 [09:34:05]line ИНН: 02508201610067 [09:34:05]line Контрольно-Кассовый Чек [09:34:05]line ПРОДАЖА [09:34:05]line ТРК (МРК, ГНК) : 43 [09:34:05]line Товар: 2710124130 [09:34:05]line Аи-92-К-5 [09:34:05]line 8.970 * 66.90 [09:34:05]line = 600.09 [09:34:05]line НДС 12% НСП 1% [09:34:05]line > о реализуемом товаре [09:34:05]line ОКРУГЛЕНИЕ: -0.09 [09:34:05]line ИТОГО: 600.00 [09:34:05]line Внесено: 600.00 [09:34:05]line СДАЧА: 0.00 [09:34:05]line НСП 1% : 5.31 [09:34:05]line НДС 12% : 63.73 [09:34:05]line Наличными: 600.00 [09:34:05]line Безнал.: 0.00 [09:34:05]line Место: АЗС № 133 "Партнер Нефть" [09:34:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:34:05]line СНО: Общий режим [09:34:05]line Чек 55 20.10.2024 09:34 [09:34:05]line Смена: 170 ФФД: 1.0 [09:34:05]line ЗНМ: 0300000020 [09:34:05]line РНМ: 0000000000161154 [09:34:05]line Версия ККМ: v1.0 [09:34:05]line ФМ: 0000000000963323 [09:34:05]line ФД: 73729 [09:34:05]line ФПД: 238930039807455 [09:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093404&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73729&fm=238930039807455&tin=02508201610067®Number=0000000000161154&sum=60000 [09:34:05]OFD Sender: Processing packet 73729 [packets to send 15, broken 14] [09:34:05]ProducePacketName [09:34:05]name=ofd_packets/00073729 [09:34:05]OFD Sender: To server: pG, [09:34:05]CommunicateWithHost lk.salyk.kg:30040 [09:34:05]ConnectInit lk.salyk.kg [09:34:05]written 0, free lines is 4095 [09:34:05]Connected sock=10 [09:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DC EB 07 01 A8 1B 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 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 8C CE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 20 01 00 35 04 06 00 D9 4E 3C 26 1D DF 7E 10 3E 83 FB 8F 59 F1 [09:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5C 0D 47 00 38 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 39 36 33 33 32 33 10 04 04 00 01 20 01 00 F4 03 04 00 71 77 14 67 B6 04 01 00 00 54 D5 17 7F 98 DE EF 99 [09:34:06]CommunicateWithHost err = 0 [09:34:06]CheckOFDResponse [09:34:06]1017 (14) - 77093643461234 [09:34:06]1041 (16) - 0000000000963323 [09:34:06]1040 (4) - 73729 [09:34:06]1012 (4) - 20.10.2024 03:22 [09:34:06]1206 (1) - 0 [09:34:06]OFD Sender: Remove packet 73729 [09:34:06]ProducePacketName [09:34:06]name=ofd_packets/00073729 [09:34:06]NVStorageDeleteData [09:34:06]Write to MH i2c: 01 00 00 BB 07 C2 [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: 01 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: 01 07 00 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 B5 0C 8A [09:34:06]RasterBufferAndPrint [09:34:06]line [09:34:06]line [09:34:06]line [09:34:06]line [09:34:06]line [09:34:06]written 0, free lines is 3258 [09:34:06]MH_Cut [09:34:06]Write to MH i2c: D1 01 00 C2 07 01 9B [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: D1 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: D1 01 00 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: D1 01 00 C2 07 00 9A [09:34:06]Write to MH i2c: 01 00 00 C3 07 CA [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]OFD Sender: No OFD packet to send [09:34:07]*** Cut start [09:34:07]*** Partial cut [09:34:07]*** CUTSNS_PIN = 1 [09:34:07]*** CUTSNS_PIN = 0 [09:34:07]*** Brake cut motor [09:34:07]Read from MH i2c: 01 [09:34:07]MH_I2C_Read... [09:34:07]*** Stop cut motor [09:34:07]*** Cut end [09:34:07]Read from MH i2c: 01 07 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FF 0F DF [09:34:07]process_action close_receipt done [09:34:07]requested_data is exist [09:34:07]produce_requested_data [09:34:07]requested_item fm.sn is exist - process it [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 11 00 00 [09:34:07]Write to MH i2c: E2 08 00 C4 07 80 11 00 00 00 00 00 00 45 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 17 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 17 00 C4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 92 [09:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:34:07]wFMCommunicate OK [09:34:07]requested_item fd.num is exist - process it [09:34:07]SAM_PROTO_GetFieldsCounters [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 13 00 00 [09:34:07]Write to MH i2c: E2 08 00 C5 07 80 13 00 00 00 00 00 00 48 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 62 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 62 00 C5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 01 20 01 00 0E 04 04 00 AA 00 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 CD [09:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 01 20 01 00 0E 04 04 00 AA 00 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 [09:34:07]wFMCommunicate OK [09:34:07]SAM_PROTO_GetFieldsCounters done [09:34:07]requested_item shift.num is exist - process it [09:34:07]requested_item shift.opened is exist - process it [09:34:07]req_shift_opened [09:34:07]FM_GetShiftState [09:34:07]SAM_PROTO_GetShiftState [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 13 01 00 [09:34:07]Write to MH i2c: E2 08 00 C6 07 80 13 01 00 00 00 00 00 4A [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 0E 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 0E 00 C6 07 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8F [09:34:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:34:07]wFMCommunicate OK [09:34:07]SAM_PROTO_GetShiftState done [09:34:07]FM_GetShiftState done [09:34:07]req_shift_opened done [09:34:07]requested_item shift.open_date is exist - process it [09:34:07]req_shift_open_date [09:34:07]req_shift_open_date done [09:34:07]produce_requested_data done [09:34:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73729,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:34:07]process_action_free close_receipt [09:34:07]json_value_free [09:34:07]json_value_free done [09:34:07]process_json_proto returns [09:34:07]Send response to host [09:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73729,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:34:07]free response buf [09:34:07]execute_script done [09:34:07]execute_script returns [09:34:07]free content buf [09:34:07]Sock 9.Close socket [09:34:07]Sock 9.Thread stoped [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]accept exits with 8 [09:39:36]New connection [09:39:36]New thread 3067575652 created [09:39:36]Thread 3067432292 joined [09:39:36]Waiting for new connection... [09:39:36] Sock 8.Parse request [09:39:36]Sock 8.Check first char [09:39:36]Sock 8.First char is OK [09:39:36]request: POST /json_proto HTTP/1.0 [09:39:36]Method: POST [09:39:36]URL: /json_proto [09:39:36]Method is POST - this is cgi request [09:39:36]url: /json_proto [09:39:36]query_string will be loaded in cgi processing [09:39:36]execute_cgi json_proto POST (null) [09:39:36]execute_cgi path=json_proto method=POST [09:39:36]POST find Content-Length [09:39:36]Host: 172.17.44.196:8080 [09:39:36]Content-Length: 773 [09:39:36]Content-Type: application/json [09:39:36] [09:39:36]POST finish read [09:39:36]Found Content-Length = 773 [09:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272743", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]execute_script... [09:39: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)272743", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]POST & json_proto [09:39:36]process_json_proto [09:39:36]json parsed OK: [09:39:36]protocol is kg_v1.0 [09:39:36]action value=close_receipt [09:39:36]process_action close_receipt [09:39:36]cmd_close_receipt [09:39:36]MH_GetDate [09:39:36]Write to MH i2c: F0 00 00 C7 07 BD [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 C7 07 00 D9 CF 14 67 E7 19 F8 65 46 [09:39:36]GetLastDocTimeStamp 1729416844 [09:39:36]current date 1729417177 [09:39:36]FM_GetShiftState [09:39:36]SAM_PROTO_GetShiftState [09:39:36]wFMCommunicate request_size=4 [09:39:36]MH_SAM_APDU [09:39:36]CAPDU: 80 13 01 00 [09:39:36]Write to MH i2c: E2 08 00 C8 07 80 13 01 00 00 00 00 00 4C [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 C8 07 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 91 [09:39:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetShiftState done [09:39:36]FM_GetShiftState done [09:39:36]opened in 1729384303 [09:39:36]opened+sec_in_day 1729470703 [09:39:36]quantity*price = 13000 [09:39:36]sum+1 = 13001 [09:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 56 20.10.2024 09:39 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73730 ФПД: 55502502648742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093937&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73730&fm=55502502648742&tin=02508201610067®Number=0000000000161154&sum=13000 0 [09:39:37]StoreToDocumentArchive [09:39:37]shift 170 fd 73730 [09:39:37]save to /storage/0170/doc_00073730 [09:39:37]save last doc name /storage/0170/doc_00073730 to /storage/kkm_last_doc_name [09:39:37]save OK [09:39:37]Clear old archive folders... [09:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:39:37]tlvbuf is 00396350 [09:39:37]SAM_PROTO_ClearQueue [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 09 00 00 [09:39:37]Write to MH i2c: E2 08 00 D5 07 80 09 00 00 00 00 00 00 4E [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_ClearQueue done [09:39:37]KKMCreateOFDPacket [09:39:37]OFDProtocolAddRootSTLVToBuf [09:39:37]FM_MakeSignedData [09:39:37]FM_MakeSignedData [09:39:37]SAM_PROTO_SignData [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 01 02 [09:39:37]Write to MH i2c: E2 08 00 D6 07 80 0D 01 02 00 00 00 00 56 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=255 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 38 00 00 00 F4 03 04 00 D9 CF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [09:39:37]Write to MH i2c: E2 02 01 D7 07 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 38 00 00 00 F4 03 04 00 D9 CF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 63 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=41 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 20 01 00 35 04 06 00 32 7A AE F4 5B A6 [09:39:37]Write to MH i2c: E2 2C 00 D8 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 20 01 00 35 04 06 00 32 7A AE F4 5B A6 00 00 94 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 03 02 [09:39:37]Write to MH i2c: E2 08 00 D9 07 80 0D 03 02 00 00 00 00 5B [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 0B 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 0B 00 D9 07 00 6C 2F 6D EB CA 4D 54 4D 90 00 07 [09:39:37]RAPDU: 6C 2F 6D EB CA 4D 54 4D 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_SignData done [09:39:37]FM_MakeSignedData done [09:39:37]CreateOFDProtocolMessage [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 11 00 00 [09:39:37]Write to MH i2c: E2 08 00 DA 07 80 11 00 00 00 00 00 00 5B [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 17 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 17 00 DA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A8 [09:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:39:37]wFMCommunicate OK [09:39:37]CreateOFDProtocolMessage done [09:39:37]OFDSenderStorePacket 73730 [09:39:37]StoreOFDPacket docnum=73730 [09:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 EA 12 26 01 B8 20 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 38 00 00 00 F4 03 04 00 D9 CF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 20 01 00 35 04 06 00 32 7A AE F4 5B A6 6C 2F 6D EB CA 4D 54 4D [09:39:37]CheckFolder [09:39:37]dirname=/storage/ofd_packets [09:39:37]CheckFolder done [09:39:37]ProducePacketName [09:39:37]name=ofd_packets/00073730 [09:39:37]NVStorageSaveData ofd_packets/00073730 [09:39:37]File name is /storage/ofd_packets/00073730 [09:39:37]Write 332 bytes [09:39:37]NVStorageSaveData done [09:39:37]OFDSenderStorePacket done [09:39:37]KKMCreateOFDPacket done [09:39:37]NVStorageSaveData kkm_last_timestamp [09:39:37]File name is /storage/kkm_last_timestamp [09:39:37]Write 4 bytes [09:39:37]NVStorageSaveData done [09:39:37]ExternCall_PrintAddStr [09:39:37]wPrintStart [09:39:37]Write to MH i2c: 01 00 00 DB 07 E2 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: 01 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: 01 07 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [09:39:37]RasterBufferAndPrint [09:39:37]line Счет N : (3)272743 [09:39:37]line ИНН: 02508201610067 [09:39:37]line Контрольно-Кассовый Чек [09:39:37]line ПРОДАЖА [09:39:37]line Товар: 2000036220012 [09:39:37]line Кофе Капучино XL(GABB TRADE) [09:39:37]line 1.000 * 130.00 [09:39:37]line = 130.00 [09:39:37]line НДС 12% НСП 1% [09:39:37]line > о реализуемом товаре [09:39:37]line ИТОГО: 130.00 [09:39:37]line НСП 1% : 1.15 [09:39:37]line НДС 12% : 13.80 [09:39:37]line Наличными: 0.00 [09:39:37]line Безнал.: 130.00 [09:39:37]line Место: АЗС № 133 "Партнер Нефть" [09:39:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:39:37]line СНО: Общий режим [09:39:37]line Чек 56 20.10.2024 09:39 [09:39:37]line Смена: 170 ФФД: 1.0 [09:39:37]line ЗНМ: 0300000020 [09:39:37]line РНМ: 0000000000161154 [09:39:37]line Версия ККМ: v1.0 [09:39:37]line Платежная система: Mbank [09:39:37]line ФМ: 0000000000963323 [09:39:37]line ФД: 73730 [09:39:37]line ФПД: 55502502648742 [09:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093937&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73730&fm=55502502648742&tin=02508201610067®Number=0000000000161154&sum=13000 [09:39:38]line 0 [09:39:38]OFD Sender: Processing packet 73730 [packets to send 15, broken 14] [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00073730 [09:39:38]OFD Sender: To server: pG, [09:39:38]CommunicateWithHost lk.salyk.kg:30040 [09:39:38]ConnectInit lk.salyk.kg [09:39:38]written 0, free lines is 4095 [09:39:38]Connected sock=10 [09:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 EA 12 26 01 B8 20 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 38 00 00 00 F4 03 04 00 D9 CF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 20 01 00 35 04 06 00 32 7A AE F4 5B A6 6C 2F 6D EB CA 4D 54 4D [09:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 49 E4 47 00 9A 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 39 36 33 33 32 33 10 04 04 00 02 20 01 00 F4 03 04 00 BE 78 14 67 B6 04 01 00 00 62 D3 12 64 84 A0 73 82 [09:39:38]CommunicateWithHost err = 0 [09:39:38]CheckOFDResponse [09:39:38]1017 (14) - 77093643461234 [09:39:38]1041 (16) - 0000000000963323 [09:39:38]1040 (4) - 73730 [09:39:38]1012 (4) - 20.10.2024 03:27 [09:39:38]1206 (1) - 0 [09:39:38]OFD Sender: Remove packet 73730 [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00073730 [09:39:38]NVStorageDeleteData [09:39:38]Write to MH i2c: 01 00 00 04 08 0C [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 BB 0C DA [09:39:38]RasterBufferAndPrint [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]line [09:39:38]written 0, free lines is 3263 [09:39:38]MH_Cut [09:39:38]Write to MH i2c: D1 01 00 0B 08 01 E5 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 01 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: D1 01 00 0B 08 00 E4 [09:39:38]Write to MH i2c: 01 00 00 0C 08 14 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:39]OFD Sender: No OFD packet to send [09:39:39]*** Cut start [09:39:39]*** Partial cut [09:39:39]*** CUTSNS_PIN = 1 [09:39:39]*** CUTSNS_PIN = 0 [09:39:39]*** Brake cut motor [09:39:40]Read from MH i2c: 01 [09:39:40]MH_I2C_Read... [09:39:40]*** Stop cut motor [09:39:40]*** Cut end [09:39:40]Read from MH i2c: 01 07 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 FF 0F 29 [09:39:40]process_action close_receipt done [09:39:40]requested_data is exist [09:39:40]produce_requested_data [09:39:40]requested_item fm.sn is exist - process it [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 11 00 00 [09:39:40]Write to MH i2c: E2 08 00 0D 08 80 11 00 00 00 00 00 00 8F [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 0D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [09:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:39:40]wFMCommunicate OK [09:39:40]requested_item fd.num is exist - process it [09:39:40]SAM_PROTO_GetFieldsCounters [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 00 00 [09:39:40]Write to MH i2c: E2 08 00 0E 08 80 13 00 00 00 00 00 00 92 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 0E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 02 20 01 00 0E 04 04 00 AA 00 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 1B [09:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 02 20 01 00 0E 04 04 00 AA 00 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 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetFieldsCounters done [09:39:40]requested_item shift.num is exist - process it [09:39:40]requested_item shift.opened is exist - process it [09:39:40]req_shift_opened [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 0F 08 80 13 01 00 00 00 00 00 94 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 0F 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D9 [09:39:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]req_shift_opened done [09:39:40]requested_item shift.open_date is exist - process it [09:39:40]req_shift_open_date [09:39:40]req_shift_open_date done [09:39:40]produce_requested_data done [09:39:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73730,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:39:40]process_action_free close_receipt [09:39:40]json_value_free [09:39:40]json_value_free done [09:39:40]process_json_proto returns [09:39:40]Send response to host [09:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73730,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:39:40]free response buf [09:39:40]execute_script done [09:39:40]execute_script returns [09:39:40]free content buf [09:39:40]Sock 8.Close socket [09:39:40]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:51]accept exits with 9 [09:41:51]New connection [09:41:51]New thread 3067432292 created [09:41:51]Thread 3067575652 joined [09:41:51]Waiting for new connection... [09:41:51] Sock 9.Parse request [09:41:51]Sock 9.Check first char [09:41:51]Sock 9.First char is OK [09:41:51]request: POST /json_proto HTTP/1.0 [09:41:51]Method: POST [09:41:51]URL: /json_proto [09:41:51]Method is POST - this is cgi request [09:41:51]url: /json_proto [09:41:51]query_string will be loaded in cgi processing [09:41:51]execute_cgi json_proto POST (null) [09:41:51]execute_cgi path=json_proto method=POST [09:41:51]POST find Content-Length [09:41:51]Host: 172.17.44.196:8080 [09:41:51]Content-Length: 620 [09:41:51]Content-Type: application/json [09:41:51] [09:41:51]POST finish read [09:41:51]Found Content-Length = 620 [09:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272744", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:51]execute_script... [09:41: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)272744", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:51]POST & json_proto [09:41:51]process_json_proto [09:41:51]json parsed OK: [09:41:51]protocol is kg_v1.0 [09:41:51]action value=close_receipt [09:41:51]process_action close_receipt [09:41:51]cmd_close_receipt [09:41:51]MH_GetDate [09:41:51]Write to MH i2c: F0 00 00 10 08 07 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: F0 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: F0 09 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: F0 09 00 10 08 00 60 D0 14 67 E7 19 F8 65 18 [09:41:51]GetLastDocTimeStamp 1729417177 [09:41:51]current date 1729417312 [09:41:51]FM_GetShiftState [09:41:51]SAM_PROTO_GetShiftState [09:41:51]wFMCommunicate request_size=4 [09:41:51]MH_SAM_APDU [09:41:51]CAPDU: 80 13 01 00 [09:41:51]Write to MH i2c: E2 08 00 11 08 80 13 01 00 00 00 00 00 96 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 0E 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 0E 00 11 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [09:41:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:41:51]wFMCommunicate OK [09:41:51]SAM_PROTO_GetShiftState done [09:41:51]FM_GetShiftState done [09:41:51]opened in 1729384303 [09:41:51]opened+sec_in_day 1729470703 [09:41:51]quantity*price = 13500 [09:41:51]sum+1 = 13501 [09:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 57 20.10.2024 09:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73731 ФПД: 134106483630750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094152&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73731&fm=134106483630750&tin=02508201610067®Number=0000000000161154&sum=13500 0 [09:41:52]StoreToDocumentArchive [09:41:52]shift 170 fd 73731 [09:41:52]save to /storage/0170/doc_00073731 [09:41:52]save last doc name /storage/0170/doc_00073731 to /storage/kkm_last_doc_name [09:41:52]save OK [09:41:52]Clear old archive folders... [09:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:41:52]tlvbuf is 00395340 [09:41:52]SAM_PROTO_ClearQueue [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 09 00 00 [09:41:52]Write to MH i2c: E2 08 00 1E 08 80 09 00 00 00 00 00 00 98 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 1E 08 00 90 00 9A [09:41:52]RAPDU: 90 00 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_ClearQueue done [09:41:52]KKMCreateOFDPacket [09:41:52]OFDProtocolAddRootSTLVToBuf [09:41:52]FM_MakeSignedData [09:41:52]FM_MakeSignedData [09:41:52]SAM_PROTO_SignData [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 0D 01 02 [09:41:52]Write to MH i2c: E2 08 00 1F 08 80 0D 01 02 00 00 00 00 A0 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [09:41:52]RAPDU: 90 00 [09:41:52]wFMCommunicate OK [09:41:52]wFMCommunicate request_size=255 [09:41:52]MH_SAM_APDU [09:41:52]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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 60 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [09:41:52]Write to MH i2c: E2 02 01 20 08 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 60 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 E2 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [09:41:52]RAPDU: 90 00 [09:41:52]wFMCommunicate OK [09:41:52]wFMCommunicate request_size=31 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 03 20 01 00 35 04 06 00 79 F8 19 51 A2 9E [09:41:52]Write to MH i2c: E2 22 00 21 08 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 03 20 01 00 35 04 06 00 79 F8 19 51 A2 9E 00 00 07 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [09:41:52]RAPDU: 90 00 [09:41:52]wFMCommunicate OK [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 0D 03 02 [09:41:52]Write to MH i2c: E2 08 00 22 08 80 0D 03 02 00 00 00 00 A5 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0B 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0B 00 22 08 00 ED C0 45 5F FC 61 26 63 90 00 DD [09:41:52]RAPDU: ED C0 45 5F FC 61 26 63 90 00 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_SignData done [09:41:52]FM_MakeSignedData done [09:41:52]CreateOFDProtocolMessage [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 11 00 00 [09:41:52]Write to MH i2c: E2 08 00 23 08 80 11 00 00 00 00 00 00 A5 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 17 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 17 00 23 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [09:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:41:52]wFMCommunicate OK [09:41:52]CreateOFDProtocolMessage done [09:41:52]OFDSenderStorePacket 73731 [09:41:52]StoreOFDPacket docnum=73731 [09:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 F4 E8 1C 01 32 DC 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 60 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 20 01 00 35 04 06 00 79 F8 19 51 A2 9E ED C0 45 5F FC 61 26 63 [09:41:52]CheckFolder [09:41:52]dirname=/storage/ofd_packets [09:41:52]CheckFolder done [09:41:52]ProducePacketName [09:41:52]name=ofd_packets/00073731 [09:41:52]NVStorageSaveData ofd_packets/00073731 [09:41:52]File name is /storage/ofd_packets/00073731 [09:41:52]Write 322 bytes [09:41:52]NVStorageSaveData done [09:41:52]OFDSenderStorePacket done [09:41:52]KKMCreateOFDPacket done [09:41:52]NVStorageSaveData kkm_last_timestamp [09:41:52]File name is /storage/kkm_last_timestamp [09:41:52]Write 4 bytes [09:41:52]NVStorageSaveData done [09:41:52]ExternCall_PrintAddStr [09:41:52]wPrintStart [09:41:52]Write to MH i2c: 01 00 00 24 08 2C [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: 01 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: 01 07 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: 01 07 00 24 08 00 00 00 00 00 FF 0F 41 [09:41:52]RasterBufferAndPrint [09:41:52]line Счет N : (3)272744 [09:41:52]line ИНН: 02508201610067 [09:41:52]line Контрольно-Кассовый Чек [09:41:52]line ПРОДАЖА [09:41:52]line Товар: 48745000 [09:41:52]line Сигареты Winston Purple Mix [09:41:52]line 1.000 * 135.00 [09:41:52]line = 135.00 [09:41:52]line НДС 12% НСП 1% [09:41:52]line > о реализуемом товаре [09:41:52]line ИТОГО: 135.00 [09:41:52]line НСП 1% : 1.19 [09:41:52]line НДС 12% : 14.34 [09:41:52]line Наличными: 135.00 [09:41:52]line Безнал.: 0.00 [09:41:52]line Место: АЗС № 133 "Партнер Нефть" [09:41:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:41:52]line СНО: Общий режим [09:41:52]line Чек 57 20.10.2024 09:41 [09:41:52]line Смена: 170 ФФД: 1.0 [09:41:52]line ЗНМ: 0300000020 [09:41:52]line РНМ: 0000000000161154 [09:41:52]line Версия ККМ: v1.0 [09:41:52]line ФМ: 0000000000963323 [09:41:52]line ФД: 73731 [09:41:52]line ФПД: 134106483630750 [09:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094152&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73731&fm=134106483630750&tin=02508201610067®Number=0000000000161154&sum=13500 [09:41:53]line 0 [09:41:53]OFD Sender: Processing packet 73731 [packets to send 15, broken 14] [09:41:53]ProducePacketName [09:41:53]name=ofd_packets/00073731 [09:41:53]OFD Sender: To server: pG, [09:41:53]CommunicateWithHost lk.salyk.kg:30040 [09:41:53]ConnectInit lk.salyk.kg [09:41:53]written 0, free lines is 4095 [09:41:53]Connected sock=10 [09:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 F4 E8 1C 01 32 DC 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 60 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 20 01 00 35 04 06 00 79 F8 19 51 A2 9E ED C0 45 5F FC 61 26 63 [09:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 61 27 47 00 2F 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 39 36 33 33 32 33 10 04 04 00 03 20 01 00 F4 03 04 00 45 79 14 67 B6 04 01 00 00 75 46 62 2E 11 F1 80 DE [09:41:53]CommunicateWithHost err = 0 [09:41:53]CheckOFDResponse [09:41:53]1017 (14) - 77093643461234 [09:41:53]1041 (16) - 0000000000963323 [09:41:53]1040 (4) - 73731 [09:41:53]1012 (4) - 20.10.2024 03:30 [09:41:53]1206 (1) - 0 [09:41:53]OFD Sender: Remove packet 73731 [09:41:53]ProducePacketName [09:41:53]name=ofd_packets/00073731 [09:41:53]NVStorageDeleteData [09:41:53]Write to MH i2c: 01 00 00 4B 08 53 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: 01 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: 01 07 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 CC 0C 32 [09:41:53]RasterBufferAndPrint [09:41:53]line [09:41:53]line [09:41:53]line [09:41:53]line [09:41:53]line [09:41:53]written 0, free lines is 3280 [09:41:53]MH_Cut [09:41:53]Write to MH i2c: D1 01 00 52 08 01 2C [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: D1 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: D1 01 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: D1 01 00 52 08 00 2B [09:41:53]Write to MH i2c: 01 00 00 53 08 5B [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:54]OFD Sender: No OFD packet to send [09:41:54]*** Cut start [09:41:54]*** Partial cut [09:41:54]*** CUTSNS_PIN = 1 [09:41:54]*** CUTSNS_PIN = 0 [09:41:54]*** Brake cut motor [09:41:55]Read from MH i2c: 01 [09:41:55]MH_I2C_Read... [09:41:55]*** Stop cut motor [09:41:55]*** Cut end [09:41:55]Read from MH i2c: 01 07 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [09:41:55]process_action close_receipt done [09:41:55]requested_data is exist [09:41:55]produce_requested_data [09:41:55]requested_item fm.sn is exist - process it [09:41:55]wFMCommunicate request_size=4 [09:41:55]MH_SAM_APDU [09:41:55]CAPDU: 80 11 00 00 [09:41:55]Write to MH i2c: E2 08 00 54 08 80 11 00 00 00 00 00 00 D6 [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:55]Read from MH i2c: E2 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: E2 17 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: E2 17 00 54 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 23 [09:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:41:55]wFMCommunicate OK [09:41:55]requested_item fd.num is exist - process it [09:41:55]SAM_PROTO_GetFieldsCounters [09:41:55]wFMCommunicate request_size=4 [09:41:55]MH_SAM_APDU [09:41:55]CAPDU: 80 13 00 00 [09:41:55]Write to MH i2c: E2 08 00 55 08 80 13 00 00 00 00 00 00 D9 [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:55]Read from MH i2c: E2 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: E2 62 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: E2 62 00 55 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 03 20 01 00 0E 04 04 00 AA 00 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 66 [09:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 03 20 01 00 0E 04 04 00 AA 00 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 [09:41:55]wFMCommunicate OK [09:41:55]SAM_PROTO_GetFieldsCounters done [09:41:55]requested_item shift.num is exist - process it [09:41:55]requested_item shift.opened is exist - process it [09:41:55]req_shift_opened [09:41:55]FM_GetShiftState [09:41:55]SAM_PROTO_GetShiftState [09:41:55]wFMCommunicate request_size=4 [09:41:55]MH_SAM_APDU [09:41:55]CAPDU: 80 13 01 00 [09:41:55]Write to MH i2c: E2 08 00 56 08 80 13 01 00 00 00 00 00 DB [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:55]Read from MH i2c: E2 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: E2 0E 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: E2 0E 00 56 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 20 [09:41:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:41:55]wFMCommunicate OK [09:41:55]SAM_PROTO_GetShiftState done [09:41:55]FM_GetShiftState done [09:41:55]req_shift_opened done [09:41:55]requested_item shift.open_date is exist - process it [09:41:55]req_shift_open_date [09:41:55]req_shift_open_date done [09:41:55]produce_requested_data done [09:41:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73731,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:41:55]process_action_free close_receipt [09:41:55]json_value_free [09:41:55]json_value_free done [09:41:55]process_json_proto returns [09:41:55]Send response to host [09:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73731,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:41:55]free response buf [09:41:55]execute_script done [09:41:55]execute_script returns [09:41:55]free content buf [09:41:55]Sock 9.Close socket [09:41:55]Sock 9.Thread stoped [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:48]accept exits with 8 [09:42:48]New connection [09:42:48]New thread 3067575652 created [09:42:48]Thread 3067432292 joined [09:42:48]Waiting for new connection... [09:42:48] Sock 8.Parse request [09:42:48]Sock 8.Check first char [09:42:48]Sock 8.First char is OK [09:42:48]request: POST /json_proto HTTP/1.0 [09:42:48]Method: POST [09:42:48]URL: /json_proto [09:42:48]Method is POST - this is cgi request [09:42:48]url: /json_proto [09:42:48]query_string will be loaded in cgi processing [09:42:48]execute_cgi json_proto POST (null) [09:42:48]execute_cgi path=json_proto method=POST [09:42:48]POST find Content-Length [09:42:48]Host: 172.17.44.196:8080 [09:42:48]Content-Length: 1041 [09:42:48]Content-Type: application/json [09:42:48] [09:42:48]POST finish read [09:42:48]Found Content-Length = 1041 [09:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272745", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:48]execute_script... [09:42: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)272745", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:48]POST & json_proto [09:42:48]process_json_proto [09:42:48]json parsed OK: [09:42:48]protocol is kg_v1.0 [09:42:48]action value=close_receipt [09:42:48]process_action close_receipt [09:42:48]cmd_close_receipt [09:42:48]MH_GetDate [09:42:48]Write to MH i2c: F0 00 00 57 08 4E [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: F0 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: F0 09 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: F0 09 00 57 08 00 99 D0 14 67 E7 19 F8 65 98 [09:42:48]GetLastDocTimeStamp 1729417312 [09:42:48]current date 1729417369 [09:42:48]FM_GetShiftState [09:42:48]SAM_PROTO_GetShiftState [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 13 01 00 [09:42:48]Write to MH i2c: E2 08 00 58 08 80 13 01 00 00 00 00 00 DD [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0E 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0E 00 58 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 22 [09:42:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:42:48]wFMCommunicate OK [09:42:48]SAM_PROTO_GetShiftState done [09:42:48]FM_GetShiftState done [09:42:48]opened in 1729384303 [09:42:48]opened+sec_in_day 1729470703 [09:42:48]quantity*price = 12500 [09:42:48]sum+1 = 12501 [09:42:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 0.00 Безнал.: 255.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 58 20.10.2024 09:42 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73732 ФПД: 17939699145434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094249&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73732&fm=17939699145434&tin=02508201610067®Number=0000000000161154&sum=25500 0 [09:42:49]StoreToDocumentArchive [09:42:49]shift 170 fd 73732 [09:42:49]save to /storage/0170/doc_00073732 [09:42:49]save last doc name /storage/0170/doc_00073732 to /storage/kkm_last_doc_name [09:42:49]save OK [09:42:49]Clear old archive folders... [09:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=396 [09:42:49]tlvbuf is 003950A0 [09:42:49]SAM_PROTO_ClearQueue [09:42:49]wFMCommunicate request_size=4 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 09 00 00 [09:42:49]Write to MH i2c: E2 08 00 65 08 80 09 00 00 00 00 00 00 DF [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:49]Read from MH i2c: E2 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 03 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [09:42:49]RAPDU: 90 00 [09:42:49]wFMCommunicate OK [09:42:49]SAM_PROTO_ClearQueue done [09:42:49]KKMCreateOFDPacket [09:42:49]OFDProtocolAddRootSTLVToBuf [09:42:49]FM_MakeSignedData [09:42:49]FM_MakeSignedData [09:42:49]SAM_PROTO_SignData [09:42:49]wFMCommunicate request_size=4 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 0D 01 02 [09:42:49]Write to MH i2c: E2 08 00 66 08 80 0D 01 02 00 00 00 00 E7 [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:49]Read from MH i2c: E2 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 03 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [09:42:49]RAPDU: 90 00 [09:42:49]wFMCommunicate OK [09:42:49]wFMCommunicate request_size=255 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 9C 63 00 00 00 00 EB 03 26 00 EF [09:42:49]Write to MH i2c: E2 02 01 67 08 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 FA [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:49]Read from MH i2c: E2 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 03 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [09:42:49]RAPDU: 90 00 [09:42:49]wFMCommunicate OK [09:42:49]wFMCommunicate request_size=155 [09:42:49]MH_SAM_APDU [09:42:49]CAPDU: 80 0D 02 02 96 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 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 20 01 00 35 04 06 00 10 50 E9 65 1A DA [09:42:49]Write to MH i2c: E2 9E 00 68 08 80 0D 02 02 96 00 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 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 20 01 00 35 04 06 00 10 50 E9 65 1A DA 00 00 50 [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:50]Read from MH i2c: E2 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 03 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [09:42:50]RAPDU: 90 00 [09:42:50]wFMCommunicate OK [09:42:50]wFMCommunicate request_size=4 [09:42:50]MH_SAM_APDU [09:42:50]CAPDU: 80 0D 03 02 [09:42:50]Write to MH i2c: E2 08 00 69 08 80 0D 03 02 00 00 00 00 EC [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:50]Read from MH i2c: E2 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0B 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0B 00 69 08 00 14 3D 59 EF 16 A7 1F A3 90 00 05 [09:42:50]RAPDU: 14 3D 59 EF 16 A7 1F A3 90 00 [09:42:50]wFMCommunicate OK [09:42:50]SAM_PROTO_SignData done [09:42:50]FM_MakeSignedData done [09:42:50]CreateOFDProtocolMessage [09:42:50]wFMCommunicate request_size=4 [09:42:50]MH_SAM_APDU [09:42:50]CAPDU: 80 11 00 00 [09:42:50]Write to MH i2c: E2 08 00 6A 08 80 11 00 00 00 00 00 00 EC [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:50]Read from MH i2c: E2 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 17 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 17 00 6A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 39 [09:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:42:50]wFMCommunicate OK [09:42:50]CreateOFDProtocolMessage done [09:42:50]OFDSenderStorePacket 73732 [09:42:50]StoreOFDPacket docnum=73732 [09:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 10 CA 98 01 A0 A7 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 9C 63 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 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 20 01 00 35 04 06 00 10 50 E9 65 1A DA 14 3D 59 EF 16 A7 1F A3 [09:42:50]CheckFolder [09:42:50]dirname=/storage/ofd_packets [09:42:50]CheckFolder done [09:42:50]ProducePacketName [09:42:50]name=ofd_packets/00073732 [09:42:50]NVStorageSaveData ofd_packets/00073732 [09:42:50]File name is /storage/ofd_packets/00073732 [09:42:50]Write 446 bytes [09:42:50]NVStorageSaveData done [09:42:50]OFDSenderStorePacket done [09:42:50]KKMCreateOFDPacket done [09:42:50]NVStorageSaveData kkm_last_timestamp [09:42:50]File name is /storage/kkm_last_timestamp [09:42:50]Write 4 bytes [09:42:50]NVStorageSaveData done [09:42:50]ExternCall_PrintAddStr [09:42:50]wPrintStart [09:42:50]Write to MH i2c: 01 00 00 6B 08 73 [09:42:50]OFD Sender: Processing packet 73732 [packets to send 15, broken 14] [09:42:50]ProducePacketName [09:42:50]name=ofd_packets/00073732 [09:42:50]OFD Sender: To server: pG, [09:42:50]CommunicateWithHost lk.salyk.kg:30040 [09:42:50]ConnectInit lk.salyk.kg [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 6B 08 00 00 00 00 00 FF 0F 88 [09:42:50]RasterBufferAndPrint [09:42:50]line Счет N : (3)272745 [09:42:50]line ИНН: 02508201610067 [09:42:50]line Контрольно-Кассовый Чек [09:42:50]line ПРОДАЖА [09:42:50]line Товар: 2000036190018 [09:42:50]line Кофе Американо XL(GABB TRADE) [09:42:50]line 1.000 * 125.00 [09:42:50]line = 125.00 [09:42:50]line НДС 12% НСП 1% [09:42:50]line > о реализуемом товаре [09:42:50]line Товар: 2000036220012 [09:42:50]line Кофе Капучино XL(GABB TRADE) [09:42:50]line 1.000 * 130.00 [09:42:50]line = 130.00 [09:42:50]line НДС 12% НСП 1% [09:42:50]line > о реализуемом товаре [09:42:50]line ИТОГО: 255.00 [09:42:50]line НСП 1% : 2.26 [09:42:50]line НДС 12% : 27.07 [09:42:50]line Наличными: 0.00 [09:42:50]line Безнал.: 255.00 [09:42:50]line Место: АЗС № 133 "Партнер Нефть" [09:42:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:42:50]line СНО: Общий режим [09:42:50]line Чек 58 20.10.2024 09:42 [09:42:50]line Смена: 170 ФФД: 1.0 [09:42:50]line ЗНМ: 0300000020 [09:42:50]line РНМ: 0000000000161154 [09:42:50]line Версия ККМ: v1.0 [09:42:50]line Платежная система: Mbank [09:42:50]line ФМ: 0000000000963323 [09:42:50]line ФД: 73732 [09:42:50]line ФПД: 17939699145434 [09:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094249&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73732&fm=17939699145434&tin=02508201610067®Number=0000000000161154&sum=25500 [09:42:50]line 0 [09:42:50]written 0, free lines is 4095 [09:42:50]Connected sock=10 [09:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 10 CA 98 01 A0 A7 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 9C 63 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 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 D0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 20 01 00 35 04 06 00 10 50 E9 65 1A DA 14 3D 59 EF 16 A7 1F A3 [09:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 38 A9 47 00 6B FA 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 39 36 33 33 32 33 10 04 04 00 04 20 01 00 F4 03 04 00 7E 79 14 67 B6 04 01 00 00 FC 60 D8 3A 3A 98 9C 9A [09:42:50]CommunicateWithHost err = 0 [09:42:50]CheckOFDResponse [09:42:50]1017 (14) - 77093643461234 [09:42:50]1041 (16) - 0000000000963323 [09:42:50]1040 (4) - 73732 [09:42:50]1012 (4) - 20.10.2024 03:31 [09:42:50]1206 (1) - 0 [09:42:50]OFD Sender: Remove packet 73732 [09:42:50]ProducePacketName [09:42:50]name=ofd_packets/00073732 [09:42:50]NVStorageDeleteData [09:42:51]Write to MH i2c: 01 00 00 9B 08 A3 [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: 01 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: 01 07 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 43 0C F9 [09:42:51]RasterBufferAndPrint [09:42:51]line [09:42:51]line [09:42:51]line [09:42:51]line [09:42:51]line [09:42:51]written 0, free lines is 3147 [09:42:51]MH_Cut [09:42:51]Write to MH i2c: D1 01 00 A2 08 01 7C [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: D1 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: D1 01 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: D1 01 00 A2 08 00 7B [09:42:51]Write to MH i2c: 01 00 00 A3 08 AB [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]OFD Sender: No OFD packet to send [09:42:52]*** Cut start [09:42:52]*** Partial cut [09:42:52]*** CUTSNS_PIN = 1 [09:42:52]*** CUTSNS_PIN = 0 [09:42:52]*** Brake cut motor [09:42:52]Read from MH i2c: 01 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 A3 08 00 00 00 00 00 FF 0F C0 [09:42:52]process_action close_receipt done [09:42:52]requested_data is exist [09:42:52]produce_requested_data [09:42:52]requested_item fm.sn is exist - process it [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 11 00 00 [09:42:52]Write to MH i2c: E2 08 00 A4 08 80 11 00 00 00 00 00 00 26 [09:42:52]*** Stop cut motor [09:42:52]*** Cut end [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 17 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 17 00 A4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [09:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:42:52]wFMCommunicate OK [09:42:52]requested_item fd.num is exist - process it [09:42:52]SAM_PROTO_GetFieldsCounters [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 13 00 00 [09:42:52]Write to MH i2c: E2 08 00 A5 08 80 13 00 00 00 00 00 00 29 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 62 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 62 00 A5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 04 20 01 00 0E 04 04 00 AA 00 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 BA [09:42:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 04 20 01 00 0E 04 04 00 AA 00 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 [09:42:52]wFMCommunicate OK [09:42:52]SAM_PROTO_GetFieldsCounters done [09:42:52]requested_item shift.num is exist - process it [09:42:52]requested_item shift.opened is exist - process it [09:42:52]req_shift_opened [09:42:52]FM_GetShiftState [09:42:52]SAM_PROTO_GetShiftState [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 13 01 00 [09:42:52]Write to MH i2c: E2 08 00 A6 08 80 13 01 00 00 00 00 00 2B [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0E 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0E 00 A6 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 70 [09:42:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:42:52]wFMCommunicate OK [09:42:52]SAM_PROTO_GetShiftState done [09:42:52]FM_GetShiftState done [09:42:52]req_shift_opened done [09:42:52]requested_item shift.open_date is exist - process it [09:42:52]req_shift_open_date [09:42:52]req_shift_open_date done [09:42:52]produce_requested_data done [09:42:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73732,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:42:52]process_action_free close_receipt [09:42:52]json_value_free [09:42:52]json_value_free done [09:42:52]process_json_proto returns [09:42:52]Send response to host [09:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73732,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:42:52]free response buf [09:42:52]execute_script done [09:42:52]execute_script returns [09:42:52]free content buf [09:42:52]Sock 8.Close socket [09:42:52]Sock 8.Thread stoped [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:07]accept exits with 9 [09:50:07]New connection [09:50:07]New thread 3067432292 created [09:50:07]Thread 3067575652 joined [09:50:07]Waiting for new connection... [09:50:07] Sock 9.Parse request [09:50:07]Sock 9.Check first char [09:50:07]Sock 9.First char is OK [09:50:07]request: POST /json_proto HTTP/1.0 [09:50:07]Method: POST [09:50:07]URL: /json_proto [09:50:07]Method is POST - this is cgi request [09:50:07]url: /json_proto [09:50:07]query_string will be loaded in cgi processing [09:50:07]execute_cgi json_proto POST (null) [09:50:07]execute_cgi path=json_proto method=POST [09:50:07]POST find Content-Length [09:50:07]Host: 172.17.44.196:8080 [09:50:07]Content-Length: 611 [09:50:07]Content-Type: application/json [09:50:07] [09:50:07]POST finish read [09:50:07]Found Content-Length = 611 [09:50:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272746", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 2.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" ] } } [09:50:07]execute_script... [09:50: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)272746", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 2.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" ] } } [09:50:07]POST & json_proto [09:50:07]process_json_proto [09:50:07]json parsed OK: [09:50:07]protocol is kg_v1.0 [09:50:07]action value=close_receipt [09:50:07]process_action close_receipt [09:50:07]cmd_close_receipt [09:50:07]MH_GetDate [09:50:07]Write to MH i2c: F0 00 00 A7 08 9E [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: F0 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: F0 09 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: F0 09 00 A7 08 00 50 D2 14 67 E7 19 F8 65 A1 [09:50:07]GetLastDocTimeStamp 1729417369 [09:50:07]current date 1729417808 [09:50:07]FM_GetShiftState [09:50:07]SAM_PROTO_GetShiftState [09:50:07]wFMCommunicate request_size=4 [09:50:07]MH_SAM_APDU [09:50:07]CAPDU: 80 13 01 00 [09:50:07]Write to MH i2c: E2 08 00 A8 08 80 13 01 00 00 00 00 00 2D [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:07]Read from MH i2c: E2 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: E2 0E 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: E2 0E 00 A8 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 72 [09:50:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:50:07]wFMCommunicate OK [09:50:07]SAM_PROTO_GetShiftState done [09:50:07]FM_GetShiftState done [09:50:07]opened in 1729384303 [09:50:07]opened+sec_in_day 1729470703 [09:50:07]quantity*price = 26000 [09:50:07]sum+1 = 26001 [09:50:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 59 20.10.2024 09:50 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73733 ФПД: 230711741570377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095008&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73733&fm=230711741570377&tin=02508201610067®Number=0000000000161154&sum=26000 0 [09:50:08]StoreToDocumentArchive [09:50:08]shift 170 fd 73733 [09:50:08]save to /storage/0170/doc_00073733 [09:50:08]save last doc name /storage/0170/doc_00073733 to /storage/kkm_last_doc_name [09:50:08]save OK [09:50:08]Clear old archive folders... [09:50:08]ProcessDocumentItem done err = 0, tmpTLVsize=263 [09:50:08]tlvbuf is 00396210 [09:50:08]SAM_PROTO_ClearQueue [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 09 00 00 [09:50:08]Write to MH i2c: E2 08 00 B5 08 80 09 00 00 00 00 00 00 2F [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 B5 08 00 90 00 31 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_ClearQueue done [09:50:08]KKMCreateOFDPacket [09:50:08]OFDProtocolAddRootSTLVToBuf [09:50:08]FM_MakeSignedData [09:50:08]FM_MakeSignedData [09:50:08]SAM_PROTO_SignData [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 01 02 [09:50:08]Write to MH i2c: E2 08 00 B6 08 80 0D 01 02 00 00 00 00 37 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 B6 08 00 90 00 32 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]wFMCommunicate request_size=255 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 02 02 FA 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 3B 00 00 00 F4 03 04 00 50 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 [09:50:08]Write to MH i2c: E2 02 01 B7 08 80 0D 02 02 FA 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 3B 00 00 00 F4 03 04 00 50 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 00 00 FD [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 B7 08 00 90 00 33 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]wFMCommunicate request_size=22 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 02 02 11 04 04 00 05 20 01 00 35 04 06 00 D1 D4 C3 66 DD 49 [09:50:08]Write to MH i2c: E2 19 00 B8 08 80 0D 02 02 11 00 04 04 00 05 20 01 00 35 04 06 00 D1 D4 C3 66 DD 49 00 00 BD [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 03 02 [09:50:08]Write to MH i2c: E2 08 00 B9 08 80 0D 03 02 00 00 00 00 3C [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0B 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0B 00 B9 08 00 FF 2F E2 95 48 40 CF 6F 90 00 A8 [09:50:08]RAPDU: FF 2F E2 95 48 40 CF 6F 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_SignData done [09:50:08]FM_MakeSignedData done [09:50:08]CreateOFDProtocolMessage [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 11 00 00 [09:50:08]Write to MH i2c: E2 08 00 BA 08 80 11 00 00 00 00 00 00 3C [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 17 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 17 00 BA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 89 [09:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:50:08]wFMCommunicate OK [09:50:08]CreateOFDProtocolMessage done [09:50:08]OFDSenderStorePacket 73733 [09:50:08]StoreOFDPacket docnum=73733 [09:50:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1B 01 00 00 78 C8 13 01 F7 F4 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 3B 00 00 00 F4 03 04 00 50 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 20 01 00 35 04 06 00 D1 D4 C3 66 DD 49 FF 2F E2 95 48 40 CF 6F [09:50:08]CheckFolder [09:50:08]dirname=/storage/ofd_packets [09:50:08]CheckFolder done [09:50:08]ProducePacketName [09:50:08]name=ofd_packets/00073733 [09:50:08]NVStorageSaveData ofd_packets/00073733 [09:50:08]File name is /storage/ofd_packets/00073733 [09:50:08]Write 313 bytes [09:50:08]NVStorageSaveData done [09:50:08]OFDSenderStorePacket done [09:50:08]KKMCreateOFDPacket done [09:50:08]NVStorageSaveData kkm_last_timestamp [09:50:08]File name is /storage/kkm_last_timestamp [09:50:08]Write 4 bytes [09:50:08]NVStorageSaveData done [09:50:08]ExternCall_PrintAddStr [09:50:08]wPrintStart [09:50:08]Write to MH i2c: 01 00 00 BB 08 C3 [09:50:08]OFD Sender: Processing packet 73733 [packets to send 15, broken 14] [09:50:08]ProducePacketName [09:50:08]name=ofd_packets/00073733 [09:50:08]OFD Sender: To server: pG, [09:50:08]CommunicateWithHost lk.salyk.kg:30040 [09:50:08]ConnectInit lk.salyk.kg [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 07 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 FF 0F D8 [09:50:08]RasterBufferAndPrint [09:50:08]line Счет N : (3)272746 [09:50:08]line ИНН: 02508201610067 [09:50:08]line Контрольно-Кассовый Чек [09:50:08]line ПРОДАЖА [09:50:08]line Товар: 48742078 [09:50:08]line Сигареты LD Silver [09:50:08]line 2.000 * 130.00 [09:50:08]line = 260.00 [09:50:08]line НДС 12% НСП 1% [09:50:08]line > о реализуемом товаре [09:50:08]line ИТОГО: 260.00 [09:50:08]line НСП 1% : 2.30 [09:50:08]line НДС 12% : 27.61 [09:50:08]line Наличными: 260.00 [09:50:08]line Безнал.: 0.00 [09:50:08]line Место: АЗС № 133 "Партнер Нефть" [09:50:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:50:08]line СНО: Общий режим [09:50:08]line Чек 59 20.10.2024 09:50 [09:50:08]line Смена: 170 ФФД: 1.0 [09:50:08]line ЗНМ: 0300000020 [09:50:08]line РНМ: 0000000000161154 [09:50:08]line Версия ККМ: v1.0 [09:50:08]line ФМ: 0000000000963323 [09:50:08]line ФД: 73733 [09:50:08]line ФПД: 230711741570377 [09:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095008&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73733&fm=230711741570377&tin=02508201610067®Number=0000000000161154&sum=26000 [09:50:09]Connected sock=10 [09:50:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1B 01 00 00 78 C8 13 01 F7 F4 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 3B 00 00 00 F4 03 04 00 50 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 20 01 00 35 04 06 00 D1 D4 C3 66 DD 49 FF 2F E2 95 48 40 CF 6F [09:50:09]line 0 [09:50:09]written 0, free lines is 4095 [09:50:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 05 80 47 00 88 07 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 39 36 33 33 32 33 10 04 04 00 05 20 01 00 F4 03 04 00 35 7B 14 67 B6 04 01 00 00 7C F6 33 08 A0 04 20 64 [09:50:09]CommunicateWithHost err = 0 [09:50:09]CheckOFDResponse [09:50:09]1017 (14) - 77093643461234 [09:50:09]1041 (16) - 0000000000963323 [09:50:09]1040 (4) - 73733 [09:50:09]1012 (4) - 20.10.2024 03:38 [09:50:09]1206 (1) - 0 [09:50:09]OFD Sender: Remove packet 73733 [09:50:09]ProducePacketName [09:50:09]name=ofd_packets/00073733 [09:50:09]NVStorageDeleteData [09:50:09]Write to MH i2c: 01 00 00 E2 08 EA [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 E2 08 00 00 00 00 00 DA 0C D7 [09:50:09]RasterBufferAndPrint [09:50:09]line [09:50:09]line [09:50:09]line [09:50:09]line [09:50:09]line [09:50:09]written 0, free lines is 3295 [09:50:09]MH_Cut [09:50:09]Write to MH i2c: D1 01 00 E9 08 01 C3 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: D1 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: D1 01 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: D1 01 00 E9 08 00 C2 [09:50:09]Write to MH i2c: 01 00 00 EA 08 F2 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:10]OFD Sender: No OFD packet to send [09:50:10]*** Cut start [09:50:10]*** Partial cut [09:50:10]*** CUTSNS_PIN = 1 [09:50:10]*** CUTSNS_PIN = 0 [09:50:10]*** Brake cut motor [09:50:11]Read from MH i2c: 01 [09:50:11]MH_I2C_Read... [09:50:11]*** Stop cut motor [09:50:11]*** Cut end [09:50:11]Read from MH i2c: 01 07 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 EA 08 00 00 00 00 00 FF 0F 07 [09:50:11]process_action close_receipt done [09:50:11]requested_data is exist [09:50:11]produce_requested_data [09:50:11]requested_item fm.sn is exist - process it [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 11 00 00 [09:50:11]Write to MH i2c: E2 08 00 EB 08 80 11 00 00 00 00 00 00 6D [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:11]Read from MH i2c: E2 17 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 EB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BA [09:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:50:11]wFMCommunicate OK [09:50:11]requested_item fd.num is exist - process it [09:50:11]SAM_PROTO_GetFieldsCounters [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 00 00 [09:50:11]Write to MH i2c: E2 08 00 EC 08 80 13 00 00 00 00 00 00 70 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 62 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 62 00 EC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 05 20 01 00 0E 04 04 00 AA 00 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 05 [09:50:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 05 20 01 00 0E 04 04 00 AA 00 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 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetFieldsCounters done [09:50:11]requested_item shift.num is exist - process it [09:50:11]requested_item shift.opened is exist - process it [09:50:11]req_shift_opened [09:50:11]FM_GetShiftState [09:50:11]SAM_PROTO_GetShiftState [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 01 00 [09:50:11]Write to MH i2c: E2 08 00 ED 08 80 13 01 00 00 00 00 00 72 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 ED 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [09:50:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetShiftState done [09:50:11]FM_GetShiftState done [09:50:11]req_shift_opened done [09:50:11]requested_item shift.open_date is exist - process it [09:50:11]req_shift_open_date [09:50:11]req_shift_open_date done [09:50:11]produce_requested_data done [09:50:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73733,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:50:11]process_action_free close_receipt [09:50:11]json_value_free [09:50:11]json_value_free done [09:50:11]process_json_proto returns [09:50:11]Send response to host [09:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73733,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:50:11]free response buf [09:50:11]execute_script done [09:50:11]execute_script returns [09:50:11]free content buf [09:50:11]Sock 9.Close socket [09:50:11]Sock 9.Thread stoped [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:36]accept exits with 8 [09:51:36]New connection [09:51:36]New thread 3067575652 created [09:51:36]Thread 3067432292 joined [09:51:36]Waiting for new connection... [09:51:36] Sock 8.Parse request [09:51:36]Sock 8.Check first char [09:51:36]Sock 8.First char is OK [09:51:36]request: POST /json_proto HTTP/1.0 [09:51:36]Method: POST [09:51:36]URL: /json_proto [09:51:36]Method is POST - this is cgi request [09:51:36]url: /json_proto [09:51:36]query_string will be loaded in cgi processing [09:51:36]execute_cgi json_proto POST (null) [09:51:36]execute_cgi path=json_proto method=POST [09:51:36]POST find Content-Length [09:51:36]Host: 172.17.44.196:8080 [09:51:36]Content-Length: 621 [09:51:36]Content-Type: application/json [09:51:36] [09:51:36]POST finish read [09:51:36]Found Content-Length = 621 [09:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272747", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [09:51:36]execute_script... [09:51: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)272747", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [09:51:36]POST & json_proto [09:51:36]process_json_proto [09:51:36]json parsed OK: [09:51:36]protocol is kg_v1.0 [09:51:36]action value=close_receipt [09:51:36]process_action close_receipt [09:51:36]cmd_close_receipt [09:51:36]MH_GetDate [09:51:36]Write to MH i2c: F0 00 00 EE 08 E5 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 EE 08 00 A9 D2 14 67 E7 19 F8 65 41 [09:51:36]GetLastDocTimeStamp 1729417808 [09:51:36]current date 1729417897 [09:51:36]FM_GetShiftState [09:51:36]SAM_PROTO_GetShiftState [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 01 00 [09:51:36]Write to MH i2c: E2 08 00 EF 08 80 13 01 00 00 00 00 00 74 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 EF 08 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B9 [09:51:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetShiftState done [09:51:36]FM_GetShiftState done [09:51:36]opened in 1729384303 [09:51:36]opened+sec_in_day 1729470703 [09:51:36]quantity*price = 14000 [09:51:36]sum+1 = 14001 [09:51:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 60 20.10.2024 09:51 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73734 ФПД: 269744151733906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095137&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73734&fm=269744151733906&tin=02508201610067®Number=0000000000161154&sum=14000 0 [09:51:37]StoreToDocumentArchive [09:51:37]shift 170 fd 73734 [09:51:37]save to /storage/0170/doc_00073734 [09:51:37]save last doc name /storage/0170/doc_00073734 to /storage/kkm_last_doc_name [09:51:37]save OK [09:51:37]Clear old archive folders... [09:51:37]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:51:37]tlvbuf is 002F41E0 [09:51:37]SAM_PROTO_ClearQueue [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 09 00 00 [09:51:37]Write to MH i2c: E2 08 00 FC 08 80 09 00 00 00 00 00 00 76 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_ClearQueue done [09:51:37]KKMCreateOFDPacket [09:51:37]OFDProtocolAddRootSTLVToBuf [09:51:37]FM_MakeSignedData [09:51:37]FM_MakeSignedData [09:51:37]SAM_PROTO_SignData [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 01 02 [09:51:37]Write to MH i2c: E2 08 00 FD 08 80 0D 01 02 00 00 00 00 7E [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=255 [09:51:37]MH_SAM_APDU [09:51:37]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 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 3C 00 00 00 F4 03 04 00 A9 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [09:51:37]Write to MH i2c: E2 02 01 FE 08 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 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 3C 00 00 00 F4 03 04 00 A9 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 48 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 FE 08 00 90 00 7A [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=32 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 06 20 01 00 35 04 06 00 F5 54 B4 58 26 92 [09:51:37]Write to MH i2c: E2 23 00 FF 08 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 06 20 01 00 35 04 06 00 F5 54 B4 58 26 92 00 00 0C [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 FF 08 00 90 00 7B [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 03 02 [09:51:37]Write to MH i2c: E2 08 00 00 09 80 0D 03 02 00 00 00 00 84 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 00 09 00 D7 F7 8C A9 D3 DD 99 78 90 00 49 [09:51:37]RAPDU: D7 F7 8C A9 D3 DD 99 78 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_SignData done [09:51:37]FM_MakeSignedData done [09:51:37]CreateOFDProtocolMessage [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 11 00 00 [09:51:37]Write to MH i2c: E2 08 00 01 09 80 11 00 00 00 00 00 00 84 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 01 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [09:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:51:37]wFMCommunicate OK [09:51:37]CreateOFDProtocolMessage done [09:51:37]OFDSenderStorePacket 73734 [09:51:37]StoreOFDPacket docnum=73734 [09:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 AA CC 1D 01 85 F1 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 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 3C 00 00 00 F4 03 04 00 A9 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 20 01 00 35 04 06 00 F5 54 B4 58 26 92 D7 F7 8C A9 D3 DD 99 78 [09:51:37]CheckFolder [09:51:37]dirname=/storage/ofd_packets [09:51:37]CheckFolder done [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00073734 [09:51:37]NVStorageSaveData ofd_packets/00073734 [09:51:37]File name is /storage/ofd_packets/00073734 [09:51:37]Write 323 bytes [09:51:37]NVStorageSaveData done [09:51:37]OFDSenderStorePacket done [09:51:37]KKMCreateOFDPacket done [09:51:37]NVStorageSaveData kkm_last_timestamp [09:51:37]File name is /storage/kkm_last_timestamp [09:51:37]Write 4 bytes [09:51:37]NVStorageSaveData done [09:51:37]ExternCall_PrintAddStr [09:51:37]wPrintStart [09:51:37]Write to MH i2c: 01 00 00 02 09 0B [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 FF 0F 20 [09:51:37]RasterBufferAndPrint [09:51:37]line Счет N : (3)272747 [09:51:37]line ИНН: 02508201610067 [09:51:37]line Контрольно-Кассовый Чек [09:51:37]line ПРОДАЖА [09:51:37]line Товар: 48743570 [09:51:37]line Сигареты Winston XStyle Blue [09:51:37]line 1.000 * 140.00 [09:51:37]line = 140.00 [09:51:37]line НДС 12% НСП 1% [09:51:37]line > о реализуемом товаре [09:51:37]line ИТОГО: 140.00 [09:51:37]line НСП 1% : 1.24 [09:51:37]line НДС 12% : 14.87 [09:51:37]line Наличными: 140.00 [09:51:37]line Безнал.: 0.00 [09:51:37]line Место: АЗС № 133 "Партнер Нефть" [09:51:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:51:37]line СНО: Общий режим [09:51:37]line Чек 60 20.10.2024 09:51 [09:51:37]line Смена: 170 ФФД: 1.0 [09:51:37]line ЗНМ: 0300000020 [09:51:37]line РНМ: 0000000000161154 [09:51:37]line Версия ККМ: v1.0 [09:51:37]line ФМ: 0000000000963323 [09:51:37]line ФД: 73734 [09:51:37]line ФПД: 269744151733906 [09:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095137&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73734&fm=269744151733906&tin=02508201610067®Number=0000000000161154&sum=14000 [09:51:38]line 0 [09:51:38]OFD Sender: Processing packet 73734 [packets to send 15, broken 14] [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00073734 [09:51:38]OFD Sender: To server: pG, [09:51:38]CommunicateWithHost lk.salyk.kg:30040 [09:51:38]ConnectInit lk.salyk.kg [09:51:38]written 0, free lines is 4095 [09:51:38]Connected sock=10 [09:51:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 AA CC 1D 01 85 F1 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 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 3C 00 00 00 F4 03 04 00 A9 D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 20 01 00 35 04 06 00 F5 54 B4 58 26 92 D7 F7 8C A9 D3 DD 99 78 [09:51:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 89 A0 47 00 3E 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 39 36 33 33 32 33 10 04 04 00 06 20 01 00 F4 03 04 00 8E 7B 14 67 B6 04 01 00 00 10 DC 8A 75 84 2B 08 9E [09:51:38]CommunicateWithHost err = 0 [09:51:38]CheckOFDResponse [09:51:38]1017 (14) - 77093643461234 [09:51:38]1041 (16) - 0000000000963323 [09:51:38]1040 (4) - 73734 [09:51:38]1012 (4) - 20.10.2024 03:39 [09:51:38]1206 (1) - 0 [09:51:38]OFD Sender: Remove packet 73734 [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00073734 [09:51:38]NVStorageDeleteData [09:51:38]Write to MH i2c: 01 00 00 29 09 32 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 E1 0C 26 [09:51:38]RasterBufferAndPrint [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]written 0, free lines is 3301 [09:51:38]MH_Cut [09:51:38]Write to MH i2c: D1 01 00 30 09 01 0B [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 01 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 01 00 30 09 00 0A [09:51:38]Write to MH i2c: 01 00 00 31 09 3A [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:39]OFD Sender: No OFD packet to send [09:51:39]*** Cut start [09:51:39]*** Partial cut [09:51:39]*** CUTSNS_PIN = 1 [09:51:39]*** CUTSNS_PIN = 0 [09:51:39]*** Brake cut motor [09:51:40]Read from MH i2c: 01 [09:51:40]MH_I2C_Read... [09:51:40]*** Stop cut motor [09:51:40]*** Cut end [09:51:40]Read from MH i2c: 01 07 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [09:51:40]process_action close_receipt done [09:51:40]requested_data is exist [09:51:40]produce_requested_data [09:51:40]requested_item fm.sn is exist - process it [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 11 00 00 [09:51:40]Write to MH i2c: E2 08 00 32 09 80 11 00 00 00 00 00 00 B5 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 17 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 17 00 32 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [09:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:51:40]wFMCommunicate OK [09:51:40]requested_item fd.num is exist - process it [09:51:40]SAM_PROTO_GetFieldsCounters [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 00 00 [09:51:40]Write to MH i2c: E2 08 00 33 09 80 13 00 00 00 00 00 00 B8 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 62 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 62 00 33 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 06 20 01 00 0E 04 04 00 AA 00 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 51 [09:51:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 06 20 01 00 0E 04 04 00 AA 00 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 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetFieldsCounters done [09:51:40]requested_item shift.num is exist - process it [09:51:40]requested_item shift.opened is exist - process it [09:51:40]req_shift_opened [09:51:40]FM_GetShiftState [09:51:40]SAM_PROTO_GetShiftState [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 01 00 [09:51:40]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [09:51:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetShiftState done [09:51:40]FM_GetShiftState done [09:51:40]req_shift_opened done [09:51:40]requested_item shift.open_date is exist - process it [09:51:40]req_shift_open_date [09:51:40]req_shift_open_date done [09:51:40]produce_requested_data done [09:51:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73734,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:51:40]process_action_free close_receipt [09:51:40]json_value_free [09:51:40]json_value_free done [09:51:40]process_json_proto returns [09:51:40]Send response to host [09:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73734,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:51:40]free response buf [09:51:40]execute_script done [09:51:40]execute_script returns [09:51:40]free content buf [09:51:40]Sock 8.Close socket [09:51:40]Sock 8.Thread stoped [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:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:52:59]accept exits with 9 [09:52:59]New connection [09:52:59]New thread 3067432292 created [09:52:59]Thread 3067575652 joined [09:52:59]Waiting for new connection... [09:52:59] Sock 9.Parse request [09:52:59]Sock 9.Check first char [09:52:59]Sock 9.First char is OK [09:52:59]request: POST /json_proto HTTP/1.0 [09:52:59]Method: POST [09:52:59]URL: /json_proto [09:52:59]Method is POST - this is cgi request [09:52:59]url: /json_proto [09:52:59]query_string will be loaded in cgi processing [09:52:59]execute_cgi json_proto POST (null) [09:52:59]execute_cgi path=json_proto method=POST [09:52:59]POST find Content-Length [09:52:59]Host: 172.17.44.196:8080 [09:52:59]Content-Length: 718 [09:52:59]Content-Type: application/json [09:52:59] [09:52:59]POST finish read [09:52:59]Found Content-Length = 718 [09:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272748", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.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" ] } } [09:52:59]execute_script... [09:52:59]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)272748", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.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" ] } } [09:52:59]POST & json_proto [09:52:59]process_json_proto [09:52:59]json parsed OK: [09:52:59]protocol is kg_v1.0 [09:52:59]action value=close_receipt [09:52:59]process_action close_receipt [09:52:59]cmd_close_receipt [09:52:59]MH_GetDate [09:52:59]Write to MH i2c: F0 00 00 35 09 2D [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: F0 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: F0 09 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: F0 09 00 35 09 00 FC D2 14 67 E7 19 F8 65 DC [09:52:59]GetLastDocTimeStamp 1729417897 [09:52:59]current date 1729417980 [09:52:59]FM_GetShiftState [09:52:59]SAM_PROTO_GetShiftState [09:52:59]wFMCommunicate request_size=4 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 13 01 00 [09:52:59]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:59]Read from MH i2c: E2 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 0E 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [09:52:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:52:59]wFMCommunicate OK [09:52:59]SAM_PROTO_GetShiftState done [09:52:59]FM_GetShiftState done [09:52:59]opened in 1729384303 [09:52:59]opened+sec_in_day 1729470703 [09:52:59]quantity*price = 25000 [09:52:59]sum+1 = 25001 [09:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 61 20.10.2024 09:53 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73735 ФПД: 193427316244675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095300&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73735&fm=193427316244675&tin=02508201610067®Number=0000000000161154&sum=25000 0 [09:53:00]StoreToDocumentArchive [09:53:00]shift 170 fd 73735 [09:53:00]save to /storage/0170/doc_00073735 [09:53:00]save last doc name /storage/0170/doc_00073735 to /storage/kkm_last_doc_name [09:53:00]save OK [09:53:00]Clear old archive folders... [09:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=302 [09:53:00]tlvbuf is 002F3D80 [09:53:00]SAM_PROTO_ClearQueue [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 09 00 00 [09:53:00]Write to MH i2c: E2 08 00 43 09 80 09 00 00 00 00 00 00 BE [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [09:53:00]RAPDU: 90 00 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_ClearQueue done [09:53:00]KKMCreateOFDPacket [09:53:00]OFDProtocolAddRootSTLVToBuf [09:53:00]FM_MakeSignedData [09:53:00]FM_MakeSignedData [09:53:00]SAM_PROTO_SignData [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 0D 01 02 [09:53:00]Write to MH i2c: E2 08 00 44 09 80 0D 01 02 00 00 00 00 C6 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [09:53:00]RAPDU: 90 00 [09:53:00]wFMCommunicate OK [09:53:00]wFMCommunicate request_size=255 [09:53:00]MH_SAM_APDU [09:53:00]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 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 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 5F 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 3D 00 00 00 F4 03 04 00 FC D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 [09:53:00]Write to MH i2c: E2 02 01 45 09 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 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 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 5F 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 3D 00 00 00 F4 03 04 00 FC D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 00 00 C0 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [09:53:00]RAPDU: 90 00 [09:53:00]wFMCommunicate OK [09:53:00]wFMCommunicate request_size=61 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 20 01 00 35 04 06 00 AF EB CE 79 80 C3 [09:53:00]Write to MH i2c: E2 40 00 46 09 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 20 01 00 35 04 06 00 AF EB CE 79 80 C3 00 00 3D [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [09:53:00]RAPDU: 90 00 [09:53:00]wFMCommunicate OK [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 0D 03 02 [09:53:00]Write to MH i2c: E2 08 00 47 09 80 0D 03 02 00 00 00 00 CB [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0B 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0B 00 47 09 00 29 5F D9 A4 88 64 1C E3 90 00 BC [09:53:00]RAPDU: 29 5F D9 A4 88 64 1C E3 90 00 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_SignData done [09:53:00]FM_MakeSignedData done [09:53:00]CreateOFDProtocolMessage [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 11 00 00 [09:53:00]Write to MH i2c: E2 08 00 48 09 80 11 00 00 00 00 00 00 CB [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 17 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 17 00 48 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [09:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:53:00]wFMCommunicate OK [09:53:00]CreateOFDProtocolMessage done [09:53:00]OFDSenderStorePacket 73735 [09:53:00]StoreOFDPacket docnum=73735 [09:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 42 01 00 00 83 05 3A 01 C6 88 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 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 5F 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 3D 00 00 00 F4 03 04 00 FC D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 20 01 00 35 04 06 00 AF EB CE 79 80 C3 29 5F D9 A4 88 64 1C E3 [09:53:00]CheckFolder [09:53:00]dirname=/storage/ofd_packets [09:53:00]CheckFolder done [09:53:00]ProducePacketName [09:53:00]name=ofd_packets/00073735 [09:53:00]NVStorageSaveData ofd_packets/00073735 [09:53:00]File name is /storage/ofd_packets/00073735 [09:53:00]Write 352 bytes [09:53:00]NVStorageSaveData done [09:53:00]OFDSenderStorePacket done [09:53:00]KKMCreateOFDPacket done [09:53:00]NVStorageSaveData kkm_last_timestamp [09:53:00]File name is /storage/kkm_last_timestamp [09:53:00]Write 4 bytes [09:53:00]NVStorageSaveData done [09:53:00]OFD Sender: Processing packet 73735 [packets to send 15, broken 14] [09:53:00]ProducePacketName [09:53:00]name=ofd_packets/00073735 [09:53:00]OFD Sender: To server: pG, [09:53:00]CommunicateWithHost lk.salyk.kg:30040 [09:53:00]ConnectInit lk.salyk.kg [09:53:00]ExternCall_PrintAddStr [09:53:00]wPrintStart [09:53:00]Write to MH i2c: 01 00 00 49 09 52 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 FF 0F 67 [09:53:00]RasterBufferAndPrint [09:53:00]line Счет N : (3)272748 [09:53:00]line ИНН: 02508201610067 [09:53:00]line Контрольно-Кассовый Чек [09:53:00]line ПРОДАЖА [09:53:00]line Товар: 4606532000189 [09:53:00]line Тормозная жидкость РосДот-4 0,455кг [09:53:00]line 1.000 * 250.00 [09:53:00]line = 250.00 [09:53:00]line НДС 12% НСП 1% [09:53:00]line > о реализуемом товаре [09:53:00]line ИТОГО: 250.00 [09:53:00]line НСП 1% : 2.21 [09:53:00]line НДС 12% : 26.55 [09:53:00]line Наличными: 250.00 [09:53:00]line Безнал.: 0.00 [09:53:00]line Место: АЗС № 133 "Партнер Нефть" [09:53:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:53:00]line СНО: Общий режим [09:53:00]line Чек 61 20.10.2024 09:53 [09:53:00]line Смена: 170 ФФД: 1.0 [09:53:00]line ЗНМ: 0300000020 [09:53:00]line РНМ: 0000000000161154 [09:53:01]line Версия ККМ: v1.0 [09:53:01]line ФМ: 0000000000963323 [09:53:01]line ФД: 73735 [09:53:01]line ФПД: 193427316244675 [09:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095300&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73735&fm=193427316244675&tin=02508201610067®Number=0000000000161154&sum=25000 [09:53:01]line 0 [09:53:01]Connected sock=11 [09:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 42 01 00 00 83 05 3A 01 C6 88 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 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 5F 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 3D 00 00 00 F4 03 04 00 FC D2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 20 01 00 35 04 06 00 AF EB CE 79 80 C3 29 5F D9 A4 88 64 1C E3 [09:53:01]written 0, free lines is 4095 [09:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 62 EE 47 00 59 93 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 39 36 33 33 32 33 10 04 04 00 07 20 01 00 F4 03 04 00 E1 7B 14 67 B6 04 01 00 00 4D 58 C8 C3 AB 1B 71 84 [09:53:01]CommunicateWithHost err = 0 [09:53:01]CheckOFDResponse [09:53:01]1017 (14) - 77093643461234 [09:53:01]1041 (16) - 0000000000963323 [09:53:01]1040 (4) - 73735 [09:53:01]1012 (4) - 20.10.2024 03:41 [09:53:01]1206 (1) - 0 [09:53:01]OFD Sender: Remove packet 73735 [09:53:01]ProducePacketName [09:53:01]name=ofd_packets/00073735 [09:53:01]NVStorageDeleteData [09:53:01]Write to MH i2c: 01 00 00 71 09 7A [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 71 09 00 00 00 00 00 C3 0C 50 [09:53:01]RasterBufferAndPrint [09:53:01]line [09:53:01]line [09:53:01]line [09:53:01]line [09:53:01]line [09:53:01]written 0, free lines is 3271 [09:53:01]MH_Cut [09:53:01]Write to MH i2c: D1 01 00 78 09 01 53 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: D1 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: D1 01 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: D1 01 00 78 09 00 52 [09:53:01]Write to MH i2c: 01 00 00 79 09 82 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]OFD Sender: No OFD packet to send [09:53:02]*** Cut start [09:53:02]*** Partial cut [09:53:02]*** CUTSNS_PIN = 1 [09:53:02]*** CUTSNS_PIN = 0 [09:53:02]*** Brake cut motor [09:53:03]Read from MH i2c: 01 [09:53:03]MH_I2C_Read... [09:53:03]*** Stop cut motor [09:53:03]*** Cut end [09:53:03]Read from MH i2c: 01 07 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 FF 0F 97 [09:53:03]process_action close_receipt done [09:53:03]requested_data is exist [09:53:03]produce_requested_data [09:53:03]requested_item fm.sn is exist - process it [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 11 00 00 [09:53:03]Write to MH i2c: E2 08 00 7A 09 80 11 00 00 00 00 00 00 FD [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 17 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 17 00 7A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4A [09:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:53:03]wFMCommunicate OK [09:53:03]requested_item fd.num is exist - process it [09:53:03]SAM_PROTO_GetFieldsCounters [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 13 00 00 [09:53:03]Write to MH i2c: E2 08 00 7B 09 80 13 00 00 00 00 00 00 00 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 62 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 62 00 7B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 07 20 01 00 0E 04 04 00 AA 00 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 9D [09:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 07 20 01 00 0E 04 04 00 AA 00 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 [09:53:03]wFMCommunicate OK [09:53:03]SAM_PROTO_GetFieldsCounters done [09:53:03]requested_item shift.num is exist - process it [09:53:03]requested_item shift.opened is exist - process it [09:53:03]req_shift_opened [09:53:03]FM_GetShiftState [09:53:03]SAM_PROTO_GetShiftState [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 13 01 00 [09:53:03]Write to MH i2c: E2 08 00 7C 09 80 13 01 00 00 00 00 00 02 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 0E 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 0E 00 7C 09 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 47 [09:53:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [09:53:03]wFMCommunicate OK [09:53:03]SAM_PROTO_GetShiftState done [09:53:03]FM_GetShiftState done [09:53:03]req_shift_opened done [09:53:03]requested_item shift.open_date is exist - process it [09:53:03]req_shift_open_date [09:53:03]req_shift_open_date done [09:53:03]produce_requested_data done [09:53:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73735,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [09:53:03]process_action_free close_receipt [09:53:03]json_value_free [09:53:03]json_value_free done [09:53:03]process_json_proto returns [09:53:03]Send response to host [09:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73735,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [09:53:03]free response buf [09:53:03]execute_script done [09:53:03]execute_script returns [09:53:03]free content buf [09:53:03]Sock 9.Close socket [09:53:03]Sock 9.Thread stoped [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:56]accept exits with 8 [10:00:56]New connection [10:00:56]New thread 3067575652 created [10:00:56]Thread 3067432292 joined [10:00:56]Waiting for new connection... [10:00:56] Sock 8.Parse request [10:00:56]Sock 8.Check first char [10:00:56]Sock 8.First char is OK [10:00:56]request: POST /json_proto HTTP/1.0 [10:00:56]Method: POST [10:00:56]URL: /json_proto [10:00:56]Method is POST - this is cgi request [10:00:56]url: /json_proto [10:00:56]query_string will be loaded in cgi processing [10:00:56]execute_cgi json_proto POST (null) [10:00:56]execute_cgi path=json_proto method=POST [10:00:56]POST find Content-Length [10:00:56]Host: 172.17.44.196:8080 [10:00:56]Content-Length: 659 [10:00:56]Content-Type: application/json [10:00:56] [10:00:56]POST finish read [10:00:56]Found Content-Length = 659 [10:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:56]execute_script... [10:00: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 : (1)1962778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:56]POST & json_proto [10:00:56]process_json_proto [10:00:56]json parsed OK: [10:00:56]protocol is kg_v1.0 [10:00:56]action value=close_receipt [10:00:56]process_action close_receipt [10:00:56]cmd_close_receipt [10:00:56]MH_GetDate [10:00:56]Write to MH i2c: F0 00 00 7D 09 75 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: F0 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: F0 09 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: F0 09 00 7D 09 00 D9 D4 14 67 E7 19 F8 65 03 [10:00:56]GetLastDocTimeStamp 1729417980 [10:00:56]current date 1729418457 [10:00:56]FM_GetShiftState [10:00:56]SAM_PROTO_GetShiftState [10:00:56]wFMCommunicate request_size=4 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 13 01 00 [10:00:56]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 0E 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [10:00:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:00:56]wFMCommunicate OK [10:00:56]SAM_PROTO_GetShiftState done [10:00:56]FM_GetShiftState done [10:00:56]opened in 1729384303 [10:00:56]opened+sec_in_day 1729470703 [10:00:56]quantity*price = 60055 [10:00:56]sum+1 = 60056 [10:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 62 20.10.2024 10:00 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73736 ФПД: 5911634132340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100057&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73736&fm=5911634132340&tin=02508201610067®Number=0000000000161154&sum=60000 [10:00:57]StoreToDocumentArchive [10:00:57]shift 170 fd 73736 [10:00:57]save to /storage/0170/doc_00073736 [10:00:57]save last doc name /storage/0170/doc_00073736 to /storage/kkm_last_doc_name [10:00:57]save OK [10:00:57]Clear old archive folders... [10:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:00:57]tlvbuf is 0030C620 [10:00:57]SAM_PROTO_ClearQueue [10:00:57]wFMCommunicate request_size=4 [10:00:57]MH_SAM_APDU [10:00:57]CAPDU: 80 09 00 00 [10:00:57]Write to MH i2c: E2 08 00 8B 09 80 09 00 00 00 00 00 00 06 [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:57]Read from MH i2c: E2 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: E2 03 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [10:00:57]RAPDU: 90 00 [10:00:57]wFMCommunicate OK [10:00:57]SAM_PROTO_ClearQueue done [10:00:57]KKMCreateOFDPacket [10:00:57]OFDProtocolAddRootSTLVToBuf [10:00:57]FM_MakeSignedData [10:00:57]FM_MakeSignedData [10:00:57]SAM_PROTO_SignData [10:00:57]wFMCommunicate request_size=4 [10:00:57]MH_SAM_APDU [10:00:57]CAPDU: 80 0D 01 02 [10:00:57]Write to MH i2c: E2 08 00 8C 09 80 0D 01 02 00 00 00 00 0E [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:57]Read from MH i2c: E2 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: E2 03 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [10:00:57]RAPDU: 90 00 [10:00:57]wFMCommunicate OK [10:00:57]wFMCommunicate request_size=253 [10:00:57]MH_SAM_APDU [10:00:57]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 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 D9 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 20 01 00 35 04 06 00 05 60 68 DA 3D 74 [10:00:57]Write to MH i2c: E2 00 01 8D 09 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 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 D9 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 20 01 00 35 04 06 00 05 60 68 DA 3D 74 00 00 B5 [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [10:00:58]RAPDU: 90 00 [10:00:58]wFMCommunicate OK [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 0D 03 02 [10:00:58]Write to MH i2c: E2 08 00 8E 09 80 0D 03 02 00 00 00 00 12 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 0B 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 0B 00 8E 09 00 38 F9 A1 14 33 59 62 FF 90 00 E6 [10:00:58]RAPDU: 38 F9 A1 14 33 59 62 FF 90 00 [10:00:58]wFMCommunicate OK [10:00:58]SAM_PROTO_SignData done [10:00:58]FM_MakeSignedData done [10:00:58]CreateOFDProtocolMessage [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 11 00 00 [10:00:58]Write to MH i2c: E2 08 00 8F 09 80 11 00 00 00 00 00 00 12 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 17 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 17 00 8F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5F [10:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:00:58]wFMCommunicate OK [10:00:58]CreateOFDProtocolMessage done [10:00:58]OFDSenderStorePacket 73736 [10:00:58]StoreOFDPacket docnum=73736 [10:00:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 6B F7 00 01 A9 6D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 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 D9 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 20 01 00 35 04 06 00 05 60 68 DA 3D 74 38 F9 A1 14 33 59 62 FF [10:00:58]CheckFolder [10:00:58]dirname=/storage/ofd_packets [10:00:58]CheckFolder done [10:00:58]ProducePacketName [10:00:58]name=ofd_packets/00073736 [10:00:58]NVStorageSaveData ofd_packets/00073736 [10:00:58]File name is /storage/ofd_packets/00073736 [10:00:58]Write 294 bytes [10:00:58]NVStorageSaveData done [10:00:58]OFDSenderStorePacket done [10:00:58]KKMCreateOFDPacket done [10:00:58]NVStorageSaveData kkm_last_timestamp [10:00:58]File name is /storage/kkm_last_timestamp [10:00:58]Write 4 bytes [10:00:58]NVStorageSaveData done [10:00:58]ExternCall_PrintAddStr [10:00:58]wPrintStart [10:00:58]Write to MH i2c: 01 00 00 90 09 99 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 07 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 FF 0F AE [10:00:58]RasterBufferAndPrint [10:00:58]line Счет N : (1)1962778 [10:00:58]line ИНН: 02508201610067 [10:00:58]line Контрольно-Кассовый Чек [10:00:58]line ПРОДАЖА [10:00:58]line ТРК (МРК, ГНК) : 62 [10:00:58]line Товар: 2710124130 [10:00:58]line SU-92 [10:00:58]line 8.780 * 68.40 [10:00:58]line = 600.55 [10:00:58]line НДС 12% НСП 1% [10:00:58]line > о реализуемом товаре [10:00:58]line ОКРУГЛЕНИЕ: -0.55 [10:00:58]line ИТОГО: 600.00 [10:00:58]line Внесено: 600.00 [10:00:58]line СДАЧА: 0.00 [10:00:58]line НСП 1% : 5.31 [10:00:58]line НДС 12% : 63.77 [10:00:58]line Наличными: 600.00 [10:00:58]line Безнал.: 0.00 [10:00:58]line Место: АЗС № 133 "Партнер Нефть" [10:00:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:00:58]line СНО: Общий режим [10:00:58]line Чек 62 20.10.2024 10:00 [10:00:58]line Смена: 170 ФФД: 1.0 [10:00:58]line ЗНМ: 0300000020 [10:00:58]line РНМ: 0000000000161154 [10:00:58]line Версия ККМ: v1.0 [10:00:58]OFD Sender: Processing packet 73736 [packets to send 15, broken 14] [10:00:58]ProducePacketName [10:00:58]name=ofd_packets/00073736 [10:00:58]OFD Sender: To server: pG, [10:00:58]CommunicateWithHost lk.salyk.kg:30040 [10:00:58]ConnectInit lk.salyk.kg [10:00:58]line ФМ: 0000000000963323 [10:00:58]line ФД: 73736 [10:00:58]line ФПД: 5911634132340 [10:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100057&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73736&fm=5911634132340&tin=02508201610067®Number=0000000000161154&sum=60000 [10:00:58]Connected sock=11 [10:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 6B F7 00 01 A9 6D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 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 D9 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 20 01 00 35 04 06 00 05 60 68 DA 3D 74 38 F9 A1 14 33 59 62 FF [10:00:58]written 0, free lines is 4095 [10:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E0 F9 47 00 4D 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 39 36 33 33 32 33 10 04 04 00 08 20 01 00 F4 03 04 00 BE 7D 14 67 B6 04 01 00 00 A5 BD 82 10 9F 44 46 52 [10:00:58]CommunicateWithHost err = 0 [10:00:58]CheckOFDResponse [10:00:58]1017 (14) - 77093643461234 [10:00:58]1041 (16) - 0000000000963323 [10:00:58]1040 (4) - 73736 [10:00:58]1012 (4) - 20.10.2024 03:49 [10:00:58]1206 (1) - 0 [10:00:58]OFD Sender: Remove packet 73736 [10:00:58]ProducePacketName [10:00:58]name=ofd_packets/00073736 [10:00:58]NVStorageDeleteData [10:00:58]Write to MH i2c: 01 00 00 BA 09 C3 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 07 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 07 00 BA 09 00 00 00 00 00 A5 0C 7B [10:00:58]RasterBufferAndPrint [10:00:58]line [10:00:58]line [10:00:58]line [10:00:58]line [10:00:58]line [10:00:58]written 0, free lines is 3241 [10:00:58]MH_Cut [10:00:58]Write to MH i2c: D1 01 00 C1 09 01 9C [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: D1 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: D1 01 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: D1 01 00 C1 09 00 9B [10:00:58]Write to MH i2c: 01 00 00 C2 09 CB [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:59]OFD Sender: No OFD packet to send [10:00:59]*** Cut start [10:00:59]*** Partial cut [10:00:59]*** CUTSNS_PIN = 1 [10:00:59]*** CUTSNS_PIN = 0 [10:01:00]*** Brake cut motor [10:01:00]Read from MH i2c: 01 [10:01:00]MH_I2C_Read... [10:01:00]*** Stop cut motor [10:01:00]*** Cut end [10:01:00]Read from MH i2c: 01 07 00 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [10:01:00]process_action close_receipt done [10:01:00]requested_data is exist [10:01:00]produce_requested_data [10:01:00]requested_item fm.sn is exist - process it [10:01:00]wFMCommunicate request_size=4 [10:01:00]MH_SAM_APDU [10:01:00]CAPDU: 80 11 00 00 [10:01:00]Write to MH i2c: E2 08 00 C3 09 80 11 00 00 00 00 00 00 46 [10:01:00]Write i2c OK [10:01:00]MH_I2C_Read... [10:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:00]Read from MH i2c: E2 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: E2 17 00 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: E2 17 00 C3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 93 [10:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:00]wFMCommunicate OK [10:01:00]requested_item fd.num is exist - process it [10:01:00]SAM_PROTO_GetFieldsCounters [10:01:00]wFMCommunicate request_size=4 [10:01:00]MH_SAM_APDU [10:01:00]CAPDU: 80 13 00 00 [10:01:00]Write to MH i2c: E2 08 00 C4 09 80 13 00 00 00 00 00 00 49 [10:01:00]Write i2c OK [10:01:00]MH_I2C_Read... [10:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:00]Read from MH i2c: E2 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: E2 62 00 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: E2 62 00 C4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 08 20 01 00 0E 04 04 00 AA 00 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 EA [10:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 08 20 01 00 0E 04 04 00 AA 00 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 [10:01:00]wFMCommunicate OK [10:01:00]SAM_PROTO_GetFieldsCounters done [10:01:00]requested_item shift.num is exist - process it [10:01:00]requested_item shift.opened is exist - process it [10:01:00]req_shift_opened [10:01:00]FM_GetShiftState [10:01:00]SAM_PROTO_GetShiftState [10:01:00]wFMCommunicate request_size=4 [10:01:00]MH_SAM_APDU [10:01:00]CAPDU: 80 13 01 00 [10:01:00]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [10:01:00]Write i2c OK [10:01:00]MH_I2C_Read... [10:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:00]Read from MH i2c: E2 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: E2 0E 00 [10:01:00]MH_I2C_Read... [10:01:00]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 90 [10:01:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:01:00]wFMCommunicate OK [10:01:00]SAM_PROTO_GetShiftState done [10:01:00]FM_GetShiftState done [10:01:00]req_shift_opened done [10:01:00]requested_item shift.open_date is exist - process it [10:01:00]req_shift_open_date [10:01:00]req_shift_open_date done [10:01:00]produce_requested_data done [10:01:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73736,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:01:00]process_action_free close_receipt [10:01:00]json_value_free [10:01:00]json_value_free done [10:01:00]process_json_proto returns [10:01:00]Send response to host [10:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73736,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:01:00]free response buf [10:01:00]execute_script done [10:01:00]execute_script returns [10:01:00]free content buf [10:01:00]Sock 8.Close socket [10:01:00]Sock 8.Thread stoped [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:25]accept exits with 9 [10:01:25]New connection [10:01:25]New thread 3067432292 created [10:01:25]Thread 3067575652 joined [10:01:25]Waiting for new connection... [10:01:25] Sock 9.Parse request [10:01:25]Sock 9.Check first char [10:01:25]Sock 9.First char is OK [10:01:25]request: POST /json_proto HTTP/1.0 [10:01:25]Method: POST [10:01:25]URL: /json_proto [10:01:25]Method is POST - this is cgi request [10:01:25]url: /json_proto [10:01:25]query_string will be loaded in cgi processing [10:01:25]execute_cgi json_proto POST (null) [10:01:25]execute_cgi path=json_proto method=POST [10:01:25]POST find Content-Length [10:01:25]Host: 172.17.44.196:8080 [10:01:25]Content-Length: 678 [10:01:25]Content-Type: application/json [10:01:25] [10:01:25]POST finish read [10:01:25]Found Content-Length = 678 [10:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962779", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:01:25]execute_script... [10:01: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 : (1)1962779", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:01:25]POST & json_proto [10:01:25]process_json_proto [10:01:25]json parsed OK: [10:01:25]protocol is kg_v1.0 [10:01:25]action value=close_receipt [10:01:25]process_action close_receipt [10:01:25]cmd_close_receipt [10:01:25]MH_GetDate [10:01:25]Write to MH i2c: F0 00 00 C6 09 BE [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: F0 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: F0 09 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: F0 09 00 C6 09 00 F5 D4 14 67 E7 19 F8 65 68 [10:01:25]GetLastDocTimeStamp 1729418457 [10:01:25]current date 1729418485 [10:01:25]FM_GetShiftState [10:01:25]SAM_PROTO_GetShiftState [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 13 01 00 [10:01:25]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0E 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 92 [10:01:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_GetShiftState done [10:01:25]FM_GetShiftState done [10:01:25]opened in 1729384303 [10:01:25]opened+sec_in_day 1729470703 [10:01:25]quantity*price = 50041 [10:01:25]sum+1 = 50042 [10:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 63 20.10.2024 10:01 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73737 ФПД: 147953570770969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73737&fm=147953570770969&tin=02508201610067®Number=0000000000161154&sum=50000 [10:01:26]StoreToDocumentArchive [10:01:26]shift 170 fd 73737 [10:01:26]save to /storage/0170/doc_00073737 [10:01:26]save last doc name /storage/0170/doc_00073737 to /storage/kkm_last_doc_name [10:01:26]save OK [10:01:26]Clear old archive folders... [10:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:26]tlvbuf is 0031D1A0 [10:01:26]SAM_PROTO_ClearQueue [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 09 00 00 [10:01:26]Write to MH i2c: E2 08 00 D4 09 80 09 00 00 00 00 00 00 4F [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [10:01:26]RAPDU: 90 00 [10:01:26]wFMCommunicate OK [10:01:26]SAM_PROTO_ClearQueue done [10:01:26]KKMCreateOFDPacket [10:01:26]OFDProtocolAddRootSTLVToBuf [10:01:26]FM_MakeSignedData [10:01:26]FM_MakeSignedData [10:01:26]SAM_PROTO_SignData [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 0D 01 02 [10:01:26]Write to MH i2c: E2 08 00 D5 09 80 0D 01 02 00 00 00 00 57 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [10:01:26]RAPDU: 90 00 [10:01:26]wFMCommunicate OK [10:01:26]wFMCommunicate request_size=255 [10:01:26]MH_SAM_APDU [10:01:26]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3F 00 00 00 F4 03 04 00 F6 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 20 01 00 35 04 06 00 86 [10:01:26]Write to MH i2c: E2 02 01 D6 09 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3F 00 00 00 F4 03 04 00 F6 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 20 01 00 35 04 06 00 86 00 00 B7 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [10:01:26]RAPDU: 90 00 [10:01:26]wFMCommunicate OK [10:01:26]wFMCommunicate request_size=10 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 0D 02 02 05 90 20 07 70 19 [10:01:26]Write to MH i2c: E2 0D 00 D7 09 80 0D 02 02 05 00 90 20 07 70 19 00 00 A4 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [10:01:26]RAPDU: 90 00 [10:01:26]wFMCommunicate OK [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 0D 03 02 [10:01:26]Write to MH i2c: E2 08 00 D8 09 80 0D 03 02 00 00 00 00 5C [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0B 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0B 00 D8 09 00 C1 6D 90 88 BE 22 9B 5F 90 00 7D [10:01:26]RAPDU: C1 6D 90 88 BE 22 9B 5F 90 00 [10:01:26]wFMCommunicate OK [10:01:26]SAM_PROTO_SignData done [10:01:26]FM_MakeSignedData done [10:01:26]CreateOFDProtocolMessage [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 11 00 00 [10:01:26]Write to MH i2c: E2 08 00 D9 09 80 11 00 00 00 00 00 00 5C [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 17 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 17 00 D9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A9 [10:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:26]wFMCommunicate OK [10:01:26]CreateOFDProtocolMessage done [10:01:26]OFDSenderStorePacket 73737 [10:01:26]StoreOFDPacket docnum=73737 [10:01:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 21 B5 07 01 08 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3F 00 00 00 F4 03 04 00 F6 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 20 01 00 35 04 06 00 86 90 20 07 70 19 C1 6D 90 88 BE 22 9B 5F [10:01:26]CheckFolder [10:01:26]dirname=/storage/ofd_packets [10:01:26]CheckFolder done [10:01:26]ProducePacketName [10:01:26]name=ofd_packets/00073737 [10:01:26]NVStorageSaveData ofd_packets/00073737 [10:01:26]File name is /storage/ofd_packets/00073737 [10:01:26]Write 301 bytes [10:01:26]NVStorageSaveData done [10:01:26]OFDSenderStorePacket done [10:01:26]KKMCreateOFDPacket done [10:01:26]NVStorageSaveData kkm_last_timestamp [10:01:26]File name is /storage/kkm_last_timestamp [10:01:26]Write 4 bytes [10:01:26]NVStorageSaveData done [10:01:26]ExternCall_PrintAddStr [10:01:26]wPrintStart [10:01:26]Write to MH i2c: 01 00 00 DA 09 E3 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 FF 0F F8 [10:01:26]RasterBufferAndPrint [10:01:26]line Счет N : (1)1962779 [10:01:26]line ИНН: 02508201610067 [10:01:26]line Контрольно-Кассовый Чек [10:01:26]line ПРОДАЖА [10:01:26]line ТРК (МРК, ГНК) : 53 [10:01:26]line Товар: 2710124130 [10:01:26]line Аи-92-К-5 [10:01:26]line 7.480 * 66.90 [10:01:26]line = 500.41 [10:01:26]line НДС 12% НСП 1% [10:01:26]line > о реализуемом товаре [10:01:26]line ОКРУГЛЕНИЕ: -0.41 [10:01:26]line ИТОГО: 500.00 [10:01:26]line Внесено: 500.00 [10:01:26]line СДАЧА: 0.00 [10:01:26]line НСП 1% : 4.43 [10:01:26]line НДС 12% : 53.14 [10:01:26]line Наличными: 500.00 [10:01:26]line Безнал.: 0.00 [10:01:26]line Место: АЗС № 133 "Партнер Нефть" [10:01:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:01:26]line СНО: Общий режим [10:01:26]line Чек 63 20.10.2024 10:01 [10:01:26]line Смена: 170 ФФД: 1.0 [10:01:26]line ЗНМ: 0300000020 [10:01:26]line РНМ: 0000000000161154 [10:01:26]line Версия ККМ: v1.0 [10:01:26]line ФМ: 0000000000963323 [10:01:26]line ФД: 73737 [10:01:26]line ФПД: 147953570770969 [10:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73737&fm=147953570770969&tin=02508201610067®Number=0000000000161154&sum=50000 [10:01:27]OFD Sender: Processing packet 73737 [packets to send 15, broken 14] [10:01:27]ProducePacketName [10:01:27]name=ofd_packets/00073737 [10:01:27]OFD Sender: To server: pG, [10:01:27]CommunicateWithHost lk.salyk.kg:30040 [10:01:27]ConnectInit lk.salyk.kg [10:01:27]written 0, free lines is 4095 [10:01:27]Connected sock=10 [10:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 21 B5 07 01 08 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3F 00 00 00 F4 03 04 00 F6 D4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 20 01 00 35 04 06 00 86 90 20 07 70 19 C1 6D 90 88 BE 22 9B 5F [10:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A5 D9 47 00 DE 3E 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 39 36 33 33 32 33 10 04 04 00 09 20 01 00 F4 03 04 00 DB 7D 14 67 B6 04 01 00 00 44 87 68 23 2E 9A 5E D4 [10:01:27]CommunicateWithHost err = 0 [10:01:27]CheckOFDResponse [10:01:27]1017 (14) - 77093643461234 [10:01:27]1041 (16) - 0000000000963323 [10:01:27]1040 (4) - 73737 [10:01:27]1012 (4) - 20.10.2024 03:49 [10:01:27]1206 (1) - 0 [10:01:27]OFD Sender: Remove packet 73737 [10:01:27]ProducePacketName [10:01:27]name=ofd_packets/00073737 [10:01:27]NVStorageDeleteData [10:01:27]Write to MH i2c: 01 00 00 04 0A 0E [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: 01 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: 01 07 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 B0 0C D1 [10:01:27]RasterBufferAndPrint [10:01:27]line [10:01:27]line [10:01:27]line [10:01:27]line [10:01:27]line [10:01:27]written 0, free lines is 3253 [10:01:27]MH_Cut [10:01:27]Write to MH i2c: D1 01 00 0B 0A 01 E7 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: D1 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: D1 01 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: D1 01 00 0B 0A 00 E6 [10:01:27]Write to MH i2c: 01 00 00 0C 0A 16 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]OFD Sender: No OFD packet to send [10:01:28]*** Cut start [10:01:28]*** Partial cut [10:01:28]*** CUTSNS_PIN = 1 [10:01:28]*** CUTSNS_PIN = 0 [10:01:28]*** Brake cut motor [10:01:29]Read from MH i2c: 01 [10:01:29]MH_I2C_Read... [10:01:29]*** Stop cut motor [10:01:29]*** Cut end [10:01:29]Read from MH i2c: 01 07 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 FF 0F 2B [10:01:29]process_action close_receipt done [10:01:29]requested_data is exist [10:01:29]produce_requested_data [10:01:29]requested_item fm.sn is exist - process it [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 11 00 00 [10:01:29]Write to MH i2c: E2 08 00 0D 0A 80 11 00 00 00 00 00 00 91 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 0D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DE [10:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:29]wFMCommunicate OK [10:01:29]requested_item fd.num is exist - process it [10:01:29]SAM_PROTO_GetFieldsCounters [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 13 00 00 [10:01:29]Write to MH i2c: E2 08 00 0E 0A 80 13 00 00 00 00 00 00 94 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 62 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 62 00 0E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 09 20 01 00 0E 04 04 00 AA 00 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 39 [10:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 09 20 01 00 0E 04 04 00 AA 00 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 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_GetFieldsCounters done [10:01:29]requested_item shift.num is exist - process it [10:01:29]requested_item shift.opened is exist - process it [10:01:29]req_shift_opened [10:01:29]FM_GetShiftState [10:01:29]SAM_PROTO_GetShiftState [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 13 01 00 [10:01:29]Write to MH i2c: E2 08 00 0F 0A 80 13 01 00 00 00 00 00 96 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0E 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0E 00 0F 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [10:01:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_GetShiftState done [10:01:29]FM_GetShiftState done [10:01:29]req_shift_opened done [10:01:29]requested_item shift.open_date is exist - process it [10:01:29]req_shift_open_date [10:01:29]req_shift_open_date done [10:01:29]produce_requested_data done [10:01:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73737,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:01:29]process_action_free close_receipt [10:01:29]json_value_free [10:01:29]json_value_free done [10:01:29]process_json_proto returns [10:01:29]Send response to host [10:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73737,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:01:29]free response buf [10:01:29]execute_script done [10:01:29]execute_script returns [10:01:29]free content buf [10:01:29]Sock 9.Close socket [10:01:29]Sock 9.Thread stoped [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:06:59]accept exits with 8 [10:06:59]New connection [10:06:59]New thread 3067575652 created [10:06:59]Thread 3067432292 joined [10:06:59]Waiting for new connection... [10:06:59] Sock 8.Parse request [10:06:59]Sock 8.Check first char [10:06:59]Sock 8.First char is OK [10:06:59]request: POST /json_proto HTTP/1.0 [10:06:59]Method: POST [10:06:59]URL: /json_proto [10:06:59]Method is POST - this is cgi request [10:06:59]url: /json_proto [10:06:59]query_string will be loaded in cgi processing [10:06:59]execute_cgi json_proto POST (null) [10:06:59]execute_cgi path=json_proto method=POST [10:06:59]POST find Content-Length [10:06:59]Host: 172.17.44.196:8080 [10:06:59]Content-Length: 931 [10:06:59]Content-Type: application/json [10:06:59] [10:06:59]POST finish read [10:06:59]Found Content-Length = 931 [10:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272749", "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": "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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:59]execute_script... [10:06:59]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)272749", "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": "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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:59]POST & json_proto [10:06:59]process_json_proto [10:06:59]json parsed OK: [10:06:59]protocol is kg_v1.0 [10:06:59]action value=close_receipt [10:06:59]process_action close_receipt [10:06:59]cmd_close_receipt [10:06:59]MH_GetDate [10:06:59]Write to MH i2c: F0 00 00 10 0A 09 [10:06:59]Write i2c OK [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: F0 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: F0 09 00 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: F0 09 00 10 0A 00 44 D6 14 67 E7 19 F8 65 04 [10:06:59]GetLastDocTimeStamp 1729418486 [10:06:59]current date 1729418820 [10:06:59]FM_GetShiftState [10:06:59]SAM_PROTO_GetShiftState [10:06:59]wFMCommunicate request_size=4 [10:06:59]MH_SAM_APDU [10:06:59]CAPDU: 80 13 01 00 [10:06:59]Write to MH i2c: E2 08 00 11 0A 80 13 01 00 00 00 00 00 98 [10:06:59]Write i2c OK [10:06:59]MH_I2C_Read... [10:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:59]Read from MH i2c: E2 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 0E 00 [10:06:59]MH_I2C_Read... [10:06:59]Read from MH i2c: E2 0E 00 11 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DD [10:06:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:06:59]wFMCommunicate OK [10:06:59]SAM_PROTO_GetShiftState done [10:06:59]FM_GetShiftState done [10:06:59]opened in 1729384303 [10:06:59]opened+sec_in_day 1729470703 [10:06:59]quantity*price = 9000 [10:06:59]sum+1 = 9001 [10:06:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.51 НДС 12% : 18.06 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 64 20.10.2024 10:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73738 ФПД: 133963867226198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100700&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73738&fm=133963867226198&tin=02508201610067®Number=0000000000161154&sum=17000 0 [10:07:00]StoreToDocumentArchive [10:07:00]shift 170 fd 73738 [10:07:00]save to /storage/0170/doc_00073738 [10:07:00]save last doc name /storage/0170/doc_00073738 to /storage/kkm_last_doc_name [10:07:00]save OK [10:07:00]Clear old archive folders... [10:07:00]ProcessDocumentItem done err = 0, tmpTLVsize=397 [10:07:00]tlvbuf is 003358E0 [10:07:00]SAM_PROTO_ClearQueue [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 09 00 00 [10:07:00]Write to MH i2c: E2 08 00 1E 0A 80 09 00 00 00 00 00 00 9A [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 03 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [10:07:00]RAPDU: 90 00 [10:07:00]wFMCommunicate OK [10:07:00]SAM_PROTO_ClearQueue done [10:07:00]KKMCreateOFDPacket [10:07:00]OFDProtocolAddRootSTLVToBuf [10:07:00]FM_MakeSignedData [10:07:00]FM_MakeSignedData [10:07:00]SAM_PROTO_SignData [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 0D 01 02 [10:07:00]Write to MH i2c: E2 08 00 1F 0A 80 0D 01 02 00 00 00 00 A2 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 03 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [10:07:00]RAPDU: 90 00 [10:07:00]wFMCommunicate OK [10:07:00]wFMCommunicate request_size=255 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 0D 02 02 FA 03 00 8D 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 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 68 42 00 00 00 00 EB 03 26 00 [10:07:00]Write to MH i2c: E2 02 01 20 0A 80 0D 02 02 FA 00 03 00 8D 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 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 68 42 00 00 00 00 EB 03 26 00 00 00 90 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 03 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [10:07:00]RAPDU: 90 00 [10:07:00]wFMCommunicate OK [10:07:00]wFMCommunicate request_size=156 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 40 00 00 00 F4 03 04 00 44 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 20 01 00 35 04 06 00 79 D6 E4 B8 00 56 [10:07:00]Write to MH i2c: E2 9F 00 21 0A 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 40 00 00 00 F4 03 04 00 44 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 20 01 00 35 04 06 00 79 D6 E4 B8 00 56 00 00 30 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:01]Read from MH i2c: E2 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 03 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [10:07:01]RAPDU: 90 00 [10:07:01]wFMCommunicate OK [10:07:01]wFMCommunicate request_size=4 [10:07:01]MH_SAM_APDU [10:07:01]CAPDU: 80 0D 03 02 [10:07:01]Write to MH i2c: E2 08 00 22 0A 80 0D 03 02 00 00 00 00 A7 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:01]Read from MH i2c: E2 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 0B 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 0B 00 22 0A 00 5E F0 F8 6B 50 D0 51 C2 90 00 8C [10:07:01]RAPDU: 5E F0 F8 6B 50 D0 51 C2 90 00 [10:07:01]wFMCommunicate OK [10:07:01]SAM_PROTO_SignData done [10:07:01]FM_MakeSignedData done [10:07:01]CreateOFDProtocolMessage [10:07:01]wFMCommunicate request_size=4 [10:07:01]MH_SAM_APDU [10:07:01]CAPDU: 80 11 00 00 [10:07:01]Write to MH i2c: E2 08 00 23 0A 80 11 00 00 00 00 00 00 A7 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:01]Read from MH i2c: E2 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 17 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 17 00 23 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F4 [10:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:07:01]wFMCommunicate OK [10:07:01]CreateOFDProtocolMessage done [10:07:01]OFDSenderStorePacket 73738 [10:07:01]StoreOFDPacket docnum=73738 [10:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 08 01 99 01 66 80 5A 03 01 00 03 00 8D 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 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 40 00 00 00 F4 03 04 00 44 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 20 01 00 35 04 06 00 79 D6 E4 B8 00 56 5E F0 F8 6B 50 D0 51 C2 [10:07:01]CheckFolder [10:07:01]dirname=/storage/ofd_packets [10:07:01]CheckFolder done [10:07:01]ProducePacketName [10:07:01]name=ofd_packets/00073738 [10:07:01]NVStorageSaveData ofd_packets/00073738 [10:07:01]File name is /storage/ofd_packets/00073738 [10:07:01]Write 447 bytes [10:07:01]NVStorageSaveData done [10:07:01]OFDSenderStorePacket done [10:07:01]KKMCreateOFDPacket done [10:07:01]NVStorageSaveData kkm_last_timestamp [10:07:01]File name is /storage/kkm_last_timestamp [10:07:01]Write 4 bytes [10:07:01]NVStorageSaveData done [10:07:01]ExternCall_PrintAddStr [10:07:01]wPrintStart [10:07:01]Write to MH i2c: 01 00 00 24 0A 2E [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: 01 [10:07:01]MH_I2C_Read... [10:07:01]OFD Sender: Processing packet 73738 [packets to send 15, broken 14] [10:07:01]ProducePacketName [10:07:01]name=ofd_packets/00073738 [10:07:01]OFD Sender: To server: pG, [10:07:01]CommunicateWithHost lk.salyk.kg:30040 [10:07:01]ConnectInit lk.salyk.kg [10:07:01]Read from MH i2c: 01 07 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: 01 07 00 24 0A 00 00 00 00 00 FF 0F 43 [10:07:01]RasterBufferAndPrint [10:07:01]line Счет N : (3)272749 [10:07:01]line ИНН: 02508201610067 [10:07:01]line Контрольно-Кассовый Чек [10:07:01]line ПРОДАЖА [10:07:01]line Товар: 4870002325113 [10:07:01]line Напиток PEPSI газированный ст 0,25л [10:07:01]line 1.000 * 90.00 [10:07:01]line = 90.00 [10:07:01]line НДС 12% НСП 1% [10:07:01]line > о реализуемом товаре [10:07:01]line Товар: 4870001570057 [10:07:01]line Напиток Pepsi 0,5л [10:07:01]line 1.000 * 80.00 [10:07:01]line = 80.00 [10:07:01]line НДС 12% НСП 1% [10:07:01]line > о реализуемом товаре [10:07:01]line ИТОГО: 170.00 [10:07:01]line НСП 1% : 1.51 [10:07:01]line НДС 12% : 18.06 [10:07:01]line Наличными: 170.00 [10:07:01]line Безнал.: 0.00 [10:07:01]line Место: АЗС № 133 "Партнер Нефть" [10:07:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:07:01]line СНО: Общий режим [10:07:01]line Чек 64 20.10.2024 10:07 [10:07:01]line Смена: 170 ФФД: 1.0 [10:07:01]line ЗНМ: 0300000020 [10:07:01]line РНМ: 0000000000161154 [10:07:01]line Версия ККМ: v1.0 [10:07:01]line ФМ: 0000000000963323 [10:07:01]line ФД: 73738 [10:07:01]line ФПД: 133963867226198 [10:07:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100700&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73738&fm=133963867226198&tin=02508201610067®Number=0000000000161154&sum=17000 [10:07:01]line 0 [10:07:01]written 0, free lines is 4095 [10:07:01]Connected sock=10 [10:07:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 08 01 99 01 66 80 5A 03 01 00 03 00 8D 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 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 40 00 00 00 F4 03 04 00 44 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 20 01 00 35 04 06 00 79 D6 E4 B8 00 56 5E F0 F8 6B 50 D0 51 C2 [10:07:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BA BE 47 00 5C 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 39 36 33 33 32 33 10 04 04 00 0A 20 01 00 F4 03 04 00 29 7F 14 67 B6 04 01 00 00 EE 59 EA 7A 66 1B C7 D3 [10:07:01]CommunicateWithHost err = 0 [10:07:01]CheckOFDResponse [10:07:01]1017 (14) - 77093643461234 [10:07:01]1041 (16) - 0000000000963323 [10:07:01]1040 (4) - 73738 [10:07:01]1012 (4) - 20.10.2024 03:55 [10:07:01]1206 (1) - 0 [10:07:01]OFD Sender: Remove packet 73738 [10:07:01]ProducePacketName [10:07:01]name=ofd_packets/00073738 [10:07:01]NVStorageDeleteData [10:07:01]Write to MH i2c: 01 00 00 52 0A 5C [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: 01 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: 01 07 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 58 0C C7 [10:07:01]RasterBufferAndPrint [10:07:01]line [10:07:01]line [10:07:01]line [10:07:01]line [10:07:01]line [10:07:01]written 0, free lines is 3165 [10:07:01]MH_Cut [10:07:01]Write to MH i2c: D1 01 00 59 0A 01 35 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: D1 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: D1 01 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: D1 01 00 59 0A 00 34 [10:07:01]Write to MH i2c: 01 00 00 5A 0A 64 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:02]OFD Sender: No OFD packet to send [10:07:02]*** Cut start [10:07:02]*** Partial cut [10:07:02]*** CUTSNS_PIN = 1 [10:07:02]*** CUTSNS_PIN = 0 [10:07:03]*** Brake cut motor [10:07:03]Read from MH i2c: 01 [10:07:03]MH_I2C_Read... [10:07:03]*** Stop cut motor [10:07:03]*** Cut end [10:07:03]Read from MH i2c: 01 07 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 FF 0F 79 [10:07:03]process_action close_receipt done [10:07:03]requested_data is exist [10:07:03]produce_requested_data [10:07:03]requested_item fm.sn is exist - process it [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 11 00 00 [10:07:03]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 17 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [10:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:07:03]wFMCommunicate OK [10:07:03]requested_item fd.num is exist - process it [10:07:03]SAM_PROTO_GetFieldsCounters [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 13 00 00 [10:07:03]Write to MH i2c: E2 08 00 5C 0A 80 13 00 00 00 00 00 00 E2 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 62 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 62 00 5C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0A 20 01 00 0E 04 04 00 AA 00 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 8B [10:07:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0A 20 01 00 0E 04 04 00 AA 00 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 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_GetFieldsCounters done [10:07:03]requested_item shift.num is exist - process it [10:07:03]requested_item shift.opened is exist - process it [10:07:03]req_shift_opened [10:07:03]FM_GetShiftState [10:07:03]SAM_PROTO_GetShiftState [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 13 01 00 [10:07:03]Write to MH i2c: E2 08 00 5D 0A 80 13 01 00 00 00 00 00 E4 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 0E 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 0E 00 5D 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 29 [10:07:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_GetShiftState done [10:07:03]FM_GetShiftState done [10:07:03]req_shift_opened done [10:07:03]requested_item shift.open_date is exist - process it [10:07:03]req_shift_open_date [10:07:03]req_shift_open_date done [10:07:03]produce_requested_data done [10:07:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73738,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:07:03]process_action_free close_receipt [10:07:03]json_value_free [10:07:03]json_value_free done [10:07:03]process_json_proto returns [10:07:03]Send response to host [10:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73738,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:07:03]free response buf [10:07:03]execute_script done [10:07:03]execute_script returns [10:07:03]free content buf [10:07:03]Sock 8.Close socket [10:07:03]Sock 8.Thread stoped [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:24]accept exits with 9 [10:08:24]New connection [10:08:24]New thread 3067432292 created [10:08:24]Thread 3067575652 joined [10:08:24]Waiting for new connection... [10:08:24] Sock 9.Parse request [10:08:24]Sock 9.Check first char [10:08:24]Sock 9.First char is OK [10:08:24]request: POST /json_proto HTTP/1.0 [10:08:24]Method: POST [10:08:24]URL: /json_proto [10:08:24]Method is POST - this is cgi request [10:08:24]url: /json_proto [10:08:24]query_string will be loaded in cgi processing [10:08:24]execute_cgi json_proto POST (null) [10:08:24]execute_cgi path=json_proto method=POST [10:08:24]POST find Content-Length [10:08:24]Host: 172.17.44.196:8080 [10:08:24]Content-Length: 1059 [10:08:24]Content-Type: application/json [10:08:24] [10:08:24]POST finish read [10:08:24]Found Content-Length = 1059 [10:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272750", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A 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: Mbank", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:24]execute_script... [10:08: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)272750", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A 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: Mbank", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:24]POST & json_proto [10:08:24]process_json_proto [10:08:24]json parsed OK: [10:08:24]protocol is kg_v1.0 [10:08:24]action value=close_receipt [10:08:24]process_action close_receipt [10:08:24]cmd_close_receipt [10:08:24]MH_GetDate [10:08:24]Write to MH i2c: F0 00 00 5E 0A 57 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: F0 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: F0 09 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: F0 09 00 5E 0A 00 99 D6 14 67 E7 19 F8 65 A7 [10:08:24]GetLastDocTimeStamp 1729418820 [10:08:24]current date 1729418905 [10:08:24]FM_GetShiftState [10:08:24]SAM_PROTO_GetShiftState [10:08:24]wFMCommunicate request_size=4 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 13 01 00 [10:08:24]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 0E 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2B [10:08:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:08:24]wFMCommunicate OK [10:08:24]SAM_PROTO_GetShiftState done [10:08:24]FM_GetShiftState done [10:08:24]opened in 1729384303 [10:08:24]opened+sec_in_day 1729470703 [10:08:24]quantity*price = 6000 [10:08:24]sum+1 = 6001 [10:08:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329937 Напиток Lipton IceTea 1л персик Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 65 20.10.2024 10:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73739 ФПД: 235355935391787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100825&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73739&fm=235355935391787&tin=02508201610067®Number=0000000000161154&sum=19000 0 [10:08:25]StoreToDocumentArchive [10:08:25]shift 170 fd 73739 [10:08:25]save to /storage/0170/doc_00073739 [10:08:25]save last doc name /storage/0170/doc_00073739 to /storage/kkm_last_doc_name [10:08:25]save OK [10:08:25]Clear old archive folders... [10:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=404 [10:08:25]tlvbuf is 00310620 [10:08:25]SAM_PROTO_ClearQueue [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 09 00 00 [10:08:25]Write to MH i2c: E2 08 00 6C 0A 80 09 00 00 00 00 00 00 E8 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 03 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [10:08:25]RAPDU: 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_ClearQueue done [10:08:25]KKMCreateOFDPacket [10:08:25]OFDProtocolAddRootSTLVToBuf [10:08:25]FM_MakeSignedData [10:08:25]FM_MakeSignedData [10:08:25]SAM_PROTO_SignData [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 0D 01 02 [10:08:25]Write to MH i2c: E2 08 00 6D 0A 80 0D 01 02 00 00 00 00 F0 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 03 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [10:08:25]RAPDU: 90 00 [10:08:25]wFMCommunicate OK [10:08:25]wFMCommunicate request_size=255 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 38 4A 00 [10:08:25]Write to MH i2c: E2 02 01 6E 0A 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 38 4A 00 00 00 23 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 03 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [10:08:25]RAPDU: 90 00 [10:08:25]wFMCommunicate OK [10:08:25]wFMCommunicate request_size=163 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 0D 02 02 9E 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 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 99 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 20 01 00 35 04 06 00 D6 0E 12 EC C0 2B [10:08:25]Write to MH i2c: E2 A6 00 6F 0A 80 0D 02 02 9E 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 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 99 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 20 01 00 35 04 06 00 D6 0E 12 EC C0 2B 00 00 3F [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 0D 03 02 [10:08:26]Write to MH i2c: E2 08 00 70 0A 80 0D 03 02 00 00 00 00 F5 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0B 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0B 00 70 0A 00 7F 26 C1 4F 8D 52 A7 E9 90 00 1A [10:08:26]RAPDU: 7F 26 C1 4F 8D 52 A7 E9 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_SignData done [10:08:26]FM_MakeSignedData done [10:08:26]CreateOFDProtocolMessage [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 11 00 00 [10:08:26]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 17 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 42 [10:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:08:26]wFMCommunicate OK [10:08:26]CreateOFDProtocolMessage done [10:08:26]OFDSenderStorePacket 73739 [10:08:26]StoreOFDPacket docnum=73739 [10:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A8 01 00 00 94 91 A0 01 9E AD 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 99 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 20 01 00 35 04 06 00 D6 0E 12 EC C0 2B 7F 26 C1 4F 8D 52 A7 E9 [10:08:26]CheckFolder [10:08:26]dirname=/storage/ofd_packets [10:08:26]CheckFolder done [10:08:26]ProducePacketName [10:08:26]name=ofd_packets/00073739 [10:08:26]NVStorageSaveData ofd_packets/00073739 [10:08:26]File name is /storage/ofd_packets/00073739 [10:08:26]Write 454 bytes [10:08:26]NVStorageSaveData done [10:08:26]OFDSenderStorePacket done [10:08:26]KKMCreateOFDPacket done [10:08:26]NVStorageSaveData kkm_last_timestamp [10:08:26]File name is /storage/kkm_last_timestamp [10:08:26]Write 4 bytes [10:08:26]NVStorageSaveData done [10:08:26]ExternCall_PrintAddStr [10:08:26]wPrintStart [10:08:26]Write to MH i2c: 01 00 00 72 0A 7C [10:08:26]OFD Sender: Processing packet 73739 [packets to send 15, broken 14] [10:08:26]ProducePacketName [10:08:26]name=ofd_packets/00073739 [10:08:26]OFD Sender: To server: pG, [10:08:26]CommunicateWithHost lk.salyk.kg:30040 [10:08:26]ConnectInit lk.salyk.kg [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 07 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 07 00 72 0A 00 00 00 00 00 FF 0F 91 [10:08:26]RasterBufferAndPrint [10:08:26]line Счет N : (3)272750 [10:08:26]line ИНН: 02508201610067 [10:08:26]line Контрольно-Кассовый Чек [10:08:26]line ПРОДАЖА [10:08:26]line Товар: 2000032780025 [10:08:26]line Сосиска в тесте DC 110г [10:08:26]line 1.000 * 60.00 [10:08:26]line = 60.00 [10:08:26]line НДС 12% НСП 1% [10:08:26]line > о реализуемом товаре [10:08:26]line Товар: 4870002329937 [10:08:26]line Напиток Lipton IceTea 1л персик Regular [10:08:26]line 1.000 * 130.00 [10:08:26]line = 130.00 [10:08:26]line НДС 12% НСП 1% [10:08:26]line > о реализуемом товаре [10:08:26]line ИТОГО: 190.00 [10:08:26]line НСП 1% : 1.68 [10:08:26]line НДС 12% : 20.17 [10:08:26]line Наличными: 0.00 [10:08:26]line Безнал.: 190.00 [10:08:26]line Место: АЗС № 133 "Партнер Нефть" [10:08:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:08:26]line СНО: Общий режим [10:08:26]line Чек 65 20.10.2024 10:08 [10:08:26]line Смена: 170 ФФД: 1.0 [10:08:26]line ЗНМ: 0300000020 [10:08:26]line РНМ: 0000000000161154 [10:08:26]line Версия ККМ: v1.0 [10:08:26]line Платежная система: Mbank [10:08:26]line ФМ: 0000000000963323 [10:08:26]line ФД: 73739 [10:08:26]line ФПД: 235355935391787 [10:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100825&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73739&fm=235355935391787&tin=02508201610067®Number=0000000000161154&sum=19000 [10:08:26]line 0 [10:08:26]written 0, free lines is 4095 [10:08:26]Connected sock=10 [10:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A8 01 00 00 94 91 A0 01 9E AD 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 99 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 20 01 00 35 04 06 00 D6 0E 12 EC C0 2B 7F 26 C1 4F 8D 52 A7 E9 [10:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3E C3 47 00 6D 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 39 36 33 33 32 33 10 04 04 00 0B 20 01 00 F4 03 04 00 7E 7F 14 67 B6 04 01 00 00 85 DE 3F 87 7B BA 65 DF [10:08:26]CommunicateWithHost err = 0 [10:08:26]CheckOFDResponse [10:08:26]1017 (14) - 77093643461234 [10:08:26]1041 (16) - 0000000000963323 [10:08:26]1040 (4) - 73739 [10:08:26]1012 (4) - 20.10.2024 03:56 [10:08:26]1206 (1) - 0 [10:08:26]OFD Sender: Remove packet 73739 [10:08:26]ProducePacketName [10:08:26]name=ofd_packets/00073739 [10:08:26]NVStorageDeleteData [10:08:27]Write to MH i2c: 01 00 00 A1 0A AB [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 A1 0A 00 00 00 00 00 47 0C 05 [10:08:27]RasterBufferAndPrint [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]written 0, free lines is 3149 [10:08:27]MH_Cut [10:08:27]Write to MH i2c: D1 01 00 A8 0A 01 84 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 01 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 01 00 A8 0A 00 83 [10:08:27]Write to MH i2c: 01 00 00 A9 0A B3 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]OFD Sender: No OFD packet to send [10:08:28]*** Cut start [10:08:28]*** Partial cut [10:08:28]*** CUTSNS_PIN = 1 [10:08:28]*** CUTSNS_PIN = 0 [10:08:28]*** Brake cut motor [10:08:28]Read from MH i2c: 01 [10:08:28]MH_I2C_Read... [10:08:28]*** Stop cut motor [10:08:28]*** Cut end [10:08:28]Read from MH i2c: 01 07 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: 01 07 00 A9 0A 00 00 00 00 00 FF 0F C8 [10:08:28]process_action close_receipt done [10:08:28]requested_data is exist [10:08:28]produce_requested_data [10:08:28]requested_item fm.sn is exist - process it [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 11 00 00 [10:08:28]Write to MH i2c: E2 08 00 AA 0A 80 11 00 00 00 00 00 00 2E [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 AA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7B [10:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:08:28]wFMCommunicate OK [10:08:28]requested_item fd.num is exist - process it [10:08:28]SAM_PROTO_GetFieldsCounters [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 13 00 00 [10:08:28]Write to MH i2c: E2 08 00 AB 0A 80 13 00 00 00 00 00 00 31 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 62 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 62 00 AB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0B 20 01 00 0E 04 04 00 AA 00 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 DE [10:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0B 20 01 00 0E 04 04 00 AA 00 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 [10:08:28]wFMCommunicate OK [10:08:28]SAM_PROTO_GetFieldsCounters done [10:08:28]requested_item shift.num is exist - process it [10:08:28]requested_item shift.opened is exist - process it [10:08:28]req_shift_opened [10:08:28]FM_GetShiftState [10:08:28]SAM_PROTO_GetShiftState [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 13 01 00 [10:08:28]Write to MH i2c: E2 08 00 AC 0A 80 13 01 00 00 00 00 00 33 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 0E 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 0E 00 AC 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 78 [10:08:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:08:28]wFMCommunicate OK [10:08:28]SAM_PROTO_GetShiftState done [10:08:28]FM_GetShiftState done [10:08:28]req_shift_opened done [10:08:28]requested_item shift.open_date is exist - process it [10:08:28]req_shift_open_date [10:08:28]req_shift_open_date done [10:08:28]produce_requested_data done [10:08:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73739,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:08:28]process_action_free close_receipt [10:08:28]json_value_free [10:08:28]json_value_free done [10:08:28]process_json_proto returns [10:08:28]Send response to host [10:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73739,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:08:28]free response buf [10:08:28]execute_script done [10:08:28]execute_script returns [10:08:28]free content buf [10:08:28]Sock 9.Close socket [10:08:28]Sock 9.Thread stoped [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:55]accept exits with 8 [10:08:55]New connection [10:08:55]New thread 3067575652 created [10:08:55]Thread 3067432292 joined [10:08:55]Waiting for new connection... [10:08:55] Sock 8.Parse request [10:08:55]Sock 8.Check first char [10:08:55]Sock 8.First char is OK [10:08:55]request: POST /json_proto HTTP/1.0 [10:08:55]Method: POST [10:08:55]URL: /json_proto [10:08:55]Method is POST - this is cgi request [10:08:55]url: /json_proto [10:08:55]query_string will be loaded in cgi processing [10:08:55]execute_cgi json_proto POST (null) [10:08:55]execute_cgi path=json_proto method=POST [10:08:55]POST find Content-Length [10:08:55]Host: 172.17.44.196:8080 [10:08:55]Content-Length: 647 [10:08:55]Content-Type: application/json [10:08:55] [10:08:55]POST finish read [10:08:55]Found Content-Length = 647 [10:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272751", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 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" ] } } [10:08:55]execute_script... [10:08: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 : (3)272751", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 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" ] } } [10:08:55]POST & json_proto [10:08:55]process_json_proto [10:08:55]json parsed OK: [10:08:55]protocol is kg_v1.0 [10:08:55]action value=close_receipt [10:08:55]process_action close_receipt [10:08:55]cmd_close_receipt [10:08:55]MH_GetDate [10:08:55]Write to MH i2c: F0 00 00 AD 0A A6 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 09 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 09 00 AD 0A 00 B8 D6 14 67 E7 19 F8 65 15 [10:08:55]GetLastDocTimeStamp 1729418905 [10:08:55]current date 1729418936 [10:08:55]FM_GetShiftState [10:08:55]SAM_PROTO_GetShiftState [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 01 00 [10:08:55]Write to MH i2c: E2 08 00 AE 0A 80 13 01 00 00 00 00 00 35 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 AE 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7A [10:08:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_GetShiftState done [10:08:55]FM_GetShiftState done [10:08:55]opened in 1729384303 [10:08:55]opened+sec_in_day 1729470703 [10:08:55]quantity*price = 4000 [10:08:55]sum+1 = 4001 [10:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 66 20.10.2024 10:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73740 ФПД: 153909919128408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100856&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73740&fm=153909919128408&tin=02508201610067®Number=0000000000161154&sum=4000 0 [10:08:56]StoreToDocumentArchive [10:08:56]shift 170 fd 73740 [10:08:56]save to /storage/0170/doc_00073740 [10:08:56]save last doc name /storage/0170/doc_00073740 to /storage/kkm_last_doc_name [10:08:56]save OK [10:08:56]Clear old archive folders... [10:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:08:56]tlvbuf is 0032E5B0 [10:08:56]SAM_PROTO_ClearQueue [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 09 00 00 [10:08:56]Write to MH i2c: E2 08 00 BB 0A 80 09 00 00 00 00 00 00 37 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]SAM_PROTO_ClearQueue done [10:08:56]KKMCreateOFDPacket [10:08:56]OFDProtocolAddRootSTLVToBuf [10:08:56]FM_MakeSignedData [10:08:56]FM_MakeSignedData [10:08:56]SAM_PROTO_SignData [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 01 02 [10:08:56]Write to MH i2c: E2 08 00 BC 0A 80 0D 01 02 00 00 00 00 3F [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]wFMCommunicate request_size=255 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 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 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 42 00 00 00 F4 03 04 00 B8 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [10:08:56]Write to MH i2c: E2 02 01 BD 0A 80 0D 02 02 FA 00 03 00 16 01 1E 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 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 42 00 00 00 F4 03 04 00 B8 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 29 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]wFMCommunicate request_size=37 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 20 01 00 35 04 06 00 8B FA F2 0E 9B 58 [10:08:56]Write to MH i2c: E2 28 00 BE 0A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 20 01 00 35 04 06 00 8B FA F2 0E 9B 58 00 00 38 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 03 02 [10:08:56]Write to MH i2c: E2 08 00 BF 0A 80 0D 03 02 00 00 00 00 44 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0B 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0B 00 BF 0A 00 3E 11 1D 29 B2 C4 98 61 90 00 49 [10:08:56]RAPDU: 3E 11 1D 29 B2 C4 98 61 90 00 [10:08:56]wFMCommunicate OK [10:08:56]SAM_PROTO_SignData done [10:08:56]FM_MakeSignedData done [10:08:56]CreateOFDProtocolMessage [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 11 00 00 [10:08:56]Write to MH i2c: E2 08 00 C0 0A 80 11 00 00 00 00 00 00 44 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 17 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 17 00 C0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [10:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:08:56]wFMCommunicate OK [10:08:56]CreateOFDProtocolMessage done [10:08:56]OFDSenderStorePacket 73740 [10:08:56]StoreOFDPacket docnum=73740 [10:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 3D 4F 22 01 2F 1B 5A 03 01 00 03 00 16 01 1E 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 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 42 00 00 00 F4 03 04 00 B8 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 20 01 00 35 04 06 00 8B FA F2 0E 9B 58 3E 11 1D 29 B2 C4 98 61 [10:08:56]CheckFolder [10:08:56]dirname=/storage/ofd_packets [10:08:56]CheckFolder done [10:08:56]ProducePacketName [10:08:56]name=ofd_packets/00073740 [10:08:56]NVStorageSaveData ofd_packets/00073740 [10:08:56]File name is /storage/ofd_packets/00073740 [10:08:56]Write 328 bytes [10:08:56]NVStorageSaveData done [10:08:56]OFDSenderStorePacket done [10:08:56]KKMCreateOFDPacket done [10:08:56]NVStorageSaveData kkm_last_timestamp [10:08:56]File name is /storage/kkm_last_timestamp [10:08:56]Write 4 bytes [10:08:56]NVStorageSaveData done [10:08:56]ExternCall_PrintAddStr [10:08:56]wPrintStart [10:08:56]Write to MH i2c: 01 00 00 C1 0A CB [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: 01 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: 01 07 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [10:08:56]RasterBufferAndPrint [10:08:56]line Счет N : (3)272751 [10:08:56]line ИНН: 02508201610067 [10:08:56]line Контрольно-Кассовый Чек [10:08:56]line ПРОДАЖА [10:08:56]line Товар: 4700000310036 [10:08:56]line Вода Жалалабат 27 0,5л [10:08:56]line 1.000 * 40.00 [10:08:56]line = 40.00 [10:08:56]line НДС 12% НСП 1% [10:08:56]line > о реализуемом товаре [10:08:56]line ИТОГО: 40.00 [10:08:56]line НСП 1% : 0.35 [10:08:56]line НДС 12% : 4.25 [10:08:56]line Наличными: 40.00 [10:08:56]line Безнал.: 0.00 [10:08:56]line Место: АЗС № 133 "Партнер Нефть" [10:08:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:08:56]line СНО: Общий режим [10:08:56]line Чек 66 20.10.2024 10:08 [10:08:56]line Смена: 170 ФФД: 1.0 [10:08:56]line ЗНМ: 0300000020 [10:08:56]line РНМ: 0000000000161154 [10:08:56]line Версия ККМ: v1.0 [10:08:56]line ФМ: 0000000000963323 [10:08:56]line ФД: 73740 [10:08:56]line ФПД: 153909919128408 [10:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100856&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73740&fm=153909919128408&tin=02508201610067®Number=0000000000161154&sum=4000 [10:08:57]line 0 [10:08:57]OFD Sender: Processing packet 73740 [packets to send 15, broken 14] [10:08:57]ProducePacketName [10:08:57]name=ofd_packets/00073740 [10:08:57]OFD Sender: To server: pG, [10:08:57]CommunicateWithHost lk.salyk.kg:30040 [10:08:57]ConnectInit lk.salyk.kg [10:08:57]written 0, free lines is 4095 [10:08:57]Connected sock=10 [10:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 3D 4F 22 01 2F 1B 5A 03 01 00 03 00 16 01 1E 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 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 42 00 00 00 F4 03 04 00 B8 D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 20 01 00 35 04 06 00 8B FA F2 0E 9B 58 3E 11 1D 29 B2 C4 98 61 [10:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 01 06 47 00 CF 69 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 39 36 33 33 32 33 10 04 04 00 0C 20 01 00 F4 03 04 00 9D 7F 14 67 B6 04 01 00 00 CA 6A 0F 02 9C E0 82 12 [10:08:57]CommunicateWithHost err = 0 [10:08:57]CheckOFDResponse [10:08:57]1017 (14) - 77093643461234 [10:08:57]1041 (16) - 0000000000963323 [10:08:57]1040 (4) - 73740 [10:08:57]1012 (4) - 20.10.2024 03:57 [10:08:57]1206 (1) - 0 [10:08:57]OFD Sender: Remove packet 73740 [10:08:57]ProducePacketName [10:08:57]name=ofd_packets/00073740 [10:08:57]NVStorageDeleteData [10:08:57]Write to MH i2c: 01 00 00 E8 0A F2 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 07 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 D5 0C DA [10:08:57]RasterBufferAndPrint [10:08:57]line [10:08:57]line [10:08:57]line [10:08:57]line [10:08:57]line [10:08:57]written 0, free lines is 3290 [10:08:57]MH_Cut [10:08:57]Write to MH i2c: D1 01 00 EF 0A 01 CB [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: D1 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: D1 01 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: D1 01 00 EF 0A 00 CA [10:08:57]Write to MH i2c: 01 00 00 F0 0A FA [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:58]OFD Sender: No OFD packet to send [10:08:58]*** Cut start [10:08:58]*** Partial cut [10:08:58]*** CUTSNS_PIN = 1 [10:08:58]*** CUTSNS_PIN = 0 [10:08:58]*** Brake cut motor [10:08:59]Read from MH i2c: 01 [10:08:59]MH_I2C_Read... [10:08:59]*** Stop cut motor [10:08:59]*** Cut end [10:08:59]Read from MH i2c: 01 07 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [10:08:59]process_action close_receipt done [10:08:59]requested_data is exist [10:08:59]produce_requested_data [10:08:59]requested_item fm.sn is exist - process it [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 11 00 00 [10:08:59]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 17 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [10:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:08:59]wFMCommunicate OK [10:08:59]requested_item fd.num is exist - process it [10:08:59]SAM_PROTO_GetFieldsCounters [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 13 00 00 [10:08:59]Write to MH i2c: E2 08 00 F2 0A 80 13 00 00 00 00 00 00 78 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 62 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 62 00 F2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0C 20 01 00 0E 04 04 00 AA 00 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 29 [10:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0C 20 01 00 0E 04 04 00 AA 00 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 [10:08:59]wFMCommunicate OK [10:08:59]SAM_PROTO_GetFieldsCounters done [10:08:59]requested_item shift.num is exist - process it [10:08:59]requested_item shift.opened is exist - process it [10:08:59]req_shift_opened [10:08:59]FM_GetShiftState [10:08:59]SAM_PROTO_GetShiftState [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 13 01 00 [10:08:59]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 0E 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BF [10:08:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:08:59]wFMCommunicate OK [10:08:59]SAM_PROTO_GetShiftState done [10:08:59]FM_GetShiftState done [10:08:59]req_shift_opened done [10:08:59]requested_item shift.open_date is exist - process it [10:08:59]req_shift_open_date [10:08:59]req_shift_open_date done [10:08:59]produce_requested_data done [10:08:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73740,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:08:59]process_action_free close_receipt [10:08:59]json_value_free [10:08:59]json_value_free done [10:08:59]process_json_proto returns [10:08:59]Send response to host [10:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73740,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:08:59]free response buf [10:08:59]execute_script done [10:08:59]execute_script returns [10:08:59]free content buf [10:08:59]Sock 8.Close socket [10:08:59]Sock 8.Thread stoped [10:09:01]accept exits with 9 [10:09:01]New connection [10:09:01]New thread 3067432292 created [10:09:01]Thread 3067575652 joined [10:09:01]Waiting for new connection... [10:09:01] Sock 9.Parse request [10:09:01]Sock 9.Check first char [10:09:01]Sock 9.First char is OK [10:09:01]request: POST /json_proto HTTP/1.0 [10:09:01]Method: POST [10:09:01]URL: /json_proto [10:09:01]Method is POST - this is cgi request [10:09:01]url: /json_proto [10:09:01]query_string will be loaded in cgi processing [10:09:01]execute_cgi json_proto POST (null) [10:09:01]execute_cgi path=json_proto method=POST [10:09:01]POST find Content-Length [10:09:01]Host: 172.17.44.196:8080 [10:09:01]Content-Length: 626 [10:09:01]Content-Type: application/json [10:09:01] [10:09:01]POST finish read [10:09:01]Found Content-Length = 626 [10:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272752", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:01]execute_script... [10:09:01]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)272752", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:01]POST & json_proto [10:09:01]process_json_proto [10:09:01]json parsed OK: [10:09:01]protocol is kg_v1.0 [10:09:01]action value=close_receipt [10:09:01]process_action close_receipt [10:09:01]cmd_close_receipt [10:09:01]MH_GetDate [10:09:01]Write to MH i2c: F0 00 00 F4 0A ED [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 09 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 09 00 F4 0A 00 BE D6 14 67 E7 19 F8 65 62 [10:09:01]GetLastDocTimeStamp 1729418936 [10:09:01]current date 1729418942 [10:09:01]FM_GetShiftState [10:09:01]SAM_PROTO_GetShiftState [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 01 00 [10:09:01]Write to MH i2c: E2 08 00 F5 0A 80 13 01 00 00 00 00 00 7C [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 F5 0A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C1 [10:09:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetShiftState done [10:09:01]FM_GetShiftState done [10:09:01]opened in 1729384303 [10:09:01]opened+sec_in_day 1729470703 [10:09:01]quantity*price = 1000 [10:09:01]sum+1 = 1001 [10:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 67 20.10.2024 10:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73741 ФПД: 41790136537716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73741&fm=41790136537716&tin=02508201610067®Number=0000000000161154&sum=1000 0 [10:09:02]StoreToDocumentArchive [10:09:02]shift 170 fd 73741 [10:09:02]save to /storage/0170/doc_00073741 [10:09:02]save last doc name /storage/0170/doc_00073741 to /storage/kkm_last_doc_name [10:09:02]save OK [10:09:02]Clear old archive folders... [10:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:09:02]tlvbuf is 00335590 [10:09:02]SAM_PROTO_ClearQueue [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 09 00 00 [10:09:02]Write to MH i2c: E2 08 00 02 0B 80 09 00 00 00 00 00 00 7F [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_ClearQueue done [10:09:02]KKMCreateOFDPacket [10:09:02]OFDProtocolAddRootSTLVToBuf [10:09:02]FM_MakeSignedData [10:09:02]FM_MakeSignedData [10:09:02]SAM_PROTO_SignData [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 01 02 [10:09:02]Write to MH i2c: E2 08 00 03 0B 80 0D 01 02 00 00 00 00 87 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=255 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 BE D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [10:09:02]Write to MH i2c: E2 02 01 04 0B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 BE D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 BB [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=32 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 20 01 00 35 04 06 00 26 02 06 3E 52 74 [10:09:02]Write to MH i2c: E2 23 00 05 0B 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 20 01 00 35 04 06 00 26 02 06 3E 52 74 00 00 41 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 03 02 [10:09:02]Write to MH i2c: E2 08 00 06 0B 80 0D 03 02 00 00 00 00 8C [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 06 0B 00 2D 90 53 AF 3D F6 B6 B8 90 00 ED [10:09:02]RAPDU: 2D 90 53 AF 3D F6 B6 B8 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_SignData done [10:09:02]FM_MakeSignedData done [10:09:02]CreateOFDProtocolMessage [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 11 00 00 [10:09:02]Write to MH i2c: E2 08 00 07 0B 80 11 00 00 00 00 00 00 8C [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 07 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [10:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:09:02]wFMCommunicate OK [10:09:02]CreateOFDProtocolMessage done [10:09:02]OFDSenderStorePacket 73741 [10:09:02]StoreOFDPacket docnum=73741 [10:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 84 A5 1D 01 AB 7B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 BE D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 20 01 00 35 04 06 00 26 02 06 3E 52 74 2D 90 53 AF 3D F6 B6 B8 [10:09:02]CheckFolder [10:09:02]dirname=/storage/ofd_packets [10:09:02]CheckFolder done [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00073741 [10:09:02]NVStorageSaveData ofd_packets/00073741 [10:09:02]File name is /storage/ofd_packets/00073741 [10:09:02]Write 323 bytes [10:09:02]NVStorageSaveData done [10:09:02]OFDSenderStorePacket done [10:09:02]KKMCreateOFDPacket done [10:09:02]NVStorageSaveData kkm_last_timestamp [10:09:02]File name is /storage/kkm_last_timestamp [10:09:02]Write 4 bytes [10:09:02]NVStorageSaveData done [10:09:02]ExternCall_PrintAddStr [10:09:02]wPrintStart [10:09:02]Write to MH i2c: 01 00 00 08 0B 13 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 FF 0F 28 [10:09:02]RasterBufferAndPrint [10:09:02]line Счет N : (3)272752 [10:09:02]line ИНН: 02508201610067 [10:09:02]line Контрольно-Кассовый Чек [10:09:02]line ПРОДАЖА [10:09:02]line Товар: 46226624 [10:09:02]line Mentos ПВ Клубника 6*100*2 [10:09:02]line 1.000 * 10.00 [10:09:02]line = 10.00 [10:09:02]line НДС 12% НСП 1% [10:09:02]line > о реализуемом товаре [10:09:02]line ИТОГО: 10.00 [10:09:02]line НСП 1% : 0.09 [10:09:02]line НДС 12% : 1.06 [10:09:02]line Наличными: 10.00 [10:09:02]line Безнал.: 0.00 [10:09:02]line Место: АЗС № 133 "Партнер Нефть" [10:09:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:09:02]line СНО: Общий режим [10:09:02]line Чек 67 20.10.2024 10:09 [10:09:02]line Смена: 170 ФФД: 1.0 [10:09:02]line ЗНМ: 0300000020 [10:09:02]line РНМ: 0000000000161154 [10:09:02]line Версия ККМ: v1.0 [10:09:02]line ФМ: 0000000000963323 [10:09:02]line ФД: 73741 [10:09:02]line ФПД: 41790136537716 [10:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73741&fm=41790136537716&tin=02508201610067®Number=0000000000161154&sum=1000 [10:09:02]line 0 [10:09:02]written 0, free lines is 4095 [10:09:03]OFD Sender: Processing packet 73741 [packets to send 15, broken 14] [10:09:03]ProducePacketName [10:09:03]name=ofd_packets/00073741 [10:09:03]OFD Sender: To server: pG, [10:09:03]CommunicateWithHost lk.salyk.kg:30040 [10:09:03]ConnectInit lk.salyk.kg [10:09:03]Connected sock=10 [10:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 84 A5 1D 01 AB 7B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 BE D6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 20 01 00 35 04 06 00 26 02 06 3E 52 74 2D 90 53 AF 3D F6 B6 B8 [10:09:03]Write to MH i2c: 01 00 00 2F 0B 3A [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 2F 0B 00 00 00 00 00 E8 0C 35 [10:09:03]RasterBufferAndPrint [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]written 0, free lines is 3316 [10:09:03]MH_Cut [10:09:03]Write to MH i2c: D1 01 00 36 0B 01 13 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 01 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 01 00 36 0B 00 12 [10:09:03]Write to MH i2c: 01 00 00 37 0B 42 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF 1D 47 00 2C 65 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 39 36 33 33 32 33 10 04 04 00 0D 20 01 00 F4 03 04 00 A3 7F 14 67 B6 04 01 00 00 38 E2 DD 27 F8 68 A6 C5 [10:09:03]CommunicateWithHost err = 0 [10:09:03]CheckOFDResponse [10:09:03]1017 (14) - 77093643461234 [10:09:03]1041 (16) - 0000000000963323 [10:09:03]1040 (4) - 73741 [10:09:03]1012 (4) - 20.10.2024 03:57 [10:09:03]1206 (1) - 0 [10:09:03]OFD Sender: Remove packet 73741 [10:09:03]ProducePacketName [10:09:03]name=ofd_packets/00073741 [10:09:03]NVStorageDeleteData [10:09:03]OFD Sender: No OFD packet to send [10:09:04]*** Cut start [10:09:04]*** Partial cut [10:09:04]*** CUTSNS_PIN = 1 [10:09:04]*** CUTSNS_PIN = 0 [10:09:04]*** Brake cut motor [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]*** Stop cut motor [10:09:04]*** Cut end [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [10:09:04]process_action close_receipt done [10:09:04]requested_data is exist [10:09:04]produce_requested_data [10:09:04]requested_item fm.sn is exist - process it [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 11 00 00 [10:09:04]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0A [10:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:09:04]wFMCommunicate OK [10:09:04]requested_item fd.num is exist - process it [10:09:04]SAM_PROTO_GetFieldsCounters [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 13 00 00 [10:09:04]Write to MH i2c: E2 08 00 39 0B 80 13 00 00 00 00 00 00 C0 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:05]Read from MH i2c: E2 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 62 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 62 00 39 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0D 20 01 00 0E 04 04 00 AA 00 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 75 [10:09:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0D 20 01 00 0E 04 04 00 AA 00 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 [10:09:05]wFMCommunicate OK [10:09:05]SAM_PROTO_GetFieldsCounters done [10:09:05]requested_item shift.num is exist - process it [10:09:05]requested_item shift.opened is exist - process it [10:09:05]req_shift_opened [10:09:05]FM_GetShiftState [10:09:05]SAM_PROTO_GetShiftState [10:09:05]wFMCommunicate request_size=4 [10:09:05]MH_SAM_APDU [10:09:05]CAPDU: 80 13 01 00 [10:09:05]Write to MH i2c: E2 08 00 3A 0B 80 13 01 00 00 00 00 00 C2 [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:05]Read from MH i2c: E2 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 0E 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 0E 00 3A 0B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 07 [10:09:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:09:05]wFMCommunicate OK [10:09:05]SAM_PROTO_GetShiftState done [10:09:05]FM_GetShiftState done [10:09:05]req_shift_opened done [10:09:05]requested_item shift.open_date is exist - process it [10:09:05]req_shift_open_date [10:09:05]req_shift_open_date done [10:09:05]produce_requested_data done [10:09:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73741,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:09:05]process_action_free close_receipt [10:09:05]json_value_free [10:09:05]json_value_free done [10:09:05]process_json_proto returns [10:09:05]Send response to host [10:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73741,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:09:05]free response buf [10:09:05]execute_script done [10:09:05]execute_script returns [10:09:05]free content buf [10:09:05]Sock 9.Close socket [10:09:05]Sock 9.Thread stoped [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:16]accept exits with 8 [10:10:16]New connection [10:10:16]New thread 3067575652 created [10:10:16]Thread 3067432292 joined [10:10:16]Waiting for new connection... [10:10:16] Sock 8.Parse request [10:10:16]Sock 8.Check first char [10:10:16]Sock 8.First char is OK [10:10:16]request: POST /json_proto HTTP/1.0 [10:10:16]Method: POST [10:10:16]URL: /json_proto [10:10:16]Method is POST - this is cgi request [10:10:16]url: /json_proto [10:10:16]query_string will be loaded in cgi processing [10:10:16]execute_cgi json_proto POST (null) [10:10:16]execute_cgi path=json_proto method=POST [10:10:16]POST find Content-Length [10:10:16]Host: 172.17.44.196:8080 [10:10:16]Content-Length: 1822 [10:10:16]Content-Type: application/json [10:10:16] [10:10:16]POST finish read [10:10:16]Found Content-Length = 1822 [10:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272753", "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": "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" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:16]execute_script... [10:10: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)272753", "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": "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" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:16]POST & json_proto [10:10:16]process_json_proto [10:10:16]json parsed OK: [10:10:16]protocol is kg_v1.0 [10:10:16]action value=close_receipt [10:10:16]process_action close_receipt [10:10:16]cmd_close_receipt [10:10:16]MH_GetDate [10:10:16]Write to MH i2c: F0 00 00 3B 0B 35 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 09 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 09 00 3B 0B 00 09 D7 14 67 E7 19 F8 65 F6 [10:10:16]GetLastDocTimeStamp 1729418942 [10:10:16]current date 1729419017 [10:10:16]FM_GetShiftState [10:10:16]SAM_PROTO_GetShiftState [10:10:16]wFMCommunicate request_size=4 [10:10:16]MH_SAM_APDU [10:10:16]CAPDU: 80 13 01 00 [10:10:16]Write to MH i2c: E2 08 00 3C 0B 80 13 01 00 00 00 00 00 C4 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:16]Read from MH i2c: E2 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 3C 0B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 09 [10:10:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:10:16]wFMCommunicate OK [10:10:16]SAM_PROTO_GetShiftState done [10:10:16]FM_GetShiftState done [10:10:16]opened in 1729384303 [10:10:16]opened+sec_in_day 1729470703 [10:10:16]quantity*price = 5000 [10:10:16]sum+1 = 5001 [10:10:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700026030031 Курут orbit 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4601025117788 Напиток Фрутмотив арбуз клубника 0,5 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 293.00 НСП 1% : 2.59 НДС 12% : 31.11 Наличными: 293.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 68 20.10.2024 10:10 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73742 ФПД: 248557202207446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101017&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73742&fm=248557202207446&tin=02508201610067®Number=0000000000161154&sum=29300 0 [10:10:17]StoreToDocumentArchive [10:10:17]shift 170 fd 73742 [10:10:17]save to /storage/0170/doc_00073742 [10:10:17]save last doc name /storage/0170/doc_00073742 to /storage/kkm_last_doc_name [10:10:17]save OK [10:10:17]Clear old archive folders... [10:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=740 [10:10:17]tlvbuf is 0031DC00 [10:10:17]SAM_PROTO_ClearQueue [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 09 00 00 [10:10:17]Write to MH i2c: E2 08 00 49 0B 80 09 00 00 00 00 00 00 C6 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]SAM_PROTO_ClearQueue done [10:10:17]KKMCreateOFDPacket [10:10:17]OFDProtocolAddRootSTLVToBuf [10:10:17]FM_MakeSignedData [10:10:17]FM_MakeSignedData [10:10:17]SAM_PROTO_SignData [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 01 02 [10:10:17]Write to MH i2c: E2 08 00 4A 0B 80 0D 01 02 00 00 00 00 CE [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]wFMCommunicate request_size=255 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 02 02 FA 03 00 E4 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 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 [10:10:17]Write to MH i2c: E2 02 01 4B 0B 80 0D 02 02 FA 00 03 00 E4 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 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 00 00 18 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]wFMCommunicate request_size=255 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 02 02 FA 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 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 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 [10:10:17]Write to MH i2c: E2 02 01 4C 0B 80 0D 02 02 FA 00 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 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 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 00 00 C9 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [10:10:18]RAPDU: 90 00 [10:10:18]wFMCommunicate OK [10:10:18]wFMCommunicate request_size=249 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 0D 02 02 F4 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 09 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 20 01 00 35 04 06 00 E2 0F BB BE 72 D6 [10:10:18]Write to MH i2c: E2 FC 00 4D 0B 80 0D 02 02 F4 00 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 09 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 20 01 00 35 04 06 00 E2 0F BB BE 72 D6 00 00 0B [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [10:10:18]RAPDU: 90 00 [10:10:18]wFMCommunicate OK [10:10:18]wFMCommunicate request_size=4 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 0D 03 02 [10:10:18]Write to MH i2c: E2 08 00 4E 0B 80 0D 03 02 00 00 00 00 D4 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 0B 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 0B 00 4E 0B 00 95 45 57 8A 9B CC A4 53 90 00 EE [10:10:18]RAPDU: 95 45 57 8A 9B CC A4 53 90 00 [10:10:18]wFMCommunicate OK [10:10:18]SAM_PROTO_SignData done [10:10:18]FM_MakeSignedData done [10:10:18]CreateOFDProtocolMessage [10:10:18]wFMCommunicate request_size=4 [10:10:18]MH_SAM_APDU [10:10:18]CAPDU: 80 11 00 00 [10:10:18]Write to MH i2c: E2 08 00 4F 0B 80 11 00 00 00 00 00 00 D4 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 17 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 17 00 4F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 21 [10:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:10:18]wFMCommunicate OK [10:10:18]CreateOFDProtocolMessage done [10:10:18]OFDSenderStorePacket 73742 [10:10:18]StoreOFDPacket docnum=73742 [10:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F8 02 00 00 63 A5 F0 02 82 4F 5A 03 01 00 03 00 E4 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 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 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 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 09 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 20 01 00 35 04 06 00 E2 0F BB BE 72 D6 95 45 57 8A 9B CC A4 53 [10:10:18]CheckFolder [10:10:18]dirname=/storage/ofd_packets [10:10:18]CheckFolder done [10:10:18]ProducePacketName [10:10:18]name=ofd_packets/00073742 [10:10:18]NVStorageSaveData ofd_packets/00073742 [10:10:18]File name is /storage/ofd_packets/00073742 [10:10:18]Write 790 bytes [10:10:18]NVStorageSaveData done [10:10:18]OFDSenderStorePacket done [10:10:18]KKMCreateOFDPacket done [10:10:18]NVStorageSaveData kkm_last_timestamp [10:10:18]File name is /storage/kkm_last_timestamp [10:10:18]Write 4 bytes [10:10:18]NVStorageSaveData done [10:10:18]ExternCall_PrintAddStr [10:10:18]wPrintStart [10:10:18]Write to MH i2c: 01 00 00 50 0B 5B [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 50 0B 00 00 00 00 00 FF 0F 70 [10:10:18]RasterBufferAndPrint [10:10:18]line Счет N : (3)272753 [10:10:18]line ИНН: 02508201610067 [10:10:18]line Контрольно-Кассовый Чек [10:10:18]line ПРОДАЖА [10:10:18]line Товар: 4700000160358 [10:10:18]line Вода Легенда 1л [10:10:18]line 1.000 * 50.00 [10:10:18]line = 50.00 [10:10:18]line НДС 12% НСП 1% [10:10:18]line > о реализуемом товаре [10:10:18]line Товар: 4700000160792 [10:10:18]line Снек Курут классический (круглый) [10:10:18]line 1.000 * 55.00 [10:10:18]line = 55.00 [10:10:18]line НДС 12% НСП 1% [10:10:18]line > о реализуемом товаре [10:10:18]line Товар: 4700026030031 [10:10:18]line Курут orbit [10:10:18]line 1.000 * 49.00 [10:10:18]line = 49.00 [10:10:18]line НДС 12% НСП 1% [10:10:18]line > о реализуемом товаре [10:10:18]line Товар: 4011100977624 [10:10:18]line Шок Батончик Баунти 55г [10:10:18]line 1.000 * 59.00 [10:10:18]line = 59.00 [10:10:18]line НДС 12% НСП 1% [10:10:18]line > о реализуемом товаре [10:10:18]line Товар: 4601025117788 [10:10:18]line Напиток Фрутмотив арбуз клубника 0,5 [10:10:18]line 1.000 * 80.00 [10:10:18]line = 80.00 [10:10:18]line НДС 12% НСП 1% [10:10:18]line > о реализуемом товаре [10:10:18]line ИТОГО: 293.00 [10:10:18]line НСП 1% : 2.59 [10:10:18]line НДС 12% : 31.11 [10:10:18]line Наличными: 293.00 [10:10:18]line Безнал.: 0.00 [10:10:18]line Место: АЗС № 133 "Партнер Нефть" [10:10:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:10:18]line СНО: Общий режим [10:10:18]line Чек 68 20.10.2024 10:10 [10:10:18]line Смена: 170 ФФД: 1.0 [10:10:18]line ЗНМ: 0300000020 [10:10:18]line РНМ: 0000000000161154 [10:10:18]line Версия ККМ: v1.0 [10:10:18]line ФМ: 0000000000963323 [10:10:18]line ФД: 73742 [10:10:18]line ФПД: 248557202207446 [10:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101017&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73742&fm=248557202207446&tin=02508201610067®Number=0000000000161154&sum=29300 [10:10:18]line 0 [10:10:18]written 0, free lines is 4095 [10:10:18]OFD Sender: Processing packet 73742 [packets to send 15, broken 14] [10:10:18]ProducePacketName [10:10:18]name=ofd_packets/00073742 [10:10:18]OFD Sender: To server: pG, [10:10:18]CommunicateWithHost lk.salyk.kg:30040 [10:10:18]ConnectInit lk.salyk.kg [10:10:19]Connected sock=11 [10:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F8 02 00 00 63 A5 F0 02 82 4F 5A 03 01 00 03 00 E4 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 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 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 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 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 09 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 20 01 00 35 04 06 00 E2 0F BB BE 72 D6 95 45 57 8A 9B CC A4 53 [10:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CF 9B 47 00 8D 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 39 36 33 33 32 33 10 04 04 00 0E 20 01 00 F4 03 04 00 EF 7F 14 67 B6 04 01 00 00 A0 B5 E0 72 5B E3 38 1A [10:10:19]CommunicateWithHost err = 0 [10:10:19]CheckOFDResponse [10:10:19]1017 (14) - 77093643461234 [10:10:19]1041 (16) - 0000000000963323 [10:10:19]1040 (4) - 73742 [10:10:19]1012 (4) - 20.10.2024 03:58 [10:10:19]1206 (1) - 0 [10:10:19]OFD Sender: Remove packet 73742 [10:10:19]ProducePacketName [10:10:19]name=ofd_packets/00073742 [10:10:19]NVStorageDeleteData [10:10:19]Write to MH i2c: 01 00 00 91 0B 9C [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 91 0B 00 00 00 00 00 2D 0B DB [10:10:19]RasterBufferAndPrint [10:10:19]line [10:10:19]line [10:10:19]line [10:10:19]line [10:10:19]line [10:10:19]written 0, free lines is 2868 [10:10:19]MH_Cut [10:10:19]Write to MH i2c: D1 01 00 98 0B 01 75 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: D1 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: D1 01 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: D1 01 00 98 0B 00 74 [10:10:19]Write to MH i2c: 01 00 00 99 0B A4 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]OFD Sender: No OFD packet to send [10:10:20]*** Cut start [10:10:20]*** Partial cut [10:10:20]*** CUTSNS_PIN = 1 [10:10:20]*** CUTSNS_PIN = 0 [10:10:21]*** Brake cut motor [10:10:21]Read from MH i2c: 01 [10:10:21]MH_I2C_Read... [10:10:21]*** Stop cut motor [10:10:21]*** Cut end [10:10:21]Read from MH i2c: 01 07 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 FF 0F B9 [10:10:21]process_action close_receipt done [10:10:21]requested_data is exist [10:10:21]produce_requested_data [10:10:21]requested_item fm.sn is exist - process it [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 11 00 00 [10:10:21]Write to MH i2c: E2 08 00 9A 0B 80 11 00 00 00 00 00 00 1F [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 17 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 17 00 9A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6C [10:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:10:21]wFMCommunicate OK [10:10:21]requested_item fd.num is exist - process it [10:10:21]SAM_PROTO_GetFieldsCounters [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 13 00 00 [10:10:21]Write to MH i2c: E2 08 00 9B 0B 80 13 00 00 00 00 00 00 22 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 62 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 62 00 9B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 20 01 00 0E 04 04 00 AA 00 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 DB [10:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 20 01 00 0E 04 04 00 AA 00 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 [10:10:21]wFMCommunicate OK [10:10:21]SAM_PROTO_GetFieldsCounters done [10:10:21]requested_item shift.num is exist - process it [10:10:21]requested_item shift.opened is exist - process it [10:10:21]req_shift_opened [10:10:21]FM_GetShiftState [10:10:21]SAM_PROTO_GetShiftState [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 13 01 00 [10:10:21]Write to MH i2c: E2 08 00 9C 0B 80 13 01 00 00 00 00 00 24 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 0E 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 0E 00 9C 0B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 69 [10:10:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:10:21]wFMCommunicate OK [10:10:21]SAM_PROTO_GetShiftState done [10:10:21]FM_GetShiftState done [10:10:21]req_shift_opened done [10:10:21]requested_item shift.open_date is exist - process it [10:10:21]req_shift_open_date [10:10:21]req_shift_open_date done [10:10:21]produce_requested_data done [10:10:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73742,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:10:21]process_action_free close_receipt [10:10:21]json_value_free [10:10:21]json_value_free done [10:10:21]process_json_proto returns [10:10:21]Send response to host [10:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73742,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:10:21]free response buf [10:10:21]execute_script done [10:10:21]execute_script returns [10:10:21]free content buf [10:10:21]Sock 8.Close socket [10:10:21]Sock 8.Thread stoped [10:10:23]accept exits with 9 [10:10:23]New connection [10:10:23]New thread 3067432292 created [10:10:23]Thread 3067575652 joined [10:10:23]Waiting for new connection... [10:10:23] Sock 9.Parse request [10:10:23]Sock 9.Check first char [10:10:23]Sock 9.First char is OK [10:10:23]request: POST /json_proto HTTP/1.0 [10:10:23]Method: POST [10:10:23]URL: /json_proto [10:10:23]Method is POST - this is cgi request [10:10:23]url: /json_proto [10:10:23]query_string will be loaded in cgi processing [10:10:23]execute_cgi json_proto POST (null) [10:10:23]execute_cgi path=json_proto method=POST [10:10:23]POST find Content-Length [10:10:23]Host: 172.17.44.196:8080 [10:10:23]Content-Length: 645 [10:10:23]Content-Type: application/json [10:10:23] [10:10:23]POST finish read [10:10:23]Found Content-Length = 645 [10:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272754", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:23]execute_script... [10:10: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)272754", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:23]POST & json_proto [10:10:23]process_json_proto [10:10:23]json parsed OK: [10:10:23]protocol is kg_v1.0 [10:10:23]action value=close_receipt [10:10:23]process_action close_receipt [10:10:23]cmd_close_receipt [10:10:23]MH_GetDate [10:10:23]Write to MH i2c: F0 00 00 9D 0B 97 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: F0 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: F0 09 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: F0 09 00 9D 0B 00 10 D7 14 67 E7 19 F8 65 5F [10:10:23]GetLastDocTimeStamp 1729419017 [10:10:23]current date 1729419024 [10:10:23]FM_GetShiftState [10:10:23]SAM_PROTO_GetShiftState [10:10:23]wFMCommunicate request_size=4 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 13 01 00 [10:10:23]Write to MH i2c: E2 08 00 9E 0B 80 13 01 00 00 00 00 00 26 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 0E 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 0E 00 9E 0B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6B [10:10:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:10:23]wFMCommunicate OK [10:10:23]SAM_PROTO_GetShiftState done [10:10:23]FM_GetShiftState done [10:10:23]opened in 1729384303 [10:10:23]opened+sec_in_day 1729470703 [10:10:23]quantity*price = 1000 [10:10:23]sum+1 = 1001 [10:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 69 20.10.2024 10:10 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73743 ФПД: 275103377937688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101024&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73743&fm=275103377937688&tin=02508201610067®Number=0000000000161154&sum=1000 0 [10:10:24]StoreToDocumentArchive [10:10:24]shift 170 fd 73743 [10:10:24]save to /storage/0170/doc_00073743 [10:10:24]save last doc name /storage/0170/doc_00073743 to /storage/kkm_last_doc_name [10:10:24]save OK [10:10:24]Clear old archive folders... [10:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:10:24]tlvbuf is 0031CEB0 [10:10:24]SAM_PROTO_ClearQueue [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 09 00 00 [10:10:24]Write to MH i2c: E2 08 00 AB 0B 80 09 00 00 00 00 00 00 28 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 AB 0B 00 90 00 2A [10:10:24]RAPDU: 90 00 [10:10:24]wFMCommunicate OK [10:10:24]SAM_PROTO_ClearQueue done [10:10:24]KKMCreateOFDPacket [10:10:24]OFDProtocolAddRootSTLVToBuf [10:10:24]FM_MakeSignedData [10:10:24]FM_MakeSignedData [10:10:24]SAM_PROTO_SignData [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 0D 01 02 [10:10:24]Write to MH i2c: E2 08 00 AC 0B 80 0D 01 02 00 00 00 00 30 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 AC 0B 00 90 00 2B [10:10:24]RAPDU: 90 00 [10:10:24]wFMCommunicate OK [10:10:24]wFMCommunicate request_size=255 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 10 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [10:10:24]Write to MH i2c: E2 02 01 AD 0B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 10 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 BE [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 AD 0B 00 90 00 2C [10:10:24]RAPDU: 90 00 [10:10:24]wFMCommunicate OK [10:10:24]wFMCommunicate request_size=39 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 20 01 00 35 04 06 00 FA 34 7F 1E 55 18 [10:10:24]Write to MH i2c: E2 2A 00 AE 0B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 20 01 00 35 04 06 00 FA 34 7F 1E 55 18 00 00 50 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 AE 0B 00 90 00 2D [10:10:24]RAPDU: 90 00 [10:10:24]wFMCommunicate OK [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 0D 03 02 [10:10:24]Write to MH i2c: E2 08 00 AF 0B 80 0D 03 02 00 00 00 00 35 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 0B 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 0B 00 AF 0B 00 F1 64 40 70 9F 0D 72 8D 90 00 E6 [10:10:24]RAPDU: F1 64 40 70 9F 0D 72 8D 90 00 [10:10:24]wFMCommunicate OK [10:10:24]SAM_PROTO_SignData done [10:10:24]FM_MakeSignedData done [10:10:24]CreateOFDProtocolMessage [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 11 00 00 [10:10:24]Write to MH i2c: E2 08 00 B0 0B 80 11 00 00 00 00 00 00 35 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]OFD Sender: No OFD packet to send [10:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 17 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 17 00 B0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 82 [10:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:10:24]wFMCommunicate OK [10:10:24]CreateOFDProtocolMessage done [10:10:24]OFDSenderStorePacket 73743 [10:10:24]StoreOFDPacket docnum=73743 [10:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 18 33 24 01 2B ED 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 10 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 20 01 00 35 04 06 00 FA 34 7F 1E 55 18 F1 64 40 70 9F 0D 72 8D [10:10:24]CheckFolder [10:10:24]dirname=/storage/ofd_packets [10:10:24]CheckFolder done [10:10:24]ProducePacketName [10:10:24]name=ofd_packets/00073743 [10:10:24]NVStorageSaveData ofd_packets/00073743 [10:10:24]File name is /storage/ofd_packets/00073743 [10:10:24]Write 330 bytes [10:10:24]NVStorageSaveData done [10:10:24]OFDSenderStorePacket done [10:10:24]KKMCreateOFDPacket done [10:10:24]NVStorageSaveData kkm_last_timestamp [10:10:24]File name is /storage/kkm_last_timestamp [10:10:24]Write 4 bytes [10:10:24]NVStorageSaveData done [10:10:24]ExternCall_PrintAddStr [10:10:24]wPrintStart [10:10:24]Write to MH i2c: 01 00 00 B1 0B BC [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 FF 0F D1 [10:10:24]RasterBufferAndPrint [10:10:24]line Счет N : (3)272754 [10:10:24]line ИНН: 02508201610067 [10:10:24]line Контрольно-Кассовый Чек [10:10:24]line ПРОДАЖА [10:10:24]line Товар: 46226617 [10:10:24]line Mentos ПВ Нежная Мята 6*100*2г [10:10:24]line 1.000 * 10.00 [10:10:24]line = 10.00 [10:10:24]line НДС 12% НСП 1% [10:10:24]line > о реализуемом товаре [10:10:24]line ИТОГО: 10.00 [10:10:24]line НСП 1% : 0.09 [10:10:24]line НДС 12% : 1.06 [10:10:24]line Наличными: 10.00 [10:10:24]line Безнал.: 0.00 [10:10:24]line Место: АЗС № 133 "Партнер Нефть" [10:10:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:10:24]line СНО: Общий режим [10:10:24]line Чек 69 20.10.2024 10:10 [10:10:24]line Смена: 170 ФФД: 1.0 [10:10:24]line ЗНМ: 0300000020 [10:10:24]line РНМ: 0000000000161154 [10:10:24]line Версия ККМ: v1.0 [10:10:24]line ФМ: 0000000000963323 [10:10:24]line ФД: 73743 [10:10:24]line ФПД: 275103377937688 [10:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101024&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73743&fm=275103377937688&tin=02508201610067®Number=0000000000161154&sum=1000 [10:10:24]line 0 [10:10:24]written 0, free lines is 4095 [10:10:24]OFD Sender: Processing packet 73743 [packets to send 15, broken 14] [10:10:24]ProducePacketName [10:10:24]name=ofd_packets/00073743 [10:10:24]OFD Sender: To server: pG, [10:10:24]CommunicateWithHost lk.salyk.kg:30040 [10:10:24]ConnectInit lk.salyk.kg [10:10:25]Connected sock=10 [10:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 18 33 24 01 2B ED 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 10 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 20 01 00 35 04 06 00 FA 34 7F 1E 55 18 F1 64 40 70 9F 0D 72 8D [10:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 19 BB 47 00 47 20 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 39 36 33 33 32 33 10 04 04 00 0F 20 01 00 F4 03 04 00 F5 7F 14 67 B6 04 01 00 00 32 69 B7 2A 9F 1A 5A 13 [10:10:25]CommunicateWithHost err = 0 [10:10:25]CheckOFDResponse [10:10:25]1017 (14) - 77093643461234 [10:10:25]1041 (16) - 0000000000963323 [10:10:25]1040 (4) - 73743 [10:10:25]1012 (4) - 20.10.2024 03:58 [10:10:25]1206 (1) - 0 [10:10:25]OFD Sender: Remove packet 73743 [10:10:25]ProducePacketName [10:10:25]name=ofd_packets/00073743 [10:10:25]NVStorageDeleteData [10:10:25]Write to MH i2c: 01 00 00 D9 0B E4 [10:10:25]Write i2c OK [10:10:25]MH_I2C_Read... [10:10:25]Read from MH i2c: 01 [10:10:25]MH_I2C_Read... [10:10:25]Read from MH i2c: 01 07 00 [10:10:25]MH_I2C_Read... [10:10:25]Read from MH i2c: 01 07 00 D9 0B 00 00 00 00 00 CD 0C C4 [10:10:25]RasterBufferAndPrint [10:10:25]line [10:10:25]line [10:10:25]line [10:10:25]line [10:10:25]line [10:10:25]written 0, free lines is 3289 [10:10:25]MH_Cut [10:10:25]Write to MH i2c: D1 01 00 E0 0B 01 BD [10:10:25]Write i2c OK [10:10:25]MH_I2C_Read... [10:10:25]Read from MH i2c: D1 [10:10:25]MH_I2C_Read... [10:10:25]Read from MH i2c: D1 01 00 [10:10:25]MH_I2C_Read... [10:10:25]Read from MH i2c: D1 01 00 E0 0B 00 BC [10:10:25]Write to MH i2c: 01 00 00 E1 0B EC [10:10:25]Write i2c OK [10:10:25]MH_I2C_Read... [10:10:25]OFD Sender: No OFD packet to send [10:10:26]*** Cut start [10:10:26]*** Partial cut [10:10:26]*** CUTSNS_PIN = 1 [10:10:26]*** CUTSNS_PIN = 0 [10:10:26]*** Brake cut motor [10:10:26]Read from MH i2c: 01 [10:10:26]MH_I2C_Read... [10:10:26]*** Stop cut motor [10:10:26]*** Cut end [10:10:26]Read from MH i2c: 01 07 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: 01 07 00 E1 0B 00 00 00 00 00 FF 0F 01 [10:10:26]process_action close_receipt done [10:10:26]requested_data is exist [10:10:26]produce_requested_data [10:10:26]requested_item fm.sn is exist - process it [10:10:26]wFMCommunicate request_size=4 [10:10:26]MH_SAM_APDU [10:10:26]CAPDU: 80 11 00 00 [10:10:26]Write to MH i2c: E2 08 00 E2 0B 80 11 00 00 00 00 00 00 67 [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:26]Read from MH i2c: E2 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 17 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 17 00 E2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B4 [10:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:10:26]wFMCommunicate OK [10:10:26]requested_item fd.num is exist - process it [10:10:26]SAM_PROTO_GetFieldsCounters [10:10:26]wFMCommunicate request_size=4 [10:10:26]MH_SAM_APDU [10:10:26]CAPDU: 80 13 00 00 [10:10:26]Write to MH i2c: E2 08 00 E3 0B 80 13 00 00 00 00 00 00 6A [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:27]Read from MH i2c: E2 [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: E2 62 00 [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: E2 62 00 E3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 20 01 00 0E 04 04 00 AA 00 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 27 [10:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 20 01 00 0E 04 04 00 AA 00 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 [10:10:27]wFMCommunicate OK [10:10:27]SAM_PROTO_GetFieldsCounters done [10:10:27]requested_item shift.num is exist - process it [10:10:27]requested_item shift.opened is exist - process it [10:10:27]req_shift_opened [10:10:27]FM_GetShiftState [10:10:27]SAM_PROTO_GetShiftState [10:10:27]wFMCommunicate request_size=4 [10:10:27]MH_SAM_APDU [10:10:27]CAPDU: 80 13 01 00 [10:10:27]Write to MH i2c: E2 08 00 E4 0B 80 13 01 00 00 00 00 00 6C [10:10:27]Write i2c OK [10:10:27]MH_I2C_Read... [10:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:27]Read from MH i2c: E2 [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: E2 0E 00 [10:10:27]MH_I2C_Read... [10:10:27]Read from MH i2c: E2 0E 00 E4 0B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B1 [10:10:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:10:27]wFMCommunicate OK [10:10:27]SAM_PROTO_GetShiftState done [10:10:27]FM_GetShiftState done [10:10:27]req_shift_opened done [10:10:27]requested_item shift.open_date is exist - process it [10:10:27]req_shift_open_date [10:10:27]req_shift_open_date done [10:10:27]produce_requested_data done [10:10:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73743,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:10:27]process_action_free close_receipt [10:10:27]json_value_free [10:10:27]json_value_free done [10:10:27]process_json_proto returns [10:10:27]Send response to host [10:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73743,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:10:27]free response buf [10:10:27]execute_script done [10:10:27]execute_script returns [10:10:27]free content buf [10:10:27]Sock 9.Close socket [10:10:27]Sock 9.Thread stoped [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:43]accept exits with 8 [10:11:43]New connection [10:11:43]New thread 3067575652 created [10:11:43]Thread 3067432292 joined [10:11:43]Waiting for new connection... [10:11:43] Sock 8.Parse request [10:11:43]Sock 8.Check first char [10:11:43]Sock 8.First char is OK [10:11:43]request: POST /json_proto HTTP/1.0 [10:11:43]Method: POST [10:11:43]URL: /json_proto [10:11:43]Method is POST - this is cgi request [10:11:43]url: /json_proto [10:11:43]query_string will be loaded in cgi processing [10:11:43]execute_cgi json_proto POST (null) [10:11:43]execute_cgi path=json_proto method=POST [10:11:43]POST find Content-Length [10:11:43]Host: 172.17.44.196:8080 [10:11:43]Content-Length: 679 [10:11:43]Content-Type: application/json [10:11:43] [10:11:43]POST finish read [10:11:43]Found Content-Length = 679 [10:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962789", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:43]execute_script... [10:11: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 : (1)1962789", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:43]POST & json_proto [10:11:43]process_json_proto [10:11:43]json parsed OK: [10:11:43]protocol is kg_v1.0 [10:11:43]action value=close_receipt [10:11:43]process_action close_receipt [10:11:43]cmd_close_receipt [10:11:43]MH_GetDate [10:11:43]Write to MH i2c: F0 00 00 E5 0B DF [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: F0 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: F0 09 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: F0 09 00 E5 0B 00 60 D7 14 67 E7 19 F8 65 F7 [10:11:43]GetLastDocTimeStamp 1729419024 [10:11:43]current date 1729419104 [10:11:43]FM_GetShiftState [10:11:43]SAM_PROTO_GetShiftState [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 13 01 00 [10:11:43]Write to MH i2c: E2 08 00 E6 0B 80 13 01 00 00 00 00 00 6E [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0E 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0E 00 E6 0B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B3 [10:11:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:11:43]wFMCommunicate OK [10:11:43]SAM_PROTO_GetShiftState done [10:11:43]FM_GetShiftState done [10:11:43]opened in 1729384303 [10:11:43]opened+sec_in_day 1729470703 [10:11:43]quantity*price = 70044 [10:11:43]sum+1 = 70045 [10:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 70 20.10.2024 10:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73744 ФПД: 183787449458181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101144&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73744&fm=183787449458181&tin=02508201610067®Number=0000000000161154&sum=70000 [10:11:44]StoreToDocumentArchive [10:11:44]shift 170 fd 73744 [10:11:44]save to /storage/0170/doc_00073744 [10:11:44]save last doc name /storage/0170/doc_00073744 to /storage/kkm_last_doc_name [10:11:44]save OK [10:11:44]Clear old archive folders... [10:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:44]tlvbuf is B6E40320 [10:11:44]SAM_PROTO_ClearQueue [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 09 00 00 [10:11:44]Write to MH i2c: E2 08 00 F3 0B 80 09 00 00 00 00 00 00 70 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]SAM_PROTO_ClearQueue done [10:11:44]KKMCreateOFDPacket [10:11:44]OFDProtocolAddRootSTLVToBuf [10:11:44]FM_MakeSignedData [10:11:44]FM_MakeSignedData [10:11:44]SAM_PROTO_SignData [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 01 02 [10:11:44]Write to MH i2c: E2 08 00 F4 0B 80 0D 01 02 00 00 00 00 78 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=255 [10:11:44]MH_SAM_APDU [10:11:44]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 60 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 20 01 00 35 04 06 00 A7 [10:11:44]Write to MH i2c: E2 02 01 F5 0B 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 60 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 20 01 00 35 04 06 00 A7 00 00 84 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 F5 0B 00 90 00 74 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=10 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 02 02 05 27 59 A3 9E 05 [10:11:44]Write to MH i2c: E2 0D 00 F6 0B 80 0D 02 02 05 00 27 59 A3 9E 05 00 00 4B [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 F6 0B 00 90 00 75 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 03 02 [10:11:44]Write to MH i2c: E2 08 00 F7 0B 80 0D 03 02 00 00 00 00 7D [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 0B 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 0B 00 F7 0B 00 B6 3B C6 51 86 27 90 39 90 00 FC [10:11:44]RAPDU: B6 3B C6 51 86 27 90 39 90 00 [10:11:44]wFMCommunicate OK [10:11:44]SAM_PROTO_SignData done [10:11:44]FM_MakeSignedData done [10:11:44]CreateOFDProtocolMessage [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 11 00 00 [10:11:44]Write to MH i2c: E2 08 00 F8 0B 80 11 00 00 00 00 00 00 7D [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 17 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 17 00 F8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CA [10:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:44]wFMCommunicate OK [10:11:44]CreateOFDProtocolMessage done [10:11:44]OFDSenderStorePacket 73744 [10:11:44]StoreOFDPacket docnum=73744 [10:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 17 52 07 01 93 BF 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 60 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 20 01 00 35 04 06 00 A7 27 59 A3 9E 05 B6 3B C6 51 86 27 90 39 [10:11:44]CheckFolder [10:11:44]dirname=/storage/ofd_packets [10:11:44]CheckFolder done [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00073744 [10:11:44]NVStorageSaveData ofd_packets/00073744 [10:11:44]File name is /storage/ofd_packets/00073744 [10:11:44]Write 301 bytes [10:11:44]NVStorageSaveData done [10:11:44]OFDSenderStorePacket done [10:11:44]KKMCreateOFDPacket done [10:11:44]NVStorageSaveData kkm_last_timestamp [10:11:44]File name is /storage/kkm_last_timestamp [10:11:44]Write 4 bytes [10:11:44]NVStorageSaveData done [10:11:44]ExternCall_PrintAddStr [10:11:44]wPrintStart [10:11:44]Write to MH i2c: 01 00 00 F9 0B 04 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 FF 0F 19 [10:11:44]RasterBufferAndPrint [10:11:44]line Счет N : (1)1962789 [10:11:44]line ИНН: 02508201610067 [10:11:44]line Контрольно-Кассовый Чек [10:11:44]line ПРОДАЖА [10:11:44]line ТРК (МРК, ГНК) : 33 [10:11:44]line Товар: 2710124130 [10:11:44]line Аи-92-К-5 [10:11:44]line 10.470 * 66.90 [10:11:44]line = 700.44 [10:11:44]line НДС 12% НСП 1% [10:11:44]line > о реализуемом товаре [10:11:44]line ОКРУГЛЕНИЕ: -0.44 [10:11:44]line ИТОГО: 700.00 [10:11:44]line Внесено: 700.00 [10:11:44]line СДАЧА: 0.00 [10:11:44]line НСП 1% : 6.20 [10:11:44]line НДС 12% : 74.38 [10:11:44]line Наличными: 700.00 [10:11:44]line Безнал.: 0.00 [10:11:44]line Место: АЗС № 133 "Партнер Нефть" [10:11:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:11:44]line СНО: Общий режим [10:11:44]line Чек 70 20.10.2024 10:11 [10:11:44]line Смена: 170 ФФД: 1.0 [10:11:44]line ЗНМ: 0300000020 [10:11:44]line РНМ: 0000000000161154 [10:11:44]line Версия ККМ: v1.0 [10:11:44]line ФМ: 0000000000963323 [10:11:44]line ФД: 73744 [10:11:44]line ФПД: 183787449458181 [10:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101144&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73744&fm=183787449458181&tin=02508201610067®Number=0000000000161154&sum=70000 [10:11:44]OFD Sender: Processing packet 73744 [packets to send 15, broken 14] [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00073744 [10:11:44]OFD Sender: To server: pG, [10:11:44]CommunicateWithHost lk.salyk.kg:30040 [10:11:44]ConnectInit lk.salyk.kg [10:11:44]written 0, free lines is 4095 [10:11:45]Connected sock=10 [10:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 17 52 07 01 93 BF 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 60 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 20 01 00 35 04 06 00 A7 27 59 A3 9E 05 B6 3B C6 51 86 27 90 39 [10:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 56 FB 47 00 B0 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 39 36 33 33 32 33 10 04 04 00 10 20 01 00 F4 03 04 00 45 80 14 67 B6 04 01 00 00 92 F4 9F 64 E5 24 B8 90 [10:11:45]CommunicateWithHost err = 0 [10:11:45]CheckOFDResponse [10:11:45]1017 (14) - 77093643461234 [10:11:45]1041 (16) - 0000000000963323 [10:11:45]1040 (4) - 73744 [10:11:45]1012 (4) - 20.10.2024 04:00 [10:11:45]1206 (1) - 0 [10:11:45]OFD Sender: Remove packet 73744 [10:11:45]ProducePacketName [10:11:45]name=ofd_packets/00073744 [10:11:45]NVStorageDeleteData [10:11:45]Write to MH i2c: 01 00 00 23 0C 2F [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 07 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 AF 0C F1 [10:11:45]RasterBufferAndPrint [10:11:45]line [10:11:45]line [10:11:45]line [10:11:45]line [10:11:45]line [10:11:45]written 0, free lines is 3251 [10:11:45]MH_Cut [10:11:45]Write to MH i2c: D1 01 00 2A 0C 01 08 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: D1 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: D1 01 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: D1 01 00 2A 0C 00 07 [10:11:45]Write to MH i2c: 01 00 00 2B 0C 37 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]OFD Sender: No OFD packet to send [10:11:46]*** Cut start [10:11:46]*** Partial cut [10:11:46]*** CUTSNS_PIN = 1 [10:11:46]*** CUTSNS_PIN = 0 [10:11:46]*** Brake cut motor [10:11:46]Read from MH i2c: 01 [10:11:46]MH_I2C_Read... [10:11:46]*** Stop cut motor [10:11:46]*** Cut end [10:11:46]Read from MH i2c: 01 07 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: 01 07 00 2B 0C 00 00 00 00 00 FF 0F 4C [10:11:46]process_action close_receipt done [10:11:46]requested_data is exist [10:11:46]produce_requested_data [10:11:46]requested_item fm.sn is exist - process it [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 11 00 00 [10:11:46]Write to MH i2c: E2 08 00 2C 0C 80 11 00 00 00 00 00 00 B2 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 2C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FF [10:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:46]wFMCommunicate OK [10:11:46]requested_item fd.num is exist - process it [10:11:46]SAM_PROTO_GetFieldsCounters [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 13 00 00 [10:11:46]Write to MH i2c: E2 08 00 2D 0C 80 13 00 00 00 00 00 00 B5 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 62 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 62 00 2D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 20 01 00 0E 04 04 00 AA 00 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 76 [10:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 20 01 00 0E 04 04 00 AA 00 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 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_GetFieldsCounters done [10:11:47]requested_item shift.num is exist - process it [10:11:47]requested_item shift.opened is exist - process it [10:11:47]req_shift_opened [10:11:47]FM_GetShiftState [10:11:47]SAM_PROTO_GetShiftState [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 13 01 00 [10:11:47]Write to MH i2c: E2 08 00 2E 0C 80 13 01 00 00 00 00 00 B7 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0E 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0E 00 2E 0C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FC [10:11:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_GetShiftState done [10:11:47]FM_GetShiftState done [10:11:47]req_shift_opened done [10:11:47]requested_item shift.open_date is exist - process it [10:11:47]req_shift_open_date [10:11:47]req_shift_open_date done [10:11:47]produce_requested_data done [10:11:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73744,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:11:47]process_action_free close_receipt [10:11:47]json_value_free [10:11:47]json_value_free done [10:11:47]process_json_proto returns [10:11:47]Send response to host [10:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73744,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:11:47]free response buf [10:11:47]execute_script done [10:11:47]execute_script returns [10:11:47]free content buf [10:11:47]Sock 8.Close socket [10:11:47]Sock 8.Thread stoped [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:22]accept exits with 9 [10:12:22]New connection [10:12:22]New thread 3067432292 created [10:12:22]Thread 3067575652 joined [10:12:22]Waiting for new connection... [10:12:22] Sock 9.Parse request [10:12:22]Sock 9.Check first char [10:12:22]Sock 9.First char is OK [10:12:22]request: POST /json_proto HTTP/1.0 [10:12:22]Method: POST [10:12:22]URL: /json_proto [10:12:22]Method is POST - this is cgi request [10:12:22]url: /json_proto [10:12:22]query_string will be loaded in cgi processing [10:12:22]execute_cgi json_proto POST (null) [10:12:22]execute_cgi path=json_proto method=POST [10:12:22]POST find Content-Length [10:12:22]Host: 172.17.44.196:8080 [10:12:22]Content-Length: 871 [10:12:22]Content-Type: application/json [10:12:22] [10:12:22]POST finish read [10:12:22]Found Content-Length = 871 [10:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272755", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [10:12:22]execute_script... [10:12: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)272755", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [10:12:22]POST & json_proto [10:12:22]process_json_proto [10:12:22]json parsed OK: [10:12:22]protocol is kg_v1.0 [10:12:22]action value=close_receipt [10:12:22]process_action close_receipt [10:12:22]cmd_close_receipt [10:12:22]MH_GetDate [10:12:22]Write to MH i2c: F0 00 00 2F 0C 2A [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: F0 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: F0 09 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: F0 09 00 2F 0C 00 87 D7 14 67 E7 19 F8 65 69 [10:12:22]GetLastDocTimeStamp 1729419104 [10:12:22]current date 1729419143 [10:12:22]FM_GetShiftState [10:12:22]SAM_PROTO_GetShiftState [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 13 01 00 [10:12:22]Write to MH i2c: E2 08 00 30 0C 80 13 01 00 00 00 00 00 B9 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0E 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0E 00 30 0C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FE [10:12:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_GetShiftState done [10:12:22]FM_GetShiftState done [10:12:22]opened in 1729384303 [10:12:22]opened+sec_in_day 1729470703 [10:12:22]quantity*price = 13000 [10:12:22]sum+1 = 13001 [10:12:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 71 20.10.2024 10:12 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73745 ФПД: 129134294269410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101223&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73745&fm=129134294269410&tin=02508201610067®Number=0000000000161154&sum=14000 0 [10:12:23]StoreToDocumentArchive [10:12:23]shift 170 fd 73745 [10:12:23]save to /storage/0170/doc_00073745 [10:12:23]save last doc name /storage/0170/doc_00073745 to /storage/kkm_last_doc_name [10:12:23]save OK [10:12:23]Clear old archive folders... [10:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=371 [10:12:23]tlvbuf is B6F405D0 [10:12:23]SAM_PROTO_ClearQueue [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 09 00 00 [10:12:23]Write to MH i2c: E2 08 00 3D 0C 80 09 00 00 00 00 00 00 BB [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_ClearQueue done [10:12:23]KKMCreateOFDPacket [10:12:23]OFDProtocolAddRootSTLVToBuf [10:12:23]FM_MakeSignedData [10:12:23]FM_MakeSignedData [10:12:23]SAM_PROTO_SignData [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 01 02 [10:12:23]Write to MH i2c: E2 08 00 3E 0C 80 0D 01 02 00 00 00 00 C3 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]wFMCommunicate request_size=255 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [10:12:23]Write to MH i2c: E2 02 01 3F 0C 80 0D 02 02 FA 00 03 00 73 01 1E 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 00 6C [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]wFMCommunicate request_size=130 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 CE 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 47 00 00 00 F4 03 04 00 87 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 20 01 00 35 04 06 00 75 72 6B BC FD E2 [10:12:23]Write to MH i2c: E2 85 00 40 0C 80 0D 02 02 7D 00 00 01 F3 03 06 00 CE 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 47 00 00 00 F4 03 04 00 87 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 20 01 00 35 04 06 00 75 72 6B BC FD E2 00 00 8C [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 03 00 40 0C 00 90 00 C0 [10:12:23]RAPDU: 90 00 [10:12:23]wFMCommunicate OK [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 0D 03 02 [10:12:23]Write to MH i2c: E2 08 00 41 0C 80 0D 03 02 00 00 00 00 C8 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 41 0C 00 10 68 79 FD DD 6B B1 4B 90 00 FB [10:12:24]RAPDU: 10 68 79 FD DD 6B B1 4B 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_SignData done [10:12:24]FM_MakeSignedData done [10:12:24]CreateOFDProtocolMessage [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 11 00 00 [10:12:24]Write to MH i2c: E2 08 00 42 0C 80 11 00 00 00 00 00 00 C8 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 42 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [10:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:12:24]wFMCommunicate OK [10:12:24]CreateOFDProtocolMessage done [10:12:24]OFDSenderStorePacket 73745 [10:12:24]StoreOFDPacket docnum=73745 [10:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 87 01 00 00 7C 81 7F 01 64 B1 5A 03 01 00 03 00 73 01 1E 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 CE 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 47 00 00 00 F4 03 04 00 87 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 20 01 00 35 04 06 00 75 72 6B BC FD E2 10 68 79 FD DD 6B B1 4B [10:12:24]CheckFolder [10:12:24]dirname=/storage/ofd_packets [10:12:24]CheckFolder done [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00073745 [10:12:24]NVStorageSaveData ofd_packets/00073745 [10:12:24]File name is /storage/ofd_packets/00073745 [10:12:24]Write 421 bytes [10:12:24]NVStorageSaveData done [10:12:24]OFDSenderStorePacket done [10:12:24]KKMCreateOFDPacket done [10:12:24]NVStorageSaveData kkm_last_timestamp [10:12:24]File name is /storage/kkm_last_timestamp [10:12:24]Write 4 bytes [10:12:24]NVStorageSaveData done [10:12:24]ExternCall_PrintAddStr [10:12:24]wPrintStart [10:12:24]Write to MH i2c: 01 00 00 43 0C 4F [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FF 0F 64 [10:12:24]RasterBufferAndPrint [10:12:24]line Счет N : (3)272755 [10:12:24]line ИНН: 02508201610067 [10:12:24]line Контрольно-Кассовый Чек [10:12:24]line ПРОДАЖА [10:12:24]line Товар: 48741156 [10:12:24]line Сигареты LD Blue [10:12:24]line 1.000 * 130.00 [10:12:24]line = 130.00 [10:12:24]line НДС 12% НСП 1% [10:12:24]line > о реализуемом товаре [10:12:24]line Товар: 46226617 [10:12:24]line Mentos ПВ Нежная Мята 6*100*2г [10:12:24]line 1.000 * 10.00 [10:12:24]line = 10.00 [10:12:24]line НДС 12% НСП 1% [10:12:24]line > о реализуемом товаре [10:12:24]line ИТОГО: 140.00 [10:12:24]line НСП 1% : 1.24 [10:12:24]line НДС 12% : 14.86 [10:12:24]line Наличными: 140.00 [10:12:24]line Безнал.: 0.00 [10:12:24]line Место: АЗС № 133 "Партнер Нефть" [10:12:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:12:24]line СНО: Общий режим [10:12:24]line Чек 71 20.10.2024 10:12 [10:12:24]line Смена: 170 ФФД: 1.0 [10:12:24]line ЗНМ: 0300000020 [10:12:24]line РНМ: 0000000000161154 [10:12:24]line Версия ККМ: v1.0 [10:12:24]line ФМ: 0000000000963323 [10:12:24]line ФД: 73745 [10:12:24]line ФПД: 129134294269410 [10:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101223&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73745&fm=129134294269410&tin=02508201610067®Number=0000000000161154&sum=14000 [10:12:24]line 0 [10:12:24]OFD Sender: Processing packet 73745 [packets to send 15, broken 14] [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00073745 [10:12:24]OFD Sender: To server: pG, [10:12:24]CommunicateWithHost lk.salyk.kg:30040 [10:12:24]ConnectInit lk.salyk.kg [10:12:24]written 0, free lines is 4095 [10:12:24]Connected sock=10 [10:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 87 01 00 00 7C 81 7F 01 64 B1 5A 03 01 00 03 00 73 01 1E 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 CE 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 47 00 00 00 F4 03 04 00 87 D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 20 01 00 35 04 06 00 75 72 6B BC FD E2 10 68 79 FD DD 6B B1 4B [10:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F3 9B 47 00 27 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 39 36 33 33 32 33 10 04 04 00 11 20 01 00 F4 03 04 00 6C 80 14 67 B6 04 01 00 00 83 B1 E6 B1 04 16 62 B1 [10:12:24]CommunicateWithHost err = 0 [10:12:24]CheckOFDResponse [10:12:24]1017 (14) - 77093643461234 [10:12:24]1041 (16) - 0000000000963323 [10:12:24]1040 (4) - 73745 [10:12:24]1012 (4) - 20.10.2024 04:00 [10:12:24]1206 (1) - 0 [10:12:24]OFD Sender: Remove packet 73745 [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00073745 [10:12:24]NVStorageDeleteData [10:12:24]Write to MH i2c: 01 00 00 71 0C 7D [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 71 0C 00 00 00 00 00 5B 0C EB [10:12:24]RasterBufferAndPrint [10:12:24]line [10:12:24]line [10:12:24]line [10:12:24]line [10:12:24]line [10:12:24]written 0, free lines is 3169 [10:12:24]MH_Cut [10:12:24]Write to MH i2c: D1 01 00 78 0C 01 56 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: D1 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: D1 01 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: D1 01 00 78 0C 00 55 [10:12:24]Write to MH i2c: 01 00 00 79 0C 85 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:25]OFD Sender: No OFD packet to send [10:12:25]*** Cut start [10:12:25]*** Partial cut [10:12:25]*** CUTSNS_PIN = 1 [10:12:25]*** CUTSNS_PIN = 0 [10:12:26]*** Brake cut motor [10:12:26]Read from MH i2c: 01 [10:12:26]MH_I2C_Read... [10:12:26]*** Stop cut motor [10:12:26]*** Cut end [10:12:26]Read from MH i2c: 01 07 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 FF 0F 9A [10:12:26]process_action close_receipt done [10:12:26]requested_data is exist [10:12:26]produce_requested_data [10:12:26]requested_item fm.sn is exist - process it [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 11 00 00 [10:12:26]Write to MH i2c: E2 08 00 7A 0C 80 11 00 00 00 00 00 00 00 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 17 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 17 00 7A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4D [10:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:12:26]wFMCommunicate OK [10:12:26]requested_item fd.num is exist - process it [10:12:26]SAM_PROTO_GetFieldsCounters [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 13 00 00 [10:12:26]Write to MH i2c: E2 08 00 7B 0C 80 13 00 00 00 00 00 00 03 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 62 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 62 00 7B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 20 01 00 0E 04 04 00 AA 00 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 C8 [10:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 20 01 00 0E 04 04 00 AA 00 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 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_GetFieldsCounters done [10:12:26]requested_item shift.num is exist - process it [10:12:26]requested_item shift.opened is exist - process it [10:12:26]req_shift_opened [10:12:26]FM_GetShiftState [10:12:26]SAM_PROTO_GetShiftState [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 13 01 00 [10:12:26]Write to MH i2c: E2 08 00 7C 0C 80 13 01 00 00 00 00 00 05 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0E 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0E 00 7C 0C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [10:12:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_GetShiftState done [10:12:26]FM_GetShiftState done [10:12:26]req_shift_opened done [10:12:26]requested_item shift.open_date is exist - process it [10:12:26]req_shift_open_date [10:12:26]req_shift_open_date done [10:12:26]produce_requested_data done [10:12:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73745,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:12:26]process_action_free close_receipt [10:12:26]json_value_free [10:12:26]json_value_free done [10:12:26]process_json_proto returns [10:12:26]Send response to host [10:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73745,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:12:26]free response buf [10:12:26]execute_script done [10:12:26]execute_script returns [10:12:26]free content buf [10:12:26]Sock 9.Close socket [10:12:26]Sock 9.Thread stoped [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:22]int [10:13:22]Write to MH i2c: 01 00 00 7D 0C 89 [10:13:22]*** FLAG_PRN_PAP1 set [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 7D 0C 00 01 00 00 00 FF 0F 9F [10:13:22]state=0 [10:13:22]No paper [10:13:22]int [10:13:22]Write to MH i2c: 01 00 00 7E 0C 8A [10:13:22]*** FLAG_PRN_PAP2 set [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 7E 0C 00 03 00 00 00 FF 0F A2 [10:13:22]state=0 [10:13:22]No paper [10:13:22]Cover opened [10:13:25]OFD Sender: No OFD packet to send [10:13:27]Write to MH i2c: 01 00 00 7F 0C 8B [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 7F 0C 00 03 00 00 00 FF 0F A3 [10:13:27]state=3 [10:13:27]No paper [10:13:27]Cover opened [10:13:30]OFD Sender: No OFD packet to send [10:13:31]int [10:13:31]Write to MH i2c: 01 00 00 80 0C 8C [10:13:31]*** FLAG_PRN_PAP1 reset [10:13:31]*** FLAG_PRN_PAP2 reset [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [10:13:31]state=3 [10:13:31]Cover closed [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:46]accept exits with 8 [10:13:46]New connection [10:13:46]New thread 3067575652 created [10:13:46]Thread 3067432292 joined [10:13:46]Waiting for new connection... [10:13:46] Sock 8.Parse request [10:13:46]Sock 8.Check first char [10:13:46]Sock 8.First char is OK [10:13:46]request: POST /json_proto HTTP/1.0 [10:13:46]Method: POST [10:13:46]URL: /json_proto [10:13:46]Method is POST - this is cgi request [10:13:46]url: /json_proto [10:13:46]query_string will be loaded in cgi processing [10:13:46]execute_cgi json_proto POST (null) [10:13:46]execute_cgi path=json_proto method=POST [10:13:46]POST find Content-Length [10:13:46]Host: 172.17.44.196:8080 [10:13:46]Content-Length: 884 [10:13:46]Content-Type: application/json [10:13:46] [10:13:46]POST finish read [10:13:46]Found Content-Length = 884 [10:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272756", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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" ] } } [10:13:46]execute_script... [10:13: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)272756", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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" ] } } [10:13:46]POST & json_proto [10:13:46]process_json_proto [10:13:46]json parsed OK: [10:13:46]protocol is kg_v1.0 [10:13:46]action value=close_receipt [10:13:46]process_action close_receipt [10:13:46]cmd_close_receipt [10:13:46]MH_GetDate [10:13:46]Write to MH i2c: F0 00 00 81 0C 7C [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: F0 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: F0 09 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: F0 09 00 81 0C 00 DB D7 14 67 E7 19 F8 65 0F [10:13:46]GetLastDocTimeStamp 1729419143 [10:13:46]current date 1729419227 [10:13:46]FM_GetShiftState [10:13:46]SAM_PROTO_GetShiftState [10:13:46]wFMCommunicate request_size=4 [10:13:46]MH_SAM_APDU [10:13:46]CAPDU: 80 13 01 00 [10:13:46]Write to MH i2c: E2 08 00 82 0C 80 13 01 00 00 00 00 00 0B [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:46]Read from MH i2c: E2 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 0E 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 0E 00 82 0C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 50 [10:13:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:13:46]wFMCommunicate OK [10:13:46]SAM_PROTO_GetShiftState done [10:13:46]FM_GetShiftState done [10:13:46]opened in 1729384303 [10:13:46]opened+sec_in_day 1729470703 [10:13:46]quantity*price = 5500 [10:13:46]sum+1 = 5501 [10:13:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120854177 Снек Орехи BEERKa Арахис 30г 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.49 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 72 20.10.2024 10:13 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73746 ФПД: 175928180298829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101347&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73746&fm=175928180298829&tin=02508201610067®Number=0000000000161154&sum=8000 0 [10:13:47]StoreToDocumentArchive [10:13:47]shift 170 fd 73746 [10:13:47]save to /storage/0170/doc_00073746 [10:13:47]save last doc name /storage/0170/doc_00073746 to /storage/kkm_last_doc_name [10:13:47]save OK [10:13:47]Clear old archive folders... [10:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=391 [10:13:47]tlvbuf is 0030D510 [10:13:47]SAM_PROTO_ClearQueue [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 09 00 00 [10:13:47]Write to MH i2c: E2 08 00 8F 0C 80 09 00 00 00 00 00 00 0D [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 8F 0C 00 90 00 0F [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]SAM_PROTO_ClearQueue done [10:13:47]KKMCreateOFDPacket [10:13:47]OFDProtocolAddRootSTLVToBuf [10:13:47]FM_MakeSignedData [10:13:47]FM_MakeSignedData [10:13:47]SAM_PROTO_SignData [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 01 02 [10:13:47]Write to MH i2c: E2 08 00 90 0C 80 0D 01 02 00 00 00 00 15 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 90 0C 00 90 00 10 [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]wFMCommunicate request_size=255 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 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 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 [10:13:47]Write to MH i2c: E2 02 01 91 0C 80 0D 02 02 FA 00 03 00 87 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 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 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 00 00 6D [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]wFMCommunicate request_size=150 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 02 02 91 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 51 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 48 00 00 00 F4 03 04 00 DB D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 20 01 00 35 04 06 00 A0 01 78 B1 54 4D [10:13:47]Write to MH i2c: E2 99 00 92 0C 80 0D 02 02 91 00 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 51 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 48 00 00 00 F4 03 04 00 DB D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 20 01 00 35 04 06 00 A0 01 78 B1 54 4D 00 00 13 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:48]Read from MH i2c: E2 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: E2 03 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [10:13:48]RAPDU: 90 00 [10:13:48]wFMCommunicate OK [10:13:48]wFMCommunicate request_size=4 [10:13:48]MH_SAM_APDU [10:13:48]CAPDU: 80 0D 03 02 [10:13:48]Write to MH i2c: E2 08 00 93 0C 80 0D 03 02 00 00 00 00 1A [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:48]Read from MH i2c: E2 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: E2 0B 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: E2 0B 00 93 0C 00 A9 7D E2 AB 7F BD BE 67 90 00 2F [10:13:48]RAPDU: A9 7D E2 AB 7F BD BE 67 90 00 [10:13:48]wFMCommunicate OK [10:13:48]SAM_PROTO_SignData done [10:13:48]FM_MakeSignedData done [10:13:48]CreateOFDProtocolMessage [10:13:48]wFMCommunicate request_size=4 [10:13:48]MH_SAM_APDU [10:13:48]CAPDU: 80 11 00 00 [10:13:48]Write to MH i2c: E2 08 00 94 0C 80 11 00 00 00 00 00 00 1A [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:48]Read from MH i2c: E2 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: E2 17 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: E2 17 00 94 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [10:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:13:48]wFMCommunicate OK [10:13:48]CreateOFDProtocolMessage done [10:13:48]OFDSenderStorePacket 73746 [10:13:48]StoreOFDPacket docnum=73746 [10:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 01 00 00 E8 A6 93 01 2F C0 5A 03 01 00 03 00 87 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 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 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 51 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 48 00 00 00 F4 03 04 00 DB D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 20 01 00 35 04 06 00 A0 01 78 B1 54 4D A9 7D E2 AB 7F BD BE 67 [10:13:48]CheckFolder [10:13:48]dirname=/storage/ofd_packets [10:13:48]CheckFolder done [10:13:48]ProducePacketName [10:13:48]name=ofd_packets/00073746 [10:13:48]NVStorageSaveData ofd_packets/00073746 [10:13:48]File name is /storage/ofd_packets/00073746 [10:13:48]Write 441 bytes [10:13:48]NVStorageSaveData done [10:13:48]OFDSenderStorePacket done [10:13:48]KKMCreateOFDPacket done [10:13:48]NVStorageSaveData kkm_last_timestamp [10:13:48]File name is /storage/kkm_last_timestamp [10:13:48]Write 4 bytes [10:13:48]NVStorageSaveData done [10:13:48]ExternCall_PrintAddStr [10:13:48]wPrintStart [10:13:48]Write to MH i2c: 01 00 00 95 0C A1 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 95 0C 00 00 00 00 00 FF 0F B6 [10:13:48]RasterBufferAndPrint [10:13:48]line Счет N : (3)272756 [10:13:48]line ИНН: 02508201610067 [10:13:48]line Контрольно-Кассовый Чек [10:13:48]line ПРОДАЖА [10:13:48]line Товар: 4870112003925 [10:13:48]line Конд ULKER-Albeni 40gr (6*24) [10:13:48]line 1.000 * 55.00 [10:13:48]line = 55.00 [10:13:48]line НДС 12% НСП 1% [10:13:48]line > о реализуемом товаре [10:13:48]line Товар: 4607120854177 [10:13:48]line Снек Орехи BEERKa Арахис 30г [10:13:48]line 1.000 * 25.00 [10:13:48]line = 25.00 [10:13:48]line НДС 12% НСП 1% [10:13:48]line > о реализуемом товаре [10:13:48]line ИТОГО: 80.00 [10:13:48]line НСП 1% : 0.71 [10:13:48]line НДС 12% : 8.49 [10:13:48]line Наличными: 80.00 [10:13:48]line Безнал.: 0.00 [10:13:48]line Место: АЗС № 133 "Партнер Нефть" [10:13:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:13:48]line СНО: Общий режим [10:13:48]line Чек 72 20.10.2024 10:13 [10:13:48]line Смена: 170 ФФД: 1.0 [10:13:48]line ЗНМ: 0300000020 [10:13:48]line РНМ: 0000000000161154 [10:13:48]line Версия ККМ: v1.0 [10:13:48]line ФМ: 0000000000963323 [10:13:48]line ФД: 73746 [10:13:48]line ФПД: 175928180298829 [10:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101347&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73746&fm=175928180298829&tin=02508201610067®Number=0000000000161154&sum=8000 [10:13:48]line 0 [10:13:48]OFD Sender: Processing packet 73746 [packets to send 15, broken 14] [10:13:48]ProducePacketName [10:13:48]name=ofd_packets/00073746 [10:13:48]OFD Sender: To server: pG, [10:13:48]CommunicateWithHost lk.salyk.kg:30040 [10:13:48]ConnectInit lk.salyk.kg [10:13:48]written 0, free lines is 4095 [10:13:48]Connected sock=10 [10:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 01 00 00 E8 A6 93 01 2F C0 5A 03 01 00 03 00 87 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 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 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 51 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 48 00 00 00 F4 03 04 00 DB D7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 20 01 00 35 04 06 00 A0 01 78 B1 54 4D A9 7D E2 AB 7F BD BE 67 [10:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 61 FA 47 00 D0 18 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 39 36 33 33 32 33 10 04 04 00 12 20 01 00 F4 03 04 00 C0 80 14 67 B6 04 01 00 00 E5 39 F6 E5 2E 2D 47 BD [10:13:48]CommunicateWithHost err = 0 [10:13:48]CheckOFDResponse [10:13:48]1017 (14) - 77093643461234 [10:13:48]1041 (16) - 0000000000963323 [10:13:48]1040 (4) - 73746 [10:13:48]1012 (4) - 20.10.2024 04:02 [10:13:48]1206 (1) - 0 [10:13:48]OFD Sender: Remove packet 73746 [10:13:48]ProducePacketName [10:13:48]name=ofd_packets/00073746 [10:13:48]NVStorageDeleteData [10:13:48]Write to MH i2c: 01 00 00 C3 0C CF [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 57 0C 39 [10:13:48]RasterBufferAndPrint [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]written 0, free lines is 3164 [10:13:48]MH_Cut [10:13:48]Write to MH i2c: D1 01 00 CA 0C 01 A8 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 01 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 01 00 CA 0C 00 A7 [10:13:48]Write to MH i2c: 01 00 00 CB 0C D7 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:49]OFD Sender: No OFD packet to send [10:13:49]*** Cut start [10:13:49]*** Partial cut [10:13:49]*** CUTSNS_PIN = 1 [10:13:49]*** CUTSNS_PIN = 0 [10:13:50]*** Brake cut motor [10:13:50]Read from MH i2c: 01 [10:13:50]MH_I2C_Read... [10:13:50]*** Stop cut motor [10:13:50]*** Cut end [10:13:50]Read from MH i2c: 01 07 00 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [10:13:50]process_action close_receipt done [10:13:50]requested_data is exist [10:13:50]produce_requested_data [10:13:50]requested_item fm.sn is exist - process it [10:13:50]wFMCommunicate request_size=4 [10:13:50]MH_SAM_APDU [10:13:50]CAPDU: 80 11 00 00 [10:13:50]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [10:13:50]Write i2c OK [10:13:50]MH_I2C_Read... [10:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:50]Read from MH i2c: E2 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: E2 17 00 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9F [10:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:13:50]wFMCommunicate OK [10:13:50]requested_item fd.num is exist - process it [10:13:50]SAM_PROTO_GetFieldsCounters [10:13:50]wFMCommunicate request_size=4 [10:13:50]MH_SAM_APDU [10:13:50]CAPDU: 80 13 00 00 [10:13:50]Write to MH i2c: E2 08 00 CD 0C 80 13 00 00 00 00 00 00 55 [10:13:50]Write i2c OK [10:13:50]MH_I2C_Read... [10:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:50]Read from MH i2c: E2 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: E2 62 00 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: E2 62 00 CD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 20 01 00 0E 04 04 00 AA 00 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 1E [10:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 20 01 00 0E 04 04 00 AA 00 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 [10:13:50]wFMCommunicate OK [10:13:50]SAM_PROTO_GetFieldsCounters done [10:13:50]requested_item shift.num is exist - process it [10:13:50]requested_item shift.opened is exist - process it [10:13:50]req_shift_opened [10:13:50]FM_GetShiftState [10:13:50]SAM_PROTO_GetShiftState [10:13:50]wFMCommunicate request_size=4 [10:13:50]MH_SAM_APDU [10:13:50]CAPDU: 80 13 01 00 [10:13:50]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [10:13:50]Write i2c OK [10:13:50]MH_I2C_Read... [10:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:50]Read from MH i2c: E2 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: E2 0E 00 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9C [10:13:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:13:50]wFMCommunicate OK [10:13:50]SAM_PROTO_GetShiftState done [10:13:50]FM_GetShiftState done [10:13:50]req_shift_opened done [10:13:50]requested_item shift.open_date is exist - process it [10:13:50]req_shift_open_date [10:13:50]req_shift_open_date done [10:13:50]produce_requested_data done [10:13:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73746,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:13:50]process_action_free close_receipt [10:13:50]json_value_free [10:13:50]json_value_free done [10:13:50]process_json_proto returns [10:13:50]Send response to host [10:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73746,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:13:50]free response buf [10:13:50]execute_script done [10:13:50]execute_script returns [10:13:50]free content buf [10:13:50]Sock 8.Close socket [10:13:50]Sock 8.Thread stoped [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:18]accept exits with 9 [10:15:18]New connection [10:15:18]New thread 3067432292 created [10:15:18]Thread 3067575652 joined [10:15:18]Waiting for new connection... [10:15:18] Sock 9.Parse request [10:15:18]Sock 9.Check first char [10:15:18]Sock 9.First char is OK [10:15:18]request: POST /json_proto HTTP/1.0 [10:15:18]Method: POST [10:15:18]URL: /json_proto [10:15:18]Method is POST - this is cgi request [10:15:18]url: /json_proto [10:15:18]query_string will be loaded in cgi processing [10:15:18]execute_cgi json_proto POST (null) [10:15:18]execute_cgi path=json_proto method=POST [10:15:18]POST find Content-Length [10:15:18]Host: 172.17.44.196:8080 [10:15:18]Content-Length: 678 [10:15:18]Content-Type: application/json [10:15:18] [10:15:18]POST finish read [10:15:18]Found Content-Length = 678 [10:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962794", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:18]execute_script... [10:15: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 : (1)1962794", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:18]POST & json_proto [10:15:18]process_json_proto [10:15:18]json parsed OK: [10:15:18]protocol is kg_v1.0 [10:15:18]action value=close_receipt [10:15:18]process_action close_receipt [10:15:18]cmd_close_receipt [10:15:18]MH_GetDate [10:15:18]Write to MH i2c: F0 00 00 CF 0C CA [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: F0 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: F0 09 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: F0 09 00 CF 0C 00 37 D8 14 67 E7 19 F8 65 BA [10:15:18]GetLastDocTimeStamp 1729419227 [10:15:18]current date 1729419319 [10:15:18]FM_GetShiftState [10:15:18]SAM_PROTO_GetShiftState [10:15:18]wFMCommunicate request_size=4 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 13 01 00 [10:15:18]Write to MH i2c: E2 08 00 D0 0C 80 13 01 00 00 00 00 00 59 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 0E 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 0E 00 D0 0C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9E [10:15:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:15:18]wFMCommunicate OK [10:15:18]SAM_PROTO_GetShiftState done [10:15:18]FM_GetShiftState done [10:15:18]opened in 1729384303 [10:15:18]opened+sec_in_day 1729470703 [10:15:18]quantity*price = 40006 [10:15:18]sum+1 = 40007 [10:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 73 20.10.2024 10:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73747 ФПД: 34161166277312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101519&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73747&fm=34161166277312&tin=02508201610067®Number=0000000000161154&sum=40000 [10:15:19]StoreToDocumentArchive [10:15:19]shift 170 fd 73747 [10:15:19]save to /storage/0170/doc_00073747 [10:15:19]save last doc name /storage/0170/doc_00073747 to /storage/kkm_last_doc_name [10:15:19]save OK [10:15:19]Clear old archive folders... [10:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:19]tlvbuf is 00326F40 [10:15:19]SAM_PROTO_ClearQueue [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 09 00 00 [10:15:19]Write to MH i2c: E2 08 00 DD 0C 80 09 00 00 00 00 00 00 5B [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 03 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [10:15:19]RAPDU: 90 00 [10:15:19]wFMCommunicate OK [10:15:19]SAM_PROTO_ClearQueue done [10:15:19]KKMCreateOFDPacket [10:15:19]OFDProtocolAddRootSTLVToBuf [10:15:19]FM_MakeSignedData [10:15:19]FM_MakeSignedData [10:15:19]SAM_PROTO_SignData [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 0D 01 02 [10:15:19]Write to MH i2c: E2 08 00 DE 0C 80 0D 01 02 00 00 00 00 63 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 03 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [10:15:19]RAPDU: 90 00 [10:15:19]wFMCommunicate OK [10:15:19]wFMCommunicate request_size=255 [10:15:19]MH_SAM_APDU [10:15:19]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 37 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 20 01 00 35 04 06 00 1F [10:15:19]Write to MH i2c: E2 02 01 DF 0C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 37 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 20 01 00 35 04 06 00 1F 00 00 84 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 03 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 03 00 DF 0C 00 90 00 5F [10:15:19]RAPDU: 90 00 [10:15:19]wFMCommunicate OK [10:15:19]wFMCommunicate request_size=10 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 0D 02 02 05 11 C4 2E 5A C0 [10:15:19]Write to MH i2c: E2 0D 00 E0 0C 80 0D 02 02 05 00 11 C4 2E 5A C0 00 00 8D [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 03 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [10:15:20]RAPDU: 90 00 [10:15:20]wFMCommunicate OK [10:15:20]wFMCommunicate request_size=4 [10:15:20]MH_SAM_APDU [10:15:20]CAPDU: 80 0D 03 02 [10:15:20]Write to MH i2c: E2 08 00 E1 0C 80 0D 03 02 00 00 00 00 68 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 0B 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 0B 00 E1 0C 00 D5 C7 92 9F C5 D8 87 1B 90 00 75 [10:15:20]RAPDU: D5 C7 92 9F C5 D8 87 1B 90 00 [10:15:20]wFMCommunicate OK [10:15:20]SAM_PROTO_SignData done [10:15:20]FM_MakeSignedData done [10:15:20]CreateOFDProtocolMessage [10:15:20]wFMCommunicate request_size=4 [10:15:20]MH_SAM_APDU [10:15:20]CAPDU: 80 11 00 00 [10:15:20]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 17 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B5 [10:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:15:20]wFMCommunicate OK [10:15:20]CreateOFDProtocolMessage done [10:15:20]OFDSenderStorePacket 73747 [10:15:20]StoreOFDPacket docnum=73747 [10:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9B 2B 07 01 85 C7 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 37 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 20 01 00 35 04 06 00 1F 11 C4 2E 5A C0 D5 C7 92 9F C5 D8 87 1B [10:15:20]CheckFolder [10:15:20]dirname=/storage/ofd_packets [10:15:20]CheckFolder done [10:15:20]ProducePacketName [10:15:20]name=ofd_packets/00073747 [10:15:20]NVStorageSaveData ofd_packets/00073747 [10:15:20]File name is /storage/ofd_packets/00073747 [10:15:20]Write 301 bytes [10:15:20]NVStorageSaveData done [10:15:20]OFDSenderStorePacket done [10:15:20]KKMCreateOFDPacket done [10:15:20]NVStorageSaveData kkm_last_timestamp [10:15:20]File name is /storage/kkm_last_timestamp [10:15:20]Write 4 bytes [10:15:20]NVStorageSaveData done [10:15:20]ExternCall_PrintAddStr [10:15:20]wPrintStart [10:15:20]Write to MH i2c: 01 00 00 E3 0C EF [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 07 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 FF 0F 04 [10:15:20]RasterBufferAndPrint [10:15:20]line Счет N : (1)1962794 [10:15:20]line ИНН: 02508201610067 [10:15:20]line Контрольно-Кассовый Чек [10:15:20]line ПРОДАЖА [10:15:20]line ТРК (МРК, ГНК) : 33 [10:15:20]line Товар: 2710124130 [10:15:20]line Аи-92-К-5 [10:15:20]line 5.980 * 66.90 [10:15:20]line = 400.06 [10:15:20]line НДС 12% НСП 1% [10:15:20]line > о реализуемом товаре [10:15:20]line ОКРУГЛЕНИЕ: -0.06 [10:15:20]line ИТОГО: 400.00 [10:15:20]line Внесено: 400.00 [10:15:20]line СДАЧА: 0.00 [10:15:20]line НСП 1% : 3.54 [10:15:20]line НДС 12% : 42.48 [10:15:20]line Наличными: 400.00 [10:15:20]line Безнал.: 0.00 [10:15:20]line Место: АЗС № 133 "Партнер Нефть" [10:15:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:15:20]line СНО: Общий режим [10:15:20]line Чек 73 20.10.2024 10:15 [10:15:20]line Смена: 170 ФФД: 1.0 [10:15:20]line ЗНМ: 0300000020 [10:15:20]line РНМ: 0000000000161154 [10:15:20]line Версия ККМ: v1.0 [10:15:20]line ФМ: 0000000000963323 [10:15:20]line ФД: 73747 [10:15:20]line ФПД: 34161166277312 [10:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101519&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73747&fm=34161166277312&tin=02508201610067®Number=0000000000161154&sum=40000 [10:15:20]OFD Sender: Processing packet 73747 [packets to send 15, broken 14] [10:15:20]ProducePacketName [10:15:20]name=ofd_packets/00073747 [10:15:20]OFD Sender: To server: pG, [10:15:20]CommunicateWithHost lk.salyk.kg:30040 [10:15:20]ConnectInit lk.salyk.kg [10:15:20]written 0, free lines is 4095 [10:15:20]Connected sock=11 [10:15:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9B 2B 07 01 85 C7 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 37 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 20 01 00 35 04 06 00 1F 11 C4 2E 5A C0 D5 C7 92 9F C5 D8 87 1B [10:15:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3E B8 47 00 12 5C 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 39 36 33 33 32 33 10 04 04 00 13 20 01 00 F4 03 04 00 1C 81 14 67 B6 04 01 00 00 24 E2 AA 96 7B 38 06 67 [10:15:20]CommunicateWithHost err = 0 [10:15:20]CheckOFDResponse [10:15:20]1017 (14) - 77093643461234 [10:15:20]1041 (16) - 0000000000963323 [10:15:20]1040 (4) - 73747 [10:15:20]1012 (4) - 20.10.2024 04:03 [10:15:20]1206 (1) - 0 [10:15:20]OFD Sender: Remove packet 73747 [10:15:20]ProducePacketName [10:15:20]name=ofd_packets/00073747 [10:15:20]NVStorageDeleteData [10:15:20]Write to MH i2c: 01 00 00 0D 0D 1A [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 07 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 07 00 0D 0D 00 00 00 00 00 AA 0C D7 [10:15:20]RasterBufferAndPrint [10:15:20]line [10:15:20]line [10:15:20]line [10:15:20]line [10:15:20]line [10:15:20]written 0, free lines is 3246 [10:15:20]MH_Cut [10:15:20]Write to MH i2c: D1 01 00 14 0D 01 F3 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: D1 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: D1 01 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: D1 01 00 14 0D 00 F2 [10:15:20]Write to MH i2c: 01 00 00 15 0D 22 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:21]OFD Sender: No OFD packet to send [10:15:21]*** Cut start [10:15:21]*** Partial cut [10:15:21]*** CUTSNS_PIN = 1 [10:15:21]*** CUTSNS_PIN = 0 [10:15:22]*** Brake cut motor [10:15:22]Read from MH i2c: 01 [10:15:22]MH_I2C_Read... [10:15:22]*** Stop cut motor [10:15:22]*** Cut end [10:15:22]Read from MH i2c: 01 07 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [10:15:22]process_action close_receipt done [10:15:22]requested_data is exist [10:15:22]produce_requested_data [10:15:22]requested_item fm.sn is exist - process it [10:15:22]wFMCommunicate request_size=4 [10:15:22]MH_SAM_APDU [10:15:22]CAPDU: 80 11 00 00 [10:15:22]Write to MH i2c: E2 08 00 16 0D 80 11 00 00 00 00 00 00 9D [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:22]Read from MH i2c: E2 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 17 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 17 00 16 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EA [10:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:15:22]wFMCommunicate OK [10:15:22]requested_item fd.num is exist - process it [10:15:22]SAM_PROTO_GetFieldsCounters [10:15:22]wFMCommunicate request_size=4 [10:15:22]MH_SAM_APDU [10:15:22]CAPDU: 80 13 00 00 [10:15:22]Write to MH i2c: E2 08 00 17 0D 80 13 00 00 00 00 00 00 A0 [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:22]Read from MH i2c: E2 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 62 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 62 00 17 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 20 01 00 0E 04 04 00 AA 00 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 6D [10:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 20 01 00 0E 04 04 00 AA 00 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 [10:15:22]wFMCommunicate OK [10:15:22]SAM_PROTO_GetFieldsCounters done [10:15:22]requested_item shift.num is exist - process it [10:15:22]requested_item shift.opened is exist - process it [10:15:22]req_shift_opened [10:15:22]FM_GetShiftState [10:15:22]SAM_PROTO_GetShiftState [10:15:22]wFMCommunicate request_size=4 [10:15:22]MH_SAM_APDU [10:15:22]CAPDU: 80 13 01 00 [10:15:22]Write to MH i2c: E2 08 00 18 0D 80 13 01 00 00 00 00 00 A2 [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:22]Read from MH i2c: E2 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 0E 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 0E 00 18 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E7 [10:15:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:15:22]wFMCommunicate OK [10:15:22]SAM_PROTO_GetShiftState done [10:15:22]FM_GetShiftState done [10:15:22]req_shift_opened done [10:15:22]requested_item shift.open_date is exist - process it [10:15:22]req_shift_open_date [10:15:22]req_shift_open_date done [10:15:22]produce_requested_data done [10:15:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73747,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:15:22]process_action_free close_receipt [10:15:22]json_value_free [10:15:22]json_value_free done [10:15:22]process_json_proto returns [10:15:22]Send response to host [10:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73747,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:15:22]free response buf [10:15:22]execute_script done [10:15:22]execute_script returns [10:15:22]free content buf [10:15:22]Sock 9.Close socket [10:15:22]Sock 9.Thread stoped [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:15:57]accept exits with 8 [10:15:57]New connection [10:15:57]New thread 3067575652 created [10:15:57]Thread 3067432292 joined [10:15:57]Waiting for new connection... [10:15:57] Sock 8.Parse request [10:15:57]Sock 8.Check first char [10:15:57]Sock 8.First char is OK [10:15:57]request: POST /json_proto HTTP/1.0 [10:15:57]Method: POST [10:15:57]URL: /json_proto [10:15:57]Method is POST - this is cgi request [10:15:57]url: /json_proto [10:15:57]query_string will be loaded in cgi processing [10:15:57]execute_cgi json_proto POST (null) [10:15:57]execute_cgi path=json_proto method=POST [10:15:57]POST find Content-Length [10:15:57]Host: 172.17.44.196:8080 [10:15:57]Content-Length: 678 [10:15:57]Content-Type: application/json [10:15:57] [10:15:57]POST finish read [10:15:57]Found Content-Length = 678 [10:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962795", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:15:57]execute_script... [10:15: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 : (1)1962795", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:15:57]POST & json_proto [10:15:57]process_json_proto [10:15:57]json parsed OK: [10:15:57]protocol is kg_v1.0 [10:15:57]action value=close_receipt [10:15:57]process_action close_receipt [10:15:57]cmd_close_receipt [10:15:57]MH_GetDate [10:15:57]Write to MH i2c: F0 00 00 19 0D 15 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: F0 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: F0 09 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: F0 09 00 19 0D 00 5E D8 14 67 E7 19 F8 65 2C [10:15:57]GetLastDocTimeStamp 1729419319 [10:15:57]current date 1729419358 [10:15:57]FM_GetShiftState [10:15:57]SAM_PROTO_GetShiftState [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 13 01 00 [10:15:57]Write to MH i2c: E2 08 00 1A 0D 80 13 01 00 00 00 00 00 A4 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0E 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0E 00 1A 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E9 [10:15:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:15:57]wFMCommunicate OK [10:15:57]SAM_PROTO_GetShiftState done [10:15:57]FM_GetShiftState done [10:15:57]opened in 1729384303 [10:15:57]opened+sec_in_day 1729470703 [10:15:57]quantity*price = 50041 [10:15:57]sum+1 = 50042 [10:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 74 20.10.2024 10:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73748 ФПД: 102945175228996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101558&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73748&fm=102945175228996&tin=02508201610067®Number=0000000000161154&sum=50000 [10:15:58]StoreToDocumentArchive [10:15:58]shift 170 fd 73748 [10:15:58]save to /storage/0170/doc_00073748 [10:15:58]save last doc name /storage/0170/doc_00073748 to /storage/kkm_last_doc_name [10:15:58]save OK [10:15:58]Clear old archive folders... [10:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:58]tlvbuf is 002F3B70 [10:15:58]SAM_PROTO_ClearQueue [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 09 00 00 [10:15:58]Write to MH i2c: E2 08 00 27 0D 80 09 00 00 00 00 00 00 A6 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_ClearQueue done [10:15:58]KKMCreateOFDPacket [10:15:58]OFDProtocolAddRootSTLVToBuf [10:15:58]FM_MakeSignedData [10:15:58]FM_MakeSignedData [10:15:58]SAM_PROTO_SignData [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 0D 01 02 [10:15:58]Write to MH i2c: E2 08 00 28 0D 80 0D 01 02 00 00 00 00 AE [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]wFMCommunicate request_size=255 [10:15:58]MH_SAM_APDU [10:15:58]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 4A 00 00 00 F4 03 04 00 5E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 20 01 00 35 04 06 00 5D [10:15:58]Write to MH i2c: E2 02 01 29 0D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 4A 00 00 00 F4 03 04 00 5E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 20 01 00 35 04 06 00 5D 00 00 67 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 03 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [10:15:59]RAPDU: 90 00 [10:15:59]wFMCommunicate OK [10:15:59]wFMCommunicate request_size=10 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 0D 02 02 05 A0 CA 99 D2 44 [10:15:59]Write to MH i2c: E2 0D 00 2A 0D 80 0D 02 02 05 00 A0 CA 99 D2 44 00 00 D4 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 03 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [10:15:59]RAPDU: 90 00 [10:15:59]wFMCommunicate OK [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 0D 03 02 [10:15:59]Write to MH i2c: E2 08 00 2B 0D 80 0D 03 02 00 00 00 00 B3 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 0B 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 0B 00 2B 0D 00 0A 73 E1 81 17 67 23 27 90 00 5B [10:15:59]RAPDU: 0A 73 E1 81 17 67 23 27 90 00 [10:15:59]wFMCommunicate OK [10:15:59]SAM_PROTO_SignData done [10:15:59]FM_MakeSignedData done [10:15:59]CreateOFDProtocolMessage [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 11 00 00 [10:15:59]Write to MH i2c: E2 08 00 2C 0D 80 11 00 00 00 00 00 00 B3 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 2C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 00 [10:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:15:59]wFMCommunicate OK [10:15:59]CreateOFDProtocolMessage done [10:15:59]OFDSenderStorePacket 73748 [10:15:59]StoreOFDPacket docnum=73748 [10:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 2A C9 07 01 76 E4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 4A 00 00 00 F4 03 04 00 5E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 20 01 00 35 04 06 00 5D A0 CA 99 D2 44 0A 73 E1 81 17 67 23 27 [10:15:59]CheckFolder [10:15:59]dirname=/storage/ofd_packets [10:15:59]CheckFolder done [10:15:59]ProducePacketName [10:15:59]name=ofd_packets/00073748 [10:15:59]NVStorageSaveData ofd_packets/00073748 [10:15:59]File name is /storage/ofd_packets/00073748 [10:15:59]Write 301 bytes [10:15:59]NVStorageSaveData done [10:15:59]OFDSenderStorePacket done [10:15:59]KKMCreateOFDPacket done [10:15:59]NVStorageSaveData kkm_last_timestamp [10:15:59]File name is /storage/kkm_last_timestamp [10:15:59]Write 4 bytes [10:15:59]NVStorageSaveData done [10:15:59]ExternCall_PrintAddStr [10:15:59]wPrintStart [10:15:59]Write to MH i2c: 01 00 00 2D 0D 3A [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 FF 0F 4F [10:15:59]RasterBufferAndPrint [10:15:59]line Счет N : (1)1962795 [10:15:59]line ИНН: 02508201610067 [10:15:59]line Контрольно-Кассовый Чек [10:15:59]line ПРОДАЖА [10:15:59]line ТРК (МРК, ГНК) : 53 [10:15:59]line Товар: 2710124130 [10:15:59]line Аи-92-К-5 [10:15:59]line 7.480 * 66.90 [10:15:59]line = 500.41 [10:15:59]line НДС 12% НСП 1% [10:15:59]line > о реализуемом товаре [10:15:59]line ОКРУГЛЕНИЕ: -0.41 [10:15:59]line ИТОГО: 500.00 [10:15:59]line Внесено: 500.00 [10:15:59]line СДАЧА: 0.00 [10:15:59]line НСП 1% : 4.43 [10:15:59]line НДС 12% : 53.14 [10:15:59]line Наличными: 500.00 [10:15:59]line Безнал.: 0.00 [10:15:59]line Место: АЗС № 133 "Партнер Нефть" [10:15:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:15:59]line СНО: Общий режим [10:15:59]line Чек 74 20.10.2024 10:15 [10:15:59]line Смена: 170 ФФД: 1.0 [10:15:59]line ЗНМ: 0300000020 [10:15:59]line РНМ: 0000000000161154 [10:15:59]line Версия ККМ: v1.0 [10:15:59]line ФМ: 0000000000963323 [10:15:59]line ФД: 73748 [10:15:59]line ФПД: 102945175228996 [10:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101558&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73748&fm=102945175228996&tin=02508201610067®Number=0000000000161154&sum=50000 [10:15:59]OFD Sender: Processing packet 73748 [packets to send 15, broken 14] [10:15:59]ProducePacketName [10:15:59]name=ofd_packets/00073748 [10:15:59]OFD Sender: To server: pG, [10:15:59]CommunicateWithHost lk.salyk.kg:30040 [10:15:59]ConnectInit lk.salyk.kg [10:15:59]written 0, free lines is 4095 [10:15:59]Connected sock=9 [10:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 2A C9 07 01 76 E4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 4A 00 00 00 F4 03 04 00 5E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 20 01 00 35 04 06 00 5D A0 CA 99 D2 44 0A 73 E1 81 17 67 23 27 [10:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D7 6D 47 00 73 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 39 36 33 33 32 33 10 04 04 00 14 20 01 00 F4 03 04 00 43 81 14 67 B6 04 01 00 00 E2 DA 7B 01 F5 B9 45 FE [10:15:59]CommunicateWithHost err = 0 [10:15:59]CheckOFDResponse [10:15:59]1017 (14) - 77093643461234 [10:15:59]1041 (16) - 0000000000963323 [10:15:59]1040 (4) - 73748 [10:15:59]1012 (4) - 20.10.2024 04:04 [10:15:59]1206 (1) - 0 [10:15:59]OFD Sender: Remove packet 73748 [10:15:59]ProducePacketName [10:15:59]name=ofd_packets/00073748 [10:15:59]NVStorageDeleteData [10:15:59]Write to MH i2c: 01 00 00 57 0D 64 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 57 0D 00 00 00 00 00 AA 0C 21 [10:15:59]RasterBufferAndPrint [10:15:59]line [10:15:59]line [10:15:59]line [10:15:59]line [10:15:59]line [10:15:59]written 0, free lines is 3246 [10:15:59]MH_Cut [10:15:59]Write to MH i2c: D1 01 00 5E 0D 01 3D [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: D1 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: D1 01 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: D1 01 00 5E 0D 00 3C [10:15:59]Write to MH i2c: 01 00 00 5F 0D 6C [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:16:00]OFD Sender: No OFD packet to send [10:16:00]*** Cut start [10:16:00]*** Partial cut [10:16:00]*** CUTSNS_PIN = 1 [10:16:00]*** CUTSNS_PIN = 0 [10:16:01]*** Brake cut motor [10:16:01]Read from MH i2c: 01 [10:16:01]MH_I2C_Read... [10:16:01]*** Stop cut motor [10:16:01]*** Cut end [10:16:01]Read from MH i2c: 01 07 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [10:16:01]process_action close_receipt done [10:16:01]requested_data is exist [10:16:01]produce_requested_data [10:16:01]requested_item fm.sn is exist - process it [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 11 00 00 [10:16:01]Write to MH i2c: E2 08 00 60 0D 80 11 00 00 00 00 00 00 E7 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 17 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 17 00 60 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 34 [10:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:16:01]wFMCommunicate OK [10:16:01]requested_item fd.num is exist - process it [10:16:01]SAM_PROTO_GetFieldsCounters [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 13 00 00 [10:16:01]Write to MH i2c: E2 08 00 61 0D 80 13 00 00 00 00 00 00 EA [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 62 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 62 00 61 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 20 01 00 0E 04 04 00 AA 00 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 BB [10:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 20 01 00 0E 04 04 00 AA 00 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 [10:16:01]wFMCommunicate OK [10:16:01]SAM_PROTO_GetFieldsCounters done [10:16:01]requested_item shift.num is exist - process it [10:16:01]requested_item shift.opened is exist - process it [10:16:01]req_shift_opened [10:16:01]FM_GetShiftState [10:16:01]SAM_PROTO_GetShiftState [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 13 01 00 [10:16:01]Write to MH i2c: E2 08 00 62 0D 80 13 01 00 00 00 00 00 EC [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 0E 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 0E 00 62 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 31 [10:16:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:16:01]wFMCommunicate OK [10:16:01]SAM_PROTO_GetShiftState done [10:16:01]FM_GetShiftState done [10:16:01]req_shift_opened done [10:16:01]requested_item shift.open_date is exist - process it [10:16:01]req_shift_open_date [10:16:01]req_shift_open_date done [10:16:01]produce_requested_data done [10:16:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73748,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:16:01]process_action_free close_receipt [10:16:01]json_value_free [10:16:01]json_value_free done [10:16:01]process_json_proto returns [10:16:01]Send response to host [10:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73748,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:16:01]free response buf [10:16:01]execute_script done [10:16:01]execute_script returns [10:16:01]free content buf [10:16:01]Sock 8.Close socket [10:16:01]Sock 8.Thread stoped [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:48]accept exits with 10 [10:16:48]New connection [10:16:48]New thread 3067432292 created [10:16:48]Thread 3067575652 joined [10:16:48]Waiting for new connection... [10:16:48] Sock 10.Parse request [10:16:48]Sock 10.Check first char [10:16:48]Sock 10.First char is OK [10:16:48]request: POST /json_proto HTTP/1.0 [10:16:48]Method: POST [10:16:48]URL: /json_proto [10:16:48]Method is POST - this is cgi request [10:16:48]url: /json_proto [10:16:48]query_string will be loaded in cgi processing [10:16:48]execute_cgi json_proto POST (null) [10:16:48]execute_cgi path=json_proto method=POST [10:16:48]POST find Content-Length [10:16:48]Host: 172.17.44.196:8080 [10:16:48]Content-Length: 678 [10:16:48]Content-Type: application/json [10:16:48] [10:16:48]POST finish read [10:16:48]Found Content-Length = 678 [10:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962804", "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" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:48]execute_script... [10:16: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 : (1)1962804", "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" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:48]POST & json_proto [10:16:48]process_json_proto [10:16:48]json parsed OK: [10:16:48]protocol is kg_v1.0 [10:16:48]action value=close_receipt [10:16:48]process_action close_receipt [10:16:48]cmd_close_receipt [10:16:48]MH_GetDate [10:16:48]Write to MH i2c: F0 00 00 63 0D 5F [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: F0 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: F0 09 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: F0 09 00 63 0D 00 91 D8 14 67 E7 19 F8 65 A9 [10:16:48]GetLastDocTimeStamp 1729419358 [10:16:48]current date 1729419409 [10:16:48]FM_GetShiftState [10:16:48]SAM_PROTO_GetShiftState [10:16:48]wFMCommunicate request_size=4 [10:16:48]MH_SAM_APDU [10:16:48]CAPDU: 80 13 01 00 [10:16:48]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:48]Read from MH i2c: E2 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 0E 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 33 [10:16:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:16:48]wFMCommunicate OK [10:16:48]SAM_PROTO_GetShiftState done [10:16:48]FM_GetShiftState done [10:16:48]opened in 1729384303 [10:16:48]opened+sec_in_day 1729470703 [10:16:48]quantity*price = 10035 [10:16:48]sum+1 = 10036 [10:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 75 20.10.2024 10:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73749 ФПД: 8986616776024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101649&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73749&fm=8986616776024&tin=02508201610067®Number=0000000000161154&sum=10000 [10:16:49]StoreToDocumentArchive [10:16:49]shift 170 fd 73749 [10:16:49]save to /storage/0170/doc_00073749 [10:16:49]save last doc name /storage/0170/doc_00073749 to /storage/kkm_last_doc_name [10:16:49]save OK [10:16:49]Clear old archive folders... [10:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:49]tlvbuf is 002F4B30 [10:16:49]SAM_PROTO_ClearQueue [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 09 00 00 [10:16:49]Write to MH i2c: E2 08 00 71 0D 80 09 00 00 00 00 00 00 F0 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_ClearQueue done [10:16:49]KKMCreateOFDPacket [10:16:49]OFDProtocolAddRootSTLVToBuf [10:16:49]FM_MakeSignedData [10:16:49]FM_MakeSignedData [10:16:49]SAM_PROTO_SignData [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 01 02 [10:16:49]Write to MH i2c: E2 08 00 72 0D 80 0D 01 02 00 00 00 00 F8 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 72 0D 00 90 00 F3 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=255 [10:16:49]MH_SAM_APDU [10:16:49]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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 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 91 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 20 01 00 35 04 06 00 08 [10:16:49]Write to MH i2c: E2 02 01 73 0D 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 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 91 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 20 01 00 35 04 06 00 08 00 00 78 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=10 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 02 02 05 2C 5C 19 C5 58 [10:16:49]Write to MH i2c: E2 0D 00 74 0D 80 0D 02 02 05 00 2C 5C 19 C5 58 00 00 C3 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 03 02 [10:16:49]Write to MH i2c: E2 08 00 75 0D 80 0D 03 02 00 00 00 00 FD [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0B 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0B 00 75 0D 00 C6 EA F8 8D 7D 28 AA 14 90 00 96 [10:16:49]RAPDU: C6 EA F8 8D 7D 28 AA 14 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_SignData done [10:16:49]FM_MakeSignedData done [10:16:49]CreateOFDProtocolMessage [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 11 00 00 [10:16:49]Write to MH i2c: E2 08 00 76 0D 80 11 00 00 00 00 00 00 FD [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:50]Read from MH i2c: E2 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: E2 17 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: E2 17 00 76 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4A [10:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:16:50]wFMCommunicate OK [10:16:50]CreateOFDProtocolMessage done [10:16:50]OFDSenderStorePacket 73749 [10:16:50]StoreOFDPacket docnum=73749 [10:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 02 4E 07 01 A8 E5 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 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 91 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 20 01 00 35 04 06 00 08 2C 5C 19 C5 58 C6 EA F8 8D 7D 28 AA 14 [10:16:50]CheckFolder [10:16:50]dirname=/storage/ofd_packets [10:16:50]CheckFolder done [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00073749 [10:16:50]NVStorageSaveData ofd_packets/00073749 [10:16:50]File name is /storage/ofd_packets/00073749 [10:16:50]Write 301 bytes [10:16:50]NVStorageSaveData done [10:16:50]OFDSenderStorePacket done [10:16:50]KKMCreateOFDPacket done [10:16:50]NVStorageSaveData kkm_last_timestamp [10:16:50]File name is /storage/kkm_last_timestamp [10:16:50]Write 4 bytes [10:16:50]NVStorageSaveData done [10:16:50]ExternCall_PrintAddStr [10:16:50]wPrintStart [10:16:50]Write to MH i2c: 01 00 00 77 0D 84 [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 FF 0F 99 [10:16:50]RasterBufferAndPrint [10:16:50]line Счет N : (1)1962804 [10:16:50]line ИНН: 02508201610067 [10:16:50]line Контрольно-Кассовый Чек [10:16:50]line ПРОДАЖА [10:16:50]line ТРК (МРК, ГНК) : 33 [10:16:50]line Товар: 2710124130 [10:16:50]line Аи-92-К-5 [10:16:50]line 1.500 * 66.90 [10:16:50]line = 100.35 [10:16:50]line НДС 12% НСП 1% [10:16:50]line > о реализуемом товаре [10:16:50]line ОКРУГЛЕНИЕ: -0.35 [10:16:50]line ИТОГО: 100.00 [10:16:50]line Внесено: 100.00 [10:16:50]line СДАЧА: 0.00 [10:16:50]line НСП 1% : 0.89 [10:16:50]line НДС 12% : 10.66 [10:16:50]line Наличными: 100.00 [10:16:50]line Безнал.: 0.00 [10:16:50]line Место: АЗС № 133 "Партнер Нефть" [10:16:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:16:50]line СНО: Общий режим [10:16:50]line Чек 75 20.10.2024 10:16 [10:16:50]line Смена: 170 ФФД: 1.0 [10:16:50]line ЗНМ: 0300000020 [10:16:50]line РНМ: 0000000000161154 [10:16:50]line Версия ККМ: v1.0 [10:16:50]line ФМ: 0000000000963323 [10:16:50]line ФД: 73749 [10:16:50]line ФПД: 8986616776024 [10:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101649&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73749&fm=8986616776024&tin=02508201610067®Number=0000000000161154&sum=10000 [10:16:50]OFD Sender: Processing packet 73749 [packets to send 15, broken 14] [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00073749 [10:16:50]OFD Sender: To server: pG, [10:16:50]CommunicateWithHost lk.salyk.kg:30040 [10:16:50]ConnectInit lk.salyk.kg [10:16:50]written 0, free lines is 4095 [10:16:50]Connected sock=11 [10:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 02 4E 07 01 A8 E5 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 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 91 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 20 01 00 35 04 06 00 08 2C 5C 19 C5 58 C6 EA F8 8D 7D 28 AA 14 [10:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 96 31 47 00 CE F9 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 39 36 33 33 32 33 10 04 04 00 15 20 01 00 F4 03 04 00 76 81 14 67 B6 04 01 00 00 0A F9 77 A9 5F 01 79 16 [10:16:50]CommunicateWithHost err = 0 [10:16:50]CheckOFDResponse [10:16:50]1017 (14) - 77093643461234 [10:16:50]1041 (16) - 0000000000963323 [10:16:50]1040 (4) - 73749 [10:16:50]1012 (4) - 20.10.2024 04:05 [10:16:50]1206 (1) - 0 [10:16:50]OFD Sender: Remove packet 73749 [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00073749 [10:16:50]NVStorageDeleteData [10:16:50]Write to MH i2c: 01 00 00 A1 0D AE [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 A1 0D 00 00 00 00 00 AD 0C 6E [10:16:50]RasterBufferAndPrint [10:16:50]line [10:16:50]line [10:16:50]line [10:16:50]line [10:16:50]line [10:16:50]written 0, free lines is 3248 [10:16:50]MH_Cut [10:16:50]Write to MH i2c: D1 01 00 A8 0D 01 87 [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: D1 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: D1 01 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: D1 01 00 A8 0D 00 86 [10:16:50]Write to MH i2c: 01 00 00 A9 0D B6 [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:51]OFD Sender: No OFD packet to send [10:16:51]*** Cut start [10:16:51]*** Partial cut [10:16:51]*** CUTSNS_PIN = 1 [10:16:51]*** CUTSNS_PIN = 0 [10:16:51]*** Brake cut motor [10:16:52]Read from MH i2c: 01 [10:16:52]MH_I2C_Read... [10:16:52]*** Stop cut motor [10:16:52]*** Cut end [10:16:52]Read from MH i2c: 01 07 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: 01 07 00 A9 0D 00 00 00 00 00 FF 0F CB [10:16:52]process_action close_receipt done [10:16:52]requested_data is exist [10:16:52]produce_requested_data [10:16:52]requested_item fm.sn is exist - process it [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 11 00 00 [10:16:52]Write to MH i2c: E2 08 00 AA 0D 80 11 00 00 00 00 00 00 31 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 17 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 17 00 AA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7E [10:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:16:52]wFMCommunicate OK [10:16:52]requested_item fd.num is exist - process it [10:16:52]SAM_PROTO_GetFieldsCounters [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 13 00 00 [10:16:52]Write to MH i2c: E2 08 00 AB 0D 80 13 00 00 00 00 00 00 34 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 62 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 62 00 AB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 20 01 00 0E 04 04 00 AA 00 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 09 [10:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 20 01 00 0E 04 04 00 AA 00 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 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_GetFieldsCounters done [10:16:52]requested_item shift.num is exist - process it [10:16:52]requested_item shift.opened is exist - process it [10:16:52]req_shift_opened [10:16:52]FM_GetShiftState [10:16:52]SAM_PROTO_GetShiftState [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 13 01 00 [10:16:52]Write to MH i2c: E2 08 00 AC 0D 80 13 01 00 00 00 00 00 36 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0E 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0E 00 AC 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7B [10:16:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_GetShiftState done [10:16:52]FM_GetShiftState done [10:16:52]req_shift_opened done [10:16:52]requested_item shift.open_date is exist - process it [10:16:52]req_shift_open_date [10:16:52]req_shift_open_date done [10:16:52]produce_requested_data done [10:16:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73749,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:16:52]process_action_free close_receipt [10:16:52]json_value_free [10:16:52]json_value_free done [10:16:52]process_json_proto returns [10:16:52]Send response to host [10:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73749,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:16:52]free response buf [10:16:52]execute_script done [10:16:52]execute_script returns [10:16:52]free content buf [10:16:52]Sock 10.Close socket [10:16:52]Sock 10.Thread stoped [10:16:56]OFD Sender: No OFD packet to send [10:17:00]accept exits with 8 [10:17:00]New connection [10:17:00]New thread 3067575652 created [10:17:00]Thread 3067432292 joined [10:17:00]Waiting for new connection... [10:17:00] Sock 8.Parse request [10:17:00]Sock 8.Check first char [10:17:00]Sock 8.First char is OK [10:17:00]request: POST /json_proto HTTP/1.0 [10:17:00]Method: POST [10:17:00]URL: /json_proto [10:17:00]Method is POST - this is cgi request [10:17:00]url: /json_proto [10:17:00]query_string will be loaded in cgi processing [10:17:00]execute_cgi json_proto POST (null) [10:17:00]execute_cgi path=json_proto method=POST [10:17:00]POST find Content-Length [10:17:00]Host: 172.17.44.196:8080 [10:17:00]Content-Length: 680 [10:17:00]Content-Type: application/json [10:17:00] [10:17:00]POST finish read [10:17:00]Found Content-Length = 680 [10:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:17:00]execute_script... [10: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 : (1)1962797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:17:00]POST & json_proto [10:17:00]process_json_proto [10:17:00]json parsed OK: [10:17:00]protocol is kg_v1.0 [10:17:00]action value=close_receipt [10:17:00]process_action close_receipt [10:17:00]cmd_close_receipt [10:17:00]MH_GetDate [10:17:00]Write to MH i2c: F0 00 00 AD 0D A9 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: F0 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: F0 09 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: F0 09 00 AD 0D 00 9D D8 14 67 E7 19 F8 65 FF [10:17:00]GetLastDocTimeStamp 1729419409 [10:17:00]current date 1729419421 [10:17:00]FM_GetShiftState [10:17:00]SAM_PROTO_GetShiftState [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 13 01 00 [10:17:00]Write to MH i2c: E2 08 00 AE 0D 80 13 01 00 00 00 00 00 38 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 0E 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 0E 00 AE 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7D [10:17:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:17:00]wFMCommunicate OK [10:17:00]SAM_PROTO_GetShiftState done [10:17:00]FM_GetShiftState done [10:17:00]opened in 1729384303 [10:17:00]opened+sec_in_day 1729470703 [10:17:00]quantity*price = 100050 [10:17:00]sum+1 = 100052 [10:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 76 20.10.2024 10:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73750 ФПД: 13793880538073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101702&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73750&fm=13793880538073&tin=02508201610067®Number=0000000000161154&sum=100000 [10:17:02]StoreToDocumentArchive [10:17:02]shift 170 fd 73750 [10:17:02]save to /storage/0170/doc_00073750 [10:17:02]save last doc name /storage/0170/doc_00073750 to /storage/kkm_last_doc_name [10:17:02]save OK [10:17:02]Clear old archive folders... [10:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:02]tlvbuf is 002F3BC0 [10:17:02]SAM_PROTO_ClearQueue [10:17:02]wFMCommunicate request_size=4 [10:17:02]MH_SAM_APDU [10:17:02]CAPDU: 80 09 00 00 [10:17:02]Write to MH i2c: E2 08 00 BB 0D 80 09 00 00 00 00 00 00 3A [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:02]Read from MH i2c: E2 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [10:17:02]RAPDU: 90 00 [10:17:02]wFMCommunicate OK [10:17:02]SAM_PROTO_ClearQueue done [10:17:02]KKMCreateOFDPacket [10:17:02]OFDProtocolAddRootSTLVToBuf [10:17:02]FM_MakeSignedData [10:17:02]FM_MakeSignedData [10:17:02]SAM_PROTO_SignData [10:17:02]wFMCommunicate request_size=4 [10:17:02]MH_SAM_APDU [10:17:02]CAPDU: 80 0D 01 02 [10:17:02]Write to MH i2c: E2 08 00 BC 0D 80 0D 01 02 00 00 00 00 42 [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:02]Read from MH i2c: E2 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 BC 0D 00 90 00 3D [10:17:02]RAPDU: 90 00 [10:17:02]wFMCommunicate OK [10:17:02]wFMCommunicate request_size=255 [10:17:02]MH_SAM_APDU [10:17:02]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 4C 00 00 00 F4 03 04 00 9E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 20 01 00 35 04 06 00 0C 8B A3 59 [10:17:02]Write to MH i2c: E2 02 01 BD 0D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 4C 00 00 00 F4 03 04 00 9E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 20 01 00 35 04 06 00 0C 8B A3 59 00 00 6B [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:02]Read from MH i2c: E2 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 BD 0D 00 90 00 3E [10:17:02]RAPDU: 90 00 [10:17:02]wFMCommunicate OK [10:17:02]wFMCommunicate request_size=7 [10:17:02]MH_SAM_APDU [10:17:02]CAPDU: 80 0D 02 02 02 7B D9 [10:17:02]Write to MH i2c: E2 0A 00 BE 0D 80 0D 02 02 02 00 7B D9 00 00 9D [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:02]Read from MH i2c: E2 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [10:17:02]RAPDU: 90 00 [10:17:02]wFMCommunicate OK [10:17:02]wFMCommunicate request_size=4 [10:17:02]MH_SAM_APDU [10:17:02]CAPDU: 80 0D 03 02 [10:17:02]Write to MH i2c: E2 08 00 BF 0D 80 0D 03 02 00 00 00 00 47 [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:02]Read from MH i2c: E2 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 0B 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 0B 00 BF 0D 00 DD EC 6F DE E1 0A C0 79 90 00 82 [10:17:02]RAPDU: DD EC 6F DE E1 0A C0 79 90 00 [10:17:02]wFMCommunicate OK [10:17:02]SAM_PROTO_SignData done [10:17:02]FM_MakeSignedData done [10:17:02]CreateOFDProtocolMessage [10:17:02]wFMCommunicate request_size=4 [10:17:02]MH_SAM_APDU [10:17:02]CAPDU: 80 11 00 00 [10:17:02]Write to MH i2c: E2 08 00 C0 0D 80 11 00 00 00 00 00 00 47 [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:02]Read from MH i2c: E2 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 17 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: E2 17 00 C0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 94 [10:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:17:02]wFMCommunicate OK [10:17:02]CreateOFDProtocolMessage done [10:17:02]OFDSenderStorePacket 73750 [10:17:02]StoreOFDPacket docnum=73750 [10:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 EE 19 04 01 A2 D8 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 4C 00 00 00 F4 03 04 00 9E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 20 01 00 35 04 06 00 0C 8B A3 59 7B D9 DD EC 6F DE E1 0A C0 79 [10:17:02]CheckFolder [10:17:02]dirname=/storage/ofd_packets [10:17:02]CheckFolder done [10:17:02]ProducePacketName [10:17:02]name=ofd_packets/00073750 [10:17:02]NVStorageSaveData ofd_packets/00073750 [10:17:02]File name is /storage/ofd_packets/00073750 [10:17:02]Write 298 bytes [10:17:02]NVStorageSaveData done [10:17:02]OFDSenderStorePacket done [10:17:02]KKMCreateOFDPacket done [10:17:02]NVStorageSaveData kkm_last_timestamp [10:17:02]File name is /storage/kkm_last_timestamp [10:17:02]Write 4 bytes [10:17:02]NVStorageSaveData done [10:17:02]ExternCall_PrintAddStr [10:17:02]wPrintStart [10:17:02]Write to MH i2c: 01 00 00 C1 0D CE [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: 01 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: 01 07 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: 01 07 00 C1 0D 00 00 00 00 00 FF 0F E3 [10:17:02]RasterBufferAndPrint [10:17:02]line Счет N : (1)1962797 [10:17:02]line ИНН: 02508201610067 [10:17:02]line Контрольно-Кассовый Чек [10:17:02]line ПРОДАЖА [10:17:02]line ТРК (МРК, ГНК) : 11 [10:17:02]line Товар: 2710194210 [10:17:02]line ДТ-К-5 [10:17:02]line 13.130 * 76.20 [10:17:02]line = 1000.51 [10:17:02]line НДС 12% НСП 1% [10:17:02]line > о реализуемом товаре [10:17:02]line ОКРУГЛЕНИЕ: -0.51 [10:17:02]line ИТОГО: 1000.00 [10:17:02]line Внесено: 1000.00 [10:17:02]line СДАЧА: 0.00 [10:17:02]line НСП 1% : 8.85 [10:17:02]line НДС 12% : 106.25 [10:17:02]line Наличными: 1000.00 [10:17:02]line Безнал.: 0.00 [10:17:02]line Место: АЗС № 133 "Партнер Нефть" [10:17:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:17:02]line СНО: Общий режим [10:17:02]line Чек 76 20.10.2024 10:17 [10:17:02]line Смена: 170 ФФД: 1.0 [10:17:02]line ЗНМ: 0300000020 [10:17:02]line РНМ: 0000000000161154 [10:17:02]line Версия ККМ: v1.0 [10:17:02]line ФМ: 0000000000963323 [10:17:02]line ФД: 73750 [10:17:02]line ФПД: 13793880538073 [10:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101702&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73750&fm=13793880538073&tin=02508201610067®Number=0000000000161154&sum=100000 [10:17:02]OFD Sender: Processing packet 73750 [packets to send 15, broken 14] [10:17:02]ProducePacketName [10:17:02]name=ofd_packets/00073750 [10:17:02]OFD Sender: To server: pG, [10:17:02]CommunicateWithHost lk.salyk.kg:30040 [10:17:02]ConnectInit lk.salyk.kg [10:17:02]written 0, free lines is 4095 [10:17:03]Connected sock=9 [10:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 EE 19 04 01 A2 D8 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 4C 00 00 00 F4 03 04 00 9E D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 20 01 00 35 04 06 00 0C 8B A3 59 7B D9 DD EC 6F DE E1 0A C0 79 [10:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 55 52 47 00 7B 4A 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 39 36 33 33 32 33 10 04 04 00 16 20 01 00 F4 03 04 00 83 81 14 67 B6 04 01 00 00 D5 7A 99 D0 62 6D 90 A3 [10:17:03]CommunicateWithHost err = 0 [10:17:03]CheckOFDResponse [10:17:03]1017 (14) - 77093643461234 [10:17:03]1041 (16) - 0000000000963323 [10:17:03]1040 (4) - 73750 [10:17:03]1012 (4) - 20.10.2024 04:05 [10:17:03]1206 (1) - 0 [10:17:03]OFD Sender: Remove packet 73750 [10:17:03]ProducePacketName [10:17:03]name=ofd_packets/00073750 [10:17:03]NVStorageDeleteData [10:17:03]Write to MH i2c: 01 00 00 EB 0D F8 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: 01 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: 01 07 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 AE 0C B9 [10:17:03]RasterBufferAndPrint [10:17:03]line [10:17:03]line [10:17:03]line [10:17:03]line [10:17:03]line [10:17:03]written 0, free lines is 3251 [10:17:03]MH_Cut [10:17:03]Write to MH i2c: D1 01 00 F2 0D 01 D1 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: D1 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: D1 01 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: D1 01 00 F2 0D 00 D0 [10:17:03]Write to MH i2c: 01 00 00 F3 0D 00 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]OFD Sender: No OFD packet to send [10:17:04]*** Cut start [10:17:04]*** Partial cut [10:17:04]*** CUTSNS_PIN = 1 [10:17:04]*** CUTSNS_PIN = 0 [10:17:04]*** Brake cut motor [10:17:04]Read from MH i2c: 01 [10:17:04]MH_I2C_Read... [10:17:04]*** Stop cut motor [10:17:04]*** Cut end [10:17:04]Read from MH i2c: 01 07 00 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: 01 07 00 F3 0D 00 00 00 00 00 FF 0F 15 [10:17:04]process_action close_receipt done [10:17:04]requested_data is exist [10:17:04]produce_requested_data [10:17:04]requested_item fm.sn is exist - process it [10:17:04]wFMCommunicate request_size=4 [10:17:04]MH_SAM_APDU [10:17:04]CAPDU: 80 11 00 00 [10:17:04]Write to MH i2c: E2 08 00 F4 0D 80 11 00 00 00 00 00 00 7B [10:17:04]Write i2c OK [10:17:04]MH_I2C_Read... [10:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:04]Read from MH i2c: E2 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: E2 17 00 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: E2 17 00 F4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [10:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:17:04]wFMCommunicate OK [10:17:04]requested_item fd.num is exist - process it [10:17:04]SAM_PROTO_GetFieldsCounters [10:17:04]wFMCommunicate request_size=4 [10:17:04]MH_SAM_APDU [10:17:04]CAPDU: 80 13 00 00 [10:17:04]Write to MH i2c: E2 08 00 F5 0D 80 13 00 00 00 00 00 00 7E [10:17:04]Write i2c OK [10:17:04]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 62 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 62 00 F5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 20 01 00 0E 04 04 00 AA 00 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 57 [10:17:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 20 01 00 0E 04 04 00 AA 00 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 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_GetFieldsCounters done [10:17:05]requested_item shift.num is exist - process it [10:17:05]requested_item shift.opened is exist - process it [10:17:05]req_shift_opened [10:17:05]FM_GetShiftState [10:17:05]SAM_PROTO_GetShiftState [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 13 01 00 [10:17:05]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0E 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C5 [10:17:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_GetShiftState done [10:17:05]FM_GetShiftState done [10:17:05]req_shift_opened done [10:17:05]requested_item shift.open_date is exist - process it [10:17:05]req_shift_open_date [10:17:05]req_shift_open_date done [10:17:05]produce_requested_data done [10:17:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73750,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:17:05]process_action_free close_receipt [10:17:05]json_value_free [10:17:05]json_value_free done [10:17:05]process_json_proto returns [10:17:05]Send response to host [10:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73750,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:17:05]free response buf [10:17:05]execute_script done [10:17:05]execute_script returns [10:17:05]free content buf [10:17:05]Sock 8.Close socket [10:17:05]Sock 8.Thread stoped [10:17:06]accept exits with 10 [10:17:06]New connection [10:17:06]New thread 3067432292 created [10:17:06]Thread 3067575652 joined [10:17:06]Waiting for new connection... [10:17:06] Sock 10.Parse request [10:17:06]Sock 10.Check first char [10:17:06]Sock 10.First char is OK [10:17:06]request: POST /json_proto HTTP/1.0 [10:17:06]Method: POST [10:17:06]URL: /json_proto [10:17:06]Method is POST - this is cgi request [10:17:06]url: /json_proto [10:17:06]query_string will be loaded in cgi processing [10:17:06]execute_cgi json_proto POST (null) [10:17:06]execute_cgi path=json_proto method=POST [10:17:06]POST find Content-Length [10:17:06]Host: 172.17.44.196:8080 [10:17:06]Content-Length: 680 [10:17:06]Content-Type: application/json [10:17:06] [10:17:06]POST finish read [10:17:06]Found Content-Length = 680 [10:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [10:17:06]execute_script... [10:17: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 : (1)1962801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [10:17:06]POST & json_proto [10:17:06]process_json_proto [10:17:06]json parsed OK: [10:17:06]protocol is kg_v1.0 [10:17:06]action value=close_receipt [10:17:06]process_action close_receipt [10:17:06]cmd_close_receipt [10:17:06]MH_GetDate [10:17:06]Write to MH i2c: F0 00 00 F7 0D F3 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: F0 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: F0 09 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: F0 09 00 F7 0D 00 A3 D8 14 67 E7 19 F8 65 4F [10:17:06]GetLastDocTimeStamp 1729419422 [10:17:06]current date 1729419427 [10:17:06]FM_GetShiftState [10:17:06]SAM_PROTO_GetShiftState [10:17:06]wFMCommunicate request_size=4 [10:17:06]MH_SAM_APDU [10:17:06]CAPDU: 80 13 01 00 [10:17:06]Write to MH i2c: E2 08 00 F8 0D 80 13 01 00 00 00 00 00 82 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:06]Read from MH i2c: E2 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 0E 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 0E 00 F8 0D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C7 [10:17:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:17:06]wFMCommunicate OK [10:17:06]SAM_PROTO_GetShiftState done [10:17:06]FM_GetShiftState done [10:17:06]opened in 1729384303 [10:17:06]opened+sec_in_day 1729470703 [10:17:06]quantity*price = 150037 [10:17:06]sum+1 = 150039 [10:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 77 20.10.2024 10:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73751 ФПД: 157267030942729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101707&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73751&fm=157267030942729&tin=02508201610067®Number=0000000000161154&sum=150000 [10:17:08]StoreToDocumentArchive [10:17:08]shift 170 fd 73751 [10:17:08]save to /storage/0170/doc_00073751 [10:17:08]save last doc name /storage/0170/doc_00073751 to /storage/kkm_last_doc_name [10:17:08]save OK [10:17:08]Clear old archive folders... [10:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:08]tlvbuf is 00361090 [10:17:08]SAM_PROTO_ClearQueue [10:17:08]wFMCommunicate request_size=4 [10:17:08]MH_SAM_APDU [10:17:08]CAPDU: 80 09 00 00 [10:17:08]Write to MH i2c: E2 08 00 05 0E 80 09 00 00 00 00 00 00 85 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [10:17:08]RAPDU: 90 00 [10:17:08]wFMCommunicate OK [10:17:08]SAM_PROTO_ClearQueue done [10:17:08]KKMCreateOFDPacket [10:17:08]OFDProtocolAddRootSTLVToBuf [10:17:08]FM_MakeSignedData [10:17:08]FM_MakeSignedData [10:17:08]SAM_PROTO_SignData [10:17:08]wFMCommunicate request_size=4 [10:17:08]MH_SAM_APDU [10:17:08]CAPDU: 80 0D 01 02 [10:17:08]Write to MH i2c: E2 08 00 06 0E 80 0D 01 02 00 00 00 00 8D [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [10:17:08]RAPDU: 90 00 [10:17:08]wFMCommunicate OK [10:17:08]wFMCommunicate request_size=255 [10:17:08]MH_SAM_APDU [10:17:08]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 4D 00 00 00 F4 03 04 00 A3 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 20 01 00 35 04 06 00 8F 08 95 83 [10:17:08]Write to MH i2c: E2 02 01 07 0E 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 4D 00 00 00 F4 03 04 00 A3 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 20 01 00 35 04 06 00 8F 08 95 83 00 00 50 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [10:17:08]RAPDU: 90 00 [10:17:08]wFMCommunicate OK [10:17:08]wFMCommunicate request_size=7 [10:17:08]MH_SAM_APDU [10:17:08]CAPDU: 80 0D 02 02 02 A4 09 [10:17:08]Write to MH i2c: E2 0A 00 08 0E 80 0D 02 02 02 00 A4 09 00 00 41 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [10:17:08]RAPDU: 90 00 [10:17:08]wFMCommunicate OK [10:17:08]wFMCommunicate request_size=4 [10:17:08]MH_SAM_APDU [10:17:08]CAPDU: 80 0D 03 02 [10:17:08]Write to MH i2c: E2 08 00 09 0E 80 0D 03 02 00 00 00 00 92 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 0B 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 0B 00 09 0E 00 8B 02 23 A4 59 4D F3 0C 90 00 8C [10:17:08]RAPDU: 8B 02 23 A4 59 4D F3 0C 90 00 [10:17:08]wFMCommunicate OK [10:17:08]SAM_PROTO_SignData done [10:17:08]FM_MakeSignedData done [10:17:08]CreateOFDProtocolMessage [10:17:08]wFMCommunicate request_size=4 [10:17:08]MH_SAM_APDU [10:17:08]CAPDU: 80 11 00 00 [10:17:08]Write to MH i2c: E2 08 00 0A 0E 80 11 00 00 00 00 00 00 92 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:08]Read from MH i2c: E2 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 17 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: E2 17 00 0A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DF [10:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:17:08]wFMCommunicate OK [10:17:08]CreateOFDProtocolMessage done [10:17:08]OFDSenderStorePacket 73751 [10:17:08]StoreOFDPacket docnum=73751 [10:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 73 65 04 01 B2 26 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 4D 00 00 00 F4 03 04 00 A3 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 20 01 00 35 04 06 00 8F 08 95 83 A4 09 8B 02 23 A4 59 4D F3 0C [10:17:08]CheckFolder [10:17:08]dirname=/storage/ofd_packets [10:17:08]CheckFolder done [10:17:08]ProducePacketName [10:17:08]name=ofd_packets/00073751 [10:17:08]NVStorageSaveData ofd_packets/00073751 [10:17:08]File name is /storage/ofd_packets/00073751 [10:17:08]Write 298 bytes [10:17:08]NVStorageSaveData done [10:17:08]OFDSenderStorePacket done [10:17:08]KKMCreateOFDPacket done [10:17:08]NVStorageSaveData kkm_last_timestamp [10:17:08]File name is /storage/kkm_last_timestamp [10:17:08]Write 4 bytes [10:17:08]NVStorageSaveData done [10:17:08]ExternCall_PrintAddStr [10:17:08]wPrintStart [10:17:08]Write to MH i2c: 01 00 00 0B 0E 19 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 0B 0E 00 00 00 00 00 FF 0F 2E [10:17:08]RasterBufferAndPrint [10:17:08]line Счет N : (1)1962801 [10:17:08]line ИНН: 02508201610067 [10:17:08]line Контрольно-Кассовый Чек [10:17:08]line ПРОДАЖА [10:17:08]line ТРК (МРК, ГНК) : 41 [10:17:08]line Товар: 2710194210 [10:17:08]line ДТ-К-5 [10:17:08]line 19.690 * 76.20 [10:17:08]line = 1500.38 [10:17:08]line НДС 12% НСП 1% [10:17:08]line > о реализуемом товаре [10:17:08]line ОКРУГЛЕНИЕ: -0.38 [10:17:08]line ИТОГО: 1500.00 [10:17:08]line Внесено: 1500.00 [10:17:08]line СДАЧА: 0.00 [10:17:08]line НСП 1% : 13.28 [10:17:08]line НДС 12% : 159.33 [10:17:08]line Наличными: 1500.00 [10:17:08]line Безнал.: 0.00 [10:17:08]line Место: АЗС № 133 "Партнер Нефть" [10:17:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:17:08]line СНО: Общий режим [10:17:08]line Чек 77 20.10.2024 10:17 [10:17:08]line Смена: 170 ФФД: 1.0 [10:17:08]line ЗНМ: 0300000020 [10:17:08]line РНМ: 0000000000161154 [10:17:08]line Версия ККМ: v1.0 [10:17:08]line ФМ: 0000000000963323 [10:17:08]line ФД: 73751 [10:17:08]line ФПД: 157267030942729 [10:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101707&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73751&fm=157267030942729&tin=02508201610067®Number=0000000000161154&sum=150000 [10:17:08]written 0, free lines is 4095 [10:17:08]OFD Sender: Processing packet 73751 [packets to send 15, broken 14] [10:17:08]ProducePacketName [10:17:08]name=ofd_packets/00073751 [10:17:08]OFD Sender: To server: pG, [10:17:08]CommunicateWithHost lk.salyk.kg:30040 [10:17:08]ConnectInit lk.salyk.kg [10:17:08]Connected sock=9 [10:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 73 65 04 01 B2 26 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 4D 00 00 00 F4 03 04 00 A3 D8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 20 01 00 35 04 06 00 8F 08 95 83 A4 09 8B 02 23 A4 59 4D F3 0C [10:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 73 53 47 00 8F 18 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 39 36 33 33 32 33 10 04 04 00 17 20 01 00 F4 03 04 00 88 81 14 67 B6 04 01 00 00 6D C0 D8 63 A9 8B D2 D7 [10:17:09]CommunicateWithHost err = 0 [10:17:09]CheckOFDResponse [10:17:09]1017 (14) - 77093643461234 [10:17:09]1041 (16) - 0000000000963323 [10:17:09]1040 (4) - 73751 [10:17:09]1012 (4) - 20.10.2024 04:05 [10:17:09]1206 (1) - 0 [10:17:09]OFD Sender: Remove packet 73751 [10:17:09]ProducePacketName [10:17:09]name=ofd_packets/00073751 [10:17:09]NVStorageDeleteData [10:17:09]Write to MH i2c: 01 00 00 35 0E 43 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 07 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 07 00 35 0E 00 00 00 00 00 D7 0C 2D [10:17:09]RasterBufferAndPrint [10:17:09]line [10:17:09]line [10:17:09]line [10:17:09]line [10:17:09]line [10:17:09]written 0, free lines is 3299 [10:17:09]MH_Cut [10:17:09]Write to MH i2c: D1 01 00 3C 0E 01 1C [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: D1 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: D1 01 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: D1 01 00 3C 0E 00 1B [10:17:09]Write to MH i2c: 01 00 00 3D 0E 4B [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]OFD Sender: No OFD packet to send [10:17:09]*** Cut start [10:17:09]*** Partial cut [10:17:09]*** CUTSNS_PIN = 1 [10:17:10]*** CUTSNS_PIN = 0 [10:17:10]*** Brake cut motor [10:17:10]Read from MH i2c: 01 [10:17:10]MH_I2C_Read... [10:17:10]*** Stop cut motor [10:17:10]*** Cut end [10:17:10]Read from MH i2c: 01 07 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 3D 0E 00 00 00 00 00 FF 0F 60 [10:17:10]process_action close_receipt done [10:17:10]requested_data is exist [10:17:10]produce_requested_data [10:17:10]requested_item fm.sn is exist - process it [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 11 00 00 [10:17:10]Write to MH i2c: E2 08 00 3E 0E 80 11 00 00 00 00 00 00 C6 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 3E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 13 [10:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:17:10]wFMCommunicate OK [10:17:10]requested_item fd.num is exist - process it [10:17:10]SAM_PROTO_GetFieldsCounters [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 13 00 00 [10:17:10]Write to MH i2c: E2 08 00 3F 0E 80 13 00 00 00 00 00 00 C9 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 62 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 62 00 3F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 20 01 00 0E 04 04 00 AA 00 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 A6 [10:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 20 01 00 0E 04 04 00 AA 00 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 [10:17:10]wFMCommunicate OK [10:17:10]SAM_PROTO_GetFieldsCounters done [10:17:10]requested_item shift.num is exist - process it [10:17:10]requested_item shift.opened is exist - process it [10:17:10]req_shift_opened [10:17:10]FM_GetShiftState [10:17:10]SAM_PROTO_GetShiftState [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 13 01 00 [10:17:10]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 0E 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 10 [10:17:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:17:10]wFMCommunicate OK [10:17:10]SAM_PROTO_GetShiftState done [10:17:10]FM_GetShiftState done [10:17:10]req_shift_opened done [10:17:10]requested_item shift.open_date is exist - process it [10:17:10]req_shift_open_date [10:17:10]req_shift_open_date done [10:17:10]produce_requested_data done [10:17:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73751,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:17:10]process_action_free close_receipt [10:17:10]json_value_free [10:17:10]json_value_free done [10:17:10]process_json_proto returns [10:17:10]Send response to host [10:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73751,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:17:10]free response buf [10:17:10]execute_script done [10:17:10]execute_script returns [10:17:10]free content buf [10:17:10]Sock 10.Close socket [10:17:10]Sock 10.Thread stoped [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:15]accept exits with 8 [10:19:15]New connection [10:19:15]New thread 3067575652 created [10:19:15]Thread 3067432292 joined [10:19:15]Waiting for new connection... [10:19:15] Sock 8.Parse request [10:19:15]Sock 8.Check first char [10:19:15]Sock 8.First char is OK [10:19:15]request: POST /json_proto HTTP/1.0 [10:19:15]Method: POST [10:19:15]URL: /json_proto [10:19:15]Method is POST - this is cgi request [10:19:15]url: /json_proto [10:19:15]query_string will be loaded in cgi processing [10:19:15]execute_cgi json_proto POST (null) [10:19:15]execute_cgi path=json_proto method=POST [10:19:15]POST find Content-Length [10:19:15]Host: 172.17.44.196:8080 [10:19:15]Content-Length: 650 [10:19:15]Content-Type: application/json [10:19:15] [10:19:15]POST finish read [10:19:15]Found Content-Length = 650 [10:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272757", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 3.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:15]execute_script... [10:19:15]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)272757", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 3.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:15]POST & json_proto [10:19:15]process_json_proto [10:19:15]json parsed OK: [10:19:15]protocol is kg_v1.0 [10:19:15]action value=close_receipt [10:19:15]process_action close_receipt [10:19:15]cmd_close_receipt [10:19:15]MH_GetDate [10:19:15]Write to MH i2c: F0 00 00 41 0E 3E [10:19:15]Write i2c OK [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: F0 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: F0 09 00 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: F0 09 00 41 0E 00 24 D9 14 67 E7 19 F8 65 1C [10:19:15]GetLastDocTimeStamp 1729419427 [10:19:15]current date 1729419556 [10:19:15]FM_GetShiftState [10:19:15]SAM_PROTO_GetShiftState [10:19:15]wFMCommunicate request_size=4 [10:19:15]MH_SAM_APDU [10:19:15]CAPDU: 80 13 01 00 [10:19:15]Write to MH i2c: E2 08 00 42 0E 80 13 01 00 00 00 00 00 CD [10:19:15]Write i2c OK [10:19:15]MH_I2C_Read... [10:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:15]Read from MH i2c: E2 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: E2 0E 00 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: E2 0E 00 42 0E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 12 [10:19:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:19:15]wFMCommunicate OK [10:19:15]SAM_PROTO_GetShiftState done [10:19:15]FM_GetShiftState done [10:19:15]opened in 1729384303 [10:19:15]opened+sec_in_day 1729470703 [10:19:15]quantity*price = 31500 [10:19:15]sum+1 = 31501 [10:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 78 20.10.2024 10:19 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73752 ФПД: 53383515796658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101916&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73752&fm=53383515796658&tin=02508201610067®Number=0000000000161154&sum=31500 0 [10:19:16]StoreToDocumentArchive [10:19:16]shift 170 fd 73752 [10:19:16]save to /storage/0170/doc_00073752 [10:19:16]save last doc name /storage/0170/doc_00073752 to /storage/kkm_last_doc_name [10:19:16]save OK [10:19:16]Clear old archive folders... [10:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:19:16]tlvbuf is 0035DAC0 [10:19:16]SAM_PROTO_ClearQueue [10:19:16]wFMCommunicate request_size=4 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 09 00 00 [10:19:16]Write to MH i2c: E2 08 00 4F 0E 80 09 00 00 00 00 00 00 CF [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [10:19:16]RAPDU: 90 00 [10:19:16]wFMCommunicate OK [10:19:16]SAM_PROTO_ClearQueue done [10:19:16]KKMCreateOFDPacket [10:19:16]OFDProtocolAddRootSTLVToBuf [10:19:16]FM_MakeSignedData [10:19:16]FM_MakeSignedData [10:19:16]SAM_PROTO_SignData [10:19:16]wFMCommunicate request_size=4 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 0D 01 02 [10:19:16]Write to MH i2c: E2 08 00 50 0E 80 0D 01 02 00 00 00 00 D7 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [10:19:16]RAPDU: 90 00 [10:19:16]wFMCommunicate OK [10:19:16]wFMCommunicate request_size=255 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 24 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [10:19:16]Write to MH i2c: E2 02 01 51 0E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 24 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 68 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [10:19:16]RAPDU: 90 00 [10:19:16]wFMCommunicate OK [10:19:16]wFMCommunicate request_size=41 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 20 01 00 35 04 06 00 30 8D 51 7E F4 B2 [10:19:16]Write to MH i2c: E2 2C 00 52 0E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 20 01 00 35 04 06 00 30 8D 51 7E F4 B2 00 00 0E [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [10:19:16]RAPDU: 90 00 [10:19:16]wFMCommunicate OK [10:19:16]wFMCommunicate request_size=4 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 0D 03 02 [10:19:16]Write to MH i2c: E2 08 00 53 0E 80 0D 03 02 00 00 00 00 DC [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 0B 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 0B 00 53 0E 00 23 CB 1E 3D 57 BB B5 B3 90 00 A0 [10:19:16]RAPDU: 23 CB 1E 3D 57 BB B5 B3 90 00 [10:19:16]wFMCommunicate OK [10:19:16]SAM_PROTO_SignData done [10:19:16]FM_MakeSignedData done [10:19:16]CreateOFDProtocolMessage [10:19:16]wFMCommunicate request_size=4 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 11 00 00 [10:19:16]Write to MH i2c: E2 08 00 54 0E 80 11 00 00 00 00 00 00 DC [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 17 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 17 00 54 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 29 [10:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:19:16]wFMCommunicate OK [10:19:16]CreateOFDProtocolMessage done [10:19:16]OFDSenderStorePacket 73752 [10:19:16]StoreOFDPacket docnum=73752 [10:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 D5 7E 26 01 3C F3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 24 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 20 01 00 35 04 06 00 30 8D 51 7E F4 B2 23 CB 1E 3D 57 BB B5 B3 [10:19:16]CheckFolder [10:19:16]dirname=/storage/ofd_packets [10:19:16]CheckFolder done [10:19:16]ProducePacketName [10:19:16]name=ofd_packets/00073752 [10:19:16]NVStorageSaveData ofd_packets/00073752 [10:19:16]File name is /storage/ofd_packets/00073752 [10:19:16]Write 332 bytes [10:19:16]NVStorageSaveData done [10:19:16]OFDSenderStorePacket done [10:19:16]KKMCreateOFDPacket done [10:19:16]NVStorageSaveData kkm_last_timestamp [10:19:16]File name is /storage/kkm_last_timestamp [10:19:16]Write 4 bytes [10:19:16]NVStorageSaveData done [10:19:16]ExternCall_PrintAddStr [10:19:16]wPrintStart [10:19:16]Write to MH i2c: 01 00 00 55 0E 63 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 FF 0F 78 [10:19:16]RasterBufferAndPrint [10:19:16]line Счет N : (3)272757 [10:19:16]line ИНН: 02508201610067 [10:19:16]line Контрольно-Кассовый Чек [10:19:16]line ПРОДАЖА [10:19:16]line Товар: 2000034730018 [10:19:16]line Кофе Американо (GABB TRADE) [10:19:16]line 3.000 * 105.00 [10:19:16]line = 315.00 [10:19:16]line НДС 12% НСП 1% [10:19:16]line > о реализуемом товаре [10:19:16]line ИТОГО: 315.00 [10:19:16]line НСП 1% : 2.79 [10:19:16]line НДС 12% : 33.45 [10:19:16]line Наличными: 315.00 [10:19:16]line Безнал.: 0.00 [10:19:16]line Место: АЗС № 133 "Партнер Нефть" [10:19:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:19:16]line СНО: Общий режим [10:19:16]line Чек 78 20.10.2024 10:19 [10:19:16]line Смена: 170 ФФД: 1.0 [10:19:16]line ЗНМ: 0300000020 [10:19:16]line РНМ: 0000000000161154 [10:19:16]line Версия ККМ: v1.0 [10:19:16]line ФМ: 0000000000963323 [10:19:16]line ФД: 73752 [10:19:16]line ФПД: 53383515796658 [10:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101916&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73752&fm=53383515796658&tin=02508201610067®Number=0000000000161154&sum=31500 [10:19:17]line 0 [10:19:17]OFD Sender: Processing packet 73752 [packets to send 15, broken 14] [10:19:17]ProducePacketName [10:19:17]name=ofd_packets/00073752 [10:19:17]OFD Sender: To server: pG, [10:19:17]CommunicateWithHost lk.salyk.kg:30040 [10:19:17]ConnectInit lk.salyk.kg [10:19:17]written 0, free lines is 4095 [10:19:17]Connected sock=10 [10:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 D5 7E 26 01 3C F3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 24 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 20 01 00 35 04 06 00 30 8D 51 7E F4 B2 23 CB 1E 3D 57 BB B5 B3 [10:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 73 E2 47 00 B3 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 39 36 33 33 32 33 10 04 04 00 18 20 01 00 F4 03 04 00 09 82 14 67 B6 04 01 00 00 C3 62 39 8F 1C 47 47 5C [10:19:17]CommunicateWithHost err = 0 [10:19:17]CheckOFDResponse [10:19:17]1017 (14) - 77093643461234 [10:19:17]1041 (16) - 0000000000963323 [10:19:17]1040 (4) - 73752 [10:19:17]1012 (4) - 20.10.2024 04:07 [10:19:17]1206 (1) - 0 [10:19:17]OFD Sender: Remove packet 73752 [10:19:17]ProducePacketName [10:19:17]name=ofd_packets/00073752 [10:19:17]NVStorageDeleteData [10:19:17]Write to MH i2c: 01 00 00 7D 0E 8B [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: 01 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: 01 07 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: 01 07 00 7D 0E 00 00 00 00 00 D1 0C 6F [10:19:17]RasterBufferAndPrint [10:19:17]line [10:19:17]line [10:19:17]line [10:19:17]line [10:19:17]line [10:19:17]written 0, free lines is 3285 [10:19:17]MH_Cut [10:19:17]Write to MH i2c: D1 01 00 84 0E 01 64 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: D1 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: D1 01 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: D1 01 00 84 0E 00 63 [10:19:17]Write to MH i2c: 01 00 00 85 0E 93 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:18]OFD Sender: No OFD packet to send [10:19:18]*** Cut start [10:19:18]*** Partial cut [10:19:18]*** CUTSNS_PIN = 1 [10:19:18]*** CUTSNS_PIN = 0 [10:19:18]*** Brake cut motor [10:19:19]Read from MH i2c: 01 [10:19:19]MH_I2C_Read... [10:19:19]*** Stop cut motor [10:19:19]*** Cut end [10:19:19]Read from MH i2c: 01 07 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [10:19:19]process_action close_receipt done [10:19:19]requested_data is exist [10:19:19]produce_requested_data [10:19:19]requested_item fm.sn is exist - process it [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 11 00 00 [10:19:19]Write to MH i2c: E2 08 00 86 0E 80 11 00 00 00 00 00 00 0E [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 17 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 17 00 86 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5B [10:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:19:19]wFMCommunicate OK [10:19:19]requested_item fd.num is exist - process it [10:19:19]SAM_PROTO_GetFieldsCounters [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 13 00 00 [10:19:19]Write to MH i2c: E2 08 00 87 0E 80 13 00 00 00 00 00 00 11 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 62 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 62 00 87 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 20 01 00 0E 04 04 00 AA 00 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 F2 [10:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 20 01 00 0E 04 04 00 AA 00 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 [10:19:19]wFMCommunicate OK [10:19:19]SAM_PROTO_GetFieldsCounters done [10:19:19]requested_item shift.num is exist - process it [10:19:19]requested_item shift.opened is exist - process it [10:19:19]req_shift_opened [10:19:19]FM_GetShiftState [10:19:19]SAM_PROTO_GetShiftState [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 13 01 00 [10:19:19]Write to MH i2c: E2 08 00 88 0E 80 13 01 00 00 00 00 00 13 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 0E 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 0E 00 88 0E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 58 [10:19:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:19:19]wFMCommunicate OK [10:19:19]SAM_PROTO_GetShiftState done [10:19:19]FM_GetShiftState done [10:19:19]req_shift_opened done [10:19:19]requested_item shift.open_date is exist - process it [10:19:19]req_shift_open_date [10:19:19]req_shift_open_date done [10:19:19]produce_requested_data done [10:19:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73752,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:19:19]process_action_free close_receipt [10:19:19]json_value_free [10:19:19]json_value_free done [10:19:19]process_json_proto returns [10:19:19]Send response to host [10:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73752,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:19:19]free response buf [10:19:19]execute_script done [10:19:19]execute_script returns [10:19:19]free content buf [10:19:19]Sock 8.Close socket [10:19:19]Sock 8.Thread stoped [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:31]accept exits with 9 [10:19:31]New connection [10:19:31]New thread 3067432292 created [10:19:31]Thread 3067575652 joined [10:19:31]Waiting for new connection... [10:19:31] Sock 9.Parse request [10:19:31]Sock 9.Check first char [10:19:31]Sock 9.First char is OK [10:19:31]request: POST /json_proto HTTP/1.0 [10:19:31]Method: POST [10:19:31]URL: /json_proto [10:19:31]Method is POST - this is cgi request [10:19:31]url: /json_proto [10:19:31]query_string will be loaded in cgi processing [10:19:31]execute_cgi json_proto POST (null) [10:19:31]execute_cgi path=json_proto method=POST [10:19:31]POST find Content-Length [10:19:31]Host: 172.17.44.196:8080 [10:19:31]Content-Length: 650 [10:19:31]Content-Type: application/json [10:19:31] [10:19:31]POST finish read [10:19:31]Found Content-Length = 650 [10:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272758", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "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" ] } } [10:19:31]execute_script... [10:19: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)272758", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "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" ] } } [10:19:31]POST & json_proto [10:19:31]process_json_proto [10:19:31]json parsed OK: [10:19:31]protocol is kg_v1.0 [10:19:31]action value=close_receipt [10:19:31]process_action close_receipt [10:19:31]cmd_close_receipt [10:19:31]MH_GetDate [10:19:31]Write to MH i2c: F0 00 00 89 0E 86 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: F0 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: F0 09 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: F0 09 00 89 0E 00 34 D9 14 67 E7 19 F8 65 74 [10:19:31]GetLastDocTimeStamp 1729419556 [10:19:31]current date 1729419572 [10:19:31]FM_GetShiftState [10:19:31]SAM_PROTO_GetShiftState [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 01 00 [10:19:31]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5A [10:19:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetShiftState done [10:19:31]FM_GetShiftState done [10:19:31]opened in 1729384303 [10:19:31]opened+sec_in_day 1729470703 [10:19:31]quantity*price = 21000 [10:19:31]sum+1 = 21001 [10:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 79 20.10.2024 10:19 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73753 ФПД: 237073160155065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101932&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73753&fm=237073160155065&tin=02508201610067®Number=0000000000161154&sum=21000 0 [10:19:32]StoreToDocumentArchive [10:19:32]shift 170 fd 73753 [10:19:32]save to /storage/0170/doc_00073753 [10:19:32]save last doc name /storage/0170/doc_00073753 to /storage/kkm_last_doc_name [10:19:32]save OK [10:19:32]Clear old archive folders... [10:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:19:32]tlvbuf is 0035E6D0 [10:19:32]SAM_PROTO_ClearQueue [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 09 00 00 [10:19:32]Write to MH i2c: E2 08 00 97 0E 80 09 00 00 00 00 00 00 17 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_ClearQueue done [10:19:32]KKMCreateOFDPacket [10:19:32]OFDProtocolAddRootSTLVToBuf [10:19:32]FM_MakeSignedData [10:19:32]FM_MakeSignedData [10:19:32]SAM_PROTO_SignData [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 01 02 [10:19:32]Write to MH i2c: E2 08 00 98 0E 80 0D 01 02 00 00 00 00 1F [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=255 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 4F 00 00 00 F4 03 04 00 34 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [10:19:32]Write to MH i2c: E2 02 01 99 0E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 4F 00 00 00 F4 03 04 00 34 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 90 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=41 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 20 01 00 35 04 06 00 D7 9D E5 7F 2F B9 [10:19:32]Write to MH i2c: E2 2C 00 9A 0E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 20 01 00 35 04 06 00 D7 9D E5 7F 2F B9 00 00 E5 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 03 02 [10:19:32]Write to MH i2c: E2 08 00 9B 0E 80 0D 03 02 00 00 00 00 24 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0B 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0B 00 9B 0E 00 02 64 EB 2D B4 3B 3D CA 90 00 99 [10:19:32]RAPDU: 02 64 EB 2D B4 3B 3D CA 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_SignData done [10:19:32]FM_MakeSignedData done [10:19:32]CreateOFDProtocolMessage [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 11 00 00 [10:19:32]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 71 [10:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:19:32]wFMCommunicate OK [10:19:32]CreateOFDProtocolMessage done [10:19:32]OFDSenderStorePacket 73753 [10:19:32]StoreOFDPacket docnum=73753 [10:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 F3 0E 26 01 89 40 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 4F 00 00 00 F4 03 04 00 34 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 20 01 00 35 04 06 00 D7 9D E5 7F 2F B9 02 64 EB 2D B4 3B 3D CA [10:19:32]CheckFolder [10:19:32]dirname=/storage/ofd_packets [10:19:32]CheckFolder done [10:19:32]ProducePacketName [10:19:32]name=ofd_packets/00073753 [10:19:32]NVStorageSaveData ofd_packets/00073753 [10:19:32]File name is /storage/ofd_packets/00073753 [10:19:32]Write 332 bytes [10:19:32]NVStorageSaveData done [10:19:32]OFDSenderStorePacket done [10:19:32]KKMCreateOFDPacket done [10:19:32]NVStorageSaveData kkm_last_timestamp [10:19:32]File name is /storage/kkm_last_timestamp [10:19:32]Write 4 bytes [10:19:32]NVStorageSaveData done [10:19:32]ExternCall_PrintAddStr [10:19:32]wPrintStart [10:19:32]Write to MH i2c: 01 00 00 9D 0E AB [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 FF 0F C0 [10:19:32]RasterBufferAndPrint [10:19:32]line Счет N : (3)272758 [10:19:32]line ИНН: 02508201610067 [10:19:32]line Контрольно-Кассовый Чек [10:19:32]line ПРОДАЖА [10:19:32]line Товар: 2000034730018 [10:19:32]line Кофе Американо (GABB TRADE) [10:19:32]line 2.000 * 105.00 [10:19:32]line = 210.00 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line ИТОГО: 210.00 [10:19:32]line НСП 1% : 1.86 [10:19:32]line НДС 12% : 22.30 [10:19:32]line Наличными: 210.00 [10:19:32]line Безнал.: 0.00 [10:19:32]line Место: АЗС № 133 "Партнер Нефть" [10:19:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:19:32]line СНО: Общий режим [10:19:32]line Чек 79 20.10.2024 10:19 [10:19:32]line Смена: 170 ФФД: 1.0 [10:19:32]line ЗНМ: 0300000020 [10:19:32]line РНМ: 0000000000161154 [10:19:32]line Версия ККМ: v1.0 [10:19:32]line ФМ: 0000000000963323 [10:19:32]line ФД: 73753 [10:19:32]line ФПД: 237073160155065 [10:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101932&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73753&fm=237073160155065&tin=02508201610067®Number=0000000000161154&sum=21000 [10:19:33]line 0 [10:19:33]OFD Sender: Processing packet 73753 [packets to send 15, broken 14] [10:19:33]ProducePacketName [10:19:33]name=ofd_packets/00073753 [10:19:33]OFD Sender: To server: pG, [10:19:33]CommunicateWithHost lk.salyk.kg:30040 [10:19:33]ConnectInit lk.salyk.kg [10:19:33]written 0, free lines is 4095 [10:19:33]Connected sock=10 [10:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 F3 0E 26 01 89 40 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 4F 00 00 00 F4 03 04 00 34 D9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 20 01 00 35 04 06 00 D7 9D E5 7F 2F B9 02 64 EB 2D B4 3B 3D CA [10:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B7 D6 47 00 64 79 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 39 36 33 33 32 33 10 04 04 00 19 20 01 00 F4 03 04 00 19 82 14 67 B6 04 01 00 00 CB 37 D5 37 92 7C B8 FF [10:19:33]CommunicateWithHost err = 0 [10:19:33]CheckOFDResponse [10:19:33]1017 (14) - 77093643461234 [10:19:33]1041 (16) - 0000000000963323 [10:19:33]1040 (4) - 73753 [10:19:33]1012 (4) - 20.10.2024 04:07 [10:19:33]1206 (1) - 0 [10:19:33]OFD Sender: Remove packet 73753 [10:19:33]ProducePacketName [10:19:33]name=ofd_packets/00073753 [10:19:33]NVStorageDeleteData [10:19:33]Write to MH i2c: 01 00 00 C5 0E D3 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 07 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 D6 0C BC [10:19:33]RasterBufferAndPrint [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]written 0, free lines is 3292 [10:19:33]MH_Cut [10:19:33]Write to MH i2c: D1 01 00 CC 0E 01 AC [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 01 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 01 00 CC 0E 00 AB [10:19:33]Write to MH i2c: 01 00 00 CD 0E DB [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]OFD Sender: No OFD packet to send [10:19:34]*** Cut start [10:19:34]*** Partial cut [10:19:34]*** CUTSNS_PIN = 1 [10:19:34]*** CUTSNS_PIN = 0 [10:19:34]*** Brake cut motor [10:19:35]Read from MH i2c: 01 [10:19:35]MH_I2C_Read... [10:19:35]*** Stop cut motor [10:19:35]*** Cut end [10:19:35]Read from MH i2c: 01 07 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 07 00 CD 0E 00 00 00 00 00 FF 0F F0 [10:19:35]process_action close_receipt done [10:19:35]requested_data is exist [10:19:35]produce_requested_data [10:19:35]requested_item fm.sn is exist - process it [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 11 00 00 [10:19:35]Write to MH i2c: E2 08 00 CE 0E 80 11 00 00 00 00 00 00 56 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 17 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 17 00 CE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A3 [10:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:19:35]wFMCommunicate OK [10:19:35]requested_item fd.num is exist - process it [10:19:35]SAM_PROTO_GetFieldsCounters [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 13 00 00 [10:19:35]Write to MH i2c: E2 08 00 CF 0E 80 13 00 00 00 00 00 00 59 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 62 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 62 00 CF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 20 01 00 0E 04 04 00 AA 00 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 3E [10:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 20 01 00 0E 04 04 00 AA 00 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 [10:19:35]wFMCommunicate OK [10:19:35]SAM_PROTO_GetFieldsCounters done [10:19:35]requested_item shift.num is exist - process it [10:19:35]requested_item shift.opened is exist - process it [10:19:35]req_shift_opened [10:19:35]FM_GetShiftState [10:19:35]SAM_PROTO_GetShiftState [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 13 01 00 [10:19:35]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 0E 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A0 [10:19:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:19:35]wFMCommunicate OK [10:19:35]SAM_PROTO_GetShiftState done [10:19:35]FM_GetShiftState done [10:19:35]req_shift_opened done [10:19:35]requested_item shift.open_date is exist - process it [10:19:35]req_shift_open_date [10:19:35]req_shift_open_date done [10:19:35]produce_requested_data done [10:19:35]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73753,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:19:35]process_action_free close_receipt [10:19:35]json_value_free [10:19:35]json_value_free done [10:19:35]process_json_proto returns [10:19:35]Send response to host [10:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73753,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:19:35]free response buf [10:19:35]execute_script done [10:19:35]execute_script returns [10:19:35]free content buf [10:19:35]Sock 9.Close socket [10:19:35]Sock 9.Thread stoped [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:11]accept exits with 8 [10:23:11]New connection [10:23:11]New thread 3067575652 created [10:23:11]Thread 3067432292 joined [10:23:11]Waiting for new connection... [10:23:11] Sock 8.Parse request [10:23:11]Sock 8.Check first char [10:23:11]Sock 8.First char is OK [10:23:11]request: POST /json_proto HTTP/1.0 [10:23:11]Method: POST [10:23:11]URL: /json_proto [10:23:11]Method is POST - this is cgi request [10:23:11]url: /json_proto [10:23:11]query_string will be loaded in cgi processing [10:23:11]execute_cgi json_proto POST (null) [10:23:11]execute_cgi path=json_proto method=POST [10:23:11]POST find Content-Length [10:23:11]Host: 172.17.44.196:8080 [10:23:11]Content-Length: 680 [10:23:11]Content-Type: application/json [10:23:11] [10:23:11]POST finish read [10:23:11]Found Content-Length = 680 [10:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:11]execute_script... [10:23: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 : (1)1962810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:11]POST & json_proto [10:23:11]process_json_proto [10:23:11]json parsed OK: [10:23:11]protocol is kg_v1.0 [10:23:11]action value=close_receipt [10:23:11]process_action close_receipt [10:23:11]cmd_close_receipt [10:23:11]MH_GetDate [10:23:11]Write to MH i2c: F0 00 00 D1 0E CE [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: F0 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: F0 09 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: F0 09 00 D1 0E 00 10 DA 14 67 E7 19 F8 65 99 [10:23:11]GetLastDocTimeStamp 1729419572 [10:23:11]current date 1729419792 [10:23:11]FM_GetShiftState [10:23:11]SAM_PROTO_GetShiftState [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 13 01 00 [10:23:11]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 0E 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A2 [10:23:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_GetShiftState done [10:23:11]FM_GetShiftState done [10:23:11]opened in 1729384303 [10:23:11]opened+sec_in_day 1729470703 [10:23:11]quantity*price = 300075 [10:23:11]sum+1 = 300077 [10:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 80 20.10.2024 10:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73754 ФПД: 94518272755972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102312&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73754&fm=94518272755972&tin=02508201610067®Number=0000000000161154&sum=300000 [10:23:12]StoreToDocumentArchive [10:23:12]shift 170 fd 73754 [10:23:12]save to /storage/0170/doc_00073754 [10:23:12]save last doc name /storage/0170/doc_00073754 to /storage/kkm_last_doc_name [10:23:12]save OK [10:23:12]Clear old archive folders... [10:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:12]tlvbuf is 0035E5D0 [10:23:12]SAM_PROTO_ClearQueue [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 09 00 00 [10:23:12]Write to MH i2c: E2 08 00 DF 0E 80 09 00 00 00 00 00 00 5F [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [10:23:12]RAPDU: 90 00 [10:23:12]wFMCommunicate OK [10:23:12]SAM_PROTO_ClearQueue done [10:23:12]KKMCreateOFDPacket [10:23:12]OFDProtocolAddRootSTLVToBuf [10:23:12]FM_MakeSignedData [10:23:12]FM_MakeSignedData [10:23:12]SAM_PROTO_SignData [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 0D 01 02 [10:23:12]Write to MH i2c: E2 08 00 E0 0E 80 0D 01 02 00 00 00 00 67 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [10:23:13]RAPDU: 90 00 [10:23:13]wFMCommunicate OK [10:23:13]wFMCommunicate request_size=255 [10:23:13]MH_SAM_APDU [10:23:13]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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 10 DA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 20 01 00 35 04 06 00 55 F6 C0 12 [10:23:13]Write to MH i2c: E2 02 01 E1 0E 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 10 DA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 20 01 00 35 04 06 00 55 F6 C0 12 00 00 CD [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [10:23:13]RAPDU: 90 00 [10:23:13]wFMCommunicate OK [10:23:13]wFMCommunicate request_size=7 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 0D 02 02 02 89 04 [10:23:13]Write to MH i2c: E2 0A 00 E2 0E 80 0D 02 02 02 00 89 04 00 00 FB [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [10:23:13]RAPDU: 90 00 [10:23:13]wFMCommunicate OK [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 0D 03 02 [10:23:13]Write to MH i2c: E2 08 00 E3 0E 80 0D 03 02 00 00 00 00 6C [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 0B 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 0B 00 E3 0E 00 2F F2 A3 8D C9 19 F6 F8 90 00 8E [10:23:13]RAPDU: 2F F2 A3 8D C9 19 F6 F8 90 00 [10:23:13]wFMCommunicate OK [10:23:13]SAM_PROTO_SignData done [10:23:13]FM_MakeSignedData done [10:23:13]CreateOFDProtocolMessage [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 11 00 00 [10:23:13]Write to MH i2c: E2 08 00 E4 0E 80 11 00 00 00 00 00 00 6C [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 17 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 17 00 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B9 [10:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:23:13]wFMCommunicate OK [10:23:13]CreateOFDProtocolMessage done [10:23:13]OFDSenderStorePacket 73754 [10:23:13]StoreOFDPacket docnum=73754 [10:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 F8 9C 04 01 90 64 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 10 DA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 20 01 00 35 04 06 00 55 F6 C0 12 89 04 2F F2 A3 8D C9 19 F6 F8 [10:23:13]CheckFolder [10:23:13]dirname=/storage/ofd_packets [10:23:13]CheckFolder done [10:23:13]ProducePacketName [10:23:13]name=ofd_packets/00073754 [10:23:13]NVStorageSaveData ofd_packets/00073754 [10:23:13]File name is /storage/ofd_packets/00073754 [10:23:13]Write 298 bytes [10:23:13]NVStorageSaveData done [10:23:13]OFDSenderStorePacket done [10:23:13]KKMCreateOFDPacket done [10:23:13]NVStorageSaveData kkm_last_timestamp [10:23:13]File name is /storage/kkm_last_timestamp [10:23:13]Write 4 bytes [10:23:13]NVStorageSaveData done [10:23:13]ExternCall_PrintAddStr [10:23:13]wPrintStart [10:23:13]Write to MH i2c: 01 00 00 E5 0E F3 [10:23:13]OFD Sender: Processing packet 73754 [packets to send 15, broken 14] [10:23:13]ProducePacketName [10:23:13]name=ofd_packets/00073754 [10:23:13]OFD Sender: To server: pG, [10:23:13]CommunicateWithHost lk.salyk.kg:30040 [10:23:13]ConnectInit lk.salyk.kg [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 07 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [10:23:13]RasterBufferAndPrint [10:23:13]line Счет N : (1)1962810 [10:23:13]line ИНН: 02508201610067 [10:23:13]line Контрольно-Кассовый Чек [10:23:13]line ПРОДАЖА [10:23:13]line ТРК (МРК, ГНК) : 51 [10:23:13]line Товар: 2710194210 [10:23:13]line ДТ-К-5 [10:23:13]line 39.380 * 76.20 [10:23:13]line = 3000.76 [10:23:13]line НДС 12% НСП 1% [10:23:13]line > о реализуемом товаре [10:23:13]line ОКРУГЛЕНИЕ: -0.76 [10:23:13]line ИТОГО: 3000.00 [10:23:13]line Внесено: 3000.00 [10:23:13]line СДАЧА: 0.00 [10:23:13]line НСП 1% : 26.55 [10:23:13]line НДС 12% : 318.66 [10:23:13]line Наличными: 3000.00 [10:23:13]line Безнал.: 0.00 [10:23:13]line Место: АЗС № 133 "Партнер Нефть" [10:23:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:23:13]line СНО: Общий режим [10:23:13]line Чек 80 20.10.2024 10:23 [10:23:13]line Смена: 170 ФФД: 1.0 [10:23:13]line ЗНМ: 0300000020 [10:23:13]line РНМ: 0000000000161154 [10:23:13]line Версия ККМ: v1.0 [10:23:13]line ФМ: 0000000000963323 [10:23:13]line ФД: 73754 [10:23:13]line ФПД: 94518272755972 [10:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102312&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73754&fm=94518272755972&tin=02508201610067®Number=0000000000161154&sum=300000 [10:23:13]Connected sock=10 [10:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 F8 9C 04 01 90 64 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 10 DA 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 20 01 00 35 04 06 00 55 F6 C0 12 89 04 2F F2 A3 8D C9 19 F6 F8 [10:23:13]written 0, free lines is 4095 [10:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 58 B7 47 00 4E C6 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 39 36 33 33 32 33 10 04 04 00 1A 20 01 00 F4 03 04 00 F5 82 14 67 B6 04 01 00 00 9C 69 62 B2 77 72 03 CC [10:23:14]CommunicateWithHost err = 0 [10:23:14]CheckOFDResponse [10:23:14]1017 (14) - 77093643461234 [10:23:14]1041 (16) - 0000000000963323 [10:23:14]1040 (4) - 73754 [10:23:14]1012 (4) - 20.10.2024 04:11 [10:23:14]1206 (1) - 0 [10:23:14]OFD Sender: Remove packet 73754 [10:23:14]ProducePacketName [10:23:14]name=ofd_packets/00073754 [10:23:14]NVStorageDeleteData [10:23:14]Write to MH i2c: 01 00 00 0F 0F 1E [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 0F 0F 00 00 00 00 00 B5 0C E6 [10:23:14]RasterBufferAndPrint [10:23:14]line [10:23:14]line [10:23:14]line [10:23:14]line [10:23:14]line [10:23:14]written 0, free lines is 3258 [10:23:14]MH_Cut [10:23:14]Write to MH i2c: D1 01 00 16 0F 01 F7 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: D1 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: D1 01 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: D1 01 00 16 0F 00 F6 [10:23:14]Write to MH i2c: 01 00 00 17 0F 26 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]OFD Sender: No OFD packet to send [10:23:15]*** Cut start [10:23:15]*** Partial cut [10:23:15]*** CUTSNS_PIN = 1 [10:23:15]*** CUTSNS_PIN = 0 [10:23:15]*** Brake cut motor [10:23:15]Read from MH i2c: 01 [10:23:15]MH_I2C_Read... [10:23:15]*** Stop cut motor [10:23:15]*** Cut end [10:23:15]Read from MH i2c: 01 07 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 07 00 17 0F 00 00 00 00 00 FF 0F 3B [10:23:15]process_action close_receipt done [10:23:15]requested_data is exist [10:23:15]produce_requested_data [10:23:15]requested_item fm.sn is exist - process it [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 11 00 00 [10:23:15]Write to MH i2c: E2 08 00 18 0F 80 11 00 00 00 00 00 00 A1 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 17 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 17 00 18 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EE [10:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:23:15]wFMCommunicate OK [10:23:15]requested_item fd.num is exist - process it [10:23:15]SAM_PROTO_GetFieldsCounters [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 13 00 00 [10:23:15]Write to MH i2c: E2 08 00 19 0F 80 13 00 00 00 00 00 00 A4 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:16]Read from MH i2c: E2 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 62 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 62 00 19 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 20 01 00 0E 04 04 00 AA 00 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 8D [10:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 20 01 00 0E 04 04 00 AA 00 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 [10:23:16]wFMCommunicate OK [10:23:16]SAM_PROTO_GetFieldsCounters done [10:23:16]requested_item shift.num is exist - process it [10:23:16]requested_item shift.opened is exist - process it [10:23:16]req_shift_opened [10:23:16]FM_GetShiftState [10:23:16]SAM_PROTO_GetShiftState [10:23:16]wFMCommunicate request_size=4 [10:23:16]MH_SAM_APDU [10:23:16]CAPDU: 80 13 01 00 [10:23:16]Write to MH i2c: E2 08 00 1A 0F 80 13 01 00 00 00 00 00 A6 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:16]Read from MH i2c: E2 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 0E 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 0E 00 1A 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EB [10:23:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:23:16]wFMCommunicate OK [10:23:16]SAM_PROTO_GetShiftState done [10:23:16]FM_GetShiftState done [10:23:16]req_shift_opened done [10:23:16]requested_item shift.open_date is exist - process it [10:23:16]req_shift_open_date [10:23:16]req_shift_open_date done [10:23:16]produce_requested_data done [10:23:16]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73754,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:23:16]process_action_free close_receipt [10:23:16]json_value_free [10:23:16]json_value_free done [10:23:16]process_json_proto returns [10:23:16]Send response to host [10:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73754,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:23:16]free response buf [10:23:16]execute_script done [10:23:16]execute_script returns [10:23:16]free content buf [10:23:16]Sock 8.Close socket [10:23:16]Sock 8.Thread stoped [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]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:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:20]accept exits with 9 [10:31:20]New connection [10:31:20]New thread 3067432292 created [10:31:20]Thread 3067575652 joined [10:31:20]Waiting for new connection... [10:31:20] Sock 9.Parse request [10:31:20]Sock 9.Check first char [10:31:20]Sock 9.First char is OK [10:31:20]request: POST /json_proto HTTP/1.0 [10:31:20]Method: POST [10:31:20]URL: /json_proto [10:31:20]Method is POST - this is cgi request [10:31:20]url: /json_proto [10:31:20]query_string will be loaded in cgi processing [10:31:20]execute_cgi json_proto POST (null) [10:31:20]execute_cgi path=json_proto method=POST [10:31:20]POST find Content-Length [10:31:20]Host: 172.17.44.196:8080 [10:31:20]Content-Length: 669 [10:31:20]Content-Type: application/json [10:31:20] [10:31:20]POST finish read [10:31:20]Found Content-Length = 669 [10:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272759", "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" : 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" ] } } [10:31:20]execute_script... [10:31: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)272759", "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" : 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" ] } } [10:31:20]POST & json_proto [10:31:20]process_json_proto [10:31:20]json parsed OK: [10:31:20]protocol is kg_v1.0 [10:31:20]action value=close_receipt [10:31:20]process_action close_receipt [10:31:20]cmd_close_receipt [10:31:20]MH_GetDate [10:31:20]Write to MH i2c: F0 00 00 1B 0F 19 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: F0 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: F0 09 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: F0 09 00 1B 0F 00 F9 DB 14 67 E7 19 F8 65 CE [10:31:20]GetLastDocTimeStamp 1729419792 [10:31:20]current date 1729420281 [10:31:20]FM_GetShiftState [10:31:20]SAM_PROTO_GetShiftState [10:31:20]wFMCommunicate request_size=4 [10:31:20]MH_SAM_APDU [10:31:20]CAPDU: 80 13 01 00 [10:31:20]Write to MH i2c: E2 08 00 1C 0F 80 13 01 00 00 00 00 00 A8 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:20]Read from MH i2c: E2 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 0E 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 0E 00 1C 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 ED [10:31:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:31:20]wFMCommunicate OK [10:31:20]SAM_PROTO_GetShiftState done [10:31:20]FM_GetShiftState done [10:31:20]opened in 1729384303 [10:31:20]opened+sec_in_day 1729470703 [10:31:20]quantity*price = 11000 [10:31:20]sum+1 = 11001 [10:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 81 20.10.2024 10:31 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73755 ФПД: 119637326685956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103121&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73755&fm=119637326685956&tin=02508201610067®Number=0000000000161154&sum=11000 0 [10:31:21]StoreToDocumentArchive [10:31:21]shift 170 fd 73755 [10:31:21]save to /storage/0170/doc_00073755 [10:31:21]save last doc name /storage/0170/doc_00073755 to /storage/kkm_last_doc_name [10:31:21]save OK [10:31:21]Clear old archive folders... [10:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:31:21]tlvbuf is B6F40210 [10:31:21]SAM_PROTO_ClearQueue [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 09 00 00 [10:31:21]Write to MH i2c: E2 08 00 29 0F 80 09 00 00 00 00 00 00 AA [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [10:31:21]RAPDU: 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_ClearQueue done [10:31:21]KKMCreateOFDPacket [10:31:21]OFDProtocolAddRootSTLVToBuf [10:31:21]FM_MakeSignedData [10:31:21]FM_MakeSignedData [10:31:21]SAM_PROTO_SignData [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 0D 01 02 [10:31:21]Write to MH i2c: E2 08 00 2A 0F 80 0D 01 02 00 00 00 00 B2 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [10:31:21]RAPDU: 90 00 [10:31:21]wFMCommunicate OK [10:31:21]wFMCommunicate request_size=255 [10:31:21]MH_SAM_APDU [10:31:21]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 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 51 00 00 00 F4 03 04 00 F9 DB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:31:21]Write to MH i2c: E2 02 01 2B 0F 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 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 51 00 00 00 F4 03 04 00 F9 DB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 16 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [10:31:21]RAPDU: 90 00 [10:31:21]wFMCommunicate OK [10:31:21]wFMCommunicate request_size=52 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 20 01 00 35 04 06 00 6C CF 3C 5B E7 04 [10:31:21]Write to MH i2c: E2 37 00 2C 0F 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 20 01 00 35 04 06 00 6C CF 3C 5B E7 04 00 00 64 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [10:31:21]RAPDU: 90 00 [10:31:21]wFMCommunicate OK [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 0D 03 02 [10:31:21]Write to MH i2c: E2 08 00 2D 0F 80 0D 03 02 00 00 00 00 B7 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0B 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0B 00 2D 0F 00 EA 65 0F 5B C6 AE D0 96 90 00 4B [10:31:21]RAPDU: EA 65 0F 5B C6 AE D0 96 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_SignData done [10:31:21]FM_MakeSignedData done [10:31:21]CreateOFDProtocolMessage [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 11 00 00 [10:31:21]Write to MH i2c: E2 08 00 2E 0F 80 11 00 00 00 00 00 00 B7 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 2E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 04 [10:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:31:21]wFMCommunicate OK [10:31:21]CreateOFDProtocolMessage done [10:31:21]OFDSenderStorePacket 73755 [10:31:21]StoreOFDPacket docnum=73755 [10:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 08 96 31 01 01 85 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 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 51 00 00 00 F4 03 04 00 F9 DB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 20 01 00 35 04 06 00 6C CF 3C 5B E7 04 EA 65 0F 5B C6 AE D0 96 [10:31:21]CheckFolder [10:31:21]dirname=/storage/ofd_packets [10:31:21]CheckFolder done [10:31:21]ProducePacketName [10:31:21]name=ofd_packets/00073755 [10:31:21]NVStorageSaveData ofd_packets/00073755 [10:31:21]File name is /storage/ofd_packets/00073755 [10:31:21]Write 343 bytes [10:31:21]NVStorageSaveData done [10:31:21]OFDSenderStorePacket done [10:31:21]KKMCreateOFDPacket done [10:31:21]NVStorageSaveData kkm_last_timestamp [10:31:21]File name is /storage/kkm_last_timestamp [10:31:21]Write 4 bytes [10:31:21]NVStorageSaveData done [10:31:21]ExternCall_PrintAddStr [10:31:21]wPrintStart [10:31:21]Write to MH i2c: 01 00 00 2F 0F 3E [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: 01 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: 01 07 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [10:31:21]RasterBufferAndPrint [10:31:21]line Счет N : (3)272759 [10:31:21]line ИНН: 02508201610067 [10:31:21]line Контрольно-Кассовый Чек [10:31:21]line ПРОДАЖА [10:31:21]line Товар: 4870022003305 [10:31:21]line Напиток Gorilla эн нат ж/б 0,5/0,45л [10:31:21]line 1.000 * 110.00 [10:31:21]line = 110.00 [10:31:21]line НДС 12% НСП 1% [10:31:21]line > о реализуемом товаре [10:31:21]line ИТОГО: 110.00 [10:31:21]line НСП 1% : 0.97 [10:31:21]line НДС 12% : 11.68 [10:31:21]line Наличными: 110.00 [10:31:21]line Безнал.: 0.00 [10:31:21]line Место: АЗС № 133 "Партнер Нефть" [10:31:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:31:21]line СНО: Общий режим [10:31:21]line Чек 81 20.10.2024 10:31 [10:31:21]line Смена: 170 ФФД: 1.0 [10:31:21]line ЗНМ: 0300000020 [10:31:21]line РНМ: 0000000000161154 [10:31:21]line Версия ККМ: v1.0 [10:31:21]line ФМ: 0000000000963323 [10:31:21]line ФД: 73755 [10:31:21]line ФПД: 119637326685956 [10:31:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103121&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73755&fm=119637326685956&tin=02508201610067®Number=0000000000161154&sum=11000 [10:31:22]line 0 [10:31:22]OFD Sender: Processing packet 73755 [packets to send 15, broken 14] [10:31:22]ProducePacketName [10:31:22]name=ofd_packets/00073755 [10:31:22]OFD Sender: To server: pG, [10:31:22]CommunicateWithHost lk.salyk.kg:30040 [10:31:22]ConnectInit lk.salyk.kg [10:31:22]written 0, free lines is 4095 [10:31:22]Connected sock=10 [10:31:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 08 96 31 01 01 85 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 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 51 00 00 00 F4 03 04 00 F9 DB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 20 01 00 35 04 06 00 6C CF 3C 5B E7 04 EA 65 0F 5B C6 AE D0 96 [10:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 A1 47 00 34 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 39 36 33 33 32 33 10 04 04 00 1B 20 01 00 F4 03 04 00 DE 84 14 67 B6 04 01 00 00 98 5A 4E EB 3C DC EE 71 [10:31:22]CommunicateWithHost err = 0 [10:31:22]CheckOFDResponse [10:31:22]1017 (14) - 77093643461234 [10:31:22]1041 (16) - 0000000000963323 [10:31:22]1040 (4) - 73755 [10:31:22]1012 (4) - 20.10.2024 04:19 [10:31:22]1206 (1) - 0 [10:31:22]OFD Sender: Remove packet 73755 [10:31:22]ProducePacketName [10:31:22]name=ofd_packets/00073755 [10:31:22]NVStorageDeleteData [10:31:22]Write to MH i2c: 01 00 00 57 0F 66 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: 01 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: 01 07 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 D2 0C 4B [10:31:22]RasterBufferAndPrint [10:31:22]line [10:31:22]line [10:31:22]line [10:31:22]line [10:31:22]line [10:31:22]written 0, free lines is 3287 [10:31:22]MH_Cut [10:31:22]Write to MH i2c: D1 01 00 5E 0F 01 3F [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: D1 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: D1 01 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: D1 01 00 5E 0F 00 3E [10:31:22]Write to MH i2c: 01 00 00 5F 0F 6E [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:23]OFD Sender: No OFD packet to send [10:31:23]*** Cut start [10:31:23]*** Partial cut [10:31:23]*** CUTSNS_PIN = 1 [10:31:23]*** CUTSNS_PIN = 0 [10:31:23]*** Brake cut motor [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]*** Stop cut motor [10:31:24]*** Cut end [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 5F 0F 00 00 00 00 00 FF 0F 83 [10:31:24]process_action close_receipt done [10:31:24]requested_data is exist [10:31:24]produce_requested_data [10:31:24]requested_item fm.sn is exist - process it [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 11 00 00 [10:31:24]Write to MH i2c: E2 08 00 60 0F 80 11 00 00 00 00 00 00 E9 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 60 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 36 [10:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:31:24]wFMCommunicate OK [10:31:24]requested_item fd.num is exist - process it [10:31:24]SAM_PROTO_GetFieldsCounters [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 13 00 00 [10:31:24]Write to MH i2c: E2 08 00 61 0F 80 13 00 00 00 00 00 00 EC [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 62 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 62 00 61 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 20 01 00 0E 04 04 00 AA 00 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 D9 [10:31:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 20 01 00 0E 04 04 00 AA 00 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 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_GetFieldsCounters done [10:31:24]requested_item shift.num is exist - process it [10:31:24]requested_item shift.opened is exist - process it [10:31:24]req_shift_opened [10:31:24]FM_GetShiftState [10:31:24]SAM_PROTO_GetShiftState [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 13 01 00 [10:31:24]Write to MH i2c: E2 08 00 62 0F 80 13 01 00 00 00 00 00 EE [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0E 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0E 00 62 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 33 [10:31:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_GetShiftState done [10:31:24]FM_GetShiftState done [10:31:24]req_shift_opened done [10:31:24]requested_item shift.open_date is exist - process it [10:31:24]req_shift_open_date [10:31:24]req_shift_open_date done [10:31:24]produce_requested_data done [10:31:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73755,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:31:24]process_action_free close_receipt [10:31:24]json_value_free [10:31:24]json_value_free done [10:31:24]process_json_proto returns [10:31:24]Send response to host [10:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73755,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:31:24]free response buf [10:31:24]execute_script done [10:31:24]execute_script returns [10:31:24]free content buf [10:31:24]Sock 9.Close socket [10:31:24]Sock 9.Thread stoped [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:19]accept exits with 8 [10:42:19]New connection [10:42:19]New thread 3067575652 created [10:42:19]Thread 3067432292 joined [10:42:19]Waiting for new connection... [10:42:19] Sock 8.Parse request [10:42:19]Sock 8.Check first char [10:42:19]Sock 8.First char is OK [10:42:19]request: POST /json_proto HTTP/1.0 [10:42:19]Method: POST [10:42:19]URL: /json_proto [10:42:19]Method is POST - this is cgi request [10:42:19]url: /json_proto [10:42:19]query_string will be loaded in cgi processing [10:42:19]execute_cgi json_proto POST (null) [10:42:19]execute_cgi path=json_proto method=POST [10:42:19]POST find Content-Length [10:42:19]Host: 172.17.44.196:8080 [10:42:19]Content-Length: 669 [10:42:19]Content-Type: application/json [10:42:19] [10:42:19]POST finish read [10:42:19]Found Content-Length = 669 [10:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272760", "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" : 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" ] } } [10:42:19]execute_script... [10:42: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 : (3)272760", "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" : 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" ] } } [10:42:19]POST & json_proto [10:42:19]process_json_proto [10:42:19]json parsed OK: [10:42:19]protocol is kg_v1.0 [10:42:19]action value=close_receipt [10:42:19]process_action close_receipt [10:42:19]cmd_close_receipt [10:42:19]MH_GetDate [10:42:19]Write to MH i2c: F0 00 00 63 0F 61 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: F0 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: F0 09 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: F0 09 00 63 0F 00 8C DE 14 67 E7 19 F8 65 AC [10:42:19]GetLastDocTimeStamp 1729420281 [10:42:19]current date 1729420940 [10:42:19]FM_GetShiftState [10:42:19]SAM_PROTO_GetShiftState [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 13 01 00 [10:42:19]Write to MH i2c: E2 08 00 64 0F 80 13 01 00 00 00 00 00 F0 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 0E 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 0E 00 64 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 35 [10:42:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:42:19]wFMCommunicate OK [10:42:19]SAM_PROTO_GetShiftState done [10:42:19]FM_GetShiftState done [10:42:19]opened in 1729384303 [10:42:19]opened+sec_in_day 1729470703 [10:42:19]quantity*price = 11000 [10:42:19]sum+1 = 11001 [10:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 82 20.10.2024 10:42 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73756 ФПД: 60243115745116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104220&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73756&fm=60243115745116&tin=02508201610067®Number=0000000000161154&sum=11000 0 [10:42:20]StoreToDocumentArchive [10:42:20]shift 170 fd 73756 [10:42:20]save to /storage/0170/doc_00073756 [10:42:20]save last doc name /storage/0170/doc_00073756 to /storage/kkm_last_doc_name [10:42:20]save OK [10:42:20]Clear old archive folders... [10:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:42:20]tlvbuf is 002F44D0 [10:42:20]SAM_PROTO_ClearQueue [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 09 00 00 [10:42:20]Write to MH i2c: E2 08 00 71 0F 80 09 00 00 00 00 00 00 F2 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_ClearQueue done [10:42:20]KKMCreateOFDPacket [10:42:20]OFDProtocolAddRootSTLVToBuf [10:42:20]FM_MakeSignedData [10:42:20]FM_MakeSignedData [10:42:20]SAM_PROTO_SignData [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 01 02 [10:42:20]Write to MH i2c: E2 08 00 72 0F 80 0D 01 02 00 00 00 00 FA [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=255 [10:42:20]MH_SAM_APDU [10:42: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 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 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 52 00 00 00 F4 03 04 00 8C DE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:42:20]Write to MH i2c: E2 02 01 73 0F 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 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 52 00 00 00 F4 03 04 00 8C DE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 F5 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=52 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 20 01 00 35 04 06 00 36 CA 71 83 9F 5C [10:42:20]Write to MH i2c: E2 37 00 74 0F 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 20 01 00 35 04 06 00 36 CA 71 83 9F 5C 00 00 DF [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 03 02 [10:42:20]Write to MH i2c: E2 08 00 75 0F 80 0D 03 02 00 00 00 00 FF [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0B 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0B 00 75 0F 00 08 41 02 10 0C 03 14 09 90 00 87 [10:42:20]RAPDU: 08 41 02 10 0C 03 14 09 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_SignData done [10:42:20]FM_MakeSignedData done [10:42:20]CreateOFDProtocolMessage [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 11 00 00 [10:42:20]Write to MH i2c: E2 08 00 76 0F 80 11 00 00 00 00 00 00 FF [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 76 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [10:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:42:20]wFMCommunicate OK [10:42:20]CreateOFDProtocolMessage done [10:42:20]OFDSenderStorePacket 73756 [10:42:20]StoreOFDPacket docnum=73756 [10:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 ED F8 31 01 D1 12 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 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 52 00 00 00 F4 03 04 00 8C DE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 20 01 00 35 04 06 00 36 CA 71 83 9F 5C 08 41 02 10 0C 03 14 09 [10:42:20]CheckFolder [10:42:20]dirname=/storage/ofd_packets [10:42:20]CheckFolder done [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00073756 [10:42:20]NVStorageSaveData ofd_packets/00073756 [10:42:20]File name is /storage/ofd_packets/00073756 [10:42:20]Write 343 bytes [10:42:20]NVStorageSaveData done [10:42:20]OFDSenderStorePacket done [10:42:20]KKMCreateOFDPacket done [10:42:20]NVStorageSaveData kkm_last_timestamp [10:42:20]File name is /storage/kkm_last_timestamp [10:42:20]Write 4 bytes [10:42:20]NVStorageSaveData done [10:42:20]ExternCall_PrintAddStr [10:42:20]wPrintStart [10:42:20]Write to MH i2c: 01 00 00 77 0F 86 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 FF 0F 9B [10:42:20]RasterBufferAndPrint [10:42:20]line Счет N : (3)272760 [10:42:20]line ИНН: 02508201610067 [10:42:20]line Контрольно-Кассовый Чек [10:42:20]line ПРОДАЖА [10:42:20]line Товар: 4870022003305 [10:42:20]line Напиток Gorilla эн нат ж/б 0,5/0,45л [10:42:20]line 1.000 * 110.00 [10:42:20]line = 110.00 [10:42:20]line НДС 12% НСП 1% [10:42:20]line > о реализуемом товаре [10:42:20]line ИТОГО: 110.00 [10:42:20]line НСП 1% : 0.97 [10:42:20]line НДС 12% : 11.68 [10:42:20]line Наличными: 110.00 [10:42:20]line Безнал.: 0.00 [10:42:20]line Место: АЗС № 133 "Партнер Нефть" [10:42:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:42:20]line СНО: Общий режим [10:42:20]line Чек 82 20.10.2024 10:42 [10:42:20]line Смена: 170 ФФД: 1.0 [10:42:20]line ЗНМ: 0300000020 [10:42:20]line РНМ: 0000000000161154 [10:42:20]line Версия ККМ: v1.0 [10:42:20]line ФМ: 0000000000963323 [10:42:20]line ФД: 73756 [10:42:20]line ФПД: 60243115745116 [10:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104220&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73756&fm=60243115745116&tin=02508201610067®Number=0000000000161154&sum=11000 [10:42:21]line 0 [10:42:21]OFD Sender: Processing packet 73756 [packets to send 15, broken 14] [10:42:21]ProducePacketName [10:42:21]name=ofd_packets/00073756 [10:42:21]OFD Sender: To server: pG, [10:42:21]CommunicateWithHost lk.salyk.kg:30040 [10:42:21]ConnectInit lk.salyk.kg [10:42:21]written 0, free lines is 4095 [10:42:21]Connected sock=10 [10:42:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 ED F8 31 01 D1 12 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 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 52 00 00 00 F4 03 04 00 8C DE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 20 01 00 35 04 06 00 36 CA 71 83 9F 5C 08 41 02 10 0C 03 14 09 [10:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 A4 47 00 72 62 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 39 36 33 33 32 33 10 04 04 00 1C 20 01 00 F4 03 04 00 71 87 14 67 B6 04 01 00 00 46 A8 F8 FF CF 59 5E 0C [10:42:21]CommunicateWithHost err = 0 [10:42:21]CheckOFDResponse [10:42:21]1017 (14) - 77093643461234 [10:42:21]1041 (16) - 0000000000963323 [10:42:21]1040 (4) - 73756 [10:42:21]1012 (4) - 20.10.2024 04:30 [10:42:21]1206 (1) - 0 [10:42:21]OFD Sender: Remove packet 73756 [10:42:21]ProducePacketName [10:42:21]name=ofd_packets/00073756 [10:42:21]NVStorageDeleteData [10:42:21]Write to MH i2c: 01 00 00 9F 0F AE [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 07 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 CF 0C 90 [10:42:21]RasterBufferAndPrint [10:42:21]line [10:42:21]line [10:42:21]line [10:42:21]line [10:42:21]line [10:42:21]written 0, free lines is 3283 [10:42:21]MH_Cut [10:42:21]Write to MH i2c: D1 01 00 A6 0F 01 87 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: D1 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: D1 01 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: D1 01 00 A6 0F 00 86 [10:42:21]Write to MH i2c: 01 00 00 A7 0F B6 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]OFD Sender: No OFD packet to send [10:42:22]*** Cut start [10:42:22]*** Partial cut [10:42:22]*** CUTSNS_PIN = 1 [10:42:22]*** CUTSNS_PIN = 0 [10:42:22]*** Brake cut motor [10:42:23]Read from MH i2c: 01 [10:42:23]MH_I2C_Read... [10:42:23]*** Stop cut motor [10:42:23]*** Cut end [10:42:23]Read from MH i2c: 01 07 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 FF 0F CB [10:42:23]process_action close_receipt done [10:42:23]requested_data is exist [10:42:23]produce_requested_data [10:42:23]requested_item fm.sn is exist - process it [10:42:23]wFMCommunicate request_size=4 [10:42:23]MH_SAM_APDU [10:42:23]CAPDU: 80 11 00 00 [10:42:23]Write to MH i2c: E2 08 00 A8 0F 80 11 00 00 00 00 00 00 31 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:23]Read from MH i2c: E2 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 17 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 17 00 A8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7E [10:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:42:23]wFMCommunicate OK [10:42:23]requested_item fd.num is exist - process it [10:42:23]SAM_PROTO_GetFieldsCounters [10:42:23]wFMCommunicate request_size=4 [10:42:23]MH_SAM_APDU [10:42:23]CAPDU: 80 13 00 00 [10:42:23]Write to MH i2c: E2 08 00 A9 0F 80 13 00 00 00 00 00 00 34 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:23]Read from MH i2c: E2 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 62 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 62 00 A9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 20 01 00 0E 04 04 00 AA 00 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 25 [10:42:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 20 01 00 0E 04 04 00 AA 00 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 [10:42:23]wFMCommunicate OK [10:42:23]SAM_PROTO_GetFieldsCounters done [10:42:23]requested_item shift.num is exist - process it [10:42:23]requested_item shift.opened is exist - process it [10:42:23]req_shift_opened [10:42:23]FM_GetShiftState [10:42:23]SAM_PROTO_GetShiftState [10:42:23]wFMCommunicate request_size=4 [10:42:23]MH_SAM_APDU [10:42:23]CAPDU: 80 13 01 00 [10:42:23]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:23]Read from MH i2c: E2 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 0E 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7B [10:42:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:42:23]wFMCommunicate OK [10:42:23]SAM_PROTO_GetShiftState done [10:42:23]FM_GetShiftState done [10:42:23]req_shift_opened done [10:42:23]requested_item shift.open_date is exist - process it [10:42:23]req_shift_open_date [10:42:23]req_shift_open_date done [10:42:23]produce_requested_data done [10:42:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73756,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:42:23]process_action_free close_receipt [10:42:23]json_value_free [10:42:23]json_value_free done [10:42:23]process_json_proto returns [10:42:23]Send response to host [10:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73756,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:42:23]free response buf [10:42:23]execute_script done [10:42:23]execute_script returns [10:42:23]free content buf [10:42:23]Sock 8.Close socket [10:42:23]Sock 8.Thread stoped [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:56]OFD Sender: No OFD packet to send [10:44:01]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:43]accept exits with 9 [10:46:43]New connection [10:46:43]New thread 3067432292 created [10:46:43]Thread 3067575652 joined [10:46:43]Waiting for new connection... [10:46:43] Sock 9.Parse request [10:46:43]Sock 9.Check first char [10:46:43]Sock 9.First char is OK [10:46:43]request: POST /json_proto HTTP/1.0 [10:46:43]Method: POST [10:46:43]URL: /json_proto [10:46:43]Method is POST - this is cgi request [10:46:43]url: /json_proto [10:46:43]query_string will be loaded in cgi processing [10:46:43]execute_cgi json_proto POST (null) [10:46:43]execute_cgi path=json_proto method=POST [10:46:43]POST find Content-Length [10:46:43]Host: 172.17.44.196:8080 [10:46:43]Content-Length: 679 [10:46:43]Content-Type: application/json [10:46:43] [10:46:43]POST finish read [10:46:43]Found Content-Length = 679 [10:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962831", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:43]execute_script... [10:46: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 : (1)1962831", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:43]POST & json_proto [10:46:43]process_json_proto [10:46:43]json parsed OK: [10:46:43]protocol is kg_v1.0 [10:46:43]action value=close_receipt [10:46:43]process_action close_receipt [10:46:43]cmd_close_receipt [10:46:43]MH_GetDate [10:46:43]Write to MH i2c: F0 00 00 AB 0F A9 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: F0 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: F0 09 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: F0 09 00 AB 0F 00 94 DF 14 67 E7 19 F8 65 FD [10:46:43]GetLastDocTimeStamp 1729420940 [10:46:43]current date 1729421204 [10:46:43]FM_GetShiftState [10:46:43]SAM_PROTO_GetShiftState [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 13 01 00 [10:46:43]Write to MH i2c: E2 08 00 AC 0F 80 13 01 00 00 00 00 00 38 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 AC 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7D [10:46:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_GetShiftState done [10:46:43]FM_GetShiftState done [10:46:43]opened in 1729384303 [10:46:43]opened+sec_in_day 1729470703 [10:46:43]quantity*price = 70044 [10:46:43]sum+1 = 70045 [10:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 83 20.10.2024 10:46 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73757 ФПД: 230324709761830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104644&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73757&fm=230324709761830&tin=02508201610067®Number=0000000000161154&sum=70000 [10:46:44]StoreToDocumentArchive [10:46:44]shift 170 fd 73757 [10:46:44]save to /storage/0170/doc_00073757 [10:46:44]save last doc name /storage/0170/doc_00073757 to /storage/kkm_last_doc_name [10:46:44]save OK [10:46:44]Clear old archive folders... [10:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:44]tlvbuf is 002F4190 [10:46:44]SAM_PROTO_ClearQueue [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 09 00 00 [10:46:44]Write to MH i2c: E2 08 00 B9 0F 80 09 00 00 00 00 00 00 3A [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_ClearQueue done [10:46:44]KKMCreateOFDPacket [10:46:44]OFDProtocolAddRootSTLVToBuf [10:46:44]FM_MakeSignedData [10:46:44]FM_MakeSignedData [10:46:44]SAM_PROTO_SignData [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 01 02 [10:46:44]Write to MH i2c: E2 08 00 BA 0F 80 0D 01 02 00 00 00 00 42 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=255 [10:46:44]MH_SAM_APDU [10:46:44]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 94 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 20 01 00 35 04 06 00 D1 [10:46:44]Write to MH i2c: E2 02 01 BB 0F 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 94 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 20 01 00 35 04 06 00 D1 00 00 CE [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=10 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 02 02 05 7A A6 82 23 26 [10:46:44]Write to MH i2c: E2 0D 00 BC 0F 80 0D 02 02 05 00 7A A6 82 23 26 00 00 3A [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 03 02 [10:46:44]Write to MH i2c: E2 08 00 BD 0F 80 0D 03 02 00 00 00 00 47 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0B 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0B 00 BD 0F 00 FC 2B A0 00 1C 39 4F 15 90 00 C8 [10:46:44]RAPDU: FC 2B A0 00 1C 39 4F 15 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_SignData done [10:46:44]FM_MakeSignedData done [10:46:44]CreateOFDProtocolMessage [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 11 00 00 [10:46:44]Write to MH i2c: E2 08 00 BE 0F 80 11 00 00 00 00 00 00 47 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 BE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 94 [10:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:44]wFMCommunicate OK [10:46:44]CreateOFDProtocolMessage done [10:46:44]OFDSenderStorePacket 73757 [10:46:44]StoreOFDPacket docnum=73757 [10:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E2 2C 07 01 DF 56 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 94 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 20 01 00 35 04 06 00 D1 7A A6 82 23 26 FC 2B A0 00 1C 39 4F 15 [10:46:44]CheckFolder [10:46:44]dirname=/storage/ofd_packets [10:46:44]CheckFolder done [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00073757 [10:46:44]NVStorageSaveData ofd_packets/00073757 [10:46:44]File name is /storage/ofd_packets/00073757 [10:46:44]Write 301 bytes [10:46:44]NVStorageSaveData done [10:46:44]OFDSenderStorePacket done [10:46:44]KKMCreateOFDPacket done [10:46:44]NVStorageSaveData kkm_last_timestamp [10:46:44]File name is /storage/kkm_last_timestamp [10:46:44]Write 4 bytes [10:46:44]NVStorageSaveData done [10:46:44]ExternCall_PrintAddStr [10:46:44]wPrintStart [10:46:44]Write to MH i2c: 01 00 00 BF 0F CE [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 FF 0F E3 [10:46:44]RasterBufferAndPrint [10:46:44]line Счет N : (1)1962831 [10:46:44]line ИНН: 02508201610067 [10:46:44]line Контрольно-Кассовый Чек [10:46:44]line ПРОДАЖА [10:46:44]line ТРК (МРК, ГНК) : 33 [10:46:44]line Товар: 2710124130 [10:46:44]line Аи-92-К-5 [10:46:44]line 10.470 * 66.90 [10:46:44]line = 700.44 [10:46:44]line НДС 12% НСП 1% [10:46:44]line > о реализуемом товаре [10:46:44]line ОКРУГЛЕНИЕ: -0.44 [10:46:44]line ИТОГО: 700.00 [10:46:44]line Внесено: 700.00 [10:46:44]line СДАЧА: 0.00 [10:46:44]line НСП 1% : 6.20 [10:46:44]line НДС 12% : 74.38 [10:46:44]line Наличными: 700.00 [10:46:44]line Безнал.: 0.00 [10:46:44]line Место: АЗС № 133 "Партнер Нефть" [10:46:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:46:44]line СНО: Общий режим [10:46:44]line Чек 83 20.10.2024 10:46 [10:46:44]line Смена: 170 ФФД: 1.0 [10:46:44]line ЗНМ: 0300000020 [10:46:44]line РНМ: 0000000000161154 [10:46:44]line Версия ККМ: v1.0 [10:46:44]line ФМ: 0000000000963323 [10:46:44]line ФД: 73757 [10:46:44]line ФПД: 230324709761830 [10:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104644&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73757&fm=230324709761830&tin=02508201610067®Number=0000000000161154&sum=70000 [10:46:45]OFD Sender: Processing packet 73757 [packets to send 15, broken 14] [10:46:45]ProducePacketName [10:46:45]name=ofd_packets/00073757 [10:46:45]OFD Sender: To server: pG, [10:46:45]CommunicateWithHost lk.salyk.kg:30040 [10:46:45]ConnectInit lk.salyk.kg [10:46:45]written 0, free lines is 4095 [10:46:45]Write to MH i2c: 01 00 00 E9 0F F8 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 AE 0C B9 [10:46:45]RasterBufferAndPrint [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]written 0, free lines is 3249 [10:46:45]MH_Cut [10:46:45]Write to MH i2c: D1 01 00 F0 0F 01 D1 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 F0 0F 00 D0 [10:46:45]Write to MH i2c: 01 00 00 F1 0F 00 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:46]*** Cut start [10:46:46]*** Partial cut [10:46:46]*** CUTSNS_PIN = 1 [10:46:46]*** CUTSNS_PIN = 0 [10:46:46]*** Brake cut motor [10:46:47]Read from MH i2c: 01 [10:46:47]MH_I2C_Read... [10:46:47]*** Stop cut motor [10:46:47]*** Cut end [10:46:47]Read from MH i2c: 01 07 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 07 00 F1 0F 00 00 00 00 00 FF 0F 15 [10:46:47]process_action close_receipt done [10:46:47]requested_data is exist [10:46:47]produce_requested_data [10:46:47]requested_item fm.sn is exist - process it [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 11 00 00 [10:46:47]Write to MH i2c: E2 08 00 F2 0F 80 11 00 00 00 00 00 00 7B [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 17 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 17 00 F2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [10:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:47]wFMCommunicate OK [10:46:47]requested_item fd.num is exist - process it [10:46:47]SAM_PROTO_GetFieldsCounters [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 13 00 00 [10:46:47]Write to MH i2c: E2 08 00 F3 0F 80 13 00 00 00 00 00 00 7E [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 62 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 62 00 F3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 20 01 00 0E 04 04 00 AA 00 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 73 [10:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 20 01 00 0E 04 04 00 AA 00 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 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetFieldsCounters done [10:46:47]requested_item shift.num is exist - process it [10:46:47]requested_item shift.opened is exist - process it [10:46:47]req_shift_opened [10:46:47]FM_GetShiftState [10:46:47]SAM_PROTO_GetShiftState [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 13 01 00 [10:46:47]Write to MH i2c: E2 08 00 F4 0F 80 13 01 00 00 00 00 00 80 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 F4 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C5 [10:46:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetShiftState done [10:46:47]FM_GetShiftState done [10:46:47]req_shift_opened done [10:46:47]requested_item shift.open_date is exist - process it [10:46:47]req_shift_open_date [10:46:47]req_shift_open_date done [10:46:47]produce_requested_data done [10:46:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73757,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:46:47]process_action_free close_receipt [10:46:47]json_value_free [10:46:47]json_value_free done [10:46:47]process_json_proto returns [10:46:47]Send response to host [10:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73757,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:46:47]free response buf [10:46:47]execute_script done [10:46:47]execute_script returns [10:46:47]free content buf [10:46:47]Sock 9.Close socket [10:46:47]Sock 9.Thread stoped [10:46:51]accept exits with 8 [10:46:51]New connection [10:46:51]New thread 3067575652 created [10:46:51]Thread 3067432292 joined [10:46:51]Waiting for new connection... [10:46:51] Sock 8.Parse request [10:46:51]Sock 8.Check first char [10:46:51]Sock 8.First char is OK [10:46:51]request: POST /json_proto HTTP/1.0 [10:46:51]Method: POST [10:46:51]URL: /json_proto [10:46:51]Method is POST - this is cgi request [10:46:51]url: /json_proto [10:46:51]query_string will be loaded in cgi processing [10:46:51]execute_cgi json_proto POST (null) [10:46:51]execute_cgi path=json_proto method=POST [10:46:51]POST find Content-Length [10:46:51]Host: 172.17.44.196:8080 [10:46:51]Content-Length: 621 [10:46:51]Content-Type: application/json [10:46:51] [10:46:51]POST finish read [10:46:51]Found Content-Length = 621 [10:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:51]execute_script... [10:46: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 : (1)1962832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:51]POST & json_proto [10:46:51]process_json_proto [10:46:51]json parsed OK: [10:46:51]protocol is kg_v1.0 [10:46:51]action value=close_receipt [10:46:51]process_action close_receipt [10:46:51]cmd_close_receipt [10:46:51]MH_GetDate [10:46:51]Write to MH i2c: F0 00 00 F5 0F F3 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: F0 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: F0 09 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: F0 09 00 F5 0F 00 9C DF 14 67 E7 19 F8 65 4F [10:46:51]GetLastDocTimeStamp 1729421204 [10:46:51]current date 1729421212 [10:46:51]FM_GetShiftState [10:46:51]SAM_PROTO_GetShiftState [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 13 01 00 [10:46:51]Write to MH i2c: E2 08 00 F6 0F 80 13 01 00 00 00 00 00 82 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 F6 0F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C7 [10:46:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_GetShiftState done [10:46:51]FM_GetShiftState done [10:46:51]opened in 1729384303 [10:46:51]opened+sec_in_day 1729470703 [10:46:51]quantity*price = 50000 [10:46:51]sum+1 = 50001 [10:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 84 20.10.2024 10:46 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73758 ФПД: 125795496638067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104652&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73758&fm=125795496638067&tin=02508201610067®Number=0000000000161154&sum=50000 [10:46:52]StoreToDocumentArchive [10:46:52]shift 170 fd 73758 [10:46:52]save to /storage/0170/doc_00073758 [10:46:52]save last doc name /storage/0170/doc_00073758 to /storage/kkm_last_doc_name [10:46:52]save OK [10:46:52]Clear old archive folders... [10:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:46:52]tlvbuf is 00335710 [10:46:52]SAM_PROTO_ClearQueue [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 09 00 00 [10:46:52]Write to MH i2c: E2 08 00 03 10 80 09 00 00 00 00 00 00 85 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_ClearQueue done [10:46:52]KKMCreateOFDPacket [10:46:52]OFDProtocolAddRootSTLVToBuf [10:46:52]FM_MakeSignedData [10:46:52]FM_MakeSignedData [10:46:52]SAM_PROTO_SignData [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 01 02 [10:46:52]Write to MH i2c: E2 08 00 04 10 80 0D 01 02 00 00 00 00 8D [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=253 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 54 00 00 00 F4 03 04 00 9C DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 20 01 00 35 04 06 00 72 69 0B E4 36 73 [10:46:52]Write to MH i2c: E2 00 01 05 10 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 54 00 00 00 F4 03 04 00 9C DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 20 01 00 35 04 06 00 72 69 0B E4 36 73 00 00 20 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 05 10 00 90 00 89 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 03 02 [10:46:52]Write to MH i2c: E2 08 00 06 10 80 0D 03 02 00 00 00 00 91 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:53]Read from MH i2c: E2 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 0B 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 0B 00 06 10 00 35 F6 67 F4 6D 65 41 90 90 00 BB [10:46:53]RAPDU: 35 F6 67 F4 6D 65 41 90 90 00 [10:46:53]wFMCommunicate OK [10:46:53]SAM_PROTO_SignData done [10:46:53]FM_MakeSignedData done [10:46:53]CreateOFDProtocolMessage [10:46:53]wFMCommunicate request_size=4 [10:46:53]MH_SAM_APDU [10:46:53]CAPDU: 80 11 00 00 [10:46:53]Write to MH i2c: E2 08 00 07 10 80 11 00 00 00 00 00 00 91 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:53]Read from MH i2c: E2 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 17 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 17 00 07 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DE [10:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:53]wFMCommunicate OK [10:46:53]CreateOFDProtocolMessage done [10:46:53]OFDSenderStorePacket 73758 [10:46:53]StoreOFDPacket docnum=73758 [10:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 DA 5D 00 01 67 16 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 54 00 00 00 F4 03 04 00 9C DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 20 01 00 35 04 06 00 72 69 0B E4 36 73 35 F6 67 F4 6D 65 41 90 [10:46:53]CheckFolder [10:46:53]dirname=/storage/ofd_packets [10:46:53]CheckFolder done [10:46:53]ProducePacketName [10:46:53]name=ofd_packets/00073758 [10:46:53]NVStorageSaveData ofd_packets/00073758 [10:46:53]File name is /storage/ofd_packets/00073758 [10:46:53]Write 294 bytes [10:46:53]NVStorageSaveData done [10:46:53]OFDSenderStorePacket done [10:46:53]KKMCreateOFDPacket done [10:46:53]NVStorageSaveData kkm_last_timestamp [10:46:53]File name is /storage/kkm_last_timestamp [10:46:53]Write 4 bytes [10:46:53]NVStorageSaveData done [10:46:53]ExternCall_PrintAddStr [10:46:53]wPrintStart [10:46:53]Write to MH i2c: 01 00 00 08 10 18 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 08 10 00 00 00 00 00 FF 0F 2D [10:46:53]RasterBufferAndPrint [10:46:53]line Счет N : (1)1962832 [10:46:53]line ИНН: 02508201610067 [10:46:53]line Контрольно-Кассовый Чек [10:46:53]line ПРОДАЖА [10:46:53]line ТРК (МРК, ГНК) : 42 [10:46:53]line Товар: 2710124130 [10:46:53]line SU-92 [10:46:53]line 7.310 * 68.40 [10:46:53]line = 500.00 [10:46:53]line НДС 12% НСП 1% [10:46:53]line > о реализуемом товаре [10:46:53]line ИТОГО: 500.00 [10:46:53]line НСП 1% : 4.42 [10:46:53]line НДС 12% : 53.10 [10:46:53]line Наличными: 500.00 [10:46:53]line Безнал.: 0.00 [10:46:53]line Место: АЗС № 133 "Партнер Нефть" [10:46:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:46:53]line СНО: Общий режим [10:46:53]line Чек 84 20.10.2024 10:46 [10:46:53]line Смена: 170 ФФД: 1.0 [10:46:53]line ЗНМ: 0300000020 [10:46:53]line РНМ: 0000000000161154 [10:46:53]line Версия ККМ: v1.0 [10:46:53]line ФМ: 0000000000963323 [10:46:53]line ФД: 73758 [10:46:53]line ФПД: 125795496638067 [10:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104652&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73758&fm=125795496638067&tin=02508201610067®Number=0000000000161154&sum=50000 [10:46:53]written 0, free lines is 4095 [10:46:53]Write to MH i2c: 01 00 00 2F 10 3F [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 ED 0C 3F [10:46:53]RasterBufferAndPrint [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]written 0, free lines is 3313 [10:46:53]MH_Cut [10:46:53]Write to MH i2c: D1 01 00 36 10 01 18 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 36 10 00 17 [10:46:53]Write to MH i2c: 01 00 00 37 10 47 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:54]*** Cut start [10:46:54]*** Partial cut [10:46:54]*** CUTSNS_PIN = 1 [10:46:54]*** CUTSNS_PIN = 0 [10:46:54]*** Brake cut motor [10:46:54]Read from MH i2c: 01 [10:46:54]MH_I2C_Read... [10:46:54]*** Stop cut motor [10:46:54]*** Cut end [10:46:54]Read from MH i2c: 01 07 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 FF 0F 5C [10:46:54]process_action close_receipt done [10:46:54]requested_data is exist [10:46:54]produce_requested_data [10:46:54]requested_item fm.sn is exist - process it [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 11 00 00 [10:46:54]Write to MH i2c: E2 08 00 38 10 80 11 00 00 00 00 00 00 C2 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 17 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 17 00 38 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0F [10:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:55]wFMCommunicate OK [10:46:55]requested_item fd.num is exist - process it [10:46:55]SAM_PROTO_GetFieldsCounters [10:46:55]wFMCommunicate request_size=4 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 13 00 00 [10:46:55]Write to MH i2c: E2 08 00 39 10 80 13 00 00 00 00 00 00 C5 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 62 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 62 00 39 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 20 01 00 0E 04 04 00 AA 00 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 BE [10:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 20 01 00 0E 04 04 00 AA 00 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 [10:46:55]wFMCommunicate OK [10:46:55]SAM_PROTO_GetFieldsCounters done [10:46:55]requested_item shift.num is exist - process it [10:46:55]requested_item shift.opened is exist - process it [10:46:55]req_shift_opened [10:46:55]FM_GetShiftState [10:46:55]SAM_PROTO_GetShiftState [10:46:55]wFMCommunicate request_size=4 [10:46:55]MH_SAM_APDU [10:46:55]CAPDU: 80 13 01 00 [10:46:55]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [10:46:55]Write i2c OK [10:46:55]MH_I2C_Read... [10:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:55]Read from MH i2c: E2 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 0E 00 [10:46:55]MH_I2C_Read... [10:46:55]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0C [10:46:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:46:55]wFMCommunicate OK [10:46:55]SAM_PROTO_GetShiftState done [10:46:55]FM_GetShiftState done [10:46:55]req_shift_opened done [10:46:55]requested_item shift.open_date is exist - process it [10:46:55]req_shift_open_date [10:46:55]req_shift_open_date done [10:46:55]produce_requested_data done [10:46:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73758,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:46:55]process_action_free close_receipt [10:46:55]json_value_free [10:46:55]json_value_free done [10:46:55]process_json_proto returns [10:46:55]Send response to host [10:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73758,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:46:55]free response buf [10:46:55]execute_script done [10:46:55]execute_script returns [10:46:55]free content buf [10:46:55]Sock 8.Close socket [10:46:55]Sock 8.Thread stoped [10:47:07]accept exits with 9 [10:47:07]New connection [10:47:07]New thread 3067432292 created [10:47:07]Thread 3067575652 joined [10:47:07]Waiting for new connection... [10:47:07] Sock 9.Parse request [10:47:07]Sock 9.Check first char [10:47:07]Sock 9.First char is OK [10:47:07]request: POST /json_proto HTTP/1.0 [10:47:07]Method: POST [10:47:07]URL: /json_proto [10:47:07]Method is POST - this is cgi request [10:47:07]url: /json_proto [10:47:07]query_string will be loaded in cgi processing [10:47:07]execute_cgi json_proto POST (null) [10:47:07]execute_cgi path=json_proto method=POST [10:47:07]POST find Content-Length [10:47:07]Host: 172.17.44.196:8080 [10:47:07]Content-Length: 678 [10:47:07]Content-Type: application/json [10:47:07] [10:47:07]POST finish read [10:47:07]Found Content-Length = 678 [10:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962834", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:47:07]execute_script... [10:47: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 : (1)1962834", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:47:07]POST & json_proto [10:47:07]process_json_proto [10:47:07]json parsed OK: [10:47:07]protocol is kg_v1.0 [10:47:07]action value=close_receipt [10:47:07]process_action close_receipt [10:47:07]cmd_close_receipt [10:47:07]MH_GetDate [10:47:07]Write to MH i2c: F0 00 00 3B 10 3A [10:47:07]Write i2c OK [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: F0 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: F0 09 00 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: F0 09 00 3B 10 00 AC DF 14 67 E7 19 F8 65 A6 [10:47:07]GetLastDocTimeStamp 1729421212 [10:47:07]current date 1729421228 [10:47:07]FM_GetShiftState [10:47:07]SAM_PROTO_GetShiftState [10:47:07]wFMCommunicate request_size=4 [10:47:07]MH_SAM_APDU [10:47:07]CAPDU: 80 13 01 00 [10:47:07]Write to MH i2c: E2 08 00 3C 10 80 13 01 00 00 00 00 00 C9 [10:47:07]Write i2c OK [10:47:07]MH_I2C_Read... [10:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:07]Read from MH i2c: E2 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: E2 0E 00 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: E2 0E 00 3C 10 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0E [10:47:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:07]wFMCommunicate OK [10:47:07]SAM_PROTO_GetShiftState done [10:47:07]FM_GetShiftState done [10:47:07]opened in 1729384303 [10:47:07]opened+sec_in_day 1729470703 [10:47:07]quantity*price = 50041 [10:47:07]sum+1 = 50042 [10:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 85 20.10.2024 10:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73759 ФПД: 4048294629973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104709&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73759&fm=4048294629973&tin=02508201610067®Number=0000000000161154&sum=50000 [10:47:08]StoreToDocumentArchive [10:47:08]shift 170 fd 73759 [10:47:08]save to /storage/0170/doc_00073759 [10:47:08]save last doc name /storage/0170/doc_00073759 to /storage/kkm_last_doc_name [10:47:08]save OK [10:47:08]Clear old archive folders... [10:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:08]tlvbuf is B6F401F0 [10:47:08]SAM_PROTO_ClearQueue [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 09 00 00 [10:47:08]Write to MH i2c: E2 08 00 49 10 80 09 00 00 00 00 00 00 CB [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [10:47:09]RAPDU: 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_ClearQueue done [10:47:09]KKMCreateOFDPacket [10:47:09]OFDProtocolAddRootSTLVToBuf [10:47:09]FM_MakeSignedData [10:47:09]FM_MakeSignedData [10:47:09]SAM_PROTO_SignData [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 0D 01 02 [10:47:09]Write to MH i2c: E2 08 00 4A 10 80 0D 01 02 00 00 00 00 D3 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [10:47:09]RAPDU: 90 00 [10:47:09]wFMCommunicate OK [10:47:09]wFMCommunicate request_size=255 [10:47:09]MH_SAM_APDU [10:47:09]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 55 00 00 00 F4 03 04 00 AD DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 20 01 00 35 04 06 00 03 [10:47:09]Write to MH i2c: E2 02 01 4B 10 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 55 00 00 00 F4 03 04 00 AD DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 20 01 00 35 04 06 00 03 00 00 9E [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [10:47:09]RAPDU: 90 00 [10:47:09]wFMCommunicate OK [10:47:09]wFMCommunicate request_size=10 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 0D 02 02 05 AE 91 29 D2 55 [10:47:09]Write to MH i2c: E2 0D 00 4C 10 80 0D 02 02 05 00 AE 91 29 D2 55 00 00 6F [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [10:47:09]RAPDU: 90 00 [10:47:09]wFMCommunicate OK [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 0D 03 02 [10:47:09]Write to MH i2c: E2 08 00 4D 10 80 0D 03 02 00 00 00 00 D8 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0B 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0B 00 4D 10 00 1B D6 10 5C 62 6A 87 94 90 00 1D [10:47:09]RAPDU: 1B D6 10 5C 62 6A 87 94 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_SignData done [10:47:09]FM_MakeSignedData done [10:47:09]CreateOFDProtocolMessage [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 11 00 00 [10:47:09]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [10:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:09]wFMCommunicate OK [10:47:09]CreateOFDProtocolMessage done [10:47:09]OFDSenderStorePacket 73759 [10:47:09]StoreOFDPacket docnum=73759 [10:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 03 46 07 01 E4 A4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 55 00 00 00 F4 03 04 00 AD DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 20 01 00 35 04 06 00 03 AE 91 29 D2 55 1B D6 10 5C 62 6A 87 94 [10:47:09]CheckFolder [10:47:09]dirname=/storage/ofd_packets [10:47:09]CheckFolder done [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00073759 [10:47:09]NVStorageSaveData ofd_packets/00073759 [10:47:09]File name is /storage/ofd_packets/00073759 [10:47:09]Write 301 bytes [10:47:09]NVStorageSaveData done [10:47:09]OFDSenderStorePacket done [10:47:09]KKMCreateOFDPacket done [10:47:09]NVStorageSaveData kkm_last_timestamp [10:47:09]File name is /storage/kkm_last_timestamp [10:47:09]Write 4 bytes [10:47:09]NVStorageSaveData done [10:47:09]ExternCall_PrintAddStr [10:47:09]wPrintStart [10:47:09]Write to MH i2c: 01 00 00 4F 10 5F [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 4F 10 00 00 00 00 00 FF 0F 74 [10:47:09]RasterBufferAndPrint [10:47:09]line Счет N : (1)1962834 [10:47:09]line ИНН: 02508201610067 [10:47:09]line Контрольно-Кассовый Чек [10:47:09]line ПРОДАЖА [10:47:09]line ТРК (МРК, ГНК) : 53 [10:47:09]line Товар: 2710124130 [10:47:09]line Аи-92-К-5 [10:47:09]line 7.480 * 66.90 [10:47:09]line = 500.41 [10:47:09]line НДС 12% НСП 1% [10:47:09]line > о реализуемом товаре [10:47:09]line ОКРУГЛЕНИЕ: -0.41 [10:47:09]line ИТОГО: 500.00 [10:47:09]line Внесено: 500.00 [10:47:09]line СДАЧА: 0.00 [10:47:09]line НСП 1% : 4.43 [10:47:09]line НДС 12% : 53.14 [10:47:09]line Наличными: 500.00 [10:47:09]line Безнал.: 0.00 [10:47:09]line Место: АЗС № 133 "Партнер Нефть" [10:47:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:09]line СНО: Общий режим [10:47:09]line Чек 85 20.10.2024 10:47 [10:47:09]line Смена: 170 ФФД: 1.0 [10:47:09]line ЗНМ: 0300000020 [10:47:09]line РНМ: 0000000000161154 [10:47:09]line Версия ККМ: v1.0 [10:47:09]line ФМ: 0000000000963323 [10:47:09]line ФД: 73759 [10:47:09]line ФПД: 4048294629973 [10:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104709&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73759&fm=4048294629973&tin=02508201610067®Number=0000000000161154&sum=50000 [10:47:09]written 0, free lines is 4095 [10:47:10]Write to MH i2c: 01 00 00 79 10 89 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 07 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 07 00 79 10 00 00 00 00 00 AF 0C 4B [10:47:10]RasterBufferAndPrint [10:47:10]line [10:47:10]line [10:47:10]line [10:47:10]line [10:47:10]line [10:47:10]written 0, free lines is 3253 [10:47:10]MH_Cut [10:47:10]Write to MH i2c: D1 01 00 80 10 01 62 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: D1 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: D1 01 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: D1 01 00 80 10 00 61 [10:47:10]Write to MH i2c: 01 00 00 81 10 91 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:11]*** Cut start [10:47:11]*** Partial cut [10:47:11]*** CUTSNS_PIN = 1 [10:47:11]*** CUTSNS_PIN = 0 [10:47:11]*** Brake cut motor [10:47:11]Read from MH i2c: 01 [10:47:11]MH_I2C_Read... [10:47:11]*** Stop cut motor [10:47:11]*** Cut end [10:47:11]Read from MH i2c: 01 07 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 07 00 81 10 00 00 00 00 00 FF 0F A6 [10:47:11]process_action close_receipt done [10:47:11]requested_data is exist [10:47:11]produce_requested_data [10:47:11]requested_item fm.sn is exist - process it [10:47:11]wFMCommunicate request_size=4 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 11 00 00 [10:47:11]Write to MH i2c: E2 08 00 82 10 80 11 00 00 00 00 00 00 0C [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 17 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 17 00 82 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 59 [10:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:11]wFMCommunicate OK [10:47:11]requested_item fd.num is exist - process it [10:47:11]SAM_PROTO_GetFieldsCounters [10:47:11]wFMCommunicate request_size=4 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 13 00 00 [10:47:11]Write to MH i2c: E2 08 00 83 10 80 13 00 00 00 00 00 00 0F [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 62 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 62 00 83 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 20 01 00 0E 04 04 00 AA 00 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 0C [10:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 20 01 00 0E 04 04 00 AA 00 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 [10:47:12]wFMCommunicate OK [10:47:12]SAM_PROTO_GetFieldsCounters done [10:47:12]requested_item shift.num is exist - process it [10:47:12]requested_item shift.opened is exist - process it [10:47:12]req_shift_opened [10:47:12]FM_GetShiftState [10:47:12]SAM_PROTO_GetShiftState [10:47:12]wFMCommunicate request_size=4 [10:47:12]MH_SAM_APDU [10:47:12]CAPDU: 80 13 01 00 [10:47:12]Write to MH i2c: E2 08 00 84 10 80 13 01 00 00 00 00 00 11 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:12]Read from MH i2c: E2 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 0E 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: E2 0E 00 84 10 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 56 [10:47:12]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:12]wFMCommunicate OK [10:47:12]SAM_PROTO_GetShiftState done [10:47:12]FM_GetShiftState done [10:47:12]req_shift_opened done [10:47:12]requested_item shift.open_date is exist - process it [10:47:12]req_shift_open_date [10:47:12]req_shift_open_date done [10:47:12]produce_requested_data done [10:47:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73759,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:47:12]process_action_free close_receipt [10:47:12]json_value_free [10:47:12]json_value_free done [10:47:12]process_json_proto returns [10:47:12]Send response to host [10:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73759,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:47:12]free response buf [10:47:12]execute_script done [10:47:12]execute_script returns [10:47:12]free content buf [10:47:12]Sock 9.Close socket [10:47:12]Sock 9.Thread stoped [10:47:30]accept exits with 8 [10:47:30]New connection [10:47:30]New thread 3067575652 created [10:47:30]Thread 3067432292 joined [10:47:30]Waiting for new connection... [10:47:30] Sock 8.Parse request [10:47:30]Sock 8.Check first char [10:47:30]Sock 8.First char is OK [10:47:30]request: POST /json_proto HTTP/1.0 [10:47:30]Method: POST [10:47:30]URL: /json_proto [10:47:30]Method is POST - this is cgi request [10:47:30]url: /json_proto [10:47:30]query_string will be loaded in cgi processing [10:47:30]execute_cgi json_proto POST (null) [10:47:30]execute_cgi path=json_proto method=POST [10:47:30]POST find Content-Length [10:47:30]Host: 172.17.44.196:8080 [10:47:30]Content-Length: 680 [10:47:30]Content-Type: application/json [10:47:30] [10:47:30]POST finish read [10:47:30]Found Content-Length = 680 [10:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:47:30]execute_script... [10:47: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 : (1)1962833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:47:30]POST & json_proto [10:47:30]process_json_proto [10:47:30]json parsed OK: [10:47:30]protocol is kg_v1.0 [10:47:30]action value=close_receipt [10:47:30]process_action close_receipt [10:47:30]cmd_close_receipt [10:47:30]MH_GetDate [10:47:30]Write to MH i2c: F0 00 00 85 10 84 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: F0 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: F0 09 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: F0 09 00 85 10 00 C3 DF 14 67 E7 19 F8 65 07 [10:47:30]GetLastDocTimeStamp 1729421229 [10:47:30]current date 1729421251 [10:47:30]FM_GetShiftState [10:47:30]SAM_PROTO_GetShiftState [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 13 01 00 [10:47:30]Write to MH i2c: E2 08 00 86 10 80 13 01 00 00 00 00 00 13 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 0E 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 0E 00 86 10 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 58 [10:47:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:30]wFMCommunicate OK [10:47:30]SAM_PROTO_GetShiftState done [10:47:30]FM_GetShiftState done [10:47:30]opened in 1729384303 [10:47:30]opened+sec_in_day 1729470703 [10:47:30]quantity*price = 100050 [10:47:30]sum+1 = 100052 [10:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 86 20.10.2024 10:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73760 ФПД: 25918408025527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104731&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73760&fm=25918408025527&tin=02508201610067®Number=0000000000161154&sum=100000 [10:47:31]StoreToDocumentArchive [10:47:31]shift 170 fd 73760 [10:47:31]save to /storage/0170/doc_00073760 [10:47:31]save last doc name /storage/0170/doc_00073760 to /storage/kkm_last_doc_name [10:47:31]save OK [10:47:31]Clear old archive folders... [10:47:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:47:31]tlvbuf is B6F405B0 [10:47:31]SAM_PROTO_ClearQueue [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 09 00 00 [10:47:31]Write to MH i2c: E2 08 00 93 10 80 09 00 00 00 00 00 00 15 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [10:47:31]RAPDU: 90 00 [10:47:31]wFMCommunicate OK [10:47:31]SAM_PROTO_ClearQueue done [10:47:31]KKMCreateOFDPacket [10:47:31]OFDProtocolAddRootSTLVToBuf [10:47:31]FM_MakeSignedData [10:47:31]FM_MakeSignedData [10:47:31]SAM_PROTO_SignData [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 0D 01 02 [10:47:31]Write to MH i2c: E2 08 00 94 10 80 0D 01 02 00 00 00 00 1D [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [10:47:31]RAPDU: 90 00 [10:47:31]wFMCommunicate OK [10:47:31]wFMCommunicate request_size=255 [10:47:31]MH_SAM_APDU [10:47:31]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 56 00 00 00 F4 03 04 00 C3 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 20 01 00 35 04 06 00 17 92 99 80 [10:47:31]Write to MH i2c: E2 02 01 95 10 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 56 00 00 00 F4 03 04 00 C3 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 20 01 00 35 04 06 00 17 92 99 80 00 00 B5 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [10:47:31]RAPDU: 90 00 [10:47:31]wFMCommunicate OK [10:47:31]wFMCommunicate request_size=7 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 0D 02 02 02 E5 B7 [10:47:31]Write to MH i2c: E2 0A 00 96 10 80 0D 02 02 02 00 E5 B7 00 00 C0 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [10:47:31]RAPDU: 90 00 [10:47:31]wFMCommunicate OK [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 0D 03 02 [10:47:31]Write to MH i2c: E2 08 00 97 10 80 0D 03 02 00 00 00 00 22 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 0B 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 0B 00 97 10 00 41 84 76 09 6C 78 32 A3 90 00 20 [10:47:31]RAPDU: 41 84 76 09 6C 78 32 A3 90 00 [10:47:31]wFMCommunicate OK [10:47:31]SAM_PROTO_SignData done [10:47:31]FM_MakeSignedData done [10:47:31]CreateOFDProtocolMessage [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 11 00 00 [10:47:31]Write to MH i2c: E2 08 00 98 10 80 11 00 00 00 00 00 00 22 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 17 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 17 00 98 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6F [10:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:31]wFMCommunicate OK [10:47:31]CreateOFDProtocolMessage done [10:47:31]OFDSenderStorePacket 73760 [10:47:31]StoreOFDPacket docnum=73760 [10:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 29 A0 04 01 D0 1C 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 56 00 00 00 F4 03 04 00 C3 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 20 01 00 35 04 06 00 17 92 99 80 E5 B7 41 84 76 09 6C 78 32 A3 [10:47:31]CheckFolder [10:47:31]dirname=/storage/ofd_packets [10:47:31]CheckFolder done [10:47:31]ProducePacketName [10:47:31]name=ofd_packets/00073760 [10:47:31]NVStorageSaveData ofd_packets/00073760 [10:47:31]File name is /storage/ofd_packets/00073760 [10:47:31]Write 298 bytes [10:47:31]NVStorageSaveData done [10:47:31]OFDSenderStorePacket done [10:47:31]KKMCreateOFDPacket done [10:47:31]NVStorageSaveData kkm_last_timestamp [10:47:31]File name is /storage/kkm_last_timestamp [10:47:31]Write 4 bytes [10:47:31]NVStorageSaveData done [10:47:31]ExternCall_PrintAddStr [10:47:31]wPrintStart [10:47:31]Write to MH i2c: 01 00 00 99 10 A9 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: 01 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: 01 07 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: 01 07 00 99 10 00 00 00 00 00 FF 0F BE [10:47:31]RasterBufferAndPrint [10:47:31]line Счет N : (1)1962833 [10:47:31]line ИНН: 02508201610067 [10:47:31]line Контрольно-Кассовый Чек [10:47:31]line ПРОДАЖА [10:47:31]line ТРК (МРК, ГНК) : 11 [10:47:31]line Товар: 2710194210 [10:47:31]line ДТ-К-5 [10:47:31]line 13.130 * 76.20 [10:47:31]line = 1000.51 [10:47:31]line НДС 12% НСП 1% [10:47:31]line > о реализуемом товаре [10:47:31]line ОКРУГЛЕНИЕ: -0.51 [10:47:31]line ИТОГО: 1000.00 [10:47:31]line Внесено: 1000.00 [10:47:31]line СДАЧА: 0.00 [10:47:31]line НСП 1% : 8.85 [10:47:31]line НДС 12% : 106.25 [10:47:31]line Наличными: 1000.00 [10:47:31]line Безнал.: 0.00 [10:47:31]line Место: АЗС № 133 "Партнер Нефть" [10:47:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:31]line СНО: Общий режим [10:47:31]line Чек 86 20.10.2024 10:47 [10:47:31]line Смена: 170 ФФД: 1.0 [10:47:31]line ЗНМ: 0300000020 [10:47:31]line РНМ: 0000000000161154 [10:47:31]line Версия ККМ: v1.0 [10:47:31]line ФМ: 0000000000963323 [10:47:31]line ФД: 73760 [10:47:31]line ФПД: 25918408025527 [10:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104731&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73760&fm=25918408025527&tin=02508201610067®Number=0000000000161154&sum=100000 [10:47:32]written 0, free lines is 4095 [10:47:32]Write to MH i2c: 01 00 00 C3 10 D3 [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: 01 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: 01 07 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 AF 0C 95 [10:47:32]RasterBufferAndPrint [10:47:32]line [10:47:32]line [10:47:32]line [10:47:32]line [10:47:32]line [10:47:32]written 0, free lines is 3251 [10:47:32]MH_Cut [10:47:32]Write to MH i2c: D1 01 00 CA 10 01 AC [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: D1 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: D1 01 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: D1 01 00 CA 10 00 AB [10:47:32]Write to MH i2c: 01 00 00 CB 10 DB [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:33]*** Cut start [10:47:33]*** Partial cut [10:47:33]*** CUTSNS_PIN = 1 [10:47:33]*** CUTSNS_PIN = 0 [10:47:33]*** Brake cut motor [10:47:34]Read from MH i2c: 01 [10:47:34]MH_I2C_Read... [10:47:34]*** Stop cut motor [10:47:34]*** Cut end [10:47:34]Read from MH i2c: 01 07 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FF 0F F0 [10:47:34]process_action close_receipt done [10:47:34]requested_data is exist [10:47:34]produce_requested_data [10:47:34]requested_item fm.sn is exist - process it [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 11 00 00 [10:47:34]Write to MH i2c: E2 08 00 CC 10 80 11 00 00 00 00 00 00 56 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 17 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 17 00 CC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A3 [10:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:34]wFMCommunicate OK [10:47:34]requested_item fd.num is exist - process it [10:47:34]SAM_PROTO_GetFieldsCounters [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 13 00 00 [10:47:34]Write to MH i2c: E2 08 00 CD 10 80 13 00 00 00 00 00 00 59 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 62 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 62 00 CD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 20 01 00 0E 04 04 00 AA 00 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 5A [10:47:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 20 01 00 0E 04 04 00 AA 00 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 [10:47:34]wFMCommunicate OK [10:47:34]SAM_PROTO_GetFieldsCounters done [10:47:34]requested_item shift.num is exist - process it [10:47:34]requested_item shift.opened is exist - process it [10:47:34]req_shift_opened [10:47:34]FM_GetShiftState [10:47:34]SAM_PROTO_GetShiftState [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 13 01 00 [10:47:34]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 0E 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A0 [10:47:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:34]wFMCommunicate OK [10:47:34]SAM_PROTO_GetShiftState done [10:47:34]FM_GetShiftState done [10:47:34]req_shift_opened done [10:47:34]requested_item shift.open_date is exist - process it [10:47:34]req_shift_open_date [10:47:34]req_shift_open_date done [10:47:34]produce_requested_data done [10:47:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73760,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:47:34]process_action_free close_receipt [10:47:34]json_value_free [10:47:34]json_value_free done [10:47:34]process_json_proto returns [10:47:34]Send response to host [10:47:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73760,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:47:34]free response buf [10:47:34]execute_script done [10:47:34]execute_script returns [10:47:34]free content buf [10:47:34]Sock 8.Close socket [10:47:34]Sock 8.Thread stoped [10:47:38]accept exits with 9 [10:47:38]New connection [10:47:38]New thread 3067432292 created [10:47:38]Thread 3067575652 joined [10:47:38]Waiting for new connection... [10:47:38] Sock 9.Parse request [10:47:38]Sock 9.Check first char [10:47:38]Sock 9.First char is OK [10:47:38]request: POST /json_proto HTTP/1.0 [10:47:38]Method: POST [10:47:38]URL: /json_proto [10:47:38]Method is POST - this is cgi request [10:47:38]url: /json_proto [10:47:38]query_string will be loaded in cgi processing [10:47:38]execute_cgi json_proto POST (null) [10:47:38]execute_cgi path=json_proto method=POST [10:47:38]POST find Content-Length [10:47:38]Host: 172.17.44.196:8080 [10:47:38]Content-Length: 678 [10:47:38]Content-Type: application/json [10:47:38] [10:47:38]POST finish read [10:47:38]Found Content-Length = 678 [10:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:38]execute_script... [10:47: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 : (1)1962835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:38]POST & json_proto [10:47:38]process_json_proto [10:47:38]json parsed OK: [10:47:38]protocol is kg_v1.0 [10:47:38]action value=close_receipt [10:47:38]process_action close_receipt [10:47:38]cmd_close_receipt [10:47:38]MH_GetDate [10:47:38]Write to MH i2c: F0 00 00 CF 10 CE [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: F0 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: F0 09 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: F0 09 00 CF 10 00 CC DF 14 67 E7 19 F8 65 5A [10:47:38]GetLastDocTimeStamp 1729421251 [10:47:38]current date 1729421260 [10:47:38]FM_GetShiftState [10:47:38]SAM_PROTO_GetShiftState [10:47:38]wFMCommunicate request_size=4 [10:47:38]MH_SAM_APDU [10:47:38]CAPDU: 80 13 01 00 [10:47:38]Write to MH i2c: E2 08 00 D0 10 80 13 01 00 00 00 00 00 5D [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:38]Read from MH i2c: E2 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 0E 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 0E 00 D0 10 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A2 [10:47:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:38]wFMCommunicate OK [10:47:38]SAM_PROTO_GetShiftState done [10:47:38]FM_GetShiftState done [10:47:38]opened in 1729384303 [10:47:38]opened+sec_in_day 1729470703 [10:47:38]quantity*price = 22010 [10:47:38]sum+1 = 22011 [10:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 87 20.10.2024 10:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73761 ФПД: 67282536210342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104740&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73761&fm=67282536210342&tin=02508201610067®Number=0000000000161154&sum=22000 [10:47:40]StoreToDocumentArchive [10:47:40]shift 170 fd 73761 [10:47:40]save to /storage/0170/doc_00073761 [10:47:40]save last doc name /storage/0170/doc_00073761 to /storage/kkm_last_doc_name [10:47:40]save OK [10:47:40]Clear old archive folders... [10:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:40]tlvbuf is 003276A0 [10:47:40]SAM_PROTO_ClearQueue [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 09 00 00 [10:47:40]Write to MH i2c: E2 08 00 DD 10 80 09 00 00 00 00 00 00 5F [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_ClearQueue done [10:47:40]KKMCreateOFDPacket [10:47:40]OFDProtocolAddRootSTLVToBuf [10:47:40]FM_MakeSignedData [10:47:40]FM_MakeSignedData [10:47:40]SAM_PROTO_SignData [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 01 02 [10:47:40]Write to MH i2c: E2 08 00 DE 10 80 0D 01 02 00 00 00 00 67 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=255 [10:47:40]MH_SAM_APDU [10:47:40]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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 CC DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 20 01 00 35 04 06 00 3D [10:47:40]Write to MH i2c: E2 02 01 DF 10 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 CC DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 20 01 00 35 04 06 00 3D 00 00 F2 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=10 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 02 02 05 31 6F AB 9F A6 [10:47:40]Write to MH i2c: E2 0D 00 E0 10 80 0D 02 02 05 00 31 6F AB 9F A6 00 00 04 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 03 02 [10:47:40]Write to MH i2c: E2 08 00 E1 10 80 0D 03 02 00 00 00 00 6C [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0B 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0B 00 E1 10 00 41 62 B6 5E C0 31 38 04 90 00 51 [10:47:40]RAPDU: 41 62 B6 5E C0 31 38 04 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_SignData done [10:47:40]FM_MakeSignedData done [10:47:40]CreateOFDProtocolMessage [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 11 00 00 [10:47:40]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B9 [10:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:40]wFMCommunicate OK [10:47:40]CreateOFDProtocolMessage done [10:47:40]OFDSenderStorePacket 73761 [10:47:40]StoreOFDPacket docnum=73761 [10:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CD 99 07 01 28 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 CC DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 20 01 00 35 04 06 00 3D 31 6F AB 9F A6 41 62 B6 5E C0 31 38 04 [10:47:40]CheckFolder [10:47:40]dirname=/storage/ofd_packets [10:47:40]CheckFolder done [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00073761 [10:47:40]NVStorageSaveData ofd_packets/00073761 [10:47:40]File name is /storage/ofd_packets/00073761 [10:47:40]Write 301 bytes [10:47:40]NVStorageSaveData done [10:47:40]OFDSenderStorePacket done [10:47:40]KKMCreateOFDPacket done [10:47:40]NVStorageSaveData kkm_last_timestamp [10:47:40]File name is /storage/kkm_last_timestamp [10:47:40]Write 4 bytes [10:47:40]NVStorageSaveData done [10:47:40]ExternCall_PrintAddStr [10:47:40]wPrintStart [10:47:40]Write to MH i2c: 01 00 00 E3 10 F3 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 07 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 FF 0F 08 [10:47:40]RasterBufferAndPrint [10:47:40]line Счет N : (1)1962835 [10:47:40]line ИНН: 02508201610067 [10:47:40]line Контрольно-Кассовый Чек [10:47:40]line ПРОДАЖА [10:47:40]line ТРК (МРК, ГНК) : 63 [10:47:40]line Товар: 2710124130 [10:47:40]line Аи-92-К-5 [10:47:40]line 3.290 * 66.90 [10:47:40]line = 220.10 [10:47:40]line НДС 12% НСП 1% [10:47:40]line > о реализуемом товаре [10:47:40]line ОКРУГЛЕНИЕ: -0.10 [10:47:40]line ИТОГО: 220.00 [10:47:40]line Внесено: 220.00 [10:47:40]line СДАЧА: 0.00 [10:47:40]line НСП 1% : 1.95 [10:47:40]line НДС 12% : 23.37 [10:47:40]line Наличными: 220.00 [10:47:40]line Безнал.: 0.00 [10:47:40]line Место: АЗС № 133 "Партнер Нефть" [10:47:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:40]line СНО: Общий режим [10:47:40]line Чек 87 20.10.2024 10:47 [10:47:40]line Смена: 170 ФФД: 1.0 [10:47:40]line ЗНМ: 0300000020 [10:47:40]line РНМ: 0000000000161154 [10:47:40]line Версия ККМ: v1.0 [10:47:40]line ФМ: 0000000000963323 [10:47:40]line ФД: 73761 [10:47:40]line ФПД: 67282536210342 [10:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104740&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73761&fm=67282536210342&tin=02508201610067®Number=0000000000161154&sum=22000 [10:47:40]written 0, free lines is 4095 [10:47:41]Write to MH i2c: 01 00 00 0D 11 1E [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 0D 11 00 00 00 00 00 B3 0C E4 [10:47:41]RasterBufferAndPrint [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]written 0, free lines is 3256 [10:47:41]MH_Cut [10:47:41]Write to MH i2c: D1 01 00 14 11 01 F7 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 01 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 01 00 14 11 00 F6 [10:47:41]Write to MH i2c: 01 00 00 15 11 26 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:42]*** Cut start [10:47:42]*** Partial cut [10:47:42]*** CUTSNS_PIN = 1 [10:47:42]*** CUTSNS_PIN = 0 [10:47:42]*** Brake cut motor [10:47:42]Read from MH i2c: 01 [10:47:42]MH_I2C_Read... [10:47:42]*** Stop cut motor [10:47:42]Read from MH i2c: 01 07 00 [10:47:42]MH_I2C_Read... [10:47:42]*** Cut end [10:47:42]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 FF 0F 3B [10:47:42]process_action close_receipt done [10:47:42]requested_data is exist [10:47:42]produce_requested_data [10:47:42]requested_item fm.sn is exist - process it [10:47:42]wFMCommunicate request_size=4 [10:47:42]MH_SAM_APDU [10:47:42]CAPDU: 80 11 00 00 [10:47:42]Write to MH i2c: E2 08 00 16 11 80 11 00 00 00 00 00 00 A1 [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:42]Read from MH i2c: E2 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 17 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 17 00 16 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EE [10:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:42]wFMCommunicate OK [10:47:42]requested_item fd.num is exist - process it [10:47:42]SAM_PROTO_GetFieldsCounters [10:47:42]wFMCommunicate request_size=4 [10:47:42]MH_SAM_APDU [10:47:42]CAPDU: 80 13 00 00 [10:47:42]Write to MH i2c: E2 08 00 17 11 80 13 00 00 00 00 00 00 A4 [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 62 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 62 00 17 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 20 01 00 0E 04 04 00 AA 00 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 A9 [10:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 20 01 00 0E 04 04 00 AA 00 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 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_GetFieldsCounters done [10:47:43]requested_item shift.num is exist - process it [10:47:43]requested_item shift.opened is exist - process it [10:47:43]req_shift_opened [10:47:43]FM_GetShiftState [10:47:43]SAM_PROTO_GetShiftState [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 13 01 00 [10:47:43]Write to MH i2c: E2 08 00 18 11 80 13 01 00 00 00 00 00 A6 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0E 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0E 00 18 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EB [10:47:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_GetShiftState done [10:47:43]FM_GetShiftState done [10:47:43]req_shift_opened done [10:47:43]requested_item shift.open_date is exist - process it [10:47:43]req_shift_open_date [10:47:43]req_shift_open_date done [10:47:43]produce_requested_data done [10:47:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73761,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:47:43]process_action_free close_receipt [10:47:43]json_value_free [10:47:43]json_value_free done [10:47:43]process_json_proto returns [10:47:43]Send response to host [10:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73761,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:47:43]free response buf [10:47:43]execute_script done [10:47:43]execute_script returns [10:47:43]free content buf [10:47:43]Sock 9.Close socket [10:47:43]Sock 9.Thread stoped [10:47:57]accept exits with 8 [10:47:57]New connection [10:47:57]New thread 3067575652 created [10:47:57]Thread 3067432292 joined [10:47:57]Waiting for new connection... [10:47:57] Sock 8.Parse request [10:47:57]Sock 8.Check first char [10:47:57]Sock 8.First char is OK [10:47:57]request: POST /json_proto HTTP/1.0 [10:47:57]Method: POST [10:47:57]URL: /json_proto [10:47:57]Method is POST - this is cgi request [10:47:57]url: /json_proto [10:47:57]query_string will be loaded in cgi processing [10:47:57]execute_cgi json_proto POST (null) [10:47:57]execute_cgi path=json_proto method=POST [10:47:57]POST find Content-Length [10:47:57]Host: 172.17.44.196:8080 [10:47:57]Content-Length: 618 [10:47:57]Content-Type: application/json [10:47:57] [10:47:57]POST finish read [10:47:57]Found Content-Length = 618 [10:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272761", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:57]execute_script... [10:47: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)272761", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:57]POST & json_proto [10:47:57]process_json_proto [10:47:57]json parsed OK: [10:47:57]protocol is kg_v1.0 [10:47:57]action value=close_receipt [10:47:57]process_action close_receipt [10:47:57]cmd_close_receipt [10:47:57]MH_GetDate [10:47:57]Write to MH i2c: F0 00 00 19 11 19 [10:47:57]Write i2c OK [10:47:57]MH_I2C_Read... [10:47:57]Read from MH i2c: F0 [10:47:57]MH_I2C_Read... [10:47:57]Read from MH i2c: F0 09 00 [10:47:57]MH_I2C_Read... [10:47:57]Read from MH i2c: F0 09 00 19 11 00 DE DF 14 67 E7 19 F8 65 B7 [10:47:57]GetLastDocTimeStamp 1729421260 [10:47:57]current date 1729421278 [10:47:57]FM_GetShiftState [10:47:57]SAM_PROTO_GetShiftState [10:47:57]wFMCommunicate request_size=4 [10:47:57]MH_SAM_APDU [10:47:57]CAPDU: 80 13 01 00 [10:47:57]Write to MH i2c: E2 08 00 1A 11 80 13 01 00 00 00 00 00 A8 [10:47:57]Write i2c OK [10:47:57]MH_I2C_Read... [10:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:57]Read from MH i2c: E2 [10:47:57]MH_I2C_Read... [10:47:57]Read from MH i2c: E2 0E 00 [10:47:57]MH_I2C_Read... [10:47:57]Read from MH i2c: E2 0E 00 1A 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 ED [10:47:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:47:57]wFMCommunicate OK [10:47:57]SAM_PROTO_GetShiftState done [10:47:57]FM_GetShiftState done [10:47:57]opened in 1729384303 [10:47:57]opened+sec_in_day 1729470703 [10:47:57]quantity*price = 12500 [10:47:57]sum+1 = 12501 [10:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 88 20.10.2024 10:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73762 ФПД: 201707857139802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104758&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73762&fm=201707857139802&tin=02508201610067®Number=0000000000161154&sum=12500 0 [10:47:58]StoreToDocumentArchive [10:47:58]shift 170 fd 73762 [10:47:58]save to /storage/0170/doc_00073762 [10:47:58]save last doc name /storage/0170/doc_00073762 to /storage/kkm_last_doc_name [10:47:58]save OK [10:47:58]Clear old archive folders... [10:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=270 [10:47:58]tlvbuf is B6F594C0 [10:47:58]SAM_PROTO_ClearQueue [10:47:58]wFMCommunicate request_size=4 [10:47:58]MH_SAM_APDU [10:47:58]CAPDU: 80 09 00 00 [10:47:58]Write to MH i2c: E2 08 00 27 11 80 09 00 00 00 00 00 00 AA [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:58]Read from MH i2c: E2 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 27 11 00 90 00 AC [10:47:58]RAPDU: 90 00 [10:47:58]wFMCommunicate OK [10:47:58]SAM_PROTO_ClearQueue done [10:47:58]KKMCreateOFDPacket [10:47:58]OFDProtocolAddRootSTLVToBuf [10:47:58]FM_MakeSignedData [10:47:58]FM_MakeSignedData [10:47:58]SAM_PROTO_SignData [10:47:58]wFMCommunicate request_size=4 [10:47:58]MH_SAM_APDU [10:47:58]CAPDU: 80 0D 01 02 [10:47:58]Write to MH i2c: E2 08 00 28 11 80 0D 01 02 00 00 00 00 B2 [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:58]Read from MH i2c: E2 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [10:47:58]RAPDU: 90 00 [10:47:58]wFMCommunicate OK [10:47:58]wFMCommunicate request_size=255 [10:47:58]MH_SAM_APDU [10:47:58]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 58 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [10:47:58]Write to MH i2c: E2 02 01 29 11 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 58 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 C9 [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:58]Read from MH i2c: E2 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [10:47:58]RAPDU: 90 00 [10:47:58]wFMCommunicate OK [10:47:58]wFMCommunicate request_size=29 [10:47:58]MH_SAM_APDU [10:47:58]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 22 20 01 00 35 04 06 00 B7 73 C5 2C 58 5A [10:47:58]Write to MH i2c: E2 20 00 2A 11 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 22 20 01 00 35 04 06 00 B7 73 C5 2C 58 5A 00 00 86 [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:58]Read from MH i2c: E2 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [10:47:58]RAPDU: 90 00 [10:47:58]wFMCommunicate OK [10:47:58]wFMCommunicate request_size=4 [10:47:58]MH_SAM_APDU [10:47:58]CAPDU: 80 0D 03 02 [10:47:58]Write to MH i2c: E2 08 00 2B 11 80 0D 03 02 00 00 00 00 B7 [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:58]Read from MH i2c: E2 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 0B 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 0B 00 2B 11 00 B7 19 1B C1 64 FF 74 18 90 00 53 [10:47:58]RAPDU: B7 19 1B C1 64 FF 74 18 90 00 [10:47:58]wFMCommunicate OK [10:47:58]SAM_PROTO_SignData done [10:47:58]FM_MakeSignedData done [10:47:58]CreateOFDProtocolMessage [10:47:58]wFMCommunicate request_size=4 [10:47:58]MH_SAM_APDU [10:47:58]CAPDU: 80 11 00 00 [10:47:58]Write to MH i2c: E2 08 00 2C 11 80 11 00 00 00 00 00 00 B7 [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:58]Read from MH i2c: E2 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 17 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: E2 17 00 2C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 04 [10:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:58]wFMCommunicate OK [10:47:58]CreateOFDProtocolMessage done [10:47:58]OFDSenderStorePacket 73762 [10:47:58]StoreOFDPacket docnum=73762 [10:47:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 FF 9D 1A 01 37 72 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 58 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 20 01 00 35 04 06 00 B7 73 C5 2C 58 5A B7 19 1B C1 64 FF 74 18 [10:47:58]CheckFolder [10:47:58]dirname=/storage/ofd_packets [10:47:58]CheckFolder done [10:47:58]ProducePacketName [10:47:58]name=ofd_packets/00073762 [10:47:58]NVStorageSaveData ofd_packets/00073762 [10:47:58]File name is /storage/ofd_packets/00073762 [10:47:58]Write 320 bytes [10:47:58]NVStorageSaveData done [10:47:58]OFDSenderStorePacket done [10:47:58]KKMCreateOFDPacket done [10:47:58]NVStorageSaveData kkm_last_timestamp [10:47:58]File name is /storage/kkm_last_timestamp [10:47:58]Write 4 bytes [10:47:58]NVStorageSaveData done [10:47:58]ExternCall_PrintAddStr [10:47:58]wPrintStart [10:47:58]Write to MH i2c: 01 00 00 2D 11 3E [10:47:58]Write i2c OK [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: 01 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: 01 07 00 [10:47:58]MH_I2C_Read... [10:47:58]Read from MH i2c: 01 07 00 2D 11 00 00 00 00 00 FF 0F 53 [10:47:58]RasterBufferAndPrint [10:47:58]line Счет N : (3)272761 [10:47:58]line ИНН: 02508201610067 [10:47:58]line Контрольно-Кассовый Чек [10:47:58]line ПРОДАЖА [10:47:58]line Товар: 48742191 [10:47:58]line Сигареты Bond Street Blue [10:47:58]line 1.000 * 125.00 [10:47:58]line = 125.00 [10:47:58]line НДС 12% НСП 1% [10:47:58]line > о реализуемом товаре [10:47:58]line ИТОГО: 125.00 [10:47:58]line НСП 1% : 1.11 [10:47:58]line НДС 12% : 13.27 [10:47:58]line Наличными: 125.00 [10:47:58]line Безнал.: 0.00 [10:47:58]line Место: АЗС № 133 "Партнер Нефть" [10:47:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:58]line СНО: Общий режим [10:47:58]line Чек 88 20.10.2024 10:47 [10:47:58]line Смена: 170 ФФД: 1.0 [10:47:58]line ЗНМ: 0300000020 [10:47:58]line РНМ: 0000000000161154 [10:47:58]line Версия ККМ: v1.0 [10:47:58]line ФМ: 0000000000963323 [10:47:58]line ФД: 73762 [10:47:58]line ФПД: 201707857139802 [10:47:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104758&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73762&fm=201707857139802&tin=02508201610067®Number=0000000000161154&sum=12500 [10:47:58]line 0 [10:47:58]written 0, free lines is 4095 [10:47:59]Write to MH i2c: 01 00 00 54 11 65 [10:47:59]Write i2c OK [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: 01 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: 01 07 00 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: 01 07 00 54 11 00 00 00 00 00 E2 0C 5A [10:47:59]RasterBufferAndPrint [10:47:59]line [10:47:59]line [10:47:59]line [10:47:59]line [10:47:59]line [10:47:59]written 0, free lines is 3303 [10:47:59]MH_Cut [10:47:59]Write to MH i2c: D1 01 00 5B 11 01 3E [10:47:59]Write i2c OK [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: D1 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: D1 01 00 [10:47:59]MH_I2C_Read... [10:47:59]Read from MH i2c: D1 01 00 5B 11 00 3D [10:47:59]Write to MH i2c: 01 00 00 5C 11 6D [10:47:59]Write i2c OK [10:47:59]MH_I2C_Read... [10:48:00]*** Cut start [10:48:00]*** Partial cut [10:48:00]*** CUTSNS_PIN = 1 [10:48:00]*** CUTSNS_PIN = 0 [10:48:00]*** Brake cut motor [10:48:00]Read from MH i2c: 01 [10:48:00]MH_I2C_Read... [10:48:00]*** Stop cut motor [10:48:00]*** Cut end [10:48:00]Read from MH i2c: 01 07 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: 01 07 00 5C 11 00 00 00 00 00 FF 0F 82 [10:48:00]process_action close_receipt done [10:48:00]requested_data is exist [10:48:00]produce_requested_data [10:48:00]requested_item fm.sn is exist - process it [10:48:00]wFMCommunicate request_size=4 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 11 00 00 [10:48:00]Write to MH i2c: E2 08 00 5D 11 80 11 00 00 00 00 00 00 E8 [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:00]Read from MH i2c: E2 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 17 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 17 00 5D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 35 [10:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:48:00]wFMCommunicate OK [10:48:00]requested_item fd.num is exist - process it [10:48:00]SAM_PROTO_GetFieldsCounters [10:48:00]wFMCommunicate request_size=4 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 13 00 00 [10:48:00]Write to MH i2c: E2 08 00 5E 11 80 13 00 00 00 00 00 00 EB [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:00]Read from MH i2c: E2 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 62 00 [10:48:00]MH_I2C_Read... [10:48:00]Read from MH i2c: E2 62 00 5E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 20 01 00 0E 04 04 00 AA 00 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 F4 [10:48:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 20 01 00 0E 04 04 00 AA 00 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 [10:48:00]wFMCommunicate OK [10:48:00]SAM_PROTO_GetFieldsCounters done [10:48:00]requested_item shift.num is exist - process it [10:48:00]requested_item shift.opened is exist - process it [10:48:00]req_shift_opened [10:48:00]FM_GetShiftState [10:48:00]SAM_PROTO_GetShiftState [10:48:00]wFMCommunicate request_size=4 [10:48:00]MH_SAM_APDU [10:48:00]CAPDU: 80 13 01 00 [10:48:00]Write to MH i2c: E2 08 00 5F 11 80 13 01 00 00 00 00 00 ED [10:48:00]Write i2c OK [10:48:00]MH_I2C_Read... [10:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:01]Read from MH i2c: E2 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 0E 00 [10:48:01]MH_I2C_Read... [10:48:01]Read from MH i2c: E2 0E 00 5F 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 32 [10:48:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:48:01]wFMCommunicate OK [10:48:01]SAM_PROTO_GetShiftState done [10:48:01]FM_GetShiftState done [10:48:01]req_shift_opened done [10:48:01]requested_item shift.open_date is exist - process it [10:48:01]req_shift_open_date [10:48:01]req_shift_open_date done [10:48:01]produce_requested_data done [10:48:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73762,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:48:01]process_action_free close_receipt [10:48:01]json_value_free [10:48:01]json_value_free done [10:48:01]process_json_proto returns [10:48:01]Send response to host [10:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73762,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:48:01]free response buf [10:48:01]execute_script done [10:48:01]execute_script returns [10:48:01]free content buf [10:48:01]Sock 8.Close socket [10:48:01]Sock 8.Thread stoped [10:48:59]ConnectInit Can't connect to host [10:48:59]CommunicateWithHost connect error [10:48:59]CommunicateWithHost err = -1 [10:48:59]OFD Sender: Server communicate error [10:48:59]OFD Sender: Processing packet 73757 [packets to send 20, broken 14] [10:48:59]ProducePacketName [10:48:59]name=ofd_packets/00073757 [10:48:59]OFD Sender: To server: pG, [10:48:59]CommunicateWithHost lk.salyk.kg:30040 [10:48:59]ConnectInit lk.salyk.kg [10:48:59]Connected sock=8 [10:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E2 2C 07 01 DF 56 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 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 94 DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 20 01 00 35 04 06 00 D1 7A A6 82 23 26 FC 2B A0 00 1C 39 4F 15 [10:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B8 A8 47 00 32 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 39 36 33 33 32 33 10 04 04 00 1D 20 01 00 F4 03 04 00 FF 88 14 67 B6 04 01 00 00 21 F3 68 DA 73 11 4E 50 [10:48:59]CommunicateWithHost err = 0 [10:48:59]CheckOFDResponse [10:48:59]1017 (14) - 77093643461234 [10:48:59]1041 (16) - 0000000000963323 [10:48:59]1040 (4) - 73757 [10:48:59]1012 (4) - 20.10.2024 04:37 [10:48:59]1206 (1) - 0 [10:48:59]OFD Sender: Remove packet 73757 [10:48:59]ProducePacketName [10:48:59]name=ofd_packets/00073757 [10:48:59]NVStorageDeleteData [10:49:00]OFD Sender: Processing packet 73758 [packets to send 19, broken 14] [10:49:00]ProducePacketName [10:49:00]name=ofd_packets/00073758 [10:49:00]OFD Sender: To server: pG, [10:49:00]CommunicateWithHost lk.salyk.kg:30040 [10:49:00]ConnectInit lk.salyk.kg [10:49:00]Connected sock=8 [10:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 DA 5D 00 01 67 16 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 54 00 00 00 F4 03 04 00 9C DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 20 01 00 35 04 06 00 72 69 0B E4 36 73 35 F6 67 F4 6D 65 41 90 [10:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 24 5B 47 00 76 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 39 36 33 33 32 33 10 04 04 00 1E 20 01 00 F4 03 04 00 00 89 14 67 B6 04 01 00 00 61 20 A8 82 CF C0 92 24 [10:49:00]CommunicateWithHost err = 0 [10:49:00]CheckOFDResponse [10:49:00]1017 (14) - 77093643461234 [10:49:00]1041 (16) - 0000000000963323 [10:49:00]1040 (4) - 73758 [10:49:00]1012 (4) - 20.10.2024 04:37 [10:49:00]1206 (1) - 0 [10:49:00]OFD Sender: Remove packet 73758 [10:49:00]ProducePacketName [10:49:00]name=ofd_packets/00073758 [10:49:00]NVStorageDeleteData [10:49:00]OFD Sender: Processing packet 73759 [packets to send 18, broken 14] [10:49:00]ProducePacketName [10:49:00]name=ofd_packets/00073759 [10:49:00]OFD Sender: To server: pG, [10:49:00]CommunicateWithHost lk.salyk.kg:30040 [10:49:00]ConnectInit lk.salyk.kg [10:49:00]Connected sock=8 [10:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 03 46 07 01 E4 A4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 55 00 00 00 F4 03 04 00 AD DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 20 01 00 35 04 06 00 03 AE 91 29 D2 55 1B D6 10 5C 62 6A 87 94 [10:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BE FD 47 00 B7 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 39 36 33 33 32 33 10 04 04 00 1F 20 01 00 F4 03 04 00 01 89 14 67 B6 04 01 00 00 76 0E 28 9A D5 C1 2D 92 [10:49:01]CommunicateWithHost err = 0 [10:49:01]CheckOFDResponse [10:49:01]1017 (14) - 77093643461234 [10:49:01]1041 (16) - 0000000000963323 [10:49:01]1040 (4) - 73759 [10:49:01]1012 (4) - 20.10.2024 04:37 [10:49:01]1206 (1) - 0 [10:49:01]OFD Sender: Remove packet 73759 [10:49:01]ProducePacketName [10:49:01]name=ofd_packets/00073759 [10:49:01]NVStorageDeleteData [10:49:01]accept exits with 9 [10:49:01]New connection [10:49:01]New thread 3067432292 created [10:49:01]Thread 3067575652 joined [10:49:01]Waiting for new connection... [10:49:01] Sock 9.Parse request [10:49:01]Sock 9.Check first char [10:49:01]Sock 9.First char is OK [10:49:01]request: POST /json_proto HTTP/1.0 [10:49:01]Method: POST [10:49:01]URL: /json_proto [10:49:01]Method is POST - this is cgi request [10:49:01]url: /json_proto [10:49:01]query_string will be loaded in cgi processing [10:49:01]execute_cgi json_proto POST (null) [10:49:01]execute_cgi path=json_proto method=POST [10:49:01]POST find Content-Length [10:49:01]Host: 172.17.44.196:8080 [10:49:01]Content-Length: 678 [10:49:01]Content-Type: application/json [10:49:01] [10:49:01]POST finish read [10:49:01]Found Content-Length = 678 [10:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962838", "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" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:01]execute_script... [10:49:01]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)1962838", "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" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:01]POST & json_proto [10:49:01]process_json_proto [10:49:01]json parsed OK: [10:49:01]protocol is kg_v1.0 [10:49:01]action value=close_receipt [10:49:01]process_action close_receipt [10:49:01]cmd_close_receipt [10:49:01]MH_GetDate [10:49:01]Write to MH i2c: F0 00 00 60 11 60 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: F0 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: F0 09 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: F0 09 00 60 11 00 1E E0 14 67 E7 19 F8 65 3F [10:49:01]GetLastDocTimeStamp 1729421278 [10:49:01]current date 1729421342 [10:49:01]FM_GetShiftState [10:49:01]SAM_PROTO_GetShiftState [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 13 01 00 [10:49:01]Write to MH i2c: E2 08 00 61 11 80 13 01 00 00 00 00 00 EF [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 61 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 34 [10:49:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:49:01]wFMCommunicate OK [10:49:01]SAM_PROTO_GetShiftState done [10:49:01]FM_GetShiftState done [10:49:01]opened in 1729384303 [10:49:01]opened+sec_in_day 1729470703 [10:49:01]quantity*price = 25020 [10:49:01]sum+1 = 25022 [10:49:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 89 20.10.2024 10:49 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73763 ФПД: 120687326884599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73763&fm=120687326884599&tin=02508201610067®Number=0000000000161154&sum=25000 [10:49:02]StoreToDocumentArchive [10:49:02]shift 170 fd 73763 [10:49:02]save to /storage/0170/doc_00073763 [10:49:02]save last doc name /storage/0170/doc_00073763 to /storage/kkm_last_doc_name [10:49:02]save OK [10:49:02]Clear old archive folders... [10:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:02]tlvbuf is B6F593A0 [10:49:02]SAM_PROTO_ClearQueue [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 09 00 00 [10:49:02]Write to MH i2c: E2 08 00 6E 11 80 09 00 00 00 00 00 00 F1 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]OFD Sender: Processing packet 73761 [packets to send 16, broken 14] [10:49:02]ProducePacketName [10:49:02]name=ofd_packets/00073761 [10:49:02]OFD Sender: To server: pG, [10:49:02]CommunicateWithHost lk.salyk.kg:30040 [10:49:02]ConnectInit lk.salyk.kg [10:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [10:49:02]RAPDU: 90 00 [10:49:02]wFMCommunicate OK [10:49:02]SAM_PROTO_ClearQueue done [10:49:02]KKMCreateOFDPacket [10:49:02]OFDProtocolAddRootSTLVToBuf [10:49:02]FM_MakeSignedData [10:49:02]FM_MakeSignedData [10:49:02]SAM_PROTO_SignData [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 0D 01 02 [10:49:02]Write to MH i2c: E2 08 00 6F 11 80 0D 01 02 00 00 00 00 F9 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [10:49:02]RAPDU: 90 00 [10:49:02]wFMCommunicate OK [10:49:02]wFMCommunicate request_size=255 [10:49:02]MH_SAM_APDU [10:49:02]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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 59 00 00 00 F4 03 04 00 1E E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 20 01 00 35 04 06 00 6D [10:49:02]Write to MH i2c: E2 02 01 70 11 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 59 00 00 00 F4 03 04 00 1E E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 20 01 00 35 04 06 00 6D 00 00 81 [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]Connected sock=10 [10:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CD 99 07 01 28 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 CC DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 20 01 00 35 04 06 00 3D 31 6F AB 9F A6 41 62 B6 5E C0 31 38 04 [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:03]Read from MH i2c: E2 03 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 70 11 00 90 00 F5 [10:49:03]RAPDU: 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=10 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 0D 02 02 05 C3 B5 3F 72 F7 [10:49:03]Write to MH i2c: E2 0D 00 71 11 80 0D 02 02 05 00 C3 B5 3F 72 F7 00 00 26 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [10:49:03]RAPDU: 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 0D 03 02 [10:49:03]Write to MH i2c: E2 08 00 72 11 80 0D 03 02 00 00 00 00 FE [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 0B 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 0B 00 72 11 00 42 8D 85 99 71 28 A6 20 90 00 4B [10:49:03]RAPDU: 42 8D 85 99 71 28 A6 20 90 00 [10:49:03]wFMCommunicate OK [10:49:03]SAM_PROTO_SignData done [10:49:03]FM_MakeSignedData done [10:49:03]CreateOFDProtocolMessage [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 11 00 00 [10:49:03]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 17 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [10:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:03]wFMCommunicate OK [10:49:03]CreateOFDProtocolMessage done [10:49:03]OFDSenderStorePacket 73763 [10:49:03]StoreOFDPacket docnum=73763 [10:49:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 68 35 07 01 F9 BF 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 59 00 00 00 F4 03 04 00 1E E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 20 01 00 35 04 06 00 6D C3 B5 3F 72 F7 42 8D 85 99 71 28 A6 20 [10:49:03]CheckFolder [10:49:03]dirname=/storage/ofd_packets [10:49:03]CheckFolder done [10:49:03]ProducePacketName [10:49:03]name=ofd_packets/00073763 [10:49:03]NVStorageSaveData ofd_packets/00073763 [10:49:03]File name is /storage/ofd_packets/00073763 [10:49:03]Write 301 bytes [10:49:03]NVStorageSaveData done [10:49:03]OFDSenderStorePacket done [10:49:03]KKMCreateOFDPacket done [10:49:03]NVStorageSaveData kkm_last_timestamp [10:49:03]File name is /storage/kkm_last_timestamp [10:49:03]Write 4 bytes [10:49:03]NVStorageSaveData done [10:49:03]ExternCall_PrintAddStr [10:49:03]wPrintStart [10:49:03]Write to MH i2c: 01 00 00 74 11 85 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 07 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: 01 07 00 74 11 00 00 00 00 00 FF 0F 9A [10:49:03]RasterBufferAndPrint [10:49:03]line Счет N : (1)1962838 [10:49:03]line ИНН: 02508201610067 [10:49:03]line Контрольно-Кассовый Чек [10:49:03]line ПРОДАЖА [10:49:03]line ТРК (МРК, ГНК) : 53 [10:49:03]line Товар: 2710124130 [10:49:03]line Аи-92-К-5 [10:49:03]line 3.740 * 66.90 [10:49:03]line = 250.21 [10:49:03]line НДС 12% НСП 1% [10:49:03]line > о реализуемом товаре [10:49:03]line ОКРУГЛЕНИЕ: -0.21 [10:49:03]line ИТОГО: 250.00 [10:49:03]line Внесено: 250.00 [10:49:03]line СДАЧА: 0.00 [10:49:03]line НСП 1% : 2.21 [10:49:03]line НДС 12% : 26.57 [10:49:03]line Наличными: 250.00 [10:49:03]line Безнал.: 0.00 [10:49:03]line Место: АЗС № 133 "Партнер Нефть" [10:49:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:49:03]line СНО: Общий режим [10:49:03]line Чек 89 20.10.2024 10:49 [10:49:03]line Смена: 170 ФФД: 1.0 [10:49:03]line ЗНМ: 0300000020 [10:49:03]line РНМ: 0000000000161154 [10:49:03]line Версия ККМ: v1.0 [10:49:03]line ФМ: 0000000000963323 [10:49:03]line ФД: 73763 [10:49:03]line ФПД: 120687326884599 [10:49:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73763&fm=120687326884599&tin=02508201610067®Number=0000000000161154&sum=25000 [10:49:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 36 2F 47 00 B3 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 39 36 33 33 32 33 10 04 04 00 21 20 01 00 F4 03 04 00 03 89 14 67 B6 04 01 00 00 0B 97 21 45 F0 D6 75 94 [10:49:03]CommunicateWithHost err = 0 [10:49:03]CheckOFDResponse [10:49:03]1017 (14) - 77093643461234 [10:49:03]1041 (16) - 0000000000963323 [10:49:03]1040 (4) - 73761 [10:49:03]1012 (4) - 20.10.2024 04:37 [10:49:03]1206 (1) - 0 [10:49:03]OFD Sender: Remove packet 73761 [10:49:03]ProducePacketName [10:49:03]name=ofd_packets/00073761 [10:49:03]NVStorageDeleteData [10:49:03]written 0, free lines is 4095 [10:49:04]Write to MH i2c: 01 00 00 9E 11 AF [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 BA 0C 7C [10:49:04]RasterBufferAndPrint [10:49:04]line [10:49:04]line [10:49:04]line [10:49:04]line [10:49:04]line [10:49:04]written 0, free lines is 3265 [10:49:04]MH_Cut [10:49:04]Write to MH i2c: D1 01 00 A5 11 01 88 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: D1 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: D1 01 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: D1 01 00 A5 11 00 87 [10:49:04]Write to MH i2c: 01 00 00 A6 11 B7 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]OFD Sender: Processing packet 73762 [packets to send 16, broken 14] [10:49:04]ProducePacketName [10:49:04]name=ofd_packets/00073762 [10:49:04]OFD Sender: To server: pG, [10:49:04]CommunicateWithHost lk.salyk.kg:30040 [10:49:04]ConnectInit lk.salyk.kg [10:49:04]Connected sock=10 [10:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 FF 9D 1A 01 37 72 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 58 00 00 00 F4 03 04 00 DE DF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 20 01 00 35 04 06 00 B7 73 C5 2C 58 5A B7 19 1B C1 64 FF 74 18 [10:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5C D0 47 00 81 BF 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 39 36 33 33 32 33 10 04 04 00 22 20 01 00 F4 03 04 00 04 89 14 67 B6 04 01 00 00 B0 22 3D 5E 24 2D 65 3F [10:49:04]CommunicateWithHost err = 0 [10:49:04]CheckOFDResponse [10:49:04]1017 (14) - 77093643461234 [10:49:04]1041 (16) - 0000000000963323 [10:49:04]1040 (4) - 73762 [10:49:04]1012 (4) - 20.10.2024 04:37 [10:49:04]1206 (1) - 0 [10:49:04]OFD Sender: Remove packet 73762 [10:49:04]ProducePacketName [10:49:04]name=ofd_packets/00073762 [10:49:04]NVStorageDeleteData [10:49:04]*** Cut start [10:49:04]*** Partial cut [10:49:04]*** CUTSNS_PIN = 1 [10:49:04]OFD Sender: Processing packet 73763 [packets to send 15, broken 14] [10:49:04]ProducePacketName [10:49:04]name=ofd_packets/00073763 [10:49:04]OFD Sender: To server: pG, [10:49:04]CommunicateWithHost lk.salyk.kg:30040 [10:49:04]ConnectInit lk.salyk.kg [10:49:04]*** CUTSNS_PIN = 0 [10:49:05]Connected sock=10 [10:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 68 35 07 01 F9 BF 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 59 00 00 00 F4 03 04 00 1E E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 20 01 00 35 04 06 00 6D C3 B5 3F 72 F7 42 8D 85 99 71 28 A6 20 [10:49:05]*** Brake cut motor [10:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 74 F1 47 00 48 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 39 36 33 33 32 33 10 04 04 00 23 20 01 00 F4 03 04 00 05 89 14 67 B6 04 01 00 00 66 61 45 59 77 95 4F 58 [10:49:05]CommunicateWithHost err = 0 [10:49:05]CheckOFDResponse [10:49:05]1017 (14) - 77093643461234 [10:49:05]1041 (16) - 0000000000963323 [10:49:05]1040 (4) - 73763 [10:49:05]1012 (4) - 20.10.2024 04:37 [10:49:05]1206 (1) - 0 [10:49:05]OFD Sender: Remove packet 73763 [10:49:05]ProducePacketName [10:49:05]name=ofd_packets/00073763 [10:49:05]NVStorageDeleteData [10:49:05]Read from MH i2c: 01 [10:49:05]MH_I2C_Read... [10:49:05]*** Stop cut motor [10:49:05]*** Cut end [10:49:05]Read from MH i2c: 01 07 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 FF 0F CC [10:49:05]process_action close_receipt done [10:49:05]requested_data is exist [10:49:05]produce_requested_data [10:49:05]requested_item fm.sn is exist - process it [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 11 00 00 [10:49:05]Write to MH i2c: E2 08 00 A7 11 80 11 00 00 00 00 00 00 32 [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 A7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [10:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:05]wFMCommunicate OK [10:49:05]requested_item fd.num is exist - process it [10:49:05]SAM_PROTO_GetFieldsCounters [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 00 00 [10:49:05]Write to MH i2c: E2 08 00 A8 11 80 13 00 00 00 00 00 00 35 [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 62 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 62 00 A8 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 20 01 00 0E 04 04 00 AA 00 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 42 [10:49:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 20 01 00 0E 04 04 00 AA 00 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 [10:49:05]wFMCommunicate OK [10:49:05]SAM_PROTO_GetFieldsCounters done [10:49:05]requested_item shift.num is exist - process it [10:49:05]requested_item shift.opened is exist - process it [10:49:05]req_shift_opened [10:49:05]FM_GetShiftState [10:49:05]SAM_PROTO_GetShiftState [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 01 00 [10:49:05]Write to MH i2c: E2 08 00 A9 11 80 13 01 00 00 00 00 00 37 [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:05]OFD Sender: No OFD packet to send [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 0E 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 0E 00 A9 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7C [10:49:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:49:05]wFMCommunicate OK [10:49:05]SAM_PROTO_GetShiftState done [10:49:05]FM_GetShiftState done [10:49:05]req_shift_opened done [10:49:05]requested_item shift.open_date is exist - process it [10:49:05]req_shift_open_date [10:49:05]req_shift_open_date done [10:49:05]produce_requested_data done [10:49:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73763,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:49:05]process_action_free close_receipt [10:49:05]json_value_free [10:49:05]json_value_free done [10:49:05]process_json_proto returns [10:49:05]Send response to host [10:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73763,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:49:05]free response buf [10:49:05]execute_script done [10:49:05]execute_script returns [10:49:05]free content buf [10:49:05]Sock 9.Close socket [10:49:05]Sock 9.Thread stoped [10:49:05]OFD Sender: No OFD packet to send [10:49:06]accept exits with 8 [10:49:06]New connection [10:49:06]New thread 3067575652 created [10:49:06]Thread 3067432292 joined [10:49:06]Waiting for new connection... [10:49:06] Sock 8.Parse request [10:49:06]Sock 8.Check first char [10:49:06]Sock 8.First char is OK [10:49:06]request: POST /json_proto HTTP/1.0 [10:49:06]Method: POST [10:49:06]URL: /json_proto [10:49:06]Method is POST - this is cgi request [10:49:06]url: /json_proto [10:49:06]query_string will be loaded in cgi processing [10:49:06]execute_cgi json_proto POST (null) [10:49:06]execute_cgi path=json_proto method=POST [10:49:06]POST find Content-Length [10:49:06]Host: 172.17.44.196:8080 [10:49:06]Content-Length: 678 [10:49:06]Content-Type: application/json [10:49:06] [10:49:06]POST finish read [10:49:06]Found Content-Length = 678 [10:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962836", "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.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:06]execute_script... [10:49: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 : (1)1962836", "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.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:06]POST & json_proto [10:49:06]process_json_proto [10:49:06]json parsed OK: [10:49:06]protocol is kg_v1.0 [10:49:06]action value=close_receipt [10:49:06]process_action close_receipt [10:49:06]cmd_close_receipt [10:49:06]MH_GetDate [10:49:06]Write to MH i2c: F0 00 00 AA 11 AA [10:49:06]Write i2c OK [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: F0 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: F0 09 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: F0 09 00 AA 11 00 23 E0 14 67 E7 19 F8 65 8E [10:49:06]GetLastDocTimeStamp 1729421342 [10:49:06]current date 1729421347 [10:49:06]FM_GetShiftState [10:49:06]SAM_PROTO_GetShiftState [10:49:06]wFMCommunicate request_size=4 [10:49:06]MH_SAM_APDU [10:49:06]CAPDU: 80 13 01 00 [10:49:06]Write to MH i2c: E2 08 00 AB 11 80 13 01 00 00 00 00 00 39 [10:49:06]Write i2c OK [10:49:06]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 0E 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 0E 00 AB 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7E [10:49:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:49:06]wFMCommunicate OK [10:49:06]SAM_PROTO_GetShiftState done [10:49:06]FM_GetShiftState done [10:49:06]opened in 1729384303 [10:49:06]opened+sec_in_day 1729470703 [10:49:06]quantity*price = 40006 [10:49:06]sum+1 = 40007 [10:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 90 20.10.2024 10:49 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73764 ФПД: 147599614157945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104907&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73764&fm=147599614157945&tin=02508201610067®Number=0000000000161154&sum=40000 [10:49:07]StoreToDocumentArchive [10:49:07]shift 170 fd 73764 [10:49:07]save to /storage/0170/doc_00073764 [10:49:07]save last doc name /storage/0170/doc_00073764 to /storage/kkm_last_doc_name [10:49:07]save OK [10:49:07]Clear old archive folders... [10:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:07]tlvbuf is 003A2BC0 [10:49:07]SAM_PROTO_ClearQueue [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 09 00 00 [10:49:07]Write to MH i2c: E2 08 00 B8 11 80 09 00 00 00 00 00 00 3B [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [10:49:07]RAPDU: 90 00 [10:49:07]wFMCommunicate OK [10:49:07]SAM_PROTO_ClearQueue done [10:49:07]KKMCreateOFDPacket [10:49:07]OFDProtocolAddRootSTLVToBuf [10:49:07]FM_MakeSignedData [10:49:07]FM_MakeSignedData [10:49:07]SAM_PROTO_SignData [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 0D 01 02 [10:49:07]Write to MH i2c: E2 08 00 B9 11 80 0D 01 02 00 00 00 00 43 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 B9 11 00 90 00 3E [10:49:07]RAPDU: 90 00 [10:49:07]wFMCommunicate OK [10:49:07]wFMCommunicate request_size=255 [10:49:07]MH_SAM_APDU [10:49:07]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 23 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 20 01 00 35 04 06 00 86 [10:49:07]Write to MH i2c: E2 02 01 BA 11 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 23 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 20 01 00 35 04 06 00 86 00 00 E1 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 BA 11 00 90 00 3F [10:49:07]RAPDU: 90 00 [10:49:07]wFMCommunicate OK [10:49:07]wFMCommunicate request_size=10 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 0D 02 02 05 3D B6 92 24 79 [10:49:07]Write to MH i2c: E2 0D 00 BB 11 80 0D 02 02 05 00 3D B6 92 24 79 00 00 72 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [10:49:07]RAPDU: 90 00 [10:49:07]wFMCommunicate OK [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 0D 03 02 [10:49:07]Write to MH i2c: E2 08 00 BC 11 80 0D 03 02 00 00 00 00 48 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 0B 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 0B 00 BC 11 00 5E 3A 53 4E AA 65 B4 45 90 00 8A [10:49:07]RAPDU: 5E 3A 53 4E AA 65 B4 45 90 00 [10:49:07]wFMCommunicate OK [10:49:07]SAM_PROTO_SignData done [10:49:07]FM_MakeSignedData done [10:49:07]CreateOFDProtocolMessage [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 11 00 00 [10:49:07]Write to MH i2c: E2 08 00 BD 11 80 11 00 00 00 00 00 00 48 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:08]Read from MH i2c: E2 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: E2 17 00 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: E2 17 00 BD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [10:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:08]wFMCommunicate OK [10:49:08]CreateOFDProtocolMessage done [10:49:08]OFDSenderStorePacket 73764 [10:49:08]StoreOFDPacket docnum=73764 [10:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F1 0C 07 01 BD FE 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 23 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 20 01 00 35 04 06 00 86 3D B6 92 24 79 5E 3A 53 4E AA 65 B4 45 [10:49:08]CheckFolder [10:49:08]dirname=/storage/ofd_packets [10:49:08]CheckFolder done [10:49:08]ProducePacketName [10:49:08]name=ofd_packets/00073764 [10:49:08]NVStorageSaveData ofd_packets/00073764 [10:49:08]File name is /storage/ofd_packets/00073764 [10:49:08]Write 301 bytes [10:49:08]NVStorageSaveData done [10:49:08]OFDSenderStorePacket done [10:49:08]KKMCreateOFDPacket done [10:49:08]NVStorageSaveData kkm_last_timestamp [10:49:08]File name is /storage/kkm_last_timestamp [10:49:08]Write 4 bytes [10:49:08]NVStorageSaveData done [10:49:08]ExternCall_PrintAddStr [10:49:08]wPrintStart [10:49:08]Write to MH i2c: 01 00 00 BE 11 CF [10:49:08]Write i2c OK [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: 01 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: 01 07 00 [10:49:08]MH_I2C_Read... [10:49:08]OFD Sender: Processing packet 73764 [packets to send 15, broken 14] [10:49:08]ProducePacketName [10:49:08]name=ofd_packets/00073764 [10:49:08]OFD Sender: To server: pG, [10:49:08]CommunicateWithHost lk.salyk.kg:30040 [10:49:08]ConnectInit lk.salyk.kg [10:49:08]Read from MH i2c: 01 07 00 BE 11 00 00 00 00 00 FF 0F E4 [10:49:08]RasterBufferAndPrint [10:49:08]line Счет N : (1)1962836 [10:49:08]line ИНН: 02508201610067 [10:49:08]line Контрольно-Кассовый Чек [10:49:08]line ПРОДАЖА [10:49:08]line ТРК (МРК, ГНК) : 43 [10:49:08]line Товар: 2710124130 [10:49:08]line Аи-92-К-5 [10:49:08]line 5.980 * 66.90 [10:49:08]line = 400.06 [10:49:08]line НДС 12% НСП 1% [10:49:08]line > о реализуемом товаре [10:49:08]line ОКРУГЛЕНИЕ: -0.06 [10:49:08]line ИТОГО: 400.00 [10:49:08]line Внесено: 400.00 [10:49:08]line СДАЧА: 0.00 [10:49:08]line НСП 1% : 3.54 [10:49:08]line НДС 12% : 42.48 [10:49:08]line Наличными: 400.00 [10:49:08]line Безнал.: 0.00 [10:49:08]line Место: АЗС № 133 "Партнер Нефть" [10:49:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:49:08]line СНО: Общий режим [10:49:08]line Чек 90 20.10.2024 10:49 [10:49:08]line Смена: 170 ФФД: 1.0 [10:49:08]line ЗНМ: 0300000020 [10:49:08]line РНМ: 0000000000161154 [10:49:08]line Версия ККМ: v1.0 [10:49:08]line ФМ: 0000000000963323 [10:49:08]Connected sock=10 [10:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F1 0C 07 01 BD FE 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 line ФД: 73764 [10:49:08]06 line ФПД: 147599614157945 [10:49:08]00 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104907&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73764&fm=147599614157945&tin=02508201610067®Number=0000000000161154&sum=40000 [10:49:08]46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 written 0, free lines is 4095 [10:49:08]01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 23 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 20 01 00 35 04 06 00 86 3D B6 92 24 79 5E 3A 53 4E AA 65 B4 45 [10:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D0 FF 47 00 FB C0 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 39 36 33 33 32 33 10 04 04 00 24 20 01 00 F4 03 04 00 08 89 14 67 B6 04 01 00 00 C8 78 8A 50 D8 2C A4 43 [10:49:08]CommunicateWithHost err = 0 [10:49:08]CheckOFDResponse [10:49:08]1017 (14) - 77093643461234 [10:49:08]1041 (16) - 0000000000963323 [10:49:08]1040 (4) - 73764 [10:49:08]1012 (4) - 20.10.2024 04:37 [10:49:08]1206 (1) - 0 [10:49:08]OFD Sender: Remove packet 73764 [10:49:08]ProducePacketName [10:49:08]name=ofd_packets/00073764 [10:49:08]NVStorageDeleteData [10:49:08]Write to MH i2c: 01 00 00 E8 11 F9 [10:49:08]Write i2c OK [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: 01 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: 01 07 00 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: 01 07 00 E8 11 00 00 00 00 00 BE 0C CA [10:49:08]RasterBufferAndPrint [10:49:08]line [10:49:08]line [10:49:08]line [10:49:08]line [10:49:08]line [10:49:08]written 0, free lines is 3279 [10:49:08]MH_Cut [10:49:08]Write to MH i2c: D1 01 00 EF 11 01 D2 [10:49:08]Write i2c OK [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: D1 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: D1 01 00 [10:49:08]MH_I2C_Read... [10:49:08]Read from MH i2c: D1 01 00 EF 11 00 D1 [10:49:08]Write to MH i2c: 01 00 00 F0 11 01 [10:49:08]Write i2c OK [10:49:08]MH_I2C_Read... [10:49:09]OFD Sender: No OFD packet to send [10:49:09]*** Cut start [10:49:09]*** Partial cut [10:49:09]*** CUTSNS_PIN = 1 [10:49:09]*** CUTSNS_PIN = 0 [10:49:10]*** Brake cut motor [10:49:10]Read from MH i2c: 01 [10:49:10]MH_I2C_Read... [10:49:10]*** Stop cut motor [10:49:10]*** Cut end [10:49:10]Read from MH i2c: 01 07 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 FF 0F 16 [10:49:10]process_action close_receipt done [10:49:10]requested_data is exist [10:49:10]produce_requested_data [10:49:10]requested_item fm.sn is exist - process it [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 11 00 00 [10:49:10]Write to MH i2c: E2 08 00 F1 11 80 11 00 00 00 00 00 00 7C [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 17 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 17 00 F1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C9 [10:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:10]wFMCommunicate OK [10:49:10]requested_item fd.num is exist - process it [10:49:10]SAM_PROTO_GetFieldsCounters [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 00 00 [10:49:10]Write to MH i2c: E2 08 00 F2 11 80 13 00 00 00 00 00 00 7F [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 62 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 62 00 F2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 20 01 00 0E 04 04 00 AA 00 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 90 [10:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 20 01 00 0E 04 04 00 AA 00 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 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetFieldsCounters done [10:49:10]requested_item shift.num is exist - process it [10:49:10]requested_item shift.opened is exist - process it [10:49:10]req_shift_opened [10:49:10]FM_GetShiftState [10:49:10]SAM_PROTO_GetShiftState [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 01 00 [10:49:10]Write to MH i2c: E2 08 00 F3 11 80 13 01 00 00 00 00 00 81 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 F3 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C6 [10:49:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetShiftState done [10:49:10]FM_GetShiftState done [10:49:10]req_shift_opened done [10:49:10]requested_item shift.open_date is exist - process it [10:49:10]req_shift_open_date [10:49:10]req_shift_open_date done [10:49:10]produce_requested_data done [10:49:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73764,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:49:10]process_action_free close_receipt [10:49:10]json_value_free [10:49:10]json_value_free done [10:49:10]process_json_proto returns [10:49:10]Send response to host [10:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73764,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:49:10]free response buf [10:49:10]execute_script done [10:49:10]execute_script returns [10:49:10]free content buf [10:49:10]Sock 8.Close socket [10:49:10]Sock 8.Thread stoped [10:49:11]accept exits with 9 [10:49:11]New connection [10:49:11]New thread 3067432292 created [10:49:11]Thread 3067575652 joined [10:49:11]Waiting for new connection... [10:49:11] Sock 9.Parse request [10:49:11]Sock 9.Check first char [10:49:11]Sock 9.First char is OK [10:49:11]request: POST /json_proto HTTP/1.0 [10:49:11]Method: POST [10:49:11]URL: /json_proto [10:49:11]Method is POST - this is cgi request [10:49:11]url: /json_proto [10:49:11]query_string will be loaded in cgi processing [10:49:11]execute_cgi json_proto POST (null) [10:49:11]execute_cgi path=json_proto method=POST [10:49:11]POST find Content-Length [10:49:11]Host: 172.17.44.196:8080 [10:49:11]Content-Length: 678 [10:49:11]Content-Type: application/json [10:49:11] [10:49:11]POST finish read [10:49:11]Found Content-Length = 678 [10:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962837", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [10:49:11]execute_script... [10:49: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 : (1)1962837", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [10:49:11]POST & json_proto [10:49:11]process_json_proto [10:49:11]json parsed OK: [10:49:11]protocol is kg_v1.0 [10:49:11]action value=close_receipt [10:49:11]process_action close_receipt [10:49:11]cmd_close_receipt [10:49:11]MH_GetDate [10:49:11]Write to MH i2c: F0 00 00 F4 11 F4 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: F0 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: F0 09 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: F0 09 00 F4 11 00 28 E0 14 67 E7 19 F8 65 DD [10:49:11]GetLastDocTimeStamp 1729421347 [10:49:11]current date 1729421352 [10:49:11]FM_GetShiftState [10:49:11]SAM_PROTO_GetShiftState [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 13 01 00 [10:49:11]Write to MH i2c: E2 08 00 F5 11 80 13 01 00 00 00 00 00 83 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0E 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0E 00 F5 11 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C8 [10:49:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_GetShiftState done [10:49:11]FM_GetShiftState done [10:49:11]opened in 1729384303 [10:49:11]opened+sec_in_day 1729470703 [10:49:11]quantity*price = 50041 [10:49:11]sum+1 = 50042 [10:49:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 91 20.10.2024 10:49 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73765 ФПД: 81578694697544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104912&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73765&fm=81578694697544&tin=02508201610067®Number=0000000000161154&sum=50000 [10:49:12]StoreToDocumentArchive [10:49:12]shift 170 fd 73765 [10:49:12]save to /storage/0170/doc_00073765 [10:49:12]save last doc name /storage/0170/doc_00073765 to /storage/kkm_last_doc_name [10:49:12]save OK [10:49:12]Clear old archive folders... [10:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:12]tlvbuf is 00355820 [10:49:12]SAM_PROTO_ClearQueue [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 09 00 00 [10:49:12]Write to MH i2c: E2 08 00 02 12 80 09 00 00 00 00 00 00 86 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 02 12 00 90 00 88 [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]SAM_PROTO_ClearQueue done [10:49:12]KKMCreateOFDPacket [10:49:12]OFDProtocolAddRootSTLVToBuf [10:49:12]FM_MakeSignedData [10:49:12]FM_MakeSignedData [10:49:12]SAM_PROTO_SignData [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 0D 01 02 [10:49:12]Write to MH i2c: E2 08 00 03 12 80 0D 01 02 00 00 00 00 8E [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 03 12 00 90 00 89 [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=255 [10:49:12]MH_SAM_APDU [10:49:12]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 5B 00 00 00 F4 03 04 00 28 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 20 01 00 35 04 06 00 4A [10:49:12]Write to MH i2c: E2 02 01 04 12 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 5B 00 00 00 F4 03 04 00 28 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 20 01 00 35 04 06 00 4A 00 00 28 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 04 12 00 90 00 8A [10:49:13]RAPDU: 90 00 [10:49:13]wFMCommunicate OK [10:49:13]wFMCommunicate request_size=10 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 0D 02 02 05 32 05 1E 62 48 [10:49:13]Write to MH i2c: E2 0D 00 05 12 80 0D 02 02 05 00 32 05 1E 62 48 00 00 9A [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 05 12 00 90 00 8B [10:49:13]RAPDU: 90 00 [10:49:13]wFMCommunicate OK [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 0D 03 02 [10:49:13]Write to MH i2c: E2 08 00 06 12 80 0D 03 02 00 00 00 00 93 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 0B 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 0B 00 06 12 00 49 5D EA B3 33 D5 7D 2A 90 00 86 [10:49:13]RAPDU: 49 5D EA B3 33 D5 7D 2A 90 00 [10:49:13]wFMCommunicate OK [10:49:13]SAM_PROTO_SignData done [10:49:13]FM_MakeSignedData done [10:49:13]CreateOFDProtocolMessage [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 11 00 00 [10:49:13]Write to MH i2c: E2 08 00 07 12 80 11 00 00 00 00 00 00 93 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 17 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 17 00 07 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E0 [10:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:13]wFMCommunicate OK [10:49:13]CreateOFDProtocolMessage done [10:49:13]OFDSenderStorePacket 73765 [10:49:13]StoreOFDPacket docnum=73765 [10:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8A F9 07 01 7F D8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 5B 00 00 00 F4 03 04 00 28 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 20 01 00 35 04 06 00 4A 32 05 1E 62 48 49 5D EA B3 33 D5 7D 2A [10:49:13]CheckFolder [10:49:13]dirname=/storage/ofd_packets [10:49:13]CheckFolder done [10:49:13]ProducePacketName [10:49:13]name=ofd_packets/00073765 [10:49:13]NVStorageSaveData ofd_packets/00073765 [10:49:13]File name is /storage/ofd_packets/00073765 [10:49:13]Write 301 bytes [10:49:13]NVStorageSaveData done [10:49:13]OFDSenderStorePacket done [10:49:13]KKMCreateOFDPacket done [10:49:13]NVStorageSaveData kkm_last_timestamp [10:49:13]File name is /storage/kkm_last_timestamp [10:49:13]Write 4 bytes [10:49:13]NVStorageSaveData done [10:49:13]ExternCall_PrintAddStr [10:49:13]wPrintStart [10:49:13]Write to MH i2c: 01 00 00 08 12 1A [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 08 12 00 00 00 00 00 FF 0F 2F [10:49:13]RasterBufferAndPrint [10:49:13]line Счет N : (1)1962837 [10:49:13]line ИНН: 02508201610067 [10:49:13]line Контрольно-Кассовый Чек [10:49:13]line ПРОДАЖА [10:49:13]line ТРК (МРК, ГНК) : 33 [10:49:13]line Товар: 2710124130 [10:49:13]line Аи-92-К-5 [10:49:13]line 7.480 * 66.90 [10:49:13]line = 500.41 [10:49:13]line НДС 12% НСП 1% [10:49:13]line > о реализуемом товаре [10:49:13]line ОКРУГЛЕНИЕ: -0.41 [10:49:13]line ИТОГО: 500.00 [10:49:13]line Внесено: 500.00 [10:49:13]line СДАЧА: 0.00 [10:49:13]line НСП 1% : 4.43 [10:49:13]line НДС 12% : 53.14 [10:49:13]line Наличными: 500.00 [10:49:13]line Безнал.: 0.00 [10:49:13]line Место: АЗС № 133 "Партнер Нефть" [10:49:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:49:13]line СНО: Общий режим [10:49:13]line Чек 91 20.10.2024 10:49 [10:49:13]line Смена: 170 ФФД: 1.0 [10:49:13]line ЗНМ: 0300000020 [10:49:13]line РНМ: 0000000000161154 [10:49:13]line Версия ККМ: v1.0 [10:49:13]line ФМ: 0000000000963323 [10:49:13]line ФД: 73765 [10:49:13]line ФПД: 81578694697544 [10:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104912&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73765&fm=81578694697544&tin=02508201610067®Number=0000000000161154&sum=50000 [10:49:13]written 0, free lines is 4095 [10:49:13]OFD Sender: Processing packet 73765 [packets to send 15, broken 14] [10:49:13]ProducePacketName [10:49:13]name=ofd_packets/00073765 [10:49:13]OFD Sender: To server: pG, [10:49:13]CommunicateWithHost lk.salyk.kg:30040 [10:49:13]ConnectInit lk.salyk.kg [10:49:13]Connected sock=8 [10:49:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8A F9 07 01 7F D8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 5B 00 00 00 F4 03 04 00 28 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 20 01 00 35 04 06 00 4A 32 05 1E 62 48 49 5D EA B3 33 D5 7D 2A [10:49:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 38 14 47 00 29 BA 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 39 36 33 33 32 33 10 04 04 00 25 20 01 00 F4 03 04 00 0D 89 14 67 B6 04 01 00 00 08 6A C0 7A 4B 8A 99 59 [10:49:13]CommunicateWithHost err = 0 [10:49:13]CheckOFDResponse [10:49:13]1017 (14) - 77093643461234 [10:49:13]1041 (16) - 0000000000963323 [10:49:13]1040 (4) - 73765 [10:49:13]1012 (4) - 20.10.2024 04:37 [10:49:13]1206 (1) - 0 [10:49:13]OFD Sender: Remove packet 73765 [10:49:13]ProducePacketName [10:49:13]name=ofd_packets/00073765 [10:49:13]NVStorageDeleteData [10:49:13]Write to MH i2c: 01 00 00 32 12 44 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 32 12 00 00 00 00 00 3F 0D 97 [10:49:13]RasterBufferAndPrint [10:49:13]line [10:49:13]line [10:49:13]line [10:49:13]line [10:49:13]line [10:49:13]written 0, free lines is 3412 [10:49:13]MH_Cut [10:49:13]Write to MH i2c: D1 01 00 39 12 01 1D [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: D1 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: D1 01 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: D1 01 00 39 12 00 1C [10:49:13]Write to MH i2c: 01 00 00 3A 12 4C [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:14]OFD Sender: No OFD packet to send [10:49:14]*** Cut start [10:49:14]*** Partial cut [10:49:14]*** CUTSNS_PIN = 1 [10:49:14]*** CUTSNS_PIN = 0 [10:49:14]*** Brake cut motor [10:49:15]Read from MH i2c: 01 [10:49:15]MH_I2C_Read... [10:49:15]*** Stop cut motor [10:49:15]*** Cut end [10:49:15]Read from MH i2c: 01 07 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 FF 0F 61 [10:49:15]process_action close_receipt done [10:49:15]requested_data is exist [10:49:15]produce_requested_data [10:49:15]requested_item fm.sn is exist - process it [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 11 00 00 [10:49:15]Write to MH i2c: E2 08 00 3B 12 80 11 00 00 00 00 00 00 C7 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 3B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [10:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:15]wFMCommunicate OK [10:49:15]requested_item fd.num is exist - process it [10:49:15]SAM_PROTO_GetFieldsCounters [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 13 00 00 [10:49:15]Write to MH i2c: E2 08 00 3C 12 80 13 00 00 00 00 00 00 CA [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 62 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 62 00 3C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 20 01 00 0E 04 04 00 AA 00 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 DF [10:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 20 01 00 0E 04 04 00 AA 00 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 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetFieldsCounters done [10:49:15]requested_item shift.num is exist - process it [10:49:15]requested_item shift.opened is exist - process it [10:49:15]req_shift_opened [10:49:15]FM_GetShiftState [10:49:15]SAM_PROTO_GetShiftState [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 13 01 00 [10:49:15]Write to MH i2c: E2 08 00 3D 12 80 13 01 00 00 00 00 00 CC [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 3D 12 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 11 [10:49:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetShiftState done [10:49:15]FM_GetShiftState done [10:49:15]req_shift_opened done [10:49:15]requested_item shift.open_date is exist - process it [10:49:15]req_shift_open_date [10:49:15]req_shift_open_date done [10:49:15]produce_requested_data done [10:49:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73765,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:49:15]process_action_free close_receipt [10:49:15]json_value_free [10:49:15]json_value_free done [10:49:15]process_json_proto returns [10:49:15]Send response to host [10:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73765,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:49:15]free response buf [10:49:15]execute_script done [10:49:15]execute_script returns [10:49:15]free content buf [10:49:15]Sock 9.Close socket [10:49:15]Sock 9.Thread stoped [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:04]accept exits with 10 [10:50:04]New connection [10:50:04]New thread 3067575652 created [10:50:04]Thread 3067432292 joined [10:50:04]Waiting for new connection... [10:50:04] Sock 10.Parse request [10:50:04]Sock 10.Check first char [10:50:04]Sock 10.First char is OK [10:50:04]request: POST /json_proto HTTP/1.0 [10:50:04]Method: POST [10:50:04]URL: /json_proto [10:50:04]Method is POST - this is cgi request [10:50:04]url: /json_proto [10:50:04]query_string will be loaded in cgi processing [10:50:04]execute_cgi json_proto POST (null) [10:50:04]execute_cgi path=json_proto method=POST [10:50:04]POST find Content-Length [10:50:04]Host: 172.17.44.196:8080 [10:50:04]Content-Length: 659 [10:50:04]Content-Type: application/json [10:50:04] [10:50:04]POST finish read [10:50:04]Found Content-Length = 659 [10:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:04]execute_script... [10:50: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 : (1)1962839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:04]POST & json_proto [10:50:04]process_json_proto [10:50:04]json parsed OK: [10:50:04]protocol is kg_v1.0 [10:50:04]action value=close_receipt [10:50:04]process_action close_receipt [10:50:04]cmd_close_receipt [10:50:04]MH_GetDate [10:50:04]Write to MH i2c: F0 00 00 3E 12 3F [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: F0 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: F0 09 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: F0 09 00 3E 12 00 5D E0 14 67 E7 19 F8 65 5D [10:50:04]GetLastDocTimeStamp 1729421352 [10:50:04]current date 1729421405 [10:50:04]FM_GetShiftState [10:50:04]SAM_PROTO_GetShiftState [10:50:04]wFMCommunicate request_size=4 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 13 01 00 [10:50:04]Write to MH i2c: E2 08 00 3F 12 80 13 01 00 00 00 00 00 CE [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 0E 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 0E 00 3F 12 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 13 [10:50:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:50:04]wFMCommunicate OK [10:50:04]SAM_PROTO_GetShiftState done [10:50:04]FM_GetShiftState done [10:50:04]opened in 1729384303 [10:50:04]opened+sec_in_day 1729470703 [10:50:04]quantity*price = 40014 [10:50:04]sum+1 = 40015 [10:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 92 20.10.2024 10:50 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73766 ФПД: 171592030693507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105005&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73766&fm=171592030693507&tin=02508201610067®Number=0000000000161154&sum=40000 [10:50:05]StoreToDocumentArchive [10:50:05]shift 170 fd 73766 [10:50:05]save to /storage/0170/doc_00073766 [10:50:05]save last doc name /storage/0170/doc_00073766 to /storage/kkm_last_doc_name [10:50:05]save OK [10:50:05]Clear old archive folders... [10:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:50:05]tlvbuf is B6F40390 [10:50:05]SAM_PROTO_ClearQueue [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 09 00 00 [10:50:05]Write to MH i2c: E2 08 00 4C 12 80 09 00 00 00 00 00 00 D0 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_ClearQueue done [10:50:05]KKMCreateOFDPacket [10:50:05]OFDProtocolAddRootSTLVToBuf [10:50:05]FM_MakeSignedData [10:50:05]FM_MakeSignedData [10:50:05]SAM_PROTO_SignData [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 0D 01 02 [10:50:05]Write to MH i2c: E2 08 00 4D 12 80 0D 01 02 00 00 00 00 D8 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 4D 12 00 90 00 D3 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]wFMCommunicate request_size=253 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 5D E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 20 01 00 35 04 06 00 9C 0F E2 09 28 83 [10:50:05]Write to MH i2c: E2 00 01 4E 12 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 5D E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 20 01 00 35 04 06 00 9C 0F E2 09 28 83 00 00 39 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 03 00 4E 12 00 90 00 D4 [10:50:05]RAPDU: 90 00 [10:50:05]wFMCommunicate OK [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 0D 03 02 [10:50:05]Write to MH i2c: E2 08 00 4F 12 80 0D 03 02 00 00 00 00 DC [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0B 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0B 00 4F 12 00 87 26 A3 1B 1C D8 42 B9 90 00 37 [10:50:05]RAPDU: 87 26 A3 1B 1C D8 42 B9 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_SignData done [10:50:05]FM_MakeSignedData done [10:50:05]CreateOFDProtocolMessage [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 11 00 00 [10:50:05]Write to MH i2c: E2 08 00 50 12 80 11 00 00 00 00 00 00 DC [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:06]Read from MH i2c: E2 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 17 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 17 00 50 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 29 [10:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:50:06]wFMCommunicate OK [10:50:06]CreateOFDProtocolMessage done [10:50:06]OFDSenderStorePacket 73766 [10:50:06]StoreOFDPacket docnum=73766 [10:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 F8 3B 00 01 55 C9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 5D E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 20 01 00 35 04 06 00 9C 0F E2 09 28 83 87 26 A3 1B 1C D8 42 B9 [10:50:06]CheckFolder [10:50:06]dirname=/storage/ofd_packets [10:50:06]CheckFolder done [10:50:06]ProducePacketName [10:50:06]name=ofd_packets/00073766 [10:50:06]NVStorageSaveData ofd_packets/00073766 [10:50:06]File name is /storage/ofd_packets/00073766 [10:50:06]Write 294 bytes [10:50:06]NVStorageSaveData done [10:50:06]OFDSenderStorePacket done [10:50:06]KKMCreateOFDPacket done [10:50:06]NVStorageSaveData kkm_last_timestamp [10:50:06]File name is /storage/kkm_last_timestamp [10:50:06]Write 4 bytes [10:50:06]NVStorageSaveData done [10:50:06]ExternCall_PrintAddStr [10:50:06]wPrintStart [10:50:06]Write to MH i2c: 01 00 00 51 12 63 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 FF 0F 78 [10:50:06]RasterBufferAndPrint [10:50:06]line Счет N : (1)1962839 [10:50:06]line ИНН: 02508201610067 [10:50:06]line Контрольно-Кассовый Чек [10:50:06]line ПРОДАЖА [10:50:06]line ТРК (МРК, ГНК) : 62 [10:50:06]line Товар: 2710124130 [10:50:06]line SU-92 [10:50:06]line 5.850 * 68.40 [10:50:06]line = 400.14 [10:50:06]line НДС 12% НСП 1% [10:50:06]line > о реализуемом товаре [10:50:06]line ОКРУГЛЕНИЕ: -0.14 [10:50:06]line ИТОГО: 400.00 [10:50:06]line Внесено: 400.00 [10:50:06]line СДАЧА: 0.00 [10:50:06]line НСП 1% : 3.54 [10:50:06]line НДС 12% : 42.49 [10:50:06]line Наличными: 400.00 [10:50:06]line Безнал.: 0.00 [10:50:06]line Место: АЗС № 133 "Партнер Нефть" [10:50:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:50:06]line СНО: Общий режим [10:50:06]line Чек 92 20.10.2024 10:50 [10:50:06]line Смена: 170 ФФД: 1.0 [10:50:06]line ЗНМ: 0300000020 [10:50:06]line РНМ: 0000000000161154 [10:50:06]line Версия ККМ: v1.0 [10:50:06]line ФМ: 0000000000963323 [10:50:06]line ФД: 73766 [10:50:06]line ФПД: 171592030693507 [10:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105005&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73766&fm=171592030693507&tin=02508201610067®Number=0000000000161154&sum=40000 [10:50:06]OFD Sender: Processing packet 73766 [packets to send 15, broken 14] [10:50:06]ProducePacketName [10:50:06]name=ofd_packets/00073766 [10:50:06]OFD Sender: To server: pG, [10:50:06]CommunicateWithHost lk.salyk.kg:30040 [10:50:06]ConnectInit lk.salyk.kg [10:50:06]written 0, free lines is 4095 [10:50:06]Connected sock=9 [10:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 F8 3B 00 01 55 C9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 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 5D E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 20 01 00 35 04 06 00 9C 0F E2 09 28 83 87 26 A3 1B 1C D8 42 B9 [10:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F0 49 47 00 B0 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 39 36 33 33 32 33 10 04 04 00 26 20 01 00 F4 03 04 00 42 89 14 67 B6 04 01 00 00 C4 CB A7 CE 83 79 4A B0 [10:50:06]CommunicateWithHost err = 0 [10:50:06]CheckOFDResponse [10:50:06]1017 (14) - 77093643461234 [10:50:06]1041 (16) - 0000000000963323 [10:50:06]1040 (4) - 73766 [10:50:06]1012 (4) - 20.10.2024 04:38 [10:50:06]1206 (1) - 0 [10:50:06]OFD Sender: Remove packet 73766 [10:50:06]ProducePacketName [10:50:06]name=ofd_packets/00073766 [10:50:06]NVStorageDeleteData [10:50:06]Write to MH i2c: 01 00 00 7B 12 8D [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 7B 12 00 00 00 00 00 B9 0C 59 [10:50:06]RasterBufferAndPrint [10:50:06]line [10:50:06]line [10:50:06]line [10:50:06]line [10:50:06]line [10:50:06]written 0, free lines is 3263 [10:50:06]MH_Cut [10:50:06]Write to MH i2c: D1 01 00 82 12 01 66 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: D1 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: D1 01 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: D1 01 00 82 12 00 65 [10:50:06]Write to MH i2c: 01 00 00 83 12 95 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:07]OFD Sender: No OFD packet to send [10:50:07]*** Cut start [10:50:07]*** Partial cut [10:50:07]*** CUTSNS_PIN = 1 [10:50:07]*** CUTSNS_PIN = 0 [10:50:07]*** Brake cut motor [10:50:08]Read from MH i2c: 01 [10:50:08]MH_I2C_Read... [10:50:08]*** Stop cut motor [10:50:08]*** Cut end [10:50:08]Read from MH i2c: 01 07 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: 01 07 00 83 12 00 00 00 00 00 FF 0F AA [10:50:08]process_action close_receipt done [10:50:08]requested_data is exist [10:50:08]produce_requested_data [10:50:08]requested_item fm.sn is exist - process it [10:50:08]wFMCommunicate request_size=4 [10:50:08]MH_SAM_APDU [10:50:08]CAPDU: 80 11 00 00 [10:50:08]Write to MH i2c: E2 08 00 84 12 80 11 00 00 00 00 00 00 10 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:08]Read from MH i2c: E2 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 17 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 17 00 84 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [10:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:50:08]wFMCommunicate OK [10:50:08]requested_item fd.num is exist - process it [10:50:08]SAM_PROTO_GetFieldsCounters [10:50:08]wFMCommunicate request_size=4 [10:50:08]MH_SAM_APDU [10:50:08]CAPDU: 80 13 00 00 [10:50:08]Write to MH i2c: E2 08 00 85 12 80 13 00 00 00 00 00 00 13 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:08]Read from MH i2c: E2 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 62 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 62 00 85 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 26 20 01 00 0E 04 04 00 AA 00 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 2C [10:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 26 20 01 00 0E 04 04 00 AA 00 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 [10:50:08]wFMCommunicate OK [10:50:08]SAM_PROTO_GetFieldsCounters done [10:50:08]requested_item shift.num is exist - process it [10:50:08]requested_item shift.opened is exist - process it [10:50:08]req_shift_opened [10:50:08]FM_GetShiftState [10:50:08]SAM_PROTO_GetShiftState [10:50:08]wFMCommunicate request_size=4 [10:50:08]MH_SAM_APDU [10:50:08]CAPDU: 80 13 01 00 [10:50:08]Write to MH i2c: E2 08 00 86 12 80 13 01 00 00 00 00 00 15 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:08]Read from MH i2c: E2 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 0E 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: E2 0E 00 86 12 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5A [10:50:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:50:08]wFMCommunicate OK [10:50:08]SAM_PROTO_GetShiftState done [10:50:08]FM_GetShiftState done [10:50:08]req_shift_opened done [10:50:08]requested_item shift.open_date is exist - process it [10:50:08]req_shift_open_date [10:50:08]req_shift_open_date done [10:50:08]produce_requested_data done [10:50:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73766,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:50:08]process_action_free close_receipt [10:50:08]json_value_free [10:50:08]json_value_free done [10:50:08]process_json_proto returns [10:50:08]Send response to host [10:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73766,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:50:08]free response buf [10:50:08]execute_script done [10:50:08]execute_script returns [10:50:08]free content buf [10:50:08]Sock 10.Close socket [10:50:08]Sock 10.Thread stoped [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:01]accept exits with 8 [10:52:01]New connection [10:52:01]New thread 3067432292 created [10:52:01]Thread 3067575652 joined [10:52:01]Waiting for new connection... [10:52:01] Sock 8.Parse request [10:52:01]Sock 8.Check first char [10:52:01]Sock 8.First char is OK [10:52:01]request: POST /json_proto HTTP/1.0 [10:52:01]Method: POST [10:52:01]URL: /json_proto [10:52:01]Method is POST - this is cgi request [10:52:01]url: /json_proto [10:52:01]query_string will be loaded in cgi processing [10:52:01]execute_cgi json_proto POST (null) [10:52:01]execute_cgi path=json_proto method=POST [10:52:01]POST find Content-Length [10:52:01]Host: 172.17.44.196:8080 [10:52:01]Content-Length: 679 [10:52:01]Content-Type: application/json [10:52:01] [10:52:01]POST finish read [10:52:01]Found Content-Length = 679 [10:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962841", "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" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:01]execute_script... [10:52:01]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)1962841", "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" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:01]POST & json_proto [10:52:01]process_json_proto [10:52:01]json parsed OK: [10:52:01]protocol is kg_v1.0 [10:52:01]action value=close_receipt [10:52:01]process_action close_receipt [10:52:01]cmd_close_receipt [10:52:01]MH_GetDate [10:52:01]Write to MH i2c: F0 00 00 87 12 88 [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: F0 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: F0 09 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: F0 09 00 87 12 00 D2 E0 14 67 E7 19 F8 65 1B [10:52:01]GetLastDocTimeStamp 1729421405 [10:52:01]current date 1729421522 [10:52:01]FM_GetShiftState [10:52:01]SAM_PROTO_GetShiftState [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 13 01 00 [10:52:01]Write to MH i2c: E2 08 00 88 12 80 13 01 00 00 00 00 00 17 [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 0E 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 0E 00 88 12 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5C [10:52:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:52:01]wFMCommunicate OK [10:52:01]SAM_PROTO_GetShiftState done [10:52:01]FM_GetShiftState done [10:52:01]opened in 1729384303 [10:52:01]opened+sec_in_day 1729470703 [10:52:01]quantity*price = 80012 [10:52:01]sum+1 = 80013 [10:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 93 20.10.2024 10:52 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73767 ФПД: 272527713797317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105202&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73767&fm=272527713797317&tin=02508201610067®Number=0000000000161154&sum=80000 [10:52:02]StoreToDocumentArchive [10:52:02]shift 170 fd 73767 [10:52:02]save to /storage/0170/doc_00073767 [10:52:02]save last doc name /storage/0170/doc_00073767 to /storage/kkm_last_doc_name [10:52:02]save OK [10:52:02]Clear old archive folders... [10:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:02]tlvbuf is 003B4180 [10:52:02]SAM_PROTO_ClearQueue [10:52:02]wFMCommunicate request_size=4 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 09 00 00 [10:52:02]Write to MH i2c: E2 08 00 95 12 80 09 00 00 00 00 00 00 19 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [10:52:02]RAPDU: 90 00 [10:52:02]wFMCommunicate OK [10:52:02]SAM_PROTO_ClearQueue done [10:52:02]KKMCreateOFDPacket [10:52:02]OFDProtocolAddRootSTLVToBuf [10:52:02]FM_MakeSignedData [10:52:02]FM_MakeSignedData [10:52:02]SAM_PROTO_SignData [10:52:02]wFMCommunicate request_size=4 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 0D 01 02 [10:52:02]Write to MH i2c: E2 08 00 96 12 80 0D 01 02 00 00 00 00 21 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [10:52:02]RAPDU: 90 00 [10:52:02]wFMCommunicate OK [10:52:02]wFMCommunicate request_size=255 [10:52:02]MH_SAM_APDU [10:52:02]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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D2 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 20 01 00 35 04 06 00 F7 [10:52:02]Write to MH i2c: E2 02 01 97 12 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D2 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 20 01 00 35 04 06 00 F7 00 00 02 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [10:52:02]RAPDU: 90 00 [10:52:02]wFMCommunicate OK [10:52:02]wFMCommunicate request_size=10 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 0D 02 02 05 DC CD 92 84 C5 [10:52:02]Write to MH i2c: E2 0D 00 98 12 80 0D 02 02 05 00 DC CD 92 84 C5 00 00 B2 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [10:52:02]RAPDU: 90 00 [10:52:02]wFMCommunicate OK [10:52:02]wFMCommunicate request_size=4 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 0D 03 02 [10:52:02]Write to MH i2c: E2 08 00 99 12 80 0D 03 02 00 00 00 00 26 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 0B 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 0B 00 99 12 00 50 BC CB 90 77 51 A8 8C 90 00 8A [10:52:02]RAPDU: 50 BC CB 90 77 51 A8 8C 90 00 [10:52:02]wFMCommunicate OK [10:52:02]SAM_PROTO_SignData done [10:52:02]FM_MakeSignedData done [10:52:02]CreateOFDProtocolMessage [10:52:02]wFMCommunicate request_size=4 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 11 00 00 [10:52:02]Write to MH i2c: E2 08 00 9A 12 80 11 00 00 00 00 00 00 26 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 17 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 17 00 9A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [10:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:52:02]wFMCommunicate OK [10:52:02]CreateOFDProtocolMessage done [10:52:02]OFDSenderStorePacket 73767 [10:52:02]StoreOFDPacket docnum=73767 [10:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 13 09 07 01 78 ED 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D2 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 20 01 00 35 04 06 00 F7 DC CD 92 84 C5 50 BC CB 90 77 51 A8 8C [10:52:02]CheckFolder [10:52:02]dirname=/storage/ofd_packets [10:52:02]CheckFolder done [10:52:02]ProducePacketName [10:52:02]name=ofd_packets/00073767 [10:52:02]NVStorageSaveData ofd_packets/00073767 [10:52:02]File name is /storage/ofd_packets/00073767 [10:52:02]Write 301 bytes [10:52:02]NVStorageSaveData done [10:52:02]OFDSenderStorePacket done [10:52:02]KKMCreateOFDPacket done [10:52:02]NVStorageSaveData kkm_last_timestamp [10:52:02]File name is /storage/kkm_last_timestamp [10:52:02]Write 4 bytes [10:52:02]NVStorageSaveData done [10:52:02]ExternCall_PrintAddStr [10:52:02]wPrintStart [10:52:02]Write to MH i2c: 01 00 00 9B 12 AD [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: 01 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: 01 07 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: 01 07 00 9B 12 00 00 00 00 00 FF 0F C2 [10:52:02]RasterBufferAndPrint [10:52:02]line Счет N : (1)1962841 [10:52:02]line ИНН: 02508201610067 [10:52:02]line Контрольно-Кассовый Чек [10:52:02]line ПРОДАЖА [10:52:02]line ТРК (МРК, ГНК) : 53 [10:52:02]line Товар: 2710124130 [10:52:02]line Аи-92-К-5 [10:52:02]line 11.960 * 66.90 [10:52:02]line = 800.12 [10:52:02]line НДС 12% НСП 1% [10:52:02]line > о реализуемом товаре [10:52:02]line ОКРУГЛЕНИЕ: -0.12 [10:52:02]line ИТОГО: 800.00 [10:52:02]line Внесено: 800.00 [10:52:02]line СДАЧА: 0.00 [10:52:02]line НСП 1% : 7.08 [10:52:02]line НДС 12% : 84.97 [10:52:02]line Наличными: 800.00 [10:52:02]line Безнал.: 0.00 [10:52:02]line Место: АЗС № 133 "Партнер Нефть" [10:52:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:52:02]line СНО: Общий режим [10:52:02]line Чек 93 20.10.2024 10:52 [10:52:02]line Смена: 170 ФФД: 1.0 [10:52:02]line ЗНМ: 0300000020 [10:52:02]line РНМ: 0000000000161154 [10:52:02]line Версия ККМ: v1.0 [10:52:02]line ФМ: 0000000000963323 [10:52:02]line ФД: 73767 [10:52:02]line ФПД: 272527713797317 [10:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105202&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73767&fm=272527713797317&tin=02508201610067®Number=0000000000161154&sum=80000 [10:52:03]OFD Sender: Processing packet 73767 [packets to send 15, broken 14] [10:52:03]ProducePacketName [10:52:03]name=ofd_packets/00073767 [10:52:03]OFD Sender: To server: pG, [10:52:03]CommunicateWithHost lk.salyk.kg:30040 [10:52:03]ConnectInit lk.salyk.kg [10:52:03]written 0, free lines is 4095 [10:52:03]Connected sock=10 [10:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 13 09 07 01 78 ED 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D2 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 20 01 00 35 04 06 00 F7 DC CD 92 84 C5 50 BC CB 90 77 51 A8 8C [10:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B4 89 47 00 DD 48 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 39 36 33 33 32 33 10 04 04 00 27 20 01 00 F4 03 04 00 B7 89 14 67 B6 04 01 00 00 24 73 A1 38 E1 EC B1 58 [10:52:03]CommunicateWithHost err = 0 [10:52:03]CheckOFDResponse [10:52:03]1017 (14) - 77093643461234 [10:52:03]1041 (16) - 0000000000963323 [10:52:03]1040 (4) - 73767 [10:52:03]1012 (4) - 20.10.2024 04:40 [10:52:03]1206 (1) - 0 [10:52:03]OFD Sender: Remove packet 73767 [10:52:03]ProducePacketName [10:52:03]name=ofd_packets/00073767 [10:52:03]NVStorageDeleteData [10:52:03]Write to MH i2c: 01 00 00 C5 12 D7 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: 01 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: 01 07 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 BF 0C A9 [10:52:03]RasterBufferAndPrint [10:52:03]line [10:52:03]line [10:52:03]line [10:52:03]line [10:52:03]line [10:52:03]written 0, free lines is 3267 [10:52:03]MH_Cut [10:52:03]Write to MH i2c: D1 01 00 CC 12 01 B0 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: D1 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: D1 01 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: D1 01 00 CC 12 00 AF [10:52:03]Write to MH i2c: 01 00 00 CD 12 DF [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:04]OFD Sender: No OFD packet to send [10:52:04]*** Cut start [10:52:04]*** Partial cut [10:52:04]*** CUTSNS_PIN = 1 [10:52:04]*** CUTSNS_PIN = 0 [10:52:04]*** Brake cut motor [10:52:05]Read from MH i2c: 01 [10:52:05]MH_I2C_Read... [10:52:05]*** Stop cut motor [10:52:05]*** Cut end [10:52:05]Read from MH i2c: 01 07 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [10:52:05]process_action close_receipt done [10:52:05]requested_data is exist [10:52:05]produce_requested_data [10:52:05]requested_item fm.sn is exist - process it [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 11 00 00 [10:52:05]Write to MH i2c: E2 08 00 CE 12 80 11 00 00 00 00 00 00 5A [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 17 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 17 00 CE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [10:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:52:05]wFMCommunicate OK [10:52:05]requested_item fd.num is exist - process it [10:52:05]SAM_PROTO_GetFieldsCounters [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 13 00 00 [10:52:05]Write to MH i2c: E2 08 00 CF 12 80 13 00 00 00 00 00 00 5D [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 62 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 62 00 CF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 27 20 01 00 0E 04 04 00 AA 00 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 7A [10:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 27 20 01 00 0E 04 04 00 AA 00 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 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_GetFieldsCounters done [10:52:05]requested_item shift.num is exist - process it [10:52:05]requested_item shift.opened is exist - process it [10:52:05]req_shift_opened [10:52:05]FM_GetShiftState [10:52:05]SAM_PROTO_GetShiftState [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 13 01 00 [10:52:05]Write to MH i2c: E2 08 00 D0 12 80 13 01 00 00 00 00 00 5F [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0E 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0E 00 D0 12 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A4 [10:52:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_GetShiftState done [10:52:05]FM_GetShiftState done [10:52:05]req_shift_opened done [10:52:05]requested_item shift.open_date is exist - process it [10:52:05]req_shift_open_date [10:52:05]req_shift_open_date done [10:52:05]produce_requested_data done [10:52:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73767,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:52:05]process_action_free close_receipt [10:52:05]json_value_free [10:52:05]json_value_free done [10:52:05]process_json_proto returns [10:52:05]Send response to host [10:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73767,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:52:05]free response buf [10:52:05]execute_script done [10:52:05]execute_script returns [10:52:05]free content buf [10:52:05]Sock 8.Close socket [10:52:05]Sock 8.Thread stoped [10:52:09]OFD Sender: No OFD packet to send [10:52:10]accept exits with 9 [10:52:10]New connection [10:52:10]New thread 3067575652 created [10:52:10]Thread 3067432292 joined [10:52:10]Waiting for new connection... [10:52:10] Sock 9.Parse request [10:52:10]Sock 9.Check first char [10:52:10]Sock 9.First char is OK [10:52:10]request: POST /json_proto HTTP/1.0 [10:52:10]Method: POST [10:52:10]URL: /json_proto [10:52:10]Method is POST - this is cgi request [10:52:10]url: /json_proto [10:52:10]query_string will be loaded in cgi processing [10:52:10]execute_cgi json_proto POST (null) [10:52:10]execute_cgi path=json_proto method=POST [10:52:10]POST find Content-Length [10:52:10]Host: 172.17.44.196:8080 [10:52:10]Content-Length: 678 [10:52:10]Content-Type: application/json [10:52:10] [10:52:10]POST finish read [10:52:10]Found Content-Length = 678 [10:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962842", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:10]execute_script... [10:52: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 : (1)1962842", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:10]POST & json_proto [10:52:10]process_json_proto [10:52:10]json parsed OK: [10:52:10]protocol is kg_v1.0 [10:52:10]action value=close_receipt [10:52:10]process_action close_receipt [10:52:10]cmd_close_receipt [10:52:10]MH_GetDate [10:52:10]Write to MH i2c: F0 00 00 D1 12 D2 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: F0 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: F0 09 00 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: F0 09 00 D1 12 00 DB E0 14 67 E7 19 F8 65 6E [10:52:10]GetLastDocTimeStamp 1729421522 [10:52:10]current date 1729421531 [10:52:10]FM_GetShiftState [10:52:10]SAM_PROTO_GetShiftState [10:52:10]wFMCommunicate request_size=4 [10:52:10]MH_SAM_APDU [10:52:10]CAPDU: 80 13 01 00 [10:52:10]Write to MH i2c: E2 08 00 D2 12 80 13 01 00 00 00 00 00 61 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:10]Read from MH i2c: E2 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: E2 0E 00 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: E2 0E 00 D2 12 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A6 [10:52:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:52:10]wFMCommunicate OK [10:52:10]SAM_PROTO_GetShiftState done [10:52:10]FM_GetShiftState done [10:52:10]opened in 1729384303 [10:52:10]opened+sec_in_day 1729470703 [10:52:10]quantity*price = 30038 [10:52:10]sum+1 = 30039 [10:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 94 20.10.2024 10:52 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73768 ФПД: 106676754675190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105211&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73768&fm=106676754675190&tin=02508201610067®Number=0000000000161154&sum=30000 [10:52:11]StoreToDocumentArchive [10:52:11]shift 170 fd 73768 [10:52:11]save to /storage/0170/doc_00073768 [10:52:11]save last doc name /storage/0170/doc_00073768 to /storage/kkm_last_doc_name [10:52:11]save OK [10:52:11]Clear old archive folders... [10:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:11]tlvbuf is B6FED5F0 [10:52:11]SAM_PROTO_ClearQueue [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 09 00 00 [10:52:11]Write to MH i2c: E2 08 00 DF 12 80 09 00 00 00 00 00 00 63 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:11]Read from MH i2c: E2 03 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 03 00 DF 12 00 90 00 65 [10:52:11]RAPDU: 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_ClearQueue done [10:52:11]KKMCreateOFDPacket [10:52:11]OFDProtocolAddRootSTLVToBuf [10:52:11]FM_MakeSignedData [10:52:11]FM_MakeSignedData [10:52:11]SAM_PROTO_SignData [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 0D 01 02 [10:52:11]Write to MH i2c: E2 08 00 E0 12 80 0D 01 02 00 00 00 00 6B [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 03 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 03 00 E0 12 00 90 00 66 [10:52:11]RAPDU: 90 00 [10:52:11]wFMCommunicate OK [10:52:11]wFMCommunicate request_size=255 [10:52:11]MH_SAM_APDU [10:52:11]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 5E 00 00 00 F4 03 04 00 DB E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 20 01 00 35 04 06 00 61 [10:52:11]Write to MH i2c: E2 02 01 E1 12 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 5E 00 00 00 F4 03 04 00 DB E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 20 01 00 35 04 06 00 61 00 00 C9 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 E1 12 00 90 00 67 [10:52:12]RAPDU: 90 00 [10:52:12]wFMCommunicate OK [10:52:12]wFMCommunicate request_size=10 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 0D 02 02 05 05 9E 11 75 F6 [10:52:12]Write to MH i2c: E2 0D 00 E2 12 80 0D 02 02 05 00 05 9E 11 75 F6 00 00 97 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 E2 12 00 90 00 68 [10:52:12]RAPDU: 90 00 [10:52:12]wFMCommunicate OK [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 0D 03 02 [10:52:12]Write to MH i2c: E2 08 00 E3 12 80 0D 03 02 00 00 00 00 70 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 0B 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 0B 00 E3 12 00 29 66 75 71 8E D5 05 63 90 00 B1 [10:52:12]RAPDU: 29 66 75 71 8E D5 05 63 90 00 [10:52:12]wFMCommunicate OK [10:52:12]SAM_PROTO_SignData done [10:52:12]FM_MakeSignedData done [10:52:12]CreateOFDProtocolMessage [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 11 00 00 [10:52:12]Write to MH i2c: E2 08 00 E4 12 80 11 00 00 00 00 00 00 70 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 17 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 17 00 E4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BD [10:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:52:12]wFMCommunicate OK [10:52:12]CreateOFDProtocolMessage done [10:52:12]OFDSenderStorePacket 73768 [10:52:12]StoreOFDPacket docnum=73768 [10:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A7 06 07 01 45 8B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 5E 00 00 00 F4 03 04 00 DB E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 20 01 00 35 04 06 00 61 05 9E 11 75 F6 29 66 75 71 8E D5 05 63 [10:52:12]CheckFolder [10:52:12]dirname=/storage/ofd_packets [10:52:12]CheckFolder done [10:52:12]ProducePacketName [10:52:12]name=ofd_packets/00073768 [10:52:12]NVStorageSaveData ofd_packets/00073768 [10:52:12]File name is /storage/ofd_packets/00073768 [10:52:12]Write 301 bytes [10:52:12]NVStorageSaveData done [10:52:12]OFDSenderStorePacket done [10:52:12]KKMCreateOFDPacket done [10:52:12]NVStorageSaveData kkm_last_timestamp [10:52:12]File name is /storage/kkm_last_timestamp [10:52:12]Write 4 bytes [10:52:12]NVStorageSaveData done [10:52:12]ExternCall_PrintAddStr [10:52:12]wPrintStart [10:52:12]Write to MH i2c: 01 00 00 E5 12 F7 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 07 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 07 00 E5 12 00 00 00 00 00 FF 0F 0C [10:52:12]RasterBufferAndPrint [10:52:12]line Счет N : (1)1962842 [10:52:12]line ИНН: 02508201610067 [10:52:12]line Контрольно-Кассовый Чек [10:52:12]line ПРОДАЖА [10:52:12]line ТРК (МРК, ГНК) : 43 [10:52:12]line Товар: 2710124130 [10:52:12]line Аи-92-К-5 [10:52:12]line 4.490 * 66.90 [10:52:12]line = 300.38 [10:52:12]line НДС 12% НСП 1% [10:52:12]line > о реализуемом товаре [10:52:12]line ОКРУГЛЕНИЕ: -0.38 [10:52:12]line ИТОГО: 300.00 [10:52:12]line Внесено: 300.00 [10:52:12]line СДАЧА: 0.00 [10:52:12]line НСП 1% : 2.66 [10:52:12]line НДС 12% : 31.90 [10:52:12]line Наличными: 300.00 [10:52:12]line Безнал.: 0.00 [10:52:12]line Место: АЗС № 133 "Партнер Нефть" [10:52:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:52:12]line СНО: Общий режим [10:52:12]line Чек 94 20.10.2024 10:52 [10:52:12]line Смена: 170 ФФД: 1.0 [10:52:12]line ЗНМ: 0300000020 [10:52:12]line РНМ: 0000000000161154 [10:52:12]line Версия ККМ: v1.0 [10:52:12]line ФМ: 0000000000963323 [10:52:12]line ФД: 73768 [10:52:12]line ФПД: 106676754675190 [10:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105211&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73768&fm=106676754675190&tin=02508201610067®Number=0000000000161154&sum=30000 [10:52:12]written 0, free lines is 4095 [10:52:12]OFD Sender: Processing packet 73768 [packets to send 15, broken 14] [10:52:12]ProducePacketName [10:52:12]name=ofd_packets/00073768 [10:52:12]OFD Sender: To server: pG, [10:52:12]CommunicateWithHost lk.salyk.kg:30040 [10:52:12]ConnectInit lk.salyk.kg [10:52:12]Connected sock=10 [10:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A7 06 07 01 45 8B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 5E 00 00 00 F4 03 04 00 DB E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 20 01 00 35 04 06 00 61 05 9E 11 75 F6 29 66 75 71 8E D5 05 63 [10:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B CB 47 00 E2 E3 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 39 36 33 33 32 33 10 04 04 00 28 20 01 00 F4 03 04 00 C0 89 14 67 B6 04 01 00 00 1E 23 39 F2 05 5F 12 B1 [10:52:12]CommunicateWithHost err = 0 [10:52:12]CheckOFDResponse [10:52:12]1017 (14) - 77093643461234 [10:52:12]1041 (16) - 0000000000963323 [10:52:12]1040 (4) - 73768 [10:52:12]1012 (4) - 20.10.2024 04:40 [10:52:12]1206 (1) - 0 [10:52:12]OFD Sender: Remove packet 73768 [10:52:12]ProducePacketName [10:52:12]name=ofd_packets/00073768 [10:52:12]NVStorageDeleteData [10:52:12]Write to MH i2c: 01 00 00 0F 13 22 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 07 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 C3 0C F8 [10:52:12]RasterBufferAndPrint [10:52:12]line [10:52:12]line [10:52:12]line [10:52:12]line [10:52:12]line [10:52:12]written 0, free lines is 3275 [10:52:12]MH_Cut [10:52:12]Write to MH i2c: D1 01 00 16 13 01 FB [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: D1 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: D1 01 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: D1 01 00 16 13 00 FA [10:52:12]Write to MH i2c: 01 00 00 17 13 2A [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:13]OFD Sender: No OFD packet to send [10:52:13]*** Cut start [10:52:13]*** Partial cut [10:52:13]*** CUTSNS_PIN = 1 [10:52:13]*** CUTSNS_PIN = 0 [10:52:13]*** Brake cut motor [10:52:14]Read from MH i2c: 01 [10:52:14]MH_I2C_Read... [10:52:14]*** Stop cut motor [10:52:14]*** Cut end [10:52:14]Read from MH i2c: 01 07 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 17 13 00 00 00 00 00 FF 0F 3F [10:52:14]process_action close_receipt done [10:52:14]requested_data is exist [10:52:14]produce_requested_data [10:52:14]requested_item fm.sn is exist - process it [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 11 00 00 [10:52:14]Write to MH i2c: E2 08 00 18 13 80 11 00 00 00 00 00 00 A5 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 17 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 17 00 18 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [10:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:52:14]wFMCommunicate OK [10:52:14]requested_item fd.num is exist - process it [10:52:14]SAM_PROTO_GetFieldsCounters [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 13 00 00 [10:52:14]Write to MH i2c: E2 08 00 19 13 80 13 00 00 00 00 00 00 A8 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 62 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 62 00 19 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 28 20 01 00 0E 04 04 00 AA 00 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 C9 [10:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 28 20 01 00 0E 04 04 00 AA 00 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 [10:52:14]wFMCommunicate OK [10:52:14]SAM_PROTO_GetFieldsCounters done [10:52:14]requested_item shift.num is exist - process it [10:52:14]requested_item shift.opened is exist - process it [10:52:14]req_shift_opened [10:52:14]FM_GetShiftState [10:52:14]SAM_PROTO_GetShiftState [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 13 01 00 [10:52:14]Write to MH i2c: E2 08 00 1A 13 80 13 01 00 00 00 00 00 AA [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 0E 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 0E 00 1A 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EF [10:52:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:52:14]wFMCommunicate OK [10:52:14]SAM_PROTO_GetShiftState done [10:52:14]FM_GetShiftState done [10:52:14]req_shift_opened done [10:52:14]requested_item shift.open_date is exist - process it [10:52:14]req_shift_open_date [10:52:14]req_shift_open_date done [10:52:14]produce_requested_data done [10:52:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73768,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:52:14]process_action_free close_receipt [10:52:14]json_value_free [10:52:14]json_value_free done [10:52:14]process_json_proto returns [10:52:14]Send response to host [10:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73768,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:52:14]free response buf [10:52:14]execute_script done [10:52:14]execute_script returns [10:52:14]free content buf [10:52:14]Sock 9.Close socket [10:52:14]Sock 9.Thread stoped [10:52:18]OFD Sender: No OFD packet to send [10:52:23]accept exits with 8 [10:52:23]New connection [10:52:23]New thread 3067432292 created [10:52:23]Thread 3067575652 joined [10:52:23]Waiting for new connection... [10:52:23] Sock 8.Parse request [10:52:23]Sock 8.Check first char [10:52:23]Sock 8.First char is OK [10:52:23]request: POST /json_proto HTTP/1.0 [10:52:23]Method: POST [10:52:23]URL: /json_proto [10:52:23]Method is POST - this is cgi request [10:52:23]url: /json_proto [10:52:23]query_string will be loaded in cgi processing [10:52:23]execute_cgi json_proto POST (null) [10:52:23]execute_cgi path=json_proto method=POST [10:52:23]POST find Content-Length [10:52:23]Host: 172.17.44.196:8080 [10:52:23]Content-Length: 659 [10:52:23]Content-Type: application/json [10:52:23] [10:52:23]POST finish read [10:52:23]Found Content-Length = 659 [10:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:23]execute_script... [10:52: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 : (1)1962843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:23]POST & json_proto [10:52:23]process_json_proto [10:52:23]json parsed OK: [10:52:23]protocol is kg_v1.0 [10:52:23]action value=close_receipt [10:52:23]process_action close_receipt [10:52:23]cmd_close_receipt [10:52:23]MH_GetDate [10:52:23]Write to MH i2c: F0 00 00 1B 13 1D [10:52:23]OFD Sender: No OFD packet to send [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: F0 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: F0 09 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: F0 09 00 1B 13 00 E8 E0 14 67 E7 19 F8 65 C6 [10:52:23]GetLastDocTimeStamp 1729421531 [10:52:23]current date 1729421544 [10:52:23]FM_GetShiftState [10:52:23]SAM_PROTO_GetShiftState [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 13 01 00 [10:52:23]Write to MH i2c: E2 08 00 1C 13 80 13 01 00 00 00 00 00 AC [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 0E 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 0E 00 1C 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F1 [10:52:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:52:23]wFMCommunicate OK [10:52:23]SAM_PROTO_GetShiftState done [10:52:23]FM_GetShiftState done [10:52:23]opened in 1729384303 [10:52:23]opened+sec_in_day 1729470703 [10:52:23]quantity*price = 60055 [10:52:23]sum+1 = 60056 [10:52:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 95 20.10.2024 10:52 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73769 ФПД: 41916019973659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105224&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73769&fm=41916019973659&tin=02508201610067®Number=0000000000161154&sum=60000 [10:52:24]StoreToDocumentArchive [10:52:24]shift 170 fd 73769 [10:52:24]save to /storage/0170/doc_00073769 [10:52:24]save last doc name /storage/0170/doc_00073769 to /storage/kkm_last_doc_name [10:52:24]save OK [10:52:24]Clear old archive folders... [10:52:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:52:24]tlvbuf is 00310300 [10:52:24]SAM_PROTO_ClearQueue [10:52:24]wFMCommunicate request_size=4 [10:52:24]MH_SAM_APDU [10:52:24]CAPDU: 80 09 00 00 [10:52:24]Write to MH i2c: E2 08 00 29 13 80 09 00 00 00 00 00 00 AE [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:24]Read from MH i2c: E2 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 03 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 03 00 29 13 00 90 00 B0 [10:52:24]RAPDU: 90 00 [10:52:24]wFMCommunicate OK [10:52:24]SAM_PROTO_ClearQueue done [10:52:24]KKMCreateOFDPacket [10:52:24]OFDProtocolAddRootSTLVToBuf [10:52:24]FM_MakeSignedData [10:52:24]FM_MakeSignedData [10:52:24]SAM_PROTO_SignData [10:52:24]wFMCommunicate request_size=4 [10:52:24]MH_SAM_APDU [10:52:24]CAPDU: 80 0D 01 02 [10:52:24]Write to MH i2c: E2 08 00 2A 13 80 0D 01 02 00 00 00 00 B6 [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:24]Read from MH i2c: E2 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 03 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 03 00 2A 13 00 90 00 B1 [10:52:24]RAPDU: 90 00 [10:52:24]wFMCommunicate OK [10:52:24]wFMCommunicate request_size=253 [10:52:24]MH_SAM_APDU [10:52:24]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 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 E8 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 20 01 00 35 04 06 00 26 1F 55 7B 1E 1B [10:52:24]Write to MH i2c: E2 00 01 2B 13 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 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 E8 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 20 01 00 35 04 06 00 26 1F 55 7B 1E 1B 00 00 B0 [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:24]Read from MH i2c: E2 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 03 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 03 00 2B 13 00 90 00 B2 [10:52:24]RAPDU: 90 00 [10:52:24]wFMCommunicate OK [10:52:24]wFMCommunicate request_size=4 [10:52:24]MH_SAM_APDU [10:52:24]CAPDU: 80 0D 03 02 [10:52:24]Write to MH i2c: E2 08 00 2C 13 80 0D 03 02 00 00 00 00 BA [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:24]Read from MH i2c: E2 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 0B 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 0B 00 2C 13 00 86 A7 78 85 78 00 72 B6 90 00 85 [10:52:24]RAPDU: 86 A7 78 85 78 00 72 B6 90 00 [10:52:24]wFMCommunicate OK [10:52:24]SAM_PROTO_SignData done [10:52:24]FM_MakeSignedData done [10:52:24]CreateOFDProtocolMessage [10:52:24]wFMCommunicate request_size=4 [10:52:24]MH_SAM_APDU [10:52:24]CAPDU: 80 11 00 00 [10:52:24]Write to MH i2c: E2 08 00 2D 13 80 11 00 00 00 00 00 00 BA [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:24]Read from MH i2c: E2 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 17 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 17 00 2D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [10:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:52:24]wFMCommunicate OK [10:52:24]CreateOFDProtocolMessage done [10:52:24]OFDSenderStorePacket 73769 [10:52:24]StoreOFDPacket docnum=73769 [10:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 FE 80 00 01 20 D9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 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 E8 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 20 01 00 35 04 06 00 26 1F 55 7B 1E 1B 86 A7 78 85 78 00 72 B6 [10:52:24]CheckFolder [10:52:24]dirname=/storage/ofd_packets [10:52:24]CheckFolder done [10:52:24]ProducePacketName [10:52:24]name=ofd_packets/00073769 [10:52:24]NVStorageSaveData ofd_packets/00073769 [10:52:24]File name is /storage/ofd_packets/00073769 [10:52:24]Write 294 bytes [10:52:24]NVStorageSaveData done [10:52:24]OFDSenderStorePacket done [10:52:24]KKMCreateOFDPacket done [10:52:24]NVStorageSaveData kkm_last_timestamp [10:52:24]File name is /storage/kkm_last_timestamp [10:52:25]Write 4 bytes [10:52:25]NVStorageSaveData done [10:52:25]ExternCall_PrintAddStr [10:52:25]wPrintStart [10:52:25]Write to MH i2c: 01 00 00 2E 13 41 [10:52:25]Write i2c OK [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: 01 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: 01 07 00 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: 01 07 00 2E 13 00 00 00 00 00 FF 0F 56 [10:52:25]RasterBufferAndPrint [10:52:25]line Счет N : (1)1962843 [10:52:25]line ИНН: 02508201610067 [10:52:25]line Контрольно-Кассовый Чек [10:52:25]line ПРОДАЖА [10:52:25]line ТРК (МРК, ГНК) : 62 [10:52:25]line Товар: 2710124130 [10:52:25]line SU-92 [10:52:25]line 8.780 * 68.40 [10:52:25]line = 600.55 [10:52:25]line НДС 12% НСП 1% [10:52:25]line > о реализуемом товаре [10:52:25]line ОКРУГЛЕНИЕ: -0.55 [10:52:25]line ИТОГО: 600.00 [10:52:25]line Внесено: 600.00 [10:52:25]line СДАЧА: 0.00 [10:52:25]line НСП 1% : 5.31 [10:52:25]line НДС 12% : 63.77 [10:52:25]line Наличными: 600.00 [10:52:25]line Безнал.: 0.00 [10:52:25]line Место: АЗС № 133 "Партнер Нефть" [10:52:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:52:25]line СНО: Общий режим [10:52:25]line Чек 95 20.10.2024 10:52 [10:52:25]line Смена: 170 ФФД: 1.0 [10:52:25]line ЗНМ: 0300000020 [10:52:25]line РНМ: 0000000000161154 [10:52:25]line Версия ККМ: v1.0 [10:52:25]line ФМ: 0000000000963323 [10:52:25]line ФД: 73769 [10:52:25]line ФПД: 41916019973659 [10:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105224&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73769&fm=41916019973659&tin=02508201610067®Number=0000000000161154&sum=60000 [10:52:25]written 0, free lines is 4095 [10:52:25]OFD Sender: Processing packet 73769 [packets to send 15, broken 14] [10:52:25]ProducePacketName [10:52:25]name=ofd_packets/00073769 [10:52:25]OFD Sender: To server: pG, [10:52:25]CommunicateWithHost lk.salyk.kg:30040 [10:52:25]ConnectInit lk.salyk.kg [10:52:25]Connected sock=10 [10:52:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 FE 80 00 01 20 D9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 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 E8 E0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 20 01 00 35 04 06 00 26 1F 55 7B 1E 1B 86 A7 78 85 78 00 72 B6 [10:52:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0D A5 47 00 84 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 39 36 33 33 32 33 10 04 04 00 29 20 01 00 F4 03 04 00 CD 89 14 67 B6 04 01 00 00 66 9C D7 80 70 58 EE E5 [10:52:25]CommunicateWithHost err = 0 [10:52:25]CheckOFDResponse [10:52:25]1017 (14) - 77093643461234 [10:52:25]1041 (16) - 0000000000963323 [10:52:25]1040 (4) - 73769 [10:52:25]1012 (4) - 20.10.2024 04:40 [10:52:25]1206 (1) - 0 [10:52:25]OFD Sender: Remove packet 73769 [10:52:25]ProducePacketName [10:52:25]name=ofd_packets/00073769 [10:52:25]NVStorageDeleteData [10:52:25]Write to MH i2c: 01 00 00 58 13 6B [10:52:25]Write i2c OK [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: 01 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: 01 07 00 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: 01 07 00 58 13 00 00 00 00 00 CB 0C 49 [10:52:25]RasterBufferAndPrint [10:52:25]line [10:52:25]line [10:52:25]line [10:52:25]line [10:52:25]line [10:52:25]written 0, free lines is 3287 [10:52:25]MH_Cut [10:52:25]Write to MH i2c: D1 01 00 5F 13 01 44 [10:52:25]Write i2c OK [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: D1 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: D1 01 00 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: D1 01 00 5F 13 00 43 [10:52:25]Write to MH i2c: 01 00 00 60 13 73 [10:52:25]Write i2c OK [10:52:25]MH_I2C_Read... [10:52:25]OFD Sender: No OFD packet to send [10:52:26]*** Cut start [10:52:26]*** Partial cut [10:52:26]*** CUTSNS_PIN = 1 [10:52:26]*** CUTSNS_PIN = 0 [10:52:26]*** Brake cut motor [10:52:26]Read from MH i2c: 01 [10:52:26]MH_I2C_Read... [10:52:26]*** Stop cut motor [10:52:26]*** Cut end [10:52:26]Read from MH i2c: 01 07 00 [10:52:26]MH_I2C_Read... [10:52:26]Read from MH i2c: 01 07 00 60 13 00 00 00 00 00 FF 0F 88 [10:52:26]process_action close_receipt done [10:52:26]requested_data is exist [10:52:26]produce_requested_data [10:52:26]requested_item fm.sn is exist - process it [10:52:26]wFMCommunicate request_size=4 [10:52:26]MH_SAM_APDU [10:52:26]CAPDU: 80 11 00 00 [10:52:26]Write to MH i2c: E2 08 00 61 13 80 11 00 00 00 00 00 00 EE [10:52:26]Write i2c OK [10:52:26]MH_I2C_Read... [10:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:26]Read from MH i2c: E2 [10:52:26]MH_I2C_Read... [10:52:26]Read from MH i2c: E2 17 00 [10:52:26]MH_I2C_Read... [10:52:26]Read from MH i2c: E2 17 00 61 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [10:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:52:27]wFMCommunicate OK [10:52:27]requested_item fd.num is exist - process it [10:52:27]SAM_PROTO_GetFieldsCounters [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 00 00 [10:52:27]Write to MH i2c: E2 08 00 62 13 80 13 00 00 00 00 00 00 F1 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 62 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 62 00 62 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 29 20 01 00 0E 04 04 00 AA 00 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 [10:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 29 20 01 00 0E 04 04 00 AA 00 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 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetFieldsCounters done [10:52:27]requested_item shift.num is exist - process it [10:52:27]requested_item shift.opened is exist - process it [10:52:27]req_shift_opened [10:52:27]FM_GetShiftState [10:52:27]SAM_PROTO_GetShiftState [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 01 00 [10:52:27]Write to MH i2c: E2 08 00 63 13 80 13 01 00 00 00 00 00 F3 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 63 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 38 [10:52:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetShiftState done [10:52:27]FM_GetShiftState done [10:52:27]req_shift_opened done [10:52:27]requested_item shift.open_date is exist - process it [10:52:27]req_shift_open_date [10:52:27]req_shift_open_date done [10:52:27]produce_requested_data done [10:52:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73769,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:52:27]process_action_free close_receipt [10:52:27]json_value_free [10:52:27]json_value_free done [10:52:27]process_json_proto returns [10:52:27]Send response to host [10:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73769,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:52:27]free response buf [10:52:27]execute_script done [10:52:27]execute_script returns [10:52:27]free content buf [10:52:27]Sock 8.Close socket [10:52:27]Sock 8.Thread stoped [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:22]accept exits with 9 [10:53:22]New connection [10:53:22]New thread 3067575652 created [10:53:22]Thread 3067432292 joined [10:53:22]Waiting for new connection... [10:53:22] Sock 9.Parse request [10:53:22]Sock 9.Check first char [10:53:22]Sock 9.First char is OK [10:53:22]request: POST /json_proto HTTP/1.0 [10:53:22]Method: POST [10:53:22]URL: /json_proto [10:53:22]Method is POST - this is cgi request [10:53:22]url: /json_proto [10:53:22]query_string will be loaded in cgi processing [10:53:22]execute_cgi json_proto POST (null) [10:53:22]execute_cgi path=json_proto method=POST [10:53:22]POST find Content-Length [10:53:22]Host: 172.17.44.196:8080 [10:53:22]Content-Length: 683 [10:53:22]Content-Type: application/json [10:53:22] [10:53:22]POST finish read [10:53:22]Found Content-Length = 683 [10:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962844", "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" : 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" ] } } [10:53:22]execute_script... [10:53: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 : (1)1962844", "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" : 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" ] } } [10:53:22]POST & json_proto [10:53:22]process_json_proto [10:53:22]json parsed OK: [10:53:22]protocol is kg_v1.0 [10:53:22]action value=close_receipt [10:53:22]process_action close_receipt [10:53:22]cmd_close_receipt [10:53:22]MH_GetDate [10:53:22]Write to MH i2c: F0 00 00 64 13 66 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: F0 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: F0 09 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: F0 09 00 64 13 00 23 E1 14 67 E7 19 F8 65 4B [10:53:22]GetLastDocTimeStamp 1729421544 [10:53:22]current date 1729421603 [10:53:22]FM_GetShiftState [10:53:22]SAM_PROTO_GetShiftState [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 13 01 00 [10:53:22]Write to MH i2c: E2 08 00 65 13 80 13 01 00 00 00 00 00 F5 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 0E 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 0E 00 65 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3A [10:53:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:53:22]wFMCommunicate OK [10:53:22]SAM_PROTO_GetShiftState done [10:53:22]FM_GetShiftState done [10:53:22]opened in 1729384303 [10:53:22]opened+sec_in_day 1729470703 [10:53:22]quantity*price = 100015 [10:53:22]sum+1 = 100017 [10:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 96 20.10.2024 10:53 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73770 ФПД: 175744943860291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105323&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73770&fm=175744943860291&tin=02508201610067®Number=0000000000161154&sum=100000 [10:53:23]StoreToDocumentArchive [10:53:23]shift 170 fd 73770 [10:53:23]save to /storage/0170/doc_00073770 [10:53:23]save last doc name /storage/0170/doc_00073770 to /storage/kkm_last_doc_name [10:53:23]save OK [10:53:23]Clear old archive folders... [10:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:23]tlvbuf is 003317D0 [10:53:23]SAM_PROTO_ClearQueue [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 09 00 00 [10:53:23]Write to MH i2c: E2 08 00 72 13 80 09 00 00 00 00 00 00 F7 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 72 13 00 90 00 F9 [10:53:23]RAPDU: 90 00 [10:53:23]wFMCommunicate OK [10:53:23]SAM_PROTO_ClearQueue done [10:53:23]KKMCreateOFDPacket [10:53:23]OFDProtocolAddRootSTLVToBuf [10:53:23]FM_MakeSignedData [10:53:23]FM_MakeSignedData [10:53:23]SAM_PROTO_SignData [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 0D 01 02 [10:53:23]Write to MH i2c: E2 08 00 73 13 80 0D 01 02 00 00 00 00 FF [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 73 13 00 90 00 FA [10:53:23]RAPDU: 90 00 [10:53:23]wFMCommunicate OK [10:53:23]wFMCommunicate request_size=255 [10:53:23]MH_SAM_APDU [10:53:23]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 60 00 00 00 F4 03 04 00 23 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 20 01 00 35 04 06 00 9F [10:53:23]Write to MH i2c: E2 02 01 74 13 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 60 00 00 00 F4 03 04 00 23 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 20 01 00 35 04 06 00 9F 00 00 EE [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 74 13 00 90 00 FB [10:53:23]RAPDU: 90 00 [10:53:23]wFMCommunicate OK [10:53:23]wFMCommunicate request_size=10 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 0D 02 02 05 D6 CE F3 2A 43 [10:53:23]Write to MH i2c: E2 0D 00 75 13 80 0D 02 02 05 00 D6 CE F3 2A 43 00 00 10 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 03 00 75 13 00 90 00 FC [10:53:23]RAPDU: 90 00 [10:53:23]wFMCommunicate OK [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 0D 03 02 [10:53:23]Write to MH i2c: E2 08 00 76 13 80 0D 03 02 00 00 00 00 04 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 0B 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 0B 00 76 13 00 A6 29 5B 3E BA 22 8F CB 90 00 A3 [10:53:23]RAPDU: A6 29 5B 3E BA 22 8F CB 90 00 [10:53:23]wFMCommunicate OK [10:53:23]SAM_PROTO_SignData done [10:53:23]FM_MakeSignedData done [10:53:23]CreateOFDProtocolMessage [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 11 00 00 [10:53:23]Write to MH i2c: E2 08 00 77 13 80 11 00 00 00 00 00 00 04 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 77 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [10:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:53:23]wFMCommunicate OK [10:53:23]CreateOFDProtocolMessage done [10:53:23]OFDSenderStorePacket 73770 [10:53:23]StoreOFDPacket docnum=73770 [10:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 83 2D 07 01 4B F3 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 60 00 00 00 F4 03 04 00 23 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 20 01 00 35 04 06 00 9F D6 CE F3 2A 43 A6 29 5B 3E BA 22 8F CB [10:53:23]CheckFolder [10:53:23]dirname=/storage/ofd_packets [10:53:23]CheckFolder done [10:53:23]ProducePacketName [10:53:23]name=ofd_packets/00073770 [10:53:23]NVStorageSaveData ofd_packets/00073770 [10:53:23]File name is /storage/ofd_packets/00073770 [10:53:23]Write 301 bytes [10:53:23]NVStorageSaveData done [10:53:23]OFDSenderStorePacket done [10:53:23]KKMCreateOFDPacket done [10:53:23]NVStorageSaveData kkm_last_timestamp [10:53:23]File name is /storage/kkm_last_timestamp [10:53:23]Write 4 bytes [10:53:23]NVStorageSaveData done [10:53:23]ExternCall_PrintAddStr [10:53:23]wPrintStart [10:53:23]Write to MH i2c: 01 00 00 78 13 8B [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 78 13 00 00 00 00 00 FF 0F A0 [10:53:23]RasterBufferAndPrint [10:53:23]line Счет N : (1)1962844 [10:53:23]line ИНН: 02508201610067 [10:53:23]line Контрольно-Кассовый Чек [10:53:23]line ПРОДАЖА [10:53:23]line ТРК (МРК, ГНК) : 33 [10:53:23]line Товар: 2710124130 [10:53:23]line Аи-92-К-5 [10:53:23]line 14.950 * 66.90 [10:53:23]line = 1000.16 [10:53:23]line НДС 12% НСП 1% [10:53:23]line > о реализуемом товаре [10:53:23]line ОКРУГЛЕНИЕ: -0.16 [10:53:23]line ИТОГО: 1000.00 [10:53:23]line Внесено: 1000.00 [10:53:23]line СДАЧА: 0.00 [10:53:23]line НСП 1% : 8.85 [10:53:23]line НДС 12% : 106.21 [10:53:23]line Наличными: 1000.00 [10:53:23]line Безнал.: 0.00 [10:53:23]line Место: АЗС № 133 "Партнер Нефть" [10:53:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:53:23]line СНО: Общий режим [10:53:23]line Чек 96 20.10.2024 10:53 [10:53:23]line Смена: 170 ФФД: 1.0 [10:53:23]line ЗНМ: 0300000020 [10:53:23]line РНМ: 0000000000161154 [10:53:23]line Версия ККМ: v1.0 [10:53:23]line ФМ: 0000000000963323 [10:53:23]line ФД: 73770 [10:53:23]line ФПД: 175744943860291 [10:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105323&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73770&fm=175744943860291&tin=02508201610067®Number=0000000000161154&sum=100000 [10:53:24]OFD Sender: Processing packet 73770 [packets to send 15, broken 14] [10:53:24]ProducePacketName [10:53:24]name=ofd_packets/00073770 [10:53:24]OFD Sender: To server: pG, [10:53:24]CommunicateWithHost lk.salyk.kg:30040 [10:53:24]ConnectInit lk.salyk.kg [10:53:24]written 0, free lines is 4095 [10:53:24]Connected sock=10 [10:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 83 2D 07 01 4B F3 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 60 00 00 00 F4 03 04 00 23 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 20 01 00 35 04 06 00 9F D6 CE F3 2A 43 A6 29 5B 3E BA 22 8F CB [10:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 96 16 47 00 1E AE 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 39 36 33 33 32 33 10 04 04 00 2A 20 01 00 F4 03 04 00 08 8A 14 67 B6 04 01 00 00 02 10 10 39 F1 68 BA CC [10:53:24]CommunicateWithHost err = 0 [10:53:24]CheckOFDResponse [10:53:24]1017 (14) - 77093643461234 [10:53:24]1041 (16) - 0000000000963323 [10:53:24]1040 (4) - 73770 [10:53:24]1012 (4) - 20.10.2024 04:41 [10:53:24]1206 (1) - 0 [10:53:24]OFD Sender: Remove packet 73770 [10:53:24]ProducePacketName [10:53:24]name=ofd_packets/00073770 [10:53:24]NVStorageDeleteData [10:53:24]Write to MH i2c: 01 00 00 A2 13 B5 [10:53:24]Write i2c OK [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: 01 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: 01 07 00 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: 01 07 00 A2 13 00 00 00 00 00 C1 0C 89 [10:53:24]RasterBufferAndPrint [10:53:24]line [10:53:24]line [10:53:24]line [10:53:24]line [10:53:24]line [10:53:24]written 0, free lines is 3271 [10:53:24]MH_Cut [10:53:24]Write to MH i2c: D1 01 00 A9 13 01 8E [10:53:24]Write i2c OK [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: D1 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: D1 01 00 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: D1 01 00 A9 13 00 8D [10:53:24]Write to MH i2c: 01 00 00 AA 13 BD [10:53:24]Write i2c OK [10:53:24]MH_I2C_Read... [10:53:25]OFD Sender: No OFD packet to send [10:53:25]*** Cut start [10:53:25]*** Partial cut [10:53:25]*** CUTSNS_PIN = 1 [10:53:25]*** CUTSNS_PIN = 0 [10:53:25]*** Brake cut motor [10:53:26]Read from MH i2c: 01 [10:53:26]MH_I2C_Read... [10:53:26]*** Stop cut motor [10:53:26]*** Cut end [10:53:26]Read from MH i2c: 01 07 00 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: 01 07 00 AA 13 00 00 00 00 00 FF 0F D2 [10:53:26]process_action close_receipt done [10:53:26]requested_data is exist [10:53:26]produce_requested_data [10:53:26]requested_item fm.sn is exist - process it [10:53:26]wFMCommunicate request_size=4 [10:53:26]MH_SAM_APDU [10:53:26]CAPDU: 80 11 00 00 [10:53:26]Write to MH i2c: E2 08 00 AB 13 80 11 00 00 00 00 00 00 38 [10:53:26]Write i2c OK [10:53:26]MH_I2C_Read... [10:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:26]Read from MH i2c: E2 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 17 00 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 17 00 AB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 85 [10:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:53:26]wFMCommunicate OK [10:53:26]requested_item fd.num is exist - process it [10:53:26]SAM_PROTO_GetFieldsCounters [10:53:26]wFMCommunicate request_size=4 [10:53:26]MH_SAM_APDU [10:53:26]CAPDU: 80 13 00 00 [10:53:26]Write to MH i2c: E2 08 00 AC 13 80 13 00 00 00 00 00 00 3B [10:53:26]Write i2c OK [10:53:26]MH_I2C_Read... [10:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:26]Read from MH i2c: E2 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 62 00 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 62 00 AC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2A 20 01 00 0E 04 04 00 AA 00 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 64 [10:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2A 20 01 00 0E 04 04 00 AA 00 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 [10:53:26]wFMCommunicate OK [10:53:26]SAM_PROTO_GetFieldsCounters done [10:53:26]requested_item shift.num is exist - process it [10:53:26]requested_item shift.opened is exist - process it [10:53:26]req_shift_opened [10:53:26]FM_GetShiftState [10:53:26]SAM_PROTO_GetShiftState [10:53:26]wFMCommunicate request_size=4 [10:53:26]MH_SAM_APDU [10:53:26]CAPDU: 80 13 01 00 [10:53:26]Write to MH i2c: E2 08 00 AD 13 80 13 01 00 00 00 00 00 3D [10:53:26]Write i2c OK [10:53:26]MH_I2C_Read... [10:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:26]Read from MH i2c: E2 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 0E 00 [10:53:26]MH_I2C_Read... [10:53:26]Read from MH i2c: E2 0E 00 AD 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 82 [10:53:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:53:26]wFMCommunicate OK [10:53:26]SAM_PROTO_GetShiftState done [10:53:26]FM_GetShiftState done [10:53:26]req_shift_opened done [10:53:26]requested_item shift.open_date is exist - process it [10:53:26]req_shift_open_date [10:53:26]req_shift_open_date done [10:53:26]produce_requested_data done [10:53:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73770,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:53:26]process_action_free close_receipt [10:53:26]json_value_free [10:53:26]json_value_free done [10:53:26]process_json_proto returns [10:53:26]Send response to host [10:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73770,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:53:26]free response buf [10:53:26]execute_script done [10:53:26]execute_script returns [10:53:26]free content buf [10:53:26]Sock 9.Close socket [10:53:26]Sock 9.Thread stoped [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:34]accept exits with 8 [10:55:34]New connection [10:55:34]New thread 3067432292 created [10:55:34]Thread 3067575652 joined [10:55:34]Waiting for new connection... [10:55:34] Sock 8.Parse request [10:55:34]Sock 8.Check first char [10:55:34]Sock 8.First char is OK [10:55:34]request: POST /json_proto HTTP/1.0 [10:55:34]Method: POST [10:55:34]URL: /json_proto [10:55:34]Method is POST - this is cgi request [10:55:34]url: /json_proto [10:55:34]query_string will be loaded in cgi processing [10:55:34]execute_cgi json_proto POST (null) [10:55:34]execute_cgi path=json_proto method=POST [10:55:34]POST find Content-Length [10:55:34]Host: 172.17.44.196:8080 [10:55:34]Content-Length: 660 [10:55:34]Content-Type: application/json [10:55:34] [10:55:34]POST finish read [10:55:34]Found Content-Length = 660 [10:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.970, "sum" : 750.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:34]execute_script... [10:55: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 : (1)1962846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.970, "sum" : 750.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:34]POST & json_proto [10:55:34]process_json_proto [10:55:34]json parsed OK: [10:55:34]protocol is kg_v1.0 [10:55:34]action value=close_receipt [10:55:34]process_action close_receipt [10:55:34]cmd_close_receipt [10:55:34]MH_GetDate [10:55:34]Write to MH i2c: F0 00 00 AE 13 B0 [10:55:34]Write i2c OK [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: F0 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: F0 09 00 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: F0 09 00 AE 13 00 A7 E1 14 67 E7 19 F8 65 19 [10:55:34]GetLastDocTimeStamp 1729421603 [10:55:34]current date 1729421735 [10:55:34]FM_GetShiftState [10:55:34]SAM_PROTO_GetShiftState [10:55:34]wFMCommunicate request_size=4 [10:55:34]MH_SAM_APDU [10:55:34]CAPDU: 80 13 01 00 [10:55:34]Write to MH i2c: E2 08 00 AF 13 80 13 01 00 00 00 00 00 3F [10:55:34]Write i2c OK [10:55:34]MH_I2C_Read... [10:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:34]Read from MH i2c: E2 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: E2 0E 00 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: E2 0E 00 AF 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 84 [10:55:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:55:34]wFMCommunicate OK [10:55:34]SAM_PROTO_GetShiftState done [10:55:34]FM_GetShiftState done [10:55:34]opened in 1729384303 [10:55:34]opened+sec_in_day 1729470703 [10:55:34]quantity*price = 75034 [10:55:34]sum+1 = 75036 [10:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.68 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 97 20.10.2024 10:55 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73771 ФПД: 48141725643528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105535&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73771&fm=48141725643528&tin=02508201610067®Number=0000000000161154&sum=75000 [10:55:35]StoreToDocumentArchive [10:55:35]shift 170 fd 73771 [10:55:35]save to /storage/0170/doc_00073771 [10:55:35]save last doc name /storage/0170/doc_00073771 to /storage/kkm_last_doc_name [10:55:35]save OK [10:55:35]Clear old archive folders... [10:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:55:35]tlvbuf is 00323090 [10:55:35]SAM_PROTO_ClearQueue [10:55:35]wFMCommunicate request_size=4 [10:55:35]MH_SAM_APDU [10:55:35]CAPDU: 80 09 00 00 [10:55:35]Write to MH i2c: E2 08 00 BC 13 80 09 00 00 00 00 00 00 41 [10:55:35]Write i2c OK [10:55:35]MH_I2C_Read... [10:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:35]Read from MH i2c: E2 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 03 00 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 03 00 BC 13 00 90 00 43 [10:55:35]RAPDU: 90 00 [10:55:35]wFMCommunicate OK [10:55:35]SAM_PROTO_ClearQueue done [10:55:35]KKMCreateOFDPacket [10:55:35]OFDProtocolAddRootSTLVToBuf [10:55:35]FM_MakeSignedData [10:55:35]FM_MakeSignedData [10:55:35]SAM_PROTO_SignData [10:55:35]wFMCommunicate request_size=4 [10:55:35]MH_SAM_APDU [10:55:35]CAPDU: 80 0D 01 02 [10:55:35]Write to MH i2c: E2 08 00 BD 13 80 0D 01 02 00 00 00 00 49 [10:55:35]Write i2c OK [10:55:35]MH_I2C_Read... [10:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:35]Read from MH i2c: E2 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 03 00 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 03 00 BD 13 00 90 00 44 [10:55:35]RAPDU: 90 00 [10:55:35]wFMCommunicate OK [10:55:35]wFMCommunicate request_size=253 [10:55:35]MH_SAM_APDU [10:55:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 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 A7 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 20 01 00 35 04 06 00 2B C8 DE 74 B3 08 [10:55:35]Write to MH i2c: E2 00 01 BE 13 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 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 A7 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 20 01 00 35 04 06 00 2B C8 DE 74 B3 08 00 00 78 [10:55:35]Write i2c OK [10:55:35]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 BE 13 00 90 00 45 [10:55:36]RAPDU: 90 00 [10:55:36]wFMCommunicate OK [10:55:36]wFMCommunicate request_size=4 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 0D 03 02 [10:55:36]Write to MH i2c: E2 08 00 BF 13 80 0D 03 02 00 00 00 00 4D [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 0B 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 0B 00 BF 13 00 6B 2C A1 6D 04 00 26 61 90 00 7E [10:55:36]RAPDU: 6B 2C A1 6D 04 00 26 61 90 00 [10:55:36]wFMCommunicate OK [10:55:36]SAM_PROTO_SignData done [10:55:36]FM_MakeSignedData done [10:55:36]CreateOFDProtocolMessage [10:55:36]wFMCommunicate request_size=4 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 11 00 00 [10:55:36]Write to MH i2c: E2 08 00 C0 13 80 11 00 00 00 00 00 00 4D [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 17 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 17 00 C0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [10:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:55:36]wFMCommunicate OK [10:55:36]CreateOFDProtocolMessage done [10:55:36]OFDSenderStorePacket 73771 [10:55:36]StoreOFDPacket docnum=73771 [10:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 86 F1 00 01 5C F9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 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 A7 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 20 01 00 35 04 06 00 2B C8 DE 74 B3 08 6B 2C A1 6D 04 00 26 61 [10:55:36]CheckFolder [10:55:36]dirname=/storage/ofd_packets [10:55:36]CheckFolder done [10:55:36]ProducePacketName [10:55:36]name=ofd_packets/00073771 [10:55:36]NVStorageSaveData ofd_packets/00073771 [10:55:36]File name is /storage/ofd_packets/00073771 [10:55:36]Write 294 bytes [10:55:36]NVStorageSaveData done [10:55:36]OFDSenderStorePacket done [10:55:36]KKMCreateOFDPacket done [10:55:36]NVStorageSaveData kkm_last_timestamp [10:55:36]File name is /storage/kkm_last_timestamp [10:55:36]Write 4 bytes [10:55:36]NVStorageSaveData done [10:55:36]ExternCall_PrintAddStr [10:55:36]wPrintStart [10:55:36]Write to MH i2c: 01 00 00 C1 13 D4 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 07 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 07 00 C1 13 00 00 00 00 00 FF 0F E9 [10:55:36]RasterBufferAndPrint [10:55:36]line Счет N : (1)1962846 [10:55:36]line ИНН: 02508201610067 [10:55:36]line Контрольно-Кассовый Чек [10:55:36]line ПРОДАЖА [10:55:36]line ТРК (МРК, ГНК) : 62 [10:55:36]line Товар: 2710124130 [10:55:36]line SU-92 [10:55:36]line 10.970 * 68.40 [10:55:36]line = 750.35 [10:55:36]line НДС 12% НСП 1% [10:55:36]line > о реализуемом товаре [10:55:36]line ОКРУГЛЕНИЕ: -0.35 [10:55:36]line ИТОГО: 750.00 [10:55:36]line Внесено: 750.00 [10:55:36]line СДАЧА: 0.00 [10:55:36]line НСП 1% : 6.64 [10:55:36]line НДС 12% : 79.68 [10:55:36]line Наличными: 750.00 [10:55:36]line Безнал.: 0.00 [10:55:36]line Место: АЗС № 133 "Партнер Нефть" [10:55:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:55:36]line СНО: Общий режим [10:55:36]line Чек 97 20.10.2024 10:55 [10:55:36]line Смена: 170 ФФД: 1.0 [10:55:36]line ЗНМ: 0300000020 [10:55:36]line РНМ: 0000000000161154 [10:55:36]line Версия ККМ: v1.0 [10:55:36]line ФМ: 0000000000963323 [10:55:36]line ФД: 73771 [10:55:36]line ФПД: 48141725643528 [10:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105535&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73771&fm=48141725643528&tin=02508201610067®Number=0000000000161154&sum=75000 [10:55:36]OFD Sender: Processing packet 73771 [packets to send 15, broken 14] [10:55:36]ProducePacketName [10:55:36]name=ofd_packets/00073771 [10:55:36]OFD Sender: To server: pG, [10:55:36]CommunicateWithHost lk.salyk.kg:30040 [10:55:36]ConnectInit lk.salyk.kg [10:55:36]written 0, free lines is 4095 [10:55:36]Connected sock=10 [10:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 86 F1 00 01 5C F9 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 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 A7 E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 20 01 00 35 04 06 00 2B C8 DE 74 B3 08 6B 2C A1 6D 04 00 26 61 [10:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 26 69 47 00 7A 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 39 36 33 33 32 33 10 04 04 00 2B 20 01 00 F4 03 04 00 8C 8A 14 67 B6 04 01 00 00 DC 94 C2 29 87 40 D0 78 [10:55:36]CommunicateWithHost err = 0 [10:55:36]CheckOFDResponse [10:55:36]1017 (14) - 77093643461234 [10:55:36]1041 (16) - 0000000000963323 [10:55:36]1040 (4) - 73771 [10:55:36]1012 (4) - 20.10.2024 04:43 [10:55:36]1206 (1) - 0 [10:55:36]OFD Sender: Remove packet 73771 [10:55:36]ProducePacketName [10:55:36]name=ofd_packets/00073771 [10:55:36]NVStorageDeleteData [10:55:36]Write to MH i2c: 01 00 00 EB 13 FE [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 07 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 07 00 EB 13 00 00 00 00 00 B2 0C C3 [10:55:36]RasterBufferAndPrint [10:55:36]line [10:55:36]line [10:55:36]line [10:55:36]line [10:55:36]line [10:55:36]written 0, free lines is 3255 [10:55:36]MH_Cut [10:55:36]Write to MH i2c: D1 01 00 F2 13 01 D7 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: D1 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: D1 01 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: D1 01 00 F2 13 00 D6 [10:55:36]Write to MH i2c: 01 00 00 F3 13 06 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:37]OFD Sender: No OFD packet to send [10:55:37]*** Cut start [10:55:37]*** Partial cut [10:55:37]*** CUTSNS_PIN = 1 [10:55:37]*** CUTSNS_PIN = 0 [10:55:38]*** Brake cut motor [10:55:38]Read from MH i2c: 01 [10:55:38]MH_I2C_Read... [10:55:38]*** Stop cut motor [10:55:38]*** Cut end [10:55:38]Read from MH i2c: 01 07 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 07 00 F3 13 00 00 00 00 00 FF 0F 1B [10:55:38]process_action close_receipt done [10:55:38]requested_data is exist [10:55:38]produce_requested_data [10:55:38]requested_item fm.sn is exist - process it [10:55:38]wFMCommunicate request_size=4 [10:55:38]MH_SAM_APDU [10:55:38]CAPDU: 80 11 00 00 [10:55:38]Write to MH i2c: E2 08 00 F4 13 80 11 00 00 00 00 00 00 81 [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:38]Read from MH i2c: E2 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 17 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 17 00 F4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [10:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:55:38]wFMCommunicate OK [10:55:38]requested_item fd.num is exist - process it [10:55:38]SAM_PROTO_GetFieldsCounters [10:55:38]wFMCommunicate request_size=4 [10:55:38]MH_SAM_APDU [10:55:38]CAPDU: 80 13 00 00 [10:55:38]Write to MH i2c: E2 08 00 F5 13 80 13 00 00 00 00 00 00 84 [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:38]Read from MH i2c: E2 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 62 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 62 00 F5 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2B 20 01 00 0E 04 04 00 AA 00 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 B1 [10:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2B 20 01 00 0E 04 04 00 AA 00 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 [10:55:38]wFMCommunicate OK [10:55:38]SAM_PROTO_GetFieldsCounters done [10:55:38]requested_item shift.num is exist - process it [10:55:38]requested_item shift.opened is exist - process it [10:55:38]req_shift_opened [10:55:38]FM_GetShiftState [10:55:38]SAM_PROTO_GetShiftState [10:55:38]wFMCommunicate request_size=4 [10:55:38]MH_SAM_APDU [10:55:38]CAPDU: 80 13 01 00 [10:55:38]Write to MH i2c: E2 08 00 F6 13 80 13 01 00 00 00 00 00 86 [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:38]Read from MH i2c: E2 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 0E 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 0E 00 F6 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CB [10:55:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:55:38]wFMCommunicate OK [10:55:38]SAM_PROTO_GetShiftState done [10:55:38]FM_GetShiftState done [10:55:38]req_shift_opened done [10:55:38]requested_item shift.open_date is exist - process it [10:55:38]req_shift_open_date [10:55:38]req_shift_open_date done [10:55:38]produce_requested_data done [10:55:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73771,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:55:38]process_action_free close_receipt [10:55:38]json_value_free [10:55:38]json_value_free done [10:55:38]process_json_proto returns [10:55:38]Send response to host [10:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73771,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:55:38]free response buf [10:55:38]execute_script done [10:55:38]execute_script returns [10:55:38]free content buf [10:55:38]Sock 8.Close socket [10:55:38]Sock 8.Thread stoped [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]accept exits with 9 [10:56:27]New connection [10:56:27]New thread 3067575652 created [10:56:27]Thread 3067432292 joined [10:56:27]Waiting for new connection... [10:56:27] Sock 9.Parse request [10:56:27]Sock 9.Check first char [10:56:27]Sock 9.First char is OK [10:56:27]request: POST /json_proto HTTP/1.0 [10:56:27]Method: POST [10:56:27]URL: /json_proto [10:56:27]Method is POST - this is cgi request [10:56:27]url: /json_proto [10:56:27]query_string will be loaded in cgi processing [10:56:27]execute_cgi json_proto POST (null) [10:56:27]execute_cgi path=json_proto method=POST [10:56:27]POST find Content-Length [10:56:27]Host: 172.17.44.196:8080 [10:56:27]Content-Length: 678 [10:56:27]Content-Type: application/json [10:56:27] [10:56:27]POST finish read [10:56:27]Found Content-Length = 678 [10:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962847", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:56:27]execute_script... [10:56: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 : (1)1962847", "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" : 7.480, "sum" : 500.41, "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" ] } } [10:56:27]POST & json_proto [10:56:27]process_json_proto [10:56:27]json parsed OK: [10:56:27]protocol is kg_v1.0 [10:56:27]action value=close_receipt [10:56:27]process_action close_receipt [10:56:27]cmd_close_receipt [10:56:27]MH_GetDate [10:56:27]Write to MH i2c: F0 00 00 F7 13 F9 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: F0 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: F0 09 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: F0 09 00 F7 13 00 DC E1 14 67 E7 19 F8 65 97 [10:56:27]GetLastDocTimeStamp 1729421735 [10:56:27]current date 1729421788 [10:56:27]FM_GetShiftState [10:56:27]SAM_PROTO_GetShiftState [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 13 01 00 [10:56:27]Write to MH i2c: E2 08 00 F8 13 80 13 01 00 00 00 00 00 88 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0E 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0E 00 F8 13 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CD [10:56:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_GetShiftState done [10:56:27]FM_GetShiftState done [10:56:27]opened in 1729384303 [10:56:27]opened+sec_in_day 1729470703 [10:56:27]quantity*price = 50041 [10:56:27]sum+1 = 50042 [10:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 98 20.10.2024 10:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73772 ФПД: 21223326633114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105628&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73772&fm=21223326633114&tin=02508201610067®Number=0000000000161154&sum=50000 [10:56:28]StoreToDocumentArchive [10:56:28]shift 170 fd 73772 [10:56:28]save to /storage/0170/doc_00073772 [10:56:28]save last doc name /storage/0170/doc_00073772 to /storage/kkm_last_doc_name [10:56:28]save OK [10:56:28]Clear old archive folders... [10:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:28]tlvbuf is 003A0800 [10:56:28]SAM_PROTO_ClearQueue [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 09 00 00 [10:56:28]Write to MH i2c: E2 08 00 05 14 80 09 00 00 00 00 00 00 8B [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 05 14 00 90 00 8D [10:56:28]RAPDU: 90 00 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_ClearQueue done [10:56:28]KKMCreateOFDPacket [10:56:28]OFDProtocolAddRootSTLVToBuf [10:56:28]FM_MakeSignedData [10:56:28]FM_MakeSignedData [10:56:28]SAM_PROTO_SignData [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 0D 01 02 [10:56:28]Write to MH i2c: E2 08 00 06 14 80 0D 01 02 00 00 00 00 93 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [10:56:28]RAPDU: 90 00 [10:56:28]wFMCommunicate OK [10:56:28]wFMCommunicate request_size=255 [10:56:28]MH_SAM_APDU [10:56:28]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 62 00 00 00 F4 03 04 00 DC E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 20 01 00 35 04 06 00 13 [10:56:28]Write to MH i2c: E2 02 01 07 14 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 62 00 00 00 F4 03 04 00 DC E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 20 01 00 35 04 06 00 13 00 00 B9 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [10:56:28]RAPDU: 90 00 [10:56:28]wFMCommunicate OK [10:56:28]wFMCommunicate request_size=10 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 0D 02 02 05 4D 70 D8 4C 9A [10:56:28]Write to MH i2c: E2 0D 00 08 14 80 0D 02 02 05 00 4D 70 D8 4C 9A 00 00 1B [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [10:56:28]RAPDU: 90 00 [10:56:28]wFMCommunicate OK [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 0D 03 02 [10:56:28]Write to MH i2c: E2 08 00 09 14 80 0D 03 02 00 00 00 00 98 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0B 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0B 00 09 14 00 13 FE 71 C3 E8 03 3C C8 90 00 CD [10:56:28]RAPDU: 13 FE 71 C3 E8 03 3C C8 90 00 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_SignData done [10:56:28]FM_MakeSignedData done [10:56:28]CreateOFDProtocolMessage [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 11 00 00 [10:56:28]Write to MH i2c: E2 08 00 0A 14 80 11 00 00 00 00 00 00 98 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 17 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 17 00 0A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [10:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:56:28]wFMCommunicate OK [10:56:28]CreateOFDProtocolMessage done [10:56:28]OFDSenderStorePacket 73772 [10:56:28]StoreOFDPacket docnum=73772 [10:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 04 55 07 01 61 73 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 62 00 00 00 F4 03 04 00 DC E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 20 01 00 35 04 06 00 13 4D 70 D8 4C 9A 13 FE 71 C3 E8 03 3C C8 [10:56:28]CheckFolder [10:56:28]dirname=/storage/ofd_packets [10:56:28]CheckFolder done [10:56:28]ProducePacketName [10:56:28]name=ofd_packets/00073772 [10:56:28]NVStorageSaveData ofd_packets/00073772 [10:56:28]File name is /storage/ofd_packets/00073772 [10:56:28]Write 301 bytes [10:56:28]NVStorageSaveData done [10:56:28]OFDSenderStorePacket done [10:56:28]KKMCreateOFDPacket done [10:56:28]NVStorageSaveData kkm_last_timestamp [10:56:28]File name is /storage/kkm_last_timestamp [10:56:28]Write 4 bytes [10:56:28]NVStorageSaveData done [10:56:28]ExternCall_PrintAddStr [10:56:28]wPrintStart [10:56:28]Write to MH i2c: 01 00 00 0B 14 1F [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 FF 0F 34 [10:56:28]RasterBufferAndPrint [10:56:28]line Счет N : (1)1962847 [10:56:28]line ИНН: 02508201610067 [10:56:28]line Контрольно-Кассовый Чек [10:56:28]line ПРОДАЖА [10:56:28]line ТРК (МРК, ГНК) : 43 [10:56:28]line Товар: 2710124130 [10:56:28]line Аи-92-К-5 [10:56:28]line 7.480 * 66.90 [10:56:28]line = 500.41 [10:56:28]line НДС 12% НСП 1% [10:56:28]line > о реализуемом товаре [10:56:28]line ОКРУГЛЕНИЕ: -0.41 [10:56:28]line ИТОГО: 500.00 [10:56:28]line Внесено: 500.00 [10:56:28]line СДАЧА: 0.00 [10:56:28]line НСП 1% : 4.43 [10:56:28]line НДС 12% : 53.14 [10:56:28]line Наличными: 500.00 [10:56:28]line Безнал.: 0.00 [10:56:28]line Место: АЗС № 133 "Партнер Нефть" [10:56:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:56:28]line СНО: Общий режим [10:56:28]line Чек 98 20.10.2024 10:56 [10:56:28]line Смена: 170 ФФД: 1.0 [10:56:28]line ЗНМ: 0300000020 [10:56:28]line РНМ: 0000000000161154 [10:56:28]line Версия ККМ: v1.0 [10:56:28]line ФМ: 0000000000963323 [10:56:28]line ФД: 73772 [10:56:28]line ФПД: 21223326633114 [10:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105628&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73772&fm=21223326633114&tin=02508201610067®Number=0000000000161154&sum=50000 [10:56:29]OFD Sender: Processing packet 73772 [packets to send 15, broken 14] [10:56:29]ProducePacketName [10:56:29]name=ofd_packets/00073772 [10:56:29]OFD Sender: To server: pG, [10:56:29]CommunicateWithHost lk.salyk.kg:30040 [10:56:29]ConnectInit lk.salyk.kg [10:56:29]written 0, free lines is 4095 [10:56:29]Connected sock=10 [10:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 04 55 07 01 61 73 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 62 00 00 00 F4 03 04 00 DC E1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 20 01 00 35 04 06 00 13 4D 70 D8 4C 9A 13 FE 71 C3 E8 03 3C C8 [10:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D0 36 47 00 6F 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 39 36 33 33 32 33 10 04 04 00 2C 20 01 00 F4 03 04 00 C1 8A 14 67 B6 04 01 00 00 4E DC E6 DA 22 69 1F 2A [10:56:29]CommunicateWithHost err = 0 [10:56:29]CheckOFDResponse [10:56:29]1017 (14) - 77093643461234 [10:56:29]1041 (16) - 0000000000963323 [10:56:29]1040 (4) - 73772 [10:56:29]1012 (4) - 20.10.2024 04:44 [10:56:29]1206 (1) - 0 [10:56:29]OFD Sender: Remove packet 73772 [10:56:29]ProducePacketName [10:56:29]name=ofd_packets/00073772 [10:56:29]NVStorageDeleteData [10:56:29]Write to MH i2c: 01 00 00 35 14 49 [10:56:29]Write i2c OK [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: 01 [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: 01 07 00 [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 BD 0C 19 [10:56:29]RasterBufferAndPrint [10:56:29]line [10:56:29]line [10:56:29]line [10:56:29]line [10:56:29]line [10:56:29]written 0, free lines is 3267 [10:56:29]MH_Cut [10:56:29]Write to MH i2c: D1 01 00 3C 14 01 22 [10:56:29]Write i2c OK [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: D1 [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: D1 01 00 [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: D1 01 00 3C 14 00 21 [10:56:29]Write to MH i2c: 01 00 00 3D 14 51 [10:56:29]Write i2c OK [10:56:29]MH_I2C_Read... [10:56:30]OFD Sender: No OFD packet to send [10:56:30]*** Cut start [10:56:30]*** Partial cut [10:56:30]*** CUTSNS_PIN = 1 [10:56:30]*** CUTSNS_PIN = 0 [10:56:30]*** Brake cut motor [10:56:31]Read from MH i2c: 01 [10:56:31]MH_I2C_Read... [10:56:31]*** Stop cut motor [10:56:31]*** Cut end [10:56:31]Read from MH i2c: 01 07 00 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: 01 07 00 3D 14 00 00 00 00 00 FF 0F 66 [10:56:31]process_action close_receipt done [10:56:31]requested_data is exist [10:56:31]produce_requested_data [10:56:31]requested_item fm.sn is exist - process it [10:56:31]wFMCommunicate request_size=4 [10:56:31]MH_SAM_APDU [10:56:31]CAPDU: 80 11 00 00 [10:56:31]Write to MH i2c: E2 08 00 3E 14 80 11 00 00 00 00 00 00 CC [10:56:31]Write i2c OK [10:56:31]MH_I2C_Read... [10:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:31]Read from MH i2c: E2 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: E2 17 00 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: E2 17 00 3E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [10:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:56:31]wFMCommunicate OK [10:56:31]requested_item fd.num is exist - process it [10:56:31]SAM_PROTO_GetFieldsCounters [10:56:31]wFMCommunicate request_size=4 [10:56:31]MH_SAM_APDU [10:56:31]CAPDU: 80 13 00 00 [10:56:31]Write to MH i2c: E2 08 00 3F 14 80 13 00 00 00 00 00 00 CF [10:56:31]Write i2c OK [10:56:31]MH_I2C_Read... [10:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:31]Read from MH i2c: E2 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: E2 62 00 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: E2 62 00 3F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2C 20 01 00 0E 04 04 00 AA 00 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 00 [10:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2C 20 01 00 0E 04 04 00 AA 00 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 [10:56:31]wFMCommunicate OK [10:56:31]SAM_PROTO_GetFieldsCounters done [10:56:31]requested_item shift.num is exist - process it [10:56:31]requested_item shift.opened is exist - process it [10:56:31]req_shift_opened [10:56:31]FM_GetShiftState [10:56:31]SAM_PROTO_GetShiftState [10:56:31]wFMCommunicate request_size=4 [10:56:31]MH_SAM_APDU [10:56:31]CAPDU: 80 13 01 00 [10:56:31]Write to MH i2c: E2 08 00 40 14 80 13 01 00 00 00 00 00 D1 [10:56:31]Write i2c OK [10:56:31]MH_I2C_Read... [10:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:31]Read from MH i2c: E2 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: E2 0E 00 [10:56:31]MH_I2C_Read... [10:56:31]Read from MH i2c: E2 0E 00 40 14 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 16 [10:56:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:56:31]wFMCommunicate OK [10:56:31]SAM_PROTO_GetShiftState done [10:56:31]FM_GetShiftState done [10:56:31]req_shift_opened done [10:56:31]requested_item shift.open_date is exist - process it [10:56:31]req_shift_open_date [10:56:31]req_shift_open_date done [10:56:31]produce_requested_data done [10:56:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73772,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:56:31]process_action_free close_receipt [10:56:31]json_value_free [10:56:31]json_value_free done [10:56:31]process_json_proto returns [10:56:31]Send response to host [10:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73772,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:56:31]free response buf [10:56:31]execute_script done [10:56:31]execute_script returns [10:56:31]free content buf [10:56:31]Sock 9.Close socket [10:56:31]Sock 9.Thread stoped [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:23]accept exits with 8 [10:59:23]New connection [10:59:23]New thread 3067432292 created [10:59:23]Thread 3067575652 joined [10:59:23]Waiting for new connection... [10:59:23] Sock 8.Parse request [10:59:23]Sock 8.Check first char [10:59:23]Sock 8.First char is OK [10:59:23]request: POST /json_proto HTTP/1.0 [10:59:23]Method: POST [10:59:23]URL: /json_proto [10:59:23]Method is POST - this is cgi request [10:59:23]url: /json_proto [10:59:23]query_string will be loaded in cgi processing [10:59:23]execute_cgi json_proto POST (null) [10:59:23]execute_cgi path=json_proto method=POST [10:59:23]POST find Content-Length [10:59:23]Host: 172.17.44.196:8080 [10:59:23]Content-Length: 683 [10:59:23]Content-Type: application/json [10:59:23] [10:59:23]POST finish read [10:59:23]Found Content-Length = 683 [10:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962849", "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" : 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" ] } } [10:59:23]execute_script... [10:59: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 : (1)1962849", "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" : 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" ] } } [10:59:23]POST & json_proto [10:59:23]process_json_proto [10:59:23]json parsed OK: [10:59:23]protocol is kg_v1.0 [10:59:23]action value=close_receipt [10:59:23]process_action close_receipt [10:59:23]cmd_close_receipt [10:59:23]MH_GetDate [10:59:23]Write to MH i2c: F0 00 00 41 14 44 [10:59:23]Write i2c OK [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: F0 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: F0 09 00 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: F0 09 00 41 14 00 8C E2 14 67 E7 19 F8 65 93 [10:59:23]GetLastDocTimeStamp 1729421788 [10:59:23]current date 1729421964 [10:59:23]FM_GetShiftState [10:59:23]SAM_PROTO_GetShiftState [10:59:23]wFMCommunicate request_size=4 [10:59:23]MH_SAM_APDU [10:59:23]CAPDU: 80 13 01 00 [10:59:23]Write to MH i2c: E2 08 00 42 14 80 13 01 00 00 00 00 00 D3 [10:59:23]Write i2c OK [10:59:23]MH_I2C_Read... [10:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:23]Read from MH i2c: E2 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: E2 0E 00 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: E2 0E 00 42 14 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 18 [10:59:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:59:23]wFMCommunicate OK [10:59:23]SAM_PROTO_GetShiftState done [10:59:23]FM_GetShiftState done [10:59:23]opened in 1729384303 [10:59:23]opened+sec_in_day 1729470703 [10:59:23]quantity*price = 100015 [10:59:23]sum+1 = 100017 [10:59:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 99 20.10.2024 10:59 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73773 ФПД: 87673727429928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105924&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73773&fm=87673727429928&tin=02508201610067®Number=0000000000161154&sum=100000 [10:59:24]StoreToDocumentArchive [10:59:24]shift 170 fd 73773 [10:59:24]save to /storage/0170/doc_00073773 [10:59:24]save last doc name /storage/0170/doc_00073773 to /storage/kkm_last_doc_name [10:59:24]save OK [10:59:24]Clear old archive folders... [10:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:24]tlvbuf is 003A01D0 [10:59:24]SAM_PROTO_ClearQueue [10:59:24]wFMCommunicate request_size=4 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 09 00 00 [10:59:24]Write to MH i2c: E2 08 00 4F 14 80 09 00 00 00 00 00 00 D5 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 4F 14 00 90 00 D7 [10:59:24]RAPDU: 90 00 [10:59:24]wFMCommunicate OK [10:59:24]SAM_PROTO_ClearQueue done [10:59:24]KKMCreateOFDPacket [10:59:24]OFDProtocolAddRootSTLVToBuf [10:59:24]FM_MakeSignedData [10:59:24]FM_MakeSignedData [10:59:24]SAM_PROTO_SignData [10:59:24]wFMCommunicate request_size=4 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 0D 01 02 [10:59:24]Write to MH i2c: E2 08 00 50 14 80 0D 01 02 00 00 00 00 DD [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 50 14 00 90 00 D8 [10:59:24]RAPDU: 90 00 [10:59:24]wFMCommunicate OK [10:59:24]wFMCommunicate request_size=255 [10:59:24]MH_SAM_APDU [10:59:24]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 63 00 00 00 F4 03 04 00 8C E2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 20 01 00 35 04 06 00 4F [10:59:24]Write to MH i2c: E2 02 01 51 14 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 63 00 00 00 F4 03 04 00 8C E2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 20 01 00 35 04 06 00 4F 00 00 EC [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [10:59:24]RAPDU: 90 00 [10:59:24]wFMCommunicate OK [10:59:24]wFMCommunicate request_size=10 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 0D 02 02 05 BD 21 61 2D 28 [10:59:24]Write to MH i2c: E2 0D 00 52 14 80 0D 02 02 05 00 BD 21 61 2D 28 00 00 7E [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 52 14 00 90 00 DA [10:59:24]RAPDU: 90 00 [10:59:24]wFMCommunicate OK [10:59:24]wFMCommunicate request_size=4 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 0D 03 02 [10:59:24]Write to MH i2c: E2 08 00 53 14 80 0D 03 02 00 00 00 00 E2 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 0B 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 0B 00 53 14 00 3D 46 11 A9 5D F7 C4 5F 90 00 97 [10:59:24]RAPDU: 3D 46 11 A9 5D F7 C4 5F 90 00 [10:59:24]wFMCommunicate OK [10:59:24]SAM_PROTO_SignData done [10:59:24]FM_MakeSignedData done [10:59:24]CreateOFDProtocolMessage [10:59:24]wFMCommunicate request_size=4 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 11 00 00 [10:59:24]Write to MH i2c: E2 08 00 54 14 80 11 00 00 00 00 00 00 E2 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 17 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 17 00 54 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [10:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:59:24]wFMCommunicate OK [10:59:24]CreateOFDProtocolMessage done [10:59:24]OFDSenderStorePacket 73773 [10:59:24]StoreOFDPacket docnum=73773 [10:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4A 39 07 01 9F E1 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 63 00 00 00 F4 03 04 00 8C E2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 20 01 00 35 04 06 00 4F BD 21 61 2D 28 3D 46 11 A9 5D F7 C4 5F [10:59:24]CheckFolder [10:59:24]dirname=/storage/ofd_packets [10:59:24]CheckFolder done [10:59:24]ProducePacketName [10:59:24]name=ofd_packets/00073773 [10:59:24]NVStorageSaveData ofd_packets/00073773 [10:59:24]File name is /storage/ofd_packets/00073773 [10:59:24]Write 301 bytes [10:59:24]NVStorageSaveData done [10:59:24]OFDSenderStorePacket done [10:59:24]KKMCreateOFDPacket done [10:59:24]NVStorageSaveData kkm_last_timestamp [10:59:24]File name is /storage/kkm_last_timestamp [10:59:24]Write 4 bytes [10:59:24]NVStorageSaveData done [10:59:24]ExternCall_PrintAddStr [10:59:24]wPrintStart [10:59:24]Write to MH i2c: 01 00 00 55 14 69 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: 01 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: 01 07 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: 01 07 00 55 14 00 00 00 00 00 FF 0F 7E [10:59:24]RasterBufferAndPrint [10:59:24]line Счет N : (1)1962849 [10:59:24]line ИНН: 02508201610067 [10:59:24]line Контрольно-Кассовый Чек [10:59:24]line ПРОДАЖА [10:59:24]line ТРК (МРК, ГНК) : 33 [10:59:24]line Товар: 2710124130 [10:59:24]line Аи-92-К-5 [10:59:24]line 14.950 * 66.90 [10:59:24]line = 1000.16 [10:59:24]line НДС 12% НСП 1% [10:59:24]line > о реализуемом товаре [10:59:24]line ОКРУГЛЕНИЕ: -0.16 [10:59:24]line ИТОГО: 1000.00 [10:59:24]line Внесено: 1000.00 [10:59:24]line СДАЧА: 0.00 [10:59:24]line НСП 1% : 8.85 [10:59:24]line НДС 12% : 106.21 [10:59:24]line Наличными: 1000.00 [10:59:24]line Безнал.: 0.00 [10:59:24]line Место: АЗС № 133 "Партнер Нефть" [10:59:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:59:24]line СНО: Общий режим [10:59:24]line Чек 99 20.10.2024 10:59 [10:59:24]line Смена: 170 ФФД: 1.0 [10:59:24]line ЗНМ: 0300000020 [10:59:24]line РНМ: 0000000000161154 [10:59:24]line Версия ККМ: v1.0 [10:59:24]line ФМ: 0000000000963323 [10:59:24]line ФД: 73773 [10:59:24]line ФПД: 87673727429928 [10:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105924&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73773&fm=87673727429928&tin=02508201610067®Number=0000000000161154&sum=100000 [10:59:25]OFD Sender: Processing packet 73773 [packets to send 15, broken 14] [10:59:25]ProducePacketName [10:59:25]name=ofd_packets/00073773 [10:59:25]OFD Sender: To server: pG, [10:59:25]CommunicateWithHost lk.salyk.kg:30040 [10:59:25]ConnectInit lk.salyk.kg [10:59:25]written 0, free lines is 4095 [10:59:25]Connected sock=10 [10:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4A 39 07 01 9F E1 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 63 00 00 00 F4 03 04 00 8C E2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 20 01 00 35 04 06 00 4F BD 21 61 2D 28 3D 46 11 A9 5D F7 C4 5F [10:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 65 3B 47 00 BC DC 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 39 36 33 33 32 33 10 04 04 00 2D 20 01 00 F4 03 04 00 71 8B 14 67 B6 04 01 00 00 5C FB 83 D3 68 3D A9 DA [10:59:25]CommunicateWithHost err = 0 [10:59:25]CheckOFDResponse [10:59:25]1017 (14) - 77093643461234 [10:59:25]1041 (16) - 0000000000963323 [10:59:25]1040 (4) - 73773 [10:59:25]1012 (4) - 20.10.2024 04:47 [10:59:25]1206 (1) - 0 [10:59:25]OFD Sender: Remove packet 73773 [10:59:25]ProducePacketName [10:59:25]name=ofd_packets/00073773 [10:59:25]NVStorageDeleteData [10:59:25]Write to MH i2c: 01 00 00 7F 14 93 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: 01 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: 01 07 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 B7 0C 5D [10:59:25]RasterBufferAndPrint [10:59:25]line [10:59:25]line [10:59:25]line [10:59:25]line [10:59:25]line [10:59:25]written 0, free lines is 3259 [10:59:25]MH_Cut [10:59:25]Write to MH i2c: D1 01 00 86 14 01 6C [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: D1 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: D1 01 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: D1 01 00 86 14 00 6B [10:59:25]Write to MH i2c: 01 00 00 87 14 9B [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:26]OFD Sender: No OFD packet to send [10:59:26]*** Cut start [10:59:26]*** Partial cut [10:59:26]*** CUTSNS_PIN = 1 [10:59:26]*** CUTSNS_PIN = 0 [10:59:26]*** Brake cut motor [10:59:27]Read from MH i2c: 01 [10:59:27]MH_I2C_Read... [10:59:27]*** Stop cut motor [10:59:27]*** Cut end [10:59:27]Read from MH i2c: 01 07 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 87 14 00 00 00 00 00 FF 0F B0 [10:59:27]process_action close_receipt done [10:59:27]requested_data is exist [10:59:27]produce_requested_data [10:59:27]requested_item fm.sn is exist - process it [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 11 00 00 [10:59:27]Write to MH i2c: E2 08 00 88 14 80 11 00 00 00 00 00 00 16 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 88 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 63 [10:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:59:27]wFMCommunicate OK [10:59:27]requested_item fd.num is exist - process it [10:59:27]SAM_PROTO_GetFieldsCounters [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 13 00 00 [10:59:27]Write to MH i2c: E2 08 00 89 14 80 13 00 00 00 00 00 00 19 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 62 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 62 00 89 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2D 20 01 00 0E 04 04 00 AA 00 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 4E [10:59:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2D 20 01 00 0E 04 04 00 AA 00 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 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_GetFieldsCounters done [10:59:27]requested_item shift.num is exist - process it [10:59:27]requested_item shift.opened is exist - process it [10:59:27]req_shift_opened [10:59:27]FM_GetShiftState [10:59:27]SAM_PROTO_GetShiftState [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 13 01 00 [10:59:27]Write to MH i2c: E2 08 00 8A 14 80 13 01 00 00 00 00 00 1B [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0E 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0E 00 8A 14 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 60 [10:59:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_GetShiftState done [10:59:27]FM_GetShiftState done [10:59:27]req_shift_opened done [10:59:27]requested_item shift.open_date is exist - process it [10:59:27]req_shift_open_date [10:59:27]req_shift_open_date done [10:59:27]produce_requested_data done [10:59:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73773,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [10:59:27]process_action_free close_receipt [10:59:27]json_value_free [10:59:27]json_value_free done [10:59:27]process_json_proto returns [10:59:27]Send response to host [10:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73773,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [10:59:27]free response buf [10:59:27]execute_script done [10:59:27]execute_script returns [10:59:27]free content buf [10:59:27]Sock 8.Close socket [10:59:27]Sock 8.Thread stoped [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]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:07]accept exits with 9 [11:08:07]New connection [11:08:07]New thread 3067575652 created [11:08:07]Thread 3067432292 joined [11:08:07]Waiting for new connection... [11:08:07] Sock 9.Parse request [11:08:07]Sock 9.Check first char [11:08:07]Sock 9.First char is OK [11:08:07]request: POST /json_proto HTTP/1.0 [11:08:07]Method: POST [11:08:07]URL: /json_proto [11:08:07]Method is POST - this is cgi request [11:08:07]url: /json_proto [11:08:07]query_string will be loaded in cgi processing [11:08:07]execute_cgi json_proto POST (null) [11:08:07]execute_cgi path=json_proto method=POST [11:08:07]POST find Content-Length [11:08:07]Host: 172.17.44.196:8080 [11:08:07]Content-Length: 679 [11:08:07]Content-Type: application/json [11:08:07] [11:08:07]POST finish read [11:08:07]Found Content-Length = 679 [11:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:07]execute_script... [11:08: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 : (1)1962857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:07]POST & json_proto [11:08:07]process_json_proto [11:08:07]json parsed OK: [11:08:07]protocol is kg_v1.0 [11:08:07]action value=close_receipt [11:08:07]process_action close_receipt [11:08:07]cmd_close_receipt [11:08:07]MH_GetDate [11:08:07]Write to MH i2c: F0 00 00 8B 14 8E [11:08:07]Write i2c OK [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: F0 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: F0 09 00 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: F0 09 00 8B 14 00 98 E4 14 67 E7 19 F8 65 EB [11:08:07]GetLastDocTimeStamp 1729421964 [11:08:07]current date 1729422488 [11:08:07]FM_GetShiftState [11:08:07]SAM_PROTO_GetShiftState [11:08:07]wFMCommunicate request_size=4 [11:08:07]MH_SAM_APDU [11:08:07]CAPDU: 80 13 01 00 [11:08:07]Write to MH i2c: E2 08 00 8C 14 80 13 01 00 00 00 00 00 1D [11:08:07]Write i2c OK [11:08:07]MH_I2C_Read... [11:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:07]Read from MH i2c: E2 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: E2 0E 00 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: E2 0E 00 8C 14 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 62 [11:08:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:08:07]wFMCommunicate OK [11:08:07]SAM_PROTO_GetShiftState done [11:08:07]FM_GetShiftState done [11:08:07]opened in 1729384303 [11:08:07]opened+sec_in_day 1729470703 [11:08:07]quantity*price = 75016 [11:08:07]sum+1 = 75017 [11:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 100 20.10.2024 11:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73774 ФПД: 68791725205245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110808&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73774&fm=68791725205245&tin=02508201610067®Number=0000000000161154&sum=75000 [11:08:08]StoreToDocumentArchive [11:08:08]shift 170 fd 73774 [11:08:08]save to /storage/0170/doc_00073774 [11:08:08]save last doc name /storage/0170/doc_00073774 to /storage/kkm_last_doc_name [11:08:08]save OK [11:08:08]Clear old archive folders... [11:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:08]tlvbuf is 003A03F0 [11:08:08]SAM_PROTO_ClearQueue [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 09 00 00 [11:08:08]Write to MH i2c: E2 08 00 99 14 80 09 00 00 00 00 00 00 1F [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 03 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [11:08:08]RAPDU: 90 00 [11:08:08]wFMCommunicate OK [11:08:08]SAM_PROTO_ClearQueue done [11:08:08]KKMCreateOFDPacket [11:08:08]OFDProtocolAddRootSTLVToBuf [11:08:08]FM_MakeSignedData [11:08:08]FM_MakeSignedData [11:08:08]SAM_PROTO_SignData [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 0D 01 02 [11:08:08]Write to MH i2c: E2 08 00 9A 14 80 0D 01 02 00 00 00 00 27 [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 03 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [11:08:08]RAPDU: 90 00 [11:08:08]wFMCommunicate OK [11:08:08]wFMCommunicate request_size=255 [11:08:08]MH_SAM_APDU [11:08:08]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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 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 98 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 20 01 00 35 04 06 00 3E [11:08:08]Write to MH i2c: E2 02 01 9B 14 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 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 98 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 20 01 00 35 04 06 00 3E 00 00 B6 [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:09]Read from MH i2c: E2 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 03 00 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [11:08:09]RAPDU: 90 00 [11:08:09]wFMCommunicate OK [11:08:09]wFMCommunicate request_size=10 [11:08:09]MH_SAM_APDU [11:08:09]CAPDU: 80 0D 02 02 05 90 D2 58 26 FD [11:08:09]Write to MH i2c: E2 0D 00 9C 14 80 0D 02 02 05 00 90 D2 58 26 FD 00 00 11 [11:08:09]Write i2c OK [11:08:09]MH_I2C_Read... [11:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:09]Read from MH i2c: E2 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 03 00 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [11:08:09]RAPDU: 90 00 [11:08:09]wFMCommunicate OK [11:08:09]wFMCommunicate request_size=4 [11:08:09]MH_SAM_APDU [11:08:09]CAPDU: 80 0D 03 02 [11:08:09]Write to MH i2c: E2 08 00 9D 14 80 0D 03 02 00 00 00 00 2C [11:08:09]Write i2c OK [11:08:09]MH_I2C_Read... [11:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:09]Read from MH i2c: E2 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 0B 00 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 0B 00 9D 14 00 78 83 56 11 AE C8 A2 CD 90 00 74 [11:08:09]RAPDU: 78 83 56 11 AE C8 A2 CD 90 00 [11:08:09]wFMCommunicate OK [11:08:09]SAM_PROTO_SignData done [11:08:09]FM_MakeSignedData done [11:08:09]CreateOFDProtocolMessage [11:08:09]wFMCommunicate request_size=4 [11:08:09]MH_SAM_APDU [11:08:09]CAPDU: 80 11 00 00 [11:08:09]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [11:08:09]Write i2c OK [11:08:09]MH_I2C_Read... [11:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:09]Read from MH i2c: E2 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 17 00 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [11:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:09]wFMCommunicate OK [11:08:09]CreateOFDProtocolMessage done [11:08:09]OFDSenderStorePacket 73774 [11:08:09]StoreOFDPacket docnum=73774 [11:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C4 CF 07 01 D4 ED 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 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 98 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 20 01 00 35 04 06 00 3E 90 D2 58 26 FD 78 83 56 11 AE C8 A2 CD [11:08:09]CheckFolder [11:08:09]dirname=/storage/ofd_packets [11:08:09]CheckFolder done [11:08:09]ProducePacketName [11:08:09]name=ofd_packets/00073774 [11:08:09]NVStorageSaveData ofd_packets/00073774 [11:08:09]File name is /storage/ofd_packets/00073774 [11:08:09]Write 301 bytes [11:08:09]NVStorageSaveData done [11:08:09]OFDSenderStorePacket done [11:08:09]KKMCreateOFDPacket done [11:08:09]NVStorageSaveData kkm_last_timestamp [11:08:09]File name is /storage/kkm_last_timestamp [11:08:09]Write 4 bytes [11:08:09]NVStorageSaveData done [11:08:09]ExternCall_PrintAddStr [11:08:09]wPrintStart [11:08:09]Write to MH i2c: 01 00 00 9F 14 B3 [11:08:09]Write i2c OK [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: 01 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: 01 07 00 [11:08:09]MH_I2C_Read... [11:08:09]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [11:08:09]RasterBufferAndPrint [11:08:09]line Счет N : (1)1962857 [11:08:09]line ИНН: 02508201610067 [11:08:09]line Контрольно-Кассовый Чек [11:08:09]line ПРОДАЖА [11:08:09]line ТРК (МРК, ГНК) : 64 [11:08:09]line Товар: 2710124500 [11:08:09]line Аи-95-К-5 [11:08:09]line 10.110 * 74.20 [11:08:09]line = 750.16 [11:08:09]line НДС 12% НСП 1% [11:08:09]line > о реализуемом товаре [11:08:09]line ОКРУГЛЕНИЕ: -0.16 [11:08:09]line ИТОГО: 750.00 [11:08:09]line Внесено: 750.00 [11:08:09]line СДАЧА: 0.00 [11:08:09]line НСП 1% : 6.64 [11:08:09]line НДС 12% : 79.66 [11:08:09]line Наличными: 750.00 [11:08:09]line Безнал.: 0.00 [11:08:09]line Место: АЗС № 133 "Партнер Нефть" [11:08:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:08:09]line СНО: Общий режим [11:08:09]line Чек 100 20.10.2024 11:08 [11:08:09]line Смена: 170 ФФД: 1.0 [11:08:09]line ЗНМ: 0300000020 [11:08:09]line РНМ: 0000000000161154 [11:08:09]line Версия ККМ: v1.0 [11:08:09]line ФМ: 0000000000963323 [11:08:09]line ФД: 73774 [11:08:09]line ФПД: 68791725205245 [11:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110808&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73774&fm=68791725205245&tin=02508201610067®Number=0000000000161154&sum=75000 [11:08:09]OFD Sender: Processing packet 73774 [packets to send 15, broken 14] [11:08:09]ProducePacketName [11:08:09]name=ofd_packets/00073774 [11:08:09]OFD Sender: To server: pG, [11:08:09]CommunicateWithHost lk.salyk.kg:30040 [11:08:09]ConnectInit lk.salyk.kg [11:08:09]written 0, free lines is 4095 [11:08:09]Connected sock=10 [11:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C4 CF 07 01 D4 ED 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 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 98 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 20 01 00 35 04 06 00 3E 90 D2 58 26 FD 78 83 56 11 AE C8 A2 CD [11:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF FF 47 00 50 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 39 36 33 33 32 33 10 04 04 00 2E 20 01 00 F4 03 04 00 7D 8D 14 67 B6 04 01 00 00 D9 BA 29 A3 56 8F CF D7 [11:08:09]CommunicateWithHost err = 0 [11:08:09]CheckOFDResponse [11:08:09]1017 (14) - 77093643461234 [11:08:09]1041 (16) - 0000000000963323 [11:08:09]1040 (4) - 73774 [11:08:09]1012 (4) - 20.10.2024 04:56 [11:08:09]1206 (1) - 0 [11:08:09]OFD Sender: Remove packet 73774 [11:08:09]ProducePacketName [11:08:09]name=ofd_packets/00073774 [11:08:09]NVStorageDeleteData [11:08:10]Write to MH i2c: 01 00 00 C9 14 DD [11:08:10]Write i2c OK [11:08:10]MH_I2C_Read... [11:08:10]Read from MH i2c: 01 [11:08:10]MH_I2C_Read... [11:08:10]Read from MH i2c: 01 07 00 [11:08:10]MH_I2C_Read... [11:08:10]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 AF 0C 9F [11:08:10]RasterBufferAndPrint [11:08:10]line [11:08:10]line [11:08:10]line [11:08:10]line [11:08:10]line [11:08:10]written 0, free lines is 3251 [11:08:10]MH_Cut [11:08:10]Write to MH i2c: D1 01 00 D0 14 01 B6 [11:08:10]Write i2c OK [11:08:10]MH_I2C_Read... [11:08:10]Read from MH i2c: D1 [11:08:10]MH_I2C_Read... [11:08:10]Read from MH i2c: D1 01 00 [11:08:10]MH_I2C_Read... [11:08:10]Read from MH i2c: D1 01 00 D0 14 00 B5 [11:08:10]Write to MH i2c: 01 00 00 D1 14 E5 [11:08:10]Write i2c OK [11:08:10]MH_I2C_Read... [11:08:10]OFD Sender: No OFD packet to send [11:08:10]*** Cut start [11:08:10]*** Partial cut [11:08:10]*** CUTSNS_PIN = 1 [11:08:11]*** CUTSNS_PIN = 0 [11:08:11]*** Brake cut motor [11:08:11]Read from MH i2c: 01 [11:08:11]MH_I2C_Read... [11:08:11]*** Stop cut motor [11:08:11]*** Cut end [11:08:11]Read from MH i2c: 01 07 00 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: 01 07 00 D1 14 00 00 00 00 00 FF 0F FA [11:08:11]process_action close_receipt done [11:08:11]requested_data is exist [11:08:11]produce_requested_data [11:08:11]requested_item fm.sn is exist - process it [11:08:11]wFMCommunicate request_size=4 [11:08:11]MH_SAM_APDU [11:08:11]CAPDU: 80 11 00 00 [11:08:11]Write to MH i2c: E2 08 00 D2 14 80 11 00 00 00 00 00 00 60 [11:08:11]Write i2c OK [11:08:11]MH_I2C_Read... [11:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:11]Read from MH i2c: E2 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: E2 17 00 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: E2 17 00 D2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AD [11:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:11]wFMCommunicate OK [11:08:11]requested_item fd.num is exist - process it [11:08:11]SAM_PROTO_GetFieldsCounters [11:08:11]wFMCommunicate request_size=4 [11:08:11]MH_SAM_APDU [11:08:11]CAPDU: 80 13 00 00 [11:08:11]Write to MH i2c: E2 08 00 D3 14 80 13 00 00 00 00 00 00 63 [11:08:11]Write i2c OK [11:08:11]MH_I2C_Read... [11:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:11]Read from MH i2c: E2 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: E2 62 00 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: E2 62 00 D3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2E 20 01 00 0E 04 04 00 AA 00 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 9C [11:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2E 20 01 00 0E 04 04 00 AA 00 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 [11:08:11]wFMCommunicate OK [11:08:11]SAM_PROTO_GetFieldsCounters done [11:08:11]requested_item shift.num is exist - process it [11:08:11]requested_item shift.opened is exist - process it [11:08:11]req_shift_opened [11:08:11]FM_GetShiftState [11:08:11]SAM_PROTO_GetShiftState [11:08:11]wFMCommunicate request_size=4 [11:08:11]MH_SAM_APDU [11:08:11]CAPDU: 80 13 01 00 [11:08:11]Write to MH i2c: E2 08 00 D4 14 80 13 01 00 00 00 00 00 65 [11:08:11]Write i2c OK [11:08:11]MH_I2C_Read... [11:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:11]Read from MH i2c: E2 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: E2 0E 00 [11:08:11]MH_I2C_Read... [11:08:11]Read from MH i2c: E2 0E 00 D4 14 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AA [11:08:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:08:11]wFMCommunicate OK [11:08:11]SAM_PROTO_GetShiftState done [11:08:11]FM_GetShiftState done [11:08:11]req_shift_opened done [11:08:11]requested_item shift.open_date is exist - process it [11:08:11]req_shift_open_date [11:08:11]req_shift_open_date done [11:08:11]produce_requested_data done [11:08:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73774,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:08:11]process_action_free close_receipt [11:08:11]json_value_free [11:08:11]json_value_free done [11:08:11]process_json_proto returns [11:08:11]Send response to host [11:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73774,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:08:11]free response buf [11:08:11]execute_script done [11:08:11]execute_script returns [11:08:11]free content buf [11:08:11]Sock 9.Close socket [11:08:11]Sock 9.Thread stoped [11:08:12]accept exits with 8 [11:08:12]New connection [11:08:12]New thread 3067432292 created [11:08:12]Thread 3067575652 joined [11:08:12]Waiting for new connection... [11:08:12] Sock 8.Parse request [11:08:12]Sock 8.Check first char [11:08:12]Sock 8.First char is OK [11:08:12]request: POST /json_proto HTTP/1.0 [11:08:12]Method: POST [11:08:12]URL: /json_proto [11:08:12]Method is POST - this is cgi request [11:08:12]url: /json_proto [11:08:12]query_string will be loaded in cgi processing [11:08:12]execute_cgi json_proto POST (null) [11:08:12]execute_cgi path=json_proto method=POST [11:08:12]POST find Content-Length [11:08:12]Host: 172.17.44.196:8080 [11:08:12]Content-Length: 618 [11:08:12]Content-Type: application/json [11:08:12] [11:08:12]POST finish read [11:08:12]Found Content-Length = 618 [11:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272762", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:12]execute_script... [11:08: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)272762", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:12]POST & json_proto [11:08:12]process_json_proto [11:08:12]json parsed OK: [11:08:12]protocol is kg_v1.0 [11:08:12]action value=close_receipt [11:08:12]process_action close_receipt [11:08:12]cmd_close_receipt [11:08:12]MH_GetDate [11:08:12]Write to MH i2c: F0 00 00 D5 14 D8 [11:08:12]Write i2c OK [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 09 00 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 09 00 D5 14 00 9D E4 14 67 E7 19 F8 65 3A [11:08:12]GetLastDocTimeStamp 1729422488 [11:08:12]current date 1729422493 [11:08:12]FM_GetShiftState [11:08:12]SAM_PROTO_GetShiftState [11:08:12]wFMCommunicate request_size=4 [11:08:12]MH_SAM_APDU [11:08:12]CAPDU: 80 13 01 00 [11:08:12]Write to MH i2c: E2 08 00 D6 14 80 13 01 00 00 00 00 00 67 [11:08:12]Write i2c OK [11:08:12]MH_I2C_Read... [11:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:12]Read from MH i2c: E2 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: E2 0E 00 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: E2 0E 00 D6 14 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AC [11:08:12]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:08:12]wFMCommunicate OK [11:08:12]SAM_PROTO_GetShiftState done [11:08:12]FM_GetShiftState done [11:08:12]opened in 1729384303 [11:08:12]opened+sec_in_day 1729470703 [11:08:12]quantity*price = 12500 [11:08:12]sum+1 = 12501 [11:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 101 20.10.2024 11:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73775 ФПД: 199863244574354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110813&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73775&fm=199863244574354&tin=02508201610067®Number=0000000000161154&sum=12500 0 [11:08:14]StoreToDocumentArchive [11:08:14]shift 170 fd 73775 [11:08:14]save to /storage/0170/doc_00073775 [11:08:14]save last doc name /storage/0170/doc_00073775 to /storage/kkm_last_doc_name [11:08:14]save OK [11:08:14]Clear old archive folders... [11:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=270 [11:08:14]tlvbuf is 003DC3E0 [11:08:14]SAM_PROTO_ClearQueue [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 09 00 00 [11:08:14]Write to MH i2c: E2 08 00 E3 14 80 09 00 00 00 00 00 00 69 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 E3 14 00 90 00 6B [11:08:14]RAPDU: 90 00 [11:08:14]wFMCommunicate OK [11:08:14]SAM_PROTO_ClearQueue done [11:08:14]KKMCreateOFDPacket [11:08:14]OFDProtocolAddRootSTLVToBuf [11:08:14]FM_MakeSignedData [11:08:14]FM_MakeSignedData [11:08:14]SAM_PROTO_SignData [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 0D 01 02 [11:08:14]Write to MH i2c: E2 08 00 E4 14 80 0D 01 02 00 00 00 00 71 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 E4 14 00 90 00 6C [11:08:14]RAPDU: 90 00 [11:08:14]wFMCommunicate OK [11:08:14]wFMCommunicate request_size=255 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 65 00 00 00 F4 03 04 00 9D E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [11:08:14]Write to MH i2c: E2 02 01 E5 14 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 65 00 00 00 F4 03 04 00 9D E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 59 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 E5 14 00 90 00 6D [11:08:14]RAPDU: 90 00 [11:08:14]wFMCommunicate OK [11:08:14]wFMCommunicate request_size=29 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 2F 20 01 00 35 04 06 00 B5 C6 49 B2 4E 92 [11:08:14]Write to MH i2c: E2 20 00 E6 14 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 2F 20 01 00 35 04 06 00 B5 C6 49 B2 4E 92 00 00 DB [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 E6 14 00 90 00 6E [11:08:14]RAPDU: 90 00 [11:08:14]wFMCommunicate OK [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 0D 03 02 [11:08:14]Write to MH i2c: E2 08 00 E7 14 80 0D 03 02 00 00 00 00 76 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 0B 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 0B 00 E7 14 00 3D 0A B0 7C 30 F2 D9 41 90 00 26 [11:08:14]RAPDU: 3D 0A B0 7C 30 F2 D9 41 90 00 [11:08:14]wFMCommunicate OK [11:08:14]SAM_PROTO_SignData done [11:08:14]FM_MakeSignedData done [11:08:14]CreateOFDProtocolMessage [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 11 00 00 [11:08:14]Write to MH i2c: E2 08 00 E8 14 80 11 00 00 00 00 00 00 76 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 17 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 17 00 E8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C3 [11:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:14]wFMCommunicate OK [11:08:14]CreateOFDProtocolMessage done [11:08:14]OFDSenderStorePacket 73775 [11:08:14]StoreOFDPacket docnum=73775 [11:08:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 4C BB 1A 01 2E 32 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 65 00 00 00 F4 03 04 00 9D E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 20 01 00 35 04 06 00 B5 C6 49 B2 4E 92 3D 0A B0 7C 30 F2 D9 41 [11:08:14]CheckFolder [11:08:14]dirname=/storage/ofd_packets [11:08:14]CheckFolder done [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00073775 [11:08:14]NVStorageSaveData ofd_packets/00073775 [11:08:14]File name is /storage/ofd_packets/00073775 [11:08:14]Write 320 bytes [11:08:14]NVStorageSaveData done [11:08:14]OFDSenderStorePacket done [11:08:14]KKMCreateOFDPacket done [11:08:14]NVStorageSaveData kkm_last_timestamp [11:08:14]File name is /storage/kkm_last_timestamp [11:08:14]Write 4 bytes [11:08:14]NVStorageSaveData done [11:08:14]ExternCall_PrintAddStr [11:08:14]wPrintStart [11:08:14]Write to MH i2c: 01 00 00 E9 14 FD [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 E9 14 00 00 00 00 00 FF 0F 12 [11:08:14]RasterBufferAndPrint [11:08:14]line Счет N : (3)272762 [11:08:14]line ИНН: 02508201610067 [11:08:14]line Контрольно-Кассовый Чек [11:08:14]line ПРОДАЖА [11:08:14]line Товар: 48742191 [11:08:14]line Сигареты Bond Street Blue [11:08:14]line 1.000 * 125.00 [11:08:14]line = 125.00 [11:08:14]line НДС 12% НСП 1% [11:08:14]line > о реализуемом товаре [11:08:14]line ИТОГО: 125.00 [11:08:14]line НСП 1% : 1.11 [11:08:14]line НДС 12% : 13.27 [11:08:14]line Наличными: 125.00 [11:08:14]line Безнал.: 0.00 [11:08:14]line Место: АЗС № 133 "Партнер Нефть" [11:08:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:08:14]line СНО: Общий режим [11:08:14]line Чек 101 20.10.2024 11:08 [11:08:14]line Смена: 170 ФФД: 1.0 [11:08:14]line ЗНМ: 0300000020 [11:08:14]line РНМ: 0000000000161154 [11:08:14]line Версия ККМ: v1.0 [11:08:14]line ФМ: 0000000000963323 [11:08:14]line ФД: 73775 [11:08:14]line ФПД: 199863244574354 [11:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110813&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73775&fm=199863244574354&tin=02508201610067®Number=0000000000161154&sum=12500 [11:08:14]line 0 [11:08:14]written 0, free lines is 4095 [11:08:14]OFD Sender: Processing packet 73775 [packets to send 15, broken 14] [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00073775 [11:08:14]OFD Sender: To server: pG, [11:08:14]CommunicateWithHost lk.salyk.kg:30040 [11:08:14]ConnectInit lk.salyk.kg [11:08:14]Connected sock=9 [11:08:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 4C BB 1A 01 2E 32 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 65 00 00 00 F4 03 04 00 9D E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 20 01 00 35 04 06 00 B5 C6 49 B2 4E 92 3D 0A B0 7C 30 F2 D9 41 [11:08:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 69 31 47 00 BB 79 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 39 36 33 33 32 33 10 04 04 00 2F 20 01 00 F4 03 04 00 83 8D 14 67 B6 04 01 00 00 A8 A2 C8 6F 85 8B 1F 2E [11:08:15]CommunicateWithHost err = 0 [11:08:15]CheckOFDResponse [11:08:15]1017 (14) - 77093643461234 [11:08:15]1041 (16) - 0000000000963323 [11:08:15]1040 (4) - 73775 [11:08:15]1012 (4) - 20.10.2024 04:56 [11:08:15]1206 (1) - 0 [11:08:15]OFD Sender: Remove packet 73775 [11:08:15]ProducePacketName [11:08:15]name=ofd_packets/00073775 [11:08:15]NVStorageDeleteData [11:08:15]Write to MH i2c: 01 00 00 10 15 25 [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: 01 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: 01 07 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 DE 0C 16 [11:08:15]RasterBufferAndPrint [11:08:15]line [11:08:15]line [11:08:15]line [11:08:15]line [11:08:15]line [11:08:15]written 0, free lines is 3306 [11:08:15]MH_Cut [11:08:15]Write to MH i2c: D1 01 00 17 15 01 FE [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: D1 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: D1 01 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: D1 01 00 17 15 00 FD [11:08:15]Write to MH i2c: 01 00 00 18 15 2D [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]OFD Sender: No OFD packet to send [11:08:16]*** Cut start [11:08:16]*** Partial cut [11:08:16]*** CUTSNS_PIN = 1 [11:08:16]*** CUTSNS_PIN = 0 [11:08:16]*** Brake cut motor [11:08:16]Read from MH i2c: 01 [11:08:16]MH_I2C_Read... [11:08:16]*** Stop cut motor [11:08:16]*** Cut end [11:08:16]Read from MH i2c: 01 07 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 07 00 18 15 00 00 00 00 00 FF 0F 42 [11:08:16]process_action close_receipt done [11:08:16]requested_data is exist [11:08:16]produce_requested_data [11:08:16]requested_item fm.sn is exist - process it [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 11 00 00 [11:08:16]Write to MH i2c: E2 08 00 19 15 80 11 00 00 00 00 00 00 A8 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 17 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 17 00 19 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [11:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:16]wFMCommunicate OK [11:08:16]requested_item fd.num is exist - process it [11:08:16]SAM_PROTO_GetFieldsCounters [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 13 00 00 [11:08:16]Write to MH i2c: E2 08 00 1A 15 80 13 00 00 00 00 00 00 AB [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 62 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 62 00 1A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2F 20 01 00 0E 04 04 00 AA 00 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 E8 [11:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2F 20 01 00 0E 04 04 00 AA 00 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 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_GetFieldsCounters done [11:08:16]requested_item shift.num is exist - process it [11:08:16]requested_item shift.opened is exist - process it [11:08:16]req_shift_opened [11:08:16]FM_GetShiftState [11:08:16]SAM_PROTO_GetShiftState [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 13 01 00 [11:08:16]Write to MH i2c: E2 08 00 1B 15 80 13 01 00 00 00 00 00 AD [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 0E 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 0E 00 1B 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F2 [11:08:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_GetShiftState done [11:08:16]FM_GetShiftState done [11:08:16]req_shift_opened done [11:08:16]requested_item shift.open_date is exist - process it [11:08:16]req_shift_open_date [11:08:16]req_shift_open_date done [11:08:16]produce_requested_data done [11:08:16]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73775,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:08:16]process_action_free close_receipt [11:08:16]json_value_free [11:08:16]json_value_free done [11:08:16]process_json_proto returns [11:08:16]Send response to host [11:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73775,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:08:16]free response buf [11:08:16]execute_script done [11:08:16]execute_script returns [11:08:16]free content buf [11:08:16]Sock 8.Close socket [11:08:16]Sock 8.Thread stoped [11:08:19]accept exits with 10 [11:08:19]New connection [11:08:19]New thread 3067575652 created [11:08:19]Thread 3067432292 joined [11:08:19]Waiting for new connection... [11:08:19] Sock 10.Parse request [11:08:19]Sock 10.Check first char [11:08:19]Sock 10.First char is OK [11:08:19]request: POST /json_proto HTTP/1.0 [11:08:19]Method: POST [11:08:19]URL: /json_proto [11:08:19]Method is POST - this is cgi request [11:08:19]url: /json_proto [11:08:19]query_string will be loaded in cgi processing [11:08:19]execute_cgi json_proto POST (null) [11:08:19]execute_cgi path=json_proto method=POST [11:08:19]POST find Content-Length [11:08:19]Host: 172.17.44.196:8080 [11:08:19]Content-Length: 680 [11:08:19]Content-Type: application/json [11:08:19] [11:08:19]POST finish read [11:08:19]Found Content-Length = 680 [11:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [11:08:19]execute_script... [11:08: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)1962856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [11:08:19]POST & json_proto [11:08:19]process_json_proto [11:08:19]json parsed OK: [11:08:19]protocol is kg_v1.0 [11:08:19]action value=close_receipt [11:08:19]process_action close_receipt [11:08:19]cmd_close_receipt [11:08:19]MH_GetDate [11:08:19]Write to MH i2c: F0 00 00 1C 15 20 [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: F0 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: F0 09 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: F0 09 00 1C 15 00 A5 E4 14 67 E7 19 F8 65 8A [11:08:19]GetLastDocTimeStamp 1729422493 [11:08:19]current date 1729422501 [11:08:19]FM_GetShiftState [11:08:19]SAM_PROTO_GetShiftState [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 13 01 00 [11:08:19]Write to MH i2c: E2 08 00 1D 15 80 13 01 00 00 00 00 00 AF [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:20]Read from MH i2c: E2 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 1D 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F4 [11:08:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:08:20]wFMCommunicate OK [11:08:20]SAM_PROTO_GetShiftState done [11:08:20]FM_GetShiftState done [11:08:20]opened in 1729384303 [11:08:20]opened+sec_in_day 1729470703 [11:08:20]quantity*price = 100050 [11:08:20]sum+1 = 100052 [11:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 102 20.10.2024 11:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73776 ФПД: 188294780642361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73776&fm=188294780642361&tin=02508201610067®Number=0000000000161154&sum=100000 [11:08:21]StoreToDocumentArchive [11:08:21]shift 170 fd 73776 [11:08:21]save to /storage/0170/doc_00073776 [11:08:21]save last doc name /storage/0170/doc_00073776 to /storage/kkm_last_doc_name [11:08:21]save OK [11:08:21]Clear old archive folders... [11:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:21]tlvbuf is 003C2980 [11:08:21]SAM_PROTO_ClearQueue [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 09 00 00 [11:08:21]Write to MH i2c: E2 08 00 2A 15 80 09 00 00 00 00 00 00 B1 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_ClearQueue done [11:08:21]KKMCreateOFDPacket [11:08:21]OFDProtocolAddRootSTLVToBuf [11:08:21]FM_MakeSignedData [11:08:21]FM_MakeSignedData [11:08:21]SAM_PROTO_SignData [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 01 02 [11:08:21]Write to MH i2c: E2 08 00 2B 15 80 0D 01 02 00 00 00 00 B9 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 2B 15 00 90 00 B4 [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=255 [11:08:21]MH_SAM_APDU [11:08:21]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 66 00 00 00 F4 03 04 00 A5 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 20 01 00 35 04 06 00 AB 40 CB 83 [11:08:21]Write to MH i2c: E2 02 01 2C 15 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 66 00 00 00 F4 03 04 00 A5 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 20 01 00 35 04 06 00 AB 40 CB 83 00 00 CF [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 2C 15 00 90 00 B5 [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=7 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 02 02 02 64 39 [11:08:21]Write to MH i2c: E2 0A 00 2D 15 80 0D 02 02 02 00 64 39 00 00 5D [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 2D 15 00 90 00 B6 [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 03 02 [11:08:21]Write to MH i2c: E2 08 00 2E 15 80 0D 03 02 00 00 00 00 BE [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0B 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0B 00 2E 15 00 9E 30 A7 2B A6 2B 3A 31 90 00 9B [11:08:21]RAPDU: 9E 30 A7 2B A6 2B 3A 31 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_SignData done [11:08:21]FM_MakeSignedData done [11:08:21]CreateOFDProtocolMessage [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 11 00 00 [11:08:21]Write to MH i2c: E2 08 00 2F 15 80 11 00 00 00 00 00 00 BE [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 17 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 17 00 2F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0B [11:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:21]wFMCommunicate OK [11:08:21]CreateOFDProtocolMessage done [11:08:21]OFDSenderStorePacket 73776 [11:08:21]StoreOFDPacket docnum=73776 [11:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7C FC 04 01 59 2F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 66 00 00 00 F4 03 04 00 A5 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 20 01 00 35 04 06 00 AB 40 CB 83 64 39 9E 30 A7 2B A6 2B 3A 31 [11:08:21]CheckFolder [11:08:21]dirname=/storage/ofd_packets [11:08:21]CheckFolder done [11:08:21]ProducePacketName [11:08:21]name=ofd_packets/00073776 [11:08:21]NVStorageSaveData ofd_packets/00073776 [11:08:21]File name is /storage/ofd_packets/00073776 [11:08:21]Write 298 bytes [11:08:21]NVStorageSaveData done [11:08:21]OFDSenderStorePacket done [11:08:21]KKMCreateOFDPacket done [11:08:21]NVStorageSaveData kkm_last_timestamp [11:08:21]File name is /storage/kkm_last_timestamp [11:08:21]Write 4 bytes [11:08:21]NVStorageSaveData done [11:08:21]ExternCall_PrintAddStr [11:08:21]wPrintStart [11:08:21]Write to MH i2c: 01 00 00 30 15 45 [11:08:21]OFD Sender: Processing packet 73776 [packets to send 15, broken 14] [11:08:21]ProducePacketName [11:08:21]name=ofd_packets/00073776 [11:08:21]OFD Sender: To server: pG, [11:08:21]CommunicateWithHost lk.salyk.kg:30040 [11:08:21]ConnectInit lk.salyk.kg [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 07 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 07 00 30 15 00 00 00 00 00 FF 0F 5A [11:08:21]RasterBufferAndPrint [11:08:21]line Счет N : (1)1962856 [11:08:21]line ИНН: 02508201610067 [11:08:21]line Контрольно-Кассовый Чек [11:08:21]line ПРОДАЖА [11:08:21]line ТРК (МРК, ГНК) : 31 [11:08:21]line Товар: 2710194210 [11:08:21]line ДТ-К-5 [11:08:21]line 13.130 * 76.20 [11:08:21]line = 1000.51 [11:08:21]line НДС 12% НСП 1% [11:08:21]line > о реализуемом товаре [11:08:21]line ОКРУГЛЕНИЕ: -0.51 [11:08:21]line ИТОГО: 1000.00 [11:08:21]line Внесено: 1000.00 [11:08:21]line СДАЧА: 0.00 [11:08:21]line НСП 1% : 8.85 [11:08:21]line НДС 12% : 106.25 [11:08:21]line Наличными: 1000.00 [11:08:21]line Безнал.: 0.00 [11:08:21]line Место: АЗС № 133 "Партнер Нефть" [11:08:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:08:21]line СНО: Общий режим [11:08:21]line Чек 102 20.10.2024 11:08 [11:08:21]line Смена: 170 ФФД: 1.0 [11:08:21]line ЗНМ: 0300000020 [11:08:21]line РНМ: 0000000000161154 [11:08:21]line Версия ККМ: v1.0 [11:08:21]line ФМ: 0000000000963323 [11:08:21]line ФД: 73776 [11:08:21]line ФПД: 188294780642361 [11:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73776&fm=188294780642361&tin=02508201610067®Number=0000000000161154&sum=100000 [11:08:21]written 0, free lines is 4095 [11:08:21]Connected sock=9 [11:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7C FC 04 01 59 2F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 66 00 00 00 F4 03 04 00 A5 E4 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 20 01 00 35 04 06 00 AB 40 CB 83 64 39 9E 30 A7 2B A6 2B 3A 31 [11:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CD C6 47 00 F0 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 39 36 33 33 32 33 10 04 04 00 30 20 01 00 F4 03 04 00 8A 8D 14 67 B6 04 01 00 00 E2 B9 75 2A 3A AE 1B 92 [11:08:22]CommunicateWithHost err = 0 [11:08:22]CheckOFDResponse [11:08:22]1017 (14) - 77093643461234 [11:08:22]1041 (16) - 0000000000963323 [11:08:22]1040 (4) - 73776 [11:08:22]1012 (4) - 20.10.2024 04:56 [11:08:22]1206 (1) - 0 [11:08:22]OFD Sender: Remove packet 73776 [11:08:22]ProducePacketName [11:08:22]name=ofd_packets/00073776 [11:08:22]NVStorageDeleteData [11:08:22]Write to MH i2c: 01 00 00 5A 15 6F [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 BF 0C 41 [11:08:22]RasterBufferAndPrint [11:08:22]line [11:08:22]line [11:08:22]line [11:08:22]line [11:08:22]line [11:08:22]written 0, free lines is 3279 [11:08:22]MH_Cut [11:08:22]Write to MH i2c: D1 01 00 61 15 01 48 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: D1 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: D1 01 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: D1 01 00 61 15 00 47 [11:08:22]Write to MH i2c: 01 00 00 62 15 77 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]OFD Sender: No OFD packet to send [11:08:23]*** Cut start [11:08:23]*** Partial cut [11:08:23]*** CUTSNS_PIN = 1 [11:08:23]*** CUTSNS_PIN = 0 [11:08:23]*** Brake cut motor [11:08:23]Read from MH i2c: 01 [11:08:23]MH_I2C_Read... [11:08:23]*** Stop cut motor [11:08:23]*** Cut end [11:08:23]Read from MH i2c: 01 07 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 07 00 62 15 00 00 00 00 00 FF 0F 8C [11:08:23]process_action close_receipt done [11:08:23]requested_data is exist [11:08:23]produce_requested_data [11:08:23]requested_item fm.sn is exist - process it [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 11 00 00 [11:08:23]Write to MH i2c: E2 08 00 63 15 80 11 00 00 00 00 00 00 F2 [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 63 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [11:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:23]wFMCommunicate OK [11:08:23]requested_item fd.num is exist - process it [11:08:23]SAM_PROTO_GetFieldsCounters [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 13 00 00 [11:08:23]Write to MH i2c: E2 08 00 64 15 80 13 00 00 00 00 00 00 F5 [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 62 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 62 00 64 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 30 20 01 00 0E 04 04 00 AA 00 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 36 [11:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 30 20 01 00 0E 04 04 00 AA 00 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 [11:08:23]wFMCommunicate OK [11:08:23]SAM_PROTO_GetFieldsCounters done [11:08:23]requested_item shift.num is exist - process it [11:08:23]requested_item shift.opened is exist - process it [11:08:23]req_shift_opened [11:08:23]FM_GetShiftState [11:08:23]SAM_PROTO_GetShiftState [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 13 01 00 [11:08:24]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3C [11:08:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetShiftState done [11:08:24]FM_GetShiftState done [11:08:24]req_shift_opened done [11:08:24]requested_item shift.open_date is exist - process it [11:08:24]req_shift_open_date [11:08:24]req_shift_open_date done [11:08:24]produce_requested_data done [11:08:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73776,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:08:24]process_action_free close_receipt [11:08:24]json_value_free [11:08:24]json_value_free done [11:08:24]process_json_proto returns [11:08:24]Send response to host [11:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73776,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:08:24]free response buf [11:08:24]execute_script done [11:08:24]execute_script returns [11:08:24]free content buf [11:08:24]Sock 10.Close socket [11:08:24]Sock 10.Thread stoped [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:11]accept exits with 8 [11:13:11]New connection [11:13:11]New thread 3067432292 created [11:13:11]Thread 3067575652 joined [11:13:11]Waiting for new connection... [11:13:11] Sock 8.Parse request [11:13:11]Sock 8.Check first char [11:13:11]Sock 8.First char is OK [11:13:11]request: POST /json_proto HTTP/1.0 [11:13:11]Method: POST [11:13:11]URL: /json_proto [11:13:11]Method is POST - this is cgi request [11:13:11]url: /json_proto [11:13:11]query_string will be loaded in cgi processing [11:13:11]execute_cgi json_proto POST (null) [11:13:11]execute_cgi path=json_proto method=POST [11:13:11]POST find Content-Length [11:13:11]Host: 172.17.44.196:8080 [11:13:11]Content-Length: 812 [11:13:11]Content-Type: application/json [11:13:11] [11:13:11]POST finish read [11:13:11]Found Content-Length = 812 [11:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272763", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\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: Mbank", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:11]execute_script... [11:13: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)272763", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\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: Mbank", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:11]POST & json_proto [11:13:11]process_json_proto [11:13:11]json parsed OK: [11:13:11]protocol is kg_v1.0 [11:13:11]action value=close_receipt [11:13:11]process_action close_receipt [11:13:11]cmd_close_receipt [11:13:11]MH_GetDate [11:13:11]Write to MH i2c: F0 00 00 66 15 6A [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: F0 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: F0 09 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: F0 09 00 66 15 00 C8 E5 14 67 E7 19 F8 65 F8 [11:13:11]GetLastDocTimeStamp 1729422501 [11:13:11]current date 1729422792 [11:13:11]FM_GetShiftState [11:13:11]SAM_PROTO_GetShiftState [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 13 01 00 [11:13:11]Write to MH i2c: E2 08 00 67 15 80 13 01 00 00 00 00 00 F9 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0E 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0E 00 67 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3E [11:13:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_GetShiftState done [11:13:11]FM_GetShiftState done [11:13:11]opened in 1729384303 [11:13:11]opened+sec_in_day 1729470703 [11:13:11]quantity*price = 8000 [11:13:11]sum+1 = 8001 [11:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 103 20.10.2024 11:13 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73777 ФПД: 165193978500396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111312&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73777&fm=165193978500396&tin=02508201610067®Number=0000000000161154&sum=8000 0 [11:13:12]StoreToDocumentArchive [11:13:12]shift 170 fd 73777 [11:13:12]save to /storage/0170/doc_00073777 [11:13:12]save last doc name /storage/0170/doc_00073777 to /storage/kkm_last_doc_name [11:13:12]save OK [11:13:12]Clear old archive folders... [11:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=296 [11:13:12]tlvbuf is 003833B0 [11:13:12]SAM_PROTO_ClearQueue [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 09 00 00 [11:13:12]Write to MH i2c: E2 08 00 74 15 80 09 00 00 00 00 00 00 FB [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_ClearQueue done [11:13:12]KKMCreateOFDPacket [11:13:12]OFDProtocolAddRootSTLVToBuf [11:13:12]FM_MakeSignedData [11:13:12]FM_MakeSignedData [11:13:12]SAM_PROTO_SignData [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 01 02 [11:13:12]Write to MH i2c: E2 08 00 75 15 80 0D 01 02 00 00 00 00 03 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=255 [11:13:12]MH_SAM_APDU [11:13: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 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C8 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [11:13:12]Write to MH i2c: E2 02 01 76 15 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C8 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 FB [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 76 15 00 90 00 FF [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=55 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 20 01 00 35 04 06 00 96 3E 38 68 55 2C [11:13:12]Write to MH i2c: E2 3A 00 77 15 80 0D 02 02 32 00 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 20 01 00 35 04 06 00 96 3E 38 68 55 2C 00 00 99 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 77 15 00 90 00 00 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 03 02 [11:13:12]Write to MH i2c: E2 08 00 78 15 80 0D 03 02 00 00 00 00 08 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0B 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0B 00 78 15 00 95 99 F7 85 FE D5 12 99 90 00 31 [11:13:12]RAPDU: 95 99 F7 85 FE D5 12 99 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_SignData done [11:13:12]FM_MakeSignedData done [11:13:12]CreateOFDProtocolMessage [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 11 00 00 [11:13:12]Write to MH i2c: E2 08 00 79 15 80 11 00 00 00 00 00 00 08 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 79 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [11:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:13:12]wFMCommunicate OK [11:13:12]CreateOFDProtocolMessage done [11:13:12]OFDSenderStorePacket 73777 [11:13:12]StoreOFDPacket docnum=73777 [11:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 56 DC 34 01 AA 74 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C8 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 20 01 00 35 04 06 00 96 3E 38 68 55 2C 95 99 F7 85 FE D5 12 99 [11:13:12]CheckFolder [11:13:12]dirname=/storage/ofd_packets [11:13:12]CheckFolder done [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00073777 [11:13:12]NVStorageSaveData ofd_packets/00073777 [11:13:12]File name is /storage/ofd_packets/00073777 [11:13:12]Write 346 bytes [11:13:12]NVStorageSaveData done [11:13:12]OFDSenderStorePacket done [11:13:12]KKMCreateOFDPacket done [11:13:12]NVStorageSaveData kkm_last_timestamp [11:13:12]File name is /storage/kkm_last_timestamp [11:13:12]Write 4 bytes [11:13:12]NVStorageSaveData done [11:13:12]ExternCall_PrintAddStr [11:13:12]wPrintStart [11:13:12]Write to MH i2c: 01 00 00 7A 15 8F [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 FF 0F A4 [11:13:12]RasterBufferAndPrint [11:13:12]line Счет N : (3)272763 [11:13:12]line ИНН: 02508201610067 [11:13:12]line Контрольно-Кассовый Чек [11:13:12]line ПРОДАЖА [11:13:12]line Товар: 4700003010476 [11:13:12]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [11:13:12]line 1.000 * 80.00 [11:13:12]line = 80.00 [11:13:12]line НДС 12% НСП 1% [11:13:12]line > о реализуемом товаре [11:13:12]line ИТОГО: 80.00 [11:13:12]line НСП 1% : 0.71 [11:13:12]line НДС 12% : 8.50 [11:13:12]line Наличными: 0.00 [11:13:12]line Безнал.: 80.00 [11:13:12]line Место: АЗС № 133 "Партнер Нефть" [11:13:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:13:12]line СНО: Общий режим [11:13:12]line Чек 103 20.10.2024 11:13 [11:13:12]line Смена: 170 ФФД: 1.0 [11:13:12]line ЗНМ: 0300000020 [11:13:12]line РНМ: 0000000000161154 [11:13:12]line Версия ККМ: v1.0 [11:13:12]line Платежная система: Mbank [11:13:12]line ФМ: 0000000000963323 [11:13:12]line ФД: 73777 [11:13:12]line ФПД: 165193978500396 [11:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111312&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73777&fm=165193978500396&tin=02508201610067®Number=0000000000161154&sum=8000 [11:13:13]line 0 [11:13:13]OFD Sender: Processing packet 73777 [packets to send 15, broken 14] [11:13:13]ProducePacketName [11:13:13]name=ofd_packets/00073777 [11:13:13]OFD Sender: To server: pG, [11:13:13]CommunicateWithHost lk.salyk.kg:30040 [11:13:13]ConnectInit lk.salyk.kg [11:13:13]written 0, free lines is 4095 [11:13:13]Connected sock=10 [11:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 56 DC 34 01 AA 74 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C8 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 20 01 00 35 04 06 00 96 3E 38 68 55 2C 95 99 F7 85 FE D5 12 99 [11:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B3 8D 47 00 DC 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 39 36 33 33 32 33 10 04 04 00 31 20 01 00 F4 03 04 00 AD 8E 14 67 B6 04 01 00 00 D3 2A 1A 62 37 94 CD BB [11:13:13]CommunicateWithHost err = 0 [11:13:13]CheckOFDResponse [11:13:13]1017 (14) - 77093643461234 [11:13:13]1041 (16) - 0000000000963323 [11:13:13]1040 (4) - 73777 [11:13:13]1012 (4) - 20.10.2024 05:01 [11:13:13]1206 (1) - 0 [11:13:13]OFD Sender: Remove packet 73777 [11:13:13]ProducePacketName [11:13:13]name=ofd_packets/00073777 [11:13:13]NVStorageDeleteData [11:13:13]Write to MH i2c: 01 00 00 A3 15 B8 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 A3 15 00 00 00 00 00 BB 0C 86 [11:13:13]RasterBufferAndPrint [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]written 0, free lines is 3263 [11:13:13]MH_Cut [11:13:13]Write to MH i2c: D1 01 00 AA 15 01 91 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 01 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 01 00 AA 15 00 90 [11:13:13]Write to MH i2c: 01 00 00 AB 15 C0 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]OFD Sender: No OFD packet to send [11:13:14]*** Cut start [11:13:14]*** Partial cut [11:13:14]*** CUTSNS_PIN = 1 [11:13:14]*** CUTSNS_PIN = 0 [11:13:14]*** Brake cut motor [11:13:14]Read from MH i2c: 01 [11:13:14]MH_I2C_Read... [11:13:14]*** Stop cut motor [11:13:14]*** Cut end [11:13:14]Read from MH i2c: 01 07 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [11:13:14]process_action close_receipt done [11:13:14]requested_data is exist [11:13:14]produce_requested_data [11:13:14]requested_item fm.sn is exist - process it [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 11 00 00 [11:13:14]Write to MH i2c: E2 08 00 AC 15 80 11 00 00 00 00 00 00 3B [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 [11:13:15]MH_I2C_Read... [11:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:15]Read from MH i2c: E2 17 00 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 17 00 AC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [11:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:13:15]wFMCommunicate OK [11:13:15]requested_item fd.num is exist - process it [11:13:15]SAM_PROTO_GetFieldsCounters [11:13:15]wFMCommunicate request_size=4 [11:13:15]MH_SAM_APDU [11:13:15]CAPDU: 80 13 00 00 [11:13:15]Write to MH i2c: E2 08 00 AD 15 80 13 00 00 00 00 00 00 3E [11:13:15]Write i2c OK [11:13:15]MH_I2C_Read... [11:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:15]Read from MH i2c: E2 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 62 00 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 62 00 AD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 31 20 01 00 0E 04 04 00 AA 00 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 83 [11:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 31 20 01 00 0E 04 04 00 AA 00 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 [11:13:15]wFMCommunicate OK [11:13:15]SAM_PROTO_GetFieldsCounters done [11:13:15]requested_item shift.num is exist - process it [11:13:15]requested_item shift.opened is exist - process it [11:13:15]req_shift_opened [11:13:15]FM_GetShiftState [11:13:15]SAM_PROTO_GetShiftState [11:13:15]wFMCommunicate request_size=4 [11:13:15]MH_SAM_APDU [11:13:15]CAPDU: 80 13 01 00 [11:13:15]Write to MH i2c: E2 08 00 AE 15 80 13 01 00 00 00 00 00 40 [11:13:15]Write i2c OK [11:13:15]MH_I2C_Read... [11:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:15]Read from MH i2c: E2 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 0E 00 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 0E 00 AE 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 85 [11:13:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:13:15]wFMCommunicate OK [11:13:15]SAM_PROTO_GetShiftState done [11:13:15]FM_GetShiftState done [11:13:15]req_shift_opened done [11:13:15]requested_item shift.open_date is exist - process it [11:13:15]req_shift_open_date [11:13:15]req_shift_open_date done [11:13:15]produce_requested_data done [11:13:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73777,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:13:15]process_action_free close_receipt [11:13:15]json_value_free [11:13:15]json_value_free done [11:13:15]process_json_proto returns [11:13:15]Send response to host [11:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73777,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:13:15]free response buf [11:13:15]execute_script done [11:13:15]execute_script returns [11:13:15]free content buf [11:13:15]Sock 8.Close socket [11:13:15]Sock 8.Thread stoped [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]accept exits with 9 [11:13:28]New connection [11:13:28]New thread 3067575652 created [11:13:28]Thread 3067432292 joined [11:13:28]Waiting for new connection... [11:13:28] Sock 9.Parse request [11:13:28]Sock 9.Check first char [11:13:28]Sock 9.First char is OK [11:13:28]request: POST /json_proto HTTP/1.0 [11:13:28]Method: POST [11:13:28]URL: /json_proto [11:13:28]Method is POST - this is cgi request [11:13:28]url: /json_proto [11:13:28]query_string will be loaded in cgi processing [11:13:28]execute_cgi json_proto POST (null) [11:13:28]execute_cgi path=json_proto method=POST [11:13:28]POST find Content-Length [11:13:28]Host: 172.17.44.196:8080 [11:13:28]Content-Length: 675 [11:13:28]Content-Type: application/json [11:13:28] [11:13:28]POST finish read [11:13:28]Found Content-Length = 675 [11:13:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [11:13:28]execute_script... [11:13: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 : (1)1962859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [11:13:28]POST & json_proto [11:13:28]process_json_proto [11:13:28]json parsed OK: [11:13:28]protocol is kg_v1.0 [11:13:28]action value=close_receipt [11:13:28]process_action close_receipt [11:13:28]cmd_close_receipt [11:13:28]MH_GetDate [11:13:28]Write to MH i2c: F0 00 00 AF 15 B3 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: F0 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: F0 09 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: F0 09 00 AF 15 00 D9 E5 14 67 E7 19 F8 65 52 [11:13:28]GetLastDocTimeStamp 1729422792 [11:13:28]current date 1729422809 [11:13:28]FM_GetShiftState [11:13:28]SAM_PROTO_GetShiftState [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 13 01 00 [11:13:28]Write to MH i2c: E2 08 00 B0 15 80 13 01 00 00 00 00 00 42 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0E 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0E 00 B0 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 87 [11:13:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_GetShiftState done [11:13:28]FM_GetShiftState done [11:13:28]opened in 1729384303 [11:13:28]opened+sec_in_day 1729470703 [11:13:28]quantity*price = 50063 [11:13:28]sum+1 = 50064 [11:13:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 104 20.10.2024 11:13 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73778 ФПД: 250178882393873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111329&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73778&fm=250178882393873&tin=02508201610067®Number=0000000000161154&sum=50000 [11:13:29]StoreToDocumentArchive [11:13:29]shift 170 fd 73778 [11:13:29]save to /storage/0170/doc_00073778 [11:13:29]save last doc name /storage/0170/doc_00073778 to /storage/kkm_last_doc_name [11:13:29]save OK [11:13:29]Clear old archive folders... [11:13:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:13:29]tlvbuf is 003A03B0 [11:13:29]SAM_PROTO_ClearQueue [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 09 00 00 [11:13:29]Write to MH i2c: E2 08 00 BD 15 80 09 00 00 00 00 00 00 44 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [11:13:29]RAPDU: 90 00 [11:13:29]wFMCommunicate OK [11:13:29]SAM_PROTO_ClearQueue done [11:13:29]KKMCreateOFDPacket [11:13:29]OFDProtocolAddRootSTLVToBuf [11:13:29]FM_MakeSignedData [11:13:29]FM_MakeSignedData [11:13:29]SAM_PROTO_SignData [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 0D 01 02 [11:13:29]Write to MH i2c: E2 08 00 BE 15 80 0D 01 02 00 00 00 00 4C [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [11:13:29]RAPDU: 90 00 [11:13:29]wFMCommunicate OK [11:13:29]wFMCommunicate request_size=255 [11:13:29]MH_SAM_APDU [11:13:29]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 D9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 20 01 00 35 04 06 00 E3 89 4F 6A [11:13:29]Write to MH i2c: E2 02 01 BF 15 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 D9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 20 01 00 35 04 06 00 E3 89 4F 6A 00 00 0F [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [11:13:29]RAPDU: 90 00 [11:13:29]wFMCommunicate OK [11:13:29]wFMCommunicate request_size=7 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 0D 02 02 02 57 11 [11:13:29]Write to MH i2c: E2 0A 00 C0 15 80 0D 02 02 02 00 57 11 00 00 BB [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [11:13:29]RAPDU: 90 00 [11:13:29]wFMCommunicate OK [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 0D 03 02 [11:13:29]Write to MH i2c: E2 08 00 C1 15 80 0D 03 02 00 00 00 00 51 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0B 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0B 00 C1 15 00 73 FC 32 69 2B 59 5B 7B 90 00 B6 [11:13:30]RAPDU: 73 FC 32 69 2B 59 5B 7B 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_SignData done [11:13:30]FM_MakeSignedData done [11:13:30]CreateOFDProtocolMessage [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 11 00 00 [11:13:30]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 17 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [11:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:13:30]wFMCommunicate OK [11:13:30]CreateOFDProtocolMessage done [11:13:30]OFDSenderStorePacket 73778 [11:13:30]StoreOFDPacket docnum=73778 [11:13:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7A 06 04 01 B4 EB 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 D9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 20 01 00 35 04 06 00 E3 89 4F 6A 57 11 73 FC 32 69 2B 59 5B 7B [11:13:30]CheckFolder [11:13:30]dirname=/storage/ofd_packets [11:13:30]CheckFolder done [11:13:30]ProducePacketName [11:13:30]name=ofd_packets/00073778 [11:13:30]NVStorageSaveData ofd_packets/00073778 [11:13:30]File name is /storage/ofd_packets/00073778 [11:13:30]Write 298 bytes [11:13:30]NVStorageSaveData done [11:13:30]OFDSenderStorePacket done [11:13:30]KKMCreateOFDPacket done [11:13:30]NVStorageSaveData kkm_last_timestamp [11:13:30]File name is /storage/kkm_last_timestamp [11:13:30]Write 4 bytes [11:13:30]NVStorageSaveData done [11:13:30]ExternCall_PrintAddStr [11:13:30]wPrintStart [11:13:30]Write to MH i2c: 01 00 00 C3 15 D8 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 FF 0F ED [11:13:30]RasterBufferAndPrint [11:13:30]line Счет N : (1)1962859 [11:13:30]line ИНН: 02508201610067 [11:13:30]line Контрольно-Кассовый Чек [11:13:30]line ПРОДАЖА [11:13:30]line ТРК (МРК, ГНК) : 11 [11:13:30]line Товар: 2710194210 [11:13:30]line ДТ-К-5 [11:13:30]line 6.570 * 76.20 [11:13:30]line = 500.63 [11:13:30]line НДС 12% НСП 1% [11:13:30]line > о реализуемом товаре [11:13:30]line ОКРУГЛЕНИЕ: -0.63 [11:13:30]line ИТОГО: 500.00 [11:13:30]line Внесено: 500.00 [11:13:30]line СДАЧА: 0.00 [11:13:30]line НСП 1% : 4.43 [11:13:30]line НДС 12% : 53.16 [11:13:30]line Наличными: 500.00 [11:13:30]line Безнал.: 0.00 [11:13:30]line Место: АЗС № 133 "Партнер Нефть" [11:13:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:13:30]line СНО: Общий режим [11:13:30]line Чек 104 20.10.2024 11:13 [11:13:30]line Смена: 170 ФФД: 1.0 [11:13:30]line ЗНМ: 0300000020 [11:13:30]line РНМ: 0000000000161154 [11:13:30]line Версия ККМ: v1.0 [11:13:30]line ФМ: 0000000000963323 [11:13:30]line ФД: 73778 [11:13:30]line ФПД: 250178882393873 [11:13:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111329&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73778&fm=250178882393873&tin=02508201610067®Number=0000000000161154&sum=50000 [11:13:30]OFD Sender: Processing packet 73778 [packets to send 15, broken 14] [11:13:30]ProducePacketName [11:13:30]name=ofd_packets/00073778 [11:13:30]OFD Sender: To server: pG, [11:13:30]CommunicateWithHost lk.salyk.kg:30040 [11:13:30]ConnectInit lk.salyk.kg [11:13:30]written 0, free lines is 4095 [11:13:30]Connected sock=10 [11:13:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7A 06 04 01 B4 EB 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 D9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 20 01 00 35 04 06 00 E3 89 4F 6A 57 11 73 FC 32 69 2B 59 5B 7B [11:13:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B0 74 47 00 E5 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 39 36 33 33 32 33 10 04 04 00 32 20 01 00 F4 03 04 00 BE 8E 14 67 B6 04 01 00 00 83 33 C5 2A 91 EF 83 42 [11:13:30]CommunicateWithHost err = 0 [11:13:30]CheckOFDResponse [11:13:30]1017 (14) - 77093643461234 [11:13:30]1041 (16) - 0000000000963323 [11:13:30]1040 (4) - 73778 [11:13:30]1012 (4) - 20.10.2024 05:01 [11:13:30]1206 (1) - 0 [11:13:30]OFD Sender: Remove packet 73778 [11:13:30]ProducePacketName [11:13:30]name=ofd_packets/00073778 [11:13:30]NVStorageDeleteData [11:13:30]Write to MH i2c: 01 00 00 ED 15 02 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 ED 15 00 00 00 00 00 B5 0C CA [11:13:30]RasterBufferAndPrint [11:13:30]line [11:13:30]line [11:13:30]line [11:13:30]line [11:13:30]line [11:13:30]written 0, free lines is 3257 [11:13:30]MH_Cut [11:13:30]Write to MH i2c: D1 01 00 F4 15 01 DB [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: D1 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: D1 01 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: D1 01 00 F4 15 00 DA [11:13:30]Write to MH i2c: 01 00 00 F5 15 0A [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:31]OFD Sender: No OFD packet to send [11:13:31]*** Cut start [11:13:31]*** Partial cut [11:13:31]*** CUTSNS_PIN = 1 [11:13:31]*** CUTSNS_PIN = 0 [11:13:32]*** Brake cut motor [11:13:32]Read from MH i2c: 01 [11:13:32]MH_I2C_Read... [11:13:32]*** Stop cut motor [11:13:32]*** Cut end [11:13:32]Read from MH i2c: 01 07 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [11:13:32]process_action close_receipt done [11:13:32]requested_data is exist [11:13:32]produce_requested_data [11:13:32]requested_item fm.sn is exist - process it [11:13:32]wFMCommunicate request_size=4 [11:13:32]MH_SAM_APDU [11:13:32]CAPDU: 80 11 00 00 [11:13:32]Write to MH i2c: E2 08 00 F6 15 80 11 00 00 00 00 00 00 85 [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:32]Read from MH i2c: E2 17 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 17 00 F6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [11:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:13:32]wFMCommunicate OK [11:13:32]requested_item fd.num is exist - process it [11:13:32]SAM_PROTO_GetFieldsCounters [11:13:32]wFMCommunicate request_size=4 [11:13:32]MH_SAM_APDU [11:13:32]CAPDU: 80 13 00 00 [11:13:32]Write to MH i2c: E2 08 00 F7 15 80 13 00 00 00 00 00 00 88 [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 62 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 62 00 F7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 32 20 01 00 0E 04 04 00 AA 00 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 D1 [11:13:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 32 20 01 00 0E 04 04 00 AA 00 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 [11:13:32]wFMCommunicate OK [11:13:32]SAM_PROTO_GetFieldsCounters done [11:13:32]requested_item shift.num is exist - process it [11:13:32]requested_item shift.opened is exist - process it [11:13:32]req_shift_opened [11:13:32]FM_GetShiftState [11:13:32]SAM_PROTO_GetShiftState [11:13:32]wFMCommunicate request_size=4 [11:13:32]MH_SAM_APDU [11:13:32]CAPDU: 80 13 01 00 [11:13:32]Write to MH i2c: E2 08 00 F8 15 80 13 01 00 00 00 00 00 8A [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 0E 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 0E 00 F8 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CF [11:13:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:13:32]wFMCommunicate OK [11:13:32]SAM_PROTO_GetShiftState done [11:13:32]FM_GetShiftState done [11:13:32]req_shift_opened done [11:13:32]requested_item shift.open_date is exist - process it [11:13:32]req_shift_open_date [11:13:32]req_shift_open_date done [11:13:32]produce_requested_data done [11:13:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73778,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:13:32]process_action_free close_receipt [11:13:32]json_value_free [11:13:32]json_value_free done [11:13:32]process_json_proto returns [11:13:32]Send response to host [11:13:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73778,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:13:32]free response buf [11:13:32]execute_script done [11:13:32]execute_script returns [11:13:32]free content buf [11:13:32]Sock 9.Close socket [11:13:32]Sock 9.Thread stoped [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:13:59]accept exits with 8 [11:13:59]New connection [11:13:59]New thread 3067432292 created [11:13:59]Thread 3067575652 joined [11:13:59]Waiting for new connection... [11:13:59] Sock 8.Parse request [11:13:59]Sock 8.Check first char [11:13:59]Sock 8.First char is OK [11:13:59]request: POST /json_proto HTTP/1.0 [11:13:59]Method: POST [11:13:59]URL: /json_proto [11:13:59]Method is POST - this is cgi request [11:13:59]url: /json_proto [11:13:59]query_string will be loaded in cgi processing [11:13:59]execute_cgi json_proto POST (null) [11:13:59]execute_cgi path=json_proto method=POST [11:13:59]POST find Content-Length [11:13:59]Host: 172.17.44.196:8080 [11:13:59]Content-Length: 746 [11:13:59]Content-Type: application/json [11:13:59] [11:13:59]POST finish read [11:13:59]Found Content-Length = 746 [11:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272764", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:59]execute_script... [11:13:59]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)272764", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:59]POST & json_proto [11:13:59]process_json_proto [11:13:59]json parsed OK: [11:13:59]protocol is kg_v1.0 [11:13:59]action value=close_receipt [11:13:59]process_action close_receipt [11:13:59]cmd_close_receipt [11:13:59]MH_GetDate [11:13:59]Write to MH i2c: F0 00 00 F9 15 FD [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: F0 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: F0 09 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: F0 09 00 F9 15 00 F9 E5 14 67 E7 19 F8 65 BC [11:13:59]GetLastDocTimeStamp 1729422809 [11:13:59]current date 1729422841 [11:13:59]FM_GetShiftState [11:13:59]SAM_PROTO_GetShiftState [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 01 00 [11:13:59]Write to MH i2c: E2 08 00 FA 15 80 13 01 00 00 00 00 00 8C [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 FA 15 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D1 [11:13:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetShiftState done [11:13:59]FM_GetShiftState done [11:13:59]opened in 1729384303 [11:13:59]opened+sec_in_day 1729470703 [11:13:59]quantity*price = 14000 [11:13:59]sum+1 = 14001 [11:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 105 20.10.2024 11:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73779 ФПД: 27547868624701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111401&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73779&fm=27547868624701&tin=02508201610067®Number=0000000000161154&sum=14000 0 [11:14:01]StoreToDocumentArchive [11:14:01]shift 170 fd 73779 [11:14:01]save to /storage/0170/doc_00073779 [11:14:01]save last doc name /storage/0170/doc_00073779 to /storage/kkm_last_doc_name [11:14:01]save OK [11:14:01]Clear old archive folders... [11:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:14:01]tlvbuf is 00399200 [11:14:01]SAM_PROTO_ClearQueue [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 09 00 00 [11:14:01]Write to MH i2c: E2 08 00 07 16 80 09 00 00 00 00 00 00 8F [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]SAM_PROTO_ClearQueue done [11:14:01]KKMCreateOFDPacket [11:14:01]OFDProtocolAddRootSTLVToBuf [11:14:01]FM_MakeSignedData [11:14:01]FM_MakeSignedData [11:14:01]SAM_PROTO_SignData [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 01 02 [11:14:01]Write to MH i2c: E2 08 00 08 16 80 0D 01 02 00 00 00 00 97 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=255 [11:14:01]MH_SAM_APDU [11:14:01]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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:14:01]Write to MH i2c: E2 02 01 09 16 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 80 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]OFD Sender: No OFD packet to send [11:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=30 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 33 20 01 00 35 04 06 00 19 0D FC EC 77 3D [11:14:01]Write to MH i2c: E2 21 00 0A 16 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 33 20 01 00 35 04 06 00 19 0D FC EC 77 3D 00 00 A3 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 03 02 [11:14:01]Write to MH i2c: E2 08 00 0B 16 80 0D 03 02 00 00 00 00 9C [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 0B 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 0B 00 0B 16 00 59 E4 92 87 50 8A 32 BD 90 00 BC [11:14:01]RAPDU: 59 E4 92 87 50 8A 32 BD 90 00 [11:14:01]wFMCommunicate OK [11:14:01]SAM_PROTO_SignData done [11:14:01]FM_MakeSignedData done [11:14:01]CreateOFDProtocolMessage [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 11 00 00 [11:14:01]Write to MH i2c: E2 08 00 0C 16 80 11 00 00 00 00 00 00 9C [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 17 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 17 00 0C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E9 [11:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:01]wFMCommunicate OK [11:14:01]CreateOFDProtocolMessage done [11:14:01]OFDSenderStorePacket 73779 [11:14:01]StoreOFDPacket docnum=73779 [11:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 71 C6 1B 01 94 31 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 20 01 00 35 04 06 00 19 0D FC EC 77 3D 59 E4 92 87 50 8A 32 BD [11:14:01]CheckFolder [11:14:01]dirname=/storage/ofd_packets [11:14:01]CheckFolder done [11:14:01]ProducePacketName [11:14:01]name=ofd_packets/00073779 [11:14:01]NVStorageSaveData ofd_packets/00073779 [11:14:01]File name is /storage/ofd_packets/00073779 [11:14:01]Write 321 bytes [11:14:01]NVStorageSaveData done [11:14:01]OFDSenderStorePacket done [11:14:01]KKMCreateOFDPacket done [11:14:01]NVStorageSaveData kkm_last_timestamp [11:14:01]File name is /storage/kkm_last_timestamp [11:14:01]Write 4 bytes [11:14:01]NVStorageSaveData done [11:14:01]ExternCall_PrintAddStr [11:14:01]wPrintStart [11:14:01]Write to MH i2c: 01 00 00 0D 16 23 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 0D 16 00 00 00 00 00 FF 0F 38 [11:14:01]RasterBufferAndPrint [11:14:01]line Счет N : (3)272764 [11:14:01]line ИНН: 02508201610067 [11:14:01]line Контрольно-Кассовый Чек [11:14:01]line ПРОДАЖА [11:14:01]line Товар: 47802995 [11:14:01]line Сигареты Winston XS Silver [11:14:01]line 1.000 * 140.00 [11:14:01]line = 140.00 [11:14:01]line НДС 12% НСП 1% [11:14:01]line > о реализуемом товаре [11:14:01]line ИТОГО: 140.00 [11:14:01]line НСП 1% : 1.24 [11:14:01]line НДС 12% : 14.87 [11:14:01]line Наличными: 0.00 [11:14:01]line Безнал.: 140.00 [11:14:01]line Место: АЗС № 133 "Партнер Нефть" [11:14:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:14:01]line СНО: Общий режим [11:14:01]line Чек 105 20.10.2024 11:14 [11:14:01]line Смена: 170 ФФД: 1.0 [11:14:01]line ЗНМ: 0300000020 [11:14:01]line РНМ: 0000000000161154 [11:14:01]line Версия ККМ: v1.0 [11:14:01]line Платежная система: Mbank [11:14:01]line ФМ: 0000000000963323 [11:14:01]line ФД: 73779 [11:14:01]line ФПД: 27547868624701 [11:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111401&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73779&fm=27547868624701&tin=02508201610067®Number=0000000000161154&sum=14000 [11:14:01]line 0 [11:14:01]written 0, free lines is 4095 [11:14:01]OFD Sender: Processing packet 73779 [packets to send 15, broken 14] [11:14:01]ProducePacketName [11:14:01]name=ofd_packets/00073779 [11:14:01]OFD Sender: To server: pG, [11:14:01]CommunicateWithHost lk.salyk.kg:30040 [11:14:02]ConnectInit lk.salyk.kg [11:14:02]Write to MH i2c: 01 00 00 35 16 4B [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 35 16 00 00 00 00 00 D2 0C 30 [11:14:02]RasterBufferAndPrint [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]Connected sock=10 [11:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 71 C6 1B 01 94 31 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F9 E5 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 20 01 00 35 04 06 00 19 0D FC EC 77 3D 59 E4 92 87 50 8A 32 BD [11:14:02]written 0, free lines is 3286 [11:14:02]MH_Cut [11:14:02]Write to MH i2c: D1 01 00 3C 16 01 24 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 3C 16 00 23 [11:14:02]Write to MH i2c: 01 00 00 3D 16 53 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 41 E5 47 00 D7 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 39 36 33 33 32 33 10 04 04 00 33 20 01 00 F4 03 04 00 DE 8E 14 67 B6 04 01 00 00 1C 87 36 1C 2B 17 C8 A1 [11:14:02]CommunicateWithHost err = 0 [11:14:02]CheckOFDResponse [11:14:02]1017 (14) - 77093643461234 [11:14:02]1041 (16) - 0000000000963323 [11:14:02]1040 (4) - 73779 [11:14:02]1012 (4) - 20.10.2024 05:02 [11:14:02]1206 (1) - 0 [11:14:02]OFD Sender: Remove packet 73779 [11:14:02]ProducePacketName [11:14:02]name=ofd_packets/00073779 [11:14:02]NVStorageDeleteData [11:14:02]OFD Sender: No OFD packet to send [11:14:02]*** Cut start [11:14:02]*** Partial cut [11:14:02]*** CUTSNS_PIN = 1 [11:14:02]*** CUTSNS_PIN = 0 [11:14:03]*** Brake cut motor [11:14:03]Read from MH i2c: 01 [11:14:03]MH_I2C_Read... [11:14:03]*** Stop cut motor [11:14:03]*** Cut end [11:14:03]Read from MH i2c: 01 07 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 3D 16 00 00 00 00 00 FF 0F 68 [11:14:03]process_action close_receipt done [11:14:03]requested_data is exist [11:14:03]produce_requested_data [11:14:03]requested_item fm.sn is exist - process it [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 11 00 00 [11:14:03]Write to MH i2c: E2 08 00 3E 16 80 11 00 00 00 00 00 00 CE [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 3E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1B [11:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:03]wFMCommunicate OK [11:14:03]requested_item fd.num is exist - process it [11:14:03]SAM_PROTO_GetFieldsCounters [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 00 00 [11:14:03]Write to MH i2c: E2 08 00 3F 16 80 13 00 00 00 00 00 00 D1 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 3F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 33 20 01 00 0E 04 04 00 AA 00 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 1E [11:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 33 20 01 00 0E 04 04 00 AA 00 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 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetFieldsCounters done [11:14:03]requested_item shift.num is exist - process it [11:14:03]requested_item shift.opened is exist - process it [11:14:03]req_shift_opened [11:14:03]FM_GetShiftState [11:14:03]SAM_PROTO_GetShiftState [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 01 00 [11:14:03]Write to MH i2c: E2 08 00 40 16 80 13 01 00 00 00 00 00 D3 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 40 16 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 18 [11:14:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetShiftState done [11:14:03]FM_GetShiftState done [11:14:03]req_shift_opened done [11:14:03]requested_item shift.open_date is exist - process it [11:14:03]req_shift_open_date [11:14:03]req_shift_open_date done [11:14:03]produce_requested_data done [11:14:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73779,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:14:03]process_action_free close_receipt [11:14:03]json_value_free [11:14:03]json_value_free done [11:14:03]process_json_proto returns [11:14:03]Send response to host [11:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73779,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:14:03]free response buf [11:14:03]execute_script done [11:14:03]execute_script returns [11:14:03]free content buf [11:14:03]Sock 8.Close socket [11:14:03]Sock 8.Thread stoped [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:08]accept exits with 9 [11:16:08]New connection [11:16:08]New thread 3067575652 created [11:16:08]Thread 3067432292 joined [11:16:08]Waiting for new connection... [11:16:08] Sock 9.Parse request [11:16:08]Sock 9.Check first char [11:16:08]Sock 9.First char is OK [11:16:08]request: POST /json_proto HTTP/1.0 [11:16:08]Method: POST [11:16:08]URL: /json_proto [11:16:08]Method is POST - this is cgi request [11:16:08]url: /json_proto [11:16:08]query_string will be loaded in cgi processing [11:16:08]execute_cgi json_proto POST (null) [11:16:08]execute_cgi path=json_proto method=POST [11:16:08]POST find Content-Length [11:16:08]Host: 172.17.44.196:8080 [11:16:08]Content-Length: 678 [11:16:08]Content-Type: application/json [11:16:08] [11:16:08]POST finish read [11:16:08]Found Content-Length = 678 [11:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962862", "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" : 7.480, "sum" : 500.41, "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" ] } } [11:16:08]execute_script... [11:16: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 : (1)1962862", "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" : 7.480, "sum" : 500.41, "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" ] } } [11:16:08]POST & json_proto [11:16:08]process_json_proto [11:16:08]json parsed OK: [11:16:08]protocol is kg_v1.0 [11:16:08]action value=close_receipt [11:16:08]process_action close_receipt [11:16:08]cmd_close_receipt [11:16:08]MH_GetDate [11:16:08]Write to MH i2c: F0 00 00 41 16 46 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 09 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 09 00 41 16 00 7A E6 14 67 E7 19 F8 65 87 [11:16:08]GetLastDocTimeStamp 1729422841 [11:16:08]current date 1729422970 [11:16:08]FM_GetShiftState [11:16:08]SAM_PROTO_GetShiftState [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 01 00 [11:16:08]Write to MH i2c: E2 08 00 42 16 80 13 01 00 00 00 00 00 D5 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 42 16 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1A [11:16:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetShiftState done [11:16:08]FM_GetShiftState done [11:16:08]opened in 1729384303 [11:16:08]opened+sec_in_day 1729470703 [11:16:08]quantity*price = 50041 [11:16:08]sum+1 = 50042 [11:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 106 20.10.2024 11:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73780 ФПД: 1768066141770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111610&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73780&fm=1768066141770&tin=02508201610067®Number=0000000000161154&sum=50000 [11:16:10]StoreToDocumentArchive [11:16:10]shift 170 fd 73780 [11:16:10]save to /storage/0170/doc_00073780 [11:16:10]save last doc name /storage/0170/doc_00073780 to /storage/kkm_last_doc_name [11:16:10]save OK [11:16:10]Clear old archive folders... [11:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:10]tlvbuf is B6F72470 [11:16:10]SAM_PROTO_ClearQueue [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 09 00 00 [11:16:10]Write to MH i2c: E2 08 00 4F 16 80 09 00 00 00 00 00 00 D7 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]SAM_PROTO_ClearQueue done [11:16:10]KKMCreateOFDPacket [11:16:10]OFDProtocolAddRootSTLVToBuf [11:16:10]FM_MakeSignedData [11:16:10]FM_MakeSignedData [11:16:10]SAM_PROTO_SignData [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 0D 01 02 [11:16:10]Write to MH i2c: E2 08 00 50 16 80 0D 01 02 00 00 00 00 DF [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]wFMCommunicate request_size=255 [11:16:10]MH_SAM_APDU [11:16:10]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 6A 00 00 00 F4 03 04 00 7A E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 20 01 00 35 04 06 00 01 [11:16:10]Write to MH i2c: E2 02 01 51 16 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 6A 00 00 00 F4 03 04 00 7A E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 20 01 00 35 04 06 00 01 00 00 A6 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]wFMCommunicate request_size=10 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 0D 02 02 05 9B A8 F4 4E 4A [11:16:10]Write to MH i2c: E2 0D 00 52 16 80 0D 02 02 05 00 9B A8 F4 4E 4A 00 00 BB [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 0D 03 02 [11:16:10]Write to MH i2c: E2 08 00 53 16 80 0D 03 02 00 00 00 00 E4 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0B 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0B 00 53 16 00 37 5C 95 B7 AD 55 1F BF 90 00 A4 [11:16:10]RAPDU: 37 5C 95 B7 AD 55 1F BF 90 00 [11:16:10]wFMCommunicate OK [11:16:10]SAM_PROTO_SignData done [11:16:10]FM_MakeSignedData done [11:16:10]CreateOFDProtocolMessage [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 11 00 00 [11:16:10]Write to MH i2c: E2 08 00 54 16 80 11 00 00 00 00 00 00 E4 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 54 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 31 [11:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:16:10]wFMCommunicate OK [11:16:10]CreateOFDProtocolMessage done [11:16:10]OFDSenderStorePacket 73780 [11:16:10]StoreOFDPacket docnum=73780 [11:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E 1D 07 01 F2 ED 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 6A 00 00 00 F4 03 04 00 7A E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 20 01 00 35 04 06 00 01 9B A8 F4 4E 4A 37 5C 95 B7 AD 55 1F BF [11:16:10]CheckFolder [11:16:10]dirname=/storage/ofd_packets [11:16:10]CheckFolder done [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00073780 [11:16:10]NVStorageSaveData ofd_packets/00073780 [11:16:10]File name is /storage/ofd_packets/00073780 [11:16:10]Write 301 bytes [11:16:10]NVStorageSaveData done [11:16:10]OFDSenderStorePacket done [11:16:10]KKMCreateOFDPacket done [11:16:10]NVStorageSaveData kkm_last_timestamp [11:16:10]File name is /storage/kkm_last_timestamp [11:16:10]Write 4 bytes [11:16:10]NVStorageSaveData done [11:16:10]ExternCall_PrintAddStr [11:16:10]wPrintStart [11:16:10]Write to MH i2c: 01 00 00 55 16 6B [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 55 16 00 00 00 00 00 FF 0F 80 [11:16:10]RasterBufferAndPrint [11:16:10]line Счет N : (1)1962862 [11:16:10]line ИНН: 02508201610067 [11:16:10]line Контрольно-Кассовый Чек [11:16:10]line ПРОДАЖА [11:16:10]line ТРК (МРК, ГНК) : 53 [11:16:10]line Товар: 2710124130 [11:16:10]line Аи-92-К-5 [11:16:10]line 7.480 * 66.90 [11:16:10]line = 500.41 [11:16:10]line НДС 12% НСП 1% [11:16:10]line > о реализуемом товаре [11:16:10]line ОКРУГЛЕНИЕ: -0.41 [11:16:10]line ИТОГО: 500.00 [11:16:10]line Внесено: 500.00 [11:16:10]line СДАЧА: 0.00 [11:16:10]line НСП 1% : 4.43 [11:16:10]line НДС 12% : 53.14 [11:16:10]line Наличными: 500.00 [11:16:10]line Безнал.: 0.00 [11:16:10]line Место: АЗС № 133 "Партнер Нефть" [11:16:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:16:10]line СНО: Общий режим [11:16:10]line Чек 106 20.10.2024 11:16 [11:16:10]line Смена: 170 ФФД: 1.0 [11:16:10]line ЗНМ: 0300000020 [11:16:10]line РНМ: 0000000000161154 [11:16:10]line Версия ККМ: v1.0 [11:16:10]line ФМ: 0000000000963323 [11:16:10]line ФД: 73780 [11:16:10]line ФПД: 1768066141770 [11:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111610&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73780&fm=1768066141770&tin=02508201610067®Number=0000000000161154&sum=50000 [11:16:10]OFD Sender: Processing packet 73780 [packets to send 15, broken 14] [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00073780 [11:16:10]OFD Sender: To server: pG, [11:16:10]CommunicateWithHost lk.salyk.kg:30040 [11:16:10]ConnectInit lk.salyk.kg [11:16:10]written 0, free lines is 4095 [11:16:10]Connected sock=10 [11:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E 1D 07 01 F2 ED 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 6A 00 00 00 F4 03 04 00 7A E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 20 01 00 35 04 06 00 01 9B A8 F4 4E 4A 37 5C 95 B7 AD 55 1F BF [11:16:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2F A3 47 00 44 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 39 36 33 33 32 33 10 04 04 00 34 20 01 00 F4 03 04 00 5F 8F 14 67 B6 04 01 00 00 23 F2 96 B0 64 95 90 1B [11:16:11]CommunicateWithHost err = 0 [11:16:11]CheckOFDResponse [11:16:11]1017 (14) - 77093643461234 [11:16:11]1041 (16) - 0000000000963323 [11:16:11]1040 (4) - 73780 [11:16:11]1012 (4) - 20.10.2024 05:04 [11:16:11]1206 (1) - 0 [11:16:11]OFD Sender: Remove packet 73780 [11:16:11]ProducePacketName [11:16:11]name=ofd_packets/00073780 [11:16:11]NVStorageDeleteData [11:16:11]Write to MH i2c: 01 00 00 7F 16 95 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: 01 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: 01 07 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: 01 07 00 7F 16 00 00 00 00 00 AB 0C 53 [11:16:11]RasterBufferAndPrint [11:16:11]line [11:16:11]line [11:16:11]line [11:16:11]line [11:16:11]line [11:16:11]written 0, free lines is 3248 [11:16:11]MH_Cut [11:16:11]Write to MH i2c: D1 01 00 86 16 01 6E [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: D1 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: D1 01 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: D1 01 00 86 16 00 6D [11:16:11]Write to MH i2c: 01 00 00 87 16 9D [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]OFD Sender: No OFD packet to send [11:16:12]*** Cut start [11:16:12]*** Partial cut [11:16:12]*** CUTSNS_PIN = 1 [11:16:12]*** CUTSNS_PIN = 0 [11:16:12]*** Brake cut motor [11:16:12]Read from MH i2c: 01 [11:16:12]MH_I2C_Read... [11:16:12]*** Stop cut motor [11:16:12]*** Cut end [11:16:12]Read from MH i2c: 01 07 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 87 16 00 00 00 00 00 FF 0F B2 [11:16:12]process_action close_receipt done [11:16:12]requested_data is exist [11:16:12]produce_requested_data [11:16:12]requested_item fm.sn is exist - process it [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 11 00 00 [11:16:12]Write to MH i2c: E2 08 00 88 16 80 11 00 00 00 00 00 00 18 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:12]Read from MH i2c: E2 17 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 17 00 88 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 65 [11:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:16:12]wFMCommunicate OK [11:16:12]requested_item fd.num is exist - process it [11:16:12]SAM_PROTO_GetFieldsCounters [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 13 00 00 [11:16:12]Write to MH i2c: E2 08 00 89 16 80 13 00 00 00 00 00 00 1B [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 62 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 62 00 89 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 34 20 01 00 0E 04 04 00 AA 00 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 6C [11:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 34 20 01 00 0E 04 04 00 AA 00 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 [11:16:13]wFMCommunicate OK [11:16:13]SAM_PROTO_GetFieldsCounters done [11:16:13]requested_item shift.num is exist - process it [11:16:13]requested_item shift.opened is exist - process it [11:16:13]req_shift_opened [11:16:13]FM_GetShiftState [11:16:13]SAM_PROTO_GetShiftState [11:16:13]wFMCommunicate request_size=4 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 13 01 00 [11:16:13]Write to MH i2c: E2 08 00 8A 16 80 13 01 00 00 00 00 00 1D [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 0E 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 0E 00 8A 16 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 62 [11:16:13]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:16:13]wFMCommunicate OK [11:16:13]SAM_PROTO_GetShiftState done [11:16:13]FM_GetShiftState done [11:16:13]req_shift_opened done [11:16:13]requested_item shift.open_date is exist - process it [11:16:13]req_shift_open_date [11:16:13]req_shift_open_date done [11:16:13]produce_requested_data done [11:16:13]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73780,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:16:13]process_action_free close_receipt [11:16:13]json_value_free [11:16:13]json_value_free done [11:16:13]process_json_proto returns [11:16:13]Send response to host [11:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73780,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:16:13]free response buf [11:16:13]execute_script done [11:16:13]execute_script returns [11:16:13]free content buf [11:16:13]Sock 9.Close socket [11:16:13]Sock 9.Thread stoped [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:42]accept exits with 8 [11:17:42]New connection [11:17:42]New thread 3067432292 created [11:17:42]Thread 3067575652 joined [11:17:42]Waiting for new connection... [11:17:42] Sock 8.Parse request [11:17:42]Sock 8.Check first char [11:17:42]Sock 8.First char is OK [11:17:42]request: POST /json_proto HTTP/1.0 [11:17:42]Method: POST [11:17:42]URL: /json_proto [11:17:42]Method is POST - this is cgi request [11:17:42]url: /json_proto [11:17:42]query_string will be loaded in cgi processing [11:17:42]execute_cgi json_proto POST (null) [11:17:42]execute_cgi path=json_proto method=POST [11:17:42]POST find Content-Length [11:17:42]Host: 172.17.44.196:8080 [11:17:42]Content-Length: 619 [11:17:42]Content-Type: application/json [11:17:42] [11:17:42]POST finish read [11:17:42]Found Content-Length = 619 [11:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272765", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [11:17:42]execute_script... [11:17: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)272765", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [11:17:42]POST & json_proto [11:17:42]process_json_proto [11:17:42]json parsed OK: [11:17:42]protocol is kg_v1.0 [11:17:42]action value=close_receipt [11:17:42]process_action close_receipt [11:17:42]cmd_close_receipt [11:17:42]MH_GetDate [11:17:42]Write to MH i2c: F0 00 00 8B 16 90 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: F0 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: F0 09 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: F0 09 00 8B 16 00 D7 E6 14 67 E7 19 F8 65 2E [11:17:42]GetLastDocTimeStamp 1729422970 [11:17:42]current date 1729423063 [11:17:42]FM_GetShiftState [11:17:42]SAM_PROTO_GetShiftState [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 13 01 00 [11:17:42]Write to MH i2c: E2 08 00 8C 16 80 13 01 00 00 00 00 00 1F [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 8C 16 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 64 [11:17:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:17:42]wFMCommunicate OK [11:17:42]SAM_PROTO_GetShiftState done [11:17:42]FM_GetShiftState done [11:17:42]opened in 1729384303 [11:17:42]opened+sec_in_day 1729470703 [11:17:42]quantity*price = 14000 [11:17:42]sum+1 = 14001 [11:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 107 20.10.2024 11:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73781 ФПД: 104215736306836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111743&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73781&fm=104215736306836&tin=02508201610067®Number=0000000000161154&sum=14000 0 [11:17:43]StoreToDocumentArchive [11:17:43]shift 170 fd 73781 [11:17:43]save to /storage/0170/doc_00073781 [11:17:43]save last doc name /storage/0170/doc_00073781 to /storage/kkm_last_doc_name [11:17:43]save OK [11:17:43]Clear old archive folders... [11:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:17:43]tlvbuf is 00329880 [11:17:43]SAM_PROTO_ClearQueue [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 09 00 00 [11:17:43]Write to MH i2c: E2 08 00 99 16 80 09 00 00 00 00 00 00 21 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_ClearQueue done [11:17:43]KKMCreateOFDPacket [11:17:43]OFDProtocolAddRootSTLVToBuf [11:17:43]FM_MakeSignedData [11:17:43]FM_MakeSignedData [11:17:43]SAM_PROTO_SignData [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 0D 01 02 [11:17:43]Write to MH i2c: E2 08 00 9A 16 80 0D 01 02 00 00 00 00 29 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]wFMCommunicate request_size=255 [11:17:43]MH_SAM_APDU [11:17:43]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 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 6B 00 00 00 F4 03 04 00 D7 E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:17:43]Write to MH i2c: E2 02 01 9B 16 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 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 6B 00 00 00 F4 03 04 00 D7 E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 F3 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]wFMCommunicate request_size=30 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 35 20 01 00 35 04 06 00 5E C8 9D F1 4C 94 [11:17:43]Write to MH i2c: E2 21 00 9C 16 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 35 20 01 00 35 04 06 00 5E C8 9D F1 4C 94 00 00 09 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 9C 16 00 90 00 26 [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 0D 03 02 [11:17:43]Write to MH i2c: E2 08 00 9D 16 80 0D 03 02 00 00 00 00 2E [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0B 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0B 00 9D 16 00 6F EC 78 E5 AD E2 52 A0 90 00 68 [11:17:43]RAPDU: 6F EC 78 E5 AD E2 52 A0 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_SignData done [11:17:43]FM_MakeSignedData done [11:17:43]CreateOFDProtocolMessage [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 11 00 00 [11:17:43]Write to MH i2c: E2 08 00 9E 16 80 11 00 00 00 00 00 00 2E [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 17 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 17 00 9E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7B [11:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:17:43]wFMCommunicate OK [11:17:43]CreateOFDProtocolMessage done [11:17:43]OFDSenderStorePacket 73781 [11:17:43]StoreOFDPacket docnum=73781 [11:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 48 06 1B 01 F7 61 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 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 6B 00 00 00 F4 03 04 00 D7 E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 20 01 00 35 04 06 00 5E C8 9D F1 4C 94 6F EC 78 E5 AD E2 52 A0 [11:17:43]CheckFolder [11:17:43]dirname=/storage/ofd_packets [11:17:43]CheckFolder done [11:17:43]ProducePacketName [11:17:43]name=ofd_packets/00073781 [11:17:43]NVStorageSaveData ofd_packets/00073781 [11:17:43]File name is /storage/ofd_packets/00073781 [11:17:43]Write 321 bytes [11:17:43]NVStorageSaveData done [11:17:43]OFDSenderStorePacket done [11:17:43]KKMCreateOFDPacket done [11:17:43]NVStorageSaveData kkm_last_timestamp [11:17:43]File name is /storage/kkm_last_timestamp [11:17:43]Write 4 bytes [11:17:43]NVStorageSaveData done [11:17:43]ExternCall_PrintAddStr [11:17:43]wPrintStart [11:17:43]Write to MH i2c: 01 00 00 9F 16 B5 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 FF 0F CA [11:17:43]RasterBufferAndPrint [11:17:43]line Счет N : (3)272765 [11:17:43]line ИНН: 02508201610067 [11:17:43]line Контрольно-Кассовый Чек [11:17:43]line ПРОДАЖА [11:17:43]line Товар: 47802995 [11:17:43]line Сигареты Winston XS Silver [11:17:43]line 1.000 * 140.00 [11:17:43]line = 140.00 [11:17:43]line НДС 12% НСП 1% [11:17:43]line > о реализуемом товаре [11:17:43]line ИТОГО: 140.00 [11:17:43]line НСП 1% : 1.24 [11:17:43]line НДС 12% : 14.87 [11:17:43]line Наличными: 140.00 [11:17:43]line Безнал.: 0.00 [11:17:43]line Место: АЗС № 133 "Партнер Нефть" [11:17:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:17:43]line СНО: Общий режим [11:17:43]line Чек 107 20.10.2024 11:17 [11:17:43]line Смена: 170 ФФД: 1.0 [11:17:43]line ЗНМ: 0300000020 [11:17:43]line РНМ: 0000000000161154 [11:17:43]line Версия ККМ: v1.0 [11:17:43]line ФМ: 0000000000963323 [11:17:43]line ФД: 73781 [11:17:43]line ФПД: 104215736306836 [11:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111743&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73781&fm=104215736306836&tin=02508201610067®Number=0000000000161154&sum=14000 [11:17:44]line 0 [11:17:44]OFD Sender: Processing packet 73781 [packets to send 15, broken 14] [11:17:44]ProducePacketName [11:17:44]name=ofd_packets/00073781 [11:17:44]OFD Sender: To server: pG, [11:17:44]CommunicateWithHost lk.salyk.kg:30040 [11:17:44]ConnectInit lk.salyk.kg [11:17:44]written 0, free lines is 4095 [11:17:44]Connected sock=10 [11:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 48 06 1B 01 F7 61 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 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 6B 00 00 00 F4 03 04 00 D7 E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 20 01 00 35 04 06 00 5E C8 9D F1 4C 94 6F EC 78 E5 AD E2 52 A0 [11:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 26 B7 47 00 37 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 39 36 33 33 32 33 10 04 04 00 35 20 01 00 F4 03 04 00 BC 8F 14 67 B6 04 01 00 00 57 D1 C6 72 E7 B3 AB A8 [11:17:44]CommunicateWithHost err = 0 [11:17:44]CheckOFDResponse [11:17:44]1017 (14) - 77093643461234 [11:17:44]1041 (16) - 0000000000963323 [11:17:44]1040 (4) - 73781 [11:17:44]1012 (4) - 20.10.2024 05:06 [11:17:44]1206 (1) - 0 [11:17:44]OFD Sender: Remove packet 73781 [11:17:44]ProducePacketName [11:17:44]name=ofd_packets/00073781 [11:17:44]NVStorageDeleteData [11:17:44]Write to MH i2c: 01 00 00 C6 16 DC [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: 01 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: 01 07 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 DC 0C CB [11:17:44]RasterBufferAndPrint [11:17:44]line [11:17:44]line [11:17:44]line [11:17:44]line [11:17:44]line [11:17:44]written 0, free lines is 3295 [11:17:44]MH_Cut [11:17:44]Write to MH i2c: D1 01 00 CD 16 01 B5 [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: D1 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: D1 01 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: D1 01 00 CD 16 00 B4 [11:17:44]Write to MH i2c: 01 00 00 CE 16 E4 [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]OFD Sender: No OFD packet to send [11:17:45]*** Cut start [11:17:45]*** Partial cut [11:17:45]*** CUTSNS_PIN = 1 [11:17:45]*** CUTSNS_PIN = 0 [11:17:45]*** Brake cut motor [11:17:45]Read from MH i2c: 01 [11:17:45]MH_I2C_Read... [11:17:45]*** Stop cut motor [11:17:45]*** Cut end [11:17:45]Read from MH i2c: 01 07 00 [11:17:45]MH_I2C_Read... [11:17:45]Read from MH i2c: 01 07 00 CE 16 00 00 00 00 00 FF 0F F9 [11:17:45]process_action close_receipt done [11:17:45]requested_data is exist [11:17:45]produce_requested_data [11:17:45]requested_item fm.sn is exist - process it [11:17:45]wFMCommunicate request_size=4 [11:17:45]MH_SAM_APDU [11:17:45]CAPDU: 80 11 00 00 [11:17:45]Write to MH i2c: E2 08 00 CF 16 80 11 00 00 00 00 00 00 5F [11:17:45]Write i2c OK [11:17:45]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 17 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 17 00 CF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [11:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:17:46]wFMCommunicate OK [11:17:46]requested_item fd.num is exist - process it [11:17:46]SAM_PROTO_GetFieldsCounters [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 13 00 00 [11:17:46]Write to MH i2c: E2 08 00 D0 16 80 13 00 00 00 00 00 00 62 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 62 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 62 00 D0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 35 20 01 00 0E 04 04 00 AA 00 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 B7 [11:17:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 35 20 01 00 0E 04 04 00 AA 00 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 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_GetFieldsCounters done [11:17:46]requested_item shift.num is exist - process it [11:17:46]requested_item shift.opened is exist - process it [11:17:46]req_shift_opened [11:17:46]FM_GetShiftState [11:17:46]SAM_PROTO_GetShiftState [11:17:46]wFMCommunicate request_size=4 [11:17:46]MH_SAM_APDU [11:17:46]CAPDU: 80 13 01 00 [11:17:46]Write to MH i2c: E2 08 00 D1 16 80 13 01 00 00 00 00 00 64 [11:17:46]Write i2c OK [11:17:46]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0E 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0E 00 D1 16 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A9 [11:17:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_GetShiftState done [11:17:46]FM_GetShiftState done [11:17:46]req_shift_opened done [11:17:46]requested_item shift.open_date is exist - process it [11:17:46]req_shift_open_date [11:17:46]req_shift_open_date done [11:17:46]produce_requested_data done [11:17:46]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73781,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:17:46]process_action_free close_receipt [11:17:46]json_value_free [11:17:46]json_value_free done [11:17:46]process_json_proto returns [11:17:46]Send response to host [11:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73781,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:17:46]free response buf [11:17:46]execute_script done [11:17:46]execute_script returns [11:17:46]free content buf [11:17:46]Sock 8.Close socket [11:17:46]Sock 8.Thread stoped [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]accept exits with 9 [11:18:04]New connection [11:18:04]New thread 3067575652 created [11:18:04]Thread 3067432292 joined [11:18:04]Waiting for new connection... [11:18:04] Sock 9.Parse request [11:18:04]Sock 9.Check first char [11:18:04]Sock 9.First char is OK [11:18:04]request: POST /json_proto HTTP/1.0 [11:18:04]Method: POST [11:18:04]URL: /json_proto [11:18:04]Method is POST - this is cgi request [11:18:04]url: /json_proto [11:18:04]query_string will be loaded in cgi processing [11:18:04]execute_cgi json_proto POST (null) [11:18:04]execute_cgi path=json_proto method=POST [11:18:04]POST find Content-Length [11:18:04]Host: 172.17.44.196:8080 [11:18:04]Content-Length: 680 [11:18:04]Content-Type: application/json [11:18:04] [11:18:04]POST finish read [11:18:04]Found Content-Length = 680 [11:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [11:18:04]execute_script... [11:18: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 : (1)1962865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [11:18:04]POST & json_proto [11:18:04]process_json_proto [11:18:04]json parsed OK: [11:18:04]protocol is kg_v1.0 [11:18:04]action value=close_receipt [11:18:04]process_action close_receipt [11:18:04]cmd_close_receipt [11:18:04]MH_GetDate [11:18:04]Write to MH i2c: F0 00 00 D2 16 D7 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 D2 16 00 ED E6 14 67 E7 19 F8 65 8B [11:18:04]GetLastDocTimeStamp 1729423063 [11:18:04]current date 1729423085 [11:18:04]FM_GetShiftState [11:18:04]SAM_PROTO_GetShiftState [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 13 01 00 [11:18:04]Write to MH i2c: E2 08 00 D3 16 80 13 01 00 00 00 00 00 66 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 D3 16 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AB [11:18:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_GetShiftState done [11:18:04]FM_GetShiftState done [11:18:04]opened in 1729384303 [11:18:04]opened+sec_in_day 1729470703 [11:18:04]quantity*price = 150037 [11:18:04]sum+1 = 150039 [11:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 108 20.10.2024 11:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73782 ФПД: 42458590929496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111805&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73782&fm=42458590929496&tin=02508201610067®Number=0000000000161154&sum=150000 [11:18:05]StoreToDocumentArchive [11:18:05]shift 170 fd 73782 [11:18:05]save to /storage/0170/doc_00073782 [11:18:05]save last doc name /storage/0170/doc_00073782 to /storage/kkm_last_doc_name [11:18:05]save OK [11:18:05]Clear old archive folders... [11:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:18:05]tlvbuf is 00373DF0 [11:18:05]SAM_PROTO_ClearQueue [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 09 00 00 [11:18:05]Write to MH i2c: E2 08 00 E0 16 80 09 00 00 00 00 00 00 68 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 E0 16 00 90 00 6A [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]SAM_PROTO_ClearQueue done [11:18:05]KKMCreateOFDPacket [11:18:05]OFDProtocolAddRootSTLVToBuf [11:18:05]FM_MakeSignedData [11:18:05]FM_MakeSignedData [11:18:05]SAM_PROTO_SignData [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 01 02 [11:18:05]Write to MH i2c: E2 08 00 E1 16 80 0D 01 02 00 00 00 00 70 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=255 [11:18:05]MH_SAM_APDU [11:18:05]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 6C 00 00 00 F4 03 04 00 ED E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 20 01 00 35 04 06 00 26 9D A9 3A [11:18:05]Write to MH i2c: E2 02 01 E2 16 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 6C 00 00 00 F4 03 04 00 ED E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 20 01 00 35 04 06 00 26 9D A9 3A 00 00 C0 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=7 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 02 02 02 E2 58 [11:18:05]Write to MH i2c: E2 0A 00 E3 16 80 0D 02 02 02 00 E2 58 00 00 B1 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 03 02 [11:18:05]Write to MH i2c: E2 08 00 E4 16 80 0D 03 02 00 00 00 00 75 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 0B 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 0B 00 E4 16 00 DA 1E 65 56 3B A8 96 8D 90 00 2F [11:18:05]RAPDU: DA 1E 65 56 3B A8 96 8D 90 00 [11:18:05]wFMCommunicate OK [11:18:05]SAM_PROTO_SignData done [11:18:05]FM_MakeSignedData done [11:18:05]CreateOFDProtocolMessage [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 11 00 00 [11:18:05]Write to MH i2c: E2 08 00 E5 16 80 11 00 00 00 00 00 00 75 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 E5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [11:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:18:06]wFMCommunicate OK [11:18:06]CreateOFDProtocolMessage done [11:18:06]OFDSenderStorePacket 73782 [11:18:06]StoreOFDPacket docnum=73782 [11:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4B 98 04 01 00 F2 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 6C 00 00 00 F4 03 04 00 ED E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 20 01 00 35 04 06 00 26 9D A9 3A E2 58 DA 1E 65 56 3B A8 96 8D [11:18:06]CheckFolder [11:18:06]dirname=/storage/ofd_packets [11:18:06]CheckFolder done [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00073782 [11:18:06]NVStorageSaveData ofd_packets/00073782 [11:18:06]File name is /storage/ofd_packets/00073782 [11:18:06]Write 298 bytes [11:18:06]NVStorageSaveData done [11:18:06]OFDSenderStorePacket done [11:18:06]KKMCreateOFDPacket done [11:18:06]NVStorageSaveData kkm_last_timestamp [11:18:06]File name is /storage/kkm_last_timestamp [11:18:06]Write 4 bytes [11:18:06]NVStorageSaveData done [11:18:06]ExternCall_PrintAddStr [11:18:06]wPrintStart [11:18:06]Write to MH i2c: 01 00 00 E6 16 FC [11:18:06]OFD Sender: Processing packet 73782 [packets to send 15, broken 14] [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00073782 [11:18:06]OFD Sender: To server: pG, [11:18:06]CommunicateWithHost lk.salyk.kg:30040 [11:18:06]ConnectInit lk.salyk.kg [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 E6 16 00 00 00 00 00 FF 0F 11 [11:18:06]RasterBufferAndPrint [11:18:06]line Счет N : (1)1962865 [11:18:06]line ИНН: 02508201610067 [11:18:06]line Контрольно-Кассовый Чек [11:18:06]line ПРОДАЖА [11:18:06]line ТРК (МРК, ГНК) : 11 [11:18:06]line Товар: 2710194210 [11:18:06]line ДТ-К-5 [11:18:06]line 19.690 * 76.20 [11:18:06]line = 1500.38 [11:18:06]line НДС 12% НСП 1% [11:18:06]line > о реализуемом товаре [11:18:06]line ОКРУГЛЕНИЕ: -0.38 [11:18:06]line ИТОГО: 1500.00 [11:18:06]line Внесено: 1500.00 [11:18:06]line СДАЧА: 0.00 [11:18:06]line НСП 1% : 13.28 [11:18:06]line НДС 12% : 159.33 [11:18:06]line Наличными: 1500.00 [11:18:06]line Безнал.: 0.00 [11:18:06]line Место: АЗС № 133 "Партнер Нефть" [11:18:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:18:06]line СНО: Общий режим [11:18:06]line Чек 108 20.10.2024 11:18 [11:18:06]line Смена: 170 ФФД: 1.0 [11:18:06]line ЗНМ: 0300000020 [11:18:06]line РНМ: 0000000000161154 [11:18:06]line Версия ККМ: v1.0 [11:18:06]line ФМ: 0000000000963323 [11:18:06]line ФД: 73782 [11:18:06]line ФПД: 42458590929496 [11:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111805&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73782&fm=42458590929496&tin=02508201610067®Number=0000000000161154&sum=150000 [11:18:06]Connected sock=10 [11:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4B 98 04 01 00 F2 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 6C 00 00 00 F4 03 04 00 ED E6 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 20 01 00 35 04 06 00 26 9D A9 3A E2 58 DA 1E 65 56 3B A8 96 8D [11:18:06]written 0, free lines is 4095 [11:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C8 93 47 00 97 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 39 36 33 33 32 33 10 04 04 00 36 20 01 00 F4 03 04 00 D2 8F 14 67 B6 04 01 00 00 43 4E 33 87 83 22 A1 4F [11:18:06]CommunicateWithHost err = 0 [11:18:06]CheckOFDResponse [11:18:06]1017 (14) - 77093643461234 [11:18:06]1041 (16) - 0000000000963323 [11:18:06]1040 (4) - 73782 [11:18:06]1012 (4) - 20.10.2024 05:06 [11:18:06]1206 (1) - 0 [11:18:06]OFD Sender: Remove packet 73782 [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00073782 [11:18:06]NVStorageDeleteData [11:18:06]Write to MH i2c: 01 00 00 10 17 27 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 10 17 00 00 00 00 00 B6 0C F0 [11:18:06]RasterBufferAndPrint [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]written 0, free lines is 3258 [11:18:06]MH_Cut [11:18:06]Write to MH i2c: D1 01 00 17 17 01 00 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 17 17 00 FF [11:18:06]Write to MH i2c: 01 00 00 18 17 2F [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:07]OFD Sender: No OFD packet to send [11:18:07]*** Cut start [11:18:07]*** Partial cut [11:18:07]*** CUTSNS_PIN = 1 [11:18:07]*** CUTSNS_PIN = 0 [11:18:07]*** Brake cut motor [11:18:08]Read from MH i2c: 01 [11:18:08]MH_I2C_Read... [11:18:08]*** Stop cut motor [11:18:08]*** Cut end [11:18:08]Read from MH i2c: 01 07 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: 01 07 00 18 17 00 00 00 00 00 FF 0F 44 [11:18:08]process_action close_receipt done [11:18:08]requested_data is exist [11:18:08]produce_requested_data [11:18:08]requested_item fm.sn is exist - process it [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 11 00 00 [11:18:08]Write to MH i2c: E2 08 00 19 17 80 11 00 00 00 00 00 00 AA [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 17 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 17 00 19 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [11:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:18:08]wFMCommunicate OK [11:18:08]requested_item fd.num is exist - process it [11:18:08]SAM_PROTO_GetFieldsCounters [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 13 00 00 [11:18:08]Write to MH i2c: E2 08 00 1A 17 80 13 00 00 00 00 00 00 AD [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 62 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 62 00 1A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 20 01 00 0E 04 04 00 AA 00 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 06 [11:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 20 01 00 0E 04 04 00 AA 00 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 [11:18:08]wFMCommunicate OK [11:18:08]SAM_PROTO_GetFieldsCounters done [11:18:08]requested_item shift.num is exist - process it [11:18:08]requested_item shift.opened is exist - process it [11:18:08]req_shift_opened [11:18:08]FM_GetShiftState [11:18:08]SAM_PROTO_GetShiftState [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 13 01 00 [11:18:08]Write to MH i2c: E2 08 00 1B 17 80 13 01 00 00 00 00 00 AF [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 0E 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 0E 00 1B 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F4 [11:18:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:18:08]wFMCommunicate OK [11:18:08]SAM_PROTO_GetShiftState done [11:18:08]FM_GetShiftState done [11:18:08]req_shift_opened done [11:18:08]requested_item shift.open_date is exist - process it [11:18:08]req_shift_open_date [11:18:08]req_shift_open_date done [11:18:08]produce_requested_data done [11:18:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73782,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:18:08]process_action_free close_receipt [11:18:08]json_value_free [11:18:08]json_value_free done [11:18:08]process_json_proto returns [11:18:08]Send response to host [11:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73782,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:18:08]free response buf [11:18:08]execute_script done [11:18:08]execute_script returns [11:18:08]free content buf [11:18:08]Sock 9.Close socket [11:18:08]Sock 9.Thread stoped [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:30]accept exits with 8 [11:18:30]New connection [11:18:30]New thread 3067432292 created [11:18:30]Thread 3067575652 joined [11:18:30]Waiting for new connection... [11:18:30] Sock 8.Parse request [11:18:30]Sock 8.Check first char [11:18:30]Sock 8.First char is OK [11:18:30]request: POST /json_proto HTTP/1.0 [11:18:30]Method: POST [11:18:30]URL: /json_proto [11:18:30]Method is POST - this is cgi request [11:18:30]url: /json_proto [11:18:30]query_string will be loaded in cgi processing [11:18:30]execute_cgi json_proto POST (null) [11:18:30]execute_cgi path=json_proto method=POST [11:18:30]POST find Content-Length [11:18:30]Host: 172.17.44.196:8080 [11:18:30]Content-Length: 683 [11:18:30]Content-Type: application/json [11:18:30] [11:18:30]POST finish read [11:18:30]Found Content-Length = 683 [11:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [11:18:30]execute_script... [11:18: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 : (1)1962866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [11:18:30]POST & json_proto [11:18:30]process_json_proto [11:18:30]json parsed OK: [11:18:30]protocol is kg_v1.0 [11:18:30]action value=close_receipt [11:18:30]process_action close_receipt [11:18:30]cmd_close_receipt [11:18:30]MH_GetDate [11:18:30]Write to MH i2c: F0 00 00 1C 17 22 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: F0 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: F0 09 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: F0 09 00 1C 17 00 08 E7 14 67 E7 19 F8 65 F2 [11:18:30]GetLastDocTimeStamp 1729423085 [11:18:30]current date 1729423112 [11:18:30]FM_GetShiftState [11:18:30]SAM_PROTO_GetShiftState [11:18:30]wFMCommunicate request_size=4 [11:18:30]MH_SAM_APDU [11:18:30]CAPDU: 80 13 01 00 [11:18:30]Write to MH i2c: E2 08 00 1D 17 80 13 01 00 00 00 00 00 B1 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 0E 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 0E 00 1D 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F6 [11:18:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:18:30]wFMCommunicate OK [11:18:30]SAM_PROTO_GetShiftState done [11:18:30]FM_GetShiftState done [11:18:30]opened in 1729384303 [11:18:30]opened+sec_in_day 1729470703 [11:18:30]quantity*price = 200043 [11:18:30]sum+1 = 200044 [11:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 109 20.10.2024 11:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73783 ФПД: 169231075407664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111832&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73783&fm=169231075407664&tin=02508201610067®Number=0000000000161154&sum=200000 [11:18:31]StoreToDocumentArchive [11:18:31]shift 170 fd 73783 [11:18:31]save to /storage/0170/doc_00073783 [11:18:31]save last doc name /storage/0170/doc_00073783 to /storage/kkm_last_doc_name [11:18:31]save OK [11:18:31]Clear old archive folders... [11:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:31]tlvbuf is B6F724E0 [11:18:31]SAM_PROTO_ClearQueue [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 09 00 00 [11:18:31]Write to MH i2c: E2 08 00 2A 17 80 09 00 00 00 00 00 00 B3 [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [11:18:32]RAPDU: 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_ClearQueue done [11:18:32]KKMCreateOFDPacket [11:18:32]OFDProtocolAddRootSTLVToBuf [11:18:32]FM_MakeSignedData [11:18:32]FM_MakeSignedData [11:18:32]SAM_PROTO_SignData [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 0D 01 02 [11:18:32]Write to MH i2c: E2 08 00 2B 17 80 0D 01 02 00 00 00 00 BB [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [11:18:32]RAPDU: 90 00 [11:18:32]wFMCommunicate OK [11:18:32]wFMCommunicate request_size=255 [11:18:32]MH_SAM_APDU [11:18:32]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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 6D 00 00 00 F4 03 04 00 08 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 20 01 00 35 04 06 00 99 [11:18:32]Write to MH i2c: E2 02 01 2C 17 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 6D 00 00 00 F4 03 04 00 08 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 20 01 00 35 04 06 00 99 00 00 57 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]OFD Sender: No OFD packet to send [11:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 2C 17 00 90 00 B7 [11:18:32]RAPDU: 90 00 [11:18:32]wFMCommunicate OK [11:18:32]wFMCommunicate request_size=10 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 0D 02 02 05 EA 2E 22 77 30 [11:18:32]Write to MH i2c: E2 0D 00 2D 17 80 0D 02 02 05 00 EA 2E 22 77 30 00 00 A9 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 03 00 2D 17 00 90 00 B8 [11:18:32]RAPDU: 90 00 [11:18:32]wFMCommunicate OK [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 0D 03 02 [11:18:32]Write to MH i2c: E2 08 00 2E 17 80 0D 03 02 00 00 00 00 C0 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0B 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0B 00 2E 17 00 30 1D 94 9F 82 81 33 B0 90 00 27 [11:18:32]RAPDU: 30 1D 94 9F 82 81 33 B0 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_SignData done [11:18:32]FM_MakeSignedData done [11:18:32]CreateOFDProtocolMessage [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 11 00 00 [11:18:32]Write to MH i2c: E2 08 00 2F 17 80 11 00 00 00 00 00 00 C0 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 17 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 17 00 2F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0D [11:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:18:32]wFMCommunicate OK [11:18:32]CreateOFDProtocolMessage done [11:18:32]OFDSenderStorePacket 73783 [11:18:32]StoreOFDPacket docnum=73783 [11:18:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C5 68 07 01 A8 9B 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 6D 00 00 00 F4 03 04 00 08 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 20 01 00 35 04 06 00 99 EA 2E 22 77 30 30 1D 94 9F 82 81 33 B0 [11:18:32]CheckFolder [11:18:32]dirname=/storage/ofd_packets [11:18:32]CheckFolder done [11:18:32]ProducePacketName [11:18:32]name=ofd_packets/00073783 [11:18:32]NVStorageSaveData ofd_packets/00073783 [11:18:32]File name is /storage/ofd_packets/00073783 [11:18:32]Write 301 bytes [11:18:32]NVStorageSaveData done [11:18:32]OFDSenderStorePacket done [11:18:32]KKMCreateOFDPacket done [11:18:32]NVStorageSaveData kkm_last_timestamp [11:18:32]File name is /storage/kkm_last_timestamp [11:18:32]Write 4 bytes [11:18:32]NVStorageSaveData done [11:18:32]ExternCall_PrintAddStr [11:18:32]wPrintStart [11:18:32]Write to MH i2c: 01 00 00 30 17 47 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: 01 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: 01 07 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 FF 0F 5C [11:18:32]RasterBufferAndPrint [11:18:32]line Счет N : (1)1962866 [11:18:32]line ИНН: 02508201610067 [11:18:32]line Контрольно-Кассовый Чек [11:18:32]line ПРОДАЖА [11:18:32]line ТРК (МРК, ГНК) : 34 [11:18:32]line Товар: 2710124500 [11:18:32]line Аи-95-К-5 [11:18:32]line 26.960 * 74.20 [11:18:32]line = 2000.43 [11:18:32]line НДС 12% НСП 1% [11:18:32]line > о реализуемом товаре [11:18:32]line ОКРУГЛЕНИЕ: -0.43 [11:18:32]line ИТОГО: 2000.00 [11:18:32]line Внесено: 2000.00 [11:18:32]line СДАЧА: 0.00 [11:18:32]line НСП 1% : 17.70 [11:18:32]line НДС 12% : 212.43 [11:18:32]line Наличными: 2000.00 [11:18:32]line Безнал.: 0.00 [11:18:32]line Место: АЗС № 133 "Партнер Нефть" [11:18:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:18:32]line СНО: Общий режим [11:18:32]line Чек 109 20.10.2024 11:18 [11:18:32]line Смена: 170 ФФД: 1.0 [11:18:32]line ЗНМ: 0300000020 [11:18:32]line РНМ: 0000000000161154 [11:18:32]line Версия ККМ: v1.0 [11:18:32]line ФМ: 0000000000963323 [11:18:32]line ФД: 73783 [11:18:32]line ФПД: 169231075407664 [11:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111832&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73783&fm=169231075407664&tin=02508201610067®Number=0000000000161154&sum=200000 [11:18:32]OFD Sender: Processing packet 73783 [packets to send 15, broken 14] [11:18:32]ProducePacketName [11:18:32]name=ofd_packets/00073783 [11:18:32]OFD Sender: To server: pG, [11:18:32]CommunicateWithHost lk.salyk.kg:30040 [11:18:32]ConnectInit lk.salyk.kg [11:18:32]written 0, free lines is 4095 [11:18:32]Connected sock=10 [11:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C5 68 07 01 A8 9B 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 FB 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 6D 00 00 00 F4 03 04 00 08 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 20 01 00 35 04 06 00 99 EA 2E 22 77 30 30 1D 94 9F 82 81 33 B0 [11:18:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E2 D0 47 00 C5 B4 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 39 36 33 33 32 33 10 04 04 00 37 20 01 00 F4 03 04 00 ED 8F 14 67 B6 04 01 00 00 1A 8B 1D 6C B4 00 71 FD [11:18:33]CommunicateWithHost err = 0 [11:18:33]CheckOFDResponse [11:18:33]1017 (14) - 77093643461234 [11:18:33]1041 (16) - 0000000000963323 [11:18:33]1040 (4) - 73783 [11:18:33]1012 (4) - 20.10.2024 05:06 [11:18:33]1206 (1) - 0 [11:18:33]OFD Sender: Remove packet 73783 [11:18:33]ProducePacketName [11:18:33]name=ofd_packets/00073783 [11:18:33]NVStorageDeleteData [11:18:33]Write to MH i2c: 01 00 00 5A 17 71 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: 01 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: 01 07 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 B3 0C 37 [11:18:33]RasterBufferAndPrint [11:18:33]line [11:18:33]line [11:18:33]line [11:18:33]line [11:18:33]line [11:18:33]written 0, free lines is 3256 [11:18:33]MH_Cut [11:18:33]Write to MH i2c: D1 01 00 61 17 01 4A [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: D1 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: D1 01 00 [11:18:33]MH_I2C_Read... [11:18:33]Read from MH i2c: D1 01 00 61 17 00 49 [11:18:33]Write to MH i2c: 01 00 00 62 17 79 [11:18:33]Write i2c OK [11:18:33]MH_I2C_Read... [11:18:33]OFD Sender: No OFD packet to send [11:18:34]*** Cut start [11:18:34]*** Partial cut [11:18:34]*** CUTSNS_PIN = 1 [11:18:34]*** CUTSNS_PIN = 0 [11:18:34]*** Brake cut motor [11:18:34]Read from MH i2c: 01 [11:18:34]MH_I2C_Read... [11:18:34]*** Stop cut motor [11:18:34]*** Cut end [11:18:34]Read from MH i2c: 01 07 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: 01 07 00 62 17 00 00 00 00 00 FF 0F 8E [11:18:34]process_action close_receipt done [11:18:34]requested_data is exist [11:18:34]produce_requested_data [11:18:34]requested_item fm.sn is exist - process it [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 11 00 00 [11:18:34]Write to MH i2c: E2 08 00 63 17 80 11 00 00 00 00 00 00 F4 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 17 00 63 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 41 [11:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:18:34]wFMCommunicate OK [11:18:34]requested_item fd.num is exist - process it [11:18:34]SAM_PROTO_GetFieldsCounters [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 13 00 00 [11:18:34]Write to MH i2c: E2 08 00 64 17 80 13 00 00 00 00 00 00 F7 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 62 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 62 00 64 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 20 01 00 0E 04 04 00 AA 00 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 54 [11:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 20 01 00 0E 04 04 00 AA 00 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 [11:18:34]wFMCommunicate OK [11:18:34]SAM_PROTO_GetFieldsCounters done [11:18:34]requested_item shift.num is exist - process it [11:18:34]requested_item shift.opened is exist - process it [11:18:34]req_shift_opened [11:18:34]FM_GetShiftState [11:18:34]SAM_PROTO_GetShiftState [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 13 01 00 [11:18:34]Write to MH i2c: E2 08 00 65 17 80 13 01 00 00 00 00 00 F9 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0E 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0E 00 65 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3E [11:18:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:18:35]wFMCommunicate OK [11:18:35]SAM_PROTO_GetShiftState done [11:18:35]FM_GetShiftState done [11:18:35]req_shift_opened done [11:18:35]requested_item shift.open_date is exist - process it [11:18:35]req_shift_open_date [11:18:35]req_shift_open_date done [11:18:35]produce_requested_data done [11:18:35]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73783,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:18:35]process_action_free close_receipt [11:18:35]json_value_free [11:18:35]json_value_free done [11:18:35]process_json_proto returns [11:18:35]Send response to host [11:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73783,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:18:35]free response buf [11:18:35]execute_script done [11:18:35]execute_script returns [11:18:35]free content buf [11:18:35]Sock 8.Close socket [11:18:35]Sock 8.Thread stoped [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:35]accept exits with 9 [11:19:35]New connection [11:19:35]New thread 3067575652 created [11:19:35]Thread 3067432292 joined [11:19:35]Waiting for new connection... [11:19:35] Sock 9.Parse request [11:19:35]Sock 9.Check first char [11:19:35]Sock 9.First char is OK [11:19:35]request: POST /json_proto HTTP/1.0 [11:19:35]Method: POST [11:19:35]URL: /json_proto [11:19:35]Method is POST - this is cgi request [11:19:35]url: /json_proto [11:19:35]query_string will be loaded in cgi processing [11:19:35]execute_cgi json_proto POST (null) [11:19:35]execute_cgi path=json_proto method=POST [11:19:35]POST find Content-Length [11:19:35]Host: 172.17.44.196:8080 [11:19:35]Content-Length: 748 [11:19:35]Content-Type: application/json [11:19:35] [11:19:35]POST finish read [11:19:35]Found Content-Length = 748 [11:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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: Mbank", "payments": [ { "type": 1, "sum" : 600.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:35]execute_script... [11:19:35]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)1962869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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: Mbank", "payments": [ { "type": 1, "sum" : 600.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:35]POST & json_proto [11:19:35]process_json_proto [11:19:35]json parsed OK: [11:19:35]protocol is kg_v1.0 [11:19:35]action value=close_receipt [11:19:35]process_action close_receipt [11:19:35]cmd_close_receipt [11:19:35]MH_GetDate [11:19:35]Write to MH i2c: F0 00 00 66 17 6C [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: F0 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: F0 09 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: F0 09 00 66 17 00 48 E7 14 67 E7 19 F8 65 7C [11:19:35]GetLastDocTimeStamp 1729423112 [11:19:35]current date 1729423176 [11:19:35]FM_GetShiftState [11:19:35]SAM_PROTO_GetShiftState [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 13 01 00 [11:19:35]Write to MH i2c: E2 08 00 67 17 80 13 01 00 00 00 00 00 FB [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 67 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 40 [11:19:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_GetShiftState done [11:19:35]FM_GetShiftState done [11:19:35]opened in 1729384303 [11:19:35]opened+sec_in_day 1729470703 [11:19:35]quantity*price = 60055 [11:19:35]sum+1 = 60056 [11:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.55 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.55 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 110 20.10.2024 11:19 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73784 ФПД: 191125277684149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111936&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73784&fm=191125277684149&tin=02508201610067®Number=0000000000161154&sum=60055 [11:19:36]StoreToDocumentArchive [11:19:36]shift 170 fd 73784 [11:19:36]save to /storage/0170/doc_00073784 [11:19:36]save last doc name /storage/0170/doc_00073784 to /storage/kkm_last_doc_name [11:19:36]save OK [11:19:36]Clear old archive folders... [11:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:19:36]tlvbuf is 00373530 [11:19:36]SAM_PROTO_ClearQueue [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 09 00 00 [11:19:36]Write to MH i2c: E2 08 00 74 17 80 09 00 00 00 00 00 00 FD [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 03 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [11:19:36]RAPDU: 90 00 [11:19:36]wFMCommunicate OK [11:19:36]SAM_PROTO_ClearQueue done [11:19:36]KKMCreateOFDPacket [11:19:36]OFDProtocolAddRootSTLVToBuf [11:19:36]FM_MakeSignedData [11:19:36]FM_MakeSignedData [11:19:36]SAM_PROTO_SignData [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 0D 01 02 [11:19:36]Write to MH i2c: E2 08 00 75 17 80 0D 01 02 00 00 00 00 05 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 03 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 03 00 75 17 00 90 00 00 [11:19:36]RAPDU: 90 00 [11:19:36]wFMCommunicate OK [11:19:36]wFMCommunicate request_size=253 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 20 01 00 35 04 06 00 AD D3 D2 48 B1 B5 [11:19:36]Write to MH i2c: E2 00 01 76 17 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 20 01 00 35 04 06 00 AD D3 D2 48 B1 B5 00 00 A4 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 03 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 03 00 76 17 00 90 00 01 [11:19:36]RAPDU: 90 00 [11:19:36]wFMCommunicate OK [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 0D 03 02 [11:19:36]Write to MH i2c: E2 08 00 77 17 80 0D 03 02 00 00 00 00 09 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 0B 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 0B 00 77 17 00 22 56 07 55 8D 55 F0 EF 90 00 9F [11:19:36]RAPDU: 22 56 07 55 8D 55 F0 EF 90 00 [11:19:36]wFMCommunicate OK [11:19:36]SAM_PROTO_SignData done [11:19:36]FM_MakeSignedData done [11:19:36]CreateOFDProtocolMessage [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 11 00 00 [11:19:36]Write to MH i2c: E2 08 00 78 17 80 11 00 00 00 00 00 00 09 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 17 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 17 00 78 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 56 [11:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:19:36]wFMCommunicate OK [11:19:36]CreateOFDProtocolMessage done [11:19:36]OFDSenderStorePacket 73784 [11:19:36]StoreOFDPacket docnum=73784 [11:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 4A 3D 00 01 6F 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 20 01 00 35 04 06 00 AD D3 D2 48 B1 B5 22 56 07 55 8D 55 F0 EF [11:19:36]CheckFolder [11:19:36]dirname=/storage/ofd_packets [11:19:36]CheckFolder done [11:19:36]ProducePacketName [11:19:36]name=ofd_packets/00073784 [11:19:36]NVStorageSaveData ofd_packets/00073784 [11:19:36]File name is /storage/ofd_packets/00073784 [11:19:36]Write 294 bytes [11:19:36]NVStorageSaveData done [11:19:36]OFDSenderStorePacket done [11:19:36]KKMCreateOFDPacket done [11:19:36]NVStorageSaveData kkm_last_timestamp [11:19:36]File name is /storage/kkm_last_timestamp [11:19:36]Write 4 bytes [11:19:36]NVStorageSaveData done [11:19:36]ExternCall_PrintAddStr [11:19:36]wPrintStart [11:19:36]Write to MH i2c: 01 00 00 79 17 90 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 FF 0F A5 [11:19:36]RasterBufferAndPrint [11:19:36]line Счет N : (1)1962869 [11:19:36]line ИНН: 02508201610067 [11:19:36]line Контрольно-Кассовый Чек [11:19:36]line ПРОДАЖА [11:19:36]line ТРК (МРК, ГНК) : 42 [11:19:36]line Товар: 2710124130 [11:19:36]line SU-92 [11:19:36]line 8.780 * 68.40 [11:19:36]line = 600.55 [11:19:36]line НДС 12% НСП 1% [11:19:36]line > о реализуемом товаре [11:19:36]line ИТОГО: 600.55 [11:19:36]line НСП 1% : 5.31 [11:19:36]line НДС 12% : 63.77 [11:19:36]line Наличными: 0.00 [11:19:36]line Безнал.: 600.55 [11:19:36]line Место: АЗС № 133 "Партнер Нефть" [11:19:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:19:36]line СНО: Общий режим [11:19:36]line Чек 110 20.10.2024 11:19 [11:19:36]line Смена: 170 ФФД: 1.0 [11:19:36]line ЗНМ: 0300000020 [11:19:36]line РНМ: 0000000000161154 [11:19:36]line Версия ККМ: v1.0 [11:19:36]line Платежная система: Mbank [11:19:36]line ФМ: 0000000000963323 [11:19:36]line ФД: 73784 [11:19:36]line ФПД: 191125277684149 [11:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111936&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73784&fm=191125277684149&tin=02508201610067®Number=0000000000161154&sum=60055 [11:19:37]OFD Sender: Processing packet 73784 [packets to send 15, broken 14] [11:19:37]ProducePacketName [11:19:37]name=ofd_packets/00073784 [11:19:37]OFD Sender: To server: pG, [11:19:37]CommunicateWithHost lk.salyk.kg:30040 [11:19:37]ConnectInit lk.salyk.kg [11:19:37]written 0, free lines is 4095 [11:19:37]Connected sock=10 [11:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 4A 3D 00 01 6F 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 20 01 00 35 04 06 00 AD D3 D2 48 B1 B5 22 56 07 55 8D 55 F0 EF [11:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9A 10 47 00 44 E1 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 39 36 33 33 32 33 10 04 04 00 38 20 01 00 F4 03 04 00 2D 90 14 67 B6 04 01 00 00 BF 7A 38 55 0C 78 98 C8 [11:19:37]CommunicateWithHost err = 0 [11:19:37]CheckOFDResponse [11:19:37]1017 (14) - 77093643461234 [11:19:37]1041 (16) - 0000000000963323 [11:19:37]1040 (4) - 73784 [11:19:37]1012 (4) - 20.10.2024 05:07 [11:19:37]1206 (1) - 0 [11:19:37]OFD Sender: Remove packet 73784 [11:19:37]ProducePacketName [11:19:37]name=ofd_packets/00073784 [11:19:37]NVStorageDeleteData [11:19:37]Write to MH i2c: 01 00 00 A1 17 B8 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: 01 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: 01 07 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 DC 0C A7 [11:19:37]RasterBufferAndPrint [11:19:37]line [11:19:37]line [11:19:37]line [11:19:37]line [11:19:37]line [11:19:37]written 0, free lines is 3297 [11:19:37]MH_Cut [11:19:37]Write to MH i2c: D1 01 00 A8 17 01 91 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: D1 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: D1 01 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: D1 01 00 A8 17 00 90 [11:19:37]Write to MH i2c: 01 00 00 A9 17 C0 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]OFD Sender: No OFD packet to send [11:19:38]*** Cut start [11:19:38]*** Partial cut [11:19:38]*** CUTSNS_PIN = 1 [11:19:38]*** CUTSNS_PIN = 0 [11:19:38]*** Brake cut motor [11:19:38]Read from MH i2c: 01 [11:19:38]MH_I2C_Read... [11:19:38]*** Stop cut motor [11:19:38]*** Cut end [11:19:38]Read from MH i2c: 01 07 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 07 00 A9 17 00 00 00 00 00 FF 0F D5 [11:19:38]process_action close_receipt done [11:19:38]requested_data is exist [11:19:38]produce_requested_data [11:19:38]requested_item fm.sn is exist - process it [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 11 00 00 [11:19:38]Write to MH i2c: E2 08 00 AA 17 80 11 00 00 00 00 00 00 3B [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 17 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 17 00 AA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [11:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:19:38]wFMCommunicate OK [11:19:38]requested_item fd.num is exist - process it [11:19:38]SAM_PROTO_GetFieldsCounters [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 13 00 00 [11:19:38]Write to MH i2c: E2 08 00 AB 17 80 13 00 00 00 00 00 00 3E [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 62 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 62 00 AB 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 20 01 00 0E 04 04 00 AA 00 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 9F [11:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 20 01 00 0E 04 04 00 AA 00 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 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_GetFieldsCounters done [11:19:39]requested_item shift.num is exist - process it [11:19:39]requested_item shift.opened is exist - process it [11:19:39]req_shift_opened [11:19:39]FM_GetShiftState [11:19:39]SAM_PROTO_GetShiftState [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 13 01 00 [11:19:39]Write to MH i2c: E2 08 00 AC 17 80 13 01 00 00 00 00 00 40 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0E 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0E 00 AC 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 85 [11:19:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_GetShiftState done [11:19:39]FM_GetShiftState done [11:19:39]req_shift_opened done [11:19:39]requested_item shift.open_date is exist - process it [11:19:39]req_shift_open_date [11:19:39]req_shift_open_date done [11:19:39]produce_requested_data done [11:19:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73784,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:19:39]process_action_free close_receipt [11:19:39]json_value_free [11:19:39]json_value_free done [11:19:39]process_json_proto returns [11:19:39]Send response to host [11:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73784,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:19:39]free response buf [11:19:39]execute_script done [11:19:39]execute_script returns [11:19:39]free content buf [11:19:39]Sock 9.Close socket [11:19:39]Sock 9.Thread stoped [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:25]accept exits with 8 [11:21:25]New connection [11:21:25]New thread 3067432292 created [11:21:25]Thread 3067575652 joined [11:21:25]Waiting for new connection... [11:21:25] Sock 8.Parse request [11:21:25]Sock 8.Check first char [11:21:25]Sock 8.First char is OK [11:21:25]request: POST /json_proto HTTP/1.0 [11:21:25]Method: POST [11:21:25]URL: /json_proto [11:21:25]Method is POST - this is cgi request [11:21:25]url: /json_proto [11:21:25]query_string will be loaded in cgi processing [11:21:25]execute_cgi json_proto POST (null) [11:21:25]execute_cgi path=json_proto method=POST [11:21:25]POST find Content-Length [11:21:25]Host: 172.17.44.196:8080 [11:21:25]Content-Length: 683 [11:21:25]Content-Type: application/json [11:21:25] [11:21:25]POST finish read [11:21:25]Found Content-Length = 683 [11:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [11:21:25]execute_script... [11:21: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 : (1)1962867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [11:21:25]POST & json_proto [11:21:25]process_json_proto [11:21:25]json parsed OK: [11:21:25]protocol is kg_v1.0 [11:21:25]action value=close_receipt [11:21:25]process_action close_receipt [11:21:25]cmd_close_receipt [11:21:25]MH_GetDate [11:21:25]Write to MH i2c: F0 00 00 AD 17 B3 [11:21:25]Write i2c OK [11:21:25]MH_I2C_Read... [11:21:25]Read from MH i2c: F0 [11:21:25]MH_I2C_Read... [11:21:25]Read from MH i2c: F0 09 00 [11:21:25]MH_I2C_Read... [11:21:25]Read from MH i2c: F0 09 00 AD 17 00 B6 E7 14 67 E7 19 F8 65 31 [11:21:25]GetLastDocTimeStamp 1729423176 [11:21:25]current date 1729423286 [11:21:25]FM_GetShiftState [11:21:25]SAM_PROTO_GetShiftState [11:21:25]wFMCommunicate request_size=4 [11:21:25]MH_SAM_APDU [11:21:25]CAPDU: 80 13 01 00 [11:21:25]Write to MH i2c: E2 08 00 AE 17 80 13 01 00 00 00 00 00 42 [11:21:25]Write i2c OK [11:21:25]MH_I2C_Read... [11:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:25]Read from MH i2c: E2 [11:21:25]MH_I2C_Read... [11:21:25]Read from MH i2c: E2 0E 00 [11:21:25]MH_I2C_Read... [11:21:25]Read from MH i2c: E2 0E 00 AE 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 87 [11:21:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:21:25]wFMCommunicate OK [11:21:25]SAM_PROTO_GetShiftState done [11:21:25]FM_GetShiftState done [11:21:25]opened in 1729384303 [11:21:25]opened+sec_in_day 1729470703 [11:21:25]quantity*price = 100021 [11:21:25]sum+1 = 100023 [11:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 111 20.10.2024 11:21 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73785 ФПД: 268122936620000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73785&fm=268122936620000&tin=02508201610067®Number=0000000000161154&sum=100000 [11:21:26]StoreToDocumentArchive [11:21:26]shift 170 fd 73785 [11:21:26]save to /storage/0170/doc_00073785 [11:21:26]save last doc name /storage/0170/doc_00073785 to /storage/kkm_last_doc_name [11:21:26]save OK [11:21:26]Clear old archive folders... [11:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:26]tlvbuf is B6F72470 [11:21:26]SAM_PROTO_ClearQueue [11:21:26]wFMCommunicate request_size=4 [11:21:26]MH_SAM_APDU [11:21:26]CAPDU: 80 09 00 00 [11:21:26]Write to MH i2c: E2 08 00 BB 17 80 09 00 00 00 00 00 00 44 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [11:21:26]RAPDU: 90 00 [11:21:26]wFMCommunicate OK [11:21:26]SAM_PROTO_ClearQueue done [11:21:26]KKMCreateOFDPacket [11:21:26]OFDProtocolAddRootSTLVToBuf [11:21:26]FM_MakeSignedData [11:21:26]FM_MakeSignedData [11:21:26]SAM_PROTO_SignData [11:21:26]wFMCommunicate request_size=4 [11:21:26]MH_SAM_APDU [11:21:26]CAPDU: 80 0D 01 02 [11:21:26]Write to MH i2c: E2 08 00 BC 17 80 0D 01 02 00 00 00 00 4C [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [11:21:26]RAPDU: 90 00 [11:21:26]wFMCommunicate OK [11:21:26]wFMCommunicate request_size=255 [11:21:26]MH_SAM_APDU [11:21:26]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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 6F 00 00 00 F4 03 04 00 B6 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 20 01 00 35 04 06 00 F3 [11:21:26]Write to MH i2c: E2 02 01 BD 17 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 6F 00 00 00 F4 03 04 00 B6 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 20 01 00 35 04 06 00 F3 00 00 69 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [11:21:26]RAPDU: 90 00 [11:21:26]wFMCommunicate OK [11:21:26]wFMCommunicate request_size=10 [11:21:26]MH_SAM_APDU [11:21:26]CAPDU: 80 0D 02 02 05 DB 3C 64 B3 E0 [11:21:26]Write to MH i2c: E2 0D 00 BE 17 80 0D 02 02 05 00 DB 3C 64 B3 E0 00 00 67 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [11:21:26]RAPDU: 90 00 [11:21:26]wFMCommunicate OK [11:21:26]wFMCommunicate request_size=4 [11:21:26]MH_SAM_APDU [11:21:26]CAPDU: 80 0D 03 02 [11:21:26]Write to MH i2c: E2 08 00 BF 17 80 0D 03 02 00 00 00 00 51 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 0B 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 0B 00 BF 17 00 18 80 17 CF 98 72 2B D9 90 00 DE [11:21:26]RAPDU: 18 80 17 CF 98 72 2B D9 90 00 [11:21:26]wFMCommunicate OK [11:21:26]SAM_PROTO_SignData done [11:21:26]FM_MakeSignedData done [11:21:26]CreateOFDProtocolMessage [11:21:26]wFMCommunicate request_size=4 [11:21:26]MH_SAM_APDU [11:21:26]CAPDU: 80 11 00 00 [11:21:26]Write to MH i2c: E2 08 00 C0 17 80 11 00 00 00 00 00 00 51 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 17 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 17 00 C0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [11:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:21:26]wFMCommunicate OK [11:21:26]CreateOFDProtocolMessage done [11:21:26]OFDSenderStorePacket 73785 [11:21:26]StoreOFDPacket docnum=73785 [11:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 5C BC 07 01 21 A8 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 6F 00 00 00 F4 03 04 00 B6 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 20 01 00 35 04 06 00 F3 DB 3C 64 B3 E0 18 80 17 CF 98 72 2B D9 [11:21:26]CheckFolder [11:21:26]dirname=/storage/ofd_packets [11:21:26]CheckFolder done [11:21:26]ProducePacketName [11:21:26]name=ofd_packets/00073785 [11:21:26]NVStorageSaveData ofd_packets/00073785 [11:21:26]File name is /storage/ofd_packets/00073785 [11:21:26]Write 301 bytes [11:21:26]NVStorageSaveData done [11:21:26]OFDSenderStorePacket done [11:21:26]KKMCreateOFDPacket done [11:21:26]NVStorageSaveData kkm_last_timestamp [11:21:26]File name is /storage/kkm_last_timestamp [11:21:26]Write 4 bytes [11:21:26]NVStorageSaveData done [11:21:26]ExternCall_PrintAddStr [11:21:26]wPrintStart [11:21:26]Write to MH i2c: 01 00 00 C1 17 D8 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: 01 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: 01 07 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: 01 07 00 C1 17 00 00 00 00 00 FF 0F ED [11:21:26]RasterBufferAndPrint [11:21:26]line Счет N : (1)1962867 [11:21:26]line ИНН: 02508201610067 [11:21:26]line Контрольно-Кассовый Чек [11:21:26]line ПРОДАЖА [11:21:26]line ТРК (МРК, ГНК) : 54 [11:21:26]line Товар: 2710124500 [11:21:26]line Аи-95-К-5 [11:21:26]line 13.480 * 74.20 [11:21:26]line = 1000.22 [11:21:26]line НДС 12% НСП 1% [11:21:26]line > о реализуемом товаре [11:21:26]line ОКРУГЛЕНИЕ: -0.22 [11:21:26]line ИТОГО: 1000.00 [11:21:26]line Внесено: 1000.00 [11:21:26]line СДАЧА: 0.00 [11:21:26]line НСП 1% : 8.85 [11:21:26]line НДС 12% : 106.22 [11:21:26]line Наличными: 1000.00 [11:21:26]line Безнал.: 0.00 [11:21:26]line Место: АЗС № 133 "Партнер Нефть" [11:21:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:21:26]line СНО: Общий режим [11:21:26]line Чек 111 20.10.2024 11:21 [11:21:26]line Смена: 170 ФФД: 1.0 [11:21:26]line ЗНМ: 0300000020 [11:21:26]line РНМ: 0000000000161154 [11:21:26]line Версия ККМ: v1.0 [11:21:26]line ФМ: 0000000000963323 [11:21:26]line ФД: 73785 [11:21:26]line ФПД: 268122936620000 [11:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73785&fm=268122936620000&tin=02508201610067®Number=0000000000161154&sum=100000 [11:21:27]OFD Sender: Processing packet 73785 [packets to send 15, broken 14] [11:21:27]ProducePacketName [11:21:27]name=ofd_packets/00073785 [11:21:27]OFD Sender: To server: pG, [11:21:27]CommunicateWithHost lk.salyk.kg:30040 [11:21:27]ConnectInit lk.salyk.kg [11:21:27]written 0, free lines is 4095 [11:21:27]Connected sock=10 [11:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 5C BC 07 01 21 A8 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 6F 00 00 00 F4 03 04 00 B6 E7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 20 01 00 35 04 06 00 F3 DB 3C 64 B3 E0 18 80 17 CF 98 72 2B D9 [11:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A8 14 47 00 92 AF 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 39 36 33 33 32 33 10 04 04 00 39 20 01 00 F4 03 04 00 9B 90 14 67 B6 04 01 00 00 CA CC 64 E2 30 CC 09 01 [11:21:27]CommunicateWithHost err = 0 [11:21:27]CheckOFDResponse [11:21:27]1017 (14) - 77093643461234 [11:21:27]1041 (16) - 0000000000963323 [11:21:27]1040 (4) - 73785 [11:21:27]1012 (4) - 20.10.2024 05:09 [11:21:27]1206 (1) - 0 [11:21:27]OFD Sender: Remove packet 73785 [11:21:27]ProducePacketName [11:21:27]name=ofd_packets/00073785 [11:21:27]NVStorageDeleteData [11:21:27]Write to MH i2c: 01 00 00 EB 17 02 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: 01 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: 01 07 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 B8 0C CD [11:21:27]RasterBufferAndPrint [11:21:27]line [11:21:27]line [11:21:27]line [11:21:27]line [11:21:27]line [11:21:27]written 0, free lines is 3261 [11:21:27]MH_Cut [11:21:27]Write to MH i2c: D1 01 00 F2 17 01 DB [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: D1 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: D1 01 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: D1 01 00 F2 17 00 DA [11:21:27]Write to MH i2c: 01 00 00 F3 17 0A [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]OFD Sender: No OFD packet to send [11:21:28]*** Cut start [11:21:28]*** Partial cut [11:21:28]*** CUTSNS_PIN = 1 [11:21:28]*** CUTSNS_PIN = 0 [11:21:28]*** Brake cut motor [11:21:29]Read from MH i2c: 01 [11:21:29]MH_I2C_Read... [11:21:29]*** Stop cut motor [11:21:29]*** Cut end [11:21:29]Read from MH i2c: 01 07 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 FF 0F 1F [11:21:29]process_action close_receipt done [11:21:29]requested_data is exist [11:21:29]produce_requested_data [11:21:29]requested_item fm.sn is exist - process it [11:21:29]wFMCommunicate request_size=4 [11:21:29]MH_SAM_APDU [11:21:29]CAPDU: 80 11 00 00 [11:21:29]Write to MH i2c: E2 08 00 F4 17 80 11 00 00 00 00 00 00 85 [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 17 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 17 00 F4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [11:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:21:29]wFMCommunicate OK [11:21:29]requested_item fd.num is exist - process it [11:21:29]SAM_PROTO_GetFieldsCounters [11:21:29]wFMCommunicate request_size=4 [11:21:29]MH_SAM_APDU [11:21:29]CAPDU: 80 13 00 00 [11:21:29]Write to MH i2c: E2 08 00 F5 17 80 13 00 00 00 00 00 00 88 [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 62 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 62 00 F5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 39 20 01 00 0E 04 04 00 AA 00 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 ED [11:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 39 20 01 00 0E 04 04 00 AA 00 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 [11:21:29]wFMCommunicate OK [11:21:29]SAM_PROTO_GetFieldsCounters done [11:21:29]requested_item shift.num is exist - process it [11:21:29]requested_item shift.opened is exist - process it [11:21:29]req_shift_opened [11:21:29]FM_GetShiftState [11:21:29]SAM_PROTO_GetShiftState [11:21:29]wFMCommunicate request_size=4 [11:21:29]MH_SAM_APDU [11:21:29]CAPDU: 80 13 01 00 [11:21:29]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 0E 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CF [11:21:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:21:29]wFMCommunicate OK [11:21:29]SAM_PROTO_GetShiftState done [11:21:29]FM_GetShiftState done [11:21:29]req_shift_opened done [11:21:29]requested_item shift.open_date is exist - process it [11:21:29]req_shift_open_date [11:21:29]req_shift_open_date done [11:21:29]produce_requested_data done [11:21:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73785,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:21:29]process_action_free close_receipt [11:21:29]json_value_free [11:21:29]json_value_free done [11:21:29]process_json_proto returns [11:21:29]Send response to host [11:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73785,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:21:29]free response buf [11:21:29]execute_script done [11:21:29]execute_script returns [11:21:29]free content buf [11:21:29]Sock 8.Close socket [11:21:29]Sock 8.Thread stoped [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:23]accept exits with 9 [11:25:23]New connection [11:25:23]New thread 3067575652 created [11:25:23]Thread 3067432292 joined [11:25:23]Waiting for new connection... [11:25:23] Sock 9.Parse request [11:25:23]Sock 9.Check first char [11:25:23]Sock 9.First char is OK [11:25:23]request: POST /json_proto HTTP/1.0 [11:25:23]Method: POST [11:25:23]URL: /json_proto [11:25:23]Method is POST - this is cgi request [11:25:23]url: /json_proto [11:25:23]query_string will be loaded in cgi processing [11:25:23]execute_cgi json_proto POST (null) [11:25:23]execute_cgi path=json_proto method=POST [11:25:23]POST find Content-Length [11:25:23]Host: 172.17.44.196:8080 [11:25:23]Content-Length: 843 [11:25:23]Content-Type: application/json [11:25:23] [11:25:23]POST finish read [11:25:23]Found Content-Length = 843 [11:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272766", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:23]execute_script... [11: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)272766", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:23]POST & json_proto [11:25:23]process_json_proto [11:25:23]json parsed OK: [11:25:23]protocol is kg_v1.0 [11:25:23]action value=close_receipt [11:25:23]process_action close_receipt [11:25:23]cmd_close_receipt [11:25:23]MH_GetDate [11:25:23]Write to MH i2c: F0 00 00 F7 17 FD [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: F0 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: F0 09 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: F0 09 00 F7 17 00 A4 E8 14 67 E7 19 F8 65 6A [11:25:23]GetLastDocTimeStamp 1729423286 [11:25:23]current date 1729423524 [11:25:23]FM_GetShiftState [11:25:23]SAM_PROTO_GetShiftState [11:25:23]wFMCommunicate request_size=4 [11:25:23]MH_SAM_APDU [11:25:23]CAPDU: 80 13 01 00 [11:25:23]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:23]Read from MH i2c: E2 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 0E 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D1 [11:25:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:25:23]wFMCommunicate OK [11:25:23]SAM_PROTO_GetShiftState done [11:25:23]FM_GetShiftState done [11:25:23]opened in 1729384303 [11:25:23]opened+sec_in_day 1729470703 [11:25:23]quantity*price = 14500 [11:25:23]sum+1 = 14501 [11:25:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 112 20.10.2024 11:25 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73786 ФПД: 30292224362626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112524&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73786&fm=30292224362626&tin=02508201610067®Number=0000000000161154&sum=19000 0 [11:25:24]StoreToDocumentArchive [11:25:24]shift 170 fd 73786 [11:25:24]save to /storage/0170/doc_00073786 [11:25:24]save last doc name /storage/0170/doc_00073786 to /storage/kkm_last_doc_name [11:25:24]save OK [11:25:24]Clear old archive folders... [11:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=371 [11:25:24]tlvbuf is B6FF0230 [11:25:24]SAM_PROTO_ClearQueue [11:25:24]wFMCommunicate request_size=4 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 09 00 00 [11:25:24]Write to MH i2c: E2 08 00 05 18 80 09 00 00 00 00 00 00 8F [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [11:25:24]RAPDU: 90 00 [11:25:24]wFMCommunicate OK [11:25:24]SAM_PROTO_ClearQueue done [11:25:24]KKMCreateOFDPacket [11:25:24]OFDProtocolAddRootSTLVToBuf [11:25:24]FM_MakeSignedData [11:25:24]FM_MakeSignedData [11:25:24]SAM_PROTO_SignData [11:25:24]wFMCommunicate request_size=4 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 0D 01 02 [11:25:24]Write to MH i2c: E2 08 00 06 18 80 0D 01 02 00 00 00 00 97 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [11:25:24]RAPDU: 90 00 [11:25:24]wFMCommunicate OK [11:25:24]wFMCommunicate request_size=255 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 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 [11:25:24]Write to MH i2c: E2 02 01 07 18 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 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 00 33 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [11:25:24]RAPDU: 90 00 [11:25:24]wFMCommunicate OK [11:25:24]wFMCommunicate request_size=130 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 0D 02 02 7D 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 70 00 00 00 F4 03 04 00 A4 E8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 20 01 00 35 04 06 00 1B 8C F5 45 C8 82 [11:25:24]Write to MH i2c: E2 85 00 08 18 80 0D 02 02 7D 00 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 70 00 00 00 F4 03 04 00 A4 E8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 20 01 00 35 04 06 00 1B 8C F5 45 C8 82 00 00 D0 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 08 18 00 90 00 94 [11:25:24]RAPDU: 90 00 [11:25:24]wFMCommunicate OK [11:25:24]wFMCommunicate request_size=4 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 0D 03 02 [11:25:24]Write to MH i2c: E2 08 00 09 18 80 0D 03 02 00 00 00 00 9C [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 0B 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 0B 00 09 18 00 47 F8 6B 46 90 26 69 D5 90 00 81 [11:25:24]RAPDU: 47 F8 6B 46 90 26 69 D5 90 00 [11:25:24]wFMCommunicate OK [11:25:24]SAM_PROTO_SignData done [11:25:24]FM_MakeSignedData done [11:25:24]CreateOFDProtocolMessage [11:25:24]wFMCommunicate request_size=4 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 11 00 00 [11:25:24]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 17 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E9 [11:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:25:24]wFMCommunicate OK [11:25:24]CreateOFDProtocolMessage done [11:25:24]OFDSenderStorePacket 73786 [11:25:24]StoreOFDPacket docnum=73786 [11:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 87 01 00 00 59 CB 7F 01 39 22 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 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 70 00 00 00 F4 03 04 00 A4 E8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 20 01 00 35 04 06 00 1B 8C F5 45 C8 82 47 F8 6B 46 90 26 69 D5 [11:25:24]CheckFolder [11:25:24]dirname=/storage/ofd_packets [11:25:24]CheckFolder done [11:25:24]ProducePacketName [11:25:24]name=ofd_packets/00073786 [11:25:24]NVStorageSaveData ofd_packets/00073786 [11:25:24]File name is /storage/ofd_packets/00073786 [11:25:24]Write 421 bytes [11:25:24]NVStorageSaveData done [11:25:24]OFDSenderStorePacket done [11:25:24]KKMCreateOFDPacket done [11:25:24]NVStorageSaveData kkm_last_timestamp [11:25:24]File name is /storage/kkm_last_timestamp [11:25:24]Write 4 bytes [11:25:24]NVStorageSaveData done [11:25:24]ExternCall_PrintAddStr [11:25:24]wPrintStart [11:25:24]Write to MH i2c: 01 00 00 0B 18 23 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 07 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 FF 0F 38 [11:25:24]RasterBufferAndPrint [11:25:24]line Счет N : (3)272766 [11:25:24]line ИНН: 02508201610067 [11:25:24]line Контрольно-Кассовый Чек [11:25:24]line ПРОДАЖА [11:25:24]line Товар: 48744119 [11:25:24]line Сигареты Winston Xstyle Dual [11:25:24]line 1.000 * 145.00 [11:25:24]line = 145.00 [11:25:24]line НДС 12% НСП 1% [11:25:25]line > о реализуемом товаре [11:25:25]line Товар: 50173976 [11:25:25]line Жев Orbit Winterfresh под [11:25:25]line 1.000 * 45.00 [11:25:25]line = 45.00 [11:25:25]line НДС 12% НСП 1% [11:25:25]line > о реализуемом товаре [11:25:25]line ИТОГО: 190.00 [11:25:25]line НСП 1% : 1.68 [11:25:25]line НДС 12% : 20.18 [11:25:25]line Наличными: 190.00 [11:25:25]line Безнал.: 0.00 [11:25:25]line Место: АЗС № 133 "Партнер Нефть" [11:25:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:25:25]line СНО: Общий режим [11:25:25]line Чек 112 20.10.2024 11:25 [11:25:25]line Смена: 170 ФФД: 1.0 [11:25:25]line ЗНМ: 0300000020 [11:25:25]line РНМ: 0000000000161154 [11:25:25]line Версия ККМ: v1.0 [11:25:25]line ФМ: 0000000000963323 [11:25:25]line ФД: 73786 [11:25:25]line ФПД: 30292224362626 [11:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112524&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73786&fm=30292224362626&tin=02508201610067®Number=0000000000161154&sum=19000 [11:25:25]OFD Sender: Processing packet 73786 [packets to send 15, broken 14] [11:25:25]ProducePacketName [11:25:25]name=ofd_packets/00073786 [11:25:25]OFD Sender: To server: pG, [11:25:25]CommunicateWithHost lk.salyk.kg:30040 [11:25:25]ConnectInit lk.salyk.kg [11:25:25]line 0 [11:25:25]written 0, free lines is 4095 [11:25:25]Connected sock=10 [11:25:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 87 01 00 00 59 CB 7F 01 39 22 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 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 70 00 00 00 F4 03 04 00 A4 E8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 20 01 00 35 04 06 00 1B 8C F5 45 C8 82 47 F8 6B 46 90 26 69 D5 [11:25:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 35 23 47 00 0C 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 39 36 33 33 32 33 10 04 04 00 3A 20 01 00 F4 03 04 00 89 91 14 67 B6 04 01 00 00 17 F9 24 90 77 68 85 AE [11:25:25]CommunicateWithHost err = 0 [11:25:25]CheckOFDResponse [11:25:25]1017 (14) - 77093643461234 [11:25:25]1041 (16) - 0000000000963323 [11:25:25]1040 (4) - 73786 [11:25:25]1012 (4) - 20.10.2024 05:13 [11:25:25]1206 (1) - 0 [11:25:25]OFD Sender: Remove packet 73786 [11:25:25]ProducePacketName [11:25:25]name=ofd_packets/00073786 [11:25:25]NVStorageDeleteData [11:25:25]Write to MH i2c: 01 00 00 38 18 50 [11:25:25]Write i2c OK [11:25:25]MH_I2C_Read... [11:25:25]Read from MH i2c: 01 [11:25:25]MH_I2C_Read... [11:25:25]Read from MH i2c: 01 07 00 [11:25:25]MH_I2C_Read... [11:25:25]Read from MH i2c: 01 07 00 38 18 00 00 00 00 00 90 0C F3 [11:25:25]RasterBufferAndPrint [11:25:25]line [11:25:25]line [11:25:25]line [11:25:25]line [11:25:25]line [11:25:25]written 0, free lines is 3223 [11:25:25]MH_Cut [11:25:25]Write to MH i2c: D1 01 00 3F 18 01 29 [11:25:25]Write i2c OK [11:25:25]MH_I2C_Read... [11:25:25]Read from MH i2c: D1 [11:25:25]MH_I2C_Read... [11:25:25]Read from MH i2c: D1 01 00 [11:25:25]MH_I2C_Read... [11:25:25]Read from MH i2c: D1 01 00 3F 18 00 28 [11:25:25]Write to MH i2c: 01 00 00 40 18 58 [11:25:25]Write i2c OK [11:25:25]MH_I2C_Read... [11:25:26]OFD Sender: No OFD packet to send [11:25:26]*** Cut start [11:25:26]*** Partial cut [11:25:26]*** CUTSNS_PIN = 1 [11:25:26]*** CUTSNS_PIN = 0 [11:25:27]*** Brake cut motor [11:25:27]Read from MH i2c: 01 [11:25:27]MH_I2C_Read... [11:25:27]*** Stop cut motor [11:25:27]*** Cut end [11:25:27]Read from MH i2c: 01 07 00 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [11:25:27]process_action close_receipt done [11:25:27]requested_data is exist [11:25:27]produce_requested_data [11:25:27]requested_item fm.sn is exist - process it [11:25:27]wFMCommunicate request_size=4 [11:25:27]MH_SAM_APDU [11:25:27]CAPDU: 80 11 00 00 [11:25:27]Write to MH i2c: E2 08 00 41 18 80 11 00 00 00 00 00 00 D3 [11:25:27]Write i2c OK [11:25:27]MH_I2C_Read... [11:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:27]Read from MH i2c: E2 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 17 00 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 17 00 41 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 20 [11:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:25:27]wFMCommunicate OK [11:25:27]requested_item fd.num is exist - process it [11:25:27]SAM_PROTO_GetFieldsCounters [11:25:27]wFMCommunicate request_size=4 [11:25:27]MH_SAM_APDU [11:25:27]CAPDU: 80 13 00 00 [11:25:27]Write to MH i2c: E2 08 00 42 18 80 13 00 00 00 00 00 00 D6 [11:25:27]Write i2c OK [11:25:27]MH_I2C_Read... [11:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:27]Read from MH i2c: E2 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 62 00 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 62 00 42 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3A 20 01 00 0E 04 04 00 AA 00 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 3F [11:25:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3A 20 01 00 0E 04 04 00 AA 00 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 [11:25:27]wFMCommunicate OK [11:25:27]SAM_PROTO_GetFieldsCounters done [11:25:27]requested_item shift.num is exist - process it [11:25:27]requested_item shift.opened is exist - process it [11:25:27]req_shift_opened [11:25:27]FM_GetShiftState [11:25:27]SAM_PROTO_GetShiftState [11:25:27]wFMCommunicate request_size=4 [11:25:27]MH_SAM_APDU [11:25:27]CAPDU: 80 13 01 00 [11:25:27]Write to MH i2c: E2 08 00 43 18 80 13 01 00 00 00 00 00 D8 [11:25:27]Write i2c OK [11:25:27]MH_I2C_Read... [11:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:27]Read from MH i2c: E2 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 0E 00 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 0E 00 43 18 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1D [11:25:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:25:27]wFMCommunicate OK [11:25:27]SAM_PROTO_GetShiftState done [11:25:27]FM_GetShiftState done [11:25:27]req_shift_opened done [11:25:27]requested_item shift.open_date is exist - process it [11:25:27]req_shift_open_date [11:25:27]req_shift_open_date done [11:25:27]produce_requested_data done [11:25:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73786,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:25:27]process_action_free close_receipt [11:25:27]json_value_free [11:25:27]json_value_free done [11:25:27]process_json_proto returns [11:25:27]Send response to host [11:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73786,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:25:27]free response buf [11:25:27]execute_script done [11:25:27]execute_script returns [11:25:27]free content buf [11:25:27]Sock 9.Close socket [11:25:27]Sock 9.Thread stoped [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:50]accept exits with 8 [11:27:50]New connection [11:27:50]New thread 3067432292 created [11:27:50]Thread 3067575652 joined [11:27:50]Waiting for new connection... [11:27:50] Sock 8.Parse request [11:27:50]Sock 8.Check first char [11:27:50]Sock 8.First char is OK [11:27:50]request: POST /json_proto HTTP/1.0 [11:27:50]Method: POST [11:27:50]URL: /json_proto [11:27:50]Method is POST - this is cgi request [11:27:50]url: /json_proto [11:27:50]query_string will be loaded in cgi processing [11:27:50]execute_cgi json_proto POST (null) [11:27:50]execute_cgi path=json_proto method=POST [11:27:50]POST find Content-Length [11:27:50]Host: 172.17.44.196:8080 [11:27:50]Content-Length: 934 [11:27:50]Content-Type: application/json [11:27:50] [11:27:50]POST finish read [11:27:50]Found Content-Length = 934 [11:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272767", "tax_sys" : 0, "items" : [ { "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" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:50]execute_script... [11:27: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)272767", "tax_sys" : 0, "items" : [ { "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" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:50]POST & json_proto [11:27:50]process_json_proto [11:27:50]json parsed OK: [11:27:50]protocol is kg_v1.0 [11:27:50]action value=close_receipt [11:27:50]process_action close_receipt [11:27:50]cmd_close_receipt [11:27:50]MH_GetDate [11:27:50]Write to MH i2c: F0 00 00 44 18 4B [11:27:50]Write i2c OK [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 09 00 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 09 00 44 18 00 37 E9 14 67 E7 19 F8 65 4C [11:27:50]GetLastDocTimeStamp 1729423524 [11:27:50]current date 1729423671 [11:27:50]FM_GetShiftState [11:27:50]SAM_PROTO_GetShiftState [11:27:50]wFMCommunicate request_size=4 [11:27:50]MH_SAM_APDU [11:27:50]CAPDU: 80 13 01 00 [11:27:50]Write to MH i2c: E2 08 00 45 18 80 13 01 00 00 00 00 00 DA [11:27:50]Write i2c OK [11:27:50]MH_I2C_Read... [11:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:50]Read from MH i2c: E2 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: E2 0E 00 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: E2 0E 00 45 18 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1F [11:27:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:27:50]wFMCommunicate OK [11:27:50]SAM_PROTO_GetShiftState done [11:27:50]FM_GetShiftState done [11:27:50]opened in 1729384303 [11:27:50]opened+sec_in_day 1729470703 [11:27:50]quantity*price = 9500 [11:27:50]sum+1 = 9501 [11:27:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 113 20.10.2024 11:27 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73787 ФПД: 138690063302492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112751&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73787&fm=138690063302492&tin=02508201610067®Number=0000000000161154&sum=24000 0 [11:27:51]StoreToDocumentArchive [11:27:51]shift 170 fd 73787 [11:27:51]save to /storage/0170/doc_00073787 [11:27:51]save last doc name /storage/0170/doc_00073787 to /storage/kkm_last_doc_name [11:27:51]save OK [11:27:51]Clear old archive folders... [11:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=402 [11:27:51]tlvbuf is 0039B940 [11:27:51]SAM_PROTO_ClearQueue [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 09 00 00 [11:27:51]Write to MH i2c: E2 08 00 52 18 80 09 00 00 00 00 00 00 DC [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 52 18 00 90 00 DE [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]SAM_PROTO_ClearQueue done [11:27:51]KKMCreateOFDPacket [11:27:51]OFDProtocolAddRootSTLVToBuf [11:27:51]FM_MakeSignedData [11:27:51]FM_MakeSignedData [11:27:51]SAM_PROTO_SignData [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 01 02 [11:27:51]Write to MH i2c: E2 08 00 53 18 80 0D 01 02 00 00 00 00 E4 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 53 18 00 90 00 DF [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]wFMCommunicate request_size=255 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 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 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 [11:27:51]Write to MH i2c: E2 02 01 54 18 80 0D 02 02 FA 00 03 00 92 01 1E 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 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 00 AF [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 54 18 00 90 00 E0 [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]wFMCommunicate request_size=161 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 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 37 E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 20 01 00 35 04 06 00 7E 23 4B F4 FF 5C [11:27:51]Write to MH i2c: E2 A4 00 55 18 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 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 37 E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 20 01 00 35 04 06 00 7E 23 4B F4 FF 5C 00 00 8B [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 55 18 00 90 00 E1 [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 03 02 [11:27:51]Write to MH i2c: E2 08 00 56 18 80 0D 03 02 00 00 00 00 E9 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 0B 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 0B 00 56 18 00 1E 26 9A 87 DA 2B 24 3C 90 00 B4 [11:27:51]RAPDU: 1E 26 9A 87 DA 2B 24 3C 90 00 [11:27:51]wFMCommunicate OK [11:27:51]SAM_PROTO_SignData done [11:27:51]FM_MakeSignedData done [11:27:51]CreateOFDProtocolMessage [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 11 00 00 [11:27:51]Write to MH i2c: E2 08 00 57 18 80 11 00 00 00 00 00 00 E9 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 17 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 17 00 57 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 36 [11:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:27:51]wFMCommunicate OK [11:27:51]CreateOFDProtocolMessage done [11:27:51]OFDSenderStorePacket 73787 [11:27:51]StoreOFDPacket docnum=73787 [11:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A6 01 00 00 6D 21 9E 01 80 AA 5A 03 01 00 03 00 92 01 1E 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 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 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 37 E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 20 01 00 35 04 06 00 7E 23 4B F4 FF 5C 1E 26 9A 87 DA 2B 24 3C [11:27:51]CheckFolder [11:27:51]dirname=/storage/ofd_packets [11:27:51]CheckFolder done [11:27:51]ProducePacketName [11:27:51]name=ofd_packets/00073787 [11:27:51]NVStorageSaveData ofd_packets/00073787 [11:27:51]File name is /storage/ofd_packets/00073787 [11:27:51]Write 452 bytes [11:27:51]NVStorageSaveData done [11:27:51]OFDSenderStorePacket done [11:27:51]KKMCreateOFDPacket done [11:27:51]NVStorageSaveData kkm_last_timestamp [11:27:51]File name is /storage/kkm_last_timestamp [11:27:51]Write 4 bytes [11:27:51]NVStorageSaveData done [11:27:51]ExternCall_PrintAddStr [11:27:51]wPrintStart [11:27:51]Write to MH i2c: 01 00 00 58 18 70 [11:27:52]OFD Sender: Processing packet 73787 [packets to send 15, broken 14] [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00073787 [11:27:52]OFD Sender: To server: pG, [11:27:52]CommunicateWithHost lk.salyk.kg:30040 [11:27:52]ConnectInit lk.salyk.kg [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 58 18 00 00 00 00 00 FF 0F 85 [11:27:52]RasterBufferAndPrint [11:27:52]line Счет N : (3)272767 [11:27:52]line ИНН: 02508201610067 [11:27:52]line Контрольно-Кассовый Чек [11:27:52]line ПРОДАЖА [11:27:52]line Товар: 4700000480364 [11:27:52]line Напиток энерг Nitro экзотик 0.45 ж/б [11:27:52]line 1.000 * 95.00 [11:27:52]line = 95.00 [11:27:52]line НДС 12% НСП 1% [11:27:52]line > о реализуемом товаре [11:27:52]line Товар: 48744119 [11:27:52]line Сигареты Winston Xstyle Dual [11:27:52]line 1.000 * 145.00 [11:27:52]line = 145.00 [11:27:52]line НДС 12% НСП 1% [11:27:52]line > о реализуемом товаре [11:27:52]line ИТОГО: 240.00 [11:27:52]line НСП 1% : 2.12 [11:27:52]line НДС 12% : 25.49 [11:27:52]line Наличными: 240.00 [11:27:52]line Безнал.: 0.00 [11:27:52]line Место: АЗС № 133 "Партнер Нефть" [11:27:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:27:52]line СНО: Общий режим [11:27:52]line Чек 113 20.10.2024 11:27 [11:27:52]line Смена: 170 ФФД: 1.0 [11:27:52]line ЗНМ: 0300000020 [11:27:52]line РНМ: 0000000000161154 [11:27:52]line Версия ККМ: v1.0 [11:27:52]line ФМ: 0000000000963323 [11:27:52]line ФД: 73787 [11:27:52]line ФПД: 138690063302492 [11:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112751&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73787&fm=138690063302492&tin=02508201610067®Number=0000000000161154&sum=24000 [11:27:52]line 0 [11:27:52]written 0, free lines is 4095 [11:27:52]Connected sock=10 [11:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A6 01 00 00 6D 21 9E 01 80 AA 5A 03 01 00 03 00 92 01 1E 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 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 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 37 E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 20 01 00 35 04 06 00 7E 23 4B F4 FF 5C 1E 26 9A 87 DA 2B 24 3C [11:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CD 95 47 00 B0 2E 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 39 36 33 33 32 33 10 04 04 00 3B 20 01 00 F4 03 04 00 1C 92 14 67 B6 04 01 00 00 DC F6 2B 5C 17 D3 EA E3 [11:27:52]CommunicateWithHost err = 0 [11:27:52]CheckOFDResponse [11:27:52]1017 (14) - 77093643461234 [11:27:52]1041 (16) - 0000000000963323 [11:27:52]1040 (4) - 73787 [11:27:52]1012 (4) - 20.10.2024 05:16 [11:27:52]1206 (1) - 0 [11:27:52]OFD Sender: Remove packet 73787 [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00073787 [11:27:52]NVStorageDeleteData [11:27:52]Write to MH i2c: 01 00 00 86 18 9E [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 6D 0C 1E [11:27:52]RasterBufferAndPrint [11:27:52]line [11:27:52]line [11:27:52]line [11:27:52]line [11:27:52]line [11:27:52]written 0, free lines is 3185 [11:27:52]MH_Cut [11:27:52]Write to MH i2c: D1 01 00 8D 18 01 77 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: D1 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: D1 01 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: D1 01 00 8D 18 00 76 [11:27:52]Write to MH i2c: 01 00 00 8E 18 A6 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:53]OFD Sender: No OFD packet to send [11:27:53]*** Cut start [11:27:53]*** Partial cut [11:27:53]*** CUTSNS_PIN = 1 [11:27:53]*** CUTSNS_PIN = 0 [11:27:54]*** Brake cut motor [11:27:54]Read from MH i2c: 01 [11:27:54]MH_I2C_Read... [11:27:54]*** Stop cut motor [11:27:54]*** Cut end [11:27:54]Read from MH i2c: 01 07 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 8E 18 00 00 00 00 00 FF 0F BB [11:27:54]process_action close_receipt done [11:27:54]requested_data is exist [11:27:54]produce_requested_data [11:27:54]requested_item fm.sn is exist - process it [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 11 00 00 [11:27:54]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 17 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6E [11:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:27:54]wFMCommunicate OK [11:27:54]requested_item fd.num is exist - process it [11:27:54]SAM_PROTO_GetFieldsCounters [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 00 00 [11:27:54]Write to MH i2c: E2 08 00 90 18 80 13 00 00 00 00 00 00 24 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 62 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 62 00 90 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3B 20 01 00 0E 04 04 00 AA 00 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 91 [11:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3B 20 01 00 0E 04 04 00 AA 00 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 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetFieldsCounters done [11:27:54]requested_item shift.num is exist - process it [11:27:54]requested_item shift.opened is exist - process it [11:27:54]req_shift_opened [11:27:54]FM_GetShiftState [11:27:54]SAM_PROTO_GetShiftState [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 01 00 [11:27:54]Write to MH i2c: E2 08 00 91 18 80 13 01 00 00 00 00 00 26 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 91 18 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6B [11:27:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetShiftState done [11:27:54]FM_GetShiftState done [11:27:54]req_shift_opened done [11:27:54]requested_item shift.open_date is exist - process it [11:27:54]req_shift_open_date [11:27:54]req_shift_open_date done [11:27:54]produce_requested_data done [11:27:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73787,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:27:54]process_action_free close_receipt [11:27:54]json_value_free [11:27:54]json_value_free done [11:27:54]process_json_proto returns [11:27:54]Send response to host [11:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73787,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:27:54]free response buf [11:27:54]execute_script done [11:27:54]execute_script returns [11:27:54]free content buf [11:27:54]Sock 8.Close socket [11:27:54]Sock 8.Thread stoped [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:27]accept exits with 9 [11:28:27]New connection [11:28:27]New thread 3067575652 created [11:28:27]Thread 3067432292 joined [11:28:27]Waiting for new connection... [11:28:27] Sock 9.Parse request [11:28:27]Sock 9.Check first char [11:28:27]Sock 9.First char is OK [11:28:27]request: POST /json_proto HTTP/1.0 [11:28:27]Method: POST [11:28:27]URL: /json_proto [11:28:27]Method is POST - this is cgi request [11:28:27]url: /json_proto [11:28:27]query_string will be loaded in cgi processing [11:28:27]execute_cgi json_proto POST (null) [11:28:27]execute_cgi path=json_proto method=POST [11:28:27]POST find Content-Length [11:28:27]Host: 172.17.44.196:8080 [11:28:27]Content-Length: 629 [11:28:27]Content-Type: application/json [11:28:27] [11:28:27]POST finish read [11:28:27]Found Content-Length = 629 [11:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272768", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:27]execute_script... [11:28: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)272768", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:27]POST & json_proto [11:28:27]process_json_proto [11:28:27]json parsed OK: [11:28:27]protocol is kg_v1.0 [11:28:27]action value=close_receipt [11:28:27]process_action close_receipt [11:28:27]cmd_close_receipt [11:28:27]MH_GetDate [11:28:27]Write to MH i2c: F0 00 00 92 18 99 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: F0 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: F0 09 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: F0 09 00 92 18 00 5D E9 14 67 E7 19 F8 65 C0 [11:28:27]GetLastDocTimeStamp 1729423671 [11:28:27]current date 1729423709 [11:28:27]FM_GetShiftState [11:28:27]SAM_PROTO_GetShiftState [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 13 01 00 [11:28:27]Write to MH i2c: E2 08 00 93 18 80 13 01 00 00 00 00 00 28 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 93 18 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [11:28:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:28:28]wFMCommunicate OK [11:28:28]SAM_PROTO_GetShiftState done [11:28:28]FM_GetShiftState done [11:28:28]opened in 1729384303 [11:28:28]opened+sec_in_day 1729470703 [11:28:28]quantity*price = 55000 [11:28:28]sum+1 = 55001 [11:28:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.87 НДС 12% : 58.41 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 114 20.10.2024 11:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73788 ФПД: 261783072338855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112829&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73788&fm=261783072338855&tin=02508201610067®Number=0000000000161154&sum=55000 0 [11:28:29]StoreToDocumentArchive [11:28:29]shift 170 fd 73788 [11:28:29]save to /storage/0170/doc_00073788 [11:28:29]save last doc name /storage/0170/doc_00073788 to /storage/kkm_last_doc_name [11:28:29]save OK [11:28:29]Clear old archive folders... [11:28:29]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:28:29]tlvbuf is 0037B3E0 [11:28:29]SAM_PROTO_ClearQueue [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 09 00 00 [11:28:29]Write to MH i2c: E2 08 00 A0 18 80 09 00 00 00 00 00 00 2A [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]SAM_PROTO_ClearQueue done [11:28:29]KKMCreateOFDPacket [11:28:29]OFDProtocolAddRootSTLVToBuf [11:28:29]FM_MakeSignedData [11:28:29]FM_MakeSignedData [11:28:29]SAM_PROTO_SignData [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 01 02 [11:28:29]Write to MH i2c: E2 08 00 A1 18 80 0D 01 02 00 00 00 00 32 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]wFMCommunicate request_size=255 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 5D E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [11:28:29]Write to MH i2c: E2 02 01 A2 18 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 5D E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 F6 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]wFMCommunicate request_size=28 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 02 02 17 36 33 33 32 33 10 04 04 00 3C 20 01 00 35 04 06 00 EE 17 1F 08 F3 A7 [11:28:29]Write to MH i2c: E2 1F 00 A3 18 80 0D 02 02 17 00 36 33 33 32 33 10 04 04 00 3C 20 01 00 35 04 06 00 EE 17 1F 08 F3 A7 00 00 DE [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [11:28:29]RAPDU: 90 00 [11:28:29]wFMCommunicate OK [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 0D 03 02 [11:28:29]Write to MH i2c: E2 08 00 A4 18 80 0D 03 02 00 00 00 00 37 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 0B 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 0B 00 A4 18 00 C7 72 E7 DC 32 34 59 22 90 00 15 [11:28:29]RAPDU: C7 72 E7 DC 32 34 59 22 90 00 [11:28:29]wFMCommunicate OK [11:28:29]SAM_PROTO_SignData done [11:28:29]FM_MakeSignedData done [11:28:29]CreateOFDProtocolMessage [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 11 00 00 [11:28:29]Write to MH i2c: E2 08 00 A5 18 80 11 00 00 00 00 00 00 37 [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 17 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 17 00 A5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [11:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:28:29]wFMCommunicate OK [11:28:29]CreateOFDProtocolMessage done [11:28:29]OFDSenderStorePacket 73788 [11:28:29]StoreOFDPacket docnum=73788 [11:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 BB 0E 19 01 81 9E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 5D E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 20 01 00 35 04 06 00 EE 17 1F 08 F3 A7 C7 72 E7 DC 32 34 59 22 [11:28:29]CheckFolder [11:28:29]dirname=/storage/ofd_packets [11:28:29]CheckFolder done [11:28:29]ProducePacketName [11:28:29]name=ofd_packets/00073788 [11:28:29]NVStorageSaveData ofd_packets/00073788 [11:28:29]File name is /storage/ofd_packets/00073788 [11:28:29]Write 319 bytes [11:28:29]NVStorageSaveData done [11:28:29]OFDSenderStorePacket done [11:28:29]KKMCreateOFDPacket done [11:28:29]NVStorageSaveData kkm_last_timestamp [11:28:29]File name is /storage/kkm_last_timestamp [11:28:29]Write 4 bytes [11:28:29]NVStorageSaveData done [11:28:29]ExternCall_PrintAddStr [11:28:29]wPrintStart [11:28:29]Write to MH i2c: 01 00 00 A6 18 BE [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: 01 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: 01 07 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [11:28:29]RasterBufferAndPrint [11:28:29]line Счет N : (3)272768 [11:28:29]line ИНН: 02508201610067 [11:28:29]line Контрольно-Кассовый Чек [11:28:29]line ПРОДАЖА [11:28:29]line Товар: 4620006990387 [11:28:29]line Водка Талка 0,5л [11:28:29]line 1.000 * 550.00 [11:28:29]line = 550.00 [11:28:29]line НДС 12% НСП 1% [11:28:29]line > о реализуемом товаре [11:28:29]line ИТОГО: 550.00 [11:28:29]line НСП 1% : 4.87 [11:28:29]line НДС 12% : 58.41 [11:28:29]line Наличными: 550.00 [11:28:29]line Безнал.: 0.00 [11:28:29]line Место: АЗС № 133 "Партнер Нефть" [11:28:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:28:29]line СНО: Общий режим [11:28:29]line Чек 114 20.10.2024 11:28 [11:28:29]line Смена: 170 ФФД: 1.0 [11:28:29]line ЗНМ: 0300000020 [11:28:29]line РНМ: 0000000000161154 [11:28:29]line Версия ККМ: v1.0 [11:28:29]line ФМ: 0000000000963323 [11:28:29]line ФД: 73788 [11:28:29]line ФПД: 261783072338855 [11:28:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112829&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73788&fm=261783072338855&tin=02508201610067®Number=0000000000161154&sum=55000 [11:28:30]line 0 [11:28:30]OFD Sender: Processing packet 73788 [packets to send 15, broken 14] [11:28:30]ProducePacketName [11:28:30]name=ofd_packets/00073788 [11:28:30]OFD Sender: To server: pG, [11:28:30]CommunicateWithHost lk.salyk.kg:30040 [11:28:30]ConnectInit lk.salyk.kg [11:28:30]written 0, free lines is 4095 [11:28:30]Connected sock=8 [11:28:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 BB 0E 19 01 81 9E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 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 5D E9 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 20 01 00 35 04 06 00 EE 17 1F 08 F3 A7 C7 72 E7 DC 32 34 59 22 [11:28:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9F 97 47 00 75 7C 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 39 36 33 33 32 33 10 04 04 00 3C 20 01 00 F4 03 04 00 42 92 14 67 B6 04 01 00 00 43 13 5F 4F 5F C7 C1 5F [11:28:30]CommunicateWithHost err = 0 [11:28:30]CheckOFDResponse [11:28:30]1017 (14) - 77093643461234 [11:28:30]1041 (16) - 0000000000963323 [11:28:30]1040 (4) - 73788 [11:28:30]1012 (4) - 20.10.2024 05:16 [11:28:30]1206 (1) - 0 [11:28:30]OFD Sender: Remove packet 73788 [11:28:30]ProducePacketName [11:28:30]name=ofd_packets/00073788 [11:28:30]NVStorageDeleteData [11:28:30]Write to MH i2c: 01 00 00 CD 18 E5 [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 07 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: 01 07 00 CD 18 00 00 00 00 00 EA 0C E2 [11:28:30]RasterBufferAndPrint [11:28:30]line [11:28:30]line [11:28:30]line [11:28:30]line [11:28:30]line [11:28:30]written 0, free lines is 3312 [11:28:30]MH_Cut [11:28:30]Write to MH i2c: D1 01 00 D4 18 01 BE [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: D1 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: D1 01 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: D1 01 00 D4 18 00 BD [11:28:30]Write to MH i2c: 01 00 00 D5 18 ED [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]OFD Sender: No OFD packet to send [11:28:31]*** Cut start [11:28:31]*** Partial cut [11:28:31]*** CUTSNS_PIN = 1 [11:28:31]*** CUTSNS_PIN = 0 [11:28:31]*** Brake cut motor [11:28:31]Read from MH i2c: 01 [11:28:31]MH_I2C_Read... [11:28:31]*** Stop cut motor [11:28:31]*** Cut end [11:28:31]Read from MH i2c: 01 07 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: 01 07 00 D5 18 00 00 00 00 00 FF 0F 02 [11:28:31]process_action close_receipt done [11:28:31]requested_data is exist [11:28:31]produce_requested_data [11:28:31]requested_item fm.sn is exist - process it [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 11 00 00 [11:28:31]Write to MH i2c: E2 08 00 D6 18 80 11 00 00 00 00 00 00 68 [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 17 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 17 00 D6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B5 [11:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:28:31]wFMCommunicate OK [11:28:31]requested_item fd.num is exist - process it [11:28:31]SAM_PROTO_GetFieldsCounters [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 13 00 00 [11:28:31]Write to MH i2c: E2 08 00 D7 18 80 13 00 00 00 00 00 00 6B [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 62 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 62 00 D7 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3C 20 01 00 0E 04 04 00 AA 00 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 DC [11:28:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3C 20 01 00 0E 04 04 00 AA 00 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 [11:28:32]wFMCommunicate OK [11:28:32]SAM_PROTO_GetFieldsCounters done [11:28:32]requested_item shift.num is exist - process it [11:28:32]requested_item shift.opened is exist - process it [11:28:32]req_shift_opened [11:28:32]FM_GetShiftState [11:28:32]SAM_PROTO_GetShiftState [11:28:32]wFMCommunicate request_size=4 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 13 01 00 [11:28:32]Write to MH i2c: E2 08 00 D8 18 80 13 01 00 00 00 00 00 6D [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 0E 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 0E 00 D8 18 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B2 [11:28:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:28:32]wFMCommunicate OK [11:28:32]SAM_PROTO_GetShiftState done [11:28:32]FM_GetShiftState done [11:28:32]req_shift_opened done [11:28:32]requested_item shift.open_date is exist - process it [11:28:32]req_shift_open_date [11:28:32]req_shift_open_date done [11:28:32]produce_requested_data done [11:28:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73788,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:28:32]process_action_free close_receipt [11:28:32]json_value_free [11:28:32]json_value_free done [11:28:32]process_json_proto returns [11:28:32]Send response to host [11:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73788,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:28:32]free response buf [11:28:32]execute_script done [11:28:32]execute_script returns [11:28:32]free content buf [11:28:32]Sock 9.Close socket [11:28:32]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]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:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:32]accept exits with 10 [11:37:32]New connection [11:37:32]New thread 3067432292 created [11:37:32]Thread 3067575652 joined [11:37:32]Waiting for new connection... [11:37:32] Sock 10.Parse request [11:37:32]Sock 10.Check first char [11:37:32]Sock 10.First char is OK [11:37:32]request: POST /json_proto HTTP/1.0 [11:37:32]Method: POST [11:37:32]URL: /json_proto [11:37:32]Method is POST - this is cgi request [11:37:32]url: /json_proto [11:37:32]query_string will be loaded in cgi processing [11:37:32]execute_cgi json_proto POST (null) [11:37:32]execute_cgi path=json_proto method=POST [11:37:32]POST find Content-Length [11:37:32]Host: 172.17.44.196:8080 [11:37:32]Content-Length: 624 [11:37:32]Content-Type: application/json [11:37:32] [11:37:32]POST finish read [11:37:32]Found Content-Length = 624 [11:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272769", "tax_sys" : 0, "items" : [ { "code": "48745079", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B L\u0026M LOFT SEA BLUE", "price" : 118.00, "quantity" : 2.000, "sum" : 236.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:32]execute_script... [11:37: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)272769", "tax_sys" : 0, "items" : [ { "code": "48745079", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B L\u0026M LOFT SEA BLUE", "price" : 118.00, "quantity" : 2.000, "sum" : 236.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:32]POST & json_proto [11:37:32]process_json_proto [11:37:32]json parsed OK: [11:37:32]protocol is kg_v1.0 [11:37:32]action value=close_receipt [11:37:32]process_action close_receipt [11:37:32]cmd_close_receipt [11:37:32]MH_GetDate [11:37:32]Write to MH i2c: F0 00 00 D9 18 E0 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: F0 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: F0 09 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: F0 09 00 D9 18 00 7D EB 14 67 E7 19 F8 65 29 [11:37:32]GetLastDocTimeStamp 1729423709 [11:37:32]current date 1729424253 [11:37:32]FM_GetShiftState [11:37:32]SAM_PROTO_GetShiftState [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 13 01 00 [11:37:32]Write to MH i2c: E2 08 00 DA 18 80 13 01 00 00 00 00 00 6F [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 0E 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 0E 00 DA 18 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B4 [11:37:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:37:32]wFMCommunicate OK [11:37:32]SAM_PROTO_GetShiftState done [11:37:32]FM_GetShiftState done [11:37:32]opened in 1729384303 [11:37:32]opened+sec_in_day 1729470703 [11:37:32]quantity*price = 23600 [11:37:32]sum+1 = 23601 [11:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 236.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 115 20.10.2024 11:37 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73789 ФПД: 43484193153854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113733&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73789&fm=43484193153854&tin=02508201610067®Number=0000000000161154&sum=23600 0 [11:37:33]StoreToDocumentArchive [11:37:33]shift 170 fd 73789 [11:37:33]save to /storage/0170/doc_00073789 [11:37:33]save last doc name /storage/0170/doc_00073789 to /storage/kkm_last_doc_name [11:37:33]save OK [11:37:33]Clear old archive folders... [11:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:37:33]tlvbuf is 00313530 [11:37:33]SAM_PROTO_ClearQueue [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 09 00 00 [11:37:33]Write to MH i2c: E2 08 00 E7 18 80 09 00 00 00 00 00 00 71 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [11:37:33]RAPDU: 90 00 [11:37:33]wFMCommunicate OK [11:37:33]SAM_PROTO_ClearQueue done [11:37:33]KKMCreateOFDPacket [11:37:33]OFDProtocolAddRootSTLVToBuf [11:37:33]FM_MakeSignedData [11:37:33]FM_MakeSignedData [11:37:33]SAM_PROTO_SignData [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 0D 01 02 [11:37:33]Write to MH i2c: E2 08 00 E8 18 80 0D 01 02 00 00 00 00 79 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [11:37:33]RAPDU: 90 00 [11:37:33]wFMCommunicate OK [11:37:33]wFMCommunicate request_size=255 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 7D EB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:37:33]Write to MH i2c: E2 02 01 E9 18 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 7D EB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8B [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 E9 18 00 90 00 75 [11:37:33]RAPDU: 90 00 [11:37:33]wFMCommunicate OK [11:37:33]wFMCommunicate request_size=30 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 3D 20 01 00 35 04 06 00 27 8C 73 E2 E3 3E [11:37:33]Write to MH i2c: E2 21 00 EA 18 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 3D 20 01 00 35 04 06 00 27 8C 73 E2 E3 3E 00 00 F6 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [11:37:33]RAPDU: 90 00 [11:37:33]wFMCommunicate OK [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 0D 03 02 [11:37:33]Write to MH i2c: E2 08 00 EB 18 80 0D 03 02 00 00 00 00 7E [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 0B 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 0B 00 EB 18 00 43 90 9F 6D BC 74 88 F9 90 00 0F [11:37:33]RAPDU: 43 90 9F 6D BC 74 88 F9 90 00 [11:37:33]wFMCommunicate OK [11:37:33]SAM_PROTO_SignData done [11:37:33]FM_MakeSignedData done [11:37:33]CreateOFDProtocolMessage [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 11 00 00 [11:37:33]Write to MH i2c: E2 08 00 EC 18 80 11 00 00 00 00 00 00 7E [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 17 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 17 00 EC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [11:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:37:33]wFMCommunicate OK [11:37:33]CreateOFDProtocolMessage done [11:37:33]OFDSenderStorePacket 73789 [11:37:33]StoreOFDPacket docnum=73789 [11:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 BB 93 1B 01 80 E4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 7D EB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 20 01 00 35 04 06 00 27 8C 73 E2 E3 3E 43 90 9F 6D BC 74 88 F9 [11:37:33]CheckFolder [11:37:33]dirname=/storage/ofd_packets [11:37:33]CheckFolder done [11:37:33]ProducePacketName [11:37:33]name=ofd_packets/00073789 [11:37:33]NVStorageSaveData ofd_packets/00073789 [11:37:33]File name is /storage/ofd_packets/00073789 [11:37:33]Write 321 bytes [11:37:33]NVStorageSaveData done [11:37:33]OFDSenderStorePacket done [11:37:33]KKMCreateOFDPacket done [11:37:33]NVStorageSaveData kkm_last_timestamp [11:37:33]File name is /storage/kkm_last_timestamp [11:37:33]Write 4 bytes [11:37:33]NVStorageSaveData done [11:37:33]ExternCall_PrintAddStr [11:37:33]wPrintStart [11:37:33]Write to MH i2c: 01 00 00 ED 18 05 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 ED 18 00 00 00 00 00 FF 0F 1A [11:37:33]RasterBufferAndPrint [11:37:33]line Счет N : (3)272769 [11:37:33]line ИНН: 02508201610067 [11:37:33]line Контрольно-Кассовый Чек [11:37:33]line ПРОДАЖА [11:37:33]line Товар: 48745079 [11:37:33]line Сигареты L&M LOFT SEA BLUE [11:37:33]line 2.000 * 118.00 [11:37:33]line = 236.00 [11:37:33]line НДС 12% НСП 1% [11:37:33]line > о реализуемом товаре [11:37:33]line ИТОГО: 236.00 [11:37:33]line НСП 1% : 2.09 [11:37:33]line НДС 12% : 25.06 [11:37:33]line Наличными: 236.00 [11:37:33]line Безнал.: 0.00 [11:37:33]line Место: АЗС № 133 "Партнер Нефть" [11:37:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:37:33]line СНО: Общий режим [11:37:33]line Чек 115 20.10.2024 11:37 [11:37:33]line Смена: 170 ФФД: 1.0 [11:37:33]line ЗНМ: 0300000020 [11:37:33]line РНМ: 0000000000161154 [11:37:33]line Версия ККМ: v1.0 [11:37:33]line ФМ: 0000000000963323 [11:37:33]line ФД: 73789 [11:37:33]line ФПД: 43484193153854 [11:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113733&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73789&fm=43484193153854&tin=02508201610067®Number=0000000000161154&sum=23600 [11:37:34]line 0 [11:37:34]OFD Sender: Processing packet 73789 [packets to send 15, broken 14] [11:37:34]ProducePacketName [11:37:34]name=ofd_packets/00073789 [11:37:34]OFD Sender: To server: pG, [11:37:34]CommunicateWithHost lk.salyk.kg:30040 [11:37:34]ConnectInit lk.salyk.kg [11:37:34]written 0, free lines is 4095 [11:37:34]Connected sock=8 [11:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 BB 93 1B 01 80 E4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 7D EB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 20 01 00 35 04 06 00 27 8C 73 E2 E3 3E 43 90 9F 6D BC 74 88 F9 [11:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DB 07 47 00 8F 87 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 39 36 33 33 32 33 10 04 04 00 3D 20 01 00 F4 03 04 00 62 94 14 67 B6 04 01 00 00 87 28 F8 F8 AE 5F 48 BA [11:37:34]CommunicateWithHost err = 0 [11:37:34]CheckOFDResponse [11:37:34]1017 (14) - 77093643461234 [11:37:34]1041 (16) - 0000000000963323 [11:37:34]1040 (4) - 73789 [11:37:34]1012 (4) - 20.10.2024 05:25 [11:37:34]1206 (1) - 0 [11:37:34]OFD Sender: Remove packet 73789 [11:37:34]ProducePacketName [11:37:34]name=ofd_packets/00073789 [11:37:34]NVStorageDeleteData [11:37:34]Write to MH i2c: 01 00 00 14 19 2D [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 07 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 EC 0C 2C [11:37:34]RasterBufferAndPrint [11:37:34]line [11:37:34]line [11:37:34]line [11:37:34]line [11:37:34]line [11:37:34]written 0, free lines is 3314 [11:37:34]MH_Cut [11:37:34]Write to MH i2c: D1 01 00 1B 19 01 06 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: D1 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: D1 01 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: D1 01 00 1B 19 00 05 [11:37:34]Write to MH i2c: 01 00 00 1C 19 35 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:35]OFD Sender: No OFD packet to send [11:37:35]*** Cut start [11:37:35]*** Partial cut [11:37:35]*** CUTSNS_PIN = 1 [11:37:35]*** CUTSNS_PIN = 0 [11:37:35]*** Brake cut motor [11:37:35]Read from MH i2c: 01 [11:37:35]MH_I2C_Read... [11:37:35]*** Stop cut motor [11:37:35]*** Cut end [11:37:35]Read from MH i2c: 01 07 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [11:37:35]process_action close_receipt done [11:37:35]requested_data is exist [11:37:35]produce_requested_data [11:37:35]requested_item fm.sn is exist - process it [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 11 00 00 [11:37:35]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 17 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [11:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:37:36]wFMCommunicate OK [11:37:36]requested_item fd.num is exist - process it [11:37:36]SAM_PROTO_GetFieldsCounters [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 13 00 00 [11:37:36]Write to MH i2c: E2 08 00 1E 19 80 13 00 00 00 00 00 00 B3 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 62 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 62 00 1E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3D 20 01 00 0E 04 04 00 AA 00 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 28 [11:37:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3D 20 01 00 0E 04 04 00 AA 00 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 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_GetFieldsCounters done [11:37:36]requested_item shift.num is exist - process it [11:37:36]requested_item shift.opened is exist - process it [11:37:36]req_shift_opened [11:37:36]FM_GetShiftState [11:37:36]SAM_PROTO_GetShiftState [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 13 01 00 [11:37:36]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0E 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FA [11:37:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_GetShiftState done [11:37:36]FM_GetShiftState done [11:37:36]req_shift_opened done [11:37:36]requested_item shift.open_date is exist - process it [11:37:36]req_shift_open_date [11:37:36]req_shift_open_date done [11:37:36]produce_requested_data done [11:37:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73789,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:37:36]process_action_free close_receipt [11:37:36]json_value_free [11:37:36]json_value_free done [11:37:36]process_json_proto returns [11:37:36]Send response to host [11:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73789,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:37:36]free response buf [11:37:36]execute_script done [11:37:36]execute_script returns [11:37:36]free content buf [11:37:36]Sock 10.Close socket [11:37:36]Sock 10.Thread stoped [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:47:56]accept exits with 9 [11:47:56]New connection [11:47:56]New thread 3067575652 created [11:47:56]Thread 3067432292 joined [11:47:56]Waiting for new connection... [11:47:56] Sock 9.Parse request [11:47:56]Sock 9.Check first char [11:47:56]Sock 9.First char is OK [11:47:56]request: POST /json_proto HTTP/1.0 [11:47:56]Method: POST [11:47:56]URL: /json_proto [11:47:56]Method is POST - this is cgi request [11:47:56]url: /json_proto [11:47:56]query_string will be loaded in cgi processing [11:47:56]execute_cgi json_proto POST (null) [11:47:56]execute_cgi path=json_proto method=POST [11:47:56]POST find Content-Length [11:47:56]Host: 172.17.44.196:8080 [11:47:56]Content-Length: 904 [11:47:56]Content-Type: application/json [11:47:56] [11:47:56]POST finish read [11:47:56]Found Content-Length = 904 [11:47:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272770", "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 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.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" ] } } [11:47:56]execute_script... [11:47: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)272770", "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 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.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" ] } } [11:47:56]POST & json_proto [11:47:56]process_json_proto [11:47:56]json parsed OK: [11:47:56]protocol is kg_v1.0 [11:47:56]action value=close_receipt [11:47:56]process_action close_receipt [11:47:56]cmd_close_receipt [11:47:56]MH_GetDate [11:47:56]Write to MH i2c: F0 00 00 20 19 28 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: F0 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: F0 09 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: F0 09 00 20 19 00 ED ED 14 67 E7 19 F8 65 E3 [11:47:56]GetLastDocTimeStamp 1729424253 [11:47:56]current date 1729424877 [11:47:56]FM_GetShiftState [11:47:56]SAM_PROTO_GetShiftState [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 01 00 [11:47:56]Write to MH i2c: E2 08 00 21 19 80 13 01 00 00 00 00 00 B7 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 21 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FC [11:47:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetShiftState done [11:47:56]FM_GetShiftState done [11:47:56]opened in 1729384303 [11:47:56]opened+sec_in_day 1729470703 [11:47:56]quantity*price = 6000 [11:47:56]sum+1 = 6001 [11:47:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 1.000 * 127.00 = 127.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 187.00 НСП 1% : 1.65 НДС 12% : 19.86 Наличными: 187.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 116 20.10.2024 11:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73790 ФПД: 266512239832974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114757&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73790&fm=266512239832974&tin=02508201610067®Number=0000000000161154&sum=18700 0 [11:47:57]StoreToDocumentArchive [11:47:57]shift 170 fd 73790 [11:47:57]save to /storage/0170/doc_00073790 [11:47:57]save last doc name /storage/0170/doc_00073790 to /storage/kkm_last_doc_name [11:47:57]save OK [11:47:57]Clear old archive folders... [11:47:57]ProcessDocumentItem done err = 0, tmpTLVsize=380 [11:47:57]tlvbuf is 0037B070 [11:47:57]SAM_PROTO_ClearQueue [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 09 00 00 [11:47:57]Write to MH i2c: E2 08 00 2E 19 80 09 00 00 00 00 00 00 B9 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [11:47:57]RAPDU: 90 00 [11:47:57]wFMCommunicate OK [11:47:57]SAM_PROTO_ClearQueue done [11:47:57]KKMCreateOFDPacket [11:47:57]OFDProtocolAddRootSTLVToBuf [11:47:57]FM_MakeSignedData [11:47:57]FM_MakeSignedData [11:47:57]SAM_PROTO_SignData [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 0D 01 02 [11:47:57]Write to MH i2c: E2 08 00 2F 19 80 0D 01 02 00 00 00 00 C1 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [11:47:57]RAPDU: 90 00 [11:47:57]wFMCommunicate OK [11:47:57]wFMCommunicate request_size=255 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 0D 02 02 FA 03 00 7C 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 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 9C 31 00 00 00 00 13 04 06 00 9C 31 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 [11:47:57]Write to MH i2c: E2 02 01 30 19 80 0D 02 02 FA 00 03 00 7C 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 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 9C 31 00 00 00 00 13 04 06 00 9C 31 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 30 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [11:47:57]RAPDU: 90 00 [11:47:57]wFMCommunicate OK [11:47:57]wFMCommunicate request_size=139 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 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 74 00 00 00 F4 03 04 00 ED ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 20 01 00 35 04 06 00 F2 64 37 62 2F 8E [11:47:57]Write to MH i2c: E2 8E 00 31 19 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 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 74 00 00 00 F4 03 04 00 ED ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 20 01 00 35 04 06 00 F2 64 37 62 2F 8E 00 00 8C [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [11:47:57]RAPDU: 90 00 [11:47:57]wFMCommunicate OK [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 0D 03 02 [11:47:57]Write to MH i2c: E2 08 00 32 19 80 0D 03 02 00 00 00 00 C6 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 0B 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 0B 00 32 19 00 98 20 80 87 33 C7 93 94 90 00 A7 [11:47:57]RAPDU: 98 20 80 87 33 C7 93 94 90 00 [11:47:57]wFMCommunicate OK [11:47:57]SAM_PROTO_SignData done [11:47:57]FM_MakeSignedData done [11:47:57]CreateOFDProtocolMessage [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 11 00 00 [11:47:57]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 17 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 13 [11:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:47:57]wFMCommunicate OK [11:47:57]CreateOFDProtocolMessage done [11:47:57]OFDSenderStorePacket 73790 [11:47:57]StoreOFDPacket docnum=73790 [11:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 01 00 00 47 04 88 01 3C 68 5A 03 01 00 03 00 7C 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 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 9C 31 00 00 00 00 13 04 06 00 9C 31 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 C2 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 74 00 00 00 F4 03 04 00 ED ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 20 01 00 35 04 06 00 F2 64 37 62 2F 8E 98 20 80 87 33 C7 93 94 [11:47:57]CheckFolder [11:47:57]dirname=/storage/ofd_packets [11:47:57]CheckFolder done [11:47:57]ProducePacketName [11:47:57]name=ofd_packets/00073790 [11:47:57]NVStorageSaveData ofd_packets/00073790 [11:47:57]File name is /storage/ofd_packets/00073790 [11:47:57]Write 430 bytes [11:47:57]NVStorageSaveData done [11:47:57]OFDSenderStorePacket done [11:47:57]KKMCreateOFDPacket done [11:47:57]NVStorageSaveData kkm_last_timestamp [11:47:57]File name is /storage/kkm_last_timestamp [11:47:57]Write 4 bytes [11:47:57]NVStorageSaveData done [11:47:57]ExternCall_PrintAddStr [11:47:57]wPrintStart [11:47:57]Write to MH i2c: 01 00 00 34 19 4D [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: 01 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: 01 07 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 FF 0F 62 [11:47:57]RasterBufferAndPrint [11:47:57]line Счет N : (3)272770 [11:47:57]line ИНН: 02508201610067 [11:47:57]line Контрольно-Кассовый Чек [11:47:57]line ПРОДАЖА [11:47:57]line Товар: 4700000160204 [11:47:58]line Вода Легенда 1,5л [11:47:58]line 1.000 * 60.00 [11:47:58]line = 60.00 [11:47:58]line НДС 12% НСП 1% [11:47:58]line > о реализуемом товаре [11:47:58]line Товар: 4860019001414 [11:47:58]line Вода Боржоми 0,75л ПЭТ [11:47:58]line 1.000 * 127.00 [11:47:58]line = 127.00 [11:47:58]line НДС 12% НСП 1% [11:47:58]line > о реализуемом товаре [11:47:58]line ИТОГО: 187.00 [11:47:58]line НСП 1% : 1.65 [11:47:58]line НДС 12% : 19.86 [11:47:58]line Наличными: 187.00 [11:47:58]line Безнал.: 0.00 [11:47:58]line Место: АЗС № 133 "Партнер Нефть" [11:47:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:47:58]line СНО: Общий режим [11:47:58]line Чек 116 20.10.2024 11:47 [11:47:58]line Смена: 170 ФФД: 1.0 [11:47:58]line ЗНМ: 0300000020 [11:47:58]line РНМ: 0000000000161154 [11:47:58]line Версия ККМ: v1.0 [11:47:58]line ФМ: 0000000000963323 [11:47:58]line ФД: 73790 [11:47:58]line ФПД: 266512239832974 [11:47:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114757&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73790&fm=266512239832974&tin=02508201610067®Number=0000000000161154&sum=18700 [11:47:58]line 0 [11:47:58]OFD Sender: Processing packet 73790 [packets to send 15, broken 14] [11:47:58]ProducePacketName [11:47:58]name=ofd_packets/00073790 [11:47:58]OFD Sender: To server: pG, [11:47:58]CommunicateWithHost lk.salyk.kg:30040 [11:47:58]ConnectInit lk.salyk.kg [11:47:58]written 0, free lines is 4095 [11:47:58]Connected sock=10 [11:47:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 01 00 00 47 04 88 01 3C 68 5A 03 01 00 03 00 7C 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 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 9C 31 00 00 00 00 13 04 06 00 9C 31 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 C2 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 74 00 00 00 F4 03 04 00 ED ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 20 01 00 35 04 06 00 F2 64 37 62 2F 8E 98 20 80 87 33 C7 93 94 [11:47:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 46 33 47 00 A3 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 39 36 33 33 32 33 10 04 04 00 3E 20 01 00 F4 03 04 00 D2 96 14 67 B6 04 01 00 00 24 C3 61 C8 6F 8B FD AD [11:47:58]CommunicateWithHost err = 0 [11:47:58]CheckOFDResponse [11:47:58]1017 (14) - 77093643461234 [11:47:58]1041 (16) - 0000000000963323 [11:47:58]1040 (4) - 73790 [11:47:58]1012 (4) - 20.10.2024 05:36 [11:47:58]1206 (1) - 0 [11:47:58]OFD Sender: Remove packet 73790 [11:47:58]ProducePacketName [11:47:58]name=ofd_packets/00073790 [11:47:58]NVStorageDeleteData [11:47:58]Write to MH i2c: 01 00 00 61 19 7A [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 07 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 8C 0C 19 [11:47:58]RasterBufferAndPrint [11:47:58]line [11:47:58]line [11:47:58]line [11:47:58]line [11:47:58]line [11:47:58]written 0, free lines is 3219 [11:47:58]MH_Cut [11:47:58]Write to MH i2c: D1 01 00 68 19 01 53 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: D1 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: D1 01 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: D1 01 00 68 19 00 52 [11:47:58]Write to MH i2c: 01 00 00 69 19 82 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:59]OFD Sender: No OFD packet to send [11:47:59]*** Cut start [11:47:59]*** Partial cut [11:47:59]*** CUTSNS_PIN = 1 [11:47:59]*** CUTSNS_PIN = 0 [11:47:59]*** Brake cut motor [11:48:00]Read from MH i2c: 01 [11:48:00]MH_I2C_Read... [11:48:00]*** Stop cut motor [11:48:00]*** Cut end [11:48:00]Read from MH i2c: 01 07 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: 01 07 00 69 19 00 00 00 00 00 FF 0F 97 [11:48:00]process_action close_receipt done [11:48:00]requested_data is exist [11:48:00]produce_requested_data [11:48:00]requested_item fm.sn is exist - process it [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 11 00 00 [11:48:00]Write to MH i2c: E2 08 00 6A 19 80 11 00 00 00 00 00 00 FD [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 17 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 17 00 6A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4A [11:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:48:00]wFMCommunicate OK [11:48:00]requested_item fd.num is exist - process it [11:48:00]SAM_PROTO_GetFieldsCounters [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 13 00 00 [11:48:00]Write to MH i2c: E2 08 00 6B 19 80 13 00 00 00 00 00 00 00 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 62 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 62 00 6B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3E 20 01 00 0E 04 04 00 AA 00 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 79 [11:48:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3E 20 01 00 0E 04 04 00 AA 00 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 [11:48:00]wFMCommunicate OK [11:48:00]SAM_PROTO_GetFieldsCounters done [11:48:00]requested_item shift.num is exist - process it [11:48:00]requested_item shift.opened is exist - process it [11:48:00]req_shift_opened [11:48:00]FM_GetShiftState [11:48:00]SAM_PROTO_GetShiftState [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 13 01 00 [11:48:00]Write to MH i2c: E2 08 00 6C 19 80 13 01 00 00 00 00 00 02 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 0E 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 0E 00 6C 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 47 [11:48:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:48:00]wFMCommunicate OK [11:48:00]SAM_PROTO_GetShiftState done [11:48:00]FM_GetShiftState done [11:48:00]req_shift_opened done [11:48:00]requested_item shift.open_date is exist - process it [11:48:00]req_shift_open_date [11:48:00]req_shift_open_date done [11:48:00]produce_requested_data done [11:48:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73790,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:48:00]process_action_free close_receipt [11:48:00]json_value_free [11:48:00]json_value_free done [11:48:00]process_json_proto returns [11:48:00]Send response to host [11:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73790,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:48:00]free response buf [11:48:00]execute_script done [11:48:00]execute_script returns [11:48:00]free content buf [11:48:00]Sock 9.Close socket [11:48:00]Sock 9.Thread stoped [11:48:01]accept exits with 8 [11:48:01]New connection [11:48:01]New thread 3067432292 created [11:48:01]Thread 3067575652 joined [11:48:01]Waiting for new connection... [11:48:01] Sock 8.Parse request [11:48:01]Sock 8.Check first char [11:48:01]Sock 8.First char is OK [11:48:01]request: POST /json_proto HTTP/1.0 [11:48:01]Method: POST [11:48:01]URL: /json_proto [11:48:01]Method is POST - this is cgi request [11:48:01]url: /json_proto [11:48:01]query_string will be loaded in cgi processing [11:48:01]execute_cgi json_proto POST (null) [11:48:01]execute_cgi path=json_proto method=POST [11:48:01]POST find Content-Length [11:48:01]Host: 172.17.44.196:8080 [11:48:01]Content-Length: 645 [11:48:01]Content-Type: application/json [11:48:01] [11:48:01]POST finish read [11:48:01]Found Content-Length = 645 [11:48:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272771", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:01]execute_script... [11:48:01]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)272771", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:01]POST & json_proto [11:48:01]process_json_proto [11:48:01]json parsed OK: [11:48:01]protocol is kg_v1.0 [11:48:01]action value=close_receipt [11:48:01]process_action close_receipt [11:48:01]cmd_close_receipt [11:48:01]MH_GetDate [11:48:01]Write to MH i2c: F0 00 00 6D 19 75 [11:48:01]Write i2c OK [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: F0 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: F0 09 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 09 00 6D 19 00 F3 ED 14 67 E7 19 F8 65 36 [11:48:02]GetLastDocTimeStamp 1729424877 [11:48:02]current date 1729424883 [11:48:02]FM_GetShiftState [11:48:02]SAM_PROTO_GetShiftState [11:48:02]wFMCommunicate request_size=4 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 13 01 00 [11:48:02]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:02]Read from MH i2c: E2 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 0E 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [11:48:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:48:02]wFMCommunicate OK [11:48:02]SAM_PROTO_GetShiftState done [11:48:02]FM_GetShiftState done [11:48:02]opened in 1729384303 [11:48:02]opened+sec_in_day 1729470703 [11:48:02]quantity*price = 1000 [11:48:02]sum+1 = 1001 [11:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 117 20.10.2024 11:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73791 ФПД: 163780749100349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114803&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73791&fm=163780749100349&tin=02508201610067®Number=0000000000161154&sum=1000 0 [11:48:03]StoreToDocumentArchive [11:48:03]shift 170 fd 73791 [11:48:03]save to /storage/0170/doc_00073791 [11:48:03]save last doc name /storage/0170/doc_00073791 to /storage/kkm_last_doc_name [11:48:03]save OK [11:48:03]Clear old archive folders... [11:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:48:03]tlvbuf is 003DCF60 [11:48:03]SAM_PROTO_ClearQueue [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 09 00 00 [11:48:03]Write to MH i2c: E2 08 00 7B 19 80 09 00 00 00 00 00 00 06 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [11:48:03]RAPDU: 90 00 [11:48:03]wFMCommunicate OK [11:48:03]SAM_PROTO_ClearQueue done [11:48:03]KKMCreateOFDPacket [11:48:03]OFDProtocolAddRootSTLVToBuf [11:48:03]FM_MakeSignedData [11:48:03]FM_MakeSignedData [11:48:03]SAM_PROTO_SignData [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 0D 01 02 [11:48:03]Write to MH i2c: E2 08 00 7C 19 80 0D 01 02 00 00 00 00 0E [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [11:48:03]RAPDU: 90 00 [11:48:03]wFMCommunicate OK [11:48:03]wFMCommunicate request_size=255 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 F3 ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [11:48:03]Write to MH i2c: E2 02 01 7D 19 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 F3 ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 C5 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [11:48:03]RAPDU: 90 00 [11:48:03]wFMCommunicate OK [11:48:03]wFMCommunicate request_size=39 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 20 01 00 35 04 06 00 94 F5 2D 5F 05 3D [11:48:03]Write to MH i2c: E2 2A 00 7E 19 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 20 01 00 35 04 06 00 94 F5 2D 5F 05 3D 00 00 7D [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 03 02 [11:48:04]Write to MH i2c: E2 08 00 7F 19 80 0D 03 02 00 00 00 00 13 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 0B 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 0B 00 7F 19 00 4D 82 76 67 7F D7 07 96 90 00 B3 [11:48:04]RAPDU: 4D 82 76 67 7F D7 07 96 90 00 [11:48:04]wFMCommunicate OK [11:48:04]SAM_PROTO_SignData done [11:48:04]FM_MakeSignedData done [11:48:04]CreateOFDProtocolMessage [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 11 00 00 [11:48:04]Write to MH i2c: E2 08 00 80 19 80 11 00 00 00 00 00 00 13 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]OFD Sender: No OFD packet to send [11:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 17 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 17 00 80 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 60 [11:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:48:04]wFMCommunicate OK [11:48:04]CreateOFDProtocolMessage done [11:48:04]OFDSenderStorePacket 73791 [11:48:04]StoreOFDPacket docnum=73791 [11:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 DF C8 24 01 D8 DE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 F3 ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 20 01 00 35 04 06 00 94 F5 2D 5F 05 3D 4D 82 76 67 7F D7 07 96 [11:48:04]CheckFolder [11:48:04]dirname=/storage/ofd_packets [11:48:04]CheckFolder done [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00073791 [11:48:04]NVStorageSaveData ofd_packets/00073791 [11:48:04]File name is /storage/ofd_packets/00073791 [11:48:04]Write 330 bytes [11:48:04]NVStorageSaveData done [11:48:04]OFDSenderStorePacket done [11:48:04]KKMCreateOFDPacket done [11:48:04]NVStorageSaveData kkm_last_timestamp [11:48:04]File name is /storage/kkm_last_timestamp [11:48:04]Write 4 bytes [11:48:04]NVStorageSaveData done [11:48:04]ExternCall_PrintAddStr [11:48:04]wPrintStart [11:48:04]Write to MH i2c: 01 00 00 81 19 9A [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 FF 0F AF [11:48:04]RasterBufferAndPrint [11:48:04]line Счет N : (3)272771 [11:48:04]line ИНН: 02508201610067 [11:48:04]line Контрольно-Кассовый Чек [11:48:04]line ПРОДАЖА [11:48:04]line Товар: 46226617 [11:48:04]line Mentos ПВ Нежная Мята 6*100*2г [11:48:04]line 1.000 * 10.00 [11:48:04]line = 10.00 [11:48:04]line НДС 12% НСП 1% [11:48:04]line > о реализуемом товаре [11:48:04]line ИТОГО: 10.00 [11:48:04]line НСП 1% : 0.09 [11:48:04]line НДС 12% : 1.06 [11:48:04]line Наличными: 10.00 [11:48:04]line Безнал.: 0.00 [11:48:04]line Место: АЗС № 133 "Партнер Нефть" [11:48:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:48:04]line СНО: Общий режим [11:48:04]line Чек 117 20.10.2024 11:48 [11:48:04]line Смена: 170 ФФД: 1.0 [11:48:04]line ЗНМ: 0300000020 [11:48:04]line РНМ: 0000000000161154 [11:48:04]line Версия ККМ: v1.0 [11:48:04]line ФМ: 0000000000963323 [11:48:04]line ФД: 73791 [11:48:04]line ФПД: 163780749100349 [11:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114803&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73791&fm=163780749100349&tin=02508201610067®Number=0000000000161154&sum=1000 [11:48:04]line 0 [11:48:04]written 0, free lines is 4095 [11:48:04]OFD Sender: Processing packet 73791 [packets to send 15, broken 14] [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00073791 [11:48:04]OFD Sender: To server: pG, [11:48:04]CommunicateWithHost lk.salyk.kg:30040 [11:48:04]ConnectInit lk.salyk.kg [11:48:04]Connected sock=10 [11:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 DF C8 24 01 D8 DE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 F3 ED 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 20 01 00 35 04 06 00 94 F5 2D 5F 05 3D 4D 82 76 67 7F D7 07 96 [11:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E3 3C 47 00 03 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 39 36 33 33 32 33 10 04 04 00 3F 20 01 00 F4 03 04 00 D8 96 14 67 B6 04 01 00 00 BC A9 31 92 73 47 0B 55 [11:48:04]CommunicateWithHost err = 0 [11:48:04]CheckOFDResponse [11:48:04]1017 (14) - 77093643461234 [11:48:04]1041 (16) - 0000000000963323 [11:48:04]1040 (4) - 73791 [11:48:04]1012 (4) - 20.10.2024 05:36 [11:48:04]1206 (1) - 0 [11:48:04]OFD Sender: Remove packet 73791 [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00073791 [11:48:04]NVStorageDeleteData [11:48:04]Write to MH i2c: 01 00 00 A9 19 C2 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 A9 19 00 00 00 00 00 EE 0C C3 [11:48:04]RasterBufferAndPrint [11:48:04]line [11:48:04]line [11:48:04]line [11:48:04]line [11:48:04]line [11:48:04]written 0, free lines is 3326 [11:48:04]MH_Cut [11:48:04]Write to MH i2c: D1 01 00 B0 19 01 9B [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: D1 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: D1 01 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: D1 01 00 B0 19 00 9A [11:48:04]Write to MH i2c: 01 00 00 B1 19 CA [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:05]OFD Sender: No OFD packet to send [11:48:05]*** Cut start [11:48:05]*** Partial cut [11:48:05]*** CUTSNS_PIN = 1 [11:48:05]*** CUTSNS_PIN = 0 [11:48:05]*** Brake cut motor [11:48:06]Read from MH i2c: 01 [11:48:06]MH_I2C_Read... [11:48:06]*** Stop cut motor [11:48:06]*** Cut end [11:48:06]Read from MH i2c: 01 07 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 FF 0F DF [11:48:06]process_action close_receipt done [11:48:06]requested_data is exist [11:48:06]produce_requested_data [11:48:06]requested_item fm.sn is exist - process it [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 11 00 00 [11:48:06]Write to MH i2c: E2 08 00 B2 19 80 11 00 00 00 00 00 00 45 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 B2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 92 [11:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:48:06]wFMCommunicate OK [11:48:06]requested_item fd.num is exist - process it [11:48:06]SAM_PROTO_GetFieldsCounters [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 13 00 00 [11:48:06]Write to MH i2c: E2 08 00 B3 19 80 13 00 00 00 00 00 00 48 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 62 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 62 00 B3 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3F 20 01 00 0E 04 04 00 AA 00 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 C5 [11:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3F 20 01 00 0E 04 04 00 AA 00 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 [11:48:06]wFMCommunicate OK [11:48:06]SAM_PROTO_GetFieldsCounters done [11:48:06]requested_item shift.num is exist - process it [11:48:06]requested_item shift.opened is exist - process it [11:48:06]req_shift_opened [11:48:06]FM_GetShiftState [11:48:06]SAM_PROTO_GetShiftState [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 13 01 00 [11:48:06]Write to MH i2c: E2 08 00 B4 19 80 13 01 00 00 00 00 00 4A [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 0E 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 0E 00 B4 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8F [11:48:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:48:06]wFMCommunicate OK [11:48:06]SAM_PROTO_GetShiftState done [11:48:06]FM_GetShiftState done [11:48:06]req_shift_opened done [11:48:06]requested_item shift.open_date is exist - process it [11:48:06]req_shift_open_date [11:48:06]req_shift_open_date done [11:48:06]produce_requested_data done [11:48:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73791,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:48:06]process_action_free close_receipt [11:48:06]json_value_free [11:48:06]json_value_free done [11:48:06]process_json_proto returns [11:48:06]Send response to host [11:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73791,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:48:06]free response buf [11:48:06]execute_script done [11:48:06]execute_script returns [11:48:06]free content buf [11:48:06]Sock 8.Close socket [11:48:06]Sock 8.Thread stoped [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:47]accept exits with 9 [11:48:47]New connection [11:48:47]New thread 3067575652 created [11:48:47]Thread 3067432292 joined [11:48:47]Waiting for new connection... [11:48:47] Sock 9.Parse request [11:48:47]Sock 9.Check first char [11:48:47]Sock 9.First char is OK [11:48:47]request: POST /json_proto HTTP/1.0 [11:48:47]Method: POST [11:48:47]URL: /json_proto [11:48:47]Method is POST - this is cgi request [11:48:47]url: /json_proto [11:48:47]query_string will be loaded in cgi processing [11:48:47]execute_cgi json_proto POST (null) [11:48:47]execute_cgi path=json_proto method=POST [11:48:47]POST find Content-Length [11:48:47]Host: 172.17.44.196:8080 [11:48:47]Content-Length: 678 [11:48:47]Content-Type: application/json [11:48:47] [11:48:47]POST finish read [11:48:47]Found Content-Length = 678 [11:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [11:48:47]execute_script... [11:48: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 : (1)1962907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [11:48:47]POST & json_proto [11:48:47]process_json_proto [11:48:47]json parsed OK: [11:48:47]protocol is kg_v1.0 [11:48:47]action value=close_receipt [11:48:47]process_action close_receipt [11:48:47]cmd_close_receipt [11:48:47]MH_GetDate [11:48:47]Write to MH i2c: F0 00 00 B5 19 BD [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: F0 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: F0 09 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: F0 09 00 B5 19 00 20 EE 14 67 E7 19 F8 65 AC [11:48:47]GetLastDocTimeStamp 1729424883 [11:48:47]current date 1729424928 [11:48:47]FM_GetShiftState [11:48:47]SAM_PROTO_GetShiftState [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 13 01 00 [11:48:47]Write to MH i2c: E2 08 00 B6 19 80 13 01 00 00 00 00 00 4C [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 0E 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 0E 00 B6 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 91 [11:48:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:48:47]wFMCommunicate OK [11:48:47]SAM_PROTO_GetShiftState done [11:48:47]FM_GetShiftState done [11:48:47]opened in 1729384303 [11:48:47]opened+sec_in_day 1729470703 [11:48:47]quantity*price = 50041 [11:48:47]sum+1 = 50042 [11:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 118 20.10.2024 11:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73792 ФПД: 51792879601615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114848&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73792&fm=51792879601615&tin=02508201610067®Number=0000000000161154&sum=50000 [11:48:48]StoreToDocumentArchive [11:48:48]shift 170 fd 73792 [11:48:48]save to /storage/0170/doc_00073792 [11:48:48]save last doc name /storage/0170/doc_00073792 to /storage/kkm_last_doc_name [11:48:48]save OK [11:48:48]Clear old archive folders... [11:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:48]tlvbuf is B6F40940 [11:48:48]SAM_PROTO_ClearQueue [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 09 00 00 [11:48:48]Write to MH i2c: E2 08 00 C3 19 80 09 00 00 00 00 00 00 4E [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [11:48:48]RAPDU: 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_ClearQueue done [11:48:48]KKMCreateOFDPacket [11:48:48]OFDProtocolAddRootSTLVToBuf [11:48:48]FM_MakeSignedData [11:48:48]FM_MakeSignedData [11:48:48]SAM_PROTO_SignData [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 0D 01 02 [11:48:48]Write to MH i2c: E2 08 00 C4 19 80 0D 01 02 00 00 00 00 56 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [11:48:48]RAPDU: 90 00 [11:48:48]wFMCommunicate OK [11:48:48]wFMCommunicate request_size=255 [11:48:48]MH_SAM_APDU [11:48:48]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 76 00 00 00 F4 03 04 00 20 EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 20 01 00 35 04 06 00 2F [11:48:48]Write to MH i2c: E2 02 01 C5 19 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 76 00 00 00 F4 03 04 00 20 EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 20 01 00 35 04 06 00 2F 00 00 11 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [11:48:48]RAPDU: 90 00 [11:48:48]wFMCommunicate OK [11:48:48]wFMCommunicate request_size=10 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 0D 02 02 05 1A F8 30 C7 CF [11:48:48]Write to MH i2c: E2 0D 00 C6 19 80 0D 02 02 05 00 1A F8 30 C7 CF 00 00 3B [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [11:48:48]RAPDU: 90 00 [11:48:48]wFMCommunicate OK [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 0D 03 02 [11:48:48]Write to MH i2c: E2 08 00 C7 19 80 0D 03 02 00 00 00 00 5B [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0B 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0B 00 C7 19 00 53 86 0A B8 BE EF A6 EB 90 00 35 [11:48:48]RAPDU: 53 86 0A B8 BE EF A6 EB 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_SignData done [11:48:48]FM_MakeSignedData done [11:48:48]CreateOFDProtocolMessage [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 11 00 00 [11:48:48]Write to MH i2c: E2 08 00 C8 19 80 11 00 00 00 00 00 00 5B [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 17 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 17 00 C8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A8 [11:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:48:48]wFMCommunicate OK [11:48:48]CreateOFDProtocolMessage done [11:48:48]OFDSenderStorePacket 73792 [11:48:48]StoreOFDPacket docnum=73792 [11:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A8 06 07 01 C7 86 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 76 00 00 00 F4 03 04 00 20 EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 20 01 00 35 04 06 00 2F 1A F8 30 C7 CF 53 86 0A B8 BE EF A6 EB [11:48:48]CheckFolder [11:48:48]dirname=/storage/ofd_packets [11:48:48]CheckFolder done [11:48:48]ProducePacketName [11:48:48]name=ofd_packets/00073792 [11:48:48]NVStorageSaveData ofd_packets/00073792 [11:48:48]File name is /storage/ofd_packets/00073792 [11:48:48]Write 301 bytes [11:48:48]NVStorageSaveData done [11:48:48]OFDSenderStorePacket done [11:48:48]KKMCreateOFDPacket done [11:48:48]NVStorageSaveData kkm_last_timestamp [11:48:48]File name is /storage/kkm_last_timestamp [11:48:48]Write 4 bytes [11:48:48]NVStorageSaveData done [11:48:48]ExternCall_PrintAddStr [11:48:48]wPrintStart [11:48:48]Write to MH i2c: 01 00 00 C9 19 E2 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 C9 19 00 00 00 00 00 FF 0F F7 [11:48:48]RasterBufferAndPrint [11:48:48]line Счет N : (1)1962907 [11:48:48]line ИНН: 02508201610067 [11:48:48]line Контрольно-Кассовый Чек [11:48:48]line ПРОДАЖА [11:48:48]line ТРК (МРК, ГНК) : 63 [11:48:48]line Товар: 2710124130 [11:48:48]line Аи-92-К-5 [11:48:48]line 7.480 * 66.90 [11:48:48]line = 500.41 [11:48:48]line НДС 12% НСП 1% [11:48:48]line > о реализуемом товаре [11:48:48]line ОКРУГЛЕНИЕ: -0.41 [11:48:48]line ИТОГО: 500.00 [11:48:48]line Внесено: 500.00 [11:48:48]line СДАЧА: 0.00 [11:48:48]line НСП 1% : 4.43 [11:48:48]line НДС 12% : 53.14 [11:48:48]line Наличными: 500.00 [11:48:48]line Безнал.: 0.00 [11:48:48]line Место: АЗС № 133 "Партнер Нефть" [11:48:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:48:48]line СНО: Общий режим [11:48:48]line Чек 118 20.10.2024 11:48 [11:48:48]line Смена: 170 ФФД: 1.0 [11:48:49]line ЗНМ: 0300000020 [11:48:49]line РНМ: 0000000000161154 [11:48:49]line Версия ККМ: v1.0 [11:48:49]line ФМ: 0000000000963323 [11:48:49]line ФД: 73792 [11:48:49]line ФПД: 51792879601615 [11:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114848&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73792&fm=51792879601615&tin=02508201610067®Number=0000000000161154&sum=50000 [11:48:49]OFD Sender: Processing packet 73792 [packets to send 15, broken 14] [11:48:49]ProducePacketName [11:48:49]name=ofd_packets/00073792 [11:48:49]OFD Sender: To server: pG, [11:48:49]CommunicateWithHost lk.salyk.kg:30040 [11:48:49]ConnectInit lk.salyk.kg [11:48:49]written 0, free lines is 4095 [11:48:49]Connected sock=10 [11:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A8 06 07 01 C7 86 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 76 00 00 00 F4 03 04 00 20 EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 20 01 00 35 04 06 00 2F 1A F8 30 C7 CF 53 86 0A B8 BE EF A6 EB [11:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 48 8A 47 00 F8 D3 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 39 36 33 33 32 33 10 04 04 00 40 20 01 00 F4 03 04 00 05 97 14 67 B6 04 01 00 00 C7 50 2C E3 52 3F 05 DD [11:48:49]CommunicateWithHost err = 0 [11:48:49]CheckOFDResponse [11:48:49]1017 (14) - 77093643461234 [11:48:49]1041 (16) - 0000000000963323 [11:48:49]1040 (4) - 73792 [11:48:49]1012 (4) - 20.10.2024 05:37 [11:48:49]1206 (1) - 0 [11:48:49]OFD Sender: Remove packet 73792 [11:48:49]ProducePacketName [11:48:49]name=ofd_packets/00073792 [11:48:49]NVStorageDeleteData [11:48:49]Write to MH i2c: 01 00 00 F3 19 0C [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: 01 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: 01 07 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 B3 0C D2 [11:48:49]RasterBufferAndPrint [11:48:49]line [11:48:49]line [11:48:49]line [11:48:49]line [11:48:49]line [11:48:49]written 0, free lines is 3255 [11:48:49]MH_Cut [11:48:49]Write to MH i2c: D1 01 00 FA 19 01 E5 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: D1 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: D1 01 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: D1 01 00 FA 19 00 E4 [11:48:49]Write to MH i2c: 01 00 00 FB 19 14 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]OFD Sender: No OFD packet to send [11:48:50]*** Cut start [11:48:50]*** Partial cut [11:48:50]*** CUTSNS_PIN = 1 [11:48:50]*** CUTSNS_PIN = 0 [11:48:50]*** Brake cut motor [11:48:51]Read from MH i2c: 01 [11:48:51]MH_I2C_Read... [11:48:51]*** Stop cut motor [11:48:51]*** Cut end [11:48:51]Read from MH i2c: 01 07 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FF 0F 29 [11:48:51]process_action close_receipt done [11:48:51]requested_data is exist [11:48:51]produce_requested_data [11:48:51]requested_item fm.sn is exist - process it [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 11 00 00 [11:48:51]Write to MH i2c: E2 08 00 FC 19 80 11 00 00 00 00 00 00 8F [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 17 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 17 00 FC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [11:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:48:51]wFMCommunicate OK [11:48:51]requested_item fd.num is exist - process it [11:48:51]SAM_PROTO_GetFieldsCounters [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 00 00 [11:48:51]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 62 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 62 00 FD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 40 20 01 00 0E 04 04 00 AA 00 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 13 [11:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 40 20 01 00 0E 04 04 00 AA 00 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 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetFieldsCounters done [11:48:51]requested_item shift.num is exist - process it [11:48:51]requested_item shift.opened is exist - process it [11:48:51]req_shift_opened [11:48:51]FM_GetShiftState [11:48:51]SAM_PROTO_GetShiftState [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 01 00 [11:48:51]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D9 [11:48:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetShiftState done [11:48:51]FM_GetShiftState done [11:48:51]req_shift_opened done [11:48:51]requested_item shift.open_date is exist - process it [11:48:51]req_shift_open_date [11:48:51]req_shift_open_date done [11:48:51]produce_requested_data done [11:48:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73792,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:48:51]process_action_free close_receipt [11:48:51]json_value_free [11:48:51]json_value_free done [11:48:51]process_json_proto returns [11:48:51]Send response to host [11:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73792,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:48:51]free response buf [11:48:51]execute_script done [11:48:51]execute_script returns [11:48:51]free content buf [11:48:51]Sock 9.Close socket [11:48:51]Sock 9.Thread stoped [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:51]accept exits with 8 [11:50:51]New connection [11:50:51]New thread 3067432292 created [11:50:51]Thread 3067575652 joined [11:50:51]Waiting for new connection... [11:50:51] Sock 8.Parse request [11:50:51]Sock 8.Check first char [11:50:51]Sock 8.First char is OK [11:50:51]request: POST /json_proto HTTP/1.0 [11:50:51]Method: POST [11:50:51]URL: /json_proto [11:50:51]Method is POST - this is cgi request [11:50:51]url: /json_proto [11:50:51]query_string will be loaded in cgi processing [11:50:51]execute_cgi json_proto POST (null) [11:50:51]execute_cgi path=json_proto method=POST [11:50:51]POST find Content-Length [11:50:51]Host: 172.17.44.196:8080 [11:50:51]Content-Length: 629 [11:50:51]Content-Type: application/json [11:50:51] [11:50:51]POST finish read [11:50:51]Found Content-Length = 629 [11:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272772", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact Mix", "price" : 130.00, "quantity" : 2.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" ] } } [11:50:51]execute_script... [11:50: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)272772", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact Mix", "price" : 130.00, "quantity" : 2.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" ] } } [11:50:51]POST & json_proto [11:50:51]process_json_proto [11:50:51]json parsed OK: [11:50:51]protocol is kg_v1.0 [11:50:51]action value=close_receipt [11:50:51]process_action close_receipt [11:50:51]cmd_close_receipt [11:50:51]MH_GetDate [11:50:51]Write to MH i2c: F0 00 00 FF 19 07 [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: F0 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: F0 09 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: F0 09 00 FF 19 00 9D EE 14 67 E7 19 F8 65 73 [11:50:51]GetLastDocTimeStamp 1729424928 [11:50:51]current date 1729425053 [11:50:51]FM_GetShiftState [11:50:51]SAM_PROTO_GetShiftState [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 13 01 00 [11:50:51]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0E 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DC [11:50:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:50:51]wFMCommunicate OK [11:50:51]SAM_PROTO_GetShiftState done [11:50:51]FM_GetShiftState done [11:50:51]opened in 1729384303 [11:50:51]opened+sec_in_day 1729470703 [11:50:51]quantity*price = 26000 [11:50:51]sum+1 = 26001 [11:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 119 20.10.2024 11:50 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73793 ФПД: 186906131956120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115053&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73793&fm=186906131956120&tin=02508201610067®Number=0000000000161154&sum=26000 0 [11:50:53]StoreToDocumentArchive [11:50:53]shift 170 fd 73793 [11:50:53]save to /storage/0170/doc_00073793 [11:50:53]save last doc name /storage/0170/doc_00073793 to /storage/kkm_last_doc_name [11:50:53]save OK [11:50:53]Clear old archive folders... [11:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=281 [11:50:53]tlvbuf is 00323160 [11:50:53]SAM_PROTO_ClearQueue [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 09 00 00 [11:50:53]Write to MH i2c: E2 08 00 0D 1A 80 09 00 00 00 00 00 00 99 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [11:50:53]RAPDU: 90 00 [11:50:53]wFMCommunicate OK [11:50:53]SAM_PROTO_ClearQueue done [11:50:53]KKMCreateOFDPacket [11:50:53]OFDProtocolAddRootSTLVToBuf [11:50:53]FM_MakeSignedData [11:50:53]FM_MakeSignedData [11:50:53]SAM_PROTO_SignData [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 0D 01 02 [11:50:53]Write to MH i2c: E2 08 00 0E 1A 80 0D 01 02 00 00 00 00 A1 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [11:50:53]RAPDU: 90 00 [11:50:53]wFMCommunicate OK [11:50:53]wFMCommunicate request_size=255 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 77 00 00 00 F4 03 04 00 9D EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 [11:50:53]Write to MH i2c: E2 02 01 0F 1A 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 77 00 00 00 F4 03 04 00 9D EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 EC [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [11:50:53]RAPDU: 90 00 [11:50:53]wFMCommunicate OK [11:50:53]wFMCommunicate request_size=40 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 20 01 00 35 04 06 00 A9 FD 79 9A 01 98 [11:50:53]Write to MH i2c: E2 2B 00 10 1A 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 20 01 00 35 04 06 00 A9 FD 79 9A 01 98 00 00 0F [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [11:50:53]RAPDU: 90 00 [11:50:53]wFMCommunicate OK [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 0D 03 02 [11:50:53]Write to MH i2c: E2 08 00 11 1A 80 0D 03 02 00 00 00 00 A6 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0B 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0B 00 11 1A 00 40 82 83 BC B6 02 8B 5F 90 00 4A [11:50:53]RAPDU: 40 82 83 BC B6 02 8B 5F 90 00 [11:50:53]wFMCommunicate OK [11:50:53]SAM_PROTO_SignData done [11:50:53]FM_MakeSignedData done [11:50:53]CreateOFDProtocolMessage [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 11 00 00 [11:50:53]Write to MH i2c: E2 08 00 12 1A 80 11 00 00 00 00 00 00 A6 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 17 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 17 00 12 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F3 [11:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:50:53]wFMCommunicate OK [11:50:53]CreateOFDProtocolMessage done [11:50:53]OFDSenderStorePacket 73793 [11:50:53]StoreOFDPacket docnum=73793 [11:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 7E 1C 25 01 BB 56 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 77 00 00 00 F4 03 04 00 9D EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 20 01 00 35 04 06 00 A9 FD 79 9A 01 98 40 82 83 BC B6 02 8B 5F [11:50:53]CheckFolder [11:50:53]dirname=/storage/ofd_packets [11:50:53]CheckFolder done [11:50:53]ProducePacketName [11:50:53]name=ofd_packets/00073793 [11:50:53]NVStorageSaveData ofd_packets/00073793 [11:50:53]File name is /storage/ofd_packets/00073793 [11:50:53]Write 331 bytes [11:50:53]NVStorageSaveData done [11:50:53]OFDSenderStorePacket done [11:50:53]KKMCreateOFDPacket done [11:50:53]NVStorageSaveData kkm_last_timestamp [11:50:53]File name is /storage/kkm_last_timestamp [11:50:53]Write 4 bytes [11:50:53]NVStorageSaveData done [11:50:53]ExternCall_PrintAddStr [11:50:53]wPrintStart [11:50:53]Write to MH i2c: 01 00 00 13 1A 2D [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 FF 0F 42 [11:50:53]RasterBufferAndPrint [11:50:53]line Счет N : (3)272772 [11:50:53]line ИНН: 02508201610067 [11:50:53]line Контрольно-Кассовый Чек [11:50:53]line ПРОДАЖА [11:50:53]line Товар: 48745307 [11:50:53]line Сигареты Parliament Soho Compact Mix [11:50:53]line 2.000 * 130.00 [11:50:53]line = 260.00 [11:50:53]line НДС 12% НСП 1% [11:50:53]line > о реализуемом товаре [11:50:53]line ИТОГО: 260.00 [11:50:53]line НСП 1% : 2.30 [11:50:53]line НДС 12% : 27.61 [11:50:53]line Наличными: 260.00 [11:50:53]line Безнал.: 0.00 [11:50:53]line Место: АЗС № 133 "Партнер Нефть" [11:50:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:50:53]line СНО: Общий режим [11:50:53]line Чек 119 20.10.2024 11:50 [11:50:53]line Смена: 170 ФФД: 1.0 [11:50:53]line ЗНМ: 0300000020 [11:50:53]line РНМ: 0000000000161154 [11:50:53]line Версия ККМ: v1.0 [11:50:53]line ФМ: 0000000000963323 [11:50:53]line ФД: 73793 [11:50:53]line ФПД: 186906131956120 [11:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115053&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73793&fm=186906131956120&tin=02508201610067®Number=0000000000161154&sum=26000 [11:50:53]line 0 [11:50:53]OFD Sender: Processing packet 73793 [packets to send 15, broken 14] [11:50:53]ProducePacketName [11:50:53]name=ofd_packets/00073793 [11:50:53]OFD Sender: To server: pG, [11:50:53]CommunicateWithHost lk.salyk.kg:30040 [11:50:53]ConnectInit lk.salyk.kg [11:50:53]written 0, free lines is 4095 [11:50:54]Connected sock=10 [11:50:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 7E 1C 25 01 BB 56 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 77 00 00 00 F4 03 04 00 9D EE 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 20 01 00 35 04 06 00 A9 FD 79 9A 01 98 40 82 83 BC B6 02 8B 5F [11:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D7 A8 47 00 99 C5 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 39 36 33 33 32 33 10 04 04 00 41 20 01 00 F4 03 04 00 82 97 14 67 B6 04 01 00 00 B0 2C 00 FF FC A4 D7 42 [11:50:54]CommunicateWithHost err = 0 [11:50:54]CheckOFDResponse [11:50:54]1017 (14) - 77093643461234 [11:50:54]1041 (16) - 0000000000963323 [11:50:54]1040 (4) - 73793 [11:50:54]1012 (4) - 20.10.2024 05:39 [11:50:54]1206 (1) - 0 [11:50:54]OFD Sender: Remove packet 73793 [11:50:54]ProducePacketName [11:50:54]name=ofd_packets/00073793 [11:50:54]NVStorageDeleteData [11:50:54]Write to MH i2c: 01 00 00 3B 1A 55 [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 07 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 E2 0C 4A [11:50:54]RasterBufferAndPrint [11:50:54]line [11:50:54]line [11:50:54]line [11:50:54]line [11:50:54]line [11:50:54]written 0, free lines is 3304 [11:50:54]MH_Cut [11:50:54]Write to MH i2c: D1 01 00 42 1A 01 2E [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: D1 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: D1 01 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: D1 01 00 42 1A 00 2D [11:50:54]Write to MH i2c: 01 00 00 43 1A 5D [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]OFD Sender: No OFD packet to send [11:50:55]*** Cut start [11:50:55]*** Partial cut [11:50:55]*** CUTSNS_PIN = 1 [11:50:55]*** CUTSNS_PIN = 0 [11:50:55]*** Brake cut motor [11:50:55]Read from MH i2c: 01 [11:50:55]MH_I2C_Read... [11:50:55]*** Stop cut motor [11:50:55]*** Cut end [11:50:55]Read from MH i2c: 01 07 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: 01 07 00 43 1A 00 00 00 00 00 FF 0F 72 [11:50:55]process_action close_receipt done [11:50:55]requested_data is exist [11:50:55]produce_requested_data [11:50:55]requested_item fm.sn is exist - process it [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 11 00 00 [11:50:55]Write to MH i2c: E2 08 00 44 1A 80 11 00 00 00 00 00 00 D8 [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 17 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 17 00 44 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [11:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:50:55]wFMCommunicate OK [11:50:55]requested_item fd.num is exist - process it [11:50:55]SAM_PROTO_GetFieldsCounters [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 13 00 00 [11:50:55]Write to MH i2c: E2 08 00 45 1A 80 13 00 00 00 00 00 00 DB [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:56]Read from MH i2c: E2 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 62 00 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 62 00 45 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 41 20 01 00 0E 04 04 00 AA 00 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 60 [11:50:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 41 20 01 00 0E 04 04 00 AA 00 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 [11:50:56]wFMCommunicate OK [11:50:56]SAM_PROTO_GetFieldsCounters done [11:50:56]requested_item shift.num is exist - process it [11:50:56]requested_item shift.opened is exist - process it [11:50:56]req_shift_opened [11:50:56]FM_GetShiftState [11:50:56]SAM_PROTO_GetShiftState [11:50:56]wFMCommunicate request_size=4 [11:50:56]MH_SAM_APDU [11:50:56]CAPDU: 80 13 01 00 [11:50:56]Write to MH i2c: E2 08 00 46 1A 80 13 01 00 00 00 00 00 DD [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:56]Read from MH i2c: E2 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 0E 00 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 0E 00 46 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 22 [11:50:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:50:56]wFMCommunicate OK [11:50:56]SAM_PROTO_GetShiftState done [11:50:56]FM_GetShiftState done [11:50:56]req_shift_opened done [11:50:56]requested_item shift.open_date is exist - process it [11:50:56]req_shift_open_date [11:50:56]req_shift_open_date done [11:50:56]produce_requested_data done [11:50:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73793,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:50:56]process_action_free close_receipt [11:50:56]json_value_free [11:50:56]json_value_free done [11:50:56]process_json_proto returns [11:50:56]Send response to host [11:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73793,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:50:56]free response buf [11:50:56]execute_script done [11:50:56]execute_script returns [11:50:56]free content buf [11:50:56]Sock 8.Close socket [11:50:56]Sock 8.Thread stoped [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:11]accept exits with 9 [11:53:11]New connection [11:53:11]New thread 3067575652 created [11:53:11]Thread 3067432292 joined [11:53:11]Waiting for new connection... [11:53:11] Sock 9.Parse request [11:53:11]Sock 9.Check first char [11:53:11]Sock 9.First char is OK [11:53:11]request: POST /json_proto HTTP/1.0 [11:53:11]Method: POST [11:53:11]URL: /json_proto [11:53:11]Method is POST - this is cgi request [11:53:11]url: /json_proto [11:53:11]query_string will be loaded in cgi processing [11:53:11]execute_cgi json_proto POST (null) [11:53:11]execute_cgi path=json_proto method=POST [11:53:11]POST find Content-Length [11:53:11]Host: 172.17.44.196:8080 [11:53:11]Content-Length: 931 [11:53:11]Content-Type: application/json [11:53:11] [11:53:11]POST finish read [11:53:11]Found Content-Length = 931 [11:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272773", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:11]execute_script... [11:53: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)272773", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:11]POST & json_proto [11:53:11]process_json_proto [11:53:11]json parsed OK: [11:53:11]protocol is kg_v1.0 [11:53:11]action value=close_receipt [11:53:11]process_action close_receipt [11:53:11]cmd_close_receipt [11:53:11]MH_GetDate [11:53:11]Write to MH i2c: F0 00 00 47 1A 50 [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: F0 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: F0 09 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: F0 09 00 47 1A 00 28 EF 14 67 E7 19 F8 65 48 [11:53:11]GetLastDocTimeStamp 1729425053 [11:53:11]current date 1729425192 [11:53:11]FM_GetShiftState [11:53:11]SAM_PROTO_GetShiftState [11:53:11]wFMCommunicate request_size=4 [11:53:11]MH_SAM_APDU [11:53:11]CAPDU: 80 13 01 00 [11:53:11]Write to MH i2c: E2 08 00 48 1A 80 13 01 00 00 00 00 00 DF [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:11]Read from MH i2c: E2 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: E2 0E 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: E2 0E 00 48 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 24 [11:53:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:53:11]wFMCommunicate OK [11:53:11]SAM_PROTO_GetShiftState done [11:53:11]FM_GetShiftState done [11:53:11]opened in 1729384303 [11:53:11]opened+sec_in_day 1729470703 [11:53:11]quantity*price = 11000 [11:53:11]sum+1 = 11001 [11:53:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 120 20.10.2024 11:53 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73794 ФПД: 73966828089274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115312&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73794&fm=73966828089274&tin=02508201610067®Number=0000000000161154&sum=12000 0 [11:53:12]StoreToDocumentArchive [11:53:12]shift 170 fd 73794 [11:53:12]save to /storage/0170/doc_00073794 [11:53:12]save last doc name /storage/0170/doc_00073794 to /storage/kkm_last_doc_name [11:53:12]save OK [11:53:12]Clear old archive folders... [11:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=403 [11:53:12]tlvbuf is 0039D710 [11:53:12]SAM_PROTO_ClearQueue [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 09 00 00 [11:53:12]Write to MH i2c: E2 08 00 55 1A 80 09 00 00 00 00 00 00 E1 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 55 1A 00 90 00 E3 [11:53:12]RAPDU: 90 00 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_ClearQueue done [11:53:12]KKMCreateOFDPacket [11:53:12]OFDProtocolAddRootSTLVToBuf [11:53:12]FM_MakeSignedData [11:53:12]FM_MakeSignedData [11:53:12]SAM_PROTO_SignData [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 0D 01 02 [11:53:12]Write to MH i2c: E2 08 00 56 1A 80 0D 01 02 00 00 00 00 E9 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 56 1A 00 90 00 E4 [11:53:12]RAPDU: 90 00 [11:53:12]wFMCommunicate OK [11:53:12]wFMCommunicate request_size=255 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 0D 02 02 FA 03 00 93 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 [11:53:12]Write to MH i2c: E2 02 01 57 1A 80 0D 02 02 FA 00 03 00 93 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 67 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 57 1A 00 90 00 E5 [11:53:12]RAPDU: 90 00 [11:53:12]wFMCommunicate OK [11:53:12]wFMCommunicate request_size=162 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 28 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 20 01 00 35 04 06 00 43 45 BE 83 6F BA [11:53:12]Write to MH i2c: E2 A5 00 58 1A 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 28 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 20 01 00 35 04 06 00 43 45 BE 83 6F BA 00 00 D5 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [11:53:12]RAPDU: 90 00 [11:53:12]wFMCommunicate OK [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 0D 03 02 [11:53:12]Write to MH i2c: E2 08 00 59 1A 80 0D 03 02 00 00 00 00 EE [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0B 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0B 00 59 1A 00 B6 2D EC 9F 3D 57 BD A7 90 00 55 [11:53:12]RAPDU: B6 2D EC 9F 3D 57 BD A7 90 00 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_SignData done [11:53:12]FM_MakeSignedData done [11:53:12]CreateOFDProtocolMessage [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 11 00 00 [11:53:12]Write to MH i2c: E2 08 00 5A 1A 80 11 00 00 00 00 00 00 EE [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 17 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 17 00 5A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [11:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:53:12]wFMCommunicate OK [11:53:12]CreateOFDProtocolMessage done [11:53:12]OFDSenderStorePacket 73794 [11:53:12]StoreOFDPacket docnum=73794 [11:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A7 01 00 00 70 25 9F 01 F3 12 5A 03 01 00 03 00 93 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 28 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 20 01 00 35 04 06 00 43 45 BE 83 6F BA B6 2D EC 9F 3D 57 BD A7 [11:53:12]CheckFolder [11:53:12]dirname=/storage/ofd_packets [11:53:12]CheckFolder done [11:53:12]ProducePacketName [11:53:12]name=ofd_packets/00073794 [11:53:12]NVStorageSaveData ofd_packets/00073794 [11:53:12]File name is /storage/ofd_packets/00073794 [11:53:12]Write 453 bytes [11:53:12]NVStorageSaveData done [11:53:12]OFDSenderStorePacket done [11:53:12]KKMCreateOFDPacket done [11:53:12]NVStorageSaveData kkm_last_timestamp [11:53:13]File name is /storage/kkm_last_timestamp [11:53:13]Write 4 bytes [11:53:13]NVStorageSaveData done [11:53:13]ExternCall_PrintAddStr [11:53:13]wPrintStart [11:53:13]Write to MH i2c: 01 00 00 5B 1A 75 [11:53:13]OFD Sender: Processing packet 73794 [packets to send 15, broken 14] [11:53:13]ProducePacketName [11:53:13]name=ofd_packets/00073794 [11:53:13]OFD Sender: To server: pG, [11:53:13]CommunicateWithHost lk.salyk.kg:30040 [11:53:13]ConnectInit lk.salyk.kg [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 FF 0F 8A [11:53:13]RasterBufferAndPrint [11:53:13]line Счет N : (3)272773 [11:53:13]line ИНН: 02508201610067 [11:53:13]line Контрольно-Кассовый Чек [11:53:13]line ПРОДАЖА [11:53:13]line Товар: 4870022003305 [11:53:13]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:53:13]line 1.000 * 110.00 [11:53:13]line = 110.00 [11:53:13]line НДС 12% НСП 1% [11:53:13]line > о реализуемом товаре [11:53:13]line Товар: 46226617 [11:53:13]line Mentos ПВ Нежная Мята 6*100*2г [11:53:13]line 1.000 * 10.00 [11:53:13]line = 10.00 [11:53:13]line НДС 12% НСП 1% [11:53:13]line > о реализуемом товаре [11:53:13]line ИТОГО: 120.00 [11:53:13]line НСП 1% : 1.06 [11:53:13]line НДС 12% : 12.74 [11:53:13]line Наличными: 120.00 [11:53:13]line Безнал.: 0.00 [11:53:13]line Место: АЗС № 133 "Партнер Нефть" [11:53:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:53:13]line СНО: Общий режим [11:53:13]line Чек 120 20.10.2024 11:53 [11:53:13]line Смена: 170 ФФД: 1.0 [11:53:13]line ЗНМ: 0300000020 [11:53:13]line РНМ: 0000000000161154 [11:53:13]line Версия ККМ: v1.0 [11:53:13]line ФМ: 0000000000963323 [11:53:13]line ФД: 73794 [11:53:13]line ФПД: 73966828089274 [11:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115312&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73794&fm=73966828089274&tin=02508201610067®Number=0000000000161154&sum=12000 [11:53:13]line 0 [11:53:13]written 0, free lines is 4095 [11:53:13]Connected sock=10 [11:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A7 01 00 00 70 25 9F 01 F3 12 5A 03 01 00 03 00 93 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 28 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 20 01 00 35 04 06 00 43 45 BE 83 6F BA B6 2D EC 9F 3D 57 BD A7 [11:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1C 81 47 00 72 07 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 39 36 33 33 32 33 10 04 04 00 42 20 01 00 F4 03 04 00 0D 98 14 67 B6 04 01 00 00 48 08 52 F0 75 50 4C F4 [11:53:13]CommunicateWithHost err = 0 [11:53:13]CheckOFDResponse [11:53:13]1017 (14) - 77093643461234 [11:53:13]1041 (16) - 0000000000963323 [11:53:13]1040 (4) - 73794 [11:53:13]1012 (4) - 20.10.2024 05:41 [11:53:13]1206 (1) - 0 [11:53:13]OFD Sender: Remove packet 73794 [11:53:13]ProducePacketName [11:53:13]name=ofd_packets/00073794 [11:53:13]NVStorageDeleteData [11:53:13]Write to MH i2c: 01 00 00 8A 1A A4 [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 8A 1A 00 00 00 00 00 51 0C 08 [11:53:13]RasterBufferAndPrint [11:53:13]line [11:53:13]line [11:53:13]line [11:53:13]line [11:53:13]line [11:53:13]written 0, free lines is 3159 [11:53:13]MH_Cut [11:53:13]Write to MH i2c: D1 01 00 91 1A 01 7D [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: D1 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: D1 01 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: D1 01 00 91 1A 00 7C [11:53:13]Write to MH i2c: 01 00 00 92 1A AC [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:14]OFD Sender: No OFD packet to send [11:53:14]*** Cut start [11:53:14]*** Partial cut [11:53:14]*** CUTSNS_PIN = 1 [11:53:14]*** CUTSNS_PIN = 0 [11:53:14]*** Brake cut motor [11:53:15]Read from MH i2c: 01 [11:53:15]MH_I2C_Read... [11:53:15]*** Stop cut motor [11:53:15]*** Cut end [11:53:15]Read from MH i2c: 01 07 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FF 0F C1 [11:53:15]process_action close_receipt done [11:53:15]requested_data is exist [11:53:15]produce_requested_data [11:53:15]requested_item fm.sn is exist - process it [11:53:15]wFMCommunicate request_size=4 [11:53:15]MH_SAM_APDU [11:53:15]CAPDU: 80 11 00 00 [11:53:15]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:15]Read from MH i2c: E2 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 17 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [11:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:53:15]wFMCommunicate OK [11:53:15]requested_item fd.num is exist - process it [11:53:15]SAM_PROTO_GetFieldsCounters [11:53:15]wFMCommunicate request_size=4 [11:53:15]MH_SAM_APDU [11:53:15]CAPDU: 80 13 00 00 [11:53:15]Write to MH i2c: E2 08 00 94 1A 80 13 00 00 00 00 00 00 2A [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:15]Read from MH i2c: E2 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 62 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 62 00 94 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 42 20 01 00 0E 04 04 00 AA 00 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 B3 [11:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 42 20 01 00 0E 04 04 00 AA 00 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 [11:53:15]wFMCommunicate OK [11:53:15]SAM_PROTO_GetFieldsCounters done [11:53:15]requested_item shift.num is exist - process it [11:53:15]requested_item shift.opened is exist - process it [11:53:15]req_shift_opened [11:53:15]FM_GetShiftState [11:53:15]SAM_PROTO_GetShiftState [11:53:15]wFMCommunicate request_size=4 [11:53:15]MH_SAM_APDU [11:53:15]CAPDU: 80 13 01 00 [11:53:15]Write to MH i2c: E2 08 00 95 1A 80 13 01 00 00 00 00 00 2C [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:15]Read from MH i2c: E2 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 0E 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 0E 00 95 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [11:53:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:53:15]wFMCommunicate OK [11:53:15]SAM_PROTO_GetShiftState done [11:53:15]FM_GetShiftState done [11:53:15]req_shift_opened done [11:53:15]requested_item shift.open_date is exist - process it [11:53:15]req_shift_open_date [11:53:15]req_shift_open_date done [11:53:15]produce_requested_data done [11:53:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73794,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:53:15]process_action_free close_receipt [11:53:15]json_value_free [11:53:15]json_value_free done [11:53:15]process_json_proto returns [11:53:15]Send response to host [11:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73794,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:53:15]free response buf [11:53:15]execute_script done [11:53:15]execute_script returns [11:53:15]free content buf [11:53:15]Sock 9.Close socket [11:53:15]Sock 9.Thread stoped [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:29]accept exits with 8 [11:54:29]New connection [11:54:29]New thread 3067432292 created [11:54:29]Thread 3067575652 joined [11:54:29]Waiting for new connection... [11:54:29] Sock 8.Parse request [11:54:29]Sock 8.Check first char [11:54:29]Sock 8.First char is OK [11:54:29]request: POST /json_proto HTTP/1.0 [11:54:29]Method: POST [11:54:29]URL: /json_proto [11:54:29]Method is POST - this is cgi request [11:54:29]url: /json_proto [11:54:29]query_string will be loaded in cgi processing [11:54:29]execute_cgi json_proto POST (null) [11:54:29]execute_cgi path=json_proto method=POST [11:54:29]POST find Content-Length [11:54:29]Host: 172.17.44.196:8080 [11:54:29]Content-Length: 1074 [11:54:29]Content-Type: application/json [11:54:29] [11:54:29]POST finish read [11:54:29]Found Content-Length = 1074 [11:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272774", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:29]execute_script... [11:54: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)272774", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:29]POST & json_proto [11:54:29]process_json_proto [11:54:29]json parsed OK: [11:54:29]protocol is kg_v1.0 [11:54:29]action value=close_receipt [11:54:29]process_action close_receipt [11:54:29]cmd_close_receipt [11:54:29]MH_GetDate [11:54:29]Write to MH i2c: F0 00 00 96 1A 9F [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: F0 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: F0 09 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: F0 09 00 96 1A 00 76 EF 14 67 E7 19 F8 65 E5 [11:54:29]GetLastDocTimeStamp 1729425192 [11:54:29]current date 1729425270 [11:54:29]FM_GetShiftState [11:54:29]SAM_PROTO_GetShiftState [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 13 01 00 [11:54:29]Write to MH i2c: E2 08 00 97 1A 80 13 01 00 00 00 00 00 2E [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:29]Read from MH i2c: E2 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 0E 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 0E 00 97 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [11:54:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:54:29]wFMCommunicate OK [11:54:29]SAM_PROTO_GetShiftState done [11:54:29]FM_GetShiftState done [11:54:29]opened in 1729384303 [11:54:29]opened+sec_in_day 1729470703 [11:54:29]quantity*price = 18000 [11:54:29]sum+1 = 18001 [11:54:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329951 Напиток Lipton IceTea 1л зел чай Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.91 Наличными: 0.00 Безнал.: 310.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 121 20.10.2024 11:54 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73795 ФПД: 190622353410018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73795&fm=190622353410018&tin=02508201610067®Number=0000000000161154&sum=31000 0 [11:54:30]StoreToDocumentArchive [11:54:30]shift 170 fd 73795 [11:54:30]save to /storage/0170/doc_00073795 [11:54:30]save last doc name /storage/0170/doc_00073795 to /storage/kkm_last_doc_name [11:54:30]save OK [11:54:30]Clear old archive folders... [11:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=413 [11:54:30]tlvbuf is 003CB980 [11:54:30]SAM_PROTO_ClearQueue [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 09 00 00 [11:54:30]Write to MH i2c: E2 08 00 A4 1A 80 09 00 00 00 00 00 00 30 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [11:54:30]RAPDU: 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_ClearQueue done [11:54:30]KKMCreateOFDPacket [11:54:30]OFDProtocolAddRootSTLVToBuf [11:54:30]FM_MakeSignedData [11:54:30]FM_MakeSignedData [11:54:30]SAM_PROTO_SignData [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 0D 01 02 [11:54:30]Write to MH i2c: E2 08 00 A5 1A 80 0D 01 02 00 00 00 00 38 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [11:54:30]RAPDU: 90 00 [11:54:30]wFMCommunicate OK [11:54:30]wFMCommunicate request_size=255 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 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 50 46 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 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 [11:54:30]Write to MH i2c: E2 02 01 A6 1A 80 0D 02 02 FA 00 03 00 9D 01 1E 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 50 46 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 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 00 7C [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [11:54:30]RAPDU: 90 00 [11:54:30]wFMCommunicate OK [11:54:30]wFMCommunicate request_size=172 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 18 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 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 76 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 20 01 00 35 04 06 00 AD 5E B9 A9 47 E2 [11:54:30]Write to MH i2c: E2 AF 00 A7 1A 80 0D 02 02 A7 00 00 01 FC 03 06 00 18 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 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 76 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 20 01 00 35 04 06 00 AD 5E B9 A9 47 E2 00 00 D8 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [11:54:30]RAPDU: 90 00 [11:54:30]wFMCommunicate OK [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 0D 03 02 [11:54:30]Write to MH i2c: E2 08 00 A8 1A 80 0D 03 02 00 00 00 00 3D [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0B 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0B 00 A8 1A 00 79 D2 BC B7 77 38 77 D3 90 00 F5 [11:54:30]RAPDU: 79 D2 BC B7 77 38 77 D3 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_SignData done [11:54:30]FM_MakeSignedData done [11:54:30]CreateOFDProtocolMessage [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 11 00 00 [11:54:30]Write to MH i2c: E2 08 00 A9 1A 80 11 00 00 00 00 00 00 3D [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 17 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 17 00 A9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [11:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:54:31]wFMCommunicate OK [11:54:31]CreateOFDProtocolMessage done [11:54:31]OFDSenderStorePacket 73795 [11:54:31]StoreOFDPacket docnum=73795 [11:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B1 01 00 00 F9 58 A9 01 20 5A 5A 03 01 00 03 00 9D 01 1E 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 50 46 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 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 18 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 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 76 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 20 01 00 35 04 06 00 AD 5E B9 A9 47 E2 79 D2 BC B7 77 38 77 D3 [11:54:31]CheckFolder [11:54:31]dirname=/storage/ofd_packets [11:54:31]CheckFolder done [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00073795 [11:54:31]NVStorageSaveData ofd_packets/00073795 [11:54:31]File name is /storage/ofd_packets/00073795 [11:54:31]Write 463 bytes [11:54:31]NVStorageSaveData done [11:54:31]OFDSenderStorePacket done [11:54:31]KKMCreateOFDPacket done [11:54:31]NVStorageSaveData kkm_last_timestamp [11:54:31]File name is /storage/kkm_last_timestamp [11:54:31]Write 4 bytes [11:54:31]NVStorageSaveData done [11:54:31]ExternCall_PrintAddStr [11:54:31]wPrintStart [11:54:31]Write to MH i2c: 01 00 00 AA 1A C4 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 07 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 FF 0F D9 [11:54:31]RasterBufferAndPrint [11:54:31]line Счет N : (3)272774 [11:54:31]line ИНН: 02508201610067 [11:54:31]line Контрольно-Кассовый Чек [11:54:31]line ПРОДАЖА [11:54:31]line Товар: 5449000176448 [11:54:31]line Сок Piko Pulpy апельсин ПЭТ 1л [11:54:31]line 1.000 * 180.00 [11:54:31]line = 180.00 [11:54:31]line НДС 12% НСП 1% [11:54:31]line > о реализуемом товаре [11:54:31]line Товар: 4870002329951 [11:54:31]line Напиток Lipton IceTea 1л зел чай Regular [11:54:31]line 1.000 * 130.00 [11:54:31]line = 130.00 [11:54:31]line НДС 12% НСП 1% [11:54:31]line > о реализуемом товаре [11:54:31]line ИТОГО: 310.00 [11:54:31]line НСП 1% : 2.74 [11:54:31]line НДС 12% : 32.91 [11:54:31]line Наличными: 0.00 [11:54:31]line Безнал.: 310.00 [11:54:31]line Место: АЗС № 133 "Партнер Нефть" [11:54:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:54:31]line СНО: Общий режим [11:54:31]line Чек 121 20.10.2024 11:54 [11:54:31]line Смена: 170 ФФД: 1.0 [11:54:31]line ЗНМ: 0300000020 [11:54:31]line РНМ: 0000000000161154 [11:54:31]line Версия ККМ: v1.0 [11:54:31]line Платежная система: Mbank [11:54:31]line ФМ: 0000000000963323 [11:54:31]line ФД: 73795 [11:54:31]line ФПД: 190622353410018 [11:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73795&fm=190622353410018&tin=02508201610067®Number=0000000000161154&sum=31000 [11:54:31]line 0 [11:54:31]written 0, free lines is 4095 [11:54:31]OFD Sender: Processing packet 73795 [packets to send 15, broken 14] [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00073795 [11:54:31]OFD Sender: To server: pG, [11:54:31]CommunicateWithHost lk.salyk.kg:30040 [11:54:31]ConnectInit lk.salyk.kg [11:54:31]Connected sock=11 [11:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B1 01 00 00 F9 58 A9 01 20 5A 5A 03 01 00 03 00 9D 01 1E 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 50 46 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 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 18 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 DB 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 76 EF 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 20 01 00 35 04 06 00 AD 5E B9 A9 47 E2 79 D2 BC B7 77 38 77 D3 [11:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AF 91 47 00 85 DA 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 39 36 33 33 32 33 10 04 04 00 43 20 01 00 F4 03 04 00 5B 98 14 67 B6 04 01 00 00 4E BE 13 70 5F A9 0A CB [11:54:31]CommunicateWithHost err = 0 [11:54:31]CheckOFDResponse [11:54:31]1017 (14) - 77093643461234 [11:54:31]1041 (16) - 0000000000963323 [11:54:31]1040 (4) - 73795 [11:54:31]1012 (4) - 20.10.2024 05:42 [11:54:31]1206 (1) - 0 [11:54:31]OFD Sender: Remove packet 73795 [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00073795 [11:54:31]NVStorageDeleteData [11:54:31]Write to MH i2c: 01 00 00 DA 1A F4 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 07 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: 01 07 00 DA 1A 00 00 00 00 00 3D 0C 44 [11:54:31]RasterBufferAndPrint [11:54:31]line [11:54:31]line [11:54:31]line [11:54:31]line [11:54:31]line [11:54:31]written 0, free lines is 3137 [11:54:31]MH_Cut [11:54:31]Write to MH i2c: D1 01 00 E1 1A 01 CD [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: D1 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: D1 01 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: D1 01 00 E1 1A 00 CC [11:54:31]Write to MH i2c: 01 00 00 E2 1A FC [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:32]OFD Sender: No OFD packet to send [11:54:32]*** Cut start [11:54:32]*** Partial cut [11:54:32]*** CUTSNS_PIN = 1 [11:54:32]*** CUTSNS_PIN = 0 [11:54:33]*** Brake cut motor [11:54:33]Read from MH i2c: 01 [11:54:33]MH_I2C_Read... [11:54:33]*** Stop cut motor [11:54:33]*** Cut end [11:54:33]Read from MH i2c: 01 07 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 E2 1A 00 00 00 00 00 FF 0F 11 [11:54:33]process_action close_receipt done [11:54:33]requested_data is exist [11:54:33]produce_requested_data [11:54:33]requested_item fm.sn is exist - process it [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 11 00 00 [11:54:33]Write to MH i2c: E2 08 00 E3 1A 80 11 00 00 00 00 00 00 77 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 E3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C4 [11:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:54:33]wFMCommunicate OK [11:54:33]requested_item fd.num is exist - process it [11:54:33]SAM_PROTO_GetFieldsCounters [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 13 00 00 [11:54:33]Write to MH i2c: E2 08 00 E4 1A 80 13 00 00 00 00 00 00 7A [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 62 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 62 00 E4 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 43 20 01 00 0E 04 04 00 AA 00 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 07 [11:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 43 20 01 00 0E 04 04 00 AA 00 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 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_GetFieldsCounters done [11:54:33]requested_item shift.num is exist - process it [11:54:33]requested_item shift.opened is exist - process it [11:54:33]req_shift_opened [11:54:33]FM_GetShiftState [11:54:33]SAM_PROTO_GetShiftState [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 13 01 00 [11:54:33]Write to MH i2c: E2 08 00 E5 1A 80 13 01 00 00 00 00 00 7C [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0E 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0E 00 E5 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C1 [11:54:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_GetShiftState done [11:54:33]FM_GetShiftState done [11:54:33]req_shift_opened done [11:54:33]requested_item shift.open_date is exist - process it [11:54:33]req_shift_open_date [11:54:33]req_shift_open_date done [11:54:33]produce_requested_data done [11:54:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73795,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:54:33]process_action_free close_receipt [11:54:33]json_value_free [11:54:33]json_value_free done [11:54:33]process_json_proto returns [11:54:33]Send response to host [11:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73795,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:54:33]free response buf [11:54:33]execute_script done [11:54:33]execute_script returns [11:54:33]free content buf [11:54:33]Sock 8.Close socket [11:54:33]Sock 8.Thread stoped [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:50]accept exits with 9 [11:56:50]New connection [11:56:50]New thread 3067575652 created [11:56:50]Thread 3067432292 joined [11:56:50]Waiting for new connection... [11:56:50] Sock 9.Parse request [11:56:50]Sock 9.Check first char [11:56:50]Sock 9.First char is OK [11:56:50]request: POST /json_proto HTTP/1.0 [11:56:50]Method: POST [11:56:50]URL: /json_proto [11:56:50]Method is POST - this is cgi request [11:56:50]url: /json_proto [11:56:50]query_string will be loaded in cgi processing [11:56:50]execute_cgi json_proto POST (null) [11:56:50]execute_cgi path=json_proto method=POST [11:56:50]POST find Content-Length [11:56:50]Host: 172.17.44.196:8080 [11:56:50]Content-Length: 750 [11:56:50]Content-Type: application/json [11:56:50] [11:56:50]POST finish read [11:56:50]Found Content-Length = 750 [11:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272775", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:50]execute_script... [11:56: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)272775", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:50]POST & json_proto [11:56:50]process_json_proto [11:56:50]json parsed OK: [11:56:50]protocol is kg_v1.0 [11:56:50]action value=close_receipt [11:56:50]process_action close_receipt [11:56:50]cmd_close_receipt [11:56:50]MH_GetDate [11:56:50]Write to MH i2c: F0 00 00 E6 1A EF [11:56:50]Write i2c OK [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: F0 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: F0 09 00 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: F0 09 00 E6 1A 00 04 F0 14 67 E7 19 F8 65 C4 [11:56:50]GetLastDocTimeStamp 1729425270 [11:56:50]current date 1729425412 [11:56:50]FM_GetShiftState [11:56:50]SAM_PROTO_GetShiftState [11:56:50]wFMCommunicate request_size=4 [11:56:50]MH_SAM_APDU [11:56:50]CAPDU: 80 13 01 00 [11:56:50]Write to MH i2c: E2 08 00 E7 1A 80 13 01 00 00 00 00 00 7E [11:56:50]Write i2c OK [11:56:50]MH_I2C_Read... [11:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:50]Read from MH i2c: E2 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: E2 0E 00 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: E2 0E 00 E7 1A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C3 [11:56:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:56:50]wFMCommunicate OK [11:56:50]SAM_PROTO_GetShiftState done [11:56:50]FM_GetShiftState done [11:56:50]opened in 1729384303 [11:56:50]opened+sec_in_day 1729470703 [11:56:50]quantity*price = 14000 [11:56:50]sum+1 = 14001 [11:56:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 122 20.10.2024 11:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73796 ФПД: 211991933307299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115652&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73796&fm=211991933307299&tin=02508201610067®Number=0000000000161154&sum=14000 0 [11:56:52]StoreToDocumentArchive [11:56:52]shift 170 fd 73796 [11:56:52]save to /storage/0170/doc_00073796 [11:56:52]save last doc name /storage/0170/doc_00073796 to /storage/kkm_last_doc_name [11:56:52]save OK [11:56:52]Clear old archive folders... [11:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:56:52]tlvbuf is 00373E40 [11:56:52]SAM_PROTO_ClearQueue [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 09 00 00 [11:56:52]Write to MH i2c: E2 08 00 F4 1A 80 09 00 00 00 00 00 00 80 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 F4 1A 00 90 00 82 [11:56:52]RAPDU: 90 00 [11:56:52]wFMCommunicate OK [11:56:52]SAM_PROTO_ClearQueue done [11:56:52]KKMCreateOFDPacket [11:56:52]OFDProtocolAddRootSTLVToBuf [11:56:52]FM_MakeSignedData [11:56:52]FM_MakeSignedData [11:56:52]SAM_PROTO_SignData [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 0D 01 02 [11:56:52]Write to MH i2c: E2 08 00 F5 1A 80 0D 01 02 00 00 00 00 88 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 F5 1A 00 90 00 83 [11:56:52]RAPDU: 90 00 [11:56:52]wFMCommunicate OK [11:56:52]wFMCommunicate request_size=255 [11:56:52]MH_SAM_APDU [11:56:52]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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 04 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [11:56:52]Write to MH i2c: E2 02 01 F6 1A 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 04 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 A4 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]OFD Sender: No OFD packet to send [11:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [11:56:52]RAPDU: 90 00 [11:56:52]wFMCommunicate OK [11:56:52]wFMCommunicate request_size=34 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 20 01 00 35 04 06 00 C0 CE 37 E1 49 A3 [11:56:52]Write to MH i2c: E2 25 00 F7 1A 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 20 01 00 35 04 06 00 C0 CE 37 E1 49 A3 00 00 3D [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [11:56:52]RAPDU: 90 00 [11:56:52]wFMCommunicate OK [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 0D 03 02 [11:56:52]Write to MH i2c: E2 08 00 F8 1A 80 0D 03 02 00 00 00 00 8D [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0B 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0B 00 F8 1A 00 EE 57 DB B8 68 37 34 FA 90 00 33 [11:56:52]RAPDU: EE 57 DB B8 68 37 34 FA 90 00 [11:56:52]wFMCommunicate OK [11:56:52]SAM_PROTO_SignData done [11:56:52]FM_MakeSignedData done [11:56:52]CreateOFDProtocolMessage [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 11 00 00 [11:56:52]Write to MH i2c: E2 08 00 F9 1A 80 11 00 00 00 00 00 00 8D [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 17 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 17 00 F9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DA [11:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:56:52]wFMCommunicate OK [11:56:52]CreateOFDProtocolMessage done [11:56:52]OFDSenderStorePacket 73796 [11:56:52]StoreOFDPacket docnum=73796 [11:56:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 72 9B 1F 01 AD 01 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 04 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 20 01 00 35 04 06 00 C0 CE 37 E1 49 A3 EE 57 DB B8 68 37 34 FA [11:56:52]CheckFolder [11:56:52]dirname=/storage/ofd_packets [11:56:52]CheckFolder done [11:56:52]ProducePacketName [11:56:52]name=ofd_packets/00073796 [11:56:52]NVStorageSaveData ofd_packets/00073796 [11:56:52]File name is /storage/ofd_packets/00073796 [11:56:52]Write 325 bytes [11:56:52]NVStorageSaveData done [11:56:52]OFDSenderStorePacket done [11:56:52]KKMCreateOFDPacket done [11:56:52]NVStorageSaveData kkm_last_timestamp [11:56:52]File name is /storage/kkm_last_timestamp [11:56:52]Write 4 bytes [11:56:52]NVStorageSaveData done [11:56:52]ExternCall_PrintAddStr [11:56:52]wPrintStart [11:56:52]Write to MH i2c: 01 00 00 FA 1A 14 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: 01 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: 01 07 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: 01 07 00 FA 1A 00 00 00 00 00 FF 0F 29 [11:56:52]RasterBufferAndPrint [11:56:52]line Счет N : (3)272775 [11:56:52]line ИНН: 02508201610067 [11:56:52]line Контрольно-Кассовый Чек [11:56:52]line ПРОДАЖА [11:56:52]line Товар: 48743587 [11:56:52]line Сигареты Winston XStyle Silver [11:56:52]line 1.000 * 140.00 [11:56:52]line = 140.00 [11:56:52]line НДС 12% НСП 1% [11:56:52]line > о реализуемом товаре [11:56:52]line ИТОГО: 140.00 [11:56:52]line НСП 1% : 1.24 [11:56:52]line НДС 12% : 14.87 [11:56:52]line Наличными: 0.00 [11:56:52]line Безнал.: 140.00 [11:56:52]line Место: АЗС № 133 "Партнер Нефть" [11:56:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:56:52]line СНО: Общий режим [11:56:52]line Чек 122 20.10.2024 11:56 [11:56:52]line Смена: 170 ФФД: 1.0 [11:56:52]line ЗНМ: 0300000020 [11:56:52]line РНМ: 0000000000161154 [11:56:52]line Версия ККМ: v1.0 [11:56:52]line Платежная система: Mbank [11:56:52]line ФМ: 0000000000963323 [11:56:52]line ФД: 73796 [11:56:52]line ФПД: 211991933307299 [11:56:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115652&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73796&fm=211991933307299&tin=02508201610067®Number=0000000000161154&sum=14000 [11:56:52]line 0 [11:56:52]OFD Sender: Processing packet 73796 [packets to send 15, broken 14] [11:56:52]ProducePacketName [11:56:52]name=ofd_packets/00073796 [11:56:52]OFD Sender: To server: pG, [11:56:52]CommunicateWithHost lk.salyk.kg:30040 [11:56:52]ConnectInit lk.salyk.kg [11:56:52]written 0, free lines is 4095 [11:56:53]Connected sock=10 [11:56:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 72 9B 1F 01 AD 01 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 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 04 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 20 01 00 35 04 06 00 C0 CE 37 E1 49 A3 EE 57 DB B8 68 37 34 FA [11:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3A 0E 47 00 7F 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 39 36 33 33 32 33 10 04 04 00 44 20 01 00 F4 03 04 00 E9 98 14 67 B6 04 01 00 00 FB 71 98 92 6A 24 F3 B8 [11:56:53]CommunicateWithHost err = 0 [11:56:53]CheckOFDResponse [11:56:53]1017 (14) - 77093643461234 [11:56:53]1041 (16) - 0000000000963323 [11:56:53]1040 (4) - 73796 [11:56:53]1012 (4) - 20.10.2024 05:45 [11:56:53]1206 (1) - 0 [11:56:53]OFD Sender: Remove packet 73796 [11:56:53]ProducePacketName [11:56:53]name=ofd_packets/00073796 [11:56:53]NVStorageDeleteData [11:56:53]Write to MH i2c: 01 00 00 23 1B 3E [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 23 1B 00 00 00 00 00 CA 0C 1B [11:56:53]RasterBufferAndPrint [11:56:53]line [11:56:53]line [11:56:53]line [11:56:53]line [11:56:53]line [11:56:53]written 0, free lines is 3280 [11:56:53]MH_Cut [11:56:53]Write to MH i2c: D1 01 00 2A 1B 01 17 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: D1 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: D1 01 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: D1 01 00 2A 1B 00 16 [11:56:53]Write to MH i2c: 01 00 00 2B 1B 46 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]OFD Sender: No OFD packet to send [11:56:54]*** Cut start [11:56:54]*** Partial cut [11:56:54]*** CUTSNS_PIN = 1 [11:56:54]*** CUTSNS_PIN = 0 [11:56:54]*** Brake cut motor [11:56:54]Read from MH i2c: 01 [11:56:54]MH_I2C_Read... [11:56:54]*** Stop cut motor [11:56:54]*** Cut end [11:56:54]Read from MH i2c: 01 07 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 2B 1B 00 00 00 00 00 FF 0F 5B [11:56:54]process_action close_receipt done [11:56:54]requested_data is exist [11:56:54]produce_requested_data [11:56:54]requested_item fm.sn is exist - process it [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 11 00 00 [11:56:54]Write to MH i2c: E2 08 00 2C 1B 80 11 00 00 00 00 00 00 C1 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 2C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0E [11:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:56:54]wFMCommunicate OK [11:56:54]requested_item fd.num is exist - process it [11:56:54]SAM_PROTO_GetFieldsCounters [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 13 00 00 [11:56:54]Write to MH i2c: E2 08 00 2D 1B 80 13 00 00 00 00 00 00 C4 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:55]Read from MH i2c: E2 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 62 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 62 00 2D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 44 20 01 00 0E 04 04 00 AA 00 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 55 [11:56:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 44 20 01 00 0E 04 04 00 AA 00 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 [11:56:55]wFMCommunicate OK [11:56:55]SAM_PROTO_GetFieldsCounters done [11:56:55]requested_item shift.num is exist - process it [11:56:55]requested_item shift.opened is exist - process it [11:56:55]req_shift_opened [11:56:55]FM_GetShiftState [11:56:55]SAM_PROTO_GetShiftState [11:56:55]wFMCommunicate request_size=4 [11:56:55]MH_SAM_APDU [11:56:55]CAPDU: 80 13 01 00 [11:56:55]Write to MH i2c: E2 08 00 2E 1B 80 13 01 00 00 00 00 00 C6 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:55]Read from MH i2c: E2 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 0E 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 0E 00 2E 1B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0B [11:56:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:56:55]wFMCommunicate OK [11:56:55]SAM_PROTO_GetShiftState done [11:56:55]FM_GetShiftState done [11:56:55]req_shift_opened done [11:56:55]requested_item shift.open_date is exist - process it [11:56:55]req_shift_open_date [11:56:55]req_shift_open_date done [11:56:55]produce_requested_data done [11:56:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73796,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:56:55]process_action_free close_receipt [11:56:55]json_value_free [11:56:55]json_value_free done [11:56:55]process_json_proto returns [11:56:55]Send response to host [11:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73796,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:56:55]free response buf [11:56:55]execute_script done [11:56:55]execute_script returns [11:56:55]free content buf [11:56:55]Sock 9.Close socket [11:56:55]Sock 9.Thread stoped [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:10]accept exits with 8 [11:57:10]New connection [11:57:10]New thread 3067432292 created [11:57:10]Thread 3067575652 joined [11:57:10]Waiting for new connection... [11:57:10] Sock 8.Parse request [11:57:10]Sock 8.Check first char [11:57:10]Sock 8.First char is OK [11:57:10]request: POST /json_proto HTTP/1.0 [11:57:10]Method: POST [11:57:10]URL: /json_proto [11:57:10]Method is POST - this is cgi request [11:57:10]url: /json_proto [11:57:10]query_string will be loaded in cgi processing [11:57:10]execute_cgi json_proto POST (null) [11:57:10]execute_cgi path=json_proto method=POST [11:57:10]POST find Content-Length [11:57:10]Host: 172.17.44.196:8080 [11:57:10]Content-Length: 988 [11:57:10]Content-Type: application/json [11:57:10] [11:57:10]POST finish read [11:57:10]Found Content-Length = 988 [11:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272776", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 177.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:10]execute_script... [11:57: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)272776", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 177.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:10]POST & json_proto [11:57:10]process_json_proto [11:57:10]json parsed OK: [11:57:10]protocol is kg_v1.0 [11:57:10]action value=close_receipt [11:57:10]process_action close_receipt [11:57:10]cmd_close_receipt [11:57:10]MH_GetDate [11:57:10]Write to MH i2c: F0 00 00 2F 1B 39 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: F0 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: F0 09 00 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: F0 09 00 2F 1B 00 17 F0 14 67 E7 19 F8 65 21 [11:57:10]GetLastDocTimeStamp 1729425412 [11:57:10]current date 1729425431 [11:57:10]FM_GetShiftState [11:57:10]SAM_PROTO_GetShiftState [11:57:10]wFMCommunicate request_size=4 [11:57:10]MH_SAM_APDU [11:57:10]CAPDU: 80 13 01 00 [11:57:10]Write to MH i2c: E2 08 00 30 1B 80 13 01 00 00 00 00 00 C8 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:10]Read from MH i2c: E2 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: E2 0E 00 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: E2 0E 00 30 1B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0D [11:57:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:57:10]wFMCommunicate OK [11:57:10]SAM_PROTO_GetShiftState done [11:57:10]FM_GetShiftState done [11:57:10]opened in 1729384303 [11:57:10]opened+sec_in_day 1729470703 [11:57:10]quantity*price = 9500 [11:57:10]sum+1 = 9501 [11:57:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483334 Напиток Nitro Fresh Дикие ягоды 1.000 * 82.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 177.00 НСП 1% : 1.57 НДС 12% : 18.80 Наличными: 177.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 123 20.10.2024 11:57 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73797 ФПД: 66962330999740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115711&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73797&fm=66962330999740&tin=02508201610067®Number=0000000000161154&sum=17700 0 [11:57:11]StoreToDocumentArchive [11:57:11]shift 170 fd 73797 [11:57:11]save to /storage/0170/doc_00073797 [11:57:11]save last doc name /storage/0170/doc_00073797 to /storage/kkm_last_doc_name [11:57:11]save OK [11:57:11]Clear old archive folders... [11:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=422 [11:57:11]tlvbuf is B6FF0A90 [11:57:11]SAM_PROTO_ClearQueue [11:57:11]wFMCommunicate request_size=4 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 09 00 00 [11:57:11]Write to MH i2c: E2 08 00 3D 1B 80 09 00 00 00 00 00 00 CA [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [11:57:11]RAPDU: 90 00 [11:57:11]wFMCommunicate OK [11:57:11]SAM_PROTO_ClearQueue done [11:57:11]KKMCreateOFDPacket [11:57:11]OFDProtocolAddRootSTLVToBuf [11:57:11]FM_MakeSignedData [11:57:11]FM_MakeSignedData [11:57:11]SAM_PROTO_SignData [11:57:11]wFMCommunicate request_size=4 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 0D 01 02 [11:57:11]Write to MH i2c: E2 08 00 3E 1B 80 0D 01 02 00 00 00 00 D2 [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [11:57:11]RAPDU: 90 00 [11:57:11]wFMCommunicate OK [11:57:11]wFMCommunicate request_size=255 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 [11:57:11]Write to MH i2c: E2 02 01 3F 1B 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 00 00 8C [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [11:57:11]RAPDU: 90 00 [11:57:11]wFMCommunicate OK [11:57:11]wFMCommunicate request_size=181 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 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 17 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 20 01 00 35 04 06 00 3C E6 E1 F3 DB BC [11:57:11]Write to MH i2c: E2 B8 00 40 1B 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 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 17 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 20 01 00 35 04 06 00 3C E6 E1 F3 DB BC 00 00 90 [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [11:57:11]RAPDU: 90 00 [11:57:11]wFMCommunicate OK [11:57:11]wFMCommunicate request_size=4 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 0D 03 02 [11:57:11]Write to MH i2c: E2 08 00 41 1B 80 0D 03 02 00 00 00 00 D7 [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:12]Read from MH i2c: E2 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 0B 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 0B 00 41 1B 00 A1 4F A0 E7 29 35 BF 0F 90 00 7B [11:57:12]RAPDU: A1 4F A0 E7 29 35 BF 0F 90 00 [11:57:12]wFMCommunicate OK [11:57:12]SAM_PROTO_SignData done [11:57:12]FM_MakeSignedData done [11:57:12]CreateOFDProtocolMessage [11:57:12]wFMCommunicate request_size=4 [11:57:12]MH_SAM_APDU [11:57:12]CAPDU: 80 11 00 00 [11:57:12]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:12]Read from MH i2c: E2 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 17 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 24 [11:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:57:12]wFMCommunicate OK [11:57:12]CreateOFDProtocolMessage done [11:57:12]OFDSenderStorePacket 73797 [11:57:12]StoreOFDPacket docnum=73797 [11:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 BA 01 00 00 A4 DA B2 01 A8 AF 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 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 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 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 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 17 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 20 01 00 35 04 06 00 3C E6 E1 F3 DB BC A1 4F A0 E7 29 35 BF 0F [11:57:12]CheckFolder [11:57:12]dirname=/storage/ofd_packets [11:57:12]CheckFolder done [11:57:12]ProducePacketName [11:57:12]name=ofd_packets/00073797 [11:57:12]NVStorageSaveData ofd_packets/00073797 [11:57:12]File name is /storage/ofd_packets/00073797 [11:57:12]Write 472 bytes [11:57:12]NVStorageSaveData done [11:57:12]OFDSenderStorePacket done [11:57:12]KKMCreateOFDPacket done [11:57:12]NVStorageSaveData kkm_last_timestamp [11:57:12]File name is /storage/kkm_last_timestamp [11:57:12]Write 4 bytes [11:57:12]NVStorageSaveData done [11:57:12]ExternCall_PrintAddStr [11:57:12]wPrintStart [11:57:12]Write to MH i2c: 01 00 00 43 1B 5E [11:57:12]OFD Sender: Processing packet 73797 [packets to send 15, broken 14] [11:57:12]ProducePacketName [11:57:12]name=ofd_packets/00073797 [11:57:12]OFD Sender: To server: pG, [11:57:12]CommunicateWithHost lk.salyk.kg:30040 [11:57:12]ConnectInit lk.salyk.kg [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 07 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 07 00 43 1B 00 00 00 00 00 FF 0F 73 [11:57:12]RasterBufferAndPrint [11:57:12]line Счет N : (3)272776 [11:57:12]line ИНН: 02508201610067 [11:57:12]line Контрольно-Кассовый Чек [11:57:12]line ПРОДАЖА [11:57:12]line Товар: 4700000482740 [11:57:12]line Напиток Nitro Fr газ апельсин ж/б 0,45л [11:57:12]line 1.000 * 95.00 [11:57:12]line = 95.00 [11:57:12]line НДС 12% НСП 1% [11:57:12]line > о реализуемом товаре [11:57:12]line Товар: 4700000483334 [11:57:12]line Напиток Nitro Fresh Дикие ягоды [11:57:12]line 1.000 * 82.00 [11:57:12]line = 82.00 [11:57:12]line НДС 12% НСП 1% [11:57:12]line > о реализуемом товаре [11:57:12]line ИТОГО: 177.00 [11:57:12]line НСП 1% : 1.57 [11:57:12]line НДС 12% : 18.80 [11:57:12]line Наличными: 177.00 [11:57:12]line Безнал.: 0.00 [11:57:12]line Место: АЗС № 133 "Партнер Нефть" [11:57:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:57:12]line СНО: Общий режим [11:57:12]line Чек 123 20.10.2024 11:57 [11:57:12]line Смена: 170 ФФД: 1.0 [11:57:12]line ЗНМ: 0300000020 [11:57:12]line РНМ: 0000000000161154 [11:57:12]line Версия ККМ: v1.0 [11:57:12]line ФМ: 0000000000963323 [11:57:12]line ФД: 73797 [11:57:12]line ФПД: 66962330999740 [11:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115711&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73797&fm=66962330999740&tin=02508201610067®Number=0000000000161154&sum=17700 [11:57:12]line 0 [11:57:12]written 0, free lines is 4095 [11:57:12]Connected sock=10 [11:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 BA 01 00 00 A4 DA B2 01 A8 AF 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 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 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 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 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 17 F0 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 20 01 00 35 04 06 00 3C E6 E1 F3 DB BC A1 4F A0 E7 29 35 BF 0F [11:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 21 45 47 00 02 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 39 36 33 33 32 33 10 04 04 00 45 20 01 00 F4 03 04 00 FC 98 14 67 B6 04 01 00 00 31 13 BF A9 7F 06 5A B4 [11:57:12]CommunicateWithHost err = 0 [11:57:12]CheckOFDResponse [11:57:12]1017 (14) - 77093643461234 [11:57:12]1041 (16) - 0000000000963323 [11:57:12]1040 (4) - 73797 [11:57:12]1012 (4) - 20.10.2024 05:45 [11:57:12]1206 (1) - 0 [11:57:12]OFD Sender: Remove packet 73797 [11:57:12]ProducePacketName [11:57:12]name=ofd_packets/00073797 [11:57:12]NVStorageDeleteData [11:57:12]Write to MH i2c: 01 00 00 72 1B 8D [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 07 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 3E 0C DE [11:57:12]RasterBufferAndPrint [11:57:12]line [11:57:12]line [11:57:12]line [11:57:12]line [11:57:12]line [11:57:12]written 0, free lines is 3138 [11:57:12]MH_Cut [11:57:12]Write to MH i2c: D1 01 00 79 1B 01 66 [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: D1 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: D1 01 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: D1 01 00 79 1B 00 65 [11:57:12]Write to MH i2c: 01 00 00 7A 1B 95 [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:13]OFD Sender: No OFD packet to send [11:57:13]*** Cut start [11:57:13]*** Partial cut [11:57:13]*** CUTSNS_PIN = 1 [11:57:13]*** CUTSNS_PIN = 0 [11:57:14]*** Brake cut motor [11:57:14]Read from MH i2c: 01 [11:57:14]MH_I2C_Read... [11:57:14]*** Stop cut motor [11:57:14]*** Cut end [11:57:14]Read from MH i2c: 01 07 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 FF 0F AA [11:57:14]process_action close_receipt done [11:57:14]requested_data is exist [11:57:14]produce_requested_data [11:57:14]requested_item fm.sn is exist - process it [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 11 00 00 [11:57:14]Write to MH i2c: E2 08 00 7B 1B 80 11 00 00 00 00 00 00 10 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 17 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 17 00 7B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [11:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:57:14]wFMCommunicate OK [11:57:14]requested_item fd.num is exist - process it [11:57:14]SAM_PROTO_GetFieldsCounters [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 13 00 00 [11:57:14]Write to MH i2c: E2 08 00 7C 1B 80 13 00 00 00 00 00 00 13 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 62 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 62 00 7C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 45 20 01 00 0E 04 04 00 AA 00 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 A8 [11:57:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 45 20 01 00 0E 04 04 00 AA 00 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 [11:57:14]wFMCommunicate OK [11:57:14]SAM_PROTO_GetFieldsCounters done [11:57:14]requested_item shift.num is exist - process it [11:57:14]requested_item shift.opened is exist - process it [11:57:14]req_shift_opened [11:57:14]FM_GetShiftState [11:57:14]SAM_PROTO_GetShiftState [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 13 01 00 [11:57:14]Write to MH i2c: E2 08 00 7D 1B 80 13 01 00 00 00 00 00 15 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 0E 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 0E 00 7D 1B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5A [11:57:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [11:57:14]wFMCommunicate OK [11:57:14]SAM_PROTO_GetShiftState done [11:57:14]FM_GetShiftState done [11:57:14]req_shift_opened done [11:57:14]requested_item shift.open_date is exist - process it [11:57:14]req_shift_open_date [11:57:14]req_shift_open_date done [11:57:14]produce_requested_data done [11:57:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73797,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [11:57:14]process_action_free close_receipt [11:57:14]json_value_free [11:57:14]json_value_free done [11:57:14]process_json_proto returns [11:57:14]Send response to host [11:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73797,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [11:57:14]free response buf [11:57:14]execute_script done [11:57:14]execute_script returns [11:57:14]free content buf [11:57:14]Sock 8.Close socket [11:57:14]Sock 8.Thread stoped [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:19]accept exits with 9 [12:02:19]New connection [12:02:19]New thread 3067575652 created [12:02:19]Thread 3067432292 joined [12:02:19]Waiting for new connection... [12:02:19] Sock 9.Parse request [12:02:19]Sock 9.Check first char [12:02:19]Sock 9.First char is OK [12:02:19]request: POST /json_proto HTTP/1.0 [12:02:19]Method: POST [12:02:19]URL: /json_proto [12:02:19]Method is POST - this is cgi request [12:02:19]url: /json_proto [12:02:19]query_string will be loaded in cgi processing [12:02:19]execute_cgi json_proto POST (null) [12:02:19]execute_cgi path=json_proto method=POST [12:02:19]POST find Content-Length [12:02:19]Host: 172.17.44.196:8080 [12:02:19]Content-Length: 646 [12:02:19]Content-Type: application/json [12:02:19] [12:02:19]POST finish read [12:02:19]Found Content-Length = 646 [12:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272777", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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" ] } } [12:02:19]execute_script... [12:02: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 : (3)272777", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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" ] } } [12:02:19]POST & json_proto [12:02:19]process_json_proto [12:02:19]json parsed OK: [12:02:19]protocol is kg_v1.0 [12:02:19]action value=close_receipt [12:02:19]process_action close_receipt [12:02:19]cmd_close_receipt [12:02:19]MH_GetDate [12:02:19]Write to MH i2c: F0 00 00 7E 1B 88 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: F0 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: F0 09 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: F0 09 00 7E 1B 00 4D F1 14 67 E7 19 F8 65 A7 [12:02:19]GetLastDocTimeStamp 1729425431 [12:02:19]current date 1729425741 [12:02:19]FM_GetShiftState [12:02:19]SAM_PROTO_GetShiftState [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 13 01 00 [12:02:19]Write to MH i2c: E2 08 00 7F 1B 80 13 01 00 00 00 00 00 17 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0E 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0E 00 7F 1B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5C [12:02:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_GetShiftState done [12:02:20]FM_GetShiftState done [12:02:20]opened in 1729384303 [12:02:20]opened+sec_in_day 1729470703 [12:02:20]quantity*price = 13000 [12:02:20]sum+1 = 13001 [12:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 124 20.10.2024 12:02 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73798 ФПД: 15559220169533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120221&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73798&fm=15559220169533&tin=02508201610067®Number=0000000000161154&sum=13000 0 [12:02:21]StoreToDocumentArchive [12:02:21]shift 170 fd 73798 [12:02:21]save to /storage/0170/doc_00073798 [12:02:21]save last doc name /storage/0170/doc_00073798 to /storage/kkm_last_doc_name [12:02:21]save OK [12:02:21]Clear old archive folders... [12:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:02:21]tlvbuf is 00311360 [12:02:21]SAM_PROTO_ClearQueue [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 09 00 00 [12:02:21]Write to MH i2c: E2 08 00 8C 1B 80 09 00 00 00 00 00 00 19 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]SAM_PROTO_ClearQueue done [12:02:21]KKMCreateOFDPacket [12:02:21]OFDProtocolAddRootSTLVToBuf [12:02:21]FM_MakeSignedData [12:02:21]FM_MakeSignedData [12:02:21]SAM_PROTO_SignData [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 0D 01 02 [12:02:21]Write to MH i2c: E2 08 00 8D 1B 80 0D 01 02 00 00 00 00 21 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]wFMCommunicate request_size=255 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 7C 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [12:02:21]Write to MH i2c: E2 02 01 8E 1B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 7C 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 08 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]wFMCommunicate request_size=41 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 20 01 00 35 04 06 00 0E 26 A9 CA 8B 3D [12:02:21]Write to MH i2c: E2 2C 00 8F 1B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 20 01 00 35 04 06 00 0E 26 A9 CA 8B 3D 00 00 C3 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 0D 03 02 [12:02:21]Write to MH i2c: E2 08 00 90 1B 80 0D 03 02 00 00 00 00 26 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 0B 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 0B 00 90 1B 00 5C FE 05 B4 18 C7 94 8A 90 00 37 [12:02:21]RAPDU: 5C FE 05 B4 18 C7 94 8A 90 00 [12:02:21]wFMCommunicate OK [12:02:21]SAM_PROTO_SignData done [12:02:21]FM_MakeSignedData done [12:02:21]CreateOFDProtocolMessage [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 11 00 00 [12:02:21]Write to MH i2c: E2 08 00 91 1B 80 11 00 00 00 00 00 00 26 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 17 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 17 00 91 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [12:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:02:21]wFMCommunicate OK [12:02:21]CreateOFDProtocolMessage done [12:02:21]OFDSenderStorePacket 73798 [12:02:21]StoreOFDPacket docnum=73798 [12:02:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 9C 6D 26 01 AA 05 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 7C 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 20 01 00 35 04 06 00 0E 26 A9 CA 8B 3D 5C FE 05 B4 18 C7 94 8A [12:02:21]CheckFolder [12:02:21]dirname=/storage/ofd_packets [12:02:21]CheckFolder done [12:02:21]ProducePacketName [12:02:21]name=ofd_packets/00073798 [12:02:21]NVStorageSaveData ofd_packets/00073798 [12:02:21]File name is /storage/ofd_packets/00073798 [12:02:21]Write 332 bytes [12:02:21]NVStorageSaveData done [12:02:21]OFDSenderStorePacket done [12:02:21]KKMCreateOFDPacket done [12:02:21]NVStorageSaveData kkm_last_timestamp [12:02:21]File name is /storage/kkm_last_timestamp [12:02:21]Write 4 bytes [12:02:21]NVStorageSaveData done [12:02:21]ExternCall_PrintAddStr [12:02:21]wPrintStart [12:02:21]Write to MH i2c: 01 00 00 92 1B AD [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: 01 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: 01 07 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [12:02:21]RasterBufferAndPrint [12:02:21]line Счет N : (3)272777 [12:02:21]line ИНН: 02508201610067 [12:02:21]line Контрольно-Кассовый Чек [12:02:21]line ПРОДАЖА [12:02:21]line Товар: 2000036220012 [12:02:21]line Кофе Капучино XL(GABB TRADE) [12:02:21]line 1.000 * 130.00 [12:02:21]line = 130.00 [12:02:21]line НДС 12% НСП 1% [12:02:21]line > о реализуемом товаре [12:02:21]line ИТОГО: 130.00 [12:02:21]line НСП 1% : 1.15 [12:02:21]line НДС 12% : 13.80 [12:02:21]line Наличными: 130.00 [12:02:21]line Безнал.: 0.00 [12:02:21]line Место: АЗС № 133 "Партнер Нефть" [12:02:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:02:21]line СНО: Общий режим [12:02:21]line Чек 124 20.10.2024 12:02 [12:02:21]line Смена: 170 ФФД: 1.0 [12:02:21]line ЗНМ: 0300000020 [12:02:21]line РНМ: 0000000000161154 [12:02:21]line Версия ККМ: v1.0 [12:02:21]line ФМ: 0000000000963323 [12:02:21]line ФД: 73798 [12:02:21]line ФПД: 15559220169533 [12:02:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120221&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73798&fm=15559220169533&tin=02508201610067®Number=0000000000161154&sum=13000 [12:02:21]line 0 [12:02:21]OFD Sender: Processing packet 73798 [packets to send 15, broken 14] [12:02:21]ProducePacketName [12:02:21]name=ofd_packets/00073798 [12:02:21]OFD Sender: To server: pG, [12:02:21]CommunicateWithHost lk.salyk.kg:30040 [12:02:21]ConnectInit lk.salyk.kg [12:02:21]written 0, free lines is 4095 [12:02:22]Connected sock=10 [12:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 9C 6D 26 01 AA 05 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 7C 00 00 00 F4 03 04 00 4D F1 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 20 01 00 35 04 06 00 0E 26 A9 CA 8B 3D 5C FE 05 B4 18 C7 94 8A [12:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 69 8C 47 00 DA 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 39 36 33 33 32 33 10 04 04 00 46 20 01 00 F4 03 04 00 32 9A 14 67 B6 04 01 00 00 5E A6 B0 C2 DA C4 DB 24 [12:02:22]CommunicateWithHost err = 0 [12:02:22]CheckOFDResponse [12:02:22]1017 (14) - 77093643461234 [12:02:22]1041 (16) - 0000000000963323 [12:02:22]1040 (4) - 73798 [12:02:22]1012 (4) - 20.10.2024 05:50 [12:02:22]1206 (1) - 0 [12:02:22]OFD Sender: Remove packet 73798 [12:02:22]ProducePacketName [12:02:22]name=ofd_packets/00073798 [12:02:22]NVStorageDeleteData [12:02:22]Write to MH i2c: 01 00 00 BA 1B D5 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 BA 1B 00 00 00 00 00 D1 0C B9 [12:02:22]RasterBufferAndPrint [12:02:22]line [12:02:22]line [12:02:22]line [12:02:22]line [12:02:22]line [12:02:22]written 0, free lines is 3284 [12:02:22]MH_Cut [12:02:22]Write to MH i2c: D1 01 00 C1 1B 01 AE [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: D1 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: D1 01 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: D1 01 00 C1 1B 00 AD [12:02:22]Write to MH i2c: 01 00 00 C2 1B DD [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]OFD Sender: No OFD packet to send [12:02:23]*** Cut start [12:02:23]*** Partial cut [12:02:23]*** CUTSNS_PIN = 1 [12:02:23]*** CUTSNS_PIN = 0 [12:02:23]*** Brake cut motor [12:02:23]Read from MH i2c: 01 [12:02:23]MH_I2C_Read... [12:02:23]*** Stop cut motor [12:02:23]*** Cut end [12:02:23]Read from MH i2c: 01 07 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 C2 1B 00 00 00 00 00 FF 0F F2 [12:02:23]process_action close_receipt done [12:02:23]requested_data is exist [12:02:23]produce_requested_data [12:02:23]requested_item fm.sn is exist - process it [12:02:23]wFMCommunicate request_size=4 [12:02:23]MH_SAM_APDU [12:02:23]CAPDU: 80 11 00 00 [12:02:23]Write to MH i2c: E2 08 00 C3 1B 80 11 00 00 00 00 00 00 58 [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:23]Read from MH i2c: E2 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 17 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 17 00 C3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A5 [12:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:02:23]wFMCommunicate OK [12:02:23]requested_item fd.num is exist - process it [12:02:23]SAM_PROTO_GetFieldsCounters [12:02:23]wFMCommunicate request_size=4 [12:02:23]MH_SAM_APDU [12:02:23]CAPDU: 80 13 00 00 [12:02:23]Write to MH i2c: E2 08 00 C4 1B 80 13 00 00 00 00 00 00 5B [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 62 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 62 00 C4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 46 20 01 00 0E 04 04 00 AA 00 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 F4 [12:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 46 20 01 00 0E 04 04 00 AA 00 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 [12:02:24]wFMCommunicate OK [12:02:24]SAM_PROTO_GetFieldsCounters done [12:02:24]requested_item shift.num is exist - process it [12:02:24]requested_item shift.opened is exist - process it [12:02:24]req_shift_opened [12:02:24]FM_GetShiftState [12:02:24]SAM_PROTO_GetShiftState [12:02:24]wFMCommunicate request_size=4 [12:02:24]MH_SAM_APDU [12:02:24]CAPDU: 80 13 01 00 [12:02:24]Write to MH i2c: E2 08 00 C5 1B 80 13 01 00 00 00 00 00 5D [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 0E 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 0E 00 C5 1B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A2 [12:02:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:02:24]wFMCommunicate OK [12:02:24]SAM_PROTO_GetShiftState done [12:02:24]FM_GetShiftState done [12:02:24]req_shift_opened done [12:02:24]requested_item shift.open_date is exist - process it [12:02:24]req_shift_open_date [12:02:24]req_shift_open_date done [12:02:24]produce_requested_data done [12:02:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73798,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:02:24]process_action_free close_receipt [12:02:24]json_value_free [12:02:24]json_value_free done [12:02:24]process_json_proto returns [12:02:24]Send response to host [12:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73798,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:02:24]free response buf [12:02:24]execute_script done [12:02:24]execute_script returns [12:02:24]free content buf [12:02:24]Sock 9.Close socket [12:02:24]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:03]accept exits with 8 [12:08:03]New connection [12:08:03]New thread 3067432292 created [12:08:03]Thread 3067575652 joined [12:08:03]Waiting for new connection... [12:08:03] Sock 8.Parse request [12:08:03]Sock 8.Check first char [12:08:03]Sock 8.First char is OK [12:08:03]request: POST /json_proto HTTP/1.0 [12:08:03]Method: POST [12:08:03]URL: /json_proto [12:08:03]Method is POST - this is cgi request [12:08:03]url: /json_proto [12:08:03]query_string will be loaded in cgi processing [12:08:03]execute_cgi json_proto POST (null) [12:08:03]execute_cgi path=json_proto method=POST [12:08:03]POST find Content-Length [12:08:03]Host: 172.17.44.196:8080 [12:08:03]Content-Length: 621 [12:08:03]Content-Type: application/json [12:08:03] [12:08:03]POST finish read [12:08:03]Found Content-Length = 621 [12:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272778", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [12:08:03]execute_script... [12:08: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)272778", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [12:08:03]POST & json_proto [12:08:03]process_json_proto [12:08:03]json parsed OK: [12:08:03]protocol is kg_v1.0 [12:08:03]action value=close_receipt [12:08:03]process_action close_receipt [12:08:03]cmd_close_receipt [12:08:03]MH_GetDate [12:08:03]Write to MH i2c: F0 00 00 C6 1B D0 [12:08:03]Write i2c OK [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: F0 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: F0 09 00 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: F0 09 00 C6 1B 00 A5 F2 14 67 E7 19 F8 65 48 [12:08:03]GetLastDocTimeStamp 1729425741 [12:08:03]current date 1729426085 [12:08:03]FM_GetShiftState [12:08:03]SAM_PROTO_GetShiftState [12:08:03]wFMCommunicate request_size=4 [12:08:03]MH_SAM_APDU [12:08:03]CAPDU: 80 13 01 00 [12:08:03]Write to MH i2c: E2 08 00 C7 1B 80 13 01 00 00 00 00 00 5F [12:08:03]Write i2c OK [12:08:03]MH_I2C_Read... [12:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:03]Read from MH i2c: E2 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 0E 00 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 0E 00 C7 1B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A4 [12:08:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:08:03]wFMCommunicate OK [12:08:03]SAM_PROTO_GetShiftState done [12:08:03]FM_GetShiftState done [12:08:03]opened in 1729384303 [12:08:03]opened+sec_in_day 1729470703 [12:08:03]quantity*price = 14000 [12:08:03]sum+1 = 14001 [12:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 125 20.10.2024 12:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73799 ФПД: 64427208690476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120805&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73799&fm=64427208690476&tin=02508201610067®Number=0000000000161154&sum=14000 0 [12:08:05]StoreToDocumentArchive [12:08:05]shift 170 fd 73799 [12:08:05]save to /storage/0170/doc_00073799 [12:08:05]save last doc name /storage/0170/doc_00073799 to /storage/kkm_last_doc_name [12:08:05]save OK [12:08:05]Clear old archive folders... [12:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:08:05]tlvbuf is 003EDF80 [12:08:05]SAM_PROTO_ClearQueue [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 09 00 00 [12:08:05]Write to MH i2c: E2 08 00 D4 1B 80 09 00 00 00 00 00 00 61 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 D4 1B 00 90 00 63 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]SAM_PROTO_ClearQueue done [12:08:05]KKMCreateOFDPacket [12:08:05]OFDProtocolAddRootSTLVToBuf [12:08:05]FM_MakeSignedData [12:08:05]FM_MakeSignedData [12:08:05]SAM_PROTO_SignData [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 01 02 [12:08:05]Write to MH i2c: E2 08 00 D5 1B 80 0D 01 02 00 00 00 00 69 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=255 [12:08:05]MH_SAM_APDU [12:08:05]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 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 7D 00 00 00 F4 03 04 00 A5 F2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [12:08:05]Write to MH i2c: E2 02 01 D6 1B 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 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 7D 00 00 00 F4 03 04 00 A5 F2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 90 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=32 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 47 20 01 00 35 04 06 00 3A 98 A0 E3 4B 2C [12:08:05]Write to MH i2c: E2 23 00 D7 1B 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 47 20 01 00 35 04 06 00 3A 98 A0 E3 4B 2C 00 00 F7 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 03 02 [12:08:05]Write to MH i2c: E2 08 00 D8 1B 80 0D 03 02 00 00 00 00 6E [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 0B 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 0B 00 D8 1B 00 04 C7 55 9E 31 DB C0 8D 90 00 86 [12:08:05]RAPDU: 04 C7 55 9E 31 DB C0 8D 90 00 [12:08:05]wFMCommunicate OK [12:08:05]SAM_PROTO_SignData done [12:08:05]FM_MakeSignedData done [12:08:05]CreateOFDProtocolMessage [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 11 00 00 [12:08:05]Write to MH i2c: E2 08 00 D9 1B 80 11 00 00 00 00 00 00 6E [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 17 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 17 00 D9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [12:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:08:05]wFMCommunicate OK [12:08:05]CreateOFDProtocolMessage done [12:08:05]OFDSenderStorePacket 73799 [12:08:05]StoreOFDPacket docnum=73799 [12:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 AF 12 1D 01 37 8D 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 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 7D 00 00 00 F4 03 04 00 A5 F2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 20 01 00 35 04 06 00 3A 98 A0 E3 4B 2C 04 C7 55 9E 31 DB C0 8D [12:08:05]CheckFolder [12:08:05]dirname=/storage/ofd_packets [12:08:05]CheckFolder done [12:08:05]ProducePacketName [12:08:05]name=ofd_packets/00073799 [12:08:05]NVStorageSaveData ofd_packets/00073799 [12:08:05]File name is /storage/ofd_packets/00073799 [12:08:05]Write 323 bytes [12:08:05]NVStorageSaveData done [12:08:05]OFDSenderStorePacket done [12:08:05]KKMCreateOFDPacket done [12:08:05]NVStorageSaveData kkm_last_timestamp [12:08:05]File name is /storage/kkm_last_timestamp [12:08:05]Write 4 bytes [12:08:05]NVStorageSaveData done [12:08:05]ExternCall_PrintAddStr [12:08:05]wPrintStart [12:08:05]Write to MH i2c: 01 00 00 DA 1B F5 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 07 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 07 00 DA 1B 00 00 00 00 00 FF 0F 0A [12:08:05]RasterBufferAndPrint [12:08:05]line Счет N : (3)272778 [12:08:05]line ИНН: 02508201610067 [12:08:05]line Контрольно-Кассовый Чек [12:08:05]line ПРОДАЖА [12:08:05]line Товар: 48743570 [12:08:05]line Сигареты Winston XStyle Blue [12:08:05]line 1.000 * 140.00 [12:08:05]line = 140.00 [12:08:05]line НДС 12% НСП 1% [12:08:05]line > о реализуемом товаре [12:08:05]line ИТОГО: 140.00 [12:08:05]line НСП 1% : 1.24 [12:08:05]line НДС 12% : 14.87 [12:08:05]line Наличными: 140.00 [12:08:05]line Безнал.: 0.00 [12:08:05]line Место: АЗС № 133 "Партнер Нефть" [12:08:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:08:05]line СНО: Общий режим [12:08:05]line Чек 125 20.10.2024 12:08 [12:08:05]line Смена: 170 ФФД: 1.0 [12:08:05]line ЗНМ: 0300000020 [12:08:05]line РНМ: 0000000000161154 [12:08:05]line Версия ККМ: v1.0 [12:08:05]line ФМ: 0000000000963323 [12:08:05]line ФД: 73799 [12:08:05]line ФПД: 64427208690476 [12:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120805&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73799&fm=64427208690476&tin=02508201610067®Number=0000000000161154&sum=14000 [12:08:05]line 0 [12:08:05]OFD Sender: Processing packet 73799 [packets to send 15, broken 14] [12:08:05]ProducePacketName [12:08:05]name=ofd_packets/00073799 [12:08:05]OFD Sender: To server: pG, [12:08:05]CommunicateWithHost lk.salyk.kg:30040 [12:08:05]ConnectInit lk.salyk.kg [12:08:05]written 0, free lines is 4095 [12:08:06]Connected sock=10 [12:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 AF 12 1D 01 37 8D 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 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 7D 00 00 00 F4 03 04 00 A5 F2 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 20 01 00 35 04 06 00 3A 98 A0 E3 4B 2C 04 C7 55 9E 31 DB C0 8D [12:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AF 2C 47 00 C7 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 39 36 33 33 32 33 10 04 04 00 47 20 01 00 F4 03 04 00 8A 9B 14 67 B6 04 01 00 00 C9 1F 27 8C F3 FF 75 59 [12:08:06]CommunicateWithHost err = 0 [12:08:06]CheckOFDResponse [12:08:06]1017 (14) - 77093643461234 [12:08:06]1041 (16) - 0000000000963323 [12:08:06]1040 (4) - 73799 [12:08:06]1012 (4) - 20.10.2024 05:56 [12:08:06]1206 (1) - 0 [12:08:06]OFD Sender: Remove packet 73799 [12:08:06]ProducePacketName [12:08:06]name=ofd_packets/00073799 [12:08:06]NVStorageDeleteData [12:08:06]Write to MH i2c: 01 00 00 01 1C 1D [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 07 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 07 00 01 1C 00 00 00 00 00 EA 0C 1A [12:08:06]RasterBufferAndPrint [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]written 0, free lines is 3312 [12:08:06]MH_Cut [12:08:06]Write to MH i2c: D1 01 00 08 1C 01 F6 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: D1 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: D1 01 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: D1 01 00 08 1C 00 F5 [12:08:06]Write to MH i2c: 01 00 00 09 1C 25 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]OFD Sender: No OFD packet to send [12:08:07]*** Cut start [12:08:07]*** Partial cut [12:08:07]*** CUTSNS_PIN = 1 [12:08:07]*** CUTSNS_PIN = 0 [12:08:07]*** Brake cut motor [12:08:07]Read from MH i2c: 01 [12:08:07]MH_I2C_Read... [12:08:07]*** Stop cut motor [12:08:07]*** Cut end [12:08:07]Read from MH i2c: 01 07 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: 01 07 00 09 1C 00 00 00 00 00 FF 0F 3A [12:08:07]process_action close_receipt done [12:08:07]requested_data is exist [12:08:07]produce_requested_data [12:08:07]requested_item fm.sn is exist - process it [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 11 00 00 [12:08:07]Write to MH i2c: E2 08 00 0A 1C 80 11 00 00 00 00 00 00 A0 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 17 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 17 00 0A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 ED [12:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:08:07]wFMCommunicate OK [12:08:07]requested_item fd.num is exist - process it [12:08:07]SAM_PROTO_GetFieldsCounters [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 13 00 00 [12:08:07]Write to MH i2c: E2 08 00 0B 1C 80 13 00 00 00 00 00 00 A3 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 62 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 62 00 0B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 47 20 01 00 0E 04 04 00 AA 00 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 40 [12:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 47 20 01 00 0E 04 04 00 AA 00 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 [12:08:08]wFMCommunicate OK [12:08:08]SAM_PROTO_GetFieldsCounters done [12:08:08]requested_item shift.num is exist - process it [12:08:08]requested_item shift.opened is exist - process it [12:08:08]req_shift_opened [12:08:08]FM_GetShiftState [12:08:08]SAM_PROTO_GetShiftState [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 13 01 00 [12:08:08]Write to MH i2c: E2 08 00 0C 1C 80 13 01 00 00 00 00 00 A5 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0E 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0E 00 0C 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EA [12:08:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:08:08]wFMCommunicate OK [12:08:08]SAM_PROTO_GetShiftState done [12:08:08]FM_GetShiftState done [12:08:08]req_shift_opened done [12:08:08]requested_item shift.open_date is exist - process it [12:08:08]req_shift_open_date [12:08:08]req_shift_open_date done [12:08:08]produce_requested_data done [12:08:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73799,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:08:08]process_action_free close_receipt [12:08:08]json_value_free [12:08:08]json_value_free done [12:08:08]process_json_proto returns [12:08:08]Send response to host [12:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73799,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:08:08]free response buf [12:08:08]execute_script done [12:08:08]execute_script returns [12:08:08]free content buf [12:08:08]Sock 8.Close socket [12:08:08]Sock 8.Thread stoped [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:00]accept exits with 9 [12:10:00]New connection [12:10:00]New thread 3067575652 created [12:10:00]Thread 3067432292 joined [12:10:00]Waiting for new connection... [12:10:00] Sock 9.Parse request [12:10:00]Sock 9.Check first char [12:10:00]Sock 9.First char is OK [12:10:00]request: POST /json_proto HTTP/1.0 [12:10:00]Method: POST [12:10:00]URL: /json_proto [12:10:00]Method is POST - this is cgi request [12:10:00]url: /json_proto [12:10:00]query_string will be loaded in cgi processing [12:10:00]execute_cgi json_proto POST (null) [12:10:00]execute_cgi path=json_proto method=POST [12:10:00]POST find Content-Length [12:10:00]Host: 172.17.44.196:8080 [12:10:00]Content-Length: 623 [12:10:00]Content-Type: application/json [12:10:00] [12:10:00]POST finish read [12:10:00]Found Content-Length = 623 [12:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272779", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "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" ] } } [12:10:00]execute_script... [12:10: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)272779", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "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" ] } } [12:10:00]POST & json_proto [12:10:00]process_json_proto [12:10:00]json parsed OK: [12:10:00]protocol is kg_v1.0 [12:10:00]action value=close_receipt [12:10:00]process_action close_receipt [12:10:00]cmd_close_receipt [12:10:00]MH_GetDate [12:10:00]Write to MH i2c: F0 00 00 0D 1C 18 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: F0 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: F0 09 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: F0 09 00 0D 1C 00 1A F3 14 67 E7 19 F8 65 06 [12:10:00]GetLastDocTimeStamp 1729426085 [12:10:00]current date 1729426202 [12:10:00]FM_GetShiftState [12:10:00]SAM_PROTO_GetShiftState [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 13 01 00 [12:10:00]Write to MH i2c: E2 08 00 0E 1C 80 13 01 00 00 00 00 00 A7 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0E 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0E 00 0E 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EC [12:10:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:10:00]wFMCommunicate OK [12:10:00]SAM_PROTO_GetShiftState done [12:10:00]FM_GetShiftState done [12:10:00]opened in 1729384303 [12:10:00]opened+sec_in_day 1729470703 [12:10:00]quantity*price = 28000 [12:10:00]sum+1 = 28001 [12:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 126 20.10.2024 12:10 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73800 ФПД: 60963367447373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121002&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73800&fm=60963367447373&tin=02508201610067®Number=0000000000161154&sum=28000 0 [12:10:02]StoreToDocumentArchive [12:10:02]shift 170 fd 73800 [12:10:02]save to /storage/0170/doc_00073800 [12:10:02]save last doc name /storage/0170/doc_00073800 to /storage/kkm_last_doc_name [12:10:02]save OK [12:10:02]Clear old archive folders... [12:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:10:02]tlvbuf is 0037D670 [12:10:02]SAM_PROTO_ClearQueue [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 09 00 00 [12:10:02]Write to MH i2c: E2 08 00 1B 1C 80 09 00 00 00 00 00 00 A9 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_ClearQueue done [12:10:02]KKMCreateOFDPacket [12:10:02]OFDProtocolAddRootSTLVToBuf [12:10:02]FM_MakeSignedData [12:10:02]FM_MakeSignedData [12:10:02]SAM_PROTO_SignData [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 0D 01 02 [12:10:02]Write to MH i2c: E2 08 00 1C 1C 80 0D 01 02 00 00 00 00 B1 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 1C 1C 00 90 00 AC [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]wFMCommunicate request_size=255 [12:10:02]MH_SAM_APDU [12:10:02]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 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 7E 00 00 00 F4 03 04 00 1A F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [12:10:02]Write to MH i2c: E2 02 01 1D 1C 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 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 7E 00 00 00 F4 03 04 00 1A F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 DB [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 1D 1C 00 90 00 AD [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]wFMCommunicate request_size=34 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 20 01 00 35 04 06 00 37 72 23 DC 6B 4D [12:10:02]Write to MH i2c: E2 25 00 1E 1C 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 20 01 00 35 04 06 00 37 72 23 DC 6B 4D 00 00 38 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 0D 03 02 [12:10:02]Write to MH i2c: E2 08 00 1F 1C 80 0D 03 02 00 00 00 00 B6 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0B 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0B 00 1F 1C 00 CE FF 5B 1D D4 71 53 9A 90 00 2E [12:10:02]RAPDU: CE FF 5B 1D D4 71 53 9A 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_SignData done [12:10:02]FM_MakeSignedData done [12:10:02]CreateOFDProtocolMessage [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 11 00 00 [12:10:02]Write to MH i2c: E2 08 00 20 1C 80 11 00 00 00 00 00 00 B6 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 20 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [12:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:10:02]wFMCommunicate OK [12:10:02]CreateOFDProtocolMessage done [12:10:02]OFDSenderStorePacket 73800 [12:10:02]StoreOFDPacket docnum=73800 [12:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 5D F3 1F 01 B1 65 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 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 7E 00 00 00 F4 03 04 00 1A F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 20 01 00 35 04 06 00 37 72 23 DC 6B 4D CE FF 5B 1D D4 71 53 9A [12:10:02]CheckFolder [12:10:02]dirname=/storage/ofd_packets [12:10:02]CheckFolder done [12:10:02]ProducePacketName [12:10:02]name=ofd_packets/00073800 [12:10:02]NVStorageSaveData ofd_packets/00073800 [12:10:02]File name is /storage/ofd_packets/00073800 [12:10:02]Write 325 bytes [12:10:02]NVStorageSaveData done [12:10:02]OFDSenderStorePacket done [12:10:02]KKMCreateOFDPacket done [12:10:02]NVStorageSaveData kkm_last_timestamp [12:10:02]File name is /storage/kkm_last_timestamp [12:10:02]Write 4 bytes [12:10:02]NVStorageSaveData done [12:10:02]ExternCall_PrintAddStr [12:10:02]wPrintStart [12:10:02]Write to MH i2c: 01 00 00 21 1C 3D [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 21 1C 00 00 00 00 00 FF 0F 52 [12:10:02]RasterBufferAndPrint [12:10:02]line Счет N : (3)272779 [12:10:02]line ИНН: 02508201610067 [12:10:02]line Контрольно-Кассовый Чек [12:10:02]line ПРОДАЖА [12:10:02]line Товар: 48743587 [12:10:02]line Сигареты Winston XStyle Silver [12:10:02]line 2.000 * 140.00 [12:10:02]line = 280.00 [12:10:02]line НДС 12% НСП 1% [12:10:02]line > о реализуемом товаре [12:10:02]line ИТОГО: 280.00 [12:10:02]line НСП 1% : 2.48 [12:10:02]line НДС 12% : 29.73 [12:10:02]line Наличными: 280.00 [12:10:02]line Безнал.: 0.00 [12:10:02]line Место: АЗС № 133 "Партнер Нефть" [12:10:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:10:02]line СНО: Общий режим [12:10:02]line Чек 126 20.10.2024 12:10 [12:10:02]line Смена: 170 ФФД: 1.0 [12:10:02]line ЗНМ: 0300000020 [12:10:02]line РНМ: 0000000000161154 [12:10:02]line Версия ККМ: v1.0 [12:10:02]line ФМ: 0000000000963323 [12:10:02]line ФД: 73800 [12:10:02]line ФПД: 60963367447373 [12:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121002&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73800&fm=60963367447373&tin=02508201610067®Number=0000000000161154&sum=28000 [12:10:02]line 0 [12:10:02]OFD Sender: Processing packet 73800 [packets to send 15, broken 14] [12:10:02]ProducePacketName [12:10:02]name=ofd_packets/00073800 [12:10:02]OFD Sender: To server: pG, [12:10:02]CommunicateWithHost lk.salyk.kg:30040 [12:10:02]ConnectInit lk.salyk.kg [12:10:02]written 0, free lines is 4095 [12:10:03]Connected sock=10 [12:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 5D F3 1F 01 B1 65 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 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 7E 00 00 00 F4 03 04 00 1A F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 20 01 00 35 04 06 00 37 72 23 DC 6B 4D CE FF 5B 1D D4 71 53 9A [12:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C5 F7 47 00 B4 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 39 36 33 33 32 33 10 04 04 00 48 20 01 00 F4 03 04 00 FF 9B 14 67 B6 04 01 00 00 DE 11 8B A4 1C 3B F4 CD [12:10:03]CommunicateWithHost err = 0 [12:10:03]CheckOFDResponse [12:10:03]1017 (14) - 77093643461234 [12:10:03]1041 (16) - 0000000000963323 [12:10:03]1040 (4) - 73800 [12:10:03]1012 (4) - 20.10.2024 05:58 [12:10:03]1206 (1) - 0 [12:10:03]OFD Sender: Remove packet 73800 [12:10:03]ProducePacketName [12:10:03]name=ofd_packets/00073800 [12:10:03]NVStorageDeleteData [12:10:03]Write to MH i2c: 01 00 00 49 1C 65 [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: 01 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: 01 07 00 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: 01 07 00 49 1C 00 00 00 00 00 DE 0C 56 [12:10:03]RasterBufferAndPrint [12:10:03]line [12:10:03]line [12:10:03]line [12:10:03]line [12:10:03]line [12:10:03]written 0, free lines is 3301 [12:10:03]MH_Cut [12:10:03]Write to MH i2c: D1 01 00 50 1C 01 3E [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: D1 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: D1 01 00 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: D1 01 00 50 1C 00 3D [12:10:03]Write to MH i2c: 01 00 00 51 1C 6D [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]OFD Sender: No OFD packet to send [12:10:04]*** Cut start [12:10:04]*** Partial cut [12:10:04]*** CUTSNS_PIN = 1 [12:10:04]*** CUTSNS_PIN = 0 [12:10:04]*** Brake cut motor [12:10:04]Read from MH i2c: 01 [12:10:04]MH_I2C_Read... [12:10:04]*** Stop cut motor [12:10:04]*** Cut end [12:10:04]Read from MH i2c: 01 07 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FF 0F 82 [12:10:04]process_action close_receipt done [12:10:04]requested_data is exist [12:10:04]produce_requested_data [12:10:04]requested_item fm.sn is exist - process it [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 11 00 00 [12:10:04]Write to MH i2c: E2 08 00 52 1C 80 11 00 00 00 00 00 00 E8 [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 17 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 17 00 52 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 35 [12:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:10:04]wFMCommunicate OK [12:10:04]requested_item fd.num is exist - process it [12:10:04]SAM_PROTO_GetFieldsCounters [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 13 00 00 [12:10:04]Write to MH i2c: E2 08 00 53 1C 80 13 00 00 00 00 00 00 EB [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 62 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 62 00 53 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 48 20 01 00 0E 04 04 00 AA 00 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 8C [12:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 48 20 01 00 0E 04 04 00 AA 00 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 [12:10:05]wFMCommunicate OK [12:10:05]SAM_PROTO_GetFieldsCounters done [12:10:05]requested_item shift.num is exist - process it [12:10:05]requested_item shift.opened is exist - process it [12:10:05]req_shift_opened [12:10:05]FM_GetShiftState [12:10:05]SAM_PROTO_GetShiftState [12:10:05]wFMCommunicate request_size=4 [12:10:05]MH_SAM_APDU [12:10:05]CAPDU: 80 13 01 00 [12:10:05]Write to MH i2c: E2 08 00 54 1C 80 13 01 00 00 00 00 00 ED [12:10:05]Write i2c OK [12:10:05]MH_I2C_Read... [12:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:05]Read from MH i2c: E2 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 0E 00 [12:10:05]MH_I2C_Read... [12:10:05]Read from MH i2c: E2 0E 00 54 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 32 [12:10:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:10:05]wFMCommunicate OK [12:10:05]SAM_PROTO_GetShiftState done [12:10:05]FM_GetShiftState done [12:10:05]req_shift_opened done [12:10:05]requested_item shift.open_date is exist - process it [12:10:05]req_shift_open_date [12:10:05]req_shift_open_date done [12:10:05]produce_requested_data done [12:10:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73800,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:10:05]process_action_free close_receipt [12:10:05]json_value_free [12:10:05]json_value_free done [12:10:05]process_json_proto returns [12:10:05]Send response to host [12:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73800,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:10:05]free response buf [12:10:05]execute_script done [12:10:05]execute_script returns [12:10:05]free content buf [12:10:05]Sock 9.Close socket [12:10:05]Sock 9.Thread stoped [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:14]accept exits with 8 [12:10:14]New connection [12:10:14]New thread 3067432292 created [12:10:14]Thread 3067575652 joined [12:10:14]Waiting for new connection... [12:10:14] Sock 8.Parse request [12:10:14]Sock 8.Check first char [12:10:14]Sock 8.First char is OK [12:10:14]request: POST /json_proto HTTP/1.0 [12:10:14]Method: POST [12:10:14]URL: /json_proto [12:10:14]Method is POST - this is cgi request [12:10:14]url: /json_proto [12:10:14]query_string will be loaded in cgi processing [12:10:14]execute_cgi json_proto POST (null) [12:10:14]execute_cgi path=json_proto method=POST [12:10:14]POST find Content-Length [12:10:14]Host: 172.17.44.196:8080 [12:10:14]Content-Length: 618 [12:10:14]Content-Type: application/json [12:10:14] [12:10:14]POST finish read [12:10:14]Found Content-Length = 618 [12:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272780", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:14]execute_script... [12:10: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)272780", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:14]POST & json_proto [12:10:14]process_json_proto [12:10:14]json parsed OK: [12:10:14]protocol is kg_v1.0 [12:10:14]action value=close_receipt [12:10:14]process_action close_receipt [12:10:14]cmd_close_receipt [12:10:14]MH_GetDate [12:10:14]Write to MH i2c: F0 00 00 55 1C 60 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: F0 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: F0 09 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: F0 09 00 55 1C 00 28 F3 14 67 E7 19 F8 65 5C [12:10:14]GetLastDocTimeStamp 1729426202 [12:10:14]current date 1729426216 [12:10:14]FM_GetShiftState [12:10:14]SAM_PROTO_GetShiftState [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 13 01 00 [12:10:14]Write to MH i2c: E2 08 00 56 1C 80 13 01 00 00 00 00 00 EF [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 0E 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 0E 00 56 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 34 [12:10:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:10:14]wFMCommunicate OK [12:10:14]SAM_PROTO_GetShiftState done [12:10:14]FM_GetShiftState done [12:10:14]opened in 1729384303 [12:10:14]opened+sec_in_day 1729470703 [12:10:14]quantity*price = 12500 [12:10:14]sum+1 = 12501 [12:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 127 20.10.2024 12:10 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73801 ФПД: 1624145054381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121016&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73801&fm=1624145054381&tin=02508201610067®Number=0000000000161154&sum=12500 0 [12:10:16]StoreToDocumentArchive [12:10:16]shift 170 fd 73801 [12:10:16]save to /storage/0170/doc_00073801 [12:10:16]save last doc name /storage/0170/doc_00073801 to /storage/kkm_last_doc_name [12:10:16]save OK [12:10:16]Clear old archive folders... [12:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=270 [12:10:16]tlvbuf is 00338610 [12:10:16]SAM_PROTO_ClearQueue [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 09 00 00 [12:10:16]Write to MH i2c: E2 08 00 63 1C 80 09 00 00 00 00 00 00 F1 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 63 1C 00 90 00 F3 [12:10:16]RAPDU: 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_ClearQueue done [12:10:16]KKMCreateOFDPacket [12:10:16]OFDProtocolAddRootSTLVToBuf [12:10:16]FM_MakeSignedData [12:10:16]FM_MakeSignedData [12:10:16]SAM_PROTO_SignData [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 0D 01 02 [12:10:16]Write to MH i2c: E2 08 00 64 1C 80 0D 01 02 00 00 00 00 F9 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 64 1C 00 90 00 F4 [12:10:16]RAPDU: 90 00 [12:10:16]wFMCommunicate OK [12:10:16]wFMCommunicate request_size=255 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 7F 00 00 00 F4 03 04 00 28 F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:10:16]Write to MH i2c: E2 02 01 65 1C 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 7F 00 00 00 F4 03 04 00 28 F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 95 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [12:10:16]RAPDU: 90 00 [12:10:16]wFMCommunicate OK [12:10:16]wFMCommunicate request_size=29 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 49 20 01 00 35 04 06 00 01 7A 26 96 CA AD [12:10:16]Write to MH i2c: E2 20 00 66 1C 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 49 20 01 00 35 04 06 00 01 7A 26 96 CA AD 00 00 D5 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [12:10:16]RAPDU: 90 00 [12:10:16]wFMCommunicate OK [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 0D 03 02 [12:10:16]Write to MH i2c: E2 08 00 67 1C 80 0D 03 02 00 00 00 00 FE [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0B 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0B 00 67 1C 00 F6 A2 10 9B 87 B8 1D B2 90 00 50 [12:10:16]RAPDU: F6 A2 10 9B 87 B8 1D B2 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_SignData done [12:10:16]FM_MakeSignedData done [12:10:16]CreateOFDProtocolMessage [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 11 00 00 [12:10:16]Write to MH i2c: E2 08 00 68 1C 80 11 00 00 00 00 00 00 FE [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 17 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 17 00 68 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [12:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:10:16]wFMCommunicate OK [12:10:16]CreateOFDProtocolMessage done [12:10:16]OFDSenderStorePacket 73801 [12:10:16]StoreOFDPacket docnum=73801 [12:10:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 BF E4 1A 01 79 7A 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 7F 00 00 00 F4 03 04 00 28 F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 49 20 01 00 35 04 06 00 01 7A 26 96 CA AD F6 A2 10 9B 87 B8 1D B2 [12:10:16]CheckFolder [12:10:16]dirname=/storage/ofd_packets [12:10:16]CheckFolder done [12:10:16]ProducePacketName [12:10:16]name=ofd_packets/00073801 [12:10:16]NVStorageSaveData ofd_packets/00073801 [12:10:16]File name is /storage/ofd_packets/00073801 [12:10:16]Write 320 bytes [12:10:16]NVStorageSaveData done [12:10:16]OFDSenderStorePacket done [12:10:16]KKMCreateOFDPacket done [12:10:16]NVStorageSaveData kkm_last_timestamp [12:10:16]File name is /storage/kkm_last_timestamp [12:10:16]Write 4 bytes [12:10:16]NVStorageSaveData done [12:10:16]ExternCall_PrintAddStr [12:10:16]wPrintStart [12:10:16]Write to MH i2c: 01 00 00 69 1C 85 [12:10:16]OFD Sender: Processing packet 73801 [packets to send 15, broken 14] [12:10:16]ProducePacketName [12:10:16]name=ofd_packets/00073801 [12:10:16]OFD Sender: To server: pG, [12:10:16]CommunicateWithHost lk.salyk.kg:30040 [12:10:16]ConnectInit lk.salyk.kg [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: 01 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: 01 07 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: 01 07 00 69 1C 00 00 00 00 00 FF 0F 9A [12:10:16]RasterBufferAndPrint [12:10:16]line Счет N : (3)272780 [12:10:16]line ИНН: 02508201610067 [12:10:16]line Контрольно-Кассовый Чек [12:10:16]line ПРОДАЖА [12:10:16]line Товар: 48742191 [12:10:16]line Сигареты Bond Street Blue [12:10:16]line 1.000 * 125.00 [12:10:16]line = 125.00 [12:10:16]line НДС 12% НСП 1% [12:10:16]line > о реализуемом товаре [12:10:16]line ИТОГО: 125.00 [12:10:16]line НСП 1% : 1.11 [12:10:16]line НДС 12% : 13.27 [12:10:16]line Наличными: 125.00 [12:10:16]line Безнал.: 0.00 [12:10:16]line Место: АЗС № 133 "Партнер Нефть" [12:10:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:10:16]line СНО: Общий режим [12:10:16]line Чек 127 20.10.2024 12:10 [12:10:16]line Смена: 170 ФФД: 1.0 [12:10:16]line ЗНМ: 0300000020 [12:10:16]line РНМ: 0000000000161154 [12:10:16]line Версия ККМ: v1.0 [12:10:16]line ФМ: 0000000000963323 [12:10:16]line ФД: 73801 [12:10:16]line ФПД: 1624145054381 [12:10:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121016&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73801&fm=1624145054381&tin=02508201610067®Number=0000000000161154&sum=12500 [12:10:16]line 0 [12:10:16]written 0, free lines is 4095 [12:10:16]Connected sock=10 [12:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 BF E4 1A 01 79 7A 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 7F 00 00 00 F4 03 04 00 28 F3 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 49 20 01 00 35 04 06 00 01 7A 26 96 CA AD F6 A2 10 9B 87 B8 1D B2 [12:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF 87 47 00 9D 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 39 36 33 33 32 33 10 04 04 00 49 20 01 00 F4 03 04 00 0D 9C 14 67 B6 04 01 00 00 29 12 D3 8B AF C7 00 78 [12:10:16]CommunicateWithHost err = 0 [12:10:16]CheckOFDResponse [12:10:16]1017 (14) - 77093643461234 [12:10:16]1041 (16) - 0000000000963323 [12:10:16]1040 (4) - 73801 [12:10:16]1012 (4) - 20.10.2024 05:58 [12:10:16]1206 (1) - 0 [12:10:16]OFD Sender: Remove packet 73801 [12:10:16]ProducePacketName [12:10:16]name=ofd_packets/00073801 [12:10:16]NVStorageDeleteData [12:10:17]Write to MH i2c: 01 00 00 90 1C AC [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 07 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 EB 0C AA [12:10:17]RasterBufferAndPrint [12:10:17]line [12:10:17]line [12:10:17]line [12:10:17]line [12:10:17]line [12:10:17]written 0, free lines is 3313 [12:10:17]MH_Cut [12:10:17]Write to MH i2c: D1 01 00 97 1C 01 85 [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: D1 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: D1 01 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: D1 01 00 97 1C 00 84 [12:10:17]Write to MH i2c: 01 00 00 98 1C B4 [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]OFD Sender: No OFD packet to send [12:10:17]*** Cut start [12:10:17]*** Partial cut [12:10:17]*** CUTSNS_PIN = 1 [12:10:17]*** CUTSNS_PIN = 0 [12:10:18]*** Brake cut motor [12:10:18]Read from MH i2c: 01 [12:10:18]MH_I2C_Read... [12:10:18]*** Stop cut motor [12:10:18]*** Cut end [12:10:18]Read from MH i2c: 01 07 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 07 00 98 1C 00 00 00 00 00 FF 0F C9 [12:10:18]process_action close_receipt done [12:10:18]requested_data is exist [12:10:18]produce_requested_data [12:10:18]requested_item fm.sn is exist - process it [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 11 00 00 [12:10:18]Write to MH i2c: E2 08 00 99 1C 80 11 00 00 00 00 00 00 2F [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 17 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 17 00 99 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7C [12:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:10:18]wFMCommunicate OK [12:10:18]requested_item fd.num is exist - process it [12:10:18]SAM_PROTO_GetFieldsCounters [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 13 00 00 [12:10:18]Write to MH i2c: E2 08 00 9A 1C 80 13 00 00 00 00 00 00 32 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 62 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 62 00 9A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 49 20 01 00 0E 04 04 00 AA 00 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 D7 [12:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 49 20 01 00 0E 04 04 00 AA 00 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 [12:10:18]wFMCommunicate OK [12:10:18]SAM_PROTO_GetFieldsCounters done [12:10:18]requested_item shift.num is exist - process it [12:10:18]requested_item shift.opened is exist - process it [12:10:18]req_shift_opened [12:10:18]FM_GetShiftState [12:10:18]SAM_PROTO_GetShiftState [12:10:18]wFMCommunicate request_size=4 [12:10:18]MH_SAM_APDU [12:10:18]CAPDU: 80 13 01 00 [12:10:18]Write to MH i2c: E2 08 00 9B 1C 80 13 01 00 00 00 00 00 34 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:18]Read from MH i2c: E2 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0E 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: E2 0E 00 9B 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 79 [12:10:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:10:18]wFMCommunicate OK [12:10:18]SAM_PROTO_GetShiftState done [12:10:18]FM_GetShiftState done [12:10:18]req_shift_opened done [12:10:18]requested_item shift.open_date is exist - process it [12:10:18]req_shift_open_date [12:10:18]req_shift_open_date done [12:10:18]produce_requested_data done [12:10:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73801,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:10:18]process_action_free close_receipt [12:10:18]json_value_free [12:10:18]json_value_free done [12:10:18]process_json_proto returns [12:10:18]Send response to host [12:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73801,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:10:18]free response buf [12:10:18]execute_script done [12:10:18]execute_script returns [12:10:18]free content buf [12:10:18]Sock 8.Close socket [12:10:18]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:07]accept exits with 9 [12:29:07]New connection [12:29:07]New thread 3067575652 created [12:29:07]Thread 3067432292 joined [12:29:07]Waiting for new connection... [12:29:07] Sock 9.Parse request [12:29:07]Sock 9.Check first char [12:29:07]Sock 9.First char is OK [12:29:07]request: POST /json_proto HTTP/1.0 [12:29:07]Method: POST [12:29:07]URL: /json_proto [12:29:07]Method is POST - this is cgi request [12:29:07]url: /json_proto [12:29:07]query_string will be loaded in cgi processing [12:29:07]execute_cgi json_proto POST (null) [12:29:07]execute_cgi path=json_proto method=POST [12:29:07]POST find Content-Length [12:29:07]Host: 172.17.44.196:8080 [12:29:07]Content-Length: 983 [12:29:07]Content-Type: application/json [12:29:07] [12:29:07]POST finish read [12:29:07]Found Content-Length = 983 [12:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272781", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 111.00, "quantity" : 1.000, "sum" : 111.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: Mbank", "payments": [ { "type": 1, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:07]execute_script... [12:29: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)272781", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 111.00, "quantity" : 1.000, "sum" : 111.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: Mbank", "payments": [ { "type": 1, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:07]POST & json_proto [12:29:07]process_json_proto [12:29:07]json parsed OK: [12:29:07]protocol is kg_v1.0 [12:29:07]action value=close_receipt [12:29:07]process_action close_receipt [12:29:07]cmd_close_receipt [12:29:07]MH_GetDate [12:29:07]Write to MH i2c: F0 00 00 9C 1C A7 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: F0 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: F0 09 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: F0 09 00 9C 1C 00 95 F7 14 67 E7 19 F8 65 14 [12:29:07]GetLastDocTimeStamp 1729426216 [12:29:07]current date 1729427349 [12:29:07]FM_GetShiftState [12:29:07]SAM_PROTO_GetShiftState [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 13 01 00 [12:29:07]Write to MH i2c: E2 08 00 9D 1C 80 13 01 00 00 00 00 00 36 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 9D 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7B [12:29:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetShiftState done [12:29:08]FM_GetShiftState done [12:29:08]opened in 1729384303 [12:29:08]opened+sec_in_day 1729470703 [12:29:08]quantity*price = 12500 [12:29:08]sum+1 = 12501 [12:29:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 0.00 Безнал.: 236.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 128 20.10.2024 12:29 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73802 ФПД: 48436082759733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122909&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73802&fm=48436082759733&tin=02508201610067®Number=0000000000161154&sum=23600 0 [12:29:09]StoreToDocumentArchive [12:29:09]shift 170 fd 73802 [12:29:09]save to /storage/0170/doc_00073802 [12:29:09]save last doc name /storage/0170/doc_00073802 to /storage/kkm_last_doc_name [12:29:09]save OK [12:29:09]Clear old archive folders... [12:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=374 [12:29:09]tlvbuf is 00373D70 [12:29:09]SAM_PROTO_ClearQueue [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 09 00 00 [12:29:09]Write to MH i2c: E2 08 00 AA 1C 80 09 00 00 00 00 00 00 38 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 AA 1C 00 90 00 3A [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_ClearQueue done [12:29:09]KKMCreateOFDPacket [12:29:09]OFDProtocolAddRootSTLVToBuf [12:29:09]FM_MakeSignedData [12:29:09]FM_MakeSignedData [12:29:09]SAM_PROTO_SignData [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 01 02 [12:29:09]Write to MH i2c: E2 08 00 AB 1C 80 0D 01 02 00 00 00 00 40 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 AB 1C 00 90 00 3B [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]wFMCommunicate request_size=255 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 [12:29:09]Write to MH i2c: E2 02 01 AC 1C 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 00 00 45 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 AC 1C 00 90 00 3C [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]wFMCommunicate request_size=133 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 95 F7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 20 01 00 35 04 06 00 2C 0D 67 81 D8 35 [12:29:09]Write to MH i2c: E2 88 00 AD 1C 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 95 F7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 20 01 00 35 04 06 00 2C 0D 67 81 D8 35 00 00 8C [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 AD 1C 00 90 00 3D [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 03 02 [12:29:09]Write to MH i2c: E2 08 00 AE 1C 80 0D 03 02 00 00 00 00 45 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0B 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0B 00 AE 1C 00 28 90 3C 15 8E D1 AE 03 90 00 5F [12:29:09]RAPDU: 28 90 3C 15 8E D1 AE 03 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_SignData done [12:29:09]FM_MakeSignedData done [12:29:09]CreateOFDProtocolMessage [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 11 00 00 [12:29:09]Write to MH i2c: E2 08 00 AF 1C 80 11 00 00 00 00 00 00 45 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 17 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 17 00 AF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 92 [12:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:29:09]wFMCommunicate OK [12:29:09]CreateOFDProtocolMessage done [12:29:09]OFDSenderStorePacket 73802 [12:29:09]StoreOFDPacket docnum=73802 [12:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8A 01 00 00 A8 A8 82 01 C9 1A 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 95 F7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 20 01 00 35 04 06 00 2C 0D 67 81 D8 35 28 90 3C 15 8E D1 AE 03 [12:29:09]CheckFolder [12:29:09]dirname=/storage/ofd_packets [12:29:09]CheckFolder done [12:29:09]ProducePacketName [12:29:09]name=ofd_packets/00073802 [12:29:09]NVStorageSaveData ofd_packets/00073802 [12:29:09]File name is /storage/ofd_packets/00073802 [12:29:09]Write 424 bytes [12:29:09]NVStorageSaveData done [12:29:09]OFDSenderStorePacket done [12:29:09]KKMCreateOFDPacket done [12:29:09]NVStorageSaveData kkm_last_timestamp [12:29:09]File name is /storage/kkm_last_timestamp [12:29:09]Write 4 bytes [12:29:09]NVStorageSaveData done [12:29:09]ExternCall_PrintAddStr [12:29:09]wPrintStart [12:29:09]Write to MH i2c: 01 00 00 B0 1C CC [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: 01 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: 01 07 00 [12:29:10]MH_I2C_Read... [12:29:10]OFD Sender: Processing packet 73802 [packets to send 15, broken 14] [12:29:10]ProducePacketName [12:29:10]name=ofd_packets/00073802 [12:29:10]OFD Sender: To server: pG, [12:29:10]CommunicateWithHost lk.salyk.kg:30040 [12:29:10]ConnectInit lk.salyk.kg [12:29:10]Read from MH i2c: 01 07 00 B0 1C 00 00 00 00 00 FF 0F E1 [12:29:10]RasterBufferAndPrint [12:29:10]line Счет N : (3)272781 [12:29:10]line ИНН: 02508201610067 [12:29:10]line Контрольно-Кассовый Чек [12:29:10]line ПРОДАЖА [12:29:10]line Товар: 48743389 [12:29:10]line Сигареты BOND STREET compact blue [12:29:10]line 1.000 * 125.00 [12:29:10]line = 125.00 [12:29:10]line НДС 12% НСП 1% [12:29:10]line > о реализуемом товаре [12:29:10]line Товар: 4870001570071 [12:29:10]line Напиток Pepsi 1л [12:29:10]line 1.000 * 111.00 [12:29:10]line = 111.00 [12:29:10]line НДС 12% НСП 1% [12:29:10]line > о реализуемом товаре [12:29:10]line ИТОГО: 236.00 [12:29:10]line НСП 1% : 2.09 [12:29:10]line НДС 12% : 25.06 [12:29:10]line Наличными: 0.00 [12:29:10]line Безнал.: 236.00 [12:29:10]line Место: АЗС № 133 "Партнер Нефть" [12:29:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:29:10]line СНО: Общий режим [12:29:10]line Чек 128 20.10.2024 12:29 [12:29:10]line Смена: 170 ФФД: 1.0 [12:29:10]line ЗНМ: 0300000020 [12:29:10]line РНМ: 0000000000161154 [12:29:10]line Версия ККМ: v1.0 [12:29:10]line Платежная система: Mbank [12:29:10]line ФМ: 0000000000963323 [12:29:10]line ФД: 73802 [12:29:10]line ФПД: 48436082759733 [12:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122909&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73802&fm=48436082759733&tin=02508201610067®Number=0000000000161154&sum=23600 [12:29:10]line 0 [12:29:10]written 0, free lines is 4095 [12:29:10]Connected sock=10 [12:29:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8A 01 00 00 A8 A8 82 01 C9 1A 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 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 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 95 F7 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 20 01 00 35 04 06 00 2C 0D 67 81 D8 35 28 90 3C 15 8E D1 AE 03 [12:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 60 F8 47 00 52 4B 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 39 36 33 33 32 33 10 04 04 00 4A 20 01 00 F4 03 04 00 7A A0 14 67 B6 04 01 00 00 7E 78 AC 54 BF 42 01 7B [12:29:10]CommunicateWithHost err = 0 [12:29:10]CheckOFDResponse [12:29:10]1017 (14) - 77093643461234 [12:29:10]1041 (16) - 0000000000963323 [12:29:10]1040 (4) - 73802 [12:29:10]1012 (4) - 20.10.2024 06:17 [12:29:10]1206 (1) - 0 [12:29:10]OFD Sender: Remove packet 73802 [12:29:10]ProducePacketName [12:29:10]name=ofd_packets/00073802 [12:29:10]NVStorageDeleteData [12:29:10]Write to MH i2c: 01 00 00 DF 1C FB [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 07 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 64 0C 72 [12:29:10]RasterBufferAndPrint [12:29:10]line [12:29:10]line [12:29:10]line [12:29:10]line [12:29:10]line [12:29:10]written 0, free lines is 3180 [12:29:10]MH_Cut [12:29:10]Write to MH i2c: D1 01 00 E6 1C 01 D4 [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: D1 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: D1 01 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: D1 01 00 E6 1C 00 D3 [12:29:10]Write to MH i2c: 01 00 00 E7 1C 03 [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]OFD Sender: No OFD packet to send [12:29:11]*** Cut start [12:29:11]*** Partial cut [12:29:11]*** CUTSNS_PIN = 1 [12:29:11]*** CUTSNS_PIN = 0 [12:29:11]*** Brake cut motor [12:29:12]Read from MH i2c: 01 [12:29:12]MH_I2C_Read... [12:29:12]*** Stop cut motor [12:29:12]*** Cut end [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 E7 1C 00 00 00 00 00 FF 0F 18 [12:29:12]process_action close_receipt done [12:29:12]requested_data is exist [12:29:12]produce_requested_data [12:29:12]requested_item fm.sn is exist - process it [12:29:12]wFMCommunicate request_size=4 [12:29:12]MH_SAM_APDU [12:29:12]CAPDU: 80 11 00 00 [12:29:12]Write to MH i2c: E2 08 00 E8 1C 80 11 00 00 00 00 00 00 7E [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:12]Read from MH i2c: E2 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: E2 17 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: E2 17 00 E8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [12:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:29:12]wFMCommunicate OK [12:29:12]requested_item fd.num is exist - process it [12:29:12]SAM_PROTO_GetFieldsCounters [12:29:12]wFMCommunicate request_size=4 [12:29:12]MH_SAM_APDU [12:29:12]CAPDU: 80 13 00 00 [12:29:12]Write to MH i2c: E2 08 00 E9 1C 80 13 00 00 00 00 00 00 81 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:12]Read from MH i2c: E2 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: E2 62 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: E2 62 00 E9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4A 20 01 00 0E 04 04 00 AA 00 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 2A [12:29:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4A 20 01 00 0E 04 04 00 AA 00 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 [12:29:12]wFMCommunicate OK [12:29:12]SAM_PROTO_GetFieldsCounters done [12:29:12]requested_item shift.num is exist - process it [12:29:12]requested_item shift.opened is exist - process it [12:29:12]req_shift_opened [12:29:12]FM_GetShiftState [12:29:12]SAM_PROTO_GetShiftState [12:29:12]wFMCommunicate request_size=4 [12:29:12]MH_SAM_APDU [12:29:12]CAPDU: 80 13 01 00 [12:29:12]Write to MH i2c: E2 08 00 EA 1C 80 13 01 00 00 00 00 00 83 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: E2 [12:29:12]MH_I2C_Read... [12:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:12]Read from MH i2c: E2 0E 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: E2 0E 00 EA 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C8 [12:29:12]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:29:12]wFMCommunicate OK [12:29:12]SAM_PROTO_GetShiftState done [12:29:12]FM_GetShiftState done [12:29:12]req_shift_opened done [12:29:12]requested_item shift.open_date is exist - process it [12:29:12]req_shift_open_date [12:29:12]req_shift_open_date done [12:29:12]produce_requested_data done [12:29:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73802,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:29:12]process_action_free close_receipt [12:29:12]json_value_free [12:29:12]json_value_free done [12:29:12]process_json_proto returns [12:29:12]Send response to host [12:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73802,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:29:12]free response buf [12:29:12]execute_script done [12:29:12]execute_script returns [12:29:12]free content buf [12:29:12]Sock 9.Close socket [12:29:12]Sock 9.Thread stoped [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:32]accept exits with 8 [12:31:32]New connection [12:31:32]New thread 3067432292 created [12:31:32]Thread 3067575652 joined [12:31:32]Waiting for new connection... [12:31:32] Sock 8.Parse request [12:31:32]Sock 8.Check first char [12:31:32]Sock 8.First char is OK [12:31:32]request: POST /json_proto HTTP/1.0 [12:31:32]Method: POST [12:31:32]URL: /json_proto [12:31:32]Method is POST - this is cgi request [12:31:32]url: /json_proto [12:31:32]query_string will be loaded in cgi processing [12:31:32]execute_cgi json_proto POST (null) [12:31:32]execute_cgi path=json_proto method=POST [12:31:32]POST find Content-Length [12:31:32]Host: 172.17.44.196:8080 [12:31:32]Content-Length: 1005 [12:31:32]Content-Type: application/json [12:31:32] [12:31:32]POST finish read [12:31:32]Found Content-Length = 1005 [12:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272782", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:32]execute_script... [12:31: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)272782", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:32]POST & json_proto [12:31:32]process_json_proto [12:31:32]json parsed OK: [12:31:32]protocol is kg_v1.0 [12:31:32]action value=close_receipt [12:31:32]process_action close_receipt [12:31:32]cmd_close_receipt [12:31:32]MH_GetDate [12:31:32]Write to MH i2c: F0 00 00 EB 1C F6 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: F0 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: F0 09 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: F0 09 00 EB 1C 00 25 F8 14 67 E7 19 F8 65 F4 [12:31:32]GetLastDocTimeStamp 1729427349 [12:31:32]current date 1729427493 [12:31:32]FM_GetShiftState [12:31:32]SAM_PROTO_GetShiftState [12:31:32]wFMCommunicate request_size=4 [12:31:32]MH_SAM_APDU [12:31:32]CAPDU: 80 13 01 00 [12:31:32]Write to MH i2c: E2 08 00 EC 1C 80 13 01 00 00 00 00 00 85 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:32]Read from MH i2c: E2 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: E2 0E 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: E2 0E 00 EC 1C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CA [12:31:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:31:32]wFMCommunicate OK [12:31:32]SAM_PROTO_GetShiftState done [12:31:32]FM_GetShiftState done [12:31:32]opened in 1729384303 [12:31:32]opened+sec_in_day 1729470703 [12:31:32]quantity*price = 10700 [12:31:32]sum+1 = 10701 [12:31:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 207.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 129 20.10.2024 12:31 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73803 ФПД: 280629533839062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123133&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73803&fm=280629533839062&tin=02508201610067®Number=0000000000161154&sum=20700 0 [12:31:33]StoreToDocumentArchive [12:31:33]shift 170 fd 73803 [12:31:33]save to /storage/0170/doc_00073803 [12:31:33]save last doc name /storage/0170/doc_00073803 to /storage/kkm_last_doc_name [12:31:33]save OK [12:31:33]Clear old archive folders... [12:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=419 [12:31:33]tlvbuf is 003D66B0 [12:31:33]SAM_PROTO_ClearQueue [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 09 00 00 [12:31:33]Write to MH i2c: E2 08 00 F9 1C 80 09 00 00 00 00 00 00 87 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 F9 1C 00 90 00 89 [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_ClearQueue done [12:31:33]KKMCreateOFDPacket [12:31:33]OFDProtocolAddRootSTLVToBuf [12:31:33]FM_MakeSignedData [12:31:33]FM_MakeSignedData [12:31:33]SAM_PROTO_SignData [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 01 02 [12:31:33]Write to MH i2c: E2 08 00 FA 1C 80 0D 01 02 00 00 00 00 8F [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=255 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 [12:31:33]Write to MH i2c: E2 02 01 FB 1C 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 00 00 54 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=178 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 02 02 AD 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 81 00 00 00 F4 03 04 00 25 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 20 01 00 35 04 06 00 FF 3B 27 AD 8E D6 [12:31:33]Write to MH i2c: E2 B5 00 FC 1C 80 0D 02 02 AD 00 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 81 00 00 00 F4 03 04 00 25 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 20 01 00 35 04 06 00 FF 3B 27 AD 8E D6 00 00 33 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [12:31:33]RAPDU: 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 0D 03 02 [12:31:33]Write to MH i2c: E2 08 00 FD 1C 80 0D 03 02 00 00 00 00 94 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 0B 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 0B 00 FD 1C 00 2A D5 E4 14 A5 5D 72 22 90 00 22 [12:31:33]RAPDU: 2A D5 E4 14 A5 5D 72 22 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_SignData done [12:31:33]FM_MakeSignedData done [12:31:33]CreateOFDProtocolMessage [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 11 00 00 [12:31:33]Write to MH i2c: E2 08 00 FE 1C 80 11 00 00 00 00 00 00 94 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 17 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 17 00 FE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E1 [12:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:31:33]wFMCommunicate OK [12:31:33]CreateOFDProtocolMessage done [12:31:33]OFDSenderStorePacket 73803 [12:31:33]StoreOFDPacket docnum=73803 [12:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B7 01 00 00 83 95 AF 01 FF 63 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 81 00 00 00 F4 03 04 00 25 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 20 01 00 35 04 06 00 FF 3B 27 AD 8E D6 2A D5 E4 14 A5 5D 72 22 [12:31:33]CheckFolder [12:31:33]dirname=/storage/ofd_packets [12:31:33]CheckFolder done [12:31:33]ProducePacketName [12:31:33]name=ofd_packets/00073803 [12:31:33]NVStorageSaveData ofd_packets/00073803 [12:31:33]File name is /storage/ofd_packets/00073803 [12:31:33]Write 469 bytes [12:31:33]NVStorageSaveData done [12:31:33]OFDSenderStorePacket done [12:31:33]KKMCreateOFDPacket done [12:31:34]NVStorageSaveData kkm_last_timestamp [12:31:34]File name is /storage/kkm_last_timestamp [12:31:34]Write 4 bytes [12:31:34]NVStorageSaveData done [12:31:34]ExternCall_PrintAddStr [12:31:34]wPrintStart [12:31:34]Write to MH i2c: 01 00 00 FF 1C 1B [12:31:34]OFD Sender: Processing packet 73803 [packets to send 15, broken 14] [12:31:34]ProducePacketName [12:31:34]name=ofd_packets/00073803 [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]OFD Sender: To server: pG, [12:31:34]CommunicateWithHost lk.salyk.kg:30040 [12:31:34]ConnectInit lk.salyk.kg [12:31:34]Read from MH i2c: 01 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 FF 1C 00 00 00 00 00 FF 0F 30 [12:31:34]RasterBufferAndPrint [12:31:34]line Счет N : (3)272782 [12:31:34]line ИНН: 02508201610067 [12:31:34]line Контрольно-Кассовый Чек [12:31:34]line ПРОДАЖА [12:31:34]line Товар: 5449000189356 [12:31:34]line Холодный чай Fuse манго ананас 1л [12:31:34]line 1.000 * 107.00 [12:31:34]line = 107.00 [12:31:34]line НДС 12% НСП 1% [12:31:34]line > о реализуемом товаре [12:31:34]line Товар: 4870002328398 [12:31:34]line Вода ASU пит н.газ мята ПЭТ 1л [12:31:34]line 1.000 * 100.00 [12:31:34]line = 100.00 [12:31:34]line НДС 12% НСП 1% [12:31:34]line > о реализуемом товаре [12:31:34]line ИТОГО: 207.00 [12:31:34]line НСП 1% : 1.83 [12:31:34]line НДС 12% : 21.98 [12:31:34]line Наличными: 207.00 [12:31:34]line Безнал.: 0.00 [12:31:34]line Место: АЗС № 133 "Партнер Нефть" [12:31:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:31:34]line СНО: Общий режим [12:31:34]line Чек 129 20.10.2024 12:31 [12:31:34]line Смена: 170 ФФД: 1.0 [12:31:34]line ЗНМ: 0300000020 [12:31:34]line РНМ: 0000000000161154 [12:31:34]line Версия ККМ: v1.0 [12:31:34]line ФМ: 0000000000963323 [12:31:34]line ФД: 73803 [12:31:34]line ФПД: 280629533839062 [12:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123133&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73803&fm=280629533839062&tin=02508201610067®Number=0000000000161154&sum=20700 [12:31:34]line 0 [12:31:34]written 0, free lines is 4095 [12:31:34]Connected sock=10 [12:31:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B7 01 00 00 83 95 AF 01 FF 63 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 81 00 00 00 F4 03 04 00 25 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 20 01 00 35 04 06 00 FF 3B 27 AD 8E D6 2A D5 E4 14 A5 5D 72 22 [12:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 74 4C 47 00 0A 7A 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 39 36 33 33 32 33 10 04 04 00 4B 20 01 00 F4 03 04 00 0A A1 14 67 B6 04 01 00 00 CB A6 21 EA 6E 0F ED BC [12:31:34]CommunicateWithHost err = 0 [12:31:34]CheckOFDResponse [12:31:34]1017 (14) - 77093643461234 [12:31:34]1041 (16) - 0000000000963323 [12:31:34]1040 (4) - 73803 [12:31:34]1012 (4) - 20.10.2024 06:19 [12:31:34]1206 (1) - 0 [12:31:34]OFD Sender: Remove packet 73803 [12:31:34]ProducePacketName [12:31:34]name=ofd_packets/00073803 [12:31:34]NVStorageDeleteData [12:31:34]Write to MH i2c: 01 00 00 2E 1D 4B [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 4B 0C A9 [12:31:34]RasterBufferAndPrint [12:31:34]line [12:31:34]line [12:31:34]line [12:31:34]line [12:31:34]line [12:31:34]written 0, free lines is 3153 [12:31:34]MH_Cut [12:31:34]Write to MH i2c: D1 01 00 35 1D 01 24 [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: D1 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: D1 01 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: D1 01 00 35 1D 00 23 [12:31:34]Write to MH i2c: 01 00 00 36 1D 53 [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:35]OFD Sender: No OFD packet to send [12:31:35]*** Cut start [12:31:35]*** Partial cut [12:31:35]*** CUTSNS_PIN = 1 [12:31:35]*** CUTSNS_PIN = 0 [12:31:35]*** Brake cut motor [12:31:36]Read from MH i2c: 01 [12:31:36]MH_I2C_Read... [12:31:36]*** Stop cut motor [12:31:36]*** Cut end [12:31:36]Read from MH i2c: 01 07 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [12:31:36]process_action close_receipt done [12:31:36]requested_data is exist [12:31:36]produce_requested_data [12:31:36]requested_item fm.sn is exist - process it [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 11 00 00 [12:31:36]Write to MH i2c: E2 08 00 37 1D 80 11 00 00 00 00 00 00 CE [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:36]Read from MH i2c: E2 17 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 17 00 37 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1B [12:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:31:36]wFMCommunicate OK [12:31:36]requested_item fd.num is exist - process it [12:31:36]SAM_PROTO_GetFieldsCounters [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 13 00 00 [12:31:36]Write to MH i2c: E2 08 00 38 1D 80 13 00 00 00 00 00 00 D1 [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 62 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 62 00 38 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4B 20 01 00 0E 04 04 00 AA 00 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 7E [12:31:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4B 20 01 00 0E 04 04 00 AA 00 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 [12:31:36]wFMCommunicate OK [12:31:36]SAM_PROTO_GetFieldsCounters done [12:31:36]requested_item shift.num is exist - process it [12:31:36]requested_item shift.opened is exist - process it [12:31:36]req_shift_opened [12:31:36]FM_GetShiftState [12:31:36]SAM_PROTO_GetShiftState [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 13 01 00 [12:31:36]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 0E 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 18 [12:31:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:31:36]wFMCommunicate OK [12:31:36]SAM_PROTO_GetShiftState done [12:31:36]FM_GetShiftState done [12:31:36]req_shift_opened done [12:31:36]requested_item shift.open_date is exist - process it [12:31:36]req_shift_open_date [12:31:36]req_shift_open_date done [12:31:36]produce_requested_data done [12:31:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73803,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:31:36]process_action_free close_receipt [12:31:36]json_value_free [12:31:36]json_value_free done [12:31:36]process_json_proto returns [12:31:36]Send response to host [12:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73803,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:31:36]free response buf [12:31:36]execute_script done [12:31:36]execute_script returns [12:31:36]free content buf [12:31:36]Sock 8.Close socket [12:31:36]Sock 8.Thread stoped [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:15]accept exits with 9 [12:32:15]New connection [12:32:15]New thread 3067575652 created [12:32:15]Thread 3067432292 joined [12:32:15]Waiting for new connection... [12:32:15] Sock 9.Parse request [12:32:15]Sock 9.Check first char [12:32:15]Sock 9.First char is OK [12:32:15]request: POST /json_proto HTTP/1.0 [12:32:15]Method: POST [12:32:15]URL: /json_proto [12:32:15]Method is POST - this is cgi request [12:32:15]url: /json_proto [12:32:15]query_string will be loaded in cgi processing [12:32:15]execute_cgi json_proto POST (null) [12:32:15]execute_cgi path=json_proto method=POST [12:32:15]POST find Content-Length [12:32:15]Host: 172.17.44.196:8080 [12:32:15]Content-Length: 678 [12:32:15]Content-Type: application/json [12:32:15] [12:32:15]POST finish read [12:32:15]Found Content-Length = 678 [12:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:32:15]execute_script... [12:32:15]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)1962943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:32:15]POST & json_proto [12:32:15]process_json_proto [12:32:15]json parsed OK: [12:32:15]protocol is kg_v1.0 [12:32:15]action value=close_receipt [12:32:15]process_action close_receipt [12:32:15]cmd_close_receipt [12:32:15]MH_GetDate [12:32:15]Write to MH i2c: F0 00 00 3A 1D 46 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: F0 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: F0 09 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: F0 09 00 3A 1D 00 51 F8 14 67 E7 19 F8 65 70 [12:32:15]GetLastDocTimeStamp 1729427493 [12:32:15]current date 1729427537 [12:32:15]FM_GetShiftState [12:32:15]SAM_PROTO_GetShiftState [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 01 00 [12:32:15]Write to MH i2c: E2 08 00 3B 1D 80 13 01 00 00 00 00 00 D5 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 3B 1D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1A [12:32:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetShiftState done [12:32:15]FM_GetShiftState done [12:32:15]opened in 1729384303 [12:32:15]opened+sec_in_day 1729470703 [12:32:15]quantity*price = 50010 [12:32:15]sum+1 = 50012 [12:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 130 20.10.2024 12:32 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73804 ФПД: 69697971240581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123217&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73804&fm=69697971240581&tin=02508201610067®Number=0000000000161154&sum=50000 [12:32:16]StoreToDocumentArchive [12:32:16]shift 170 fd 73804 [12:32:16]save to /storage/0170/doc_00073804 [12:32:16]save last doc name /storage/0170/doc_00073804 to /storage/kkm_last_doc_name [12:32:16]save OK [12:32:16]Clear old archive folders... [12:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:16]tlvbuf is 0036DF00 [12:32:16]SAM_PROTO_ClearQueue [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 09 00 00 [12:32:16]Write to MH i2c: E2 08 00 48 1D 80 09 00 00 00 00 00 00 D7 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 48 1D 00 90 00 D9 [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_ClearQueue done [12:32:16]KKMCreateOFDPacket [12:32:16]OFDProtocolAddRootSTLVToBuf [12:32:16]FM_MakeSignedData [12:32:16]FM_MakeSignedData [12:32:16]SAM_PROTO_SignData [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 01 02 [12:32:16]Write to MH i2c: E2 08 00 49 1D 80 0D 01 02 00 00 00 00 DF [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]wFMCommunicate request_size=255 [12:32:16]MH_SAM_APDU [12:32:16]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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 82 00 00 00 F4 03 04 00 51 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 20 01 00 35 04 06 00 3F [12:32:16]Write to MH i2c: E2 02 01 4A 1D 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 82 00 00 00 F4 03 04 00 51 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 20 01 00 35 04 06 00 3F 00 00 D5 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 4A 1D 00 90 00 DB [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=10 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 02 02 05 63 D2 D1 3E 85 [12:32:17]Write to MH i2c: E2 0D 00 4B 1D 80 0D 02 02 05 00 63 D2 D1 3E 85 00 00 B5 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 03 02 [12:32:17]Write to MH i2c: E2 08 00 4C 1D 80 0D 03 02 00 00 00 00 E4 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0B 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0B 00 4C 1D 00 32 70 59 C2 20 18 0E B6 90 00 9E [12:32:17]RAPDU: 32 70 59 C2 20 18 0E B6 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_SignData done [12:32:17]FM_MakeSignedData done [12:32:17]CreateOFDProtocolMessage [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 11 00 00 [12:32:17]Write to MH i2c: E2 08 00 4D 1D 80 11 00 00 00 00 00 00 E4 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 4D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 31 [12:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:32:17]wFMCommunicate OK [12:32:17]CreateOFDProtocolMessage done [12:32:17]OFDSenderStorePacket 73804 [12:32:17]StoreOFDPacket docnum=73804 [12:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CA 07 07 01 A8 56 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 82 00 00 00 F4 03 04 00 51 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 20 01 00 35 04 06 00 3F 63 D2 D1 3E 85 32 70 59 C2 20 18 0E B6 [12:32:17]CheckFolder [12:32:17]dirname=/storage/ofd_packets [12:32:17]CheckFolder done [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00073804 [12:32:17]NVStorageSaveData ofd_packets/00073804 [12:32:17]File name is /storage/ofd_packets/00073804 [12:32:17]Write 301 bytes [12:32:17]NVStorageSaveData done [12:32:17]OFDSenderStorePacket done [12:32:17]KKMCreateOFDPacket done [12:32:17]NVStorageSaveData kkm_last_timestamp [12:32:17]File name is /storage/kkm_last_timestamp [12:32:17]Write 4 bytes [12:32:17]NVStorageSaveData done [12:32:17]ExternCall_PrintAddStr [12:32:17]wPrintStart [12:32:17]Write to MH i2c: 01 00 00 4E 1D 6B [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 FF 0F 80 [12:32:17]RasterBufferAndPrint [12:32:17]line Счет N : (1)1962943 [12:32:17]line ИНН: 02508201610067 [12:32:17]line Контрольно-Кассовый Чек [12:32:17]line ПРОДАЖА [12:32:17]line ТРК (МРК, ГНК) : 34 [12:32:17]line Товар: 2710124500 [12:32:17]line Аи-95-К-5 [12:32:17]line 6.740 * 74.20 [12:32:17]line = 500.11 [12:32:17]line НДС 12% НСП 1% [12:32:17]line > о реализуемом товаре [12:32:17]line ОКРУГЛЕНИЕ: -0.11 [12:32:17]line ИТОГО: 500.00 [12:32:17]line Внесено: 500.00 [12:32:17]line СДАЧА: 0.00 [12:32:17]line НСП 1% : 4.43 [12:32:17]line НДС 12% : 53.11 [12:32:17]line Наличными: 500.00 [12:32:17]line Безнал.: 0.00 [12:32:17]line Место: АЗС № 133 "Партнер Нефть" [12:32:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:32:17]line СНО: Общий режим [12:32:17]line Чек 130 20.10.2024 12:32 [12:32:17]line Смена: 170 ФФД: 1.0 [12:32:17]line ЗНМ: 0300000020 [12:32:17]line РНМ: 0000000000161154 [12:32:17]line Версия ККМ: v1.0 [12:32:17]line ФМ: 0000000000963323 [12:32:17]line ФД: 73804 [12:32:17]line ФПД: 69697971240581 [12:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123217&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73804&fm=69697971240581&tin=02508201610067®Number=0000000000161154&sum=50000 [12:32:17]OFD Sender: Processing packet 73804 [packets to send 15, broken 14] [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00073804 [12:32:17]OFD Sender: To server: pG, [12:32:17]CommunicateWithHost lk.salyk.kg:30040 [12:32:17]ConnectInit lk.salyk.kg [12:32:17]written 0, free lines is 4095 [12:32:17]Connected sock=10 [12:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CA 07 07 01 A8 56 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 82 00 00 00 F4 03 04 00 51 F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 20 01 00 35 04 06 00 3F 63 D2 D1 3E 85 32 70 59 C2 20 18 0E B6 [12:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B3 30 47 00 FB 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 39 36 33 33 32 33 10 04 04 00 4C 20 01 00 F4 03 04 00 35 A1 14 67 B6 04 01 00 00 A3 D1 CA 7D B5 11 38 3A [12:32:17]CommunicateWithHost err = 0 [12:32:17]CheckOFDResponse [12:32:17]1017 (14) - 77093643461234 [12:32:17]1041 (16) - 0000000000963323 [12:32:17]1040 (4) - 73804 [12:32:17]1012 (4) - 20.10.2024 06:20 [12:32:17]1206 (1) - 0 [12:32:17]OFD Sender: Remove packet 73804 [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00073804 [12:32:17]NVStorageDeleteData [12:32:17]Write to MH i2c: 01 00 00 78 1D 95 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 78 1D 00 00 00 00 00 AF 0C 57 [12:32:17]RasterBufferAndPrint [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]written 0, free lines is 3251 [12:32:17]MH_Cut [12:32:17]Write to MH i2c: D1 01 00 7F 1D 01 6E [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 01 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 01 00 7F 1D 00 6D [12:32:17]Write to MH i2c: 01 00 00 80 1D 9D [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:18]OFD Sender: No OFD packet to send [12:32:18]*** Cut start [12:32:18]*** Partial cut [12:32:18]*** CUTSNS_PIN = 1 [12:32:18]*** CUTSNS_PIN = 0 [12:32:19]*** Brake cut motor [12:32:19]Read from MH i2c: 01 [12:32:19]MH_I2C_Read... [12:32:19]*** Stop cut motor [12:32:19]*** Cut end [12:32:19]Read from MH i2c: 01 07 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: 01 07 00 80 1D 00 00 00 00 00 FF 0F B2 [12:32:19]process_action close_receipt done [12:32:19]requested_data is exist [12:32:19]produce_requested_data [12:32:19]requested_item fm.sn is exist - process it [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 11 00 00 [12:32:19]Write to MH i2c: E2 08 00 81 1D 80 11 00 00 00 00 00 00 18 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 17 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 17 00 81 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 65 [12:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:32:19]wFMCommunicate OK [12:32:19]requested_item fd.num is exist - process it [12:32:19]SAM_PROTO_GetFieldsCounters [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 00 00 [12:32:19]Write to MH i2c: E2 08 00 82 1D 80 13 00 00 00 00 00 00 1B [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 62 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 62 00 82 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4C 20 01 00 0E 04 04 00 AA 00 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 CC [12:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4C 20 01 00 0E 04 04 00 AA 00 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 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetFieldsCounters done [12:32:19]requested_item shift.num is exist - process it [12:32:19]requested_item shift.opened is exist - process it [12:32:19]req_shift_opened [12:32:19]FM_GetShiftState [12:32:19]SAM_PROTO_GetShiftState [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 01 00 [12:32:19]Write to MH i2c: E2 08 00 83 1D 80 13 01 00 00 00 00 00 1D [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 83 1D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 62 [12:32:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetShiftState done [12:32:19]FM_GetShiftState done [12:32:19]req_shift_opened done [12:32:19]requested_item shift.open_date is exist - process it [12:32:19]req_shift_open_date [12:32:19]req_shift_open_date done [12:32:19]produce_requested_data done [12:32:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73804,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:32:19]process_action_free close_receipt [12:32:19]json_value_free [12:32:19]json_value_free done [12:32:19]process_json_proto returns [12:32:19]Send response to host [12:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73804,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:32:19]free response buf [12:32:19]execute_script done [12:32:19]execute_script returns [12:32:19]free content buf [12:32:19]Sock 9.Close socket [12:32:19]Sock 9.Thread stoped [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:01]accept exits with 8 [12:33:01]New connection [12:33:01]New thread 3067432292 created [12:33:01]Thread 3067575652 joined [12:33:01]Waiting for new connection... [12:33:01] Sock 8.Parse request [12:33:01]Sock 8.Check first char [12:33:01]Sock 8.First char is OK [12:33:01]request: POST /json_proto HTTP/1.0 [12:33:01]Method: POST [12:33:01]URL: /json_proto [12:33:01]Method is POST - this is cgi request [12:33:01]url: /json_proto [12:33:01]query_string will be loaded in cgi processing [12:33:01]execute_cgi json_proto POST (null) [12:33:01]execute_cgi path=json_proto method=POST [12:33:01]POST find Content-Length [12:33:01]Host: 172.17.44.196:8080 [12:33:01]Content-Length: 679 [12:33:01]Content-Type: application/json [12:33:01] [12:33:01]POST finish read [12:33:01]Found Content-Length = 679 [12:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:01]execute_script... [12:33:01]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)1962944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:01]POST & json_proto [12:33:01]process_json_proto [12:33:01]json parsed OK: [12:33:01]protocol is kg_v1.0 [12:33:01]action value=close_receipt [12:33:01]process_action close_receipt [12:33:01]cmd_close_receipt [12:33:01]MH_GetDate [12:33:01]Write to MH i2c: F0 00 00 84 1D 90 [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: F0 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: F0 09 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: F0 09 00 84 1D 00 7F F8 14 67 E7 19 F8 65 E8 [12:33:01]GetLastDocTimeStamp 1729427537 [12:33:01]current date 1729427583 [12:33:01]FM_GetShiftState [12:33:01]SAM_PROTO_GetShiftState [12:33:01]wFMCommunicate request_size=4 [12:33:01]MH_SAM_APDU [12:33:01]CAPDU: 80 13 01 00 [12:33:01]Write to MH i2c: E2 08 00 85 1D 80 13 01 00 00 00 00 00 1F [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 0E 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 0E 00 85 1D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 64 [12:33:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:33:01]wFMCommunicate OK [12:33:01]SAM_PROTO_GetShiftState done [12:33:01]FM_GetShiftState done [12:33:01]opened in 1729384303 [12:33:01]opened+sec_in_day 1729470703 [12:33:01]quantity*price = 90004 [12:33:01]sum+1 = 90006 [12:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 131 20.10.2024 12:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73805 ФПД: 272366870751471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123303&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73805&fm=272366870751471&tin=02508201610067®Number=0000000000161154&sum=90000 [12:33:02]StoreToDocumentArchive [12:33:02]shift 170 fd 73805 [12:33:02]save to /storage/0170/doc_00073805 [12:33:02]save last doc name /storage/0170/doc_00073805 to /storage/kkm_last_doc_name [12:33:02]save OK [12:33:02]Clear old archive folders... [12:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:02]tlvbuf is B6FED160 [12:33:02]SAM_PROTO_ClearQueue [12:33:02]wFMCommunicate request_size=4 [12:33:02]MH_SAM_APDU [12:33:02]CAPDU: 80 09 00 00 [12:33:02]Write to MH i2c: E2 08 00 92 1D 80 09 00 00 00 00 00 00 21 [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:02]Read from MH i2c: E2 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 03 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 03 00 92 1D 00 90 00 23 [12:33:02]RAPDU: 90 00 [12:33:02]wFMCommunicate OK [12:33:02]SAM_PROTO_ClearQueue done [12:33:02]KKMCreateOFDPacket [12:33:02]OFDProtocolAddRootSTLVToBuf [12:33:02]FM_MakeSignedData [12:33:02]FM_MakeSignedData [12:33:02]SAM_PROTO_SignData [12:33:02]wFMCommunicate request_size=4 [12:33:02]MH_SAM_APDU [12:33:02]CAPDU: 80 0D 01 02 [12:33:02]Write to MH i2c: E2 08 00 93 1D 80 0D 01 02 00 00 00 00 29 [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:02]Read from MH i2c: E2 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 03 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [12:33:02]RAPDU: 90 00 [12:33:02]wFMCommunicate OK [12:33:02]wFMCommunicate request_size=255 [12:33:02]MH_SAM_APDU [12:33:02]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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7F F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 20 01 00 35 04 06 00 F7 [12:33:02]Write to MH i2c: E2 02 01 94 1D 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7F F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 20 01 00 35 04 06 00 F7 00 00 C6 [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 03 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 03 00 94 1D 00 90 00 25 [12:33:03]RAPDU: 90 00 [12:33:03]wFMCommunicate OK [12:33:03]wFMCommunicate request_size=10 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 0D 02 02 05 B7 5A 94 68 EF [12:33:03]Write to MH i2c: E2 0D 00 95 1D 80 0D 02 02 05 00 B7 5A 94 68 EF 00 00 32 [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 03 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 03 00 95 1D 00 90 00 26 [12:33:03]RAPDU: 90 00 [12:33:03]wFMCommunicate OK [12:33:03]wFMCommunicate request_size=4 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 0D 03 02 [12:33:03]Write to MH i2c: E2 08 00 96 1D 80 0D 03 02 00 00 00 00 2E [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 0B 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 0B 00 96 1D 00 D0 35 DC 48 A2 5D C5 3A 90 00 56 [12:33:03]RAPDU: D0 35 DC 48 A2 5D C5 3A 90 00 [12:33:03]wFMCommunicate OK [12:33:03]SAM_PROTO_SignData done [12:33:03]FM_MakeSignedData done [12:33:03]CreateOFDProtocolMessage [12:33:03]wFMCommunicate request_size=4 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 11 00 00 [12:33:03]Write to MH i2c: E2 08 00 97 1D 80 11 00 00 00 00 00 00 2E [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 17 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 17 00 97 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7B [12:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:33:03]wFMCommunicate OK [12:33:03]CreateOFDProtocolMessage done [12:33:03]OFDSenderStorePacket 73805 [12:33:03]StoreOFDPacket docnum=73805 [12:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AD 22 07 01 4A B7 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7F F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 20 01 00 35 04 06 00 F7 B7 5A 94 68 EF D0 35 DC 48 A2 5D C5 3A [12:33:03]CheckFolder [12:33:03]dirname=/storage/ofd_packets [12:33:03]CheckFolder done [12:33:03]ProducePacketName [12:33:03]name=ofd_packets/00073805 [12:33:03]NVStorageSaveData ofd_packets/00073805 [12:33:03]File name is /storage/ofd_packets/00073805 [12:33:03]Write 301 bytes [12:33:03]NVStorageSaveData done [12:33:03]OFDSenderStorePacket done [12:33:03]KKMCreateOFDPacket done [12:33:03]NVStorageSaveData kkm_last_timestamp [12:33:03]File name is /storage/kkm_last_timestamp [12:33:03]Write 4 bytes [12:33:03]NVStorageSaveData done [12:33:03]ExternCall_PrintAddStr [12:33:03]wPrintStart [12:33:03]Write to MH i2c: 01 00 00 98 1D B5 [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 07 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 07 00 98 1D 00 00 00 00 00 FF 0F CA [12:33:03]RasterBufferAndPrint [12:33:03]line Счет N : (1)1962944 [12:33:03]line ИНН: 02508201610067 [12:33:03]line Контрольно-Кассовый Чек [12:33:03]line ПРОДАЖА [12:33:03]line ТРК (МРК, ГНК) : 64 [12:33:03]line Товар: 2710124500 [12:33:03]line Аи-95-К-5 [12:33:03]line 12.130 * 74.20 [12:33:03]line = 900.05 [12:33:03]line НДС 12% НСП 1% [12:33:03]line > о реализуемом товаре [12:33:03]line ОКРУГЛЕНИЕ: -0.05 [12:33:03]line ИТОГО: 900.00 [12:33:03]line Внесено: 900.00 [12:33:03]line СДАЧА: 0.00 [12:33:03]line НСП 1% : 7.96 [12:33:03]line НДС 12% : 95.58 [12:33:03]line Наличными: 900.00 [12:33:03]line Безнал.: 0.00 [12:33:03]line Место: АЗС № 133 "Партнер Нефть" [12:33:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:33:03]line СНО: Общий режим [12:33:03]line Чек 131 20.10.2024 12:33 [12:33:03]line Смена: 170 ФФД: 1.0 [12:33:03]line ЗНМ: 0300000020 [12:33:03]line РНМ: 0000000000161154 [12:33:03]line Версия ККМ: v1.0 [12:33:03]line ФМ: 0000000000963323 [12:33:03]line ФД: 73805 [12:33:03]line ФПД: 272366870751471 [12:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123303&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73805&fm=272366870751471&tin=02508201610067®Number=0000000000161154&sum=90000 [12:33:03]OFD Sender: Processing packet 73805 [packets to send 15, broken 14] [12:33:03]ProducePacketName [12:33:03]name=ofd_packets/00073805 [12:33:03]OFD Sender: To server: pG, [12:33:03]CommunicateWithHost lk.salyk.kg:30040 [12:33:03]ConnectInit lk.salyk.kg [12:33:03]written 0, free lines is 4095 [12:33:03]Connected sock=10 [12:33:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AD 22 07 01 4A B7 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7F F8 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 20 01 00 35 04 06 00 F7 B7 5A 94 68 EF D0 35 DC 48 A2 5D C5 3A [12:33:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BB 62 47 00 93 C6 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 39 36 33 33 32 33 10 04 04 00 4D 20 01 00 F4 03 04 00 63 A1 14 67 B6 04 01 00 00 96 62 5D C0 FC 08 05 4D [12:33:03]CommunicateWithHost err = 0 [12:33:03]CheckOFDResponse [12:33:03]1017 (14) - 77093643461234 [12:33:03]1041 (16) - 0000000000963323 [12:33:03]1040 (4) - 73805 [12:33:03]1012 (4) - 20.10.2024 06:21 [12:33:03]1206 (1) - 0 [12:33:03]OFD Sender: Remove packet 73805 [12:33:03]ProducePacketName [12:33:03]name=ofd_packets/00073805 [12:33:03]NVStorageDeleteData [12:33:03]Write to MH i2c: 01 00 00 C2 1D DF [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 07 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 07 00 C2 1D 00 00 00 00 00 B0 0C A2 [12:33:03]RasterBufferAndPrint [12:33:03]line [12:33:03]line [12:33:03]line [12:33:03]line [12:33:03]line [12:33:03]written 0, free lines is 3253 [12:33:03]MH_Cut [12:33:03]Write to MH i2c: D1 01 00 C9 1D 01 B8 [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: D1 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: D1 01 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: D1 01 00 C9 1D 00 B7 [12:33:04]Write to MH i2c: 01 00 00 CA 1D E7 [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]OFD Sender: No OFD packet to send [12:33:04]*** Cut start [12:33:04]*** Partial cut [12:33:04]*** CUTSNS_PIN = 1 [12:33:04]*** CUTSNS_PIN = 0 [12:33:05]*** Brake cut motor [12:33:05]Read from MH i2c: 01 [12:33:05]MH_I2C_Read... [12:33:05]*** Stop cut motor [12:33:05]*** Cut end [12:33:05]Read from MH i2c: 01 07 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 07 00 CA 1D 00 00 00 00 00 FF 0F FC [12:33:05]process_action close_receipt done [12:33:05]requested_data is exist [12:33:05]produce_requested_data [12:33:05]requested_item fm.sn is exist - process it [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 11 00 00 [12:33:05]Write to MH i2c: E2 08 00 CB 1D 80 11 00 00 00 00 00 00 62 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 17 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 17 00 CB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AF [12:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:33:05]wFMCommunicate OK [12:33:05]requested_item fd.num is exist - process it [12:33:05]SAM_PROTO_GetFieldsCounters [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 13 00 00 [12:33:05]Write to MH i2c: E2 08 00 CC 1D 80 13 00 00 00 00 00 00 65 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 62 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 62 00 CC 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4D 20 01 00 0E 04 04 00 AA 00 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 1A [12:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4D 20 01 00 0E 04 04 00 AA 00 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:33:05]wFMCommunicate OK [12:33:05]SAM_PROTO_GetFieldsCounters done [12:33:05]requested_item shift.num is exist - process it [12:33:05]requested_item shift.opened is exist - process it [12:33:05]req_shift_opened [12:33:05]FM_GetShiftState [12:33:05]SAM_PROTO_GetShiftState [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 13 01 00 [12:33:05]Write to MH i2c: E2 08 00 CD 1D 80 13 01 00 00 00 00 00 67 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 0E 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 0E 00 CD 1D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AC [12:33:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:33:05]wFMCommunicate OK [12:33:05]SAM_PROTO_GetShiftState done [12:33:05]FM_GetShiftState done [12:33:05]req_shift_opened done [12:33:05]requested_item shift.open_date is exist - process it [12:33:05]req_shift_open_date [12:33:05]req_shift_open_date done [12:33:05]produce_requested_data done [12:33:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73805,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:33:05]process_action_free close_receipt [12:33:05]json_value_free [12:33:05]json_value_free done [12:33:05]process_json_proto returns [12:33:05]Send response to host [12:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73805,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:33:05]free response buf [12:33:05]execute_script done [12:33:05]execute_script returns [12:33:05]free content buf [12:33:05]Sock 8.Close socket [12:33:05]Sock 8.Thread stoped [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:34]accept exits with 9 [12:46:34]New connection [12:46:34]New thread 3067575652 created [12:46:34]Thread 3067432292 joined [12:46:34]Waiting for new connection... [12:46:34] Sock 9.Parse request [12:46:34]Sock 9.Check first char [12:46:34]Sock 9.First char is OK [12:46:34]request: POST /json_proto HTTP/1.0 [12:46:34]Method: POST [12:46:34]URL: /json_proto [12:46:34]Method is POST - this is cgi request [12:46:34]url: /json_proto [12:46:34]query_string will be loaded in cgi processing [12:46:34]execute_cgi json_proto POST (null) [12:46:34]execute_cgi path=json_proto method=POST [12:46:34]POST find Content-Length [12:46:34]Host: 172.17.44.196:8080 [12:46:34]Content-Length: 1015 [12:46:34]Content-Type: application/json [12:46:34] [12:46:34]POST finish read [12:46:34]Found Content-Length = 1015 [12:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272783", "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 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:34]execute_script... [12:46: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)272783", "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 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:34]POST & json_proto [12:46:34]process_json_proto [12:46:34]json parsed OK: [12:46:34]protocol is kg_v1.0 [12:46:34]action value=close_receipt [12:46:34]process_action close_receipt [12:46:34]cmd_close_receipt [12:46:34]MH_GetDate [12:46:34]Write to MH i2c: F0 00 00 CE 1D DA [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 09 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 09 00 CE 1D 00 AC FB 14 67 E7 19 F8 65 62 [12:46:34]GetLastDocTimeStamp 1729427583 [12:46:34]current date 1729428396 [12:46:34]FM_GetShiftState [12:46:34]SAM_PROTO_GetShiftState [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 13 01 00 [12:46:34]Write to MH i2c: E2 08 00 CF 1D 80 13 01 00 00 00 00 00 69 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 CF 1D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AE [12:46:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_GetShiftState done [12:46:34]FM_GetShiftState done [12:46:34]opened in 1729384303 [12:46:34]opened+sec_in_day 1729470703 [12:46:34]quantity*price = 8000 [12:46:34]sum+1 = 8001 [12:46:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010056 Чай хол Let`s Go! зел лим ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.59 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 132 20.10.2024 12:46 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73806 ФПД: 192981008325472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124636&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73806&fm=192981008325472&tin=02508201610067®Number=0000000000161154&sum=17500 0 [12:46:36]StoreToDocumentArchive [12:46:36]shift 170 fd 73806 [12:46:36]save to /storage/0170/doc_00073806 [12:46:36]save last doc name /storage/0170/doc_00073806 to /storage/kkm_last_doc_name [12:46:36]save OK [12:46:36]Clear old archive folders... [12:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=429 [12:46:36]tlvbuf is 003D9E80 [12:46:36]SAM_PROTO_ClearQueue [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 09 00 00 [12:46:36]Write to MH i2c: E2 08 00 DC 1D 80 09 00 00 00 00 00 00 6B [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 DC 1D 00 90 00 6D [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]SAM_PROTO_ClearQueue done [12:46:36]KKMCreateOFDPacket [12:46:36]OFDProtocolAddRootSTLVToBuf [12:46:36]FM_MakeSignedData [12:46:36]FM_MakeSignedData [12:46:36]SAM_PROTO_SignData [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 01 02 [12:46:36]Write to MH i2c: E2 08 00 DD 1D 80 0D 01 02 00 00 00 00 73 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 DD 1D 00 90 00 6E [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=255 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 02 02 FA 03 00 AD 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 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 [12:46:36]Write to MH i2c: E2 02 01 DE 1D 80 0D 02 02 FA 00 03 00 AD 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 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 C9 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=188 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 02 02 B7 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 43 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 84 00 00 00 F4 03 04 00 AC FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 20 01 00 35 04 06 00 AF 83 E4 73 1B 60 [12:46:36]Write to MH i2c: E2 BF 00 DF 1D 80 0D 02 02 B7 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 43 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 84 00 00 00 F4 03 04 00 AC FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 20 01 00 35 04 06 00 AF 83 E4 73 1B 60 00 00 B5 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 DF 1D 00 90 00 70 [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 03 02 [12:46:36]Write to MH i2c: E2 08 00 E0 1D 80 0D 03 02 00 00 00 00 78 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 0B 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 0B 00 E0 1D 00 2D 3F 8B EC D6 D9 1D EF 90 00 17 [12:46:36]RAPDU: 2D 3F 8B EC D6 D9 1D EF 90 00 [12:46:36]wFMCommunicate OK [12:46:36]SAM_PROTO_SignData done [12:46:36]FM_MakeSignedData done [12:46:36]CreateOFDProtocolMessage [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 11 00 00 [12:46:36]Write to MH i2c: E2 08 00 E1 1D 80 11 00 00 00 00 00 00 78 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 17 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 17 00 E1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C5 [12:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:46:36]wFMCommunicate OK [12:46:36]CreateOFDProtocolMessage done [12:46:36]OFDSenderStorePacket 73806 [12:46:36]StoreOFDPacket docnum=73806 [12:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 C1 01 00 00 79 16 B9 01 FD 12 5A 03 01 00 03 00 AD 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 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 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 43 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 84 00 00 00 F4 03 04 00 AC FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 20 01 00 35 04 06 00 AF 83 E4 73 1B 60 2D 3F 8B EC D6 D9 1D EF [12:46:36]CheckFolder [12:46:36]dirname=/storage/ofd_packets [12:46:36]CheckFolder done [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00073806 [12:46:36]NVStorageSaveData ofd_packets/00073806 [12:46:36]File name is /storage/ofd_packets/00073806 [12:46:36]Write 479 bytes [12:46:36]NVStorageSaveData done [12:46:36]OFDSenderStorePacket done [12:46:36]KKMCreateOFDPacket done [12:46:37]NVStorageSaveData kkm_last_timestamp [12:46:37]File name is /storage/kkm_last_timestamp [12:46:37]Write 4 bytes [12:46:37]NVStorageSaveData done [12:46:37]ExternCall_PrintAddStr [12:46:37]wPrintStart [12:46:37]Write to MH i2c: 01 00 00 E2 1D FF [12:46:37]OFD Sender: Processing packet 73806 [packets to send 15, broken 14] [12:46:37]ProducePacketName [12:46:37]name=ofd_packets/00073806 [12:46:37]OFD Sender: To server: pG, [12:46:37]CommunicateWithHost lk.salyk.kg:30040 [12:46:37]ConnectInit lk.salyk.kg [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 E2 1D 00 00 00 00 00 FF 0F 14 [12:46:37]RasterBufferAndPrint [12:46:37]line Счет N : (3)272783 [12:46:37]line ИНН: 02508201610067 [12:46:37]line Контрольно-Кассовый Чек [12:46:37]line ПРОДАЖА [12:46:37]line Товар: 4600338001623 [12:46:37]line Вода Фруто НЯНЯ негазир д/детей 0,33л [12:46:37]line 1.000 * 80.00 [12:46:37]line = 80.00 [12:46:37]line НДС 12% НСП 1% [12:46:37]line > о реализуемом товаре [12:46:37]line Товар: 4700003010056 [12:46:37]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [12:46:37]line 1.000 * 95.00 [12:46:37]line = 95.00 [12:46:37]line НДС 12% НСП 1% [12:46:37]line > о реализуемом товаре [12:46:37]line ИТОГО: 175.00 [12:46:37]line НСП 1% : 1.55 [12:46:37]line НДС 12% : 18.59 [12:46:37]line Наличными: 175.00 [12:46:37]line Безнал.: 0.00 [12:46:37]line Место: АЗС № 133 "Партнер Нефть" [12:46:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:46:37]line СНО: Общий режим [12:46:37]line Чек 132 20.10.2024 12:46 [12:46:37]line Смена: 170 ФФД: 1.0 [12:46:37]line ЗНМ: 0300000020 [12:46:37]line РНМ: 0000000000161154 [12:46:37]line Версия ККМ: v1.0 [12:46:37]line ФМ: 0000000000963323 [12:46:37]line ФД: 73806 [12:46:37]line ФПД: 192981008325472 [12:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124636&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73806&fm=192981008325472&tin=02508201610067®Number=0000000000161154&sum=17500 [12:46:37]line 0 [12:46:37]written 0, free lines is 4095 [12:46:37]Connected sock=10 [12:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 C1 01 00 00 79 16 B9 01 FD 12 5A 03 01 00 03 00 AD 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 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 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 43 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 84 00 00 00 F4 03 04 00 AC FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 20 01 00 35 04 06 00 AF 83 E4 73 1B 60 2D 3F 8B EC D6 D9 1D EF [12:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 54 50 47 00 F9 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 39 36 33 33 32 33 10 04 04 00 4E 20 01 00 F4 03 04 00 91 A4 14 67 B6 04 01 00 00 39 C4 DC 43 CB 0F 13 EE [12:46:37]CommunicateWithHost err = 0 [12:46:37]CheckOFDResponse [12:46:37]1017 (14) - 77093643461234 [12:46:37]1041 (16) - 0000000000963323 [12:46:37]1040 (4) - 73806 [12:46:37]1012 (4) - 20.10.2024 06:34 [12:46:37]1206 (1) - 0 [12:46:37]OFD Sender: Remove packet 73806 [12:46:37]ProducePacketName [12:46:37]name=ofd_packets/00073806 [12:46:37]NVStorageDeleteData [12:46:37]Write to MH i2c: 01 00 00 11 1E 2F [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 11 1E 00 00 00 00 00 58 0C 9A [12:46:37]RasterBufferAndPrint [12:46:37]line [12:46:37]line [12:46:37]line [12:46:37]line [12:46:37]line [12:46:37]written 0, free lines is 3166 [12:46:37]MH_Cut [12:46:37]Write to MH i2c: D1 01 00 18 1E 01 08 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: D1 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: D1 01 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: D1 01 00 18 1E 00 07 [12:46:37]Write to MH i2c: 01 00 00 19 1E 37 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]OFD Sender: No OFD packet to send [12:46:38]*** Cut start [12:46:38]*** Partial cut [12:46:38]*** CUTSNS_PIN = 1 [12:46:38]*** CUTSNS_PIN = 0 [12:46:38]*** Brake cut motor [12:46:39]Read from MH i2c: 01 [12:46:39]MH_I2C_Read... [12:46:39]*** Stop cut motor [12:46:39]*** Cut end [12:46:39]Read from MH i2c: 01 07 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 19 1E 00 00 00 00 00 FF 0F 4C [12:46:39]process_action close_receipt done [12:46:39]requested_data is exist [12:46:39]produce_requested_data [12:46:39]requested_item fm.sn is exist - process it [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 11 00 00 [12:46:39]Write to MH i2c: E2 08 00 1A 1E 80 11 00 00 00 00 00 00 B2 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:39]Read from MH i2c: E2 17 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 17 00 1A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FF [12:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:46:39]wFMCommunicate OK [12:46:39]requested_item fd.num is exist - process it [12:46:39]SAM_PROTO_GetFieldsCounters [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 13 00 00 [12:46:39]Write to MH i2c: E2 08 00 1B 1E 80 13 00 00 00 00 00 00 B5 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 62 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 62 00 1B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4E 20 01 00 0E 04 04 00 AA 00 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 6E [12:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4E 20 01 00 0E 04 04 00 AA 00 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 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_GetFieldsCounters done [12:46:39]requested_item shift.num is exist - process it [12:46:39]requested_item shift.opened is exist - process it [12:46:39]req_shift_opened [12:46:39]FM_GetShiftState [12:46:39]SAM_PROTO_GetShiftState [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 13 01 00 [12:46:39]Write to MH i2c: E2 08 00 1C 1E 80 13 01 00 00 00 00 00 B7 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0E 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0E 00 1C 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FC [12:46:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_GetShiftState done [12:46:39]FM_GetShiftState done [12:46:39]req_shift_opened done [12:46:39]requested_item shift.open_date is exist - process it [12:46:39]req_shift_open_date [12:46:39]req_shift_open_date done [12:46:39]produce_requested_data done [12:46:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73806,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:46:39]process_action_free close_receipt [12:46:39]json_value_free [12:46:39]json_value_free done [12:46:39]process_json_proto returns [12:46:39]Send response to host [12:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73806,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:46:39]free response buf [12:46:39]execute_script done [12:46:39]execute_script returns [12:46:39]free content buf [12:46:39]Sock 9.Close socket [12:46:39]Sock 9.Thread stoped [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:01]accept exits with 8 [12:47:01]New connection [12:47:01]New thread 3067432292 created [12:47:01]Thread 3067575652 joined [12:47:01]Waiting for new connection... [12:47:01] Sock 8.Parse request [12:47:01]Sock 8.Check first char [12:47:01]Sock 8.First char is OK [12:47:01]request: POST /json_proto HTTP/1.0 [12:47:01]Method: POST [12:47:01]URL: /json_proto [12:47:01]Method is POST - this is cgi request [12:47:01]url: /json_proto [12:47:01]query_string will be loaded in cgi processing [12:47:01]execute_cgi json_proto POST (null) [12:47:01]execute_cgi path=json_proto method=POST [12:47:01]POST find Content-Length [12:47:01]Host: 172.17.44.196:8080 [12:47:01]Content-Length: 632 [12:47:01]Content-Type: application/json [12:47:01] [12:47:01]POST finish read [12:47:01]Found Content-Length = 632 [12:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272784", "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" ] } } [12:47:01]execute_script... [12:47:01]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)272784", "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" ] } } [12:47:01]POST & json_proto [12:47:01]process_json_proto [12:47:01]json parsed OK: [12:47:01]protocol is kg_v1.0 [12:47:01]action value=close_receipt [12:47:01]process_action close_receipt [12:47:01]cmd_close_receipt [12:47:01]MH_GetDate [12:47:01]Write to MH i2c: F0 00 00 1D 1E 2A [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: F0 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: F0 09 00 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: F0 09 00 1D 1E 00 C7 FB 14 67 E7 19 F8 65 CD [12:47:01]GetLastDocTimeStamp 1729428396 [12:47:01]current date 1729428423 [12:47:01]FM_GetShiftState [12:47:01]SAM_PROTO_GetShiftState [12:47:01]wFMCommunicate request_size=4 [12:47:01]MH_SAM_APDU [12:47:01]CAPDU: 80 13 01 00 [12:47:01]Write to MH i2c: E2 08 00 1E 1E 80 13 01 00 00 00 00 00 B9 [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:01]Read from MH i2c: E2 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 0E 00 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 0E 00 1E 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FE [12:47:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:47:01]wFMCommunicate OK [12:47:01]SAM_PROTO_GetShiftState done [12:47:01]FM_GetShiftState done [12:47:01]opened in 1729384303 [12:47:01]opened+sec_in_day 1729470703 [12:47:01]quantity*price = 6000 [12:47:01]sum+1 = 6001 [12:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 133 20.10.2024 12:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73807 ФПД: 236132329919604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124703&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73807&fm=236132329919604&tin=02508201610067®Number=0000000000161154&sum=6000 0 [12:47:02]StoreToDocumentArchive [12:47:02]shift 170 fd 73807 [12:47:02]save to /storage/0170/doc_00073807 [12:47:02]save last doc name /storage/0170/doc_00073807 to /storage/kkm_last_doc_name [12:47:02]save OK [12:47:02]Clear old archive folders... [12:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:47:02]tlvbuf is 0037B2B0 [12:47:02]SAM_PROTO_ClearQueue [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 09 00 00 [12:47:02]Write to MH i2c: E2 08 00 2B 1E 80 09 00 00 00 00 00 00 BB [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]OFD Sender: No OFD packet to send [12:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 2B 1E 00 90 00 BD [12:47:03]RAPDU: 90 00 [12:47:03]wFMCommunicate OK [12:47:03]SAM_PROTO_ClearQueue done [12:47:03]KKMCreateOFDPacket [12:47:03]OFDProtocolAddRootSTLVToBuf [12:47:03]FM_MakeSignedData [12:47:03]FM_MakeSignedData [12:47:03]SAM_PROTO_SignData [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 0D 01 02 [12:47:03]Write to MH i2c: E2 08 00 2C 1E 80 0D 01 02 00 00 00 00 C3 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [12:47:03]RAPDU: 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=255 [12:47:03]MH_SAM_APDU [12:47:03]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 85 00 00 00 F4 03 04 00 C7 FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:47:03]Write to MH i2c: E2 02 01 2D 1E 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 85 00 00 00 F4 03 04 00 C7 FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 57 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [12:47:03]RAPDU: 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=30 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 4F 20 01 00 35 04 06 00 D6 C2 D7 A5 14 74 [12:47:03]Write to MH i2c: E2 21 00 2E 1E 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 4F 20 01 00 35 04 06 00 D6 C2 D7 A5 14 74 00 00 C5 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [12:47:03]RAPDU: 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 0D 03 02 [12:47:03]Write to MH i2c: E2 08 00 2F 1E 80 0D 03 02 00 00 00 00 C8 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 0B 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 0B 00 2F 1E 00 11 2C A3 B8 50 9A 88 2F 90 00 02 [12:47:03]RAPDU: 11 2C A3 B8 50 9A 88 2F 90 00 [12:47:03]wFMCommunicate OK [12:47:03]SAM_PROTO_SignData done [12:47:03]FM_MakeSignedData done [12:47:03]CreateOFDProtocolMessage [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 11 00 00 [12:47:03]Write to MH i2c: E2 08 00 30 1E 80 11 00 00 00 00 00 00 C8 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 17 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 17 00 30 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [12:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:47:03]wFMCommunicate OK [12:47:03]CreateOFDProtocolMessage done [12:47:03]OFDSenderStorePacket 73807 [12:47:03]StoreOFDPacket docnum=73807 [12:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 15 6E 1B 01 6A 9E 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 85 00 00 00 F4 03 04 00 C7 FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4F 20 01 00 35 04 06 00 D6 C2 D7 A5 14 74 11 2C A3 B8 50 9A 88 2F [12:47:03]CheckFolder [12:47:03]dirname=/storage/ofd_packets [12:47:03]CheckFolder done [12:47:03]ProducePacketName [12:47:03]name=ofd_packets/00073807 [12:47:03]NVStorageSaveData ofd_packets/00073807 [12:47:03]File name is /storage/ofd_packets/00073807 [12:47:03]Write 321 bytes [12:47:03]NVStorageSaveData done [12:47:03]OFDSenderStorePacket done [12:47:03]KKMCreateOFDPacket done [12:47:03]NVStorageSaveData kkm_last_timestamp [12:47:03]File name is /storage/kkm_last_timestamp [12:47:03]Write 4 bytes [12:47:03]NVStorageSaveData done [12:47:03]ExternCall_PrintAddStr [12:47:03]wPrintStart [12:47:03]Write to MH i2c: 01 00 00 31 1E 4F [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 31 1E 00 00 00 00 00 FF 0F 64 [12:47:03]RasterBufferAndPrint [12:47:03]line Счет N : (3)272784 [12:47:03]line ИНН: 02508201610067 [12:47:03]line Контрольно-Кассовый Чек [12:47:03]line ПРОДАЖА [12:47:03]line Товар: 4700000160204 [12:47:03]line Вода Легенда 1,5л [12:47:03]line 1.000 * 60.00 [12:47:03]line = 60.00 [12:47:03]line НДС 12% НСП 1% [12:47:03]line > о реализуемом товаре [12:47:03]line ИТОГО: 60.00 [12:47:03]line НСП 1% : 0.53 [12:47:03]line НДС 12% : 6.37 [12:47:03]line Наличными: 60.00 [12:47:03]line Безнал.: 0.00 [12:47:03]line Место: АЗС № 133 "Партнер Нефть" [12:47:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:47:03]line СНО: Общий режим [12:47:03]line Чек 133 20.10.2024 12:47 [12:47:03]line Смена: 170 ФФД: 1.0 [12:47:03]line ЗНМ: 0300000020 [12:47:03]line РНМ: 0000000000161154 [12:47:03]line Версия ККМ: v1.0 [12:47:03]line ФМ: 0000000000963323 [12:47:03]line ФД: 73807 [12:47:03]line ФПД: 236132329919604 [12:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124703&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73807&fm=236132329919604&tin=02508201610067®Number=0000000000161154&sum=6000 [12:47:03]line 0 [12:47:03]OFD Sender: Processing packet 73807 [packets to send 15, broken 14] [12:47:03]ProducePacketName [12:47:03]name=ofd_packets/00073807 [12:47:03]OFD Sender: To server: pG, [12:47:03]CommunicateWithHost lk.salyk.kg:30040 [12:47:03]ConnectInit lk.salyk.kg [12:47:03]written 0, free lines is 4095 [12:47:03]Connected sock=10 [12:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 15 6E 1B 01 6A 9E 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 85 00 00 00 F4 03 04 00 C7 FB 14 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4F 20 01 00 35 04 06 00 D6 C2 D7 A5 14 74 11 2C A3 B8 50 9A 88 2F [12:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 11 D5 47 00 1E 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 39 36 33 33 32 33 10 04 04 00 4F 20 01 00 F4 03 04 00 AC A4 14 67 B6 04 01 00 00 DE 01 A8 5B F1 A3 E5 A1 [12:47:04]CommunicateWithHost err = 0 [12:47:04]CheckOFDResponse [12:47:04]1017 (14) - 77093643461234 [12:47:04]1041 (16) - 0000000000963323 [12:47:04]1040 (4) - 73807 [12:47:04]1012 (4) - 20.10.2024 06:35 [12:47:04]1206 (1) - 0 [12:47:04]OFD Sender: Remove packet 73807 [12:47:04]ProducePacketName [12:47:04]name=ofd_packets/00073807 [12:47:04]NVStorageDeleteData [12:47:04]Write to MH i2c: 01 00 00 58 1E 76 [12:47:04]Write i2c OK [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: 01 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: 01 07 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 D8 0C 61 [12:47:04]RasterBufferAndPrint [12:47:04]line [12:47:04]line [12:47:04]line [12:47:04]line [12:47:04]line [12:47:04]written 0, free lines is 3292 [12:47:04]MH_Cut [12:47:04]Write to MH i2c: D1 01 00 5F 1E 01 4F [12:47:04]Write i2c OK [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: D1 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: D1 01 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: D1 01 00 5F 1E 00 4E [12:47:04]Write to MH i2c: 01 00 00 60 1E 7E [12:47:04]Write i2c OK [12:47:04]MH_I2C_Read... [12:47:04]OFD Sender: No OFD packet to send [12:47:05]*** Cut start [12:47:05]*** Partial cut [12:47:05]*** CUTSNS_PIN = 1 [12:47:05]*** CUTSNS_PIN = 0 [12:47:05]*** Brake cut motor [12:47:05]Read from MH i2c: 01 [12:47:05]MH_I2C_Read... [12:47:05]*** Stop cut motor [12:47:05]*** Cut end [12:47:05]Read from MH i2c: 01 07 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 60 1E 00 00 00 00 00 FF 0F 93 [12:47:05]process_action close_receipt done [12:47:05]requested_data is exist [12:47:05]produce_requested_data [12:47:05]requested_item fm.sn is exist - process it [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 11 00 00 [12:47:05]Write to MH i2c: E2 08 00 61 1E 80 11 00 00 00 00 00 00 F9 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 17 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 17 00 61 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 46 [12:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:47:05]wFMCommunicate OK [12:47:05]requested_item fd.num is exist - process it [12:47:05]SAM_PROTO_GetFieldsCounters [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 13 00 00 [12:47:05]Write to MH i2c: E2 08 00 62 1E 80 13 00 00 00 00 00 00 FC [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 62 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 62 00 62 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4F 20 01 00 0E 04 04 00 AA 00 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 B9 [12:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4F 20 01 00 0E 04 04 00 AA 00 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 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_GetFieldsCounters done [12:47:05]requested_item shift.num is exist - process it [12:47:05]requested_item shift.opened is exist - process it [12:47:05]req_shift_opened [12:47:05]FM_GetShiftState [12:47:05]SAM_PROTO_GetShiftState [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 13 01 00 [12:47:05]Write to MH i2c: E2 08 00 63 1E 80 13 01 00 00 00 00 00 FE [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0E 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0E 00 63 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 43 [12:47:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_GetShiftState done [12:47:05]FM_GetShiftState done [12:47:05]req_shift_opened done [12:47:05]requested_item shift.open_date is exist - process it [12:47:05]req_shift_open_date [12:47:05]req_shift_open_date done [12:47:05]produce_requested_data done [12:47:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73807,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [12:47:05]process_action_free close_receipt [12:47:05]json_value_free [12:47:05]json_value_free done [12:47:05]process_json_proto returns [12:47:05]Send response to host [12:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73807,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [12:47:05]free response buf [12:47:05]execute_script done [12:47:05]execute_script returns [12:47:05]free content buf [12:47:05]Sock 8.Close socket [12:47:05]Sock 8.Thread stoped [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:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]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:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:52]accept exits with 9 [13:07:52]New connection [13:07:52]New thread 3067575652 created [13:07:52]Thread 3067432292 joined [13:07:52]Waiting for new connection... [13:07:52] Sock 9.Parse request [13:07:52]Sock 9.Check first char [13:07:52]Sock 9.First char is OK [13:07:52]request: POST /json_proto HTTP/1.0 [13:07:52]Method: POST [13:07:52]URL: /json_proto [13:07:52]Method is POST - this is cgi request [13:07:52]url: /json_proto [13:07:52]query_string will be loaded in cgi processing [13:07:52]execute_cgi json_proto POST (null) [13:07:52]execute_cgi path=json_proto method=POST [13:07:52]POST find Content-Length [13:07:52]Host: 172.17.44.196:8080 [13:07:52]Content-Length: 605 [13:07:52]Content-Type: application/json [13:07:52] [13:07:52]POST finish read [13:07:52]Found Content-Length = 605 [13:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272785", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \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" ] } } [13:07:52]execute_script... [13:07: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)272785", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \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" ] } } [13:07:52]POST & json_proto [13:07:52]process_json_proto [13:07:52]json parsed OK: [13:07:52]protocol is kg_v1.0 [13:07:52]action value=close_receipt [13:07:52]process_action close_receipt [13:07:52]cmd_close_receipt [13:07:52]MH_GetDate [13:07:52]Write to MH i2c: F0 00 00 64 1E 71 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: F0 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: F0 09 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: F0 09 00 64 1E 00 AA 00 15 67 E7 19 F8 65 FD [13:07:52]GetLastDocTimeStamp 1729428423 [13:07:52]current date 1729429674 [13:07:52]FM_GetShiftState [13:07:52]SAM_PROTO_GetShiftState [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 13 01 00 [13:07:52]Write to MH i2c: E2 08 00 65 1E 80 13 01 00 00 00 00 00 00 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0E 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0E 00 65 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 45 [13:07:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:07:52]wFMCommunicate OK [13:07:52]SAM_PROTO_GetShiftState done [13:07:52]FM_GetShiftState done [13:07:52]opened in 1729384303 [13:07:52]opened+sec_in_day 1729470703 [13:07:52]quantity*price = 4500 [13:07:52]sum+1 = 4501 [13:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 134 20.10.2024 13:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73808 ФПД: 240602231153296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130754&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73808&fm=240602231153296&tin=02508201610067®Number=0000000000161154&sum=4500 0 [13:07:54]StoreToDocumentArchive [13:07:54]shift 170 fd 73808 [13:07:54]save to /storage/0170/doc_00073808 [13:07:54]save last doc name /storage/0170/doc_00073808 to /storage/kkm_last_doc_name [13:07:54]save OK [13:07:54]Clear old archive folders... [13:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:07:54]tlvbuf is 003314B0 [13:07:54]SAM_PROTO_ClearQueue [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 09 00 00 [13:07:54]Write to MH i2c: E2 08 00 72 1E 80 09 00 00 00 00 00 00 02 [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [13:07:54]RAPDU: 90 00 [13:07:54]wFMCommunicate OK [13:07:54]SAM_PROTO_ClearQueue done [13:07:54]KKMCreateOFDPacket [13:07:54]OFDProtocolAddRootSTLVToBuf [13:07:54]FM_MakeSignedData [13:07:54]FM_MakeSignedData [13:07:54]SAM_PROTO_SignData [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 0D 01 02 [13:07:54]Write to MH i2c: E2 08 00 73 1E 80 0D 01 02 00 00 00 00 0A [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 73 1E 00 90 00 05 [13:07:54]RAPDU: 90 00 [13:07:54]wFMCommunicate OK [13:07:54]wFMCommunicate request_size=255 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 86 00 00 00 F4 03 04 00 AA 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [13:07:54]Write to MH i2c: E2 02 01 74 1E 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 86 00 00 00 F4 03 04 00 AA 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 2C [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 74 1E 00 90 00 06 [13:07:54]RAPDU: 90 00 [13:07:54]wFMCommunicate OK [13:07:54]wFMCommunicate request_size=27 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 0D 02 02 16 33 33 32 33 10 04 04 00 50 20 01 00 35 04 06 00 DA D3 92 85 22 90 [13:07:54]Write to MH i2c: E2 1E 00 75 1E 80 0D 02 02 16 00 33 33 32 33 10 04 04 00 50 20 01 00 35 04 06 00 DA D3 92 85 22 90 00 00 42 [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:54]Read from MH i2c: E2 03 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 03 00 75 1E 00 90 00 07 [13:07:54]RAPDU: 90 00 [13:07:54]wFMCommunicate OK [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 0D 03 02 [13:07:54]Write to MH i2c: E2 08 00 76 1E 80 0D 03 02 00 00 00 00 0F [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 0B 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 0B 00 76 1E 00 FE 94 A7 64 51 33 D8 22 90 00 2B [13:07:54]RAPDU: FE 94 A7 64 51 33 D8 22 90 00 [13:07:54]wFMCommunicate OK [13:07:54]SAM_PROTO_SignData done [13:07:54]FM_MakeSignedData done [13:07:54]CreateOFDProtocolMessage [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 11 00 00 [13:07:54]Write to MH i2c: E2 08 00 77 1E 80 11 00 00 00 00 00 00 0F [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 17 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 17 00 77 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5C [13:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:07:54]wFMCommunicate OK [13:07:54]CreateOFDProtocolMessage done [13:07:54]OFDSenderStorePacket 73808 [13:07:54]StoreOFDPacket docnum=73808 [13:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 23 58 18 01 B2 A8 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 86 00 00 00 F4 03 04 00 AA 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 50 20 01 00 35 04 06 00 DA D3 92 85 22 90 FE 94 A7 64 51 33 D8 22 [13:07:54]CheckFolder [13:07:54]dirname=/storage/ofd_packets [13:07:54]CheckFolder done [13:07:54]ProducePacketName [13:07:54]name=ofd_packets/00073808 [13:07:54]NVStorageSaveData ofd_packets/00073808 [13:07:54]File name is /storage/ofd_packets/00073808 [13:07:54]Write 318 bytes [13:07:54]NVStorageSaveData done [13:07:54]OFDSenderStorePacket done [13:07:54]KKMCreateOFDPacket done [13:07:54]NVStorageSaveData kkm_last_timestamp [13:07:54]File name is /storage/kkm_last_timestamp [13:07:54]Write 4 bytes [13:07:54]NVStorageSaveData done [13:07:54]ExternCall_PrintAddStr [13:07:54]wPrintStart [13:07:54]Write to MH i2c: 01 00 00 78 1E 96 [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 07 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 07 00 78 1E 00 00 00 00 00 FF 0F AB [13:07:54]RasterBufferAndPrint [13:07:54]line Счет N : (3)272785 [13:07:54]line ИНН: 02508201610067 [13:07:54]line Контрольно-Кассовый Чек [13:07:54]line ПРОДАЖА [13:07:54]line Товар: 50173976 [13:07:54]line Жев Orbit Winterfresh под [13:07:54]line 1.000 * 45.00 [13:07:54]line = 45.00 [13:07:54]line НДС 12% НСП 1% [13:07:54]line > о реализуемом товаре [13:07:54]line ИТОГО: 45.00 [13:07:54]line НСП 1% : 0.40 [13:07:54]line НДС 12% : 4.78 [13:07:54]line Наличными: 45.00 [13:07:54]line Безнал.: 0.00 [13:07:54]line Место: АЗС № 133 "Партнер Нефть" [13:07:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:07:54]line СНО: Общий режим [13:07:54]line Чек 134 20.10.2024 13:07 [13:07:54]line Смена: 170 ФФД: 1.0 [13:07:54]line ЗНМ: 0300000020 [13:07:54]line РНМ: 0000000000161154 [13:07:54]line Версия ККМ: v1.0 [13:07:54]line ФМ: 0000000000963323 [13:07:54]line ФД: 73808 [13:07:54]line ФПД: 240602231153296 [13:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130754&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73808&fm=240602231153296&tin=02508201610067®Number=0000000000161154&sum=4500 [13:07:54]OFD Sender: Processing packet 73808 [packets to send 15, broken 14] [13:07:54]ProducePacketName [13:07:54]name=ofd_packets/00073808 [13:07:54]OFD Sender: To server: pG, [13:07:54]CommunicateWithHost lk.salyk.kg:30040 [13:07:54]ConnectInit lk.salyk.kg [13:07:54]line 0 [13:07:54]written 0, free lines is 4095 [13:07:55]Connected sock=10 [13:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 23 58 18 01 B2 A8 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 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 86 00 00 00 F4 03 04 00 AA 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 50 20 01 00 35 04 06 00 DA D3 92 85 22 90 FE 94 A7 64 51 33 D8 22 [13:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A3 97 47 00 DF 95 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 39 36 33 33 32 33 10 04 04 00 50 20 01 00 F4 03 04 00 8F A9 14 67 B6 04 01 00 00 1B AA BA 63 BF 20 D9 E4 [13:07:55]CommunicateWithHost err = 0 [13:07:55]CheckOFDResponse [13:07:55]1017 (14) - 77093643461234 [13:07:55]1041 (16) - 0000000000963323 [13:07:55]1040 (4) - 73808 [13:07:55]1012 (4) - 20.10.2024 06:56 [13:07:55]1206 (1) - 0 [13:07:55]OFD Sender: Remove packet 73808 [13:07:55]ProducePacketName [13:07:55]name=ofd_packets/00073808 [13:07:55]NVStorageDeleteData [13:07:55]Write to MH i2c: 01 00 00 9F 1E BD [13:07:55]Write i2c OK [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: 01 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: 01 07 00 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: 01 07 00 9F 1E 00 00 00 00 00 DF 0C AF [13:07:55]RasterBufferAndPrint [13:07:55]line [13:07:55]line [13:07:55]line [13:07:55]line [13:07:55]line [13:07:55]written 0, free lines is 3302 [13:07:55]MH_Cut [13:07:55]Write to MH i2c: D1 01 00 A6 1E 01 96 [13:07:55]Write i2c OK [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: D1 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: D1 01 00 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: D1 01 00 A6 1E 00 95 [13:07:55]Write to MH i2c: 01 00 00 A7 1E C5 [13:07:55]Write i2c OK [13:07:55]MH_I2C_Read... [13:07:55]OFD Sender: No OFD packet to send [13:07:56]*** Cut start [13:07:56]*** Partial cut [13:07:56]*** CUTSNS_PIN = 1 [13:07:56]*** CUTSNS_PIN = 0 [13:07:56]*** Brake cut motor [13:07:56]Read from MH i2c: 01 [13:07:56]MH_I2C_Read... [13:07:56]*** Stop cut motor [13:07:56]*** Cut end [13:07:56]Read from MH i2c: 01 07 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 FF 0F DA [13:07:56]process_action close_receipt done [13:07:56]requested_data is exist [13:07:56]produce_requested_data [13:07:56]requested_item fm.sn is exist - process it [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 11 00 00 [13:07:56]Write to MH i2c: E2 08 00 A8 1E 80 11 00 00 00 00 00 00 40 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 17 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 17 00 A8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8D [13:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:07:56]wFMCommunicate OK [13:07:56]requested_item fd.num is exist - process it [13:07:56]SAM_PROTO_GetFieldsCounters [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 13 00 00 [13:07:56]Write to MH i2c: E2 08 00 A9 1E 80 13 00 00 00 00 00 00 43 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 62 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 62 00 A9 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 50 20 01 00 0E 04 04 00 AA 00 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 04 [13:07:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 50 20 01 00 0E 04 04 00 AA 00 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 [13:07:56]wFMCommunicate OK [13:07:56]SAM_PROTO_GetFieldsCounters done [13:07:56]requested_item shift.num is exist - process it [13:07:56]requested_item shift.opened is exist - process it [13:07:56]req_shift_opened [13:07:56]FM_GetShiftState [13:07:56]SAM_PROTO_GetShiftState [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 13 01 00 [13:07:56]Write to MH i2c: E2 08 00 AA 1E 80 13 01 00 00 00 00 00 45 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 0E 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 0E 00 AA 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8A [13:07:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:07:57]wFMCommunicate OK [13:07:57]SAM_PROTO_GetShiftState done [13:07:57]FM_GetShiftState done [13:07:57]req_shift_opened done [13:07:57]requested_item shift.open_date is exist - process it [13:07:57]req_shift_open_date [13:07:57]req_shift_open_date done [13:07:57]produce_requested_data done [13:07:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73808,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:07:57]process_action_free close_receipt [13:07:57]json_value_free [13:07:57]json_value_free done [13:07:57]process_json_proto returns [13:07:57]Send response to host [13:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73808,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:07:57]free response buf [13:07:57]execute_script done [13:07:57]execute_script returns [13:07:57]free content buf [13:07:57]Sock 9.Close socket [13:07:57]Sock 9.Thread stoped [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:48]accept exits with 8 [13:08:48]New connection [13:08:48]New thread 3067432292 created [13:08:48]Thread 3067575652 joined [13:08:48]Waiting for new connection... [13:08:48] Sock 8.Parse request [13:08:48]Sock 8.Check first char [13:08:48]Sock 8.First char is OK [13:08:48]request: POST /json_proto HTTP/1.0 [13:08:48]Method: POST [13:08:48]URL: /json_proto [13:08:48]Method is POST - this is cgi request [13:08:48]url: /json_proto [13:08:48]query_string will be loaded in cgi processing [13:08:48]execute_cgi json_proto POST (null) [13:08:48]execute_cgi path=json_proto method=POST [13:08:48]POST find Content-Length [13:08:48]Host: 172.17.44.196:8080 [13:08:48]Content-Length: 883 [13:08:48]Content-Type: application/json [13:08:48] [13:08:48]POST finish read [13:08:48]Found Content-Length = 883 [13:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272786", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [13:08:48]execute_script... [13:08: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)272786", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [13:08:48]POST & json_proto [13:08:48]process_json_proto [13:08:48]json parsed OK: [13:08:48]protocol is kg_v1.0 [13:08:48]action value=close_receipt [13:08:48]process_action close_receipt [13:08:48]cmd_close_receipt [13:08:48]MH_GetDate [13:08:48]Write to MH i2c: F0 00 00 AB 1E B8 [13:08:48]Write i2c OK [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: F0 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: F0 09 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: F0 09 00 AB 1E 00 E2 00 15 67 E7 19 F8 65 7C [13:08:48]GetLastDocTimeStamp 1729429674 [13:08:48]current date 1729429730 [13:08:48]FM_GetShiftState [13:08:48]SAM_PROTO_GetShiftState [13:08:48]wFMCommunicate request_size=4 [13:08:48]MH_SAM_APDU [13:08:48]CAPDU: 80 13 01 00 [13:08:48]Write to MH i2c: E2 08 00 AC 1E 80 13 01 00 00 00 00 00 47 [13:08:48]Write i2c OK [13:08:48]MH_I2C_Read... [13:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:48]Read from MH i2c: E2 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 0E 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 0E 00 AC 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8C [13:08:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:08:48]wFMCommunicate OK [13:08:48]SAM_PROTO_GetShiftState done [13:08:48]FM_GetShiftState done [13:08:48]opened in 1729384303 [13:08:48]opened+sec_in_day 1729470703 [13:08:48]quantity*price = 14000 [13:08:48]sum+1 = 14001 [13:08:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 135 20.10.2024 13:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73809 ФПД: 37096776199843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130850&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73809&fm=37096776199843&tin=02508201610067®Number=0000000000161154&sum=15000 0 [13:08:50]StoreToDocumentArchive [13:08:50]shift 170 fd 73809 [13:08:50]save to /storage/0170/doc_00073809 [13:08:50]save last doc name /storage/0170/doc_00073809 to /storage/kkm_last_doc_name [13:08:50]save OK [13:08:50]Clear old archive folders... [13:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=383 [13:08:50]tlvbuf is 00322840 [13:08:50]SAM_PROTO_ClearQueue [13:08:50]wFMCommunicate request_size=4 [13:08:50]MH_SAM_APDU [13:08:50]CAPDU: 80 09 00 00 [13:08:50]Write to MH i2c: E2 08 00 B9 1E 80 09 00 00 00 00 00 00 49 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:50]Read from MH i2c: E2 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 B9 1E 00 90 00 4B [13:08:50]RAPDU: 90 00 [13:08:50]wFMCommunicate OK [13:08:50]SAM_PROTO_ClearQueue done [13:08:50]KKMCreateOFDPacket [13:08:50]OFDProtocolAddRootSTLVToBuf [13:08:50]FM_MakeSignedData [13:08:50]FM_MakeSignedData [13:08:50]SAM_PROTO_SignData [13:08:50]wFMCommunicate request_size=4 [13:08:50]MH_SAM_APDU [13:08:50]CAPDU: 80 0D 01 02 [13:08:50]Write to MH i2c: E2 08 00 BA 1E 80 0D 01 02 00 00 00 00 51 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:50]Read from MH i2c: E2 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 BA 1E 00 90 00 4C [13:08:50]RAPDU: 90 00 [13:08:50]wFMCommunicate OK [13:08:50]wFMCommunicate request_size=255 [13:08:50]MH_SAM_APDU [13:08:50]CAPDU: 80 0D 02 02 FA 03 00 7F 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [13:08:50]Write to MH i2c: E2 02 01 BB 1E 80 0D 02 02 FA 00 03 00 7F 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 E2 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:50]Read from MH i2c: E2 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 BB 1E 00 90 00 4D [13:08:50]RAPDU: 90 00 [13:08:50]wFMCommunicate OK [13:08:50]wFMCommunicate request_size=142 [13:08:50]MH_SAM_APDU [13:08:50]CAPDU: 80 0D 02 02 89 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 87 00 00 00 F4 03 04 00 E2 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 20 01 00 35 04 06 00 21 BD 44 2A EE A3 [13:08:50]Write to MH i2c: E2 91 00 BC 1E 80 0D 02 02 89 00 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 87 00 00 00 F4 03 04 00 E2 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 20 01 00 35 04 06 00 21 BD 44 2A EE A3 00 00 75 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:50]Read from MH i2c: E2 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [13:08:50]RAPDU: 90 00 [13:08:50]wFMCommunicate OK [13:08:50]wFMCommunicate request_size=4 [13:08:50]MH_SAM_APDU [13:08:50]CAPDU: 80 0D 03 02 [13:08:50]Write to MH i2c: E2 08 00 BD 1E 80 0D 03 02 00 00 00 00 56 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:50]Read from MH i2c: E2 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 0B 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 0B 00 BD 1E 00 11 49 24 14 3D FE 74 0E 90 00 A6 [13:08:50]RAPDU: 11 49 24 14 3D FE 74 0E 90 00 [13:08:50]wFMCommunicate OK [13:08:50]SAM_PROTO_SignData done [13:08:50]FM_MakeSignedData done [13:08:50]CreateOFDProtocolMessage [13:08:50]wFMCommunicate request_size=4 [13:08:50]MH_SAM_APDU [13:08:50]CAPDU: 80 11 00 00 [13:08:50]Write to MH i2c: E2 08 00 BE 1E 80 11 00 00 00 00 00 00 56 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:50]Read from MH i2c: E2 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 17 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: E2 17 00 BE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A3 [13:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:08:50]wFMCommunicate OK [13:08:50]CreateOFDProtocolMessage done [13:08:50]OFDSenderStorePacket 73809 [13:08:50]StoreOFDPacket docnum=73809 [13:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 93 01 00 00 26 35 8B 01 59 5D 5A 03 01 00 03 00 7F 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 87 00 00 00 F4 03 04 00 E2 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 20 01 00 35 04 06 00 21 BD 44 2A EE A3 11 49 24 14 3D FE 74 0E [13:08:50]CheckFolder [13:08:50]dirname=/storage/ofd_packets [13:08:50]CheckFolder done [13:08:50]ProducePacketName [13:08:50]name=ofd_packets/00073809 [13:08:50]NVStorageSaveData ofd_packets/00073809 [13:08:50]File name is /storage/ofd_packets/00073809 [13:08:50]Write 433 bytes [13:08:50]NVStorageSaveData done [13:08:50]OFDSenderStorePacket done [13:08:50]KKMCreateOFDPacket done [13:08:50]NVStorageSaveData kkm_last_timestamp [13:08:50]File name is /storage/kkm_last_timestamp [13:08:50]Write 4 bytes [13:08:50]NVStorageSaveData done [13:08:50]ExternCall_PrintAddStr [13:08:50]wPrintStart [13:08:50]Write to MH i2c: 01 00 00 BF 1E DD [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: 01 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: 01 07 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: 01 07 00 BF 1E 00 00 00 00 00 FF 0F F2 [13:08:50]RasterBufferAndPrint [13:08:50]line Счет N : (3)272786 [13:08:50]line ИНН: 02508201610067 [13:08:50]line Контрольно-Кассовый Чек [13:08:50]line ПРОДАЖА [13:08:50]line Товар: 48743570 [13:08:50]line Сигареты Winston XStyle Blue [13:08:51]line 1.000 * 140.00 [13:08:51]line = 140.00 [13:08:51]line НДС 12% НСП 1% [13:08:51]line > о реализуемом товаре [13:08:51]line Товар: 46226617 [13:08:51]line Mentos ПВ Нежная Мята 6*100*2г [13:08:51]line 1.000 * 10.00 [13:08:51]line = 10.00 [13:08:51]line НДС 12% НСП 1% [13:08:51]line > о реализуемом товаре [13:08:51]line ИТОГО: 150.00 [13:08:51]line НСП 1% : 1.33 [13:08:51]line НДС 12% : 15.93 [13:08:51]line Наличными: 150.00 [13:08:51]line Безнал.: 0.00 [13:08:51]line Место: АЗС № 133 "Партнер Нефть" [13:08:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:08:51]line СНО: Общий режим [13:08:51]line Чек 135 20.10.2024 13:08 [13:08:51]line Смена: 170 ФФД: 1.0 [13:08:51]line ЗНМ: 0300000020 [13:08:51]line РНМ: 0000000000161154 [13:08:51]line Версия ККМ: v1.0 [13:08:51]line ФМ: 0000000000963323 [13:08:51]line ФД: 73809 [13:08:51]line ФПД: 37096776199843 [13:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130850&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73809&fm=37096776199843&tin=02508201610067®Number=0000000000161154&sum=15000 [13:08:51]line 0 [13:08:51]OFD Sender: Processing packet 73809 [packets to send 15, broken 14] [13:08:51]ProducePacketName [13:08:51]name=ofd_packets/00073809 [13:08:51]OFD Sender: To server: pG, [13:08:51]CommunicateWithHost lk.salyk.kg:30040 [13:08:51]ConnectInit lk.salyk.kg [13:08:51]written 0, free lines is 4095 [13:08:51]Connected sock=10 [13:08:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 93 01 00 00 26 35 8B 01 59 5D 5A 03 01 00 03 00 7F 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 87 00 00 00 F4 03 04 00 E2 00 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 20 01 00 35 04 06 00 21 BD 44 2A EE A3 11 49 24 14 3D FE 74 0E [13:08:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4B BA 47 00 30 28 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 39 36 33 33 32 33 10 04 04 00 51 20 01 00 F4 03 04 00 C7 A9 14 67 B6 04 01 00 00 30 1E 62 F2 49 71 B1 9D [13:08:51]CommunicateWithHost err = 0 [13:08:51]CheckOFDResponse [13:08:51]1017 (14) - 77093643461234 [13:08:51]1041 (16) - 0000000000963323 [13:08:51]1040 (4) - 73809 [13:08:51]1012 (4) - 20.10.2024 06:57 [13:08:51]1206 (1) - 0 [13:08:51]OFD Sender: Remove packet 73809 [13:08:51]ProducePacketName [13:08:51]name=ofd_packets/00073809 [13:08:51]NVStorageDeleteData [13:08:51]Write to MH i2c: 01 00 00 ED 1E 0B [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: 01 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: 01 07 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: 01 07 00 ED 1E 00 00 00 00 00 79 0C 97 [13:08:51]RasterBufferAndPrint [13:08:51]line [13:08:51]line [13:08:51]line [13:08:51]line [13:08:51]line [13:08:51]written 0, free lines is 3200 [13:08:51]MH_Cut [13:08:51]Write to MH i2c: D1 01 00 F4 1E 01 E4 [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: D1 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: D1 01 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: D1 01 00 F4 1E 00 E3 [13:08:51]Write to MH i2c: 01 00 00 F5 1E 13 [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]OFD Sender: No OFD packet to send [13:08:52]*** Cut start [13:08:52]*** Partial cut [13:08:52]*** CUTSNS_PIN = 1 [13:08:52]*** CUTSNS_PIN = 0 [13:08:52]*** Brake cut motor [13:08:53]Read from MH i2c: 01 [13:08:53]MH_I2C_Read... [13:08:53]*** Stop cut motor [13:08:53]*** Cut end [13:08:53]Read from MH i2c: 01 07 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [13:08:53]process_action close_receipt done [13:08:53]requested_data is exist [13:08:53]produce_requested_data [13:08:53]requested_item fm.sn is exist - process it [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 11 00 00 [13:08:53]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 17 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 17 00 F6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [13:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:08:53]wFMCommunicate OK [13:08:53]requested_item fd.num is exist - process it [13:08:53]SAM_PROTO_GetFieldsCounters [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 13 00 00 [13:08:53]Write to MH i2c: E2 08 00 F7 1E 80 13 00 00 00 00 00 00 91 [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:53]Read from MH i2c: E2 62 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 62 00 F7 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 51 20 01 00 0E 04 04 00 AA 00 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 56 [13:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 51 20 01 00 0E 04 04 00 AA 00 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 [13:08:53]wFMCommunicate OK [13:08:53]SAM_PROTO_GetFieldsCounters done [13:08:53]requested_item shift.num is exist - process it [13:08:53]requested_item shift.opened is exist - process it [13:08:53]req_shift_opened [13:08:53]FM_GetShiftState [13:08:53]SAM_PROTO_GetShiftState [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 13 01 00 [13:08:53]Write to MH i2c: E2 08 00 F8 1E 80 13 01 00 00 00 00 00 93 [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 0E 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 0E 00 F8 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [13:08:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:08:53]wFMCommunicate OK [13:08:53]SAM_PROTO_GetShiftState done [13:08:53]FM_GetShiftState done [13:08:53]req_shift_opened done [13:08:53]requested_item shift.open_date is exist - process it [13:08:53]req_shift_open_date [13:08:53]req_shift_open_date done [13:08:53]produce_requested_data done [13:08:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73809,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:08:53]process_action_free close_receipt [13:08:53]json_value_free [13:08:53]json_value_free done [13:08:53]process_json_proto returns [13:08:53]Send response to host [13:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73809,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:08:53]free response buf [13:08:53]execute_script done [13:08:53]execute_script returns [13:08:53]free content buf [13:08:53]Sock 8.Close socket [13:08:53]Sock 8.Thread stoped [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:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:34]accept exits with 9 [13:13:34]New connection [13:13:34]New thread 3067575652 created [13:13:34]Thread 3067432292 joined [13:13:34]Waiting for new connection... [13:13:34] Sock 9.Parse request [13:13:34]Sock 9.Check first char [13:13:34]Sock 9.First char is OK [13:13:34]request: POST /json_proto HTTP/1.0 [13:13:34]Method: POST [13:13:34]URL: /json_proto [13:13:34]Method is POST - this is cgi request [13:13:34]url: /json_proto [13:13:34]query_string will be loaded in cgi processing [13:13:34]execute_cgi json_proto POST (null) [13:13:34]execute_cgi path=json_proto method=POST [13:13:34]POST find Content-Length [13:13:34]Host: 172.17.44.196:8080 [13:13:34]Content-Length: 646 [13:13:34]Content-Type: application/json [13:13:34] [13:13:34]POST finish read [13:13:34]Found Content-Length = 646 [13:13:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272787", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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:13:34]execute_script... [13:13: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)272787", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "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:13:34]POST & json_proto [13:13:34]process_json_proto [13:13:34]json parsed OK: [13:13:34]protocol is kg_v1.0 [13:13:34]action value=close_receipt [13:13:34]process_action close_receipt [13:13:34]cmd_close_receipt [13:13:34]MH_GetDate [13:13:34]Write to MH i2c: F0 00 00 F9 1E 06 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: F0 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: F0 09 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: F0 09 00 F9 1E 00 00 02 15 67 E7 19 F8 65 EA [13:13:34]GetLastDocTimeStamp 1729429730 [13:13:34]current date 1729430016 [13:13:34]FM_GetShiftState [13:13:34]SAM_PROTO_GetShiftState [13:13:34]wFMCommunicate request_size=4 [13:13:34]MH_SAM_APDU [13:13:34]CAPDU: 80 13 01 00 [13:13:34]Write to MH i2c: E2 08 00 FA 1E 80 13 01 00 00 00 00 00 95 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:34]Read from MH i2c: E2 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 FA 1E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DA [13:13:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:13:34]wFMCommunicate OK [13:13:34]SAM_PROTO_GetShiftState done [13:13:34]FM_GetShiftState done [13:13:34]opened in 1729384303 [13:13:34]opened+sec_in_day 1729470703 [13:13:34]quantity*price = 13000 [13:13:34]sum+1 = 13001 [13:13:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 136 20.10.2024 13:13 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73810 ФПД: 168304430749523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131336&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73810&fm=168304430749523&tin=02508201610067®Number=0000000000161154&sum=13000 0 [13:13:35]StoreToDocumentArchive [13:13:35]shift 170 fd 73810 [13:13:35]save to /storage/0170/doc_00073810 [13:13:35]save last doc name /storage/0170/doc_00073810 to /storage/kkm_last_doc_name [13:13:35]save OK [13:13:35]Clear old archive folders... [13:13:35]ProcessDocumentItem done err = 0, tmpTLVsize=282 [13:13:35]tlvbuf is 003E6D60 [13:13:35]SAM_PROTO_ClearQueue [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 09 00 00 [13:13:35]Write to MH i2c: E2 08 00 07 1F 80 09 00 00 00 00 00 00 98 [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 03 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [13:13:35]RAPDU: 90 00 [13:13:35]wFMCommunicate OK [13:13:35]SAM_PROTO_ClearQueue done [13:13:35]KKMCreateOFDPacket [13:13:35]OFDProtocolAddRootSTLVToBuf [13:13:35]FM_MakeSignedData [13:13:35]FM_MakeSignedData [13:13:35]SAM_PROTO_SignData [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 0D 01 02 [13:13:35]Write to MH i2c: E2 08 00 08 1F 80 0D 01 02 00 00 00 00 A0 [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 03 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [13:13:35]RAPDU: 90 00 [13:13:35]wFMCommunicate OK [13:13:35]wFMCommunicate request_size=255 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 88 00 00 00 F4 03 04 00 00 02 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [13:13:35]Write to MH i2c: E2 02 01 09 1F 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 88 00 00 00 F4 03 04 00 00 02 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 58 [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 09 1F 00 90 00 9C [13:13:36]RAPDU: 90 00 [13:13:36]wFMCommunicate OK [13:13:36]wFMCommunicate request_size=41 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 20 01 00 35 04 06 00 99 12 6D CF 17 53 [13:13:36]Write to MH i2c: E2 2C 00 0A 1F 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 20 01 00 35 04 06 00 99 12 6D CF 17 53 00 00 30 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [13:13:36]RAPDU: 90 00 [13:13:36]wFMCommunicate OK [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 0D 03 02 [13:13:36]Write to MH i2c: E2 08 00 0B 1F 80 0D 03 02 00 00 00 00 A5 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 0B 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 0B 00 0B 1F 00 69 B6 8E C4 87 35 F6 DF 90 00 A8 [13:13:36]RAPDU: 69 B6 8E C4 87 35 F6 DF 90 00 [13:13:36]wFMCommunicate OK [13:13:36]SAM_PROTO_SignData done [13:13:36]FM_MakeSignedData done [13:13:36]CreateOFDProtocolMessage [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 11 00 00 [13:13:36]Write to MH i2c: E2 08 00 0C 1F 80 11 00 00 00 00 00 00 A5 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 17 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 17 00 0C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [13:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:13:36]wFMCommunicate OK [13:13:36]CreateOFDProtocolMessage done [13:13:36]OFDSenderStorePacket 73810 [13:13:36]StoreOFDPacket docnum=73810 [13:13:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 E7 B9 26 01 94 95 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 88 00 00 00 F4 03 04 00 00 02 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 20 01 00 35 04 06 00 99 12 6D CF 17 53 69 B6 8E C4 87 35 F6 DF [13:13:36]CheckFolder [13:13:36]dirname=/storage/ofd_packets [13:13:36]CheckFolder done [13:13:36]ProducePacketName [13:13:36]name=ofd_packets/00073810 [13:13:36]NVStorageSaveData ofd_packets/00073810 [13:13:36]File name is /storage/ofd_packets/00073810 [13:13:36]Write 332 bytes [13:13:36]NVStorageSaveData done [13:13:36]OFDSenderStorePacket done [13:13:36]KKMCreateOFDPacket done [13:13:36]NVStorageSaveData kkm_last_timestamp [13:13:36]File name is /storage/kkm_last_timestamp [13:13:36]Write 4 bytes [13:13:36]NVStorageSaveData done [13:13:36]ExternCall_PrintAddStr [13:13:36]wPrintStart [13:13:36]Write to MH i2c: 01 00 00 0D 1F 2C [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 07 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 07 00 0D 1F 00 00 00 00 00 FF 0F 41 [13:13:36]RasterBufferAndPrint [13:13:36]line Счет N : (3)272787 [13:13:36]line ИНН: 02508201610067 [13:13:36]line Контрольно-Кассовый Чек [13:13:36]line ПРОДАЖА [13:13:36]line Товар: 2000036220012 [13:13:36]line Кофе Капучино XL(GABB TRADE) [13:13:36]line 1.000 * 130.00 [13:13:36]line = 130.00 [13:13:36]line НДС 12% НСП 1% [13:13:36]line > о реализуемом товаре [13:13:36]line ИТОГО: 130.00 [13:13:36]line НСП 1% : 1.15 [13:13:36]line НДС 12% : 13.80 [13:13:36]line Наличными: 130.00 [13:13:36]line Безнал.: 0.00 [13:13:36]line Место: АЗС № 133 "Партнер Нефть" [13:13:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:13:36]line СНО: Общий режим [13:13:36]line Чек 136 20.10.2024 13:13 [13:13:36]line Смена: 170 ФФД: 1.0 [13:13:36]line ЗНМ: 0300000020 [13:13:36]line РНМ: 0000000000161154 [13:13:36]line Версия ККМ: v1.0 [13:13:36]line ФМ: 0000000000963323 [13:13:36]line ФД: 73810 [13:13:36]line ФПД: 168304430749523 [13:13:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131336&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73810&fm=168304430749523&tin=02508201610067®Number=0000000000161154&sum=13000 [13:13:36]line 0 [13:13:36]OFD Sender: Processing packet 73810 [packets to send 15, broken 14] [13:13:36]ProducePacketName [13:13:36]name=ofd_packets/00073810 [13:13:36]OFD Sender: To server: pG, [13:13:36]CommunicateWithHost lk.salyk.kg:30040 [13:13:36]ConnectInit lk.salyk.kg [13:13:36]written 0, free lines is 4095 [13:13:36]Connected sock=10 [13:13:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 E7 B9 26 01 94 95 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 88 00 00 00 F4 03 04 00 00 02 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 20 01 00 35 04 06 00 99 12 6D CF 17 53 69 B6 8E C4 87 35 F6 DF [13:13:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 47 32 47 00 B0 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 39 36 33 33 32 33 10 04 04 00 52 20 01 00 F4 03 04 00 E5 AA 14 67 B6 04 01 00 00 90 37 4D 4F DA 8E 10 33 [13:13:37]CommunicateWithHost err = 0 [13:13:37]CheckOFDResponse [13:13:37]1017 (14) - 77093643461234 [13:13:37]1041 (16) - 0000000000963323 [13:13:37]1040 (4) - 73810 [13:13:37]1012 (4) - 20.10.2024 07:01 [13:13:37]1206 (1) - 0 [13:13:37]OFD Sender: Remove packet 73810 [13:13:37]ProducePacketName [13:13:37]name=ofd_packets/00073810 [13:13:37]NVStorageDeleteData [13:13:37]Write to MH i2c: 01 00 00 35 1F 54 [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: 01 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: 01 07 00 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: 01 07 00 35 1F 00 00 00 00 00 DE 0C 45 [13:13:37]RasterBufferAndPrint [13:13:37]line [13:13:37]line [13:13:37]line [13:13:37]line [13:13:37]line [13:13:37]written 0, free lines is 3301 [13:13:37]MH_Cut [13:13:37]Write to MH i2c: D1 01 00 3C 1F 01 2D [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: D1 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: D1 01 00 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: D1 01 00 3C 1F 00 2C [13:13:37]Write to MH i2c: 01 00 00 3D 1F 5C [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]OFD Sender: No OFD packet to send [13:13:38]*** Cut start [13:13:38]*** Partial cut [13:13:38]*** CUTSNS_PIN = 1 [13:13:38]*** CUTSNS_PIN = 0 [13:13:38]*** Brake cut motor [13:13:38]Read from MH i2c: 01 [13:13:38]MH_I2C_Read... [13:13:38]*** Stop cut motor [13:13:38]*** Cut end [13:13:38]Read from MH i2c: 01 07 00 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 FF 0F 71 [13:13:38]process_action close_receipt done [13:13:38]requested_data is exist [13:13:38]produce_requested_data [13:13:38]requested_item fm.sn is exist - process it [13:13:38]wFMCommunicate request_size=4 [13:13:38]MH_SAM_APDU [13:13:38]CAPDU: 80 11 00 00 [13:13:38]Write to MH i2c: E2 08 00 3E 1F 80 11 00 00 00 00 00 00 D7 [13:13:38]Write i2c OK [13:13:38]MH_I2C_Read... [13:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:38]Read from MH i2c: E2 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 17 00 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 17 00 3E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 24 [13:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:13:38]wFMCommunicate OK [13:13:38]requested_item fd.num is exist - process it [13:13:38]SAM_PROTO_GetFieldsCounters [13:13:38]wFMCommunicate request_size=4 [13:13:38]MH_SAM_APDU [13:13:38]CAPDU: 80 13 00 00 [13:13:38]Write to MH i2c: E2 08 00 3F 1F 80 13 00 00 00 00 00 00 DA [13:13:38]Write i2c OK [13:13:38]MH_I2C_Read... [13:13:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:38]Read from MH i2c: E2 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 62 00 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 62 00 3F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 52 20 01 00 0E 04 04 00 AA 00 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 A3 [13:13:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 52 20 01 00 0E 04 04 00 AA 00 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 [13:13:38]wFMCommunicate OK [13:13:38]SAM_PROTO_GetFieldsCounters done [13:13:38]requested_item shift.num is exist - process it [13:13:38]requested_item shift.opened is exist - process it [13:13:38]req_shift_opened [13:13:38]FM_GetShiftState [13:13:38]SAM_PROTO_GetShiftState [13:13:38]wFMCommunicate request_size=4 [13:13:38]MH_SAM_APDU [13:13:38]CAPDU: 80 13 01 00 [13:13:38]Write to MH i2c: E2 08 00 40 1F 80 13 01 00 00 00 00 00 DC [13:13:38]Write i2c OK [13:13:38]MH_I2C_Read... [13:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:38]Read from MH i2c: E2 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 0E 00 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 0E 00 40 1F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 21 [13:13:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:13:38]wFMCommunicate OK [13:13:38]SAM_PROTO_GetShiftState done [13:13:38]FM_GetShiftState done [13:13:38]req_shift_opened done [13:13:38]requested_item shift.open_date is exist - process it [13:13:38]req_shift_open_date [13:13:38]req_shift_open_date done [13:13:38]produce_requested_data done [13:13:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73810,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:13:38]process_action_free close_receipt [13:13:38]json_value_free [13:13:38]json_value_free done [13:13:38]process_json_proto returns [13:13:38]Send response to host [13:13:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73810,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:13:38]free response buf [13:13:38]execute_script done [13:13:38]execute_script returns [13:13:38]free content buf [13:13:38]Sock 9.Close socket [13:13:38]Sock 9.Thread stoped [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:15]accept exits with 8 [13:23:15]New connection [13:23:15]New thread 3067432292 created [13:23:15]Thread 3067575652 joined [13:23:15]Waiting for new connection... [13:23:15] Sock 8.Parse request [13:23:15]Sock 8.Check first char [13:23:15]Sock 8.First char is OK [13:23:15]request: POST /json_proto HTTP/1.0 [13:23:15]Method: POST [13:23:15]URL: /json_proto [13:23:15]Method is POST - this is cgi request [13:23:15]url: /json_proto [13:23:15]query_string will be loaded in cgi processing [13:23:15]execute_cgi json_proto POST (null) [13:23:15]execute_cgi path=json_proto method=POST [13:23:15]POST find Content-Length [13:23:15]Host: 172.17.44.196:8080 [13:23:15]Content-Length: 654 [13:23:15]Content-Type: application/json [13:23:15] [13:23:15]POST finish read [13:23:15]Found Content-Length = 654 [13:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272788", "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" : 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" ] } } [13:23:15]execute_script... [13:23:15]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)272788", "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" : 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" ] } } [13:23:15]POST & json_proto [13:23:15]process_json_proto [13:23:15]json parsed OK: [13:23:15]protocol is kg_v1.0 [13:23:15]action value=close_receipt [13:23:15]process_action close_receipt [13:23:15]cmd_close_receipt [13:23:15]MH_GetDate [13:23:15]Write to MH i2c: F0 00 00 41 1F 4F [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 41 1F 00 45 04 15 67 E7 19 F8 65 7A [13:23:15]GetLastDocTimeStamp 1729430016 [13:23:15]current date 1729430597 [13:23:15]FM_GetShiftState [13:23:15]SAM_PROTO_GetShiftState [13:23:15]wFMCommunicate request_size=4 [13:23:15]MH_SAM_APDU [13:23:15]CAPDU: 80 13 01 00 [13:23:15]Write to MH i2c: E2 08 00 42 1F 80 13 01 00 00 00 00 00 DE [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:15]Read from MH i2c: E2 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 42 1F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 23 [13:23:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:23:15]wFMCommunicate OK [13:23:15]SAM_PROTO_GetShiftState done [13:23:15]FM_GetShiftState done [13:23:15]opened in 1729384303 [13:23:15]opened+sec_in_day 1729470703 [13:23:15]quantity*price = 9500 [13:23:15]sum+1 = 9501 [13:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 137 20.10.2024 13:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73811 ФПД: 264505216093365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132317&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73811&fm=264505216093365&tin=02508201610067®Number=0000000000161154&sum=9500 0 [13:23:16]StoreToDocumentArchive [13:23:16]shift 170 fd 73811 [13:23:16]save to /storage/0170/doc_00073811 [13:23:16]save last doc name /storage/0170/doc_00073811 to /storage/kkm_last_doc_name [13:23:16]save OK [13:23:16]Clear old archive folders... [13:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:23:16]tlvbuf is 00390C80 [13:23:16]SAM_PROTO_ClearQueue [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 09 00 00 [13:23:16]Write to MH i2c: E2 08 00 4F 1F 80 09 00 00 00 00 00 00 E0 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 4F 1F 00 90 00 E2 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]SAM_PROTO_ClearQueue done [13:23:16]KKMCreateOFDPacket [13:23:16]OFDProtocolAddRootSTLVToBuf [13:23:16]FM_MakeSignedData [13:23:16]FM_MakeSignedData [13:23:16]SAM_PROTO_SignData [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 01 02 [13:23:16]Write to MH i2c: E2 08 00 50 1F 80 0D 01 02 00 00 00 00 E8 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 50 1F 00 90 00 E3 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=255 [13:23:16]MH_SAM_APDU [13:23:16]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 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 89 00 00 00 F4 03 04 00 45 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:23:16]Write to MH i2c: E2 02 01 51 1F 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 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 89 00 00 00 F4 03 04 00 45 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 80 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 51 1F 00 90 00 E4 [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=52 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 20 01 00 35 04 06 00 F0 90 EB 72 4C B5 [13:23:17]Write to MH i2c: E2 37 00 52 1F 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 20 01 00 35 04 06 00 F0 90 EB 72 4C B5 00 00 F3 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 03 02 [13:23:17]Write to MH i2c: E2 08 00 53 1F 80 0D 03 02 00 00 00 00 ED [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0B 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0B 00 53 1F 00 8E 71 24 D4 56 09 B2 8F 90 00 85 [13:23:17]RAPDU: 8E 71 24 D4 56 09 B2 8F 90 00 [13:23:17]wFMCommunicate OK [13:23:17]SAM_PROTO_SignData done [13:23:17]FM_MakeSignedData done [13:23:17]CreateOFDProtocolMessage [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 11 00 00 [13:23:17]Write to MH i2c: E2 08 00 54 1F 80 11 00 00 00 00 00 00 ED [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 54 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3A [13:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:23:17]wFMCommunicate OK [13:23:17]CreateOFDProtocolMessage done [13:23:17]OFDSenderStorePacket 73811 [13:23:17]StoreOFDPacket docnum=73811 [13:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 4A 93 31 01 4D 2E 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 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 89 00 00 00 F4 03 04 00 45 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 20 01 00 35 04 06 00 F0 90 EB 72 4C B5 8E 71 24 D4 56 09 B2 8F [13:23:17]CheckFolder [13:23:17]dirname=/storage/ofd_packets [13:23:17]CheckFolder done [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00073811 [13:23:17]NVStorageSaveData ofd_packets/00073811 [13:23:17]File name is /storage/ofd_packets/00073811 [13:23:17]Write 343 bytes [13:23:17]NVStorageSaveData done [13:23:17]OFDSenderStorePacket done [13:23:17]KKMCreateOFDPacket done [13:23:17]NVStorageSaveData kkm_last_timestamp [13:23:17]File name is /storage/kkm_last_timestamp [13:23:17]Write 4 bytes [13:23:17]NVStorageSaveData done [13:23:17]ExternCall_PrintAddStr [13:23:17]wPrintStart [13:23:17]Write to MH i2c: 01 00 00 55 1F 74 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 55 1F 00 00 00 00 00 FF 0F 89 [13:23:17]RasterBufferAndPrint [13:23:17]line Счет N : (3)272788 [13:23:17]line ИНН: 02508201610067 [13:23:17]line Контрольно-Кассовый Чек [13:23:17]line ПРОДАЖА [13:23:17]line Товар: 4700000480050 [13:23:17]line Напиток Nitro Energy эн green ж/б 0,45л [13:23:17]line 1.000 * 95.00 [13:23:17]line = 95.00 [13:23:17]line НДС 12% НСП 1% [13:23:17]line > о реализуемом товаре [13:23:17]line ИТОГО: 95.00 [13:23:17]line НСП 1% : 0.84 [13:23:17]line НДС 12% : 10.09 [13:23:17]line Наличными: 95.00 [13:23:17]line Безнал.: 0.00 [13:23:17]line Место: АЗС № 133 "Партнер Нефть" [13:23:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:23:17]line СНО: Общий режим [13:23:17]line Чек 137 20.10.2024 13:23 [13:23:17]line Смена: 170 ФФД: 1.0 [13:23:17]line ЗНМ: 0300000020 [13:23:17]line РНМ: 0000000000161154 [13:23:17]line Версия ККМ: v1.0 [13:23:17]line ФМ: 0000000000963323 [13:23:17]line ФД: 73811 [13:23:17]line ФПД: 264505216093365 [13:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132317&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73811&fm=264505216093365&tin=02508201610067®Number=0000000000161154&sum=9500 [13:23:17]line 0 [13:23:17]OFD Sender: Processing packet 73811 [packets to send 15, broken 14] [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00073811 [13:23:17]OFD Sender: To server: pG, [13:23:17]CommunicateWithHost lk.salyk.kg:30040 [13:23:17]ConnectInit lk.salyk.kg [13:23:17]written 0, free lines is 4095 [13:23:17]Connected sock=10 [13:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 4A 93 31 01 4D 2E 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 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 89 00 00 00 F4 03 04 00 45 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 20 01 00 35 04 06 00 F0 90 EB 72 4C B5 8E 71 24 D4 56 09 B2 8F [13:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A2 4B 47 00 75 5C 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 39 36 33 33 32 33 10 04 04 00 53 20 01 00 F4 03 04 00 2A AD 14 67 B6 04 01 00 00 41 2D 7F 57 40 CA 76 23 [13:23:18]CommunicateWithHost err = 0 [13:23:18]CheckOFDResponse [13:23:18]1017 (14) - 77093643461234 [13:23:18]1041 (16) - 0000000000963323 [13:23:18]1040 (4) - 73811 [13:23:18]1012 (4) - 20.10.2024 07:11 [13:23:18]1206 (1) - 0 [13:23:18]OFD Sender: Remove packet 73811 [13:23:18]ProducePacketName [13:23:18]name=ofd_packets/00073811 [13:23:18]NVStorageDeleteData [13:23:18]Write to MH i2c: 01 00 00 7D 1F 9C [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 7D 1F 00 00 00 00 00 CC 0C 7B [13:23:18]RasterBufferAndPrint [13:23:18]line [13:23:18]line [13:23:18]line [13:23:18]line [13:23:18]line [13:23:18]written 0, free lines is 3280 [13:23:18]MH_Cut [13:23:18]Write to MH i2c: D1 01 00 84 1F 01 75 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: D1 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: D1 01 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: D1 01 00 84 1F 00 74 [13:23:18]Write to MH i2c: 01 00 00 85 1F A4 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]OFD Sender: No OFD packet to send [13:23:19]*** Cut start [13:23:19]*** Partial cut [13:23:19]*** CUTSNS_PIN = 1 [13:23:19]*** CUTSNS_PIN = 0 [13:23:19]*** Brake cut motor [13:23:19]Read from MH i2c: 01 [13:23:19]MH_I2C_Read... [13:23:19]*** Stop cut motor [13:23:19]*** Cut end [13:23:19]Read from MH i2c: 01 07 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: 01 07 00 85 1F 00 00 00 00 00 FF 0F B9 [13:23:19]process_action close_receipt done [13:23:19]requested_data is exist [13:23:19]produce_requested_data [13:23:19]requested_item fm.sn is exist - process it [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 11 00 00 [13:23:19]Write to MH i2c: E2 08 00 86 1F 80 11 00 00 00 00 00 00 1F [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 17 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 17 00 86 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6C [13:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:23:19]wFMCommunicate OK [13:23:19]requested_item fd.num is exist - process it [13:23:19]SAM_PROTO_GetFieldsCounters [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 13 00 00 [13:23:19]Write to MH i2c: E2 08 00 87 1F 80 13 00 00 00 00 00 00 22 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 62 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 62 00 87 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 53 20 01 00 0E 04 04 00 AA 00 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 EF [13:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 53 20 01 00 0E 04 04 00 AA 00 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 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetFieldsCounters done [13:23:19]requested_item shift.num is exist - process it [13:23:19]requested_item shift.opened is exist - process it [13:23:19]req_shift_opened [13:23:19]FM_GetShiftState [13:23:19]SAM_PROTO_GetShiftState [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 13 01 00 [13:23:19]Write to MH i2c: E2 08 00 88 1F 80 13 01 00 00 00 00 00 24 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 88 1F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 69 [13:23:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetShiftState done [13:23:19]FM_GetShiftState done [13:23:19]req_shift_opened done [13:23:19]requested_item shift.open_date is exist - process it [13:23:19]req_shift_open_date [13:23:19]req_shift_open_date done [13:23:19]produce_requested_data done [13:23:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73811,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:23:19]process_action_free close_receipt [13:23:19]json_value_free [13:23:19]json_value_free done [13:23:19]process_json_proto returns [13:23:19]Send response to host [13:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73811,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:23:19]free response buf [13:23:19]execute_script done [13:23:19]execute_script returns [13:23:19]free content buf [13:23:19]Sock 8.Close socket [13:23:19]Sock 8.Thread stoped [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:28]accept exits with 9 [13:23:28]New connection [13:23:28]New thread 3067575652 created [13:23:28]Thread 3067432292 joined [13:23:28]Waiting for new connection... [13:23:28] Sock 9.Parse request [13:23:28]Sock 9.Check first char [13:23:28]Sock 9.First char is OK [13:23:28]request: POST /json_proto HTTP/1.0 [13:23:28]Method: POST [13:23:28]URL: /json_proto [13:23:28]Method is POST - this is cgi request [13:23:28]url: /json_proto [13:23:28]query_string will be loaded in cgi processing [13:23:28]execute_cgi json_proto POST (null) [13:23:28]execute_cgi path=json_proto method=POST [13:23:28]POST find Content-Length [13:23:28]Host: 172.17.44.196:8080 [13:23:28]Content-Length: 570 [13:23:28]Content-Type: application/json [13:23:28] [13:23:28]POST finish read [13:23:28]Found Content-Length = 570 [13:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272789", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 2.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:23:28]execute_script... [13:23: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)272789", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 2.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:23:28]POST & json_proto [13:23:28]process_json_proto [13:23:28]json parsed OK: [13:23:28]protocol is kg_v1.0 [13:23:28]action value=close_receipt [13:23:28]process_action close_receipt [13:23:28]cmd_close_receipt [13:23:28]MH_GetDate [13:23:28]Write to MH i2c: F0 00 00 89 1F 97 [13:23:28]Write i2c OK [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: F0 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: F0 09 00 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: F0 09 00 89 1F 00 52 04 15 67 E7 19 F8 65 CF [13:23:28]GetLastDocTimeStamp 1729430597 [13:23:28]current date 1729430610 [13:23:28]FM_GetShiftState [13:23:28]SAM_PROTO_GetShiftState [13:23:28]wFMCommunicate request_size=4 [13:23:28]MH_SAM_APDU [13:23:28]CAPDU: 80 13 01 00 [13:23:28]Write to MH i2c: E2 08 00 8A 1F 80 13 01 00 00 00 00 00 26 [13:23:28]Write i2c OK [13:23:28]MH_I2C_Read... [13:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:28]Read from MH i2c: E2 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: E2 0E 00 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: E2 0E 00 8A 1F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6B [13:23:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:23:28]wFMCommunicate OK [13:23:28]SAM_PROTO_GetShiftState done [13:23:28]FM_GetShiftState done [13:23:28]opened in 1729384303 [13:23:28]opened+sec_in_day 1729470703 [13:23:28]quantity*price = 26000 [13:23:28]sum+1 = 26001 [13:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 138 20.10.2024 13:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73812 ФПД: 276259013204983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132330&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73812&fm=276259013204983&tin=02508201610067®Number=0000000000161154&sum=26000 0 [13:23:29]StoreToDocumentArchive [13:23:29]shift 170 fd 73812 [13:23:29]save to /storage/0170/doc_00073812 [13:23:29]save last doc name /storage/0170/doc_00073812 to /storage/kkm_last_doc_name [13:23:29]save OK [13:23:29]Clear old archive folders... [13:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=254 [13:23:29]tlvbuf is 00331870 [13:23:29]SAM_PROTO_ClearQueue [13:23:29]wFMCommunicate request_size=4 [13:23:29]MH_SAM_APDU [13:23:29]CAPDU: 80 09 00 00 [13:23:29]Write to MH i2c: E2 08 00 97 1F 80 09 00 00 00 00 00 00 28 [13:23:29]Write i2c OK [13:23:29]MH_I2C_Read... [13:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:29]Read from MH i2c: E2 [13:23:29]MH_I2C_Read... [13:23:29]Read from MH i2c: E2 03 00 [13:23:29]MH_I2C_Read... [13:23:29]Read from MH i2c: E2 03 00 97 1F 00 90 00 2A [13:23:29]RAPDU: 90 00 [13:23:29]wFMCommunicate OK [13:23:29]SAM_PROTO_ClearQueue done [13:23:29]KKMCreateOFDPacket [13:23:29]OFDProtocolAddRootSTLVToBuf [13:23:29]FM_MakeSignedData [13:23:29]FM_MakeSignedData [13:23:29]SAM_PROTO_SignData [13:23:29]wFMCommunicate request_size=4 [13:23:29]MH_SAM_APDU [13:23:29]CAPDU: 80 0D 01 02 [13:23:29]Write to MH i2c: E2 08 00 98 1F 80 0D 01 02 00 00 00 00 30 [13:23:29]Write i2c OK [13:23:29]MH_I2C_Read... [13:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:30]Read from MH i2c: E2 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 03 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 03 00 98 1F 00 90 00 2B [13:23:30]RAPDU: 90 00 [13:23:30]wFMCommunicate OK [13:23:30]wFMCommunicate request_size=255 [13:23:30]MH_SAM_APDU [13:23:30]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 8A 00 00 00 F4 03 04 00 52 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 20 01 00 35 04 [13:23:30]Write to MH i2c: E2 02 01 99 1F 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 8A 00 00 00 F4 03 04 00 52 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 20 01 00 35 04 00 00 5C [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:30]Read from MH i2c: E2 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 03 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 03 00 99 1F 00 90 00 2C [13:23:30]RAPDU: 90 00 [13:23:30]wFMCommunicate OK [13:23:30]wFMCommunicate request_size=13 [13:23:30]MH_SAM_APDU [13:23:30]CAPDU: 80 0D 02 02 08 06 00 FB 41 90 59 1B F7 [13:23:30]Write to MH i2c: E2 10 00 9A 1F 80 0D 02 02 08 00 06 00 FB 41 90 59 1B F7 00 00 80 [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:30]Read from MH i2c: E2 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 03 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [13:23:30]RAPDU: 90 00 [13:23:30]wFMCommunicate OK [13:23:30]wFMCommunicate request_size=4 [13:23:30]MH_SAM_APDU [13:23:30]CAPDU: 80 0D 03 02 [13:23:30]Write to MH i2c: E2 08 00 9B 1F 80 0D 03 02 00 00 00 00 35 [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:30]Read from MH i2c: E2 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 0B 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 0B 00 9B 1F 00 66 91 7C 89 E3 6D F0 D2 90 00 44 [13:23:30]RAPDU: 66 91 7C 89 E3 6D F0 D2 90 00 [13:23:30]wFMCommunicate OK [13:23:30]SAM_PROTO_SignData done [13:23:30]FM_MakeSignedData done [13:23:30]CreateOFDProtocolMessage [13:23:30]wFMCommunicate request_size=4 [13:23:30]MH_SAM_APDU [13:23:30]CAPDU: 80 11 00 00 [13:23:30]Write to MH i2c: E2 08 00 9C 1F 80 11 00 00 00 00 00 00 35 [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:30]Read from MH i2c: E2 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 17 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 17 00 9C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 82 [13:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:23:30]wFMCommunicate OK [13:23:30]CreateOFDProtocolMessage done [13:23:30]OFDSenderStorePacket 73812 [13:23:30]StoreOFDPacket docnum=73812 [13:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 12 01 00 00 57 63 0A 01 CF 7B 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 8A 00 00 00 F4 03 04 00 52 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 20 01 00 35 04 06 00 FB 41 90 59 1B F7 66 91 7C 89 E3 6D F0 D2 [13:23:30]CheckFolder [13:23:30]dirname=/storage/ofd_packets [13:23:30]CheckFolder done [13:23:30]ProducePacketName [13:23:30]name=ofd_packets/00073812 [13:23:30]NVStorageSaveData ofd_packets/00073812 [13:23:30]File name is /storage/ofd_packets/00073812 [13:23:30]Write 304 bytes [13:23:30]NVStorageSaveData done [13:23:30]OFDSenderStorePacket done [13:23:30]KKMCreateOFDPacket done [13:23:30]NVStorageSaveData kkm_last_timestamp [13:23:30]File name is /storage/kkm_last_timestamp [13:23:30]Write 4 bytes [13:23:30]NVStorageSaveData done [13:23:30]ExternCall_PrintAddStr [13:23:30]wPrintStart [13:23:30]Write to MH i2c: 01 00 00 9D 1F BC [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: 01 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: 01 07 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: 01 07 00 9D 1F 00 00 00 00 00 FF 0F D1 [13:23:30]RasterBufferAndPrint [13:23:30]line Счет N : (3)272789 [13:23:30]line ИНН: 02508201610067 [13:23:30]line Контрольно-Кассовый Чек [13:23:30]line ПРОДАЖА [13:23:30]line Товар: 48744546 [13:23:30]line LD Compact Silver [13:23:30]line 2.000 * 130.00 [13:23:30]line = 260.00 [13:23:30]line НДС 12% НСП 1% [13:23:30]line > о реализуемом товаре [13:23:30]line ИТОГО: 260.00 [13:23:30]line НСП 1% : 2.30 [13:23:30]line НДС 12% : 27.61 [13:23:30]line Наличными: 260.00 [13:23:30]line Безнал.: 0.00 [13:23:30]line Место: АЗС № 133 "Партнер Нефть" [13:23:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:23:30]line СНО: Общий режим [13:23:30]line Чек 138 20.10.2024 13:23 [13:23:30]line Смена: 170 ФФД: 1.0 [13:23:30]line ЗНМ: 0300000020 [13:23:30]line РНМ: 0000000000161154 [13:23:30]line Версия ККМ: v1.0 [13:23:30]line ФМ: 0000000000963323 [13:23:30]line ФД: 73812 [13:23:30]line ФПД: 276259013204983 [13:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132330&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73812&fm=276259013204983&tin=02508201610067®Number=0000000000161154&sum=26000 [13:23:30]line 0 [13:23:30]written 0, free lines is 4095 [13:23:30]OFD Sender: Processing packet 73812 [packets to send 15, broken 14] [13:23:30]ProducePacketName [13:23:30]name=ofd_packets/00073812 [13:23:30]OFD Sender: To server: pG, [13:23:30]CommunicateWithHost lk.salyk.kg:30040 [13:23:30]ConnectInit lk.salyk.kg [13:23:30]Write to MH i2c: 01 00 00 C4 1F E3 [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: 01 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: 01 07 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: 01 07 00 C4 1F 00 00 00 00 00 E0 0C D6 [13:23:30]RasterBufferAndPrint [13:23:30]line [13:23:30]line [13:23:30]line [13:23:30]line [13:23:30]line [13:23:30]written 0, free lines is 3302 [13:23:30]Connected sock=10 [13:23:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 12 01 00 00 57 63 0A 01 CF 7B 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 8A 00 00 00 F4 03 04 00 52 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 20 01 00 35 04 06 00 FB 41 90 59 1B F7 66 91 7C 89 E3 6D F0 D2 [13:23:30]MH_Cut [13:23:30]Write to MH i2c: D1 01 00 CB 1F 01 BC [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: D1 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: D1 01 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: D1 01 00 CB 1F 00 BB [13:23:30]Write to MH i2c: 01 00 00 CC 1F EB [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 25 4D 47 00 9F 33 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 39 36 33 33 32 33 10 04 04 00 54 20 01 00 F4 03 04 00 37 AD 14 67 B6 04 01 00 00 7D 37 92 EE 1A 7A 6F 97 [13:23:31]CommunicateWithHost err = 0 [13:23:31]CheckOFDResponse [13:23:31]1017 (14) - 77093643461234 [13:23:31]1041 (16) - 0000000000963323 [13:23:31]1040 (4) - 73812 [13:23:31]1012 (4) - 20.10.2024 07:11 [13:23:31]1206 (1) - 0 [13:23:31]OFD Sender: Remove packet 73812 [13:23:31]ProducePacketName [13:23:31]name=ofd_packets/00073812 [13:23:31]NVStorageDeleteData [13:23:31]OFD Sender: No OFD packet to send [13:23:31]*** Cut start [13:23:31]*** Partial cut [13:23:31]*** CUTSNS_PIN = 1 [13:23:31]*** CUTSNS_PIN = 0 [13:23:31]*** Brake cut motor [13:23:32]Read from MH i2c: 01 [13:23:32]MH_I2C_Read... [13:23:32]*** Stop cut motor [13:23:32]*** Cut end [13:23:32]Read from MH i2c: 01 07 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 07 00 CC 1F 00 00 00 00 00 FF 0F 00 [13:23:32]process_action close_receipt done [13:23:32]requested_data is exist [13:23:32]produce_requested_data [13:23:32]requested_item fm.sn is exist - process it [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 11 00 00 [13:23:32]Write to MH i2c: E2 08 00 CD 1F 80 11 00 00 00 00 00 00 66 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 17 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 17 00 CD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B3 [13:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:23:32]wFMCommunicate OK [13:23:32]requested_item fd.num is exist - process it [13:23:32]SAM_PROTO_GetFieldsCounters [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 13 00 00 [13:23:32]Write to MH i2c: E2 08 00 CE 1F 80 13 00 00 00 00 00 00 69 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 62 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 62 00 CE 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 54 20 01 00 0E 04 04 00 AA 00 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 3A [13:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 54 20 01 00 0E 04 04 00 AA 00 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 [13:23:32]wFMCommunicate OK [13:23:32]SAM_PROTO_GetFieldsCounters done [13:23:32]requested_item shift.num is exist - process it [13:23:32]requested_item shift.opened is exist - process it [13:23:32]req_shift_opened [13:23:32]FM_GetShiftState [13:23:32]SAM_PROTO_GetShiftState [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 13 01 00 [13:23:32]Write to MH i2c: E2 08 00 CF 1F 80 13 01 00 00 00 00 00 6B [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 0E 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 0E 00 CF 1F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B0 [13:23:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:23:32]wFMCommunicate OK [13:23:32]SAM_PROTO_GetShiftState done [13:23:32]FM_GetShiftState done [13:23:32]req_shift_opened done [13:23:32]requested_item shift.open_date is exist - process it [13:23:32]req_shift_open_date [13:23:32]req_shift_open_date done [13:23:32]produce_requested_data done [13:23:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73812,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:23:32]process_action_free close_receipt [13:23:32]json_value_free [13:23:32]json_value_free done [13:23:32]process_json_proto returns [13:23:32]Send response to host [13:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73812,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:23:32]free response buf [13:23:32]execute_script done [13:23:32]execute_script returns [13:23:32]free content buf [13:23:32]Sock 9.Close socket [13:23:32]Sock 9.Thread stoped [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:04]accept exits with 8 [13:24:04]New connection [13:24:04]New thread 3067432292 created [13:24:04]Thread 3067575652 joined [13:24:04]Waiting for new connection... [13:24:04] Sock 8.Parse request [13:24:04]Sock 8.Check first char [13:24:04]Sock 8.First char is OK [13:24:04]request: POST /json_proto HTTP/1.0 [13:24:04]Method: POST [13:24:04]URL: /json_proto [13:24:04]Method is POST - this is cgi request [13:24:04]url: /json_proto [13:24:04]query_string will be loaded in cgi processing [13:24:04]execute_cgi json_proto POST (null) [13:24:04]execute_cgi path=json_proto method=POST [13:24:04]POST find Content-Length [13:24:04]Host: 172.17.44.196:8080 [13:24:04]Content-Length: 626 [13:24:04]Content-Type: application/json [13:24:04] [13:24:04]POST finish read [13:24:04]Found Content-Length = 626 [13:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272790", "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" ] } } [13:24:04]execute_script... [13:24: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)272790", "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" ] } } [13:24:04]POST & json_proto [13:24:04]process_json_proto [13:24:04]json parsed OK: [13:24:04]protocol is kg_v1.0 [13:24:04]action value=close_receipt [13:24:04]process_action close_receipt [13:24:04]cmd_close_receipt [13:24:04]MH_GetDate [13:24:04]Write to MH i2c: F0 00 00 D0 1F DE [13:24:04]Write i2c OK [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: F0 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: F0 09 00 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: F0 09 00 D0 1F 00 76 04 15 67 E7 19 F8 65 3A [13:24:04]GetLastDocTimeStamp 1729430610 [13:24:04]current date 1729430646 [13:24:04]FM_GetShiftState [13:24:04]SAM_PROTO_GetShiftState [13:24:04]wFMCommunicate request_size=4 [13:24:04]MH_SAM_APDU [13:24:04]CAPDU: 80 13 01 00 [13:24:04]Write to MH i2c: E2 08 00 D1 1F 80 13 01 00 00 00 00 00 6D [13:24:04]Write i2c OK [13:24:04]MH_I2C_Read... [13:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:04]Read from MH i2c: E2 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: E2 0E 00 [13:24:04]MH_I2C_Read... [13:24:04]Read from MH i2c: E2 0E 00 D1 1F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B2 [13:24:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:24:04]wFMCommunicate OK [13:24:04]SAM_PROTO_GetShiftState done [13:24:04]FM_GetShiftState done [13:24:04]opened in 1729384303 [13:24:04]opened+sec_in_day 1729470703 [13:24:04]quantity*price = 15000 [13:24:04]sum+1 = 15001 [13:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 139 20.10.2024 13:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73813 ФПД: 182016528752760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132406&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73813&fm=182016528752760&tin=02508201610067®Number=0000000000161154&sum=15000 0 [13:24:05]StoreToDocumentArchive [13:24:05]shift 170 fd 73813 [13:24:05]save to /storage/0170/doc_00073813 [13:24:05]save last doc name /storage/0170/doc_00073813 to /storage/kkm_last_doc_name [13:24:05]save OK [13:24:05]Clear old archive folders... [13:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:24:05]tlvbuf is 003E6B40 [13:24:05]SAM_PROTO_ClearQueue [13:24:05]wFMCommunicate request_size=4 [13:24:05]MH_SAM_APDU [13:24:05]CAPDU: 80 09 00 00 [13:24:05]Write to MH i2c: E2 08 00 DE 1F 80 09 00 00 00 00 00 00 6F [13:24:05]Write i2c OK [13:24:05]MH_I2C_Read... [13:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:05]Read from MH i2c: E2 [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: E2 03 00 [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [13:24:05]RAPDU: 90 00 [13:24:05]wFMCommunicate OK [13:24:05]SAM_PROTO_ClearQueue done [13:24:05]KKMCreateOFDPacket [13:24:05]OFDProtocolAddRootSTLVToBuf [13:24:05]FM_MakeSignedData [13:24:05]FM_MakeSignedData [13:24:05]SAM_PROTO_SignData [13:24:05]wFMCommunicate request_size=4 [13:24:05]MH_SAM_APDU [13:24:05]CAPDU: 80 0D 01 02 [13:24:05]Write to MH i2c: E2 08 00 DF 1F 80 0D 01 02 00 00 00 00 77 [13:24:05]Write i2c OK [13:24:05]MH_I2C_Read... [13:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:05]Read from MH i2c: E2 [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: E2 03 00 [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [13:24:05]RAPDU: 90 00 [13:24:05]wFMCommunicate OK [13:24:05]wFMCommunicate request_size=255 [13:24:05]MH_SAM_APDU [13:24: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 8B 00 00 00 F4 03 04 00 76 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [13:24:05]Write to MH i2c: E2 02 01 E0 1F 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 8B 00 00 00 F4 03 04 00 76 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 C0 [13:24:05]Write i2c OK [13:24:05]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 03 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [13:24:06]RAPDU: 90 00 [13:24:06]wFMCommunicate OK [13:24:06]wFMCommunicate request_size=37 [13:24:06]MH_SAM_APDU [13:24:06]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 20 01 00 35 04 06 00 A5 8B 06 8A 20 78 [13:24:06]Write to MH i2c: E2 28 00 E1 1F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 20 01 00 35 04 06 00 A5 8B 06 8A 20 78 00 00 99 [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 03 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [13:24:06]RAPDU: 90 00 [13:24:06]wFMCommunicate OK [13:24:06]wFMCommunicate request_size=4 [13:24:06]MH_SAM_APDU [13:24:06]CAPDU: 80 0D 03 02 [13:24:06]Write to MH i2c: E2 08 00 E2 1F 80 0D 03 02 00 00 00 00 7C [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 0B 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 0B 00 E2 1F 00 22 17 C3 44 56 EA C6 6B 90 00 2E [13:24:06]RAPDU: 22 17 C3 44 56 EA C6 6B 90 00 [13:24:06]wFMCommunicate OK [13:24:06]SAM_PROTO_SignData done [13:24:06]FM_MakeSignedData done [13:24:06]CreateOFDProtocolMessage [13:24:06]wFMCommunicate request_size=4 [13:24:06]MH_SAM_APDU [13:24:06]CAPDU: 80 11 00 00 [13:24:06]Write to MH i2c: E2 08 00 E3 1F 80 11 00 00 00 00 00 00 7C [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 17 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 17 00 E3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C9 [13:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:06]wFMCommunicate OK [13:24:06]CreateOFDProtocolMessage done [13:24:06]OFDSenderStorePacket 73813 [13:24:06]StoreOFDPacket docnum=73813 [13:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 26 89 22 01 1D CE 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 8B 00 00 00 F4 03 04 00 76 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 20 01 00 35 04 06 00 A5 8B 06 8A 20 78 22 17 C3 44 56 EA C6 6B [13:24:06]CheckFolder [13:24:06]dirname=/storage/ofd_packets [13:24:06]CheckFolder done [13:24:06]ProducePacketName [13:24:06]name=ofd_packets/00073813 [13:24:06]NVStorageSaveData ofd_packets/00073813 [13:24:06]File name is /storage/ofd_packets/00073813 [13:24:06]Write 328 bytes [13:24:06]NVStorageSaveData done [13:24:06]OFDSenderStorePacket done [13:24:06]KKMCreateOFDPacket done [13:24:06]NVStorageSaveData kkm_last_timestamp [13:24:06]File name is /storage/kkm_last_timestamp [13:24:06]Write 4 bytes [13:24:06]NVStorageSaveData done [13:24:06]ExternCall_PrintAddStr [13:24:06]wPrintStart [13:24:06]Write to MH i2c: 01 00 00 E4 1F 03 [13:24:06]Write i2c OK [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: 01 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: 01 07 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: 01 07 00 E4 1F 00 00 00 00 00 FF 0F 18 [13:24:06]RasterBufferAndPrint [13:24:06]line Счет N : (3)272790 [13:24:06]line ИНН: 02508201610067 [13:24:06]line Контрольно-Кассовый Чек [13:24:06]line ПРОДАЖА [13:24:06]line Товар: 4640030092499 [13:24:06]line Сигареты ESSE SENSE Himalaya [13:24:06]line 1.000 * 150.00 [13:24:06]line = 150.00 [13:24:06]line НДС 12% НСП 1% [13:24:06]line > о реализуемом товаре [13:24:06]line ИТОГО: 150.00 [13:24:06]line НСП 1% : 1.33 [13:24:06]line НДС 12% : 15.93 [13:24:06]line Наличными: 150.00 [13:24:06]line Безнал.: 0.00 [13:24:06]line Место: АЗС № 133 "Партнер Нефть" [13:24:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:24:06]line СНО: Общий режим [13:24:06]line Чек 139 20.10.2024 13:24 [13:24:06]line Смена: 170 ФФД: 1.0 [13:24:06]line ЗНМ: 0300000020 [13:24:06]line РНМ: 0000000000161154 [13:24:06]line Версия ККМ: v1.0 [13:24:06]line ФМ: 0000000000963323 [13:24:06]line ФД: 73813 [13:24:06]line ФПД: 182016528752760 [13:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132406&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73813&fm=182016528752760&tin=02508201610067®Number=0000000000161154&sum=15000 [13:24:06]line 0 [13:24:06]OFD Sender: Processing packet 73813 [packets to send 15, broken 14] [13:24:06]ProducePacketName [13:24:06]name=ofd_packets/00073813 [13:24:06]OFD Sender: To server: pG, [13:24:06]CommunicateWithHost lk.salyk.kg:30040 [13:24:06]ConnectInit lk.salyk.kg [13:24:06]written 0, free lines is 4095 [13:24:06]Connected sock=10 [13:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 26 89 22 01 1D CE 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 8B 00 00 00 F4 03 04 00 76 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 20 01 00 35 04 06 00 A5 8B 06 8A 20 78 22 17 C3 44 56 EA C6 6B [13:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9B 69 47 00 FF 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 39 36 33 33 32 33 10 04 04 00 55 20 01 00 F4 03 04 00 5B AD 14 67 B6 04 01 00 00 E4 A7 DD E7 FE E3 B4 C7 [13:24:07]CommunicateWithHost err = 0 [13:24:07]CheckOFDResponse [13:24:07]1017 (14) - 77093643461234 [13:24:07]1041 (16) - 0000000000963323 [13:24:07]1040 (4) - 73813 [13:24:07]1012 (4) - 20.10.2024 07:12 [13:24:07]1206 (1) - 0 [13:24:07]OFD Sender: Remove packet 73813 [13:24:07]ProducePacketName [13:24:07]name=ofd_packets/00073813 [13:24:07]NVStorageDeleteData [13:24:07]Write to MH i2c: 01 00 00 0C 20 2C [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 0C 20 00 00 00 00 00 D6 0C 15 [13:24:07]RasterBufferAndPrint [13:24:07]line [13:24:07]line [13:24:07]line [13:24:07]line [13:24:07]line [13:24:07]written 0, free lines is 3290 [13:24:07]MH_Cut [13:24:07]Write to MH i2c: D1 01 00 13 20 01 05 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: D1 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: D1 01 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: D1 01 00 13 20 00 04 [13:24:07]Write to MH i2c: 01 00 00 14 20 34 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]OFD Sender: No OFD packet to send [13:24:07]*** Cut start [13:24:07]*** Partial cut [13:24:07]*** CUTSNS_PIN = 1 [13:24:08]*** CUTSNS_PIN = 0 [13:24:08]*** Brake cut motor [13:24:08]Read from MH i2c: 01 [13:24:08]MH_I2C_Read... [13:24:08]*** Stop cut motor [13:24:08]*** Cut end [13:24:08]Read from MH i2c: 01 07 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: 01 07 00 14 20 00 00 00 00 00 FF 0F 49 [13:24:08]process_action close_receipt done [13:24:08]requested_data is exist [13:24:08]produce_requested_data [13:24:08]requested_item fm.sn is exist - process it [13:24:08]wFMCommunicate request_size=4 [13:24:08]MH_SAM_APDU [13:24:08]CAPDU: 80 11 00 00 [13:24:08]Write to MH i2c: E2 08 00 15 20 80 11 00 00 00 00 00 00 AF [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:08]Read from MH i2c: E2 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 17 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 17 00 15 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FC [13:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:08]wFMCommunicate OK [13:24:08]requested_item fd.num is exist - process it [13:24:08]SAM_PROTO_GetFieldsCounters [13:24:08]wFMCommunicate request_size=4 [13:24:08]MH_SAM_APDU [13:24:08]CAPDU: 80 13 00 00 [13:24:08]Write to MH i2c: E2 08 00 16 20 80 13 00 00 00 00 00 00 B2 [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:08]Read from MH i2c: E2 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 62 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 62 00 16 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 55 20 01 00 0E 04 04 00 AA 00 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 87 [13:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 55 20 01 00 0E 04 04 00 AA 00 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 [13:24:08]wFMCommunicate OK [13:24:08]SAM_PROTO_GetFieldsCounters done [13:24:08]requested_item shift.num is exist - process it [13:24:08]requested_item shift.opened is exist - process it [13:24:08]req_shift_opened [13:24:08]FM_GetShiftState [13:24:08]SAM_PROTO_GetShiftState [13:24:08]wFMCommunicate request_size=4 [13:24:08]MH_SAM_APDU [13:24:08]CAPDU: 80 13 01 00 [13:24:08]Write to MH i2c: E2 08 00 17 20 80 13 01 00 00 00 00 00 B4 [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:08]Read from MH i2c: E2 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 0E 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 0E 00 17 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F9 [13:24:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:24:08]wFMCommunicate OK [13:24:08]SAM_PROTO_GetShiftState done [13:24:08]FM_GetShiftState done [13:24:08]req_shift_opened done [13:24:08]requested_item shift.open_date is exist - process it [13:24:08]req_shift_open_date [13:24:08]req_shift_open_date done [13:24:08]produce_requested_data done [13:24:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73813,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:24:08]process_action_free close_receipt [13:24:08]json_value_free [13:24:08]json_value_free done [13:24:08]process_json_proto returns [13:24:08]Send response to host [13:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73813,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:24:08]free response buf [13:24:08]execute_script done [13:24:08]execute_script returns [13:24:08]free content buf [13:24:08]Sock 8.Close socket [13:24:08]Sock 8.Thread stoped [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:31]accept exits with 9 [13:24:31]New connection [13:24:31]New thread 3067575652 created [13:24:31]Thread 3067432292 joined [13:24:31]Waiting for new connection... [13:24:31] Sock 9.Parse request [13:24:31]Sock 9.Check first char [13:24:31]Sock 9.First char is OK [13:24:31]request: POST /json_proto HTTP/1.0 [13:24:31]Method: POST [13:24:31]URL: /json_proto [13:24:31]Method is POST - this is cgi request [13:24:31]url: /json_proto [13:24:31]query_string will be loaded in cgi processing [13:24:31]execute_cgi json_proto POST (null) [13:24:31]execute_cgi path=json_proto method=POST [13:24:31]POST find Content-Length [13:24:31]Host: 172.17.44.196:8080 [13:24:31]Content-Length: 678 [13:24:31]Content-Type: application/json [13:24:31] [13:24:31]POST finish read [13:24:31]Found Content-Length = 678 [13:24:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1962987", "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" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:31]execute_script... [13:24: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 : (1)1962987", "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" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:31]POST & json_proto [13:24:31]process_json_proto [13:24:31]json parsed OK: [13:24:31]protocol is kg_v1.0 [13:24:31]action value=close_receipt [13:24:31]process_action close_receipt [13:24:31]cmd_close_receipt [13:24:31]MH_GetDate [13:24:31]Write to MH i2c: F0 00 00 18 20 27 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: F0 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: F0 09 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: F0 09 00 18 20 00 90 04 15 67 E7 19 F8 65 9D [13:24:31]GetLastDocTimeStamp 1729430646 [13:24:31]current date 1729430672 [13:24:31]FM_GetShiftState [13:24:31]SAM_PROTO_GetShiftState [13:24:31]wFMCommunicate request_size=4 [13:24:31]MH_SAM_APDU [13:24:31]CAPDU: 80 13 01 00 [13:24:31]Write to MH i2c: E2 08 00 19 20 80 13 01 00 00 00 00 00 B6 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:31]Read from MH i2c: E2 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 0E 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 0E 00 19 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FB [13:24:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:24:31]wFMCommunicate OK [13:24:31]SAM_PROTO_GetShiftState done [13:24:31]FM_GetShiftState done [13:24:31]opened in 1729384303 [13:24:31]opened+sec_in_day 1729470703 [13:24:31]quantity*price = 25020 [13:24:31]sum+1 = 25022 [13:24:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 140 20.10.2024 13:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73814 ФПД: 156219422880994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132432&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73814&fm=156219422880994&tin=02508201610067®Number=0000000000161154&sum=25000 [13:24:32]StoreToDocumentArchive [13:24:32]shift 170 fd 73814 [13:24:32]save to /storage/0170/doc_00073814 [13:24:32]save last doc name /storage/0170/doc_00073814 to /storage/kkm_last_doc_name [13:24:32]save OK [13:24:32]Clear old archive folders... [13:24:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:32]tlvbuf is B6FF0AB0 [13:24:32]SAM_PROTO_ClearQueue [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 09 00 00 [13:24:32]Write to MH i2c: E2 08 00 26 20 80 09 00 00 00 00 00 00 B8 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [13:24:32]RAPDU: 90 00 [13:24:32]wFMCommunicate OK [13:24:32]SAM_PROTO_ClearQueue done [13:24:32]KKMCreateOFDPacket [13:24:32]OFDProtocolAddRootSTLVToBuf [13:24:32]FM_MakeSignedData [13:24:32]FM_MakeSignedData [13:24:32]SAM_PROTO_SignData [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 0D 01 02 [13:24:32]Write to MH i2c: E2 08 00 27 20 80 0D 01 02 00 00 00 00 C0 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [13:24:32]RAPDU: 90 00 [13:24:32]wFMCommunicate OK [13:24:32]wFMCommunicate request_size=255 [13:24:32]MH_SAM_APDU [13:24:32]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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 8C 00 00 00 F4 03 04 00 90 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 20 01 00 35 04 06 00 8E [13:24:32]Write to MH i2c: E2 02 01 28 20 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 8C 00 00 00 F4 03 04 00 90 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 20 01 00 35 04 06 00 8E 00 00 66 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]OFD Sender: No OFD packet to send [13:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 28 20 00 90 00 BC [13:24:32]RAPDU: 90 00 [13:24:32]wFMCommunicate OK [13:24:32]wFMCommunicate request_size=10 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 0D 02 02 05 14 AB 35 34 E2 [13:24:32]Write to MH i2c: E2 0D 00 29 20 80 0D 02 02 05 00 14 AB 35 34 E2 00 00 D7 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [13:24:32]RAPDU: 90 00 [13:24:32]wFMCommunicate OK [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 0D 03 02 [13:24:32]Write to MH i2c: E2 08 00 2A 20 80 0D 03 02 00 00 00 00 C5 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 0B 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 0B 00 2A 20 00 4F 58 51 5F 8C F9 5E C4 90 00 C4 [13:24:32]RAPDU: 4F 58 51 5F 8C F9 5E C4 90 00 [13:24:32]wFMCommunicate OK [13:24:32]SAM_PROTO_SignData done [13:24:32]FM_MakeSignedData done [13:24:32]CreateOFDProtocolMessage [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 11 00 00 [13:24:32]Write to MH i2c: E2 08 00 2B 20 80 11 00 00 00 00 00 00 C5 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 17 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 17 00 2B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 12 [13:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:32]wFMCommunicate OK [13:24:32]CreateOFDProtocolMessage done [13:24:32]OFDSenderStorePacket 73814 [13:24:32]StoreOFDPacket docnum=73814 [13:24:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 27 E6 07 01 54 ED 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 8C 00 00 00 F4 03 04 00 90 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 20 01 00 35 04 06 00 8E 14 AB 35 34 E2 4F 58 51 5F 8C F9 5E C4 [13:24:32]CheckFolder [13:24:32]dirname=/storage/ofd_packets [13:24:32]CheckFolder done [13:24:32]ProducePacketName [13:24:32]name=ofd_packets/00073814 [13:24:32]NVStorageSaveData ofd_packets/00073814 [13:24:32]File name is /storage/ofd_packets/00073814 [13:24:32]Write 301 bytes [13:24:32]NVStorageSaveData done [13:24:32]OFDSenderStorePacket done [13:24:32]KKMCreateOFDPacket done [13:24:32]NVStorageSaveData kkm_last_timestamp [13:24:32]File name is /storage/kkm_last_timestamp [13:24:32]Write 4 bytes [13:24:32]NVStorageSaveData done [13:24:32]ExternCall_PrintAddStr [13:24:32]wPrintStart [13:24:32]Write to MH i2c: 01 00 00 2C 20 4C [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: 01 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: 01 07 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: 01 07 00 2C 20 00 00 00 00 00 FF 0F 61 [13:24:32]RasterBufferAndPrint [13:24:32]line Счет N : (1)1962987 [13:24:32]line ИНН: 02508201610067 [13:24:32]line Контрольно-Кассовый Чек [13:24:32]line ПРОДАЖА [13:24:32]line ТРК (МРК, ГНК) : 43 [13:24:32]line Товар: 2710124130 [13:24:32]line Аи-92-К-5 [13:24:32]line 3.740 * 66.90 [13:24:32]line = 250.21 [13:24:32]line НДС 12% НСП 1% [13:24:32]line > о реализуемом товаре [13:24:32]line ОКРУГЛЕНИЕ: -0.21 [13:24:32]line ИТОГО: 250.00 [13:24:32]line Внесено: 250.00 [13:24:32]line СДАЧА: 0.00 [13:24:32]line НСП 1% : 2.21 [13:24:32]line НДС 12% : 26.57 [13:24:32]line Наличными: 250.00 [13:24:32]line Безнал.: 0.00 [13:24:32]line Место: АЗС № 133 "Партнер Нефть" [13:24:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:24:32]line СНО: Общий режим [13:24:32]line Чек 140 20.10.2024 13:24 [13:24:32]line Смена: 170 ФФД: 1.0 [13:24:32]line ЗНМ: 0300000020 [13:24:32]line РНМ: 0000000000161154 [13:24:32]line Версия ККМ: v1.0 [13:24:32]line ФМ: 0000000000963323 [13:24:32]line ФД: 73814 [13:24:32]line ФПД: 156219422880994 [13:24:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132432&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73814&fm=156219422880994&tin=02508201610067®Number=0000000000161154&sum=25000 [13:24:33]OFD Sender: Processing packet 73814 [packets to send 15, broken 14] [13:24:33]ProducePacketName [13:24:33]name=ofd_packets/00073814 [13:24:33]OFD Sender: To server: pG, [13:24:33]CommunicateWithHost lk.salyk.kg:30040 [13:24:33]ConnectInit lk.salyk.kg [13:24:33]written 0, free lines is 4095 [13:24:33]Connected sock=10 [13:24:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 27 E6 07 01 54 ED 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 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 61 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 8C 00 00 00 F4 03 04 00 90 04 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 20 01 00 35 04 06 00 8E 14 AB 35 34 E2 4F 58 51 5F 8C F9 5E C4 [13:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D1 5B 47 00 9C D4 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 39 36 33 33 32 33 10 04 04 00 56 20 01 00 F4 03 04 00 75 AD 14 67 B6 04 01 00 00 DF F9 88 44 66 24 1B B5 [13:24:33]CommunicateWithHost err = 0 [13:24:33]CheckOFDResponse [13:24:33]1017 (14) - 77093643461234 [13:24:33]1041 (16) - 0000000000963323 [13:24:33]1040 (4) - 73814 [13:24:33]1012 (4) - 20.10.2024 07:12 [13:24:33]1206 (1) - 0 [13:24:33]OFD Sender: Remove packet 73814 [13:24:33]ProducePacketName [13:24:33]name=ofd_packets/00073814 [13:24:33]NVStorageDeleteData [13:24:33]Write to MH i2c: 01 00 00 56 20 76 [13:24:33]Write i2c OK [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: 01 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: 01 07 00 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: 01 07 00 56 20 00 00 00 00 00 B3 0C 3C [13:24:33]RasterBufferAndPrint [13:24:33]line [13:24:33]line [13:24:33]line [13:24:33]line [13:24:33]line [13:24:33]written 0, free lines is 3255 [13:24:33]MH_Cut [13:24:33]Write to MH i2c: D1 01 00 5D 20 01 4F [13:24:33]Write i2c OK [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: D1 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: D1 01 00 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: D1 01 00 5D 20 00 4E [13:24:33]Write to MH i2c: 01 00 00 5E 20 7E [13:24:33]Write i2c OK [13:24:33]MH_I2C_Read... [13:24:33]OFD Sender: No OFD packet to send [13:24:34]*** Cut start [13:24:34]*** Partial cut [13:24:34]*** CUTSNS_PIN = 1 [13:24:34]*** CUTSNS_PIN = 0 [13:24:34]*** Brake cut motor [13:24:35]Read from MH i2c: 01 [13:24:35]MH_I2C_Read... [13:24:35]*** Stop cut motor [13:24:35]*** Cut end [13:24:35]Read from MH i2c: 01 07 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: 01 07 00 5E 20 00 00 00 00 00 FF 0F 93 [13:24:35]process_action close_receipt done [13:24:35]requested_data is exist [13:24:35]produce_requested_data [13:24:35]requested_item fm.sn is exist - process it [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 11 00 00 [13:24:35]Write to MH i2c: E2 08 00 5F 20 80 11 00 00 00 00 00 00 F9 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 17 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 17 00 5F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 46 [13:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:35]wFMCommunicate OK [13:24:35]requested_item fd.num is exist - process it [13:24:35]SAM_PROTO_GetFieldsCounters [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 13 00 00 [13:24:35]Write to MH i2c: E2 08 00 60 20 80 13 00 00 00 00 00 00 FC [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 62 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 62 00 60 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 56 20 01 00 0E 04 04 00 AA 00 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 D5 [13:24:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 56 20 01 00 0E 04 04 00 AA 00 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 [13:24:35]wFMCommunicate OK [13:24:35]SAM_PROTO_GetFieldsCounters done [13:24:35]requested_item shift.num is exist - process it [13:24:35]requested_item shift.opened is exist - process it [13:24:35]req_shift_opened [13:24:35]FM_GetShiftState [13:24:35]SAM_PROTO_GetShiftState [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 13 01 00 [13:24:35]Write to MH i2c: E2 08 00 61 20 80 13 01 00 00 00 00 00 FE [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 61 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 43 [13:24:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:24:35]wFMCommunicate OK [13:24:35]SAM_PROTO_GetShiftState done [13:24:35]FM_GetShiftState done [13:24:35]req_shift_opened done [13:24:35]requested_item shift.open_date is exist - process it [13:24:35]req_shift_open_date [13:24:35]req_shift_open_date done [13:24:35]produce_requested_data done [13:24:35]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73814,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:24:35]process_action_free close_receipt [13:24:35]json_value_free [13:24:35]json_value_free done [13:24:35]process_json_proto returns [13:24:35]Send response to host [13:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73814,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:24:35]free response buf [13:24:35]execute_script done [13:24:35]execute_script returns [13:24:35]free content buf [13:24:35]Sock 9.Close socket [13:24:35]Sock 9.Thread stoped [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:29]accept exits with 8 [13:27:29]New connection [13:27:29]New thread 3067432292 created [13:27:29]Thread 3067575652 joined [13:27:29]Waiting for new connection... [13:27:29] Sock 8.Parse request [13:27:29]Sock 8.Check first char [13:27:29]Sock 8.First char is OK [13:27:29]request: POST /json_proto HTTP/1.0 [13:27:29]Method: POST [13:27:29]URL: /json_proto [13:27:29]Method is POST - this is cgi request [13:27:29]url: /json_proto [13:27:29]query_string will be loaded in cgi processing [13:27:29]execute_cgi json_proto POST (null) [13:27:29]execute_cgi path=json_proto method=POST [13:27:29]POST find Content-Length [13:27:29]Host: 172.17.44.196:8080 [13:27:29]Content-Length: 869 [13:27:29]Content-Type: application/json [13:27:29] [13:27:29]POST finish read [13:27:29]Found Content-Length = 869 [13:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272791", "tax_sys" : 0, "items" : [ { "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.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: Mbank", "payments": [ { "type": 1, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:29]execute_script... [13:27: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)272791", "tax_sys" : 0, "items" : [ { "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.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: Mbank", "payments": [ { "type": 1, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:29]POST & json_proto [13:27:29]process_json_proto [13:27:29]json parsed OK: [13:27:29]protocol is kg_v1.0 [13:27:29]action value=close_receipt [13:27:29]process_action close_receipt [13:27:29]cmd_close_receipt [13:27:29]MH_GetDate [13:27:29]Write to MH i2c: F0 00 00 62 20 71 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 09 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 09 00 62 20 00 43 05 15 67 E7 19 F8 65 9B [13:27:29]GetLastDocTimeStamp 1729430672 [13:27:29]current date 1729430851 [13:27:29]FM_GetShiftState [13:27:29]SAM_PROTO_GetShiftState [13:27:29]wFMCommunicate request_size=4 [13:27:29]MH_SAM_APDU [13:27:29]CAPDU: 80 13 01 00 [13:27:29]Write to MH i2c: E2 08 00 63 20 80 13 01 00 00 00 00 00 00 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:29]Read from MH i2c: E2 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: E2 0E 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: E2 0E 00 63 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 45 [13:27:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:27:29]wFMCommunicate OK [13:27:29]SAM_PROTO_GetShiftState done [13:27:29]FM_GetShiftState done [13:27:29]opened in 1729384303 [13:27:29]opened+sec_in_day 1729470703 [13:27:29]quantity*price = 5900 [13:27:29]sum+1 = 5901 [13:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 0.00 Безнал.: 59.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 141 20.10.2024 13:27 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73815 ФПД: 170735017302836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132731&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73815&fm=170735017302836&tin=02508201610067®Number=0000000000161154&sum=5900 0 [13:27:30]StoreToDocumentArchive [13:27:30]shift 170 fd 73815 [13:27:30]save to /storage/0170/doc_00073815 [13:27:30]save last doc name /storage/0170/doc_00073815 to /storage/kkm_last_doc_name [13:27:30]save OK [13:27:30]Clear old archive folders... [13:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=309 [13:27:30]tlvbuf is 0039FD40 [13:27:30]SAM_PROTO_ClearQueue [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 09 00 00 [13:27:30]Write to MH i2c: E2 08 00 70 20 80 09 00 00 00 00 00 00 02 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 70 20 00 90 00 04 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]SAM_PROTO_ClearQueue done [13:27:31]KKMCreateOFDPacket [13:27:31]OFDProtocolAddRootSTLVToBuf [13:27:31]FM_MakeSignedData [13:27:31]FM_MakeSignedData [13:27:31]SAM_PROTO_SignData [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 01 02 [13:27:31]Write to MH i2c: E2 08 00 71 20 80 0D 01 02 00 00 00 00 0A [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]wFMCommunicate request_size=255 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 43 05 15 67 0E 04 04 00 AA 00 00 00 [13:27:31]Write to MH i2c: E2 02 01 72 20 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 43 05 15 67 0E 04 04 00 AA 00 00 00 00 00 DB [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]wFMCommunicate request_size=68 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 20 01 00 35 04 06 00 9B 48 58 0E 9B 34 [13:27:31]Write to MH i2c: E2 47 00 73 20 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 20 01 00 35 04 06 00 9B 48 58 0E 9B 34 00 00 A3 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 03 02 [13:27:31]Write to MH i2c: E2 08 00 74 20 80 0D 03 02 00 00 00 00 0F [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0B 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0B 00 74 20 00 58 22 31 19 B0 8E 6D 63 90 00 E2 [13:27:31]RAPDU: 58 22 31 19 B0 8E 6D 63 90 00 [13:27:31]wFMCommunicate OK [13:27:31]SAM_PROTO_SignData done [13:27:31]FM_MakeSignedData done [13:27:31]CreateOFDProtocolMessage [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 11 00 00 [13:27:31]Write to MH i2c: E2 08 00 75 20 80 11 00 00 00 00 00 00 0F [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 75 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5C [13:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:27:31]wFMCommunicate OK [13:27:31]CreateOFDProtocolMessage done [13:27:31]OFDSenderStorePacket 73815 [13:27:31]StoreOFDPacket docnum=73815 [13:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 49 01 00 00 FE 43 41 01 EC FF 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 43 05 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 20 01 00 35 04 06 00 9B 48 58 0E 9B 34 58 22 31 19 B0 8E 6D 63 [13:27:31]CheckFolder [13:27:31]dirname=/storage/ofd_packets [13:27:31]CheckFolder done [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00073815 [13:27:31]NVStorageSaveData ofd_packets/00073815 [13:27:31]File name is /storage/ofd_packets/00073815 [13:27:31]Write 359 bytes [13:27:31]NVStorageSaveData done [13:27:31]OFDSenderStorePacket done [13:27:31]KKMCreateOFDPacket done [13:27:31]NVStorageSaveData kkm_last_timestamp [13:27:31]File name is /storage/kkm_last_timestamp [13:27:31]Write 4 bytes [13:27:31]NVStorageSaveData done [13:27:31]ExternCall_PrintAddStr [13:27:31]wPrintStart [13:27:31]Write to MH i2c: 01 00 00 76 20 96 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 76 20 00 00 00 00 00 FF 0F AB [13:27:31]RasterBufferAndPrint [13:27:31]line Счет N : (3)272791 [13:27:31]line ИНН: 02508201610067 [13:27:31]line Контрольно-Кассовый Чек [13:27:31]line ПРОДАЖА [13:27:31]line Товар: 4607123066058 [13:27:31]line Печенье Юбилейное Торжество орех 120г [13:27:31]line 1.000 * 59.00 [13:27:31]line = 59.00 [13:27:31]line НДС 12% НСП 1% [13:27:31]line > о реализуемом товаре [13:27:31]line ИТОГО: 59.00 [13:27:31]line НСП 1% : 0.52 [13:27:31]line НДС 12% : 6.26 [13:27:31]line Наличными: 0.00 [13:27:31]line Безнал.: 59.00 [13:27:31]line Место: АЗС № 133 "Партнер Нефть" [13:27:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:27:31]line СНО: Общий режим [13:27:31]line Чек 141 20.10.2024 13:27 [13:27:31]line Смена: 170 ФФД: 1.0 [13:27:31]line ЗНМ: 0300000020 [13:27:31]line РНМ: 0000000000161154 [13:27:31]line Версия ККМ: v1.0 [13:27:31]line Платежная система: Mbank [13:27:31]line ФМ: 0000000000963323 [13:27:31]line ФД: 73815 [13:27:31]line ФПД: 170735017302836 [13:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132731&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73815&fm=170735017302836&tin=02508201610067®Number=0000000000161154&sum=5900 [13:27:31]line 0 [13:27:31]OFD Sender: Processing packet 73815 [packets to send 15, broken 14] [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00073815 [13:27:31]OFD Sender: To server: pG, [13:27:31]CommunicateWithHost lk.salyk.kg:30040 [13:27:31]ConnectInit lk.salyk.kg [13:27:31]written 0, free lines is 4095 [13:27:31]Connected sock=10 [13:27:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 49 01 00 00 FE 43 41 01 EC FF 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 43 05 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 20 01 00 35 04 06 00 9B 48 58 0E 9B 34 58 22 31 19 B0 8E 6D 63 [13:27:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 4F 47 00 F3 82 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 39 36 33 33 32 33 10 04 04 00 57 20 01 00 F4 03 04 00 28 AE 14 67 B6 04 01 00 00 7D 40 CE 57 A2 19 55 1A [13:27:32]CommunicateWithHost err = 0 [13:27:32]CheckOFDResponse [13:27:32]1017 (14) - 77093643461234 [13:27:32]1041 (16) - 0000000000963323 [13:27:32]1040 (4) - 73815 [13:27:32]1012 (4) - 20.10.2024 07:15 [13:27:32]1206 (1) - 0 [13:27:32]OFD Sender: Remove packet 73815 [13:27:32]ProducePacketName [13:27:32]name=ofd_packets/00073815 [13:27:32]NVStorageDeleteData [13:27:32]Write to MH i2c: 01 00 00 9F 20 BF [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 07 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 B2 0C 84 [13:27:32]RasterBufferAndPrint [13:27:32]line [13:27:32]line [13:27:32]line [13:27:32]line [13:27:32]line [13:27:32]written 0, free lines is 3256 [13:27:32]MH_Cut [13:27:32]Write to MH i2c: D1 01 00 A6 20 01 98 [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: D1 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: D1 01 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: D1 01 00 A6 20 00 97 [13:27:32]Write to MH i2c: 01 00 00 A7 20 C7 [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]OFD Sender: No OFD packet to send [13:27:33]*** Cut start [13:27:33]*** Partial cut [13:27:33]*** CUTSNS_PIN = 1 [13:27:33]*** CUTSNS_PIN = 0 [13:27:33]*** Brake cut motor [13:27:33]Read from MH i2c: 01 [13:27:33]MH_I2C_Read... [13:27:33]*** Stop cut motor [13:27:33]*** Cut end [13:27:33]Read from MH i2c: 01 07 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [13:27:33]process_action close_receipt done [13:27:33]requested_data is exist [13:27:33]produce_requested_data [13:27:33]requested_item fm.sn is exist - process it [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 11 00 00 [13:27:33]Write to MH i2c: E2 08 00 A8 20 80 11 00 00 00 00 00 00 42 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 A8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [13:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:27:33]wFMCommunicate OK [13:27:33]requested_item fd.num is exist - process it [13:27:33]SAM_PROTO_GetFieldsCounters [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 13 00 00 [13:27:33]Write to MH i2c: E2 08 00 A9 20 80 13 00 00 00 00 00 00 45 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 62 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 62 00 A9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 57 20 01 00 0E 04 04 00 AA 00 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 22 [13:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 57 20 01 00 0E 04 04 00 AA 00 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 [13:27:34]wFMCommunicate OK [13:27:34]SAM_PROTO_GetFieldsCounters done [13:27:34]requested_item shift.num is exist - process it [13:27:34]requested_item shift.opened is exist - process it [13:27:34]req_shift_opened [13:27:34]FM_GetShiftState [13:27:34]SAM_PROTO_GetShiftState [13:27:34]wFMCommunicate request_size=4 [13:27:34]MH_SAM_APDU [13:27:34]CAPDU: 80 13 01 00 [13:27:34]Write to MH i2c: E2 08 00 AA 20 80 13 01 00 00 00 00 00 47 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 0E 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 0E 00 AA 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8C [13:27:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:27:34]wFMCommunicate OK [13:27:34]SAM_PROTO_GetShiftState done [13:27:34]FM_GetShiftState done [13:27:34]req_shift_opened done [13:27:34]requested_item shift.open_date is exist - process it [13:27:34]req_shift_open_date [13:27:34]req_shift_open_date done [13:27:34]produce_requested_data done [13:27:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73815,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:27:34]process_action_free close_receipt [13:27:34]json_value_free [13:27:34]json_value_free done [13:27:34]process_json_proto returns [13:27:34]Send response to host [13:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73815,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:27:34]free response buf [13:27:34]execute_script done [13:27:34]execute_script returns [13:27:34]free content buf [13:27:34]Sock 8.Close socket [13:27:34]Sock 8.Thread stoped [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]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:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:24]accept exits with 9 [13:46:24]New connection [13:46:24]New thread 3067575652 created [13:46:24]Thread 3067432292 joined [13:46:24]Waiting for new connection... [13:46:24] Sock 9.Parse request [13:46:24]Sock 9.Check first char [13:46:24]Sock 9.First char is OK [13:46:24]request: POST /json_proto HTTP/1.0 [13:46:24]Method: POST [13:46:24]URL: /json_proto [13:46:24]Method is POST - this is cgi request [13:46:24]url: /json_proto [13:46:24]query_string will be loaded in cgi processing [13:46:24]execute_cgi json_proto POST (null) [13:46:24]execute_cgi path=json_proto method=POST [13:46:24]POST find Content-Length [13:46:24]Host: 172.17.44.196:8080 [13:46:24]Content-Length: 885 [13:46:24]Content-Type: application/json [13:46:24] [13:46:24]POST finish read [13:46:24]Found Content-Length = 885 [13:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272792", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [13:46:24]execute_script... [13:46: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)272792", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [13:46:24]POST & json_proto [13:46:24]process_json_proto [13:46:24]json parsed OK: [13:46:24]protocol is kg_v1.0 [13:46:24]action value=close_receipt [13:46:24]process_action close_receipt [13:46:24]cmd_close_receipt [13:46:24]MH_GetDate [13:46:24]Write to MH i2c: F0 00 00 AB 20 BA [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 09 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 09 00 AB 20 00 B2 09 15 67 E7 19 F8 65 57 [13:46:24]GetLastDocTimeStamp 1729430851 [13:46:24]current date 1729431986 [13:46:24]FM_GetShiftState [13:46:24]SAM_PROTO_GetShiftState [13:46:24]wFMCommunicate request_size=4 [13:46:24]MH_SAM_APDU [13:46:24]CAPDU: 80 13 01 00 [13:46:24]Write to MH i2c: E2 08 00 AC 20 80 13 01 00 00 00 00 00 49 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0E 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0E 00 AC 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8E [13:46:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_GetShiftState done [13:46:25]FM_GetShiftState done [13:46:25]opened in 1729384303 [13:46:25]opened+sec_in_day 1729470703 [13:46:25]quantity*price = 14000 [13:46:25]sum+1 = 14001 [13:46:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 142 20.10.2024 13:46 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73816 ФПД: 162694784709606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134626&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73816&fm=162694784709606&tin=02508201610067®Number=0000000000161154&sum=15000 0 [13:46:26]StoreToDocumentArchive [13:46:26]shift 170 fd 73816 [13:46:26]save to /storage/0170/doc_00073816 [13:46:26]save last doc name /storage/0170/doc_00073816 to /storage/kkm_last_doc_name [13:46:26]save OK [13:46:26]Clear old archive folders... [13:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=385 [13:46:26]tlvbuf is 00338330 [13:46:26]SAM_PROTO_ClearQueue [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 09 00 00 [13:46:26]Write to MH i2c: E2 08 00 B9 20 80 09 00 00 00 00 00 00 4B [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 B9 20 00 90 00 4D [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]SAM_PROTO_ClearQueue done [13:46:26]KKMCreateOFDPacket [13:46:26]OFDProtocolAddRootSTLVToBuf [13:46:26]FM_MakeSignedData [13:46:26]FM_MakeSignedData [13:46:26]SAM_PROTO_SignData [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 01 02 [13:46:26]Write to MH i2c: E2 08 00 BA 20 80 0D 01 02 00 00 00 00 53 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 BA 20 00 90 00 4E [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]wFMCommunicate request_size=255 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 02 02 FA 03 00 81 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [13:46:26]Write to MH i2c: E2 02 01 BB 20 80 0D 02 02 FA 00 03 00 81 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 00 5A [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 BB 20 00 90 00 4F [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]wFMCommunicate request_size=144 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 02 02 8B 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 8E 00 00 00 F4 03 04 00 B2 09 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 20 01 00 35 04 06 00 93 F8 54 D9 73 E6 [13:46:26]Write to MH i2c: E2 93 00 BC 20 80 0D 02 02 8B 00 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 8E 00 00 00 F4 03 04 00 B2 09 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 20 01 00 35 04 06 00 93 F8 54 D9 73 E6 00 00 1B [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 BC 20 00 90 00 50 [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 03 02 [13:46:26]Write to MH i2c: E2 08 00 BD 20 80 0D 03 02 00 00 00 00 58 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 0B 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 0B 00 BD 20 00 DD 36 0F 9B 86 54 32 E3 90 00 05 [13:46:26]RAPDU: DD 36 0F 9B 86 54 32 E3 90 00 [13:46:26]wFMCommunicate OK [13:46:26]SAM_PROTO_SignData done [13:46:26]FM_MakeSignedData done [13:46:26]CreateOFDProtocolMessage [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 11 00 00 [13:46:26]Write to MH i2c: E2 08 00 BE 20 80 11 00 00 00 00 00 00 58 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 17 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 17 00 BE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A5 [13:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:46:26]wFMCommunicate OK [13:46:26]CreateOFDProtocolMessage done [13:46:26]OFDSenderStorePacket 73816 [13:46:26]StoreOFDPacket docnum=73816 [13:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 95 01 00 00 EC F9 8D 01 CB A6 5A 03 01 00 03 00 81 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 8E 00 00 00 F4 03 04 00 B2 09 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 20 01 00 35 04 06 00 93 F8 54 D9 73 E6 DD 36 0F 9B 86 54 32 E3 [13:46:26]CheckFolder [13:46:26]dirname=/storage/ofd_packets [13:46:26]CheckFolder done [13:46:26]ProducePacketName [13:46:26]name=ofd_packets/00073816 [13:46:26]NVStorageSaveData ofd_packets/00073816 [13:46:26]File name is /storage/ofd_packets/00073816 [13:46:26]Write 435 bytes [13:46:26]NVStorageSaveData done [13:46:26]OFDSenderStorePacket done [13:46:26]KKMCreateOFDPacket done [13:46:26]NVStorageSaveData kkm_last_timestamp [13:46:26]File name is /storage/kkm_last_timestamp [13:46:26]Write 4 bytes [13:46:26]NVStorageSaveData done [13:46:26]ExternCall_PrintAddStr [13:46:26]wPrintStart [13:46:26]Write to MH i2c: 01 00 00 BF 20 DF [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 07 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 07 00 BF 20 00 00 00 00 00 FF 0F F4 [13:46:26]RasterBufferAndPrint [13:46:26]line Счет N : (3)272792 [13:46:26]line ИНН: 02508201610067 [13:46:26]line Контрольно-Кассовый Чек [13:46:26]line ПРОДАЖА [13:46:26]line Товар: 48743587 [13:46:27]line Сигареты Winston XStyle Silver [13:46:27]line 1.000 * 140.00 [13:46:27]line = 140.00 [13:46:27]line НДС 12% НСП 1% [13:46:27]line > о реализуемом товаре [13:46:27]line Товар: 46226617 [13:46:27]line Mentos ПВ Нежная Мята 6*100*2г [13:46:27]line 1.000 * 10.00 [13:46:27]line = 10.00 [13:46:27]line НДС 12% НСП 1% [13:46:27]line > о реализуемом товаре [13:46:27]line ИТОГО: 150.00 [13:46:27]line НСП 1% : 1.33 [13:46:27]line НДС 12% : 15.93 [13:46:27]line Наличными: 150.00 [13:46:27]line Безнал.: 0.00 [13:46:27]line Место: АЗС № 133 "Партнер Нефть" [13:46:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:46:27]line СНО: Общий режим [13:46:27]line Чек 142 20.10.2024 13:46 [13:46:27]line Смена: 170 ФФД: 1.0 [13:46:27]line ЗНМ: 0300000020 [13:46:27]line РНМ: 0000000000161154 [13:46:27]line Версия ККМ: v1.0 [13:46:27]line ФМ: 0000000000963323 [13:46:27]line ФД: 73816 [13:46:27]line ФПД: 162694784709606 [13:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134626&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73816&fm=162694784709606&tin=02508201610067®Number=0000000000161154&sum=15000 [13:46:27]line 0 [13:46:27]OFD Sender: Processing packet 73816 [packets to send 15, broken 14] [13:46:27]ProducePacketName [13:46:27]name=ofd_packets/00073816 [13:46:27]OFD Sender: To server: pG, [13:46:27]CommunicateWithHost lk.salyk.kg:30040 [13:46:27]ConnectInit lk.salyk.kg [13:46:27]written 0, free lines is 4095 [13:46:27]Connected sock=10 [13:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 95 01 00 00 EC F9 8D 01 CB A6 5A 03 01 00 03 00 81 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 8E 00 00 00 F4 03 04 00 B2 09 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 20 01 00 35 04 06 00 93 F8 54 D9 73 E6 DD 36 0F 9B 86 54 32 E3 [13:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4F 24 47 00 24 E1 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 39 36 33 33 32 33 10 04 04 00 58 20 01 00 F4 03 04 00 97 B2 14 67 B6 04 01 00 00 3B 73 64 44 41 D6 20 45 [13:46:27]CommunicateWithHost err = 0 [13:46:27]CheckOFDResponse [13:46:27]1017 (14) - 77093643461234 [13:46:27]1041 (16) - 0000000000963323 [13:46:27]1040 (4) - 73816 [13:46:27]1012 (4) - 20.10.2024 07:34 [13:46:27]1206 (1) - 0 [13:46:27]OFD Sender: Remove packet 73816 [13:46:27]ProducePacketName [13:46:27]name=ofd_packets/00073816 [13:46:27]NVStorageDeleteData [13:46:27]Write to MH i2c: 01 00 00 EE 20 0E [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: 01 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: 01 07 00 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: 01 07 00 EE 20 00 00 00 00 00 5B 0C 7C [13:46:27]RasterBufferAndPrint [13:46:27]line [13:46:27]line [13:46:27]line [13:46:27]line [13:46:27]line [13:46:27]written 0, free lines is 3169 [13:46:27]MH_Cut [13:46:27]Write to MH i2c: D1 01 00 F5 20 01 E7 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: D1 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: D1 01 00 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: D1 01 00 F5 20 00 E6 [13:46:27]Write to MH i2c: 01 00 00 F6 20 16 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]OFD Sender: No OFD packet to send [13:46:28]*** Cut start [13:46:28]*** Partial cut [13:46:28]*** CUTSNS_PIN = 1 [13:46:28]*** CUTSNS_PIN = 0 [13:46:28]*** Brake cut motor [13:46:29]Read from MH i2c: 01 [13:46:29]MH_I2C_Read... [13:46:29]*** Stop cut motor [13:46:29]*** Cut end [13:46:29]Read from MH i2c: 01 07 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: 01 07 00 F6 20 00 00 00 00 00 FF 0F 2B [13:46:29]process_action close_receipt done [13:46:29]requested_data is exist [13:46:29]produce_requested_data [13:46:29]requested_item fm.sn is exist - process it [13:46:29]wFMCommunicate request_size=4 [13:46:29]MH_SAM_APDU [13:46:29]CAPDU: 80 11 00 00 [13:46:29]Write to MH i2c: E2 08 00 F7 20 80 11 00 00 00 00 00 00 91 [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 17 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 17 00 F7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DE [13:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:46:29]wFMCommunicate OK [13:46:29]requested_item fd.num is exist - process it [13:46:29]SAM_PROTO_GetFieldsCounters [13:46:29]wFMCommunicate request_size=4 [13:46:29]MH_SAM_APDU [13:46:29]CAPDU: 80 13 00 00 [13:46:29]Write to MH i2c: E2 08 00 F8 20 80 13 00 00 00 00 00 00 94 [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 62 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 62 00 F8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 58 20 01 00 0E 04 04 00 AA 00 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 75 [13:46:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 58 20 01 00 0E 04 04 00 AA 00 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 [13:46:29]wFMCommunicate OK [13:46:29]SAM_PROTO_GetFieldsCounters done [13:46:29]requested_item shift.num is exist - process it [13:46:29]requested_item shift.opened is exist - process it [13:46:29]req_shift_opened [13:46:29]FM_GetShiftState [13:46:29]SAM_PROTO_GetShiftState [13:46:29]wFMCommunicate request_size=4 [13:46:29]MH_SAM_APDU [13:46:29]CAPDU: 80 13 01 00 [13:46:29]Write to MH i2c: E2 08 00 F9 20 80 13 01 00 00 00 00 00 96 [13:46:29]Write i2c OK [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 [13:46:29]MH_I2C_Read... [13:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:29]Read from MH i2c: E2 0E 00 [13:46:29]MH_I2C_Read... [13:46:29]Read from MH i2c: E2 0E 00 F9 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [13:46:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:46:29]wFMCommunicate OK [13:46:29]SAM_PROTO_GetShiftState done [13:46:29]FM_GetShiftState done [13:46:29]req_shift_opened done [13:46:29]requested_item shift.open_date is exist - process it [13:46:29]req_shift_open_date [13:46:29]req_shift_open_date done [13:46:29]produce_requested_data done [13:46:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73816,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:46:29]process_action_free close_receipt [13:46:29]json_value_free [13:46:29]json_value_free done [13:46:29]process_json_proto returns [13:46:29]Send response to host [13:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73816,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:46:29]free response buf [13:46:29]execute_script done [13:46:29]execute_script returns [13:46:29]free content buf [13:46:29]Sock 9.Close socket [13:46:29]Sock 9.Thread stoped [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]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:36]accept exits with 8 [13:55:36]New connection [13:55:36]New thread 3067432292 created [13:55:36]Thread 3067575652 joined [13:55:36]Waiting for new connection... [13:55:36] Sock 8.Parse request [13:55:36]Sock 8.Check first char [13:55:36]Sock 8.First char is OK [13:55:36]request: POST /json_proto HTTP/1.0 [13:55:36]Method: POST [13:55:36]URL: /json_proto [13:55:36]Method is POST - this is cgi request [13:55:36]url: /json_proto [13:55:36]query_string will be loaded in cgi processing [13:55:36]execute_cgi json_proto POST (null) [13:55:36]execute_cgi path=json_proto method=POST [13:55:36]POST find Content-Length [13:55:36]Host: 172.17.44.196:8080 [13:55:36]Content-Length: 678 [13:55:36]Content-Type: application/json [13:55:36] [13:55:36]POST finish read [13:55:36]Found Content-Length = 678 [13:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]execute_script... [13:55: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 : (1)1963016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]POST & json_proto [13:55:36]process_json_proto [13:55:36]json parsed OK: [13:55:36]protocol is kg_v1.0 [13:55:36]action value=close_receipt [13:55:36]process_action close_receipt [13:55:36]cmd_close_receipt [13:55:36]MH_GetDate [13:55:36]Write to MH i2c: F0 00 00 FA 20 09 [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 FA 20 00 DA 0B 15 67 E7 19 F8 65 D0 [13:55:36]GetLastDocTimeStamp 1729431986 [13:55:36]current date 1729432538 [13:55:36]FM_GetShiftState [13:55:36]SAM_PROTO_GetShiftState [13:55:36]wFMCommunicate request_size=4 [13:55:36]MH_SAM_APDU [13:55:36]CAPDU: 80 13 01 00 [13:55:36]Write to MH i2c: E2 08 00 FB 20 80 13 01 00 00 00 00 00 98 [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:36]Read from MH i2c: E2 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 FB 20 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DD [13:55:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:55:36]wFMCommunicate OK [13:55:36]SAM_PROTO_GetShiftState done [13:55:36]FM_GetShiftState done [13:55:36]opened in 1729384303 [13:55:36]opened+sec_in_day 1729470703 [13:55:36]quantity*price = 40006 [13:55:36]sum+1 = 40007 [13:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 143 20.10.2024 13:55 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73817 ФПД: 231907235248113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135538&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73817&fm=231907235248113&tin=02508201610067®Number=0000000000161154&sum=40000 [13:55:37]StoreToDocumentArchive [13:55:37]shift 170 fd 73817 [13:55:37]save to /storage/0170/doc_00073817 [13:55:37]save last doc name /storage/0170/doc_00073817 to /storage/kkm_last_doc_name [13:55:37]save OK [13:55:37]Clear old archive folders... [13:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:37]tlvbuf is 00391190 [13:55:37]SAM_PROTO_ClearQueue [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 09 00 00 [13:55:37]Write to MH i2c: E2 08 00 08 21 80 09 00 00 00 00 00 00 9B [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 08 21 00 90 00 9D [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_ClearQueue done [13:55:37]KKMCreateOFDPacket [13:55:37]OFDProtocolAddRootSTLVToBuf [13:55:37]FM_MakeSignedData [13:55:37]FM_MakeSignedData [13:55:37]SAM_PROTO_SignData [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 01 02 [13:55:37]Write to MH i2c: E2 08 00 09 21 80 0D 01 02 00 00 00 00 A3 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 09 21 00 90 00 9E [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=255 [13:55:37]MH_SAM_APDU [13:55:37]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 DA 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 20 01 00 35 04 06 00 D2 [13:55:37]Write to MH i2c: E2 02 01 0A 21 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 DA 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 20 01 00 35 04 06 00 D2 00 00 DA [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 0A 21 00 90 00 9F [13:55:38]RAPDU: 90 00 [13:55:38]wFMCommunicate OK [13:55:38]wFMCommunicate request_size=10 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 0D 02 02 05 EB 1C 60 B7 F1 [13:55:38]Write to MH i2c: E2 0D 00 0B 21 80 0D 02 02 05 00 EB 1C 60 B7 F1 00 00 BF [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [13:55:38]RAPDU: 90 00 [13:55:38]wFMCommunicate OK [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 0D 03 02 [13:55:38]Write to MH i2c: E2 08 00 0C 21 80 0D 03 02 00 00 00 00 A8 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0B 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0B 00 0C 21 00 28 B7 13 D9 AC A6 30 4E 90 00 44 [13:55:38]RAPDU: 28 B7 13 D9 AC A6 30 4E 90 00 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_SignData done [13:55:38]FM_MakeSignedData done [13:55:38]CreateOFDProtocolMessage [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 11 00 00 [13:55:38]Write to MH i2c: E2 08 00 0D 21 80 11 00 00 00 00 00 00 A8 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 17 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 17 00 0D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [13:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:55:38]wFMCommunicate OK [13:55:38]CreateOFDProtocolMessage done [13:55:38]OFDSenderStorePacket 73817 [13:55:38]StoreOFDPacket docnum=73817 [13:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 89 63 07 01 E4 A9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 DA 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 20 01 00 35 04 06 00 D2 EB 1C 60 B7 F1 28 B7 13 D9 AC A6 30 4E [13:55:38]CheckFolder [13:55:38]dirname=/storage/ofd_packets [13:55:38]CheckFolder done [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00073817 [13:55:38]NVStorageSaveData ofd_packets/00073817 [13:55:38]File name is /storage/ofd_packets/00073817 [13:55:38]Write 301 bytes [13:55:38]NVStorageSaveData done [13:55:38]OFDSenderStorePacket done [13:55:38]KKMCreateOFDPacket done [13:55:38]NVStorageSaveData kkm_last_timestamp [13:55:38]File name is /storage/kkm_last_timestamp [13:55:38]Write 4 bytes [13:55:38]NVStorageSaveData done [13:55:38]ExternCall_PrintAddStr [13:55:38]wPrintStart [13:55:38]Write to MH i2c: 01 00 00 0E 21 2F [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 0E 21 00 00 00 00 00 FF 0F 44 [13:55:38]RasterBufferAndPrint [13:55:38]line Счет N : (1)1963016 [13:55:38]line ИНН: 02508201610067 [13:55:38]line Контрольно-Кассовый Чек [13:55:38]line ПРОДАЖА [13:55:38]line ТРК (МРК, ГНК) : 63 [13:55:38]line Товар: 2710124130 [13:55:38]line Аи-92-К-5 [13:55:38]line 5.980 * 66.90 [13:55:38]line = 400.06 [13:55:38]line НДС 12% НСП 1% [13:55:38]line > о реализуемом товаре [13:55:38]line ОКРУГЛЕНИЕ: -0.06 [13:55:38]line ИТОГО: 400.00 [13:55:38]line Внесено: 400.00 [13:55:38]line СДАЧА: 0.00 [13:55:38]line НСП 1% : 3.54 [13:55:38]line НДС 12% : 42.48 [13:55:38]line Наличными: 400.00 [13:55:38]line Безнал.: 0.00 [13:55:38]line Место: АЗС № 133 "Партнер Нефть" [13:55:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:55:38]line СНО: Общий режим [13:55:38]line Чек 143 20.10.2024 13:55 [13:55:38]line Смена: 170 ФФД: 1.0 [13:55:38]line ЗНМ: 0300000020 [13:55:38]line РНМ: 0000000000161154 [13:55:38]line Версия ККМ: v1.0 [13:55:38]line ФМ: 0000000000963323 [13:55:38]line ФД: 73817 [13:55:38]line ФПД: 231907235248113 [13:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135538&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73817&fm=231907235248113&tin=02508201610067®Number=0000000000161154&sum=40000 [13:55:38]OFD Sender: Processing packet 73817 [packets to send 15, broken 14] [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00073817 [13:55:38]OFD Sender: To server: pG, [13:55:38]CommunicateWithHost lk.salyk.kg:30040 [13:55:38]ConnectInit lk.salyk.kg [13:55:38]written 0, free lines is 4095 [13:55:38]Connected sock=10 [13:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 89 63 07 01 E4 A9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 DA 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 20 01 00 35 04 06 00 D2 EB 1C 60 B7 F1 28 B7 13 D9 AC A6 30 4E [13:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7C 06 47 00 54 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 39 36 33 33 32 33 10 04 04 00 59 20 01 00 F4 03 04 00 BF B4 14 67 B6 04 01 00 00 28 9E 97 C1 74 53 B7 27 [13:55:38]CommunicateWithHost err = 0 [13:55:38]CheckOFDResponse [13:55:38]1017 (14) - 77093643461234 [13:55:38]1041 (16) - 0000000000963323 [13:55:38]1040 (4) - 73817 [13:55:38]1012 (4) - 20.10.2024 07:43 [13:55:38]1206 (1) - 0 [13:55:38]OFD Sender: Remove packet 73817 [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00073817 [13:55:38]NVStorageDeleteData [13:55:39]Write to MH i2c: 01 00 00 38 21 59 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: 01 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: 01 07 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: 01 07 00 38 21 00 00 00 00 00 B7 0C 23 [13:55:39]RasterBufferAndPrint [13:55:39]line [13:55:39]line [13:55:39]line [13:55:39]line [13:55:39]line [13:55:39]written 0, free lines is 3259 [13:55:39]MH_Cut [13:55:39]Write to MH i2c: D1 01 00 3F 21 01 32 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: D1 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: D1 01 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: D1 01 00 3F 21 00 31 [13:55:39]Write to MH i2c: 01 00 00 40 21 61 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]OFD Sender: No OFD packet to send [13:55:39]*** Cut start [13:55:39]*** Partial cut [13:55:39]*** CUTSNS_PIN = 1 [13:55:39]*** CUTSNS_PIN = 0 [13:55:40]*** Brake cut motor [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]*** Stop cut motor [13:55:40]*** Cut end [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 FF 0F 76 [13:55:40]process_action close_receipt done [13:55:40]requested_data is exist [13:55:40]produce_requested_data [13:55:40]requested_item fm.sn is exist - process it [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 11 00 00 [13:55:40]Write to MH i2c: E2 08 00 41 21 80 11 00 00 00 00 00 00 DC [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 41 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 29 [13:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:55:40]wFMCommunicate OK [13:55:40]requested_item fd.num is exist - process it [13:55:40]SAM_PROTO_GetFieldsCounters [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 13 00 00 [13:55:40]Write to MH i2c: E2 08 00 42 21 80 13 00 00 00 00 00 00 DF [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 62 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 62 00 42 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 59 20 01 00 0E 04 04 00 AA 00 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 C4 [13:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 59 20 01 00 0E 04 04 00 AA 00 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 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_GetFieldsCounters done [13:55:40]requested_item shift.num is exist - process it [13:55:40]requested_item shift.opened is exist - process it [13:55:40]req_shift_opened [13:55:40]FM_GetShiftState [13:55:40]SAM_PROTO_GetShiftState [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 13 01 00 [13:55:40]Write to MH i2c: E2 08 00 43 21 80 13 01 00 00 00 00 00 E1 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0E 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0E 00 43 21 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 26 [13:55:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_GetShiftState done [13:55:40]FM_GetShiftState done [13:55:40]req_shift_opened done [13:55:40]requested_item shift.open_date is exist - process it [13:55:40]req_shift_open_date [13:55:40]req_shift_open_date done [13:55:40]produce_requested_data done [13:55:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73817,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:55:40]process_action_free close_receipt [13:55:40]json_value_free [13:55:40]json_value_free done [13:55:40]process_json_proto returns [13:55:40]Send response to host [13:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73817,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:55:40]free response buf [13:55:40]execute_script done [13:55:40]execute_script returns [13:55:40]free content buf [13:55:40]Sock 8.Close socket [13:55:40]Sock 8.Thread stoped [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:07]accept exits with 9 [13:56:07]New connection [13:56:07]New thread 3067575652 created [13:56:07]Thread 3067432292 joined [13:56:07]Waiting for new connection... [13:56:07] Sock 9.Parse request [13:56:07]Sock 9.Check first char [13:56:07]Sock 9.First char is OK [13:56:07]request: POST /json_proto HTTP/1.0 [13:56:07]Method: POST [13:56:07]URL: /json_proto [13:56:07]Method is POST - this is cgi request [13:56:07]url: /json_proto [13:56:07]query_string will be loaded in cgi processing [13:56:07]execute_cgi json_proto POST (null) [13:56:07]execute_cgi path=json_proto method=POST [13:56:07]POST find Content-Length [13:56:07]Host: 172.17.44.196:8080 [13:56:07]Content-Length: 680 [13:56:07]Content-Type: application/json [13:56:07] [13:56:07]POST finish read [13:56:07]Found Content-Length = 680 [13:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:56:07]execute_script... [13:56: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 : (1)1963017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:56:07]POST & json_proto [13:56:07]process_json_proto [13:56:07]json parsed OK: [13:56:07]protocol is kg_v1.0 [13:56:07]action value=close_receipt [13:56:07]process_action close_receipt [13:56:07]cmd_close_receipt [13:56:07]MH_GetDate [13:56:07]Write to MH i2c: F0 00 00 44 21 54 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: F0 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: F0 09 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: F0 09 00 44 21 00 F9 0B 15 67 E7 19 F8 65 3A [13:56:07]GetLastDocTimeStamp 1729432538 [13:56:07]current date 1729432569 [13:56:07]FM_GetShiftState [13:56:07]SAM_PROTO_GetShiftState [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 13 01 00 [13:56:07]Write to MH i2c: E2 08 00 45 21 80 13 01 00 00 00 00 00 E3 [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 0E 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 0E 00 45 21 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 28 [13:56:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:56:07]wFMCommunicate OK [13:56:07]SAM_PROTO_GetShiftState done [13:56:07]FM_GetShiftState done [13:56:07]opened in 1729384303 [13:56:07]opened+sec_in_day 1729470703 [13:56:07]quantity*price = 100050 [13:56:07]sum+1 = 100052 [13:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 144 20.10.2024 13:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73818 ФПД: 99866760672157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135609&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73818&fm=99866760672157&tin=02508201610067®Number=0000000000161154&sum=100000 [13:56:08]StoreToDocumentArchive [13:56:08]shift 170 fd 73818 [13:56:08]save to /storage/0170/doc_00073818 [13:56:08]save last doc name /storage/0170/doc_00073818 to /storage/kkm_last_doc_name [13:56:08]save OK [13:56:08]Clear old archive folders... [13:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:56:08]tlvbuf is B6FF04F0 [13:56:08]SAM_PROTO_ClearQueue [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 09 00 00 [13:56:08]Write to MH i2c: E2 08 00 52 21 80 09 00 00 00 00 00 00 E5 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 52 21 00 90 00 E7 [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]SAM_PROTO_ClearQueue done [13:56:08]KKMCreateOFDPacket [13:56:08]OFDProtocolAddRootSTLVToBuf [13:56:08]FM_MakeSignedData [13:56:08]FM_MakeSignedData [13:56:08]SAM_PROTO_SignData [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 01 02 [13:56:08]Write to MH i2c: E2 08 00 53 21 80 0D 01 02 00 00 00 00 ED [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 53 21 00 90 00 E8 [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=255 [13:56:08]MH_SAM_APDU [13:56:08]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 90 00 00 00 F4 03 04 00 F9 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 20 01 00 35 04 06 00 5A D4 0A CB [13:56:08]Write to MH i2c: E2 02 01 54 21 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 90 00 00 00 F4 03 04 00 F9 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 20 01 00 35 04 06 00 5A D4 0A CB 00 00 9D [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=7 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 02 02 02 73 9D [13:56:08]Write to MH i2c: E2 0A 00 55 21 80 0D 02 02 02 00 73 9D 00 00 04 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 03 02 [13:56:08]Write to MH i2c: E2 08 00 56 21 80 0D 03 02 00 00 00 00 F2 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0B 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0B 00 56 21 00 5C A3 22 70 F4 0A 0D 94 90 00 23 [13:56:08]RAPDU: 5C A3 22 70 F4 0A 0D 94 90 00 [13:56:08]wFMCommunicate OK [13:56:08]SAM_PROTO_SignData done [13:56:08]FM_MakeSignedData done [13:56:08]CreateOFDProtocolMessage [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 11 00 00 [13:56:08]Write to MH i2c: E2 08 00 57 21 80 11 00 00 00 00 00 00 F2 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 17 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 17 00 57 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [13:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:56:08]wFMCommunicate OK [13:56:08]CreateOFDProtocolMessage done [13:56:08]OFDSenderStorePacket 73818 [13:56:08]StoreOFDPacket docnum=73818 [13:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 DD CE 04 01 1E 72 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 90 00 00 00 F4 03 04 00 F9 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 20 01 00 35 04 06 00 5A D4 0A CB 73 9D 5C A3 22 70 F4 0A 0D 94 [13:56:08]CheckFolder [13:56:08]dirname=/storage/ofd_packets [13:56:08]CheckFolder done [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00073818 [13:56:08]NVStorageSaveData ofd_packets/00073818 [13:56:08]File name is /storage/ofd_packets/00073818 [13:56:08]Write 298 bytes [13:56:08]NVStorageSaveData done [13:56:08]OFDSenderStorePacket done [13:56:08]KKMCreateOFDPacket done [13:56:08]NVStorageSaveData kkm_last_timestamp [13:56:08]File name is /storage/kkm_last_timestamp [13:56:08]Write 4 bytes [13:56:08]NVStorageSaveData done [13:56:08]ExternCall_PrintAddStr [13:56:08]wPrintStart [13:56:08]Write to MH i2c: 01 00 00 58 21 79 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 58 21 00 00 00 00 00 FF 0F 8E [13:56:08]RasterBufferAndPrint [13:56:08]line Счет N : (1)1963017 [13:56:08]line ИНН: 02508201610067 [13:56:08]line Контрольно-Кассовый Чек [13:56:08]line ПРОДАЖА [13:56:08]line ТРК (МРК, ГНК) : 41 [13:56:08]line Товар: 2710194210 [13:56:08]line ДТ-К-5 [13:56:08]line 13.130 * 76.20 [13:56:08]line = 1000.51 [13:56:08]line НДС 12% НСП 1% [13:56:08]line > о реализуемом товаре [13:56:08]line ОКРУГЛЕНИЕ: -0.51 [13:56:08]line ИТОГО: 1000.00 [13:56:08]line Внесено: 1000.00 [13:56:08]line СДАЧА: 0.00 [13:56:08]line НСП 1% : 8.85 [13:56:08]line НДС 12% : 106.25 [13:56:08]line Наличными: 1000.00 [13:56:08]line Безнал.: 0.00 [13:56:08]line Место: АЗС № 133 "Партнер Нефть" [13:56:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:56:08]line СНО: Общий режим [13:56:08]line Чек 144 20.10.2024 13:56 [13:56:08]line Смена: 170 ФФД: 1.0 [13:56:08]line ЗНМ: 0300000020 [13:56:08]line РНМ: 0000000000161154 [13:56:08]line Версия ККМ: v1.0 [13:56:08]line ФМ: 0000000000963323 [13:56:08]line ФД: 73818 [13:56:08]line ФПД: 99866760672157 [13:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135609&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73818&fm=99866760672157&tin=02508201610067®Number=0000000000161154&sum=100000 [13:56:09]OFD Sender: Processing packet 73818 [packets to send 15, broken 14] [13:56:09]ProducePacketName [13:56:09]name=ofd_packets/00073818 [13:56:09]OFD Sender: To server: pG, [13:56:09]CommunicateWithHost lk.salyk.kg:30040 [13:56:09]ConnectInit lk.salyk.kg [13:56:09]written 0, free lines is 4095 [13:56:09]Connected sock=11 [13:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 DD CE 04 01 1E 72 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 90 00 00 00 F4 03 04 00 F9 0B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 20 01 00 35 04 06 00 5A D4 0A CB 73 9D 5C A3 22 70 F4 0A 0D 94 [13:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 7C 47 00 58 18 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 39 36 33 33 32 33 10 04 04 00 5A 20 01 00 F4 03 04 00 DD B4 14 67 B6 04 01 00 00 61 4E F8 5F BC 65 5A 36 [13:56:09]CommunicateWithHost err = 0 [13:56:09]CheckOFDResponse [13:56:09]1017 (14) - 77093643461234 [13:56:09]1041 (16) - 0000000000963323 [13:56:09]1040 (4) - 73818 [13:56:09]1012 (4) - 20.10.2024 07:44 [13:56:09]1206 (1) - 0 [13:56:09]OFD Sender: Remove packet 73818 [13:56:09]ProducePacketName [13:56:09]name=ofd_packets/00073818 [13:56:09]NVStorageDeleteData [13:56:09]Write to MH i2c: 01 00 00 82 21 A3 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 82 21 00 00 00 00 00 BB 0C 71 [13:56:09]RasterBufferAndPrint [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]written 0, free lines is 3265 [13:56:09]MH_Cut [13:56:09]Write to MH i2c: D1 01 00 89 21 01 7C [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 01 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 01 00 89 21 00 7B [13:56:09]Write to MH i2c: 01 00 00 8A 21 AB [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:10]OFD Sender: No OFD packet to send [13:56:10]*** Cut start [13:56:10]*** Partial cut [13:56:10]*** CUTSNS_PIN = 1 [13:56:10]*** CUTSNS_PIN = 0 [13:56:10]*** Brake cut motor [13:56:11]Read from MH i2c: 01 [13:56:11]MH_I2C_Read... [13:56:11]*** Stop cut motor [13:56:11]*** Cut end [13:56:11]Read from MH i2c: 01 07 00 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: 01 07 00 8A 21 00 00 00 00 00 FF 0F C0 [13:56:11]process_action close_receipt done [13:56:11]requested_data is exist [13:56:11]produce_requested_data [13:56:11]requested_item fm.sn is exist - process it [13:56:11]wFMCommunicate request_size=4 [13:56:11]MH_SAM_APDU [13:56:11]CAPDU: 80 11 00 00 [13:56:11]Write to MH i2c: E2 08 00 8B 21 80 11 00 00 00 00 00 00 26 [13:56:11]Write i2c OK [13:56:11]MH_I2C_Read... [13:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:11]Read from MH i2c: E2 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 17 00 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 17 00 8B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [13:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:56:11]wFMCommunicate OK [13:56:11]requested_item fd.num is exist - process it [13:56:11]SAM_PROTO_GetFieldsCounters [13:56:11]wFMCommunicate request_size=4 [13:56:11]MH_SAM_APDU [13:56:11]CAPDU: 80 13 00 00 [13:56:11]Write to MH i2c: E2 08 00 8C 21 80 13 00 00 00 00 00 00 29 [13:56:11]Write i2c OK [13:56:11]MH_I2C_Read... [13:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:11]Read from MH i2c: E2 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 62 00 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 62 00 8C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [13:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:11]wFMCommunicate OK [13:56:11]SAM_PROTO_GetFieldsCounters done [13:56:11]requested_item shift.num is exist - process it [13:56:11]requested_item shift.opened is exist - process it [13:56:11]req_shift_opened [13:56:11]FM_GetShiftState [13:56:11]SAM_PROTO_GetShiftState [13:56:11]wFMCommunicate request_size=4 [13:56:11]MH_SAM_APDU [13:56:11]CAPDU: 80 13 01 00 [13:56:11]Write to MH i2c: E2 08 00 8D 21 80 13 01 00 00 00 00 00 2B [13:56:11]Write i2c OK [13:56:11]MH_I2C_Read... [13:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:11]Read from MH i2c: E2 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 0E 00 [13:56:11]MH_I2C_Read... [13:56:11]Read from MH i2c: E2 0E 00 8D 21 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 70 [13:56:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [13:56:11]wFMCommunicate OK [13:56:11]SAM_PROTO_GetShiftState done [13:56:11]FM_GetShiftState done [13:56:11]req_shift_opened done [13:56:11]requested_item shift.open_date is exist - process it [13:56:11]req_shift_open_date [13:56:11]req_shift_open_date done [13:56:11]produce_requested_data done [13:56:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73818,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [13:56:11]process_action_free close_receipt [13:56:11]json_value_free [13:56:11]json_value_free done [13:56:11]process_json_proto returns [13:56:11]Send response to host [13:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73818,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [13:56:11]free response buf [13:56:11]execute_script done [13:56:11]execute_script returns [13:56:11]free content buf [13:56:11]Sock 9.Close socket [13:56:11]Sock 9.Thread stoped [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]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:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:12]accept exits with 8 [14:02:12]New connection [14:02:12]New thread 3067432292 created [14:02:12]Thread 3067575652 joined [14:02:12]Waiting for new connection... [14:02:12] Sock 8.Parse request [14:02:12]Sock 8.Check first char [14:02:12]Sock 8.First char is OK [14:02:12]request: POST /json_proto HTTP/1.0 [14:02:12]Method: POST [14:02:12]URL: /json_proto [14:02:12]Method is POST - this is cgi request [14:02:12]url: /json_proto [14:02:12]query_string will be loaded in cgi processing [14:02:12]execute_cgi json_proto POST (null) [14:02:12]execute_cgi path=json_proto method=POST [14:02:12]POST find Content-Length [14:02:12]Host: 172.17.44.196:8080 [14:02:12]Content-Length: 1671 [14:02:12]Content-Type: application/json [14:02:12] [14:02:12]POST finish read [14:02:12]Found Content-Length = 1671 [14:02:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272793", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: Mbank", "payments": [ { "type": 1, "sum" : 710.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:12]execute_script... [14:02: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)272793", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: Mbank", "payments": [ { "type": 1, "sum" : 710.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:12]POST & json_proto [14:02:12]process_json_proto [14:02:12]json parsed OK: [14:02:12]protocol is kg_v1.0 [14:02:12]action value=close_receipt [14:02:12]process_action close_receipt [14:02:12]cmd_close_receipt [14:02:12]MH_GetDate [14:02:12]Write to MH i2c: F0 00 00 8E 21 9E [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: F0 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: F0 09 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: F0 09 00 8E 21 00 66 0D 15 67 E7 19 F8 65 F3 [14:02:12]GetLastDocTimeStamp 1729432569 [14:02:12]current date 1729432934 [14:02:12]FM_GetShiftState [14:02:12]SAM_PROTO_GetShiftState [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 01 00 [14:02:12]Write to MH i2c: E2 08 00 8F 21 80 13 01 00 00 00 00 00 2D [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 8F 21 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 72 [14:02:12]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetShiftState done [14:02:12]FM_GetShiftState done [14:02:12]opened in 1729384303 [14:02:12]opened+sec_in_day 1729470703 [14:02:12]quantity*price = 18000 [14:02:12]sum+1 = 18001 [14:02:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47802995 Сигареты Winston XS Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005024 Миндаль Mike жареный соленый 50г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005031 Фисташки Mike жареные соленые 50г 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 710.00 НСП 1% : 6.28 НДС 12% : 75.39 Наличными: 0.00 Безнал.: 710.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 145 20.10.2024 14:02 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73819 ФПД: 22897681346919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140214&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73819&fm=22897681346919&tin=02508201610067®Number=0000000000161154&sum=71000 0 [14:02:13]StoreToDocumentArchive [14:02:13]shift 170 fd 73819 [14:02:13]save to /storage/0170/doc_00073819 [14:02:13]save last doc name /storage/0170/doc_00073819 to /storage/kkm_last_doc_name [14:02:13]save OK [14:02:13]Clear old archive folders... [14:02:13]ProcessDocumentItem done err = 0, tmpTLVsize=647 [14:02:13]tlvbuf is 00329790 [14:02:13]SAM_PROTO_ClearQueue [14:02:13]wFMCommunicate request_size=4 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 09 00 00 [14:02:13]Write to MH i2c: E2 08 00 9C 21 80 09 00 00 00 00 00 00 2F [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 9C 21 00 90 00 31 [14:02:13]RAPDU: 90 00 [14:02:13]wFMCommunicate OK [14:02:13]SAM_PROTO_ClearQueue done [14:02:13]KKMCreateOFDPacket [14:02:13]OFDProtocolAddRootSTLVToBuf [14:02:13]FM_MakeSignedData [14:02:13]FM_MakeSignedData [14:02:13]SAM_PROTO_SignData [14:02:13]wFMCommunicate request_size=4 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 0D 01 02 [14:02:13]Write to MH i2c: E2 08 00 9D 21 80 0D 01 02 00 00 00 00 37 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 9D 21 00 90 00 32 [14:02:13]RAPDU: 90 00 [14:02:13]wFMCommunicate OK [14:02:13]wFMCommunicate request_size=255 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 0D 02 02 FA 03 00 87 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 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 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 [14:02:13]Write to MH i2c: E2 02 01 9E 21 80 0D 02 02 FA 00 03 00 87 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 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 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 00 00 81 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [14:02:14]RAPDU: 90 00 [14:02:14]wFMCommunicate OK [14:02:14]wFMCommunicate request_size=255 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 0D 02 02 FA 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 58 15 01 00 00 00 EB 03 26 00 [14:02:14]Write to MH i2c: E2 02 01 9F 21 80 0D 02 02 FA 00 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 58 15 01 00 00 00 EB 03 26 00 00 00 A6 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 9F 21 00 90 00 34 [14:02:14]RAPDU: 90 00 [14:02:14]wFMCommunicate OK [14:02:14]wFMCommunicate request_size=156 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 15 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 66 0D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 20 01 00 35 04 06 00 14 D3 48 29 B1 67 [14:02:14]Write to MH i2c: E2 9F 00 A0 21 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 15 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 66 0D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 20 01 00 35 04 06 00 14 D3 48 29 B1 67 00 00 0F [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [14:02:14]RAPDU: 90 00 [14:02:14]wFMCommunicate OK [14:02:14]wFMCommunicate request_size=4 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 0D 03 02 [14:02:14]Write to MH i2c: E2 08 00 A1 21 80 0D 03 02 00 00 00 00 3D [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 0B 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 0B 00 A1 21 00 BC A4 5E 1B A0 B2 48 0A 90 00 BB [14:02:14]RAPDU: BC A4 5E 1B A0 B2 48 0A 90 00 [14:02:14]wFMCommunicate OK [14:02:14]SAM_PROTO_SignData done [14:02:14]FM_MakeSignedData done [14:02:14]CreateOFDProtocolMessage [14:02:14]wFMCommunicate request_size=4 [14:02:14]MH_SAM_APDU [14:02:14]CAPDU: 80 11 00 00 [14:02:14]Write to MH i2c: E2 08 00 A2 21 80 11 00 00 00 00 00 00 3D [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:14]Read from MH i2c: E2 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 17 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: E2 17 00 A2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [14:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:02:14]wFMCommunicate OK [14:02:14]CreateOFDProtocolMessage done [14:02:14]OFDSenderStorePacket 73819 [14:02:14]StoreOFDPacket docnum=73819 [14:02:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 02 00 00 D6 94 93 02 8C BC 5A 03 01 00 03 00 87 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 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 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 15 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 66 0D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 20 01 00 35 04 06 00 14 D3 48 29 B1 67 BC A4 5E 1B A0 B2 48 0A [14:02:14]CheckFolder [14:02:14]dirname=/storage/ofd_packets [14:02:14]CheckFolder done [14:02:14]ProducePacketName [14:02:14]name=ofd_packets/00073819 [14:02:14]NVStorageSaveData ofd_packets/00073819 [14:02:14]File name is /storage/ofd_packets/00073819 [14:02:14]Write 697 bytes [14:02:14]NVStorageSaveData done [14:02:14]OFDSenderStorePacket done [14:02:14]KKMCreateOFDPacket done [14:02:14]NVStorageSaveData kkm_last_timestamp [14:02:14]File name is /storage/kkm_last_timestamp [14:02:14]Write 4 bytes [14:02:14]NVStorageSaveData done [14:02:14]ExternCall_PrintAddStr [14:02:14]wPrintStart [14:02:14]Write to MH i2c: 01 00 00 A3 21 C4 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: 01 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: 01 07 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: 01 07 00 A3 21 00 00 00 00 00 FF 0F D9 [14:02:14]RasterBufferAndPrint [14:02:14]line Счет N : (3)272793 [14:02:14]line ИНН: 02508201610067 [14:02:14]line Контрольно-Кассовый Чек [14:02:14]line ПРОДАЖА [14:02:14]line Товар: 4650243871842 [14:02:14]line Gorilla эн нап 0,275 л МАНГО КОКОС [14:02:14]line 2.000 * 90.00 [14:02:14]line = 180.00 [14:02:14]line НДС 12% НСП 1% [14:02:14]line > о реализуемом товаре [14:02:14]line Товар: 47802995 [14:02:14]line Сигареты Winston XS Silver [14:02:14]line 1.000 * 140.00 [14:02:14]line = 140.00 [14:02:14]line НДС 12% НСП 1% [14:02:14]line > о реализуемом товаре [14:02:14]line Товар: 4700321005024 [14:02:14]line Миндаль Mike жареный соленый 50г [14:02:14]line 1.000 * 130.00 [14:02:14]line = 130.00 [14:02:14]line НДС 12% НСП 1% [14:02:14]line > о реализуемом товаре [14:02:14]line Товар: 4700321005031 [14:02:14]line Фисташки Mike жареные соленые 50г [14:02:14]line 2.000 * 130.00 [14:02:14]line = 260.00 [14:02:14]line НДС 12% НСП 1% [14:02:14]line > о реализуемом товаре [14:02:14]line ИТОГО: 710.00 [14:02:14]line НСП 1% : 6.28 [14:02:14]line НДС 12% : 75.39 [14:02:14]line Наличными: 0.00 [14:02:14]line Безнал.: 710.00 [14:02:14]line Место: АЗС № 133 "Партнер Нефть" [14:02:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:02:14]line СНО: Общий режим [14:02:14]line Чек 145 20.10.2024 14:02 [14:02:14]line Смена: 170 ФФД: 1.0 [14:02:14]line ЗНМ: 0300000020 [14:02:14]line РНМ: 0000000000161154 [14:02:14]line Версия ККМ: v1.0 [14:02:14]line Платежная система: Mbank [14:02:14]line ФМ: 0000000000963323 [14:02:14]line ФД: 73819 [14:02:14]line ФПД: 22897681346919 [14:02:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140214&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73819&fm=22897681346919&tin=02508201610067®Number=0000000000161154&sum=71000 [14:02:14]line 0 [14:02:14]OFD Sender: Processing packet 73819 [packets to send 15, broken 14] [14:02:14]ProducePacketName [14:02:14]name=ofd_packets/00073819 [14:02:14]OFD Sender: To server: pG, [14:02:14]CommunicateWithHost lk.salyk.kg:30040 [14:02:14]ConnectInit lk.salyk.kg [14:02:14]written 0, free lines is 4095 [14:02:15]Connected sock=10 [14:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 02 00 00 D6 94 93 02 8C BC 5A 03 01 00 03 00 87 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 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 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 15 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 66 0D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 20 01 00 35 04 06 00 14 D3 48 29 B1 67 BC A4 5E 1B A0 B2 48 0A [14:02:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E8 26 47 00 28 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 39 36 33 33 32 33 10 04 04 00 5B 20 01 00 F4 03 04 00 4B B6 14 67 B6 04 01 00 00 BA AB 4D CA 43 D9 A1 AF [14:02:15]CommunicateWithHost err = 0 [14:02:15]CheckOFDResponse [14:02:15]1017 (14) - 77093643461234 [14:02:15]1041 (16) - 0000000000963323 [14:02:15]1040 (4) - 73819 [14:02:15]1012 (4) - 20.10.2024 07:50 [14:02:15]1206 (1) - 0 [14:02:15]OFD Sender: Remove packet 73819 [14:02:15]ProducePacketName [14:02:15]name=ofd_packets/00073819 [14:02:15]NVStorageDeleteData [14:02:15]Write to MH i2c: 01 00 00 E0 21 01 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: 01 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: 01 07 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: 01 07 00 E0 21 00 00 00 00 00 64 0B 77 [14:02:15]RasterBufferAndPrint [14:02:15]line [14:02:15]line [14:02:15]line [14:02:15]line [14:02:15]line [14:02:15]written 0, free lines is 2924 [14:02:15]MH_Cut [14:02:15]Write to MH i2c: D1 01 00 E7 21 01 DA [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: D1 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: D1 01 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: D1 01 00 E7 21 00 D9 [14:02:15]Write to MH i2c: 01 00 00 E8 21 09 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]OFD Sender: No OFD packet to send [14:02:16]*** Cut start [14:02:16]*** Partial cut [14:02:16]*** CUTSNS_PIN = 1 [14:02:16]*** CUTSNS_PIN = 0 [14:02:17]*** Brake cut motor [14:02:17]Read from MH i2c: 01 [14:02:17]MH_I2C_Read... [14:02:17]*** Stop cut motor [14:02:17]*** Cut end [14:02:17]Read from MH i2c: 01 07 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: 01 07 00 E8 21 00 00 00 00 00 FF 0F 1E [14:02:17]process_action close_receipt done [14:02:17]requested_data is exist [14:02:17]produce_requested_data [14:02:17]requested_item fm.sn is exist - process it [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 11 00 00 [14:02:17]Write to MH i2c: E2 08 00 E9 21 80 11 00 00 00 00 00 00 84 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 17 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 17 00 E9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [14:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:02:17]wFMCommunicate OK [14:02:17]requested_item fd.num is exist - process it [14:02:17]SAM_PROTO_GetFieldsCounters [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 13 00 00 [14:02:17]Write to MH i2c: E2 08 00 EA 21 80 13 00 00 00 00 00 00 87 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 62 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 62 00 EA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [14:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:17]wFMCommunicate OK [14:02:17]SAM_PROTO_GetFieldsCounters done [14:02:17]requested_item shift.num is exist - process it [14:02:17]requested_item shift.opened is exist - process it [14:02:17]req_shift_opened [14:02:17]FM_GetShiftState [14:02:17]SAM_PROTO_GetShiftState [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 13 01 00 [14:02:17]Write to MH i2c: E2 08 00 EB 21 80 13 01 00 00 00 00 00 89 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 0E 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 0E 00 EB 21 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CE [14:02:17]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:02:17]wFMCommunicate OK [14:02:17]SAM_PROTO_GetShiftState done [14:02:17]FM_GetShiftState done [14:02:17]req_shift_opened done [14:02:17]requested_item shift.open_date is exist - process it [14:02:17]req_shift_open_date [14:02:17]req_shift_open_date done [14:02:17]produce_requested_data done [14:02:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73819,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:02:17]process_action_free close_receipt [14:02:17]json_value_free [14:02:17]json_value_free done [14:02:17]process_json_proto returns [14:02:17]Send response to host [14:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73819,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:02:17]free response buf [14:02:17]execute_script done [14:02:17]execute_script returns [14:02:17]free content buf [14:02:17]Sock 8.Close socket [14:02:17]Sock 8.Thread stoped [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]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]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:02]accept exits with 9 [14:11:02]New connection [14:11:02]New thread 3067575652 created [14:11:02]Thread 3067432292 joined [14:11:02]Waiting for new connection... [14:11:02] Sock 9.Parse request [14:11:02]Sock 9.Check first char [14:11:02]Sock 9.First char is OK [14:11:02]request: POST /json_proto HTTP/1.0 [14:11:02]Method: POST [14:11:02]URL: /json_proto [14:11:02]Method is POST - this is cgi request [14:11:02]url: /json_proto [14:11:02]query_string will be loaded in cgi processing [14:11:02]execute_cgi json_proto POST (null) [14:11:02]execute_cgi path=json_proto method=POST [14:11:02]POST find Content-Length [14:11:02]Host: 172.17.44.196:8080 [14:11:02]Content-Length: 785 [14:11:02]Content-Type: application/json [14:11:02] [14:11:02]POST finish read [14:11:02]Found Content-Length = 785 [14:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272794", "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" : 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: Mbank", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:02]execute_script... [14:11: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)272794", "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" : 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: Mbank", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:02]POST & json_proto [14:11:02]process_json_proto [14:11:02]json parsed OK: [14:11:02]protocol is kg_v1.0 [14:11:02]action value=close_receipt [14:11:02]process_action close_receipt [14:11:02]cmd_close_receipt [14:11:02]MH_GetDate [14:11:02]Write to MH i2c: F0 00 00 EC 21 FC [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: F0 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: F0 09 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: F0 09 00 EC 21 00 78 0F 15 67 E7 19 F8 65 65 [14:11:02]GetLastDocTimeStamp 1729432934 [14:11:02]current date 1729433464 [14:11:02]FM_GetShiftState [14:11:02]SAM_PROTO_GetShiftState [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 01 00 [14:11:02]Write to MH i2c: E2 08 00 ED 21 80 13 01 00 00 00 00 00 8B [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0E 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0E 00 ED 21 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D0 [14:11:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:11:02]wFMCommunicate OK [14:11:02]SAM_PROTO_GetShiftState done [14:11:02]FM_GetShiftState done [14:11:02]opened in 1729384303 [14:11:02]opened+sec_in_day 1729470703 [14:11:02]quantity*price = 12500 [14:11:02]sum+1 = 12501 [14:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 146 20.10.2024 14:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73820 ФПД: 240869801252822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141104&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73820&fm=240869801252822&tin=02508201610067®Number=0000000000161154&sum=12500 0 [14:11:03]StoreToDocumentArchive [14:11:03]shift 170 fd 73820 [14:11:03]save to /storage/0170/doc_00073820 [14:11:03]save last doc name /storage/0170/doc_00073820 to /storage/kkm_last_doc_name [14:11:03]save OK [14:11:03]Clear old archive folders... [14:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:11:03]tlvbuf is 003E6BE0 [14:11:03]SAM_PROTO_ClearQueue [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 09 00 00 [14:11:03]Write to MH i2c: E2 08 00 FA 21 80 09 00 00 00 00 00 00 8D [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [14:11:03]RAPDU: 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_ClearQueue done [14:11:03]KKMCreateOFDPacket [14:11:03]OFDProtocolAddRootSTLVToBuf [14:11:03]FM_MakeSignedData [14:11:03]FM_MakeSignedData [14:11:03]SAM_PROTO_SignData [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 0D 01 02 [14:11:03]Write to MH i2c: E2 08 00 FB 21 80 0D 01 02 00 00 00 00 95 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [14:11:03]RAPDU: 90 00 [14:11:03]wFMCommunicate OK [14:11:03]wFMCommunicate request_size=255 [14:11:03]MH_SAM_APDU [14:11:03]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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 78 0F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [14:11:03]Write to MH i2c: E2 02 01 FC 21 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 78 0F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 79 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:04]Read from MH i2c: E2 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 03 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [14:11:04]RAPDU: 90 00 [14:11:04]wFMCommunicate OK [14:11:04]wFMCommunicate request_size=37 [14:11:04]MH_SAM_APDU [14:11:04]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5C 20 01 00 35 04 06 00 DB 11 DE F0 D7 D6 [14:11:04]Write to MH i2c: E2 28 00 FD 21 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5C 20 01 00 35 04 06 00 DB 11 DE F0 D7 D6 00 00 CD [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:04]Read from MH i2c: E2 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 03 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [14:11:04]RAPDU: 90 00 [14:11:04]wFMCommunicate OK [14:11:04]wFMCommunicate request_size=4 [14:11:04]MH_SAM_APDU [14:11:04]CAPDU: 80 0D 03 02 [14:11:04]Write to MH i2c: E2 08 00 FE 21 80 0D 03 02 00 00 00 00 9A [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:04]Read from MH i2c: E2 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 0B 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 0B 00 FE 21 00 4C B4 C9 8A 27 FD 8A 12 90 00 AE [14:11:04]RAPDU: 4C B4 C9 8A 27 FD 8A 12 90 00 [14:11:04]wFMCommunicate OK [14:11:04]SAM_PROTO_SignData done [14:11:04]FM_MakeSignedData done [14:11:04]CreateOFDProtocolMessage [14:11:04]wFMCommunicate request_size=4 [14:11:04]MH_SAM_APDU [14:11:04]CAPDU: 80 11 00 00 [14:11:04]Write to MH i2c: E2 08 00 FF 21 80 11 00 00 00 00 00 00 9A [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:04]Read from MH i2c: E2 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 17 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 17 00 FF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E7 [14:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:11:04]wFMCommunicate OK [14:11:04]CreateOFDProtocolMessage done [14:11:04]OFDSenderStorePacket 73820 [14:11:04]StoreOFDPacket docnum=73820 [14:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 3C D4 22 01 19 A4 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 78 0F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5C 20 01 00 35 04 06 00 DB 11 DE F0 D7 D6 4C B4 C9 8A 27 FD 8A 12 [14:11:04]CheckFolder [14:11:04]dirname=/storage/ofd_packets [14:11:04]CheckFolder done [14:11:04]ProducePacketName [14:11:04]name=ofd_packets/00073820 [14:11:04]NVStorageSaveData ofd_packets/00073820 [14:11:04]File name is /storage/ofd_packets/00073820 [14:11:04]Write 328 bytes [14:11:04]NVStorageSaveData done [14:11:04]OFDSenderStorePacket done [14:11:04]KKMCreateOFDPacket done [14:11:04]NVStorageSaveData kkm_last_timestamp [14:11:04]File name is /storage/kkm_last_timestamp [14:11:04]Write 4 bytes [14:11:04]NVStorageSaveData done [14:11:04]ExternCall_PrintAddStr [14:11:04]wPrintStart [14:11:04]Write to MH i2c: 01 00 00 00 22 22 [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 00 22 00 00 00 00 00 FF 0F 37 [14:11:04]RasterBufferAndPrint [14:11:04]line Счет N : (3)272794 [14:11:04]line ИНН: 02508201610067 [14:11:04]line Контрольно-Кассовый Чек [14:11:04]line ПРОДАЖА [14:11:04]line Товар: 5449000054227 [14:11:04]line Напиток Кока-Кола 1л [14:11:04]line 1.000 * 125.00 [14:11:04]line = 125.00 [14:11:04]line НДС 12% НСП 1% [14:11:04]line > о реализуемом товаре [14:11:04]line ИТОГО: 125.00 [14:11:04]line НСП 1% : 1.11 [14:11:04]line НДС 12% : 13.27 [14:11:04]line Наличными: 0.00 [14:11:04]line Безнал.: 125.00 [14:11:04]line Место: АЗС № 133 "Партнер Нефть" [14:11:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:11:04]line СНО: Общий режим [14:11:04]line Чек 146 20.10.2024 14:11 [14:11:04]line Смена: 170 ФФД: 1.0 [14:11:04]line ЗНМ: 0300000020 [14:11:04]line РНМ: 0000000000161154 [14:11:04]line Версия ККМ: v1.0 [14:11:04]line Платежная система: Mbank [14:11:04]line ФМ: 0000000000963323 [14:11:04]line ФД: 73820 [14:11:04]line ФПД: 240869801252822 [14:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141104&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73820&fm=240869801252822&tin=02508201610067®Number=0000000000161154&sum=12500 [14:11:04]line 0 [14:11:04]OFD Sender: Processing packet 73820 [packets to send 15, broken 14] [14:11:04]ProducePacketName [14:11:04]name=ofd_packets/00073820 [14:11:04]OFD Sender: To server: pG, [14:11:04]CommunicateWithHost lk.salyk.kg:30040 [14:11:04]ConnectInit lk.salyk.kg [14:11:04]written 0, free lines is 4095 [14:11:04]Connected sock=10 [14:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 3C D4 22 01 19 A4 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 78 0F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5C 20 01 00 35 04 06 00 DB 11 DE F0 D7 D6 4C B4 C9 8A 27 FD 8A 12 [14:11:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FB A9 47 00 F2 69 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 39 36 33 33 32 33 10 04 04 00 5C 20 01 00 F4 03 04 00 5D B8 14 67 B6 04 01 00 00 86 EC C7 1B F4 87 53 21 [14:11:04]CommunicateWithHost err = 0 [14:11:04]CheckOFDResponse [14:11:04]1017 (14) - 77093643461234 [14:11:04]1041 (16) - 0000000000963323 [14:11:04]1040 (4) - 73820 [14:11:04]1012 (4) - 20.10.2024 07:59 [14:11:04]1206 (1) - 0 [14:11:04]OFD Sender: Remove packet 73820 [14:11:04]ProducePacketName [14:11:04]name=ofd_packets/00073820 [14:11:04]NVStorageDeleteData [14:11:05]Write to MH i2c: 01 00 00 28 22 4A [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 07 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 DE 0C 3B [14:11:05]RasterBufferAndPrint [14:11:05]line [14:11:05]line [14:11:05]line [14:11:05]line [14:11:05]line [14:11:05]written 0, free lines is 3300 [14:11:05]MH_Cut [14:11:05]Write to MH i2c: D1 01 00 2F 22 01 23 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: D1 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: D1 01 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: D1 01 00 2F 22 00 22 [14:11:05]Write to MH i2c: 01 00 00 30 22 52 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]OFD Sender: No OFD packet to send [14:11:05]*** Cut start [14:11:05]*** Partial cut [14:11:05]*** CUTSNS_PIN = 1 [14:11:06]*** CUTSNS_PIN = 0 [14:11:06]*** Brake cut motor [14:11:06]Read from MH i2c: 01 [14:11:06]MH_I2C_Read... [14:11:06]*** Stop cut motor [14:11:06]*** Cut end [14:11:06]Read from MH i2c: 01 07 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [14:11:06]process_action close_receipt done [14:11:06]requested_data is exist [14:11:06]produce_requested_data [14:11:06]requested_item fm.sn is exist - process it [14:11:06]wFMCommunicate request_size=4 [14:11:06]MH_SAM_APDU [14:11:06]CAPDU: 80 11 00 00 [14:11:06]Write to MH i2c: E2 08 00 31 22 80 11 00 00 00 00 00 00 CD [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:06]Read from MH i2c: E2 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 17 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 17 00 31 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [14:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:11:06]wFMCommunicate OK [14:11:06]requested_item fd.num is exist - process it [14:11:06]SAM_PROTO_GetFieldsCounters [14:11:06]wFMCommunicate request_size=4 [14:11:06]MH_SAM_APDU [14:11:06]CAPDU: 80 13 00 00 [14:11:06]Write to MH i2c: E2 08 00 32 22 80 13 00 00 00 00 00 00 D0 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:06]Read from MH i2c: E2 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 62 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 62 00 32 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [14:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:06]wFMCommunicate OK [14:11:06]SAM_PROTO_GetFieldsCounters done [14:11:06]requested_item shift.num is exist - process it [14:11:06]requested_item shift.opened is exist - process it [14:11:06]req_shift_opened [14:11:06]FM_GetShiftState [14:11:06]SAM_PROTO_GetShiftState [14:11:06]wFMCommunicate request_size=4 [14:11:06]MH_SAM_APDU [14:11:06]CAPDU: 80 13 01 00 [14:11:06]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:06]Read from MH i2c: E2 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 0E 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 17 [14:11:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:11:06]wFMCommunicate OK [14:11:06]SAM_PROTO_GetShiftState done [14:11:06]FM_GetShiftState done [14:11:06]req_shift_opened done [14:11:06]requested_item shift.open_date is exist - process it [14:11:06]req_shift_open_date [14:11:06]req_shift_open_date done [14:11:06]produce_requested_data done [14:11:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73820,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:11:06]process_action_free close_receipt [14:11:06]json_value_free [14:11:06]json_value_free done [14:11:06]process_json_proto returns [14:11:06]Send response to host [14:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73820,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:11:06]free response buf [14:11:06]execute_script done [14:11:06]execute_script returns [14:11:06]free content buf [14:11:06]Sock 9.Close socket [14:11:06]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:29]accept exits with 8 [14:14:29]New connection [14:14:29]New thread 3067432292 created [14:14:29]Thread 3067575652 joined [14:14:29]Waiting for new connection... [14:14:29] Sock 8.Parse request [14:14:29]Sock 8.Check first char [14:14:29]Sock 8.First char is OK [14:14:29]request: POST /json_proto HTTP/1.0 [14:14:29]Method: POST [14:14:29]URL: /json_proto [14:14:29]Method is POST - this is cgi request [14:14:29]url: /json_proto [14:14:29]query_string will be loaded in cgi processing [14:14:29]execute_cgi json_proto POST (null) [14:14:29]execute_cgi path=json_proto method=POST [14:14:29]POST find Content-Length [14:14:29]Host: 172.17.44.196:8080 [14:14:29]Content-Length: 621 [14:14:29]Content-Type: application/json [14:14:29] [14:14:29]POST finish read [14:14:29]Found Content-Length = 621 [14:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272795", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "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" ] } } [14:14:29]execute_script... [14:14: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)272795", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "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" ] } } [14:14:29]POST & json_proto [14:14:29]process_json_proto [14:14:29]json parsed OK: [14:14:29]protocol is kg_v1.0 [14:14:29]action value=close_receipt [14:14:29]process_action close_receipt [14:14:29]cmd_close_receipt [14:14:29]MH_GetDate [14:14:29]Write to MH i2c: F0 00 00 34 22 45 [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: F0 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: F0 09 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: F0 09 00 34 22 00 47 10 15 67 E7 19 F8 65 7E [14:14:29]GetLastDocTimeStamp 1729433464 [14:14:29]current date 1729433671 [14:14:29]FM_GetShiftState [14:14:29]SAM_PROTO_GetShiftState [14:14:29]wFMCommunicate request_size=4 [14:14:29]MH_SAM_APDU [14:14:29]CAPDU: 80 13 01 00 [14:14:29]Write to MH i2c: E2 08 00 35 22 80 13 01 00 00 00 00 00 D4 [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 0E 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 0E 00 35 22 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 19 [14:14:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:14:29]wFMCommunicate OK [14:14:29]SAM_PROTO_GetShiftState done [14:14:29]FM_GetShiftState done [14:14:29]opened in 1729384303 [14:14:29]opened+sec_in_day 1729470703 [14:14:29]quantity*price = 28000 [14:14:29]sum+1 = 28001 [14:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 147 20.10.2024 14:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73821 ФПД: 121171038174060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141431&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73821&fm=121171038174060&tin=02508201610067®Number=0000000000161154&sum=28000 0 [14:14:30]StoreToDocumentArchive [14:14:30]shift 170 fd 73821 [14:14:30]save to /storage/0170/doc_00073821 [14:14:30]save last doc name /storage/0170/doc_00073821 to /storage/kkm_last_doc_name [14:14:30]save OK [14:14:30]Clear old archive folders... [14:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:14:30]tlvbuf is 0039B880 [14:14:30]SAM_PROTO_ClearQueue [14:14:30]wFMCommunicate request_size=4 [14:14:30]MH_SAM_APDU [14:14:30]CAPDU: 80 09 00 00 [14:14:30]Write to MH i2c: E2 08 00 42 22 80 09 00 00 00 00 00 00 D6 [14:14:30]Write i2c OK [14:14:30]MH_I2C_Read... [14:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:30]Read from MH i2c: E2 [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: E2 03 00 [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [14:14:30]RAPDU: 90 00 [14:14:30]wFMCommunicate OK [14:14:30]SAM_PROTO_ClearQueue done [14:14:30]KKMCreateOFDPacket [14:14:30]OFDProtocolAddRootSTLVToBuf [14:14:30]FM_MakeSignedData [14:14:30]FM_MakeSignedData [14:14:30]SAM_PROTO_SignData [14:14:30]wFMCommunicate request_size=4 [14:14:30]MH_SAM_APDU [14:14:30]CAPDU: 80 0D 01 02 [14:14:30]Write to MH i2c: E2 08 00 43 22 80 0D 01 02 00 00 00 00 DE [14:14:30]Write i2c OK [14:14:30]MH_I2C_Read... [14:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:30]Read from MH i2c: E2 [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: E2 03 00 [14:14:30]MH_I2C_Read... [14:14:30]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [14:14:30]RAPDU: 90 00 [14:14:30]wFMCommunicate OK [14:14:30]wFMCommunicate request_size=255 [14:14:30]MH_SAM_APDU [14:14:30]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 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 93 00 00 00 F4 03 04 00 47 10 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [14:14:30]Write to MH i2c: E2 02 01 44 22 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 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 93 00 00 00 F4 03 04 00 47 10 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 B9 [14:14:30]Write i2c OK [14:14:30]MH_I2C_Read... [14:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:31]Read from MH i2c: E2 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 03 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [14:14:31]RAPDU: 90 00 [14:14:31]wFMCommunicate OK [14:14:31]wFMCommunicate request_size=32 [14:14:31]MH_SAM_APDU [14:14:31]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 20 01 00 35 04 06 00 6E 34 54 AF FB 6C [14:14:31]Write to MH i2c: E2 23 00 45 22 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 20 01 00 35 04 06 00 6E 34 54 AF FB 6C 00 00 C2 [14:14:31]Write i2c OK [14:14:31]MH_I2C_Read... [14:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:31]Read from MH i2c: E2 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 03 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [14:14:31]RAPDU: 90 00 [14:14:31]wFMCommunicate OK [14:14:31]wFMCommunicate request_size=4 [14:14:31]MH_SAM_APDU [14:14:31]CAPDU: 80 0D 03 02 [14:14:31]Write to MH i2c: E2 08 00 46 22 80 0D 03 02 00 00 00 00 E3 [14:14:31]Write i2c OK [14:14:31]MH_I2C_Read... [14:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:31]Read from MH i2c: E2 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 0B 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 0B 00 46 22 00 2A 64 51 7B 4F 84 68 38 90 00 B1 [14:14:31]RAPDU: 2A 64 51 7B 4F 84 68 38 90 00 [14:14:31]wFMCommunicate OK [14:14:31]SAM_PROTO_SignData done [14:14:31]FM_MakeSignedData done [14:14:31]CreateOFDProtocolMessage [14:14:31]wFMCommunicate request_size=4 [14:14:31]MH_SAM_APDU [14:14:31]CAPDU: 80 11 00 00 [14:14:31]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [14:14:31]Write i2c OK [14:14:31]MH_I2C_Read... [14:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:31]Read from MH i2c: E2 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 17 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [14:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:14:31]wFMCommunicate OK [14:14:31]CreateOFDProtocolMessage done [14:14:31]OFDSenderStorePacket 73821 [14:14:31]StoreOFDPacket docnum=73821 [14:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 BF 79 1D 01 BF 3B 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 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 93 00 00 00 F4 03 04 00 47 10 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 20 01 00 35 04 06 00 6E 34 54 AF FB 6C 2A 64 51 7B 4F 84 68 38 [14:14:31]CheckFolder [14:14:31]dirname=/storage/ofd_packets [14:14:31]CheckFolder done [14:14:31]ProducePacketName [14:14:31]name=ofd_packets/00073821 [14:14:31]NVStorageSaveData ofd_packets/00073821 [14:14:31]File name is /storage/ofd_packets/00073821 [14:14:31]Write 323 bytes [14:14:31]NVStorageSaveData done [14:14:31]OFDSenderStorePacket done [14:14:31]KKMCreateOFDPacket done [14:14:31]NVStorageSaveData kkm_last_timestamp [14:14:31]File name is /storage/kkm_last_timestamp [14:14:31]Write 4 bytes [14:14:31]NVStorageSaveData done [14:14:31]ExternCall_PrintAddStr [14:14:31]wPrintStart [14:14:31]Write to MH i2c: 01 00 00 48 22 6A [14:14:31]Write i2c OK [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: 01 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: 01 07 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 FF 0F 7F [14:14:31]RasterBufferAndPrint [14:14:31]line Счет N : (3)272795 [14:14:31]line ИНН: 02508201610067 [14:14:31]line Контрольно-Кассовый Чек [14:14:31]line ПРОДАЖА [14:14:31]line Товар: 48747059 [14:14:31]line Сигареты Winston Legend Blue [14:14:31]line 2.000 * 140.00 [14:14:31]line = 280.00 [14:14:31]line НДС 12% НСП 1% [14:14:31]line > о реализуемом товаре [14:14:31]line ИТОГО: 280.00 [14:14:31]line НСП 1% : 2.48 [14:14:31]line НДС 12% : 29.73 [14:14:31]line Наличными: 280.00 [14:14:31]line Безнал.: 0.00 [14:14:31]line Место: АЗС № 133 "Партнер Нефть" [14:14:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:14:31]line СНО: Общий режим [14:14:31]line Чек 147 20.10.2024 14:14 [14:14:31]line Смена: 170 ФФД: 1.0 [14:14:31]line ЗНМ: 0300000020 [14:14:31]line РНМ: 0000000000161154 [14:14:31]line Версия ККМ: v1.0 [14:14:31]line ФМ: 0000000000963323 [14:14:31]line ФД: 73821 [14:14:31]line ФПД: 121171038174060 [14:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141431&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73821&fm=121171038174060&tin=02508201610067®Number=0000000000161154&sum=28000 [14:14:31]line 0 [14:14:31]OFD Sender: Processing packet 73821 [packets to send 15, broken 14] [14:14:31]ProducePacketName [14:14:31]name=ofd_packets/00073821 [14:14:31]OFD Sender: To server: pG, [14:14:31]CommunicateWithHost lk.salyk.kg:30040 [14:14:31]ConnectInit lk.salyk.kg [14:14:31]written 0, free lines is 4095 [14:14:31]Connected sock=10 [14:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 BF 79 1D 01 BF 3B 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 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 93 00 00 00 F4 03 04 00 47 10 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 20 01 00 35 04 06 00 6E 34 54 AF FB 6C 2A 64 51 7B 4F 84 68 38 [14:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 DF 47 00 2E 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 39 36 33 33 32 33 10 04 04 00 5D 20 01 00 F4 03 04 00 2C B9 14 67 B6 04 01 00 00 81 51 2D 80 7F 05 B2 F2 [14:14:31]CommunicateWithHost err = 0 [14:14:31]CheckOFDResponse [14:14:31]1017 (14) - 77093643461234 [14:14:31]1041 (16) - 0000000000963323 [14:14:31]1040 (4) - 73821 [14:14:31]1012 (4) - 20.10.2024 08:02 [14:14:31]1206 (1) - 0 [14:14:31]OFD Sender: Remove packet 73821 [14:14:31]ProducePacketName [14:14:31]name=ofd_packets/00073821 [14:14:31]NVStorageDeleteData [14:14:32]Write to MH i2c: 01 00 00 70 22 92 [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: 01 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: 01 07 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: 01 07 00 70 22 00 00 00 00 00 C8 0C 6D [14:14:32]RasterBufferAndPrint [14:14:32]line [14:14:32]line [14:14:32]line [14:14:32]line [14:14:32]line [14:14:32]written 0, free lines is 3276 [14:14:32]MH_Cut [14:14:32]Write to MH i2c: D1 01 00 77 22 01 6B [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: D1 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: D1 01 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: D1 01 00 77 22 00 6A [14:14:32]Write to MH i2c: 01 00 00 78 22 9A [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]OFD Sender: No OFD packet to send [14:14:32]*** Cut start [14:14:32]*** Partial cut [14:14:32]*** CUTSNS_PIN = 1 [14:14:33]*** CUTSNS_PIN = 0 [14:14:33]*** Brake cut motor [14:14:33]Read from MH i2c: 01 [14:14:33]MH_I2C_Read... [14:14:33]*** Stop cut motor [14:14:33]*** Cut end [14:14:33]Read from MH i2c: 01 07 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 07 00 78 22 00 00 00 00 00 FF 0F AF [14:14:33]process_action close_receipt done [14:14:33]requested_data is exist [14:14:33]produce_requested_data [14:14:33]requested_item fm.sn is exist - process it [14:14:33]wFMCommunicate request_size=4 [14:14:33]MH_SAM_APDU [14:14:33]CAPDU: 80 11 00 00 [14:14:33]Write to MH i2c: E2 08 00 79 22 80 11 00 00 00 00 00 00 15 [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 17 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 17 00 79 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [14:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:14:33]wFMCommunicate OK [14:14:33]requested_item fd.num is exist - process it [14:14:33]SAM_PROTO_GetFieldsCounters [14:14:33]wFMCommunicate request_size=4 [14:14:33]MH_SAM_APDU [14:14:33]CAPDU: 80 13 00 00 [14:14:33]Write to MH i2c: E2 08 00 7A 22 80 13 00 00 00 00 00 00 18 [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 62 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 62 00 7A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [14:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:33]wFMCommunicate OK [14:14:33]SAM_PROTO_GetFieldsCounters done [14:14:33]requested_item shift.num is exist - process it [14:14:33]requested_item shift.opened is exist - process it [14:14:33]req_shift_opened [14:14:33]FM_GetShiftState [14:14:33]SAM_PROTO_GetShiftState [14:14:33]wFMCommunicate request_size=4 [14:14:33]MH_SAM_APDU [14:14:33]CAPDU: 80 13 01 00 [14:14:33]Write to MH i2c: E2 08 00 7B 22 80 13 01 00 00 00 00 00 1A [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 0E 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 0E 00 7B 22 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5F [14:14:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:14:33]wFMCommunicate OK [14:14:33]SAM_PROTO_GetShiftState done [14:14:33]FM_GetShiftState done [14:14:33]req_shift_opened done [14:14:33]requested_item shift.open_date is exist - process it [14:14:33]req_shift_open_date [14:14:33]req_shift_open_date done [14:14:33]produce_requested_data done [14:14:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73821,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:14:33]process_action_free close_receipt [14:14:33]json_value_free [14:14:33]json_value_free done [14:14:33]process_json_proto returns [14:14:33]Send response to host [14:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73821,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:14:33]free response buf [14:14:33]execute_script done [14:14:33]execute_script returns [14:14:33]free content buf [14:14:33]Sock 8.Close socket [14:14:33]Sock 8.Thread stoped [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:15]accept exits with 9 [14:19:15]New connection [14:19:15]New thread 3067575652 created [14:19:15]Thread 3067432292 joined [14:19:15]Waiting for new connection... [14:19:15] Sock 9.Parse request [14:19:15]Sock 9.Check first char [14:19:15]Sock 9.First char is OK [14:19:15]request: POST /json_proto HTTP/1.0 [14:19:15]Method: POST [14:19:15]URL: /json_proto [14:19:15]Method is POST - this is cgi request [14:19:15]url: /json_proto [14:19:15]query_string will be loaded in cgi processing [14:19:15]execute_cgi json_proto POST (null) [14:19:15]execute_cgi path=json_proto method=POST [14:19:15]POST find Content-Length [14:19:15]Host: 172.17.44.196:8080 [14:19:15]Content-Length: 696 [14:19:15]Content-Type: application/json [14:19:15] [14:19:15]POST finish read [14:19:15]Found Content-Length = 696 [14:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272796", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "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" ] } } [14:19:15]execute_script... [14:19:15]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)272796", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "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" ] } } [14:19:15]POST & json_proto [14:19:15]process_json_proto [14:19:15]json parsed OK: [14:19:15]protocol is kg_v1.0 [14:19:15]action value=close_receipt [14:19:15]process_action close_receipt [14:19:15]cmd_close_receipt [14:19:15]MH_GetDate [14:19:15]Write to MH i2c: F0 00 00 7C 22 8D [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 09 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 09 00 7C 22 00 65 11 15 67 E7 19 F8 65 E5 [14:19:15]GetLastDocTimeStamp 1729433671 [14:19:15]current date 1729433957 [14:19:15]FM_GetShiftState [14:19:15]SAM_PROTO_GetShiftState [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 13 01 00 [14:19:15]Write to MH i2c: E2 08 00 7D 22 80 13 01 00 00 00 00 00 1C [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0E 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0E 00 7D 22 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 61 [14:19:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:19:15]wFMCommunicate OK [14:19:15]SAM_PROTO_GetShiftState done [14:19:15]FM_GetShiftState done [14:19:15]opened in 1729384303 [14:19:15]opened+sec_in_day 1729470703 [14:19:15]quantity*price = 11000 [14:19:15]sum+1 = 11001 [14:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 148 20.10.2024 14:19 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73822 ФПД: 146689911314495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141917&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73822&fm=146689911314495&tin=02508201610067®Number=0000000000161154&sum=11000 0 [14:19:16]StoreToDocumentArchive [14:19:16]shift 170 fd 73822 [14:19:16]save to /storage/0170/doc_00073822 [14:19:16]save last doc name /storage/0170/doc_00073822 to /storage/kkm_last_doc_name [14:19:16]save OK [14:19:16]Clear old archive folders... [14:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=296 [14:19:16]tlvbuf is 00329CE0 [14:19:16]SAM_PROTO_ClearQueue [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 09 00 00 [14:19:16]Write to MH i2c: E2 08 00 8A 22 80 09 00 00 00 00 00 00 1E [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_ClearQueue done [14:19:16]KKMCreateOFDPacket [14:19:16]OFDProtocolAddRootSTLVToBuf [14:19:16]FM_MakeSignedData [14:19:16]FM_MakeSignedData [14:19:16]SAM_PROTO_SignData [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 01 02 [14:19:16]Write to MH i2c: E2 08 00 8B 22 80 0D 01 02 00 00 00 00 26 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=255 [14:19:16]MH_SAM_APDU [14:19:16]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 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B 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 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 94 00 00 00 F4 03 04 00 65 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [14:19:16]Write to MH i2c: E2 02 01 8C 22 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 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B 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 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 94 00 00 00 F4 03 04 00 65 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 D4 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [14:19:17]RAPDU: 90 00 [14:19:17]wFMCommunicate OK [14:19:17]wFMCommunicate request_size=55 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 20 01 00 35 04 06 00 85 69 E8 0E 58 3F [14:19:17]Write to MH i2c: E2 3A 00 8D 22 80 0D 02 02 32 00 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 20 01 00 35 04 06 00 85 69 E8 0E 58 3F 00 00 6F [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [14:19:17]RAPDU: 90 00 [14:19:17]wFMCommunicate OK [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 0D 03 02 [14:19:17]Write to MH i2c: E2 08 00 8E 22 80 0D 03 02 00 00 00 00 2B [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0B 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0B 00 8E 22 00 24 9D DC F0 24 FE C9 61 90 00 05 [14:19:17]RAPDU: 24 9D DC F0 24 FE C9 61 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_SignData done [14:19:17]FM_MakeSignedData done [14:19:17]CreateOFDProtocolMessage [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 11 00 00 [14:19:17]Write to MH i2c: E2 08 00 8F 22 80 11 00 00 00 00 00 00 2B [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 8F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 78 [14:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:19:17]wFMCommunicate OK [14:19:17]CreateOFDProtocolMessage done [14:19:17]OFDSenderStorePacket 73822 [14:19:17]StoreOFDPacket docnum=73822 [14:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 A9 F2 34 01 89 9C 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 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B 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 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 94 00 00 00 F4 03 04 00 65 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 20 01 00 35 04 06 00 85 69 E8 0E 58 3F 24 9D DC F0 24 FE C9 61 [14:19:17]CheckFolder [14:19:17]dirname=/storage/ofd_packets [14:19:17]CheckFolder done [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00073822 [14:19:17]NVStorageSaveData ofd_packets/00073822 [14:19:17]File name is /storage/ofd_packets/00073822 [14:19:17]Write 346 bytes [14:19:17]NVStorageSaveData done [14:19:17]OFDSenderStorePacket done [14:19:17]KKMCreateOFDPacket done [14:19:17]NVStorageSaveData kkm_last_timestamp [14:19:17]File name is /storage/kkm_last_timestamp [14:19:17]Write 4 bytes [14:19:17]NVStorageSaveData done [14:19:17]ExternCall_PrintAddStr [14:19:17]wPrintStart [14:19:17]Write to MH i2c: 01 00 00 90 22 B2 [14:19:17]OFD Sender: Processing packet 73822 [packets to send 15, broken 14] [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00073822 [14:19:17]OFD Sender: To server: pG, [14:19:17]CommunicateWithHost lk.salyk.kg:30040 [14:19:17]ConnectInit lk.salyk.kg [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 90 22 00 00 00 00 00 FF 0F C7 [14:19:17]RasterBufferAndPrint [14:19:17]line Счет N : (3)272796 [14:19:17]line ИНН: 02508201610067 [14:19:17]line Контрольно-Кассовый Чек [14:19:17]line ПРОДАЖА [14:19:17]line Товар: 4870202521261 [14:19:17]line Напиток MAXI чай 1,2 лесные ягоды [14:19:17]line 1.000 * 110.00 [14:19:17]line = 110.00 [14:19:17]line НДС 12% НСП 1% [14:19:17]line > о реализуемом товаре [14:19:17]line ИТОГО: 110.00 [14:19:17]line НСП 1% : 0.97 [14:19:17]line НДС 12% : 11.68 [14:19:17]line Наличными: 110.00 [14:19:17]line Безнал.: 0.00 [14:19:17]line Место: АЗС № 133 "Партнер Нефть" [14:19:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:19:17]line СНО: Общий режим [14:19:17]line Чек 148 20.10.2024 14:19 [14:19:17]line Смена: 170 ФФД: 1.0 [14:19:17]line ЗНМ: 0300000020 [14:19:17]line РНМ: 0000000000161154 [14:19:17]line Версия ККМ: v1.0 [14:19:17]line ФМ: 0000000000963323 [14:19:17]line ФД: 73822 [14:19:17]line ФПД: 146689911314495 [14:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141917&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73822&fm=146689911314495&tin=02508201610067®Number=0000000000161154&sum=11000 [14:19:17]line 0 [14:19:17]Connected sock=10 [14:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 A9 F2 34 01 89 9C 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 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B 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 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 94 00 00 00 F4 03 04 00 65 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 20 01 00 35 04 06 00 85 69 E8 0E 58 written 0, free lines is 4095 [14:19:17]3F 24 9D DC F0 24 FE C9 61 [14:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 1B 47 00 37 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 39 36 33 33 32 33 10 04 04 00 5E 20 01 00 F4 03 04 00 4A BA 14 67 B6 04 01 00 00 0D C4 4E 0E DD A2 18 C7 [14:19:17]CommunicateWithHost err = 0 [14:19:17]CheckOFDResponse [14:19:17]1017 (14) - 77093643461234 [14:19:17]1041 (16) - 0000000000963323 [14:19:17]1040 (4) - 73822 [14:19:17]1012 (4) - 20.10.2024 08:07 [14:19:17]1206 (1) - 0 [14:19:17]OFD Sender: Remove packet 73822 [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00073822 [14:19:17]NVStorageDeleteData [14:19:18]Write to MH i2c: 01 00 00 B8 22 DA [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 B8 22 00 00 00 00 00 D5 0C C2 [14:19:18]RasterBufferAndPrint [14:19:18]line [14:19:18]line [14:19:18]line [14:19:18]line [14:19:18]line [14:19:18]written 0, free lines is 3292 [14:19:18]MH_Cut [14:19:18]Write to MH i2c: D1 01 00 BF 22 01 B3 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: D1 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: D1 01 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: D1 01 00 BF 22 00 B2 [14:19:18]Write to MH i2c: 01 00 00 C0 22 E2 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]OFD Sender: No OFD packet to send [14:19:19]*** Cut start [14:19:19]*** Partial cut [14:19:19]*** CUTSNS_PIN = 1 [14:19:19]*** CUTSNS_PIN = 0 [14:19:19]*** Brake cut motor [14:19:19]Read from MH i2c: 01 [14:19:19]MH_I2C_Read... [14:19:19]*** Stop cut motor [14:19:19]*** Cut end [14:19:19]Read from MH i2c: 01 07 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 07 00 C0 22 00 00 00 00 00 FF 0F F7 [14:19:19]process_action close_receipt done [14:19:19]requested_data is exist [14:19:19]produce_requested_data [14:19:19]requested_item fm.sn is exist - process it [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 11 00 00 [14:19:19]Write to MH i2c: E2 08 00 C1 22 80 11 00 00 00 00 00 00 5D [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 17 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 17 00 C1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AA [14:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:19:19]wFMCommunicate OK [14:19:19]requested_item fd.num is exist - process it [14:19:19]SAM_PROTO_GetFieldsCounters [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 13 00 00 [14:19:19]Write to MH i2c: E2 08 00 C2 22 80 13 00 00 00 00 00 00 60 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 62 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 62 00 C2 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [14:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_GetFieldsCounters done [14:19:19]requested_item shift.num is exist - process it [14:19:19]requested_item shift.opened is exist - process it [14:19:19]req_shift_opened [14:19:19]FM_GetShiftState [14:19:19]SAM_PROTO_GetShiftState [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 13 01 00 [14:19:19]Write to MH i2c: E2 08 00 C3 22 80 13 01 00 00 00 00 00 62 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0E 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0E 00 C3 22 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A7 [14:19:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_GetShiftState done [14:19:19]FM_GetShiftState done [14:19:19]req_shift_opened done [14:19:19]requested_item shift.open_date is exist - process it [14:19:19]req_shift_open_date [14:19:19]req_shift_open_date done [14:19:19]produce_requested_data done [14:19:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73822,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:19:19]process_action_free close_receipt [14:19:19]json_value_free [14:19:19]json_value_free done [14:19:19]process_json_proto returns [14:19:19]Send response to host [14:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73822,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:19:19]free response buf [14:19:19]execute_script done [14:19:19]execute_script returns [14:19:19]free content buf [14:19:19]Sock 9.Close socket [14:19:19]Sock 9.Thread stoped [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:42]accept exits with 8 [14:19:42]New connection [14:19:42]New thread 3067432292 created [14:19:42]Thread 3067575652 joined [14:19:42]Waiting for new connection... [14:19:42] Sock 8.Parse request [14:19:42]Sock 8.Check first char [14:19:42]Sock 8.First char is OK [14:19:42]request: POST /json_proto HTTP/1.0 [14:19:42]Method: POST [14:19:42]URL: /json_proto [14:19:42]Method is POST - this is cgi request [14:19:42]url: /json_proto [14:19:42]query_string will be loaded in cgi processing [14:19:42]execute_cgi json_proto POST (null) [14:19:42]execute_cgi path=json_proto method=POST [14:19:42]POST find Content-Length [14:19:42]Host: 172.17.44.196:8080 [14:19:42]Content-Length: 906 [14:19:42]Content-Type: application/json [14:19:42] [14:19:42]POST finish read [14:19:42]Found Content-Length = 906 [14:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272797", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [14:19:42]execute_script... [14:19: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)272797", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [14:19:42]POST & json_proto [14:19:42]process_json_proto [14:19:42]json parsed OK: [14:19:42]protocol is kg_v1.0 [14:19:42]action value=close_receipt [14:19:42]process_action close_receipt [14:19:42]cmd_close_receipt [14:19:42]MH_GetDate [14:19:42]Write to MH i2c: F0 00 00 C4 22 D5 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: F0 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: F0 09 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: F0 09 00 C4 22 00 80 11 15 67 E7 19 F8 65 48 [14:19:42]GetLastDocTimeStamp 1729433957 [14:19:42]current date 1729433984 [14:19:42]FM_GetShiftState [14:19:42]SAM_PROTO_GetShiftState [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 13 01 00 [14:19:42]Write to MH i2c: E2 08 00 C5 22 80 13 01 00 00 00 00 00 64 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 0E 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 0E 00 C5 22 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A9 [14:19:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:19:42]wFMCommunicate OK [14:19:42]SAM_PROTO_GetShiftState done [14:19:42]FM_GetShiftState done [14:19:42]opened in 1729384303 [14:19:42]opened+sec_in_day 1729470703 [14:19:42]quantity*price = 11000 [14:19:42]sum+1 = 11001 [14:19:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 149 20.10.2024 14:19 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73823 ФПД: 180527221982841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141944&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73823&fm=180527221982841&tin=02508201610067®Number=0000000000161154&sum=25000 0 [14:19:44]StoreToDocumentArchive [14:19:44]shift 170 fd 73823 [14:19:44]save to /storage/0170/doc_00073823 [14:19:44]save last doc name /storage/0170/doc_00073823 to /storage/kkm_last_doc_name [14:19:44]save OK [14:19:44]Clear old archive folders... [14:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=396 [14:19:44]tlvbuf is 003835D0 [14:19:44]SAM_PROTO_ClearQueue [14:19:44]wFMCommunicate request_size=4 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 09 00 00 [14:19:44]Write to MH i2c: E2 08 00 D2 22 80 09 00 00 00 00 00 00 66 [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [14:19:44]RAPDU: 90 00 [14:19:44]wFMCommunicate OK [14:19:44]SAM_PROTO_ClearQueue done [14:19:44]KKMCreateOFDPacket [14:19:44]OFDProtocolAddRootSTLVToBuf [14:19:44]FM_MakeSignedData [14:19:44]FM_MakeSignedData [14:19:44]SAM_PROTO_SignData [14:19:44]wFMCommunicate request_size=4 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 0D 01 02 [14:19:44]Write to MH i2c: E2 08 00 D3 22 80 0D 01 02 00 00 00 00 6E [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 D3 22 00 90 00 69 [14:19:44]RAPDU: 90 00 [14:19:44]wFMCommunicate OK [14:19:44]wFMCommunicate request_size=255 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 0D 02 02 FA 03 00 8C 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 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 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 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 A8 61 00 00 00 00 EB 03 26 00 EF [14:19:44]Write to MH i2c: E2 02 01 D4 22 80 0D 02 02 FA 00 03 00 8C 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 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 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 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 A8 61 00 00 00 00 EB 03 26 00 EF 00 00 78 [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 D4 22 00 90 00 6A [14:19:44]RAPDU: 90 00 [14:19:44]wFMCommunicate OK [14:19:44]wFMCommunicate request_size=155 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 0D 02 02 96 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 5F 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 95 00 00 00 F4 03 04 00 80 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 20 01 00 35 04 06 00 A4 30 44 F0 46 79 [14:19:44]Write to MH i2c: E2 9E 00 D5 22 80 0D 02 02 96 00 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 5F 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 95 00 00 00 F4 03 04 00 80 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 20 01 00 35 04 06 00 A4 30 44 F0 46 79 00 00 AC [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 03 00 D5 22 00 90 00 6B [14:19:44]RAPDU: 90 00 [14:19:44]wFMCommunicate OK [14:19:44]wFMCommunicate request_size=4 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 0D 03 02 [14:19:44]Write to MH i2c: E2 08 00 D6 22 80 0D 03 02 00 00 00 00 73 [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 0B 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 0B 00 D6 22 00 2D 26 E5 99 05 57 B4 02 90 00 57 [14:19:44]RAPDU: 2D 26 E5 99 05 57 B4 02 90 00 [14:19:44]wFMCommunicate OK [14:19:44]SAM_PROTO_SignData done [14:19:44]FM_MakeSignedData done [14:19:44]CreateOFDProtocolMessage [14:19:44]wFMCommunicate request_size=4 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 11 00 00 [14:19:44]Write to MH i2c: E2 08 00 D7 22 80 11 00 00 00 00 00 00 73 [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 17 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 17 00 D7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C0 [14:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:19:44]wFMCommunicate OK [14:19:44]CreateOFDProtocolMessage done [14:19:44]OFDSenderStorePacket 73823 [14:19:44]StoreOFDPacket docnum=73823 [14:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 28 5D 98 01 CD 9C 5A 03 01 00 03 00 8C 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 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 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 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 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 5F 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 95 00 00 00 F4 03 04 00 80 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 20 01 00 35 04 06 00 A4 30 44 F0 46 79 2D 26 E5 99 05 57 B4 02 [14:19:44]CheckFolder [14:19:44]dirname=/storage/ofd_packets [14:19:44]CheckFolder done [14:19:44]ProducePacketName [14:19:44]name=ofd_packets/00073823 [14:19:44]NVStorageSaveData ofd_packets/00073823 [14:19:44]File name is /storage/ofd_packets/00073823 [14:19:44]Write 446 bytes [14:19:44]NVStorageSaveData done [14:19:44]OFDSenderStorePacket done [14:19:44]KKMCreateOFDPacket done [14:19:44]NVStorageSaveData kkm_last_timestamp [14:19:44]File name is /storage/kkm_last_timestamp [14:19:44]Write 4 bytes [14:19:44]NVStorageSaveData done [14:19:44]ExternCall_PrintAddStr [14:19:44]wPrintStart [14:19:44]Write to MH i2c: 01 00 00 D8 22 FA [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: 01 [14:19:45]MH_I2C_Read... [14:19:45]OFD Sender: Processing packet 73823 [packets to send 15, broken 14] [14:19:45]ProducePacketName [14:19:45]name=ofd_packets/00073823 [14:19:45]OFD Sender: To server: pG, [14:19:45]CommunicateWithHost lk.salyk.kg:30040 [14:19:45]ConnectInit lk.salyk.kg [14:19:45]Read from MH i2c: 01 07 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: 01 07 00 D8 22 00 00 00 00 00 FF 0F 0F [14:19:45]RasterBufferAndPrint [14:19:45]line Счет N : (3)272797 [14:19:45]line ИНН: 02508201610067 [14:19:45]line Контрольно-Кассовый Чек [14:19:45]line ПРОДАЖА [14:19:45]line Товар: 4870022003305 [14:19:45]line Напиток Gorilla эн нат ж/б 0,5/0,45л [14:19:45]line 1.000 * 110.00 [14:19:45]line = 110.00 [14:19:45]line НДС 12% НСП 1% [14:19:45]line > о реализуемом товаре [14:19:45]line Товар: 48743570 [14:19:45]line Сигареты Winston XStyle Blue [14:19:45]line 1.000 * 140.00 [14:19:45]line = 140.00 [14:19:45]line НДС 12% НСП 1% [14:19:45]line > о реализуемом товаре [14:19:45]line ИТОГО: 250.00 [14:19:45]line НСП 1% : 2.21 [14:19:45]line НДС 12% : 26.55 [14:19:45]line Наличными: 250.00 [14:19:45]line Безнал.: 0.00 [14:19:45]line Место: АЗС № 133 "Партнер Нефть" [14:19:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:19:45]line СНО: Общий режим [14:19:45]line Чек 149 20.10.2024 14:19 [14:19:45]line Смена: 170 ФФД: 1.0 [14:19:45]line ЗНМ: 0300000020 [14:19:45]line РНМ: 0000000000161154 [14:19:45]line Версия ККМ: v1.0 [14:19:45]line ФМ: 0000000000963323 [14:19:45]line ФД: 73823 [14:19:45]line ФПД: 180527221982841 [14:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141944&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73823&fm=180527221982841&tin=02508201610067®Number=0000000000161154&sum=25000 [14:19:45]line 0 [14:19:45]written 0, free lines is 4095 [14:19:45]Connected sock=10 [14:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 28 5D 98 01 CD 9C 5A 03 01 00 03 00 8C 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 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 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 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 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 5F 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 95 00 00 00 F4 03 04 00 80 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 20 01 00 35 04 06 00 A4 30 44 F0 46 79 2D 26 E5 99 05 57 B4 02 [14:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0E 77 47 00 76 77 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 39 36 33 33 32 33 10 04 04 00 5F 20 01 00 F4 03 04 00 65 BA 14 67 B6 04 01 00 00 91 BC 28 28 B2 7F AB A9 [14:19:45]CommunicateWithHost err = 0 [14:19:45]CheckOFDResponse [14:19:45]1017 (14) - 77093643461234 [14:19:45]1041 (16) - 0000000000963323 [14:19:45]1040 (4) - 73823 [14:19:45]1012 (4) - 20.10.2024 08:08 [14:19:45]1206 (1) - 0 [14:19:45]OFD Sender: Remove packet 73823 [14:19:45]ProducePacketName [14:19:45]name=ofd_packets/00073823 [14:19:45]NVStorageDeleteData [14:19:45]Write to MH i2c: 01 00 00 06 23 29 [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: 01 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: 01 07 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 77 0C B3 [14:19:45]RasterBufferAndPrint [14:19:45]line [14:19:45]line [14:19:45]line [14:19:45]line [14:19:45]line [14:19:45]written 0, free lines is 3197 [14:19:45]MH_Cut [14:19:45]Write to MH i2c: D1 01 00 0D 23 01 02 [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: D1 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: D1 01 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: D1 01 00 0D 23 00 01 [14:19:45]Write to MH i2c: 01 00 00 0E 23 31 [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]OFD Sender: No OFD packet to send [14:19:46]*** Cut start [14:19:46]*** Partial cut [14:19:46]*** CUTSNS_PIN = 1 [14:19:46]*** CUTSNS_PIN = 0 [14:19:46]*** Brake cut motor [14:19:47]Read from MH i2c: 01 [14:19:47]MH_I2C_Read... [14:19:47]*** Stop cut motor [14:19:47]*** Cut end [14:19:47]Read from MH i2c: 01 07 00 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: 01 07 00 0E 23 00 00 00 00 00 FF 0F 46 [14:19:47]process_action close_receipt done [14:19:47]requested_data is exist [14:19:47]produce_requested_data [14:19:47]requested_item fm.sn is exist - process it [14:19:47]wFMCommunicate request_size=4 [14:19:47]MH_SAM_APDU [14:19:47]CAPDU: 80 11 00 00 [14:19:47]Write to MH i2c: E2 08 00 0F 23 80 11 00 00 00 00 00 00 AC [14:19:47]Write i2c OK [14:19:47]MH_I2C_Read... [14:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:47]Read from MH i2c: E2 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: E2 17 00 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: E2 17 00 0F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [14:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:19:47]wFMCommunicate OK [14:19:47]requested_item fd.num is exist - process it [14:19:47]SAM_PROTO_GetFieldsCounters [14:19:47]wFMCommunicate request_size=4 [14:19:47]MH_SAM_APDU [14:19:47]CAPDU: 80 13 00 00 [14:19:47]Write to MH i2c: E2 08 00 10 23 80 13 00 00 00 00 00 00 AF [14:19:47]Write i2c OK [14:19:47]MH_I2C_Read... [14:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:47]Read from MH i2c: E2 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: E2 62 00 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: E2 62 00 10 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:47]wFMCommunicate OK [14:19:47]SAM_PROTO_GetFieldsCounters done [14:19:47]requested_item shift.num is exist - process it [14:19:47]requested_item shift.opened is exist - process it [14:19:47]req_shift_opened [14:19:47]FM_GetShiftState [14:19:47]SAM_PROTO_GetShiftState [14:19:47]wFMCommunicate request_size=4 [14:19:47]MH_SAM_APDU [14:19:47]CAPDU: 80 13 01 00 [14:19:47]Write to MH i2c: E2 08 00 11 23 80 13 01 00 00 00 00 00 B1 [14:19:47]Write i2c OK [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: E2 [14:19:47]MH_I2C_Read... [14:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:47]Read from MH i2c: E2 0E 00 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: E2 0E 00 11 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F6 [14:19:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:19:47]wFMCommunicate OK [14:19:47]SAM_PROTO_GetShiftState done [14:19:47]FM_GetShiftState done [14:19:47]req_shift_opened done [14:19:47]requested_item shift.open_date is exist - process it [14:19:47]req_shift_open_date [14:19:47]req_shift_open_date done [14:19:47]produce_requested_data done [14:19:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73823,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:19:47]process_action_free close_receipt [14:19:47]json_value_free [14:19:47]json_value_free done [14:19:47]process_json_proto returns [14:19:47]Send response to host [14:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73823,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:19:47]free response buf [14:19:47]execute_script done [14:19:47]execute_script returns [14:19:47]free content buf [14:19:47]Sock 8.Close socket [14:19:47]Sock 8.Thread stoped [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:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:36]accept exits with 9 [14:21:36]New connection [14:21:36]New thread 3067575652 created [14:21:36]Thread 3067432292 joined [14:21:36]Waiting for new connection... [14:21:36] Sock 9.Parse request [14:21:36]Sock 9.Check first char [14:21:36]Sock 9.First char is OK [14:21:36]request: POST /json_proto HTTP/1.0 [14:21:36]Method: POST [14:21:36]URL: /json_proto [14:21:36]Method is POST - this is cgi request [14:21:36]url: /json_proto [14:21:36]query_string will be loaded in cgi processing [14:21:36]execute_cgi json_proto POST (null) [14:21:36]execute_cgi path=json_proto method=POST [14:21:36]POST find Content-Length [14:21:36]Host: 172.17.44.196:8080 [14:21:36]Content-Length: 678 [14:21:36]Content-Type: application/json [14:21:36] [14:21:36]POST finish read [14:21:36]Found Content-Length = 678 [14:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963034", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:36]execute_script... [14:21: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 : (1)1963034", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:36]POST & json_proto [14:21:36]process_json_proto [14:21:36]json parsed OK: [14:21:36]protocol is kg_v1.0 [14:21:36]action value=close_receipt [14:21:36]process_action close_receipt [14:21:36]cmd_close_receipt [14:21:36]MH_GetDate [14:21:36]Write to MH i2c: F0 00 00 12 23 24 [14:21:36]Write i2c OK [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: F0 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: F0 09 00 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: F0 09 00 12 23 00 F2 11 15 67 E7 19 F8 65 09 [14:21:36]GetLastDocTimeStamp 1729433984 [14:21:36]current date 1729434098 [14:21:36]FM_GetShiftState [14:21:36]SAM_PROTO_GetShiftState [14:21:36]wFMCommunicate request_size=4 [14:21:36]MH_SAM_APDU [14:21:36]CAPDU: 80 13 01 00 [14:21:36]Write to MH i2c: E2 08 00 13 23 80 13 01 00 00 00 00 00 B3 [14:21:36]Write i2c OK [14:21:36]MH_I2C_Read... [14:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:36]Read from MH i2c: E2 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 0E 00 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 0E 00 13 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F8 [14:21:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:21:36]wFMCommunicate OK [14:21:36]SAM_PROTO_GetShiftState done [14:21:36]FM_GetShiftState done [14:21:36]opened in 1729384303 [14:21:36]opened+sec_in_day 1729470703 [14:21:36]quantity*price = 30038 [14:21:36]sum+1 = 30039 [14:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 150 20.10.2024 14:21 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73824 ФПД: 64508816030010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142138&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73824&fm=64508816030010&tin=02508201610067®Number=0000000000161154&sum=30000 [14:21:37]StoreToDocumentArchive [14:21:37]shift 170 fd 73824 [14:21:37]save to /storage/0170/doc_00073824 [14:21:37]save last doc name /storage/0170/doc_00073824 to /storage/kkm_last_doc_name [14:21:37]save OK [14:21:37]Clear old archive folders... [14:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:37]tlvbuf is 00330D40 [14:21:37]SAM_PROTO_ClearQueue [14:21:37]wFMCommunicate request_size=4 [14:21:37]MH_SAM_APDU [14:21:37]CAPDU: 80 09 00 00 [14:21:37]Write to MH i2c: E2 08 00 20 23 80 09 00 00 00 00 00 00 B5 [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:37]Read from MH i2c: E2 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 20 23 00 90 00 B7 [14:21:37]RAPDU: 90 00 [14:21:37]wFMCommunicate OK [14:21:37]SAM_PROTO_ClearQueue done [14:21:37]KKMCreateOFDPacket [14:21:37]OFDProtocolAddRootSTLVToBuf [14:21:37]FM_MakeSignedData [14:21:37]FM_MakeSignedData [14:21:37]SAM_PROTO_SignData [14:21:37]wFMCommunicate request_size=4 [14:21:37]MH_SAM_APDU [14:21:37]CAPDU: 80 0D 01 02 [14:21:37]Write to MH i2c: E2 08 00 21 23 80 0D 01 02 00 00 00 00 BD [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:37]Read from MH i2c: E2 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 21 23 00 90 00 B8 [14:21:37]RAPDU: 90 00 [14:21:37]wFMCommunicate OK [14:21:37]wFMCommunicate request_size=255 [14:21:37]MH_SAM_APDU [14:21:37]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 96 00 00 00 F4 03 04 00 F2 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 20 01 00 35 04 06 00 3A [14:21:37]Write to MH i2c: E2 02 01 22 23 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 96 00 00 00 F4 03 04 00 F2 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 20 01 00 35 04 06 00 3A 00 00 AD [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:37]Read from MH i2c: E2 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [14:21:37]RAPDU: 90 00 [14:21:37]wFMCommunicate OK [14:21:37]wFMCommunicate request_size=10 [14:21:37]MH_SAM_APDU [14:21:37]CAPDU: 80 0D 02 02 05 AB A1 10 79 3A [14:21:37]Write to MH i2c: E2 0D 00 23 23 80 0D 02 02 05 00 AB A1 10 79 3A 00 00 D9 [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:37]Read from MH i2c: E2 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [14:21:37]RAPDU: 90 00 [14:21:37]wFMCommunicate OK [14:21:37]wFMCommunicate request_size=4 [14:21:37]MH_SAM_APDU [14:21:37]CAPDU: 80 0D 03 02 [14:21:37]Write to MH i2c: E2 08 00 24 23 80 0D 03 02 00 00 00 00 C2 [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:37]Read from MH i2c: E2 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 0B 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 0B 00 24 23 00 49 41 0A 09 14 FD 3F C5 90 00 75 [14:21:37]RAPDU: 49 41 0A 09 14 FD 3F C5 90 00 [14:21:37]wFMCommunicate OK [14:21:37]SAM_PROTO_SignData done [14:21:37]FM_MakeSignedData done [14:21:37]CreateOFDProtocolMessage [14:21:37]wFMCommunicate request_size=4 [14:21:37]MH_SAM_APDU [14:21:37]CAPDU: 80 11 00 00 [14:21:37]Write to MH i2c: E2 08 00 25 23 80 11 00 00 00 00 00 00 C2 [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:37]Read from MH i2c: E2 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 17 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: E2 17 00 25 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0F [14:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:21:37]wFMCommunicate OK [14:21:37]CreateOFDProtocolMessage done [14:21:37]OFDSenderStorePacket 73824 [14:21:37]StoreOFDPacket docnum=73824 [14:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 80 41 07 01 2C 24 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 96 00 00 00 F4 03 04 00 F2 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 20 01 00 35 04 06 00 3A AB A1 10 79 3A 49 41 0A 09 14 FD 3F C5 [14:21:37]CheckFolder [14:21:37]dirname=/storage/ofd_packets [14:21:37]CheckFolder done [14:21:37]ProducePacketName [14:21:37]name=ofd_packets/00073824 [14:21:37]NVStorageSaveData ofd_packets/00073824 [14:21:37]File name is /storage/ofd_packets/00073824 [14:21:37]Write 301 bytes [14:21:37]NVStorageSaveData done [14:21:37]OFDSenderStorePacket done [14:21:37]KKMCreateOFDPacket done [14:21:37]NVStorageSaveData kkm_last_timestamp [14:21:37]File name is /storage/kkm_last_timestamp [14:21:37]Write 4 bytes [14:21:37]NVStorageSaveData done [14:21:37]ExternCall_PrintAddStr [14:21:37]wPrintStart [14:21:37]Write to MH i2c: 01 00 00 26 23 49 [14:21:37]Write i2c OK [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: 01 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: 01 07 00 [14:21:37]MH_I2C_Read... [14:21:37]Read from MH i2c: 01 07 00 26 23 00 00 00 00 00 FF 0F 5E [14:21:37]RasterBufferAndPrint [14:21:37]line Счет N : (1)1963034 [14:21:37]line ИНН: 02508201610067 [14:21:37]line Контрольно-Кассовый Чек [14:21:37]line ПРОДАЖА [14:21:37]line ТРК (МРК, ГНК) : 43 [14:21:37]line Товар: 2710124130 [14:21:37]line Аи-92-К-5 [14:21:37]line 4.490 * 66.90 [14:21:37]line = 300.38 [14:21:37]line НДС 12% НСП 1% [14:21:37]line > о реализуемом товаре [14:21:37]line ОКРУГЛЕНИЕ: -0.38 [14:21:37]line ИТОГО: 300.00 [14:21:37]line Внесено: 300.00 [14:21:37]line СДАЧА: 0.00 [14:21:37]line НСП 1% : 2.66 [14:21:37]line НДС 12% : 31.90 [14:21:37]line Наличными: 300.00 [14:21:37]line Безнал.: 0.00 [14:21:37]line Место: АЗС № 133 "Партнер Нефть" [14:21:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:21:37]line СНО: Общий режим [14:21:37]line Чек 150 20.10.2024 14:21 [14:21:37]line Смена: 170 ФФД: 1.0 [14:21:37]line ЗНМ: 0300000020 [14:21:37]line РНМ: 0000000000161154 [14:21:37]line Версия ККМ: v1.0 [14:21:37]line ФМ: 0000000000963323 [14:21:37]line ФД: 73824 [14:21:37]line ФПД: 64508816030010 [14:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142138&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73824&fm=64508816030010&tin=02508201610067®Number=0000000000161154&sum=30000 [14:21:38]OFD Sender: Processing packet 73824 [packets to send 15, broken 14] [14:21:38]ProducePacketName [14:21:38]name=ofd_packets/00073824 [14:21:38]OFD Sender: To server: pG, [14:21:38]CommunicateWithHost lk.salyk.kg:30040 [14:21:38]ConnectInit lk.salyk.kg [14:21:38]written 0, free lines is 4095 [14:21:38]Write to MH i2c: 01 00 00 50 23 73 [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: 01 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: 01 07 00 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: 01 07 00 50 23 00 00 00 00 00 B9 0C 3F [14:21:38]RasterBufferAndPrint [14:21:38]line [14:21:38]line [14:21:38]line [14:21:38]line [14:21:38]line [14:21:38]written 0, free lines is 3261 [14:21:38]MH_Cut [14:21:38]Write to MH i2c: D1 01 00 57 23 01 4C [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: D1 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: D1 01 00 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: D1 01 00 57 23 00 4B [14:21:38]Write to MH i2c: 01 00 00 58 23 7B [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:39]*** Cut start [14:21:39]*** Partial cut [14:21:39]*** CUTSNS_PIN = 1 [14:21:39]*** CUTSNS_PIN = 0 [14:21:39]*** Brake cut motor [14:21:40]Read from MH i2c: 01 [14:21:40]MH_I2C_Read... [14:21:40]*** Stop cut motor [14:21:40]*** Cut end [14:21:40]Read from MH i2c: 01 07 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 07 00 58 23 00 00 00 00 00 FF 0F 90 [14:21:40]process_action close_receipt done [14:21:40]requested_data is exist [14:21:40]produce_requested_data [14:21:40]requested_item fm.sn is exist - process it [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 11 00 00 [14:21:40]Write to MH i2c: E2 08 00 59 23 80 11 00 00 00 00 00 00 F6 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 17 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 17 00 59 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 43 [14:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:21:40]wFMCommunicate OK [14:21:40]requested_item fd.num is exist - process it [14:21:40]SAM_PROTO_GetFieldsCounters [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 13 00 00 [14:21:40]Write to MH i2c: E2 08 00 5A 23 80 13 00 00 00 00 00 00 F9 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 62 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 62 00 5A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 60 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [14:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 60 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:40]wFMCommunicate OK [14:21:40]SAM_PROTO_GetFieldsCounters done [14:21:40]requested_item shift.num is exist - process it [14:21:40]requested_item shift.opened is exist - process it [14:21:40]req_shift_opened [14:21:40]FM_GetShiftState [14:21:40]SAM_PROTO_GetShiftState [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 13 01 00 [14:21:40]Write to MH i2c: E2 08 00 5B 23 80 13 01 00 00 00 00 00 FB [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 0E 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 0E 00 5B 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 40 [14:21:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:21:40]wFMCommunicate OK [14:21:40]SAM_PROTO_GetShiftState done [14:21:40]FM_GetShiftState done [14:21:40]req_shift_opened done [14:21:40]requested_item shift.open_date is exist - process it [14:21:40]req_shift_open_date [14:21:40]req_shift_open_date done [14:21:40]produce_requested_data done [14:21:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73824,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:21:40]process_action_free close_receipt [14:21:40]json_value_free [14:21:40]json_value_free done [14:21:40]process_json_proto returns [14:21:40]Send response to host [14:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73824,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:21:40]free response buf [14:21:40]execute_script done [14:21:40]execute_script returns [14:21:40]free content buf [14:21:40]Sock 9.Close socket [14:21:40]Sock 9.Thread stoped [14:22:08]accept exits with 8 [14:22:08]New connection [14:22:08]New thread 3067432292 created [14:22:08]Thread 3067575652 joined [14:22:08]Waiting for new connection... [14:22:08] Sock 8.Parse request [14:22:08]Sock 8.Check first char [14:22:08]Sock 8.First char is OK [14:22:08]request: POST /json_proto HTTP/1.0 [14:22:08]Method: POST [14:22:08]URL: /json_proto [14:22:08]Method is POST - this is cgi request [14:22:08]url: /json_proto [14:22:08]query_string will be loaded in cgi processing [14:22:08]execute_cgi json_proto POST (null) [14:22:08]execute_cgi path=json_proto method=POST [14:22:08]POST find Content-Length [14:22:08]Host: 172.17.44.196:8080 [14:22:08]Content-Length: 968 [14:22:08]Content-Type: application/json [14:22:08] [14:22:08]POST finish read [14:22:08]Found Content-Length = 968 [14:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272798", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:08]execute_script... [14:22: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)272798", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:08]POST & json_proto [14:22:08]process_json_proto [14:22:08]json parsed OK: [14:22:08]protocol is kg_v1.0 [14:22:08]action value=close_receipt [14:22:08]process_action close_receipt [14:22:08]cmd_close_receipt [14:22:08]MH_GetDate [14:22:08]Write to MH i2c: F0 00 00 5C 23 6E [14:22:08]Write i2c OK [14:22:08]MH_I2C_Read... [14:22:08]Read from MH i2c: F0 [14:22:08]MH_I2C_Read... [14:22:08]Read from MH i2c: F0 09 00 [14:22:08]MH_I2C_Read... [14:22:08]Read from MH i2c: F0 09 00 5C 23 00 12 12 15 67 E7 19 F8 65 74 [14:22:08]GetLastDocTimeStamp 1729434098 [14:22:08]current date 1729434130 [14:22:08]FM_GetShiftState [14:22:08]SAM_PROTO_GetShiftState [14:22:08]wFMCommunicate request_size=4 [14:22:08]MH_SAM_APDU [14:22:08]CAPDU: 80 13 01 00 [14:22:08]Write to MH i2c: E2 08 00 5D 23 80 13 01 00 00 00 00 00 FD [14:22:08]Write i2c OK [14:22:08]MH_I2C_Read... [14:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:08]Read from MH i2c: E2 [14:22:08]MH_I2C_Read... [14:22:08]Read from MH i2c: E2 0E 00 [14:22:08]MH_I2C_Read... [14:22:08]Read from MH i2c: E2 0E 00 5D 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 42 [14:22:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:22:08]wFMCommunicate OK [14:22:08]SAM_PROTO_GetShiftState done [14:22:08]FM_GetShiftState done [14:22:08]opened in 1729384303 [14:22:08]opened+sec_in_day 1729470703 [14:22:08]quantity*price = 8500 [14:22:08]sum+1 = 8501 [14:22:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 151 20.10.2024 14:22 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73825 ФПД: 217281246013183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142210&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73825&fm=217281246013183&tin=02508201610067®Number=0000000000161154&sum=10000 0 [14:22:10]StoreToDocumentArchive [14:22:10]shift 170 fd 73825 [14:22:10]save to /storage/0170/doc_00073825 [14:22:10]save last doc name /storage/0170/doc_00073825 to /storage/kkm_last_doc_name [14:22:10]save OK [14:22:10]Clear old archive folders... [14:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=414 [14:22:10]tlvbuf is 0037AFF0 [14:22:10]SAM_PROTO_ClearQueue [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 09 00 00 [14:22:10]Write to MH i2c: E2 08 00 6A 23 80 09 00 00 00 00 00 00 FF [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [14:22:10]RAPDU: 90 00 [14:22:10]wFMCommunicate OK [14:22:10]SAM_PROTO_ClearQueue done [14:22:10]KKMCreateOFDPacket [14:22:10]OFDProtocolAddRootSTLVToBuf [14:22:10]FM_MakeSignedData [14:22:10]FM_MakeSignedData [14:22:10]SAM_PROTO_SignData [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 0D 01 02 [14:22:10]Write to MH i2c: E2 08 00 6B 23 80 0D 01 02 00 00 00 00 07 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [14:22:10]RAPDU: 90 00 [14:22:10]wFMCommunicate OK [14:22:10]wFMCommunicate request_size=255 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [14:22:10]Write to MH i2c: E2 02 01 6C 23 80 0D 02 02 FA 00 03 00 9E 01 1E 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 E5 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [14:22:10]RAPDU: 90 00 [14:22:10]wFMCommunicate OK [14:22:10]wFMCommunicate request_size=173 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 12 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 20 01 00 35 04 06 00 C5 9D BB 7C 26 FF [14:22:10]Write to MH i2c: E2 B0 00 6D 23 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 12 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 20 01 00 35 04 06 00 C5 9D BB 7C 26 FF 00 00 A2 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [14:22:10]RAPDU: 90 00 [14:22:10]wFMCommunicate OK [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 0D 03 02 [14:22:10]Write to MH i2c: E2 08 00 6E 23 80 0D 03 02 00 00 00 00 0C [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 0B 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 0B 00 6E 23 00 76 6A B2 FD A2 CD 29 78 90 00 AC [14:22:10]RAPDU: 76 6A B2 FD A2 CD 29 78 90 00 [14:22:10]wFMCommunicate OK [14:22:10]SAM_PROTO_SignData done [14:22:10]FM_MakeSignedData done [14:22:10]CreateOFDProtocolMessage [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 11 00 00 [14:22:10]Write to MH i2c: E2 08 00 6F 23 80 11 00 00 00 00 00 00 0C [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 17 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 17 00 6F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 59 [14:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:22:10]wFMCommunicate OK [14:22:10]CreateOFDProtocolMessage done [14:22:10]OFDSenderStorePacket 73825 [14:22:10]StoreOFDPacket docnum=73825 [14:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B2 01 00 00 DE EC AA 01 41 C1 5A 03 01 00 03 00 9E 01 1E 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 12 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 20 01 00 35 04 06 00 C5 9D BB 7C 26 FF 76 6A B2 FD A2 CD 29 78 [14:22:10]CheckFolder [14:22:10]dirname=/storage/ofd_packets [14:22:10]CheckFolder done [14:22:10]ProducePacketName [14:22:10]name=ofd_packets/00073825 [14:22:10]NVStorageSaveData ofd_packets/00073825 [14:22:10]File name is /storage/ofd_packets/00073825 [14:22:10]Write 464 bytes [14:22:10]NVStorageSaveData done [14:22:10]OFDSenderStorePacket done [14:22:10]KKMCreateOFDPacket done [14:22:10]NVStorageSaveData kkm_last_timestamp [14:22:10]File name is /storage/kkm_last_timestamp [14:22:10]Write 4 bytes [14:22:10]NVStorageSaveData done [14:22:10]ExternCall_PrintAddStr [14:22:10]wPrintStart [14:22:10]Write to MH i2c: 01 00 00 70 23 93 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 70 23 00 00 00 00 00 FF 0F A8 [14:22:11]RasterBufferAndPrint [14:22:11]line Счет N : (3)272798 [14:22:11]line ИНН: 02508201610067 [14:22:11]line Контрольно-Кассовый Чек [14:22:11]line ПРОДАЖА [14:22:11]line Товар: 4600682557456 [14:22:11]line Напиток FLash up energy эн ж/б 0,5/0,45л [14:22:11]line 1.000 * 85.00 [14:22:11]line = 85.00 [14:22:11]line НДС 12% НСП 1% [14:22:11]line > о реализуемом товаре [14:22:11]line Товар: 4700000160099 [14:22:11]line Снек Курут индивидуальный [14:22:11]line 1.000 * 15.00 [14:22:11]line = 15.00 [14:22:11]line НДС 12% НСП 1% [14:22:11]line > о реализуемом товаре [14:22:11]line ИТОГО: 100.00 [14:22:11]line НСП 1% : 0.88 [14:22:11]line НДС 12% : 10.62 [14:22:11]line Наличными: 100.00 [14:22:11]line Безнал.: 0.00 [14:22:11]line Место: АЗС № 133 "Партнер Нефть" [14:22:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:22:11]line СНО: Общий режим [14:22:11]line Чек 151 20.10.2024 14:22 [14:22:11]line Смена: 170 ФФД: 1.0 [14:22:11]line ЗНМ: 0300000020 [14:22:11]line РНМ: 0000000000161154 [14:22:11]line Версия ККМ: v1.0 [14:22:11]line ФМ: 0000000000963323 [14:22:11]line ФД: 73825 [14:22:11]line ФПД: 217281246013183 [14:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142210&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73825&fm=217281246013183&tin=02508201610067®Number=0000000000161154&sum=10000 [14:22:11]line 0 [14:22:11]written 0, free lines is 4095 [14:22:11]Write to MH i2c: 01 00 00 9E 23 C1 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 9E 23 00 00 00 00 00 76 0C 4A [14:22:11]RasterBufferAndPrint [14:22:11]line [14:22:11]line [14:22:11]line [14:22:11]line [14:22:11]line [14:22:11]written 0, free lines is 3195 [14:22:11]MH_Cut [14:22:11]Write to MH i2c: D1 01 00 A5 23 01 9A [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: D1 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: D1 01 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: D1 01 00 A5 23 00 99 [14:22:11]Write to MH i2c: 01 00 00 A6 23 C9 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:12]*** Cut start [14:22:12]*** Partial cut [14:22:12]*** CUTSNS_PIN = 1 [14:22:12]*** CUTSNS_PIN = 0 [14:22:12]*** Brake cut motor [14:22:13]Read from MH i2c: 01 [14:22:13]MH_I2C_Read... [14:22:13]*** Stop cut motor [14:22:13]*** Cut end [14:22:13]Read from MH i2c: 01 07 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 A6 23 00 00 00 00 00 FF 0F DE [14:22:13]process_action close_receipt done [14:22:13]requested_data is exist [14:22:13]produce_requested_data [14:22:13]requested_item fm.sn is exist - process it [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 11 00 00 [14:22:13]Write to MH i2c: E2 08 00 A7 23 80 11 00 00 00 00 00 00 44 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 A7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [14:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:22:13]wFMCommunicate OK [14:22:13]requested_item fd.num is exist - process it [14:22:13]SAM_PROTO_GetFieldsCounters [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 00 00 [14:22:13]Write to MH i2c: E2 08 00 A8 23 80 13 00 00 00 00 00 00 47 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 A8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 61 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [14:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 61 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetFieldsCounters done [14:22:13]requested_item shift.num is exist - process it [14:22:13]requested_item shift.opened is exist - process it [14:22:13]req_shift_opened [14:22:13]FM_GetShiftState [14:22:13]SAM_PROTO_GetShiftState [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 01 00 [14:22:13]Write to MH i2c: E2 08 00 A9 23 80 13 01 00 00 00 00 00 49 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 0E 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 0E 00 A9 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8E [14:22:13]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetShiftState done [14:22:13]FM_GetShiftState done [14:22:13]req_shift_opened done [14:22:13]requested_item shift.open_date is exist - process it [14:22:13]req_shift_open_date [14:22:13]req_shift_open_date done [14:22:13]produce_requested_data done [14:22:13]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73825,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:22:13]process_action_free close_receipt [14:22:13]json_value_free [14:22:13]json_value_free done [14:22:13]process_json_proto returns [14:22:13]Send response to host [14:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73825,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:22:13]free response buf [14:22:13]execute_script done [14:22:13]execute_script returns [14:22:13]free content buf [14:22:13]Sock 8.Close socket [14:22:13]Sock 8.Thread stoped [14:22:45]accept exits with 9 [14:22:45]New connection [14:22:45]New thread 3067575652 created [14:22:45]Thread 3067432292 joined [14:22:45]Waiting for new connection... [14:22:45] Sock 9.Parse request [14:22:45]Sock 9.Check first char [14:22:45]Sock 9.First char is OK [14:22:45]request: POST /json_proto HTTP/1.0 [14:22:45]Method: POST [14:22:45]URL: /json_proto [14:22:45]Method is POST - this is cgi request [14:22:45]url: /json_proto [14:22:45]query_string will be loaded in cgi processing [14:22:45]execute_cgi json_proto POST (null) [14:22:45]execute_cgi path=json_proto method=POST [14:22:45]POST find Content-Length [14:22:45]Host: 172.17.44.196:8080 [14:22:45]Content-Length: 678 [14:22:45]Content-Type: application/json [14:22:45] [14:22:45]POST finish read [14:22:45]Found Content-Length = 678 [14:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963035", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:45]execute_script... [14:22: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 : (1)1963035", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:45]POST & json_proto [14:22:45]process_json_proto [14:22:45]json parsed OK: [14:22:45]protocol is kg_v1.0 [14:22:45]action value=close_receipt [14:22:45]process_action close_receipt [14:22:45]cmd_close_receipt [14:22:45]MH_GetDate [14:22:45]Write to MH i2c: F0 00 00 AA 23 BC [14:22:45]Write i2c OK [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: F0 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: F0 09 00 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: F0 09 00 AA 23 00 37 12 15 67 E7 19 F8 65 E7 [14:22:45]GetLastDocTimeStamp 1729434130 [14:22:45]current date 1729434167 [14:22:45]FM_GetShiftState [14:22:45]SAM_PROTO_GetShiftState [14:22:45]wFMCommunicate request_size=4 [14:22:45]MH_SAM_APDU [14:22:45]CAPDU: 80 13 01 00 [14:22:45]Write to MH i2c: E2 08 00 AB 23 80 13 01 00 00 00 00 00 4B [14:22:45]Write i2c OK [14:22:45]MH_I2C_Read... [14:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:45]Read from MH i2c: E2 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: E2 0E 00 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: E2 0E 00 AB 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 90 [14:22:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:22:45]wFMCommunicate OK [14:22:45]SAM_PROTO_GetShiftState done [14:22:45]FM_GetShiftState done [14:22:45]opened in 1729384303 [14:22:45]opened+sec_in_day 1729470703 [14:22:45]quantity*price = 30038 [14:22:45]sum+1 = 30039 [14:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 152 20.10.2024 14:22 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73826 ФПД: 42275961691251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142247&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73826&fm=42275961691251&tin=02508201610067®Number=0000000000161154&sum=30000 [14:22:46]StoreToDocumentArchive [14:22:46]shift 170 fd 73826 [14:22:46]save to /storage/0170/doc_00073826 [14:22:46]save last doc name /storage/0170/doc_00073826 to /storage/kkm_last_doc_name [14:22:46]save OK [14:22:46]Clear old archive folders... [14:22:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:46]tlvbuf is B6FED0D0 [14:22:46]SAM_PROTO_ClearQueue [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 09 00 00 [14:22:46]Write to MH i2c: E2 08 00 B8 23 80 09 00 00 00 00 00 00 4D [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_ClearQueue done [14:22:46]KKMCreateOFDPacket [14:22:46]OFDProtocolAddRootSTLVToBuf [14:22:46]FM_MakeSignedData [14:22:46]FM_MakeSignedData [14:22:46]SAM_PROTO_SignData [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 01 02 [14:22:46]Write to MH i2c: E2 08 00 B9 23 80 0D 01 02 00 00 00 00 55 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]wFMCommunicate request_size=255 [14:22:46]MH_SAM_APDU [14:22:46]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 98 00 00 00 F4 03 04 00 37 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 62 20 01 00 35 04 06 00 26 [14:22:46]Write to MH i2c: E2 02 01 BA 23 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 98 00 00 00 F4 03 04 00 37 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 62 20 01 00 35 04 06 00 26 00 00 7B [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]wFMCommunicate request_size=10 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 02 02 05 73 23 AD DC 73 [14:22:46]Write to MH i2c: E2 0D 00 BB 23 80 0D 02 02 05 00 73 23 AD DC 73 00 00 F4 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 BB 23 00 90 00 52 [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 03 02 [14:22:46]Write to MH i2c: E2 08 00 BC 23 80 0D 03 02 00 00 00 00 5A [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0B 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0B 00 BC 23 00 DC DC 81 0A 24 B2 0E F3 90 00 75 [14:22:46]RAPDU: DC DC 81 0A 24 B2 0E F3 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_SignData done [14:22:46]FM_MakeSignedData done [14:22:46]CreateOFDProtocolMessage [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 11 00 00 [14:22:46]Write to MH i2c: E2 08 00 BD 23 80 11 00 00 00 00 00 00 5A [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:47]Read from MH i2c: E2 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 17 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 17 00 BD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [14:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:22:47]wFMCommunicate OK [14:22:47]CreateOFDProtocolMessage done [14:22:47]OFDSenderStorePacket 73826 [14:22:47]StoreOFDPacket docnum=73826 [14:22:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FC 07 07 01 96 A5 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 98 00 00 00 F4 03 04 00 37 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 62 20 01 00 35 04 06 00 26 73 23 AD DC 73 DC DC 81 0A 24 B2 0E F3 [14:22:47]CheckFolder [14:22:47]dirname=/storage/ofd_packets [14:22:47]CheckFolder done [14:22:47]ProducePacketName [14:22:47]name=ofd_packets/00073826 [14:22:47]NVStorageSaveData ofd_packets/00073826 [14:22:47]File name is /storage/ofd_packets/00073826 [14:22:47]Write 301 bytes [14:22:47]NVStorageSaveData done [14:22:47]OFDSenderStorePacket done [14:22:47]KKMCreateOFDPacket done [14:22:47]NVStorageSaveData kkm_last_timestamp [14:22:47]File name is /storage/kkm_last_timestamp [14:22:47]Write 4 bytes [14:22:47]NVStorageSaveData done [14:22:47]ExternCall_PrintAddStr [14:22:47]wPrintStart [14:22:47]Write to MH i2c: 01 00 00 BE 23 E1 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 FF 0F F6 [14:22:47]RasterBufferAndPrint [14:22:47]line Счет N : (1)1963035 [14:22:47]line ИНН: 02508201610067 [14:22:47]line Контрольно-Кассовый Чек [14:22:47]line ПРОДАЖА [14:22:47]line ТРК (МРК, ГНК) : 53 [14:22:47]line Товар: 2710124130 [14:22:47]line Аи-92-К-5 [14:22:47]line 4.490 * 66.90 [14:22:47]line = 300.38 [14:22:47]line НДС 12% НСП 1% [14:22:47]line > о реализуемом товаре [14:22:47]line ОКРУГЛЕНИЕ: -0.38 [14:22:47]line ИТОГО: 300.00 [14:22:47]line Внесено: 300.00 [14:22:47]line СДАЧА: 0.00 [14:22:47]line НСП 1% : 2.66 [14:22:47]line НДС 12% : 31.90 [14:22:47]line Наличными: 300.00 [14:22:47]line Безнал.: 0.00 [14:22:47]line Место: АЗС № 133 "Партнер Нефть" [14:22:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:22:47]line СНО: Общий режим [14:22:47]line Чек 152 20.10.2024 14:22 [14:22:47]line Смена: 170 ФФД: 1.0 [14:22:47]line ЗНМ: 0300000020 [14:22:47]line РНМ: 0000000000161154 [14:22:47]line Версия ККМ: v1.0 [14:22:47]line ФМ: 0000000000963323 [14:22:47]line ФД: 73826 [14:22:47]line ФПД: 42275961691251 [14:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142247&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73826&fm=42275961691251&tin=02508201610067®Number=0000000000161154&sum=30000 [14:22:47]written 0, free lines is 4095 [14:22:47]Write to MH i2c: 01 00 00 E8 23 0B [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 E8 23 00 00 00 00 00 B7 0C D5 [14:22:47]RasterBufferAndPrint [14:22:47]line [14:22:47]line [14:22:47]line [14:22:47]line [14:22:47]line [14:22:47]written 0, free lines is 3259 [14:22:47]MH_Cut [14:22:47]Write to MH i2c: D1 01 00 EF 23 01 E4 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D1 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D1 01 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D1 01 00 EF 23 00 E3 [14:22:47]Write to MH i2c: 01 00 00 F0 23 13 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:48]*** Cut start [14:22:48]*** Partial cut [14:22:48]*** CUTSNS_PIN = 1 [14:22:48]*** CUTSNS_PIN = 0 [14:22:48]*** Brake cut motor [14:22:49]Read from MH i2c: 01 [14:22:49]MH_I2C_Read... [14:22:49]*** Stop cut motor [14:22:49]*** Cut end [14:22:49]Read from MH i2c: 01 07 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: 01 07 00 F0 23 00 00 00 00 00 FF 0F 28 [14:22:49]process_action close_receipt done [14:22:49]requested_data is exist [14:22:49]produce_requested_data [14:22:49]requested_item fm.sn is exist - process it [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 11 00 00 [14:22:49]Write to MH i2c: E2 08 00 F1 23 80 11 00 00 00 00 00 00 8E [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 17 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 17 00 F1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [14:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:22:49]wFMCommunicate OK [14:22:49]requested_item fd.num is exist - process it [14:22:49]SAM_PROTO_GetFieldsCounters [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 13 00 00 [14:22:49]Write to MH i2c: E2 08 00 F2 23 80 13 00 00 00 00 00 00 91 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 62 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 62 00 F2 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 62 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [14:22:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 62 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:49]wFMCommunicate OK [14:22:49]SAM_PROTO_GetFieldsCounters done [14:22:49]requested_item shift.num is exist - process it [14:22:49]requested_item shift.opened is exist - process it [14:22:49]req_shift_opened [14:22:49]FM_GetShiftState [14:22:49]SAM_PROTO_GetShiftState [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 13 01 00 [14:22:49]Write to MH i2c: E2 08 00 F3 23 80 13 01 00 00 00 00 00 93 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:49]Read from MH i2c: E2 0E 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 0E 00 F3 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [14:22:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:22:49]wFMCommunicate OK [14:22:49]SAM_PROTO_GetShiftState done [14:22:49]FM_GetShiftState done [14:22:49]req_shift_opened done [14:22:49]requested_item shift.open_date is exist - process it [14:22:49]req_shift_open_date [14:22:49]req_shift_open_date done [14:22:49]produce_requested_data done [14:22:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73826,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:22:49]process_action_free close_receipt [14:22:49]json_value_free [14:22:49]json_value_free done [14:22:49]process_json_proto returns [14:22:49]Send response to host [14:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73826,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:22:49]free response buf [14:22:49]execute_script done [14:22:49]execute_script returns [14:22:49]free content buf [14:22:49]Sock 9.Close socket [14:22:49]Sock 9.Thread stoped [14:23:51]ConnectInit Can't connect to host [14:23:51]CommunicateWithHost connect error [14:23:51]CommunicateWithHost err = -1 [14:23:51]OFD Sender: Server communicate error [14:23:51]OFD Sender: Processing packet 73824 [packets to send 17, broken 14] [14:23:51]ProducePacketName [14:23:51]name=ofd_packets/00073824 [14:23:51]OFD Sender: To server: pG, [14:23:51]CommunicateWithHost lk.salyk.kg:30040 [14:23:51]ConnectInit lk.salyk.kg [14:23:51]Connected sock=9 [14:23:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 80 41 07 01 2C 24 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 96 00 00 00 F4 03 04 00 F2 11 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 20 01 00 35 04 06 00 3A AB A1 10 79 3A 49 41 0A 09 14 FD 3F C5 [14:23:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 06 98 47 00 5C 66 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 39 36 33 33 32 33 10 04 04 00 60 20 01 00 F4 03 04 00 5B BB 14 67 B6 04 01 00 00 13 71 D5 7D 92 6A B4 47 [14:23:51]CommunicateWithHost err = 0 [14:23:51]CheckOFDResponse [14:23:51]1017 (14) - 77093643461234 [14:23:51]1041 (16) - 0000000000963323 [14:23:51]1040 (4) - 73824 [14:23:51]1012 (4) - 20.10.2024 08:12 [14:23:51]1206 (1) - 0 [14:23:51]OFD Sender: Remove packet 73824 [14:23:51]ProducePacketName [14:23:51]name=ofd_packets/00073824 [14:23:51]NVStorageDeleteData [14:23:52]OFD Sender: Processing packet 73825 [packets to send 16, broken 14] [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00073825 [14:23:52]OFD Sender: To server: pG, [14:23:52]CommunicateWithHost lk.salyk.kg:30040 [14:23:52]ConnectInit lk.salyk.kg [14:23:52]Connected sock=9 [14:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B2 01 00 00 DE EC AA 01 41 C1 5A 03 01 00 03 00 9E 01 1E 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 12 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 20 01 00 35 04 06 00 C5 9D BB 7C 26 FF 76 6A B2 FD A2 CD 29 78 [14:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DE 61 47 00 53 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 39 36 33 33 32 33 10 04 04 00 61 20 01 00 F4 03 04 00 5C BB 14 67 B6 04 01 00 00 B4 C3 35 81 5E 0E A4 38 [14:23:52]CommunicateWithHost err = 0 [14:23:52]CheckOFDResponse [14:23:52]1017 (14) - 77093643461234 [14:23:52]1041 (16) - 0000000000963323 [14:23:52]1040 (4) - 73825 [14:23:52]1012 (4) - 20.10.2024 08:12 [14:23:52]1206 (1) - 0 [14:23:52]OFD Sender: Remove packet 73825 [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00073825 [14:23:52]NVStorageDeleteData [14:23:52]OFD Sender: Processing packet 73826 [packets to send 15, broken 14] [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00073826 [14:23:52]OFD Sender: To server: pG, [14:23:52]CommunicateWithHost lk.salyk.kg:30040 [14:23:52]ConnectInit lk.salyk.kg [14:23:53]accept exits with 8 [14:23:53]New connection [14:23:53]New thread 3067432292 created [14:23:53]Thread 3067575652 joined [14:23:53]Waiting for new connection... [14:23:53] Sock 8.Parse request [14:23:53]Sock 8.Check first char [14:23:53]Sock 8.First char is OK [14:23:53]request: POST /json_proto HTTP/1.0 [14:23:53]Method: POST [14:23:53]URL: /json_proto [14:23:53]Method is POST - this is cgi request [14:23:53]url: /json_proto [14:23:53]query_string will be loaded in cgi processing [14:23:53]execute_cgi json_proto POST (null) [14:23:53]execute_cgi path=json_proto method=POST [14:23:53]POST find Content-Length [14:23:53]Host: 172.17.44.196:8080 [14:23:53]Content-Length: 678 [14:23:53]Content-Type: application/json [14:23:53] [14:23:53]POST finish read [14:23:53]Found Content-Length = 678 [14:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963036", "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" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:53]execute_script... [14:23: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 : (1)1963036", "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" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:53]POST & json_proto [14:23:53]process_json_proto [14:23:53]json parsed OK: [14:23:53]protocol is kg_v1.0 [14:23:53]action value=close_receipt [14:23:53]process_action close_receipt [14:23:53]cmd_close_receipt [14:23:53]MH_GetDate [14:23:53]Write to MH i2c: F0 00 00 F4 23 06 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: F0 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: F0 09 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: F0 09 00 F4 23 00 7B 12 15 67 E7 19 F8 65 75 [14:23:53]GetLastDocTimeStamp 1729434167 [14:23:53]current date 1729434235 [14:23:53]FM_GetShiftState [14:23:53]SAM_PROTO_GetShiftState [14:23:53]wFMCommunicate request_size=4 [14:23:53]MH_SAM_APDU [14:23:53]CAPDU: 80 13 01 00 [14:23:53]Write to MH i2c: E2 08 00 F5 23 80 13 01 00 00 00 00 00 95 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:53]Read from MH i2c: E2 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 0E 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 0E 00 F5 23 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DA [14:23:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:23:53]wFMCommunicate OK [14:23:53]SAM_PROTO_GetShiftState done [14:23:53]FM_GetShiftState done [14:23:53]opened in 1729384303 [14:23:53]opened+sec_in_day 1729470703 [14:23:53]quantity*price = 16056 [14:23:53]sum+1 = 16057 [14:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 153 20.10.2024 14:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73827 ФПД: 100237618844387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142355&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73827&fm=100237618844387&tin=02508201610067®Number=0000000000161154&sum=16000 [14:23:54]StoreToDocumentArchive [14:23:54]shift 170 fd 73827 [14:23:54]save to /storage/0170/doc_00073827 [14:23:54]save last doc name /storage/0170/doc_00073827 to /storage/kkm_last_doc_name [14:23:54]save OK [14:23:54]Clear old archive folders... [14:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:54]tlvbuf is 002F4C30 [14:23:54]SAM_PROTO_ClearQueue [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 09 00 00 [14:23:54]Write to MH i2c: E2 08 00 02 24 80 09 00 00 00 00 00 00 98 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]SAM_PROTO_ClearQueue done [14:23:54]KKMCreateOFDPacket [14:23:54]OFDProtocolAddRootSTLVToBuf [14:23:54]FM_MakeSignedData [14:23:54]FM_MakeSignedData [14:23:54]SAM_PROTO_SignData [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 0D 01 02 [14:23:54]Write to MH i2c: E2 08 00 03 24 80 0D 01 02 00 00 00 00 A0 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]wFMCommunicate request_size=255 [14:23:54]MH_SAM_APDU [14:23: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 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 A9 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 99 00 00 00 F4 03 04 00 7B 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 20 01 00 35 04 06 00 5B [14:23:54]Write to MH i2c: E2 02 01 04 24 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 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 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 A9 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 99 00 00 00 F4 03 04 00 7B 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 20 01 00 35 04 06 00 5B 00 00 1C [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 04 24 00 90 00 9C [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]wFMCommunicate request_size=10 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 0D 02 02 05 2A 63 AA 12 E3 [14:23:54]Write to MH i2c: E2 0D 00 05 24 80 0D 02 02 05 00 2A 63 AA 12 E3 00 00 D9 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 05 24 00 90 00 9D [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 0D 03 02 [14:23:54]Write to MH i2c: E2 08 00 06 24 80 0D 03 02 00 00 00 00 A5 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 0B 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 0B 00 06 24 00 22 13 5F 3D 9B 52 FB 46 90 00 A5 [14:23:54]RAPDU: 22 13 5F 3D 9B 52 FB 46 90 00 [14:23:54]wFMCommunicate OK [14:23:54]SAM_PROTO_SignData done [14:23:54]FM_MakeSignedData done [14:23:54]CreateOFDProtocolMessage [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 11 00 00 [14:23:54]Write to MH i2c: E2 08 00 07 24 80 11 00 00 00 00 00 00 A5 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 17 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 17 00 07 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [14:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:23:54]wFMCommunicate OK [14:23:54]CreateOFDProtocolMessage done [14:23:54]OFDSenderStorePacket 73827 [14:23:54]StoreOFDPacket docnum=73827 [14:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 33 57 07 01 7B 74 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 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 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 A9 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 99 00 00 00 F4 03 04 00 7B 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 20 01 00 35 04 06 00 5B 2A 63 AA 12 E3 22 13 5F 3D 9B 52 FB 46 [14:23:54]CheckFolder [14:23:54]dirname=/storage/ofd_packets [14:23:54]CheckFolder done [14:23:54]ProducePacketName [14:23:54]name=ofd_packets/00073827 [14:23:54]NVStorageSaveData ofd_packets/00073827 [14:23:54]File name is /storage/ofd_packets/00073827 [14:23:54]Write 301 bytes [14:23:54]NVStorageSaveData done [14:23:54]OFDSenderStorePacket done [14:23:54]KKMCreateOFDPacket done [14:23:54]NVStorageSaveData kkm_last_timestamp [14:23:54]File name is /storage/kkm_last_timestamp [14:23:54]Write 4 bytes [14:23:54]NVStorageSaveData done [14:23:54]ExternCall_PrintAddStr [14:23:54]wPrintStart [14:23:54]Write to MH i2c: 01 00 00 08 24 2C [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 07 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 07 00 08 24 00 00 00 00 00 FF 0F 41 [14:23:54]RasterBufferAndPrint [14:23:54]line Счет N : (1)1963036 [14:23:54]line ИНН: 02508201610067 [14:23:54]line Контрольно-Кассовый Чек [14:23:54]line ПРОДАЖА [14:23:54]line ТРК (МРК, ГНК) : 33 [14:23:54]line Товар: 2710124130 [14:23:54]line Аи-92-К-5 [14:23:54]line 2.400 * 66.90 [14:23:54]line = 160.56 [14:23:54]line НДС 12% НСП 1% [14:23:54]line > о реализуемом товаре [14:23:54]line ОКРУГЛЕНИЕ: -0.56 [14:23:54]line ИТОГО: 160.00 [14:23:54]line Внесено: 160.00 [14:23:54]line СДАЧА: 0.00 [14:23:54]line НСП 1% : 1.42 [14:23:54]line НДС 12% : 17.05 [14:23:54]line Наличными: 160.00 [14:23:54]line Безнал.: 0.00 [14:23:54]line Место: АЗС № 133 "Партнер Нефть" [14:23:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:23:54]line СНО: Общий режим [14:23:54]line Чек 153 20.10.2024 14:23 [14:23:54]line Смена: 170 ФФД: 1.0 [14:23:54]line ЗНМ: 0300000020 [14:23:55]line РНМ: 0000000000161154 [14:23:55]line Версия ККМ: v1.0 [14:23:55]line ФМ: 0000000000963323 [14:23:55]line ФД: 73827 [14:23:55]line ФПД: 100237618844387 [14:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142355&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73827&fm=100237618844387&tin=02508201610067®Number=0000000000161154&sum=16000 [14:23:55]OFD Sender: Processing packet 73827 [packets to send 15, broken 14] [14:23:55]ProducePacketName [14:23:55]name=ofd_packets/00073827 [14:23:55]OFD Sender: To server: pG, [14:23:55]CommunicateWithHost lk.salyk.kg:30040 [14:23:55]ConnectInit lk.salyk.kg [14:23:55]written 0, free lines is 4095 [14:23:55]Connected sock=9 [14:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 33 57 07 01 7B 74 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 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 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 A9 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 99 00 00 00 F4 03 04 00 7B 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 20 01 00 35 04 06 00 5B 2A 63 AA 12 E3 22 13 5F 3D 9B 52 FB 46 [14:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EE B5 47 00 F5 21 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 39 36 33 33 32 33 10 04 04 00 63 20 01 00 F4 03 04 00 5F BB 14 67 B6 04 01 00 00 E9 AF 52 7E AA D1 26 34 [14:23:55]CommunicateWithHost err = 0 [14:23:55]CheckOFDResponse [14:23:55]1017 (14) - 77093643461234 [14:23:55]1041 (16) - 0000000000963323 [14:23:55]1040 (4) - 73827 [14:23:55]1012 (4) - 20.10.2024 08:12 [14:23:55]1206 (1) - 0 [14:23:55]OFD Sender: Remove packet 73827 [14:23:55]ProducePacketName [14:23:55]name=ofd_packets/00073827 [14:23:55]NVStorageDeleteData [14:23:55]Write to MH i2c: 01 00 00 32 24 56 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 32 24 00 00 00 00 00 BB 0C 24 [14:23:55]RasterBufferAndPrint [14:23:55]line [14:23:55]line [14:23:55]line [14:23:55]line [14:23:55]line [14:23:55]written 0, free lines is 3269 [14:23:55]MH_Cut [14:23:55]Write to MH i2c: D1 01 00 39 24 01 2F [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: D1 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: D1 01 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: D1 01 00 39 24 00 2E [14:23:55]Write to MH i2c: 01 00 00 3A 24 5E [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]OFD Sender: No OFD packet to send [14:23:56]*** Cut start [14:23:56]*** Partial cut [14:23:56]*** CUTSNS_PIN = 1 [14:23:56]*** CUTSNS_PIN = 0 [14:23:56]*** Brake cut motor [14:23:56]Read from MH i2c: 01 [14:23:57]MH_I2C_Read... [14:23:57]*** Stop cut motor [14:23:57]*** Cut end [14:23:57]Read from MH i2c: 01 07 00 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: 01 07 00 3A 24 00 00 00 00 00 FF 0F 73 [14:23:57]process_action close_receipt done [14:23:57]requested_data is exist [14:23:57]produce_requested_data [14:23:57]requested_item fm.sn is exist - process it [14:23:57]wFMCommunicate request_size=4 [14:23:57]MH_SAM_APDU [14:23:57]CAPDU: 80 11 00 00 [14:23:57]Write to MH i2c: E2 08 00 3B 24 80 11 00 00 00 00 00 00 D9 [14:23:57]Write i2c OK [14:23:57]MH_I2C_Read... [14:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:57]Read from MH i2c: E2 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: E2 17 00 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: E2 17 00 3B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 26 [14:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:23:57]wFMCommunicate OK [14:23:57]requested_item fd.num is exist - process it [14:23:57]SAM_PROTO_GetFieldsCounters [14:23:57]wFMCommunicate request_size=4 [14:23:57]MH_SAM_APDU [14:23:57]CAPDU: 80 13 00 00 [14:23:57]Write to MH i2c: E2 08 00 3C 24 80 13 00 00 00 00 00 00 DC [14:23:57]Write i2c OK [14:23:57]MH_I2C_Read... [14:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:57]Read from MH i2c: E2 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: E2 62 00 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: E2 62 00 3C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 63 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [14:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 63 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:57]wFMCommunicate OK [14:23:57]SAM_PROTO_GetFieldsCounters done [14:23:57]requested_item shift.num is exist - process it [14:23:57]requested_item shift.opened is exist - process it [14:23:57]req_shift_opened [14:23:57]FM_GetShiftState [14:23:57]SAM_PROTO_GetShiftState [14:23:57]wFMCommunicate request_size=4 [14:23:57]MH_SAM_APDU [14:23:57]CAPDU: 80 13 01 00 [14:23:57]Write to MH i2c: E2 08 00 3D 24 80 13 01 00 00 00 00 00 DE [14:23:57]Write i2c OK [14:23:57]MH_I2C_Read... [14:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:57]Read from MH i2c: E2 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: E2 0E 00 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: E2 0E 00 3D 24 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 23 [14:23:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:23:57]wFMCommunicate OK [14:23:57]SAM_PROTO_GetShiftState done [14:23:57]FM_GetShiftState done [14:23:57]req_shift_opened done [14:23:57]requested_item shift.open_date is exist - process it [14:23:57]req_shift_open_date [14:23:57]req_shift_open_date done [14:23:57]produce_requested_data done [14:23:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73827,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:23:57]process_action_free close_receipt [14:23:57]json_value_free [14:23:57]json_value_free done [14:23:57]process_json_proto returns [14:23:57]Send response to host [14:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73827,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:23:57]free response buf [14:23:57]execute_script done [14:23:57]execute_script returns [14:23:57]free content buf [14:23:57]Sock 8.Close socket [14:23:57]Sock 8.Thread stoped [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:38]accept exits with 11 [14:24:38]New connection [14:24:38]New thread 3067575652 created [14:24:38]Thread 3067432292 joined [14:24:38]Waiting for new connection... [14:24:38] Sock 11.Parse request [14:24:38]Sock 11.Check first char [14:24:38]Sock 11.First char is OK [14:24:38]request: POST /json_proto HTTP/1.0 [14:24:38]Method: POST [14:24:38]URL: /json_proto [14:24:38]Method is POST - this is cgi request [14:24:38]url: /json_proto [14:24:38]query_string will be loaded in cgi processing [14:24:38]execute_cgi json_proto POST (null) [14:24:38]execute_cgi path=json_proto method=POST [14:24:38]POST find Content-Length [14:24:38]Host: 172.17.44.196:8080 [14:24:38]Content-Length: 678 [14:24:38]Content-Type: application/json [14:24:38] [14:24:38]POST finish read [14:24:38]Found Content-Length = 678 [14:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963037", "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" : 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" ] } } [14:24:38]execute_script... [14:24: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 : (1)1963037", "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" : 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" ] } } [14:24:38]POST & json_proto [14:24:38]process_json_proto [14:24:38]json parsed OK: [14:24:38]protocol is kg_v1.0 [14:24:38]action value=close_receipt [14:24:38]process_action close_receipt [14:24:38]cmd_close_receipt [14:24:38]MH_GetDate [14:24:38]Write to MH i2c: F0 00 00 3E 24 51 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: F0 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: F0 09 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: F0 09 00 3E 24 00 A8 12 15 67 E7 19 F8 65 ED [14:24:38]GetLastDocTimeStamp 1729434235 [14:24:38]current date 1729434280 [14:24:38]FM_GetShiftState [14:24:38]SAM_PROTO_GetShiftState [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 13 01 00 [14:24:38]Write to MH i2c: E2 08 00 3F 24 80 13 01 00 00 00 00 00 E0 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0E 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0E 00 3F 24 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 25 [14:24:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_GetShiftState done [14:24:38]FM_GetShiftState done [14:24:38]opened in 1729384303 [14:24:38]opened+sec_in_day 1729470703 [14:24:38]quantity*price = 20003 [14:24:38]sum+1 = 20004 [14:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 154 20.10.2024 14:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73828 ФПД: 56008188244216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142440&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73828&fm=56008188244216&tin=02508201610067®Number=0000000000161154&sum=20000 [14:24:39]StoreToDocumentArchive [14:24:39]shift 170 fd 73828 [14:24:39]save to /storage/0170/doc_00073828 [14:24:39]save last doc name /storage/0170/doc_00073828 to /storage/kkm_last_doc_name [14:24:39]save OK [14:24:39]Clear old archive folders... [14:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:39]tlvbuf is 0039FC90 [14:24:39]SAM_PROTO_ClearQueue [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 09 00 00 [14:24:39]Write to MH i2c: E2 08 00 4C 24 80 09 00 00 00 00 00 00 E2 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 4C 24 00 90 00 E4 [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_ClearQueue done [14:24:39]KKMCreateOFDPacket [14:24:39]OFDProtocolAddRootSTLVToBuf [14:24:39]FM_MakeSignedData [14:24:39]FM_MakeSignedData [14:24:39]SAM_PROTO_SignData [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 01 02 [14:24:39]Write to MH i2c: E2 08 00 4D 24 80 0D 01 02 00 00 00 00 EA [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 4D 24 00 90 00 E5 [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=255 [14:24:39]MH_SAM_APDU [14:24:39]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 9A 00 00 00 F4 03 04 00 A8 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 20 01 00 35 04 06 00 32 [14:24:39]Write to MH i2c: E2 02 01 4E 24 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 9A 00 00 00 F4 03 04 00 A8 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 20 01 00 35 04 06 00 32 00 00 5F [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 4E 24 00 90 00 E6 [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=10 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 02 02 05 F0 6C 2A 30 F8 [14:24:39]Write to MH i2c: E2 0D 00 4F 24 80 0D 02 02 05 00 F0 6C 2A 30 F8 00 00 A5 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 4F 24 00 90 00 E7 [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 03 02 [14:24:39]Write to MH i2c: E2 08 00 50 24 80 0D 03 02 00 00 00 00 EF [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0B 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0B 00 50 24 00 9B 90 F2 B4 32 C7 E0 4C 90 00 E6 [14:24:39]RAPDU: 9B 90 F2 B4 32 C7 E0 4C 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_SignData done [14:24:39]FM_MakeSignedData done [14:24:39]CreateOFDProtocolMessage [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 11 00 00 [14:24:39]Write to MH i2c: E2 08 00 51 24 80 11 00 00 00 00 00 00 EF [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 17 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 17 00 51 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [14:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:24:39]wFMCommunicate OK [14:24:39]CreateOFDProtocolMessage done [14:24:39]OFDSenderStorePacket 73828 [14:24:39]StoreOFDPacket docnum=73828 [14:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CC A2 07 01 8F 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 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 9A 00 00 00 F4 03 04 00 A8 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 20 01 00 35 04 06 00 32 F0 6C 2A 30 F8 9B 90 F2 B4 32 C7 E0 4C [14:24:39]CheckFolder [14:24:39]dirname=/storage/ofd_packets [14:24:39]CheckFolder done [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00073828 [14:24:39]NVStorageSaveData ofd_packets/00073828 [14:24:39]File name is /storage/ofd_packets/00073828 [14:24:39]Write 301 bytes [14:24:39]NVStorageSaveData done [14:24:39]OFDSenderStorePacket done [14:24:39]KKMCreateOFDPacket done [14:24:39]NVStorageSaveData kkm_last_timestamp [14:24:39]File name is /storage/kkm_last_timestamp [14:24:39]Write 4 bytes [14:24:39]NVStorageSaveData done [14:24:39]ExternCall_PrintAddStr [14:24:39]wPrintStart [14:24:39]Write to MH i2c: 01 00 00 52 24 76 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 52 24 00 00 00 00 00 FF 0F 8B [14:24:39]RasterBufferAndPrint [14:24:39]line Счет N : (1)1963037 [14:24:39]line ИНН: 02508201610067 [14:24:39]line Контрольно-Кассовый Чек [14:24:39]line ПРОДАЖА [14:24:39]line ТРК (МРК, ГНК) : 33 [14:24:39]line Товар: 2710124130 [14:24:39]line Аи-92-К-5 [14:24:39]line 2.990 * 66.90 [14:24:39]line = 200.03 [14:24:39]line НДС 12% НСП 1% [14:24:39]line > о реализуемом товаре [14:24:39]line ОКРУГЛЕНИЕ: -0.03 [14:24:39]line ИТОГО: 200.00 [14:24:39]line Внесено: 200.00 [14:24:39]line СДАЧА: 0.00 [14:24:39]line НСП 1% : 1.77 [14:24:39]line НДС 12% : 21.24 [14:24:39]line Наличными: 200.00 [14:24:39]line Безнал.: 0.00 [14:24:39]line Место: АЗС № 133 "Партнер Нефть" [14:24:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:24:39]line СНО: Общий режим [14:24:39]line Чек 154 20.10.2024 14:24 [14:24:39]line Смена: 170 ФФД: 1.0 [14:24:39]line ЗНМ: 0300000020 [14:24:39]line РНМ: 0000000000161154 [14:24:39]line Версия ККМ: v1.0 [14:24:39]line ФМ: 0000000000963323 [14:24:39]line ФД: 73828 [14:24:39]line ФПД: 56008188244216 [14:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142440&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73828&fm=56008188244216&tin=02508201610067®Number=0000000000161154&sum=20000 [14:24:40]OFD Sender: Processing packet 73828 [packets to send 15, broken 14] [14:24:40]ProducePacketName [14:24:40]name=ofd_packets/00073828 [14:24:40]OFD Sender: To server: pG, [14:24:40]CommunicateWithHost lk.salyk.kg:30040 [14:24:40]ConnectInit lk.salyk.kg [14:24:40]written 0, free lines is 4095 [14:24:40]Connected sock=9 [14:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CC A2 07 01 8F 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 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 9A 00 00 00 F4 03 04 00 A8 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 20 01 00 35 04 06 00 32 F0 6C 2A 30 F8 9B 90 F2 B4 32 C7 E0 4C [14:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D1 B5 47 00 BD 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 39 36 33 33 32 33 10 04 04 00 64 20 01 00 F4 03 04 00 8C BB 14 67 B6 04 01 00 00 7B 2C 15 D8 01 B5 8B 01 [14:24:40]CommunicateWithHost err = 0 [14:24:40]CheckOFDResponse [14:24:40]1017 (14) - 77093643461234 [14:24:40]1041 (16) - 0000000000963323 [14:24:40]1040 (4) - 73828 [14:24:40]1012 (4) - 20.10.2024 08:13 [14:24:40]1206 (1) - 0 [14:24:40]OFD Sender: Remove packet 73828 [14:24:40]ProducePacketName [14:24:40]name=ofd_packets/00073828 [14:24:40]NVStorageDeleteData [14:24:40]Write to MH i2c: 01 00 00 7C 24 A0 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 7C 24 00 00 00 00 00 C1 0C 74 [14:24:40]RasterBufferAndPrint [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]written 0, free lines is 3269 [14:24:40]MH_Cut [14:24:40]Write to MH i2c: D1 01 00 83 24 01 79 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 83 24 00 78 [14:24:40]Write to MH i2c: 01 00 00 84 24 A8 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:41]OFD Sender: No OFD packet to send [14:24:41]*** Cut start [14:24:41]*** Partial cut [14:24:41]*** CUTSNS_PIN = 1 [14:24:41]*** CUTSNS_PIN = 0 [14:24:41]*** Brake cut motor [14:24:42]Read from MH i2c: 01 [14:24:42]MH_I2C_Read... [14:24:42]*** Stop cut motor [14:24:42]*** Cut end [14:24:42]Read from MH i2c: 01 07 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: 01 07 00 84 24 00 00 00 00 00 FF 0F BD [14:24:42]process_action close_receipt done [14:24:42]requested_data is exist [14:24:42]produce_requested_data [14:24:42]requested_item fm.sn is exist - process it [14:24:42]wFMCommunicate request_size=4 [14:24:42]MH_SAM_APDU [14:24:42]CAPDU: 80 11 00 00 [14:24:42]Write to MH i2c: E2 08 00 85 24 80 11 00 00 00 00 00 00 23 [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:42]Read from MH i2c: E2 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 17 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 17 00 85 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 70 [14:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:24:42]wFMCommunicate OK [14:24:42]requested_item fd.num is exist - process it [14:24:42]SAM_PROTO_GetFieldsCounters [14:24:42]wFMCommunicate request_size=4 [14:24:42]MH_SAM_APDU [14:24:42]CAPDU: 80 13 00 00 [14:24:42]Write to MH i2c: E2 08 00 86 24 80 13 00 00 00 00 00 00 26 [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:42]Read from MH i2c: E2 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 62 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 62 00 86 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 64 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [14:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 64 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:42]wFMCommunicate OK [14:24:42]SAM_PROTO_GetFieldsCounters done [14:24:42]requested_item shift.num is exist - process it [14:24:42]requested_item shift.opened is exist - process it [14:24:42]req_shift_opened [14:24:42]FM_GetShiftState [14:24:42]SAM_PROTO_GetShiftState [14:24:42]wFMCommunicate request_size=4 [14:24:42]MH_SAM_APDU [14:24:42]CAPDU: 80 13 01 00 [14:24:42]Write to MH i2c: E2 08 00 87 24 80 13 01 00 00 00 00 00 28 [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:42]Read from MH i2c: E2 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 0E 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 0E 00 87 24 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [14:24:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:24:42]wFMCommunicate OK [14:24:42]SAM_PROTO_GetShiftState done [14:24:42]FM_GetShiftState done [14:24:42]req_shift_opened done [14:24:42]requested_item shift.open_date is exist - process it [14:24:42]req_shift_open_date [14:24:42]req_shift_open_date done [14:24:42]produce_requested_data done [14:24:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73828,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:24:42]process_action_free close_receipt [14:24:42]json_value_free [14:24:42]json_value_free done [14:24:42]process_json_proto returns [14:24:42]Send response to host [14:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73828,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:24:42]free response buf [14:24:42]execute_script done [14:24:42]execute_script returns [14:24:42]free content buf [14:24:42]Sock 11.Close socket [14:24:42]Sock 11.Thread stoped [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:47]accept exits with 8 [14:25:47]New connection [14:25:47]New thread 3067432292 created [14:25:47]Thread 3067575652 joined [14:25:47]Waiting for new connection... [14:25:47] Sock 8.Parse request [14:25:47]Sock 8.Check first char [14:25:47]Sock 8.First char is OK [14:25:47]request: POST /json_proto HTTP/1.0 [14:25:47]Method: POST [14:25:47]URL: /json_proto [14:25:47]Method is POST - this is cgi request [14:25:47]url: /json_proto [14:25:47]query_string will be loaded in cgi processing [14:25:47]execute_cgi json_proto POST (null) [14:25:47]execute_cgi path=json_proto method=POST [14:25:47]POST find Content-Length [14:25:47]Host: 172.17.44.196:8080 [14:25:47]Content-Length: 643 [14:25:47]Content-Type: application/json [14:25:47] [14:25:47]POST finish read [14:25:47]Found Content-Length = 643 [14:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.690, "sum" : 1090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:47]execute_script... [14:25: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 : (1)1963038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.690, "sum" : 1090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:47]POST & json_proto [14:25:47]process_json_proto [14:25:47]json parsed OK: [14:25:47]protocol is kg_v1.0 [14:25:47]action value=close_receipt [14:25:47]process_action close_receipt [14:25:47]cmd_close_receipt [14:25:47]MH_GetDate [14:25:47]Write to MH i2c: F0 00 00 88 24 9B [14:25:47]Write i2c OK [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: F0 [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: F0 09 00 [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: F0 09 00 88 24 00 ED 12 15 67 E7 19 F8 65 7C [14:25:47]GetLastDocTimeStamp 1729434280 [14:25:47]current date 1729434349 [14:25:47]FM_GetShiftState [14:25:47]SAM_PROTO_GetShiftState [14:25:47]wFMCommunicate request_size=4 [14:25:47]MH_SAM_APDU [14:25:47]CAPDU: 80 13 01 00 [14:25:47]Write to MH i2c: E2 08 00 89 24 80 13 01 00 00 00 00 00 2A [14:25:47]Write i2c OK [14:25:47]MH_I2C_Read... [14:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:47]Read from MH i2c: E2 [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: E2 0E 00 [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: E2 0E 00 89 24 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [14:25:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:25:47]wFMCommunicate OK [14:25:47]SAM_PROTO_GetShiftState done [14:25:47]FM_GetShiftState done [14:25:47]opened in 1729384303 [14:25:47]opened+sec_in_day 1729470703 [14:25:47]quantity*price = 108999 [14:25:47]sum+1 = 109001 [14:25:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1090.00 НСП 1% : 9.65 НДС 12% : 115.75 Наличными: 1090.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 155 20.10.2024 14:25 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73829 ФПД: 200699574943218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142549&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73829&fm=200699574943218&tin=02508201610067®Number=0000000000161154&sum=109000 [14:25:48]StoreToDocumentArchive [14:25:48]shift 170 fd 73829 [14:25:48]save to /storage/0170/doc_00073829 [14:25:48]save last doc name /storage/0170/doc_00073829 to /storage/kkm_last_doc_name [14:25:48]save OK [14:25:48]Clear old archive folders... [14:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:48]tlvbuf is 00373570 [14:25:48]SAM_PROTO_ClearQueue [14:25:48]wFMCommunicate request_size=4 [14:25:48]MH_SAM_APDU [14:25:48]CAPDU: 80 09 00 00 [14:25:48]Write to MH i2c: E2 08 00 96 24 80 09 00 00 00 00 00 00 2C [14:25:48]Write i2c OK [14:25:48]MH_I2C_Read... [14:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:48]Read from MH i2c: E2 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 03 00 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 03 00 96 24 00 90 00 2E [14:25:48]RAPDU: 90 00 [14:25:48]wFMCommunicate OK [14:25:48]SAM_PROTO_ClearQueue done [14:25:48]KKMCreateOFDPacket [14:25:48]OFDProtocolAddRootSTLVToBuf [14:25:48]FM_MakeSignedData [14:25:48]FM_MakeSignedData [14:25:48]SAM_PROTO_SignData [14:25:48]wFMCommunicate request_size=4 [14:25:48]MH_SAM_APDU [14:25:48]CAPDU: 80 0D 01 02 [14:25:48]Write to MH i2c: E2 08 00 97 24 80 0D 01 02 00 00 00 00 34 [14:25:48]Write i2c OK [14:25:48]MH_I2C_Read... [14:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:48]Read from MH i2c: E2 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 03 00 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 03 00 97 24 00 90 00 2F [14:25:48]RAPDU: 90 00 [14:25:48]wFMCommunicate OK [14:25:48]wFMCommunicate request_size=255 [14:25:48]MH_SAM_APDU [14:25:48]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 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 ED 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 20 01 00 35 04 06 00 B6 [14:25:48]Write to MH i2c: E2 02 01 98 24 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 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 ED 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 20 01 00 35 04 06 00 B6 00 00 66 [14:25:48]Write i2c OK [14:25:48]MH_I2C_Read... [14:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:48]Read from MH i2c: E2 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 03 00 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [14:25:48]RAPDU: 90 00 [14:25:48]wFMCommunicate OK [14:25:48]wFMCommunicate request_size=10 [14:25:48]MH_SAM_APDU [14:25:48]CAPDU: 80 0D 02 02 05 89 02 DE FD F2 [14:25:48]Write to MH i2c: E2 0D 00 99 24 80 0D 02 02 05 00 89 02 DE FD F2 00 00 99 [14:25:48]Write i2c OK [14:25:48]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [14:25:49]RAPDU: 90 00 [14:25:49]wFMCommunicate OK [14:25:49]wFMCommunicate request_size=4 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 0D 03 02 [14:25:49]Write to MH i2c: E2 08 00 9A 24 80 0D 03 02 00 00 00 00 39 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 0B 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 0B 00 9A 24 00 27 10 CE 18 CE 96 99 D1 90 00 25 [14:25:49]RAPDU: 27 10 CE 18 CE 96 99 D1 90 00 [14:25:49]wFMCommunicate OK [14:25:49]SAM_PROTO_SignData done [14:25:49]FM_MakeSignedData done [14:25:49]CreateOFDProtocolMessage [14:25:49]wFMCommunicate request_size=4 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 11 00 00 [14:25:49]Write to MH i2c: E2 08 00 9B 24 80 11 00 00 00 00 00 00 39 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 17 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 17 00 9B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [14:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:25:49]wFMCommunicate OK [14:25:49]CreateOFDProtocolMessage done [14:25:49]OFDSenderStorePacket 73829 [14:25:49]StoreOFDPacket docnum=73829 [14:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D8 8F 07 01 FC 9B 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 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 ED 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 20 01 00 35 04 06 00 B6 89 02 DE FD F2 27 10 CE 18 CE 96 99 D1 [14:25:49]CheckFolder [14:25:49]dirname=/storage/ofd_packets [14:25:49]CheckFolder done [14:25:49]ProducePacketName [14:25:49]name=ofd_packets/00073829 [14:25:49]NVStorageSaveData ofd_packets/00073829 [14:25:49]File name is /storage/ofd_packets/00073829 [14:25:49]Write 301 bytes [14:25:49]NVStorageSaveData done [14:25:49]OFDSenderStorePacket done [14:25:49]KKMCreateOFDPacket done [14:25:49]NVStorageSaveData kkm_last_timestamp [14:25:49]File name is /storage/kkm_last_timestamp [14:25:49]Write 4 bytes [14:25:49]NVStorageSaveData done [14:25:49]ExternCall_PrintAddStr [14:25:49]wPrintStart [14:25:49]Write to MH i2c: 01 00 00 9C 24 C0 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 07 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 07 00 9C 24 00 00 00 00 00 FF 0F D5 [14:25:49]RasterBufferAndPrint [14:25:49]line Счет N : (1)1963038 [14:25:49]line ИНН: 02508201610067 [14:25:49]line Контрольно-Кассовый Чек [14:25:49]line ПРОДАЖА [14:25:49]line ТРК (МРК, ГНК) : 44 [14:25:49]line Товар: 2710124500 [14:25:49]line Аи-95-К-5 [14:25:49]line 14.690 * 74.20 [14:25:49]line = 1090.00 [14:25:49]line НДС 12% НСП 1% [14:25:49]line > о реализуемом товаре [14:25:49]line ИТОГО: 1090.00 [14:25:49]line НСП 1% : 9.65 [14:25:49]line НДС 12% : 115.75 [14:25:49]line Наличными: 1090.00 [14:25:49]line Безнал.: 0.00 [14:25:49]line Место: АЗС № 133 "Партнер Нефть" [14:25:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:25:49]line СНО: Общий режим [14:25:49]line Чек 155 20.10.2024 14:25 [14:25:49]line Смена: 170 ФФД: 1.0 [14:25:49]line ЗНМ: 0300000020 [14:25:49]line РНМ: 0000000000161154 [14:25:49]line Версия ККМ: v1.0 [14:25:49]line ФМ: 0000000000963323 [14:25:49]line ФД: 73829 [14:25:49]line ФПД: 200699574943218 [14:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142549&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73829&fm=200699574943218&tin=02508201610067®Number=0000000000161154&sum=109000 [14:25:49]OFD Sender: Processing packet 73829 [packets to send 15, broken 14] [14:25:49]ProducePacketName [14:25:49]name=ofd_packets/00073829 [14:25:49]OFD Sender: To server: pG, [14:25:49]CommunicateWithHost lk.salyk.kg:30040 [14:25:49]ConnectInit lk.salyk.kg [14:25:49]written 0, free lines is 4095 [14:25:49]Connected sock=10 [14:25:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D8 8F 07 01 FC 9B 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 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 ED 12 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 20 01 00 35 04 06 00 B6 89 02 DE FD F2 27 10 CE 18 CE 96 99 D1 [14:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D8 C1 47 00 73 7C 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 39 36 33 33 32 33 10 04 04 00 65 20 01 00 F4 03 04 00 D2 BB 14 67 B6 04 01 00 00 F5 44 1C 8A D4 0E 96 32 [14:25:49]CommunicateWithHost err = 0 [14:25:49]CheckOFDResponse [14:25:49]1017 (14) - 77093643461234 [14:25:49]1041 (16) - 0000000000963323 [14:25:49]1040 (4) - 73829 [14:25:49]1012 (4) - 20.10.2024 08:14 [14:25:49]1206 (1) - 0 [14:25:49]OFD Sender: Remove packet 73829 [14:25:49]ProducePacketName [14:25:49]name=ofd_packets/00073829 [14:25:49]NVStorageDeleteData [14:25:49]Write to MH i2c: 01 00 00 C3 24 E7 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 07 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 FC 0C F6 [14:25:49]RasterBufferAndPrint [14:25:49]line [14:25:49]line [14:25:49]line [14:25:49]line [14:25:49]line [14:25:49]written 0, free lines is 3330 [14:25:49]MH_Cut [14:25:49]Write to MH i2c: D1 01 00 CA 24 01 C0 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: D1 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: D1 01 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: D1 01 00 CA 24 00 BF [14:25:49]Write to MH i2c: 01 00 00 CB 24 EF [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:50]OFD Sender: No OFD packet to send [14:25:50]*** Cut start [14:25:50]*** Partial cut [14:25:50]*** CUTSNS_PIN = 1 [14:25:50]*** CUTSNS_PIN = 0 [14:25:50]*** Brake cut motor [14:25:51]Read from MH i2c: 01 [14:25:51]MH_I2C_Read... [14:25:51]*** Stop cut motor [14:25:51]*** Cut end [14:25:51]Read from MH i2c: 01 07 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: 01 07 00 CB 24 00 00 00 00 00 FF 0F 04 [14:25:51]process_action close_receipt done [14:25:51]requested_data is exist [14:25:51]produce_requested_data [14:25:51]requested_item fm.sn is exist - process it [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 11 00 00 [14:25:51]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 17 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B7 [14:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:25:51]wFMCommunicate OK [14:25:51]requested_item fd.num is exist - process it [14:25:51]SAM_PROTO_GetFieldsCounters [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 13 00 00 [14:25:51]Write to MH i2c: E2 08 00 CD 24 80 13 00 00 00 00 00 00 6D [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 62 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 62 00 CD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 65 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [14:25:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 65 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:51]wFMCommunicate OK [14:25:51]SAM_PROTO_GetFieldsCounters done [14:25:51]requested_item shift.num is exist - process it [14:25:51]requested_item shift.opened is exist - process it [14:25:51]req_shift_opened [14:25:51]FM_GetShiftState [14:25:51]SAM_PROTO_GetShiftState [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 13 01 00 [14:25:51]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 0E 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B4 [14:25:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:25:51]wFMCommunicate OK [14:25:51]SAM_PROTO_GetShiftState done [14:25:51]FM_GetShiftState done [14:25:51]req_shift_opened done [14:25:51]requested_item shift.open_date is exist - process it [14:25:51]req_shift_open_date [14:25:51]req_shift_open_date done [14:25:51]produce_requested_data done [14:25:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73829,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:25:51]process_action_free close_receipt [14:25:51]json_value_free [14:25:51]json_value_free done [14:25:51]process_json_proto returns [14:25:51]Send response to host [14:25:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73829,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:25:51]free response buf [14:25:51]execute_script done [14:25:51]execute_script returns [14:25:51]free content buf [14:25:51]Sock 8.Close socket [14:25:51]Sock 8.Thread stoped [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:20]accept exits with 9 [14:26:20]New connection [14:26:20]New thread 3067575652 created [14:26:20]Thread 3067432292 joined [14:26:20]Waiting for new connection... [14:26:20] Sock 9.Parse request [14:26:20]Sock 9.Check first char [14:26:20]Sock 9.First char is OK [14:26:20]request: POST /json_proto HTTP/1.0 [14:26:20]Method: POST [14:26:20]URL: /json_proto [14:26:20]Method is POST - this is cgi request [14:26:20]url: /json_proto [14:26:20]query_string will be loaded in cgi processing [14:26:20]execute_cgi json_proto POST (null) [14:26:20]execute_cgi path=json_proto method=POST [14:26:20]POST find Content-Length [14:26:20]Host: 172.17.44.196:8080 [14:26:20]Content-Length: 680 [14:26:20]Content-Type: application/json [14:26:20] [14:26:20]POST finish read [14:26:20]Found Content-Length = 680 [14:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:26:20]execute_script... [14: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)1963039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:26:20]POST & json_proto [14:26:20]process_json_proto [14:26:20]json parsed OK: [14:26:20]protocol is kg_v1.0 [14:26:20]action value=close_receipt [14:26:20]process_action close_receipt [14:26:20]cmd_close_receipt [14:26:20]MH_GetDate [14:26:20]Write to MH i2c: F0 00 00 CF 24 E2 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: F0 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: F0 09 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: F0 09 00 CF 24 00 0E 13 15 67 E7 19 F8 65 E5 [14:26:20]GetLastDocTimeStamp 1729434349 [14:26:20]current date 1729434382 [14:26:20]FM_GetShiftState [14:26:20]SAM_PROTO_GetShiftState [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 13 01 00 [14:26:20]Write to MH i2c: E2 08 00 D0 24 80 13 01 00 00 00 00 00 71 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0E 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0E 00 D0 24 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B6 [14:26:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:26:20]wFMCommunicate OK [14:26:20]SAM_PROTO_GetShiftState done [14:26:20]FM_GetShiftState done [14:26:20]opened in 1729384303 [14:26:20]opened+sec_in_day 1729470703 [14:26:20]quantity*price = 100050 [14:26:20]sum+1 = 100052 [14:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 156 20.10.2024 14:26 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73830 ФПД: 125548874059337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142622&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73830&fm=125548874059337&tin=02508201610067®Number=0000000000161154&sum=100000 [14:26:21]StoreToDocumentArchive [14:26:21]shift 170 fd 73830 [14:26:21]save to /storage/0170/doc_00073830 [14:26:21]save last doc name /storage/0170/doc_00073830 to /storage/kkm_last_doc_name [14:26:21]save OK [14:26:21]Clear old archive folders... [14:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:21]tlvbuf is 0033C640 [14:26:21]SAM_PROTO_ClearQueue [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 09 00 00 [14:26:21]Write to MH i2c: E2 08 00 DD 24 80 09 00 00 00 00 00 00 73 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [14:26:21]RAPDU: 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_ClearQueue done [14:26:21]KKMCreateOFDPacket [14:26:21]OFDProtocolAddRootSTLVToBuf [14:26:21]FM_MakeSignedData [14:26:21]FM_MakeSignedData [14:26:21]SAM_PROTO_SignData [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 0D 01 02 [14:26:21]Write to MH i2c: E2 08 00 DE 24 80 0D 01 02 00 00 00 00 7B [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [14:26:21]RAPDU: 90 00 [14:26:21]wFMCommunicate OK [14:26:21]wFMCommunicate request_size=255 [14:26:21]MH_SAM_APDU [14:26:21]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9C 00 00 00 F4 03 04 00 0E 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 20 01 00 35 04 06 00 72 2F A0 0A [14:26:21]Write to MH i2c: E2 02 01 DF 24 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9C 00 00 00 F4 03 04 00 0E 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 20 01 00 35 04 06 00 72 2F A0 0A 00 00 A8 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 DF 24 00 90 00 77 [14:26:22]RAPDU: 90 00 [14:26:22]wFMCommunicate OK [14:26:22]wFMCommunicate request_size=7 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 0D 02 02 02 4E 49 [14:26:22]Write to MH i2c: E2 0A 00 E0 24 80 0D 02 02 02 00 4E 49 00 00 19 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [14:26:22]RAPDU: 90 00 [14:26:22]wFMCommunicate OK [14:26:22]wFMCommunicate request_size=4 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 0D 03 02 [14:26:22]Write to MH i2c: E2 08 00 E1 24 80 0D 03 02 00 00 00 00 80 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0B 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0B 00 E1 24 00 41 CE 46 91 F8 EA BD E2 90 00 E8 [14:26:22]RAPDU: 41 CE 46 91 F8 EA BD E2 90 00 [14:26:22]wFMCommunicate OK [14:26:22]SAM_PROTO_SignData done [14:26:22]FM_MakeSignedData done [14:26:22]CreateOFDProtocolMessage [14:26:22]wFMCommunicate request_size=4 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 11 00 00 [14:26:22]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 17 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CD [14:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:22]wFMCommunicate OK [14:26:22]CreateOFDProtocolMessage done [14:26:22]OFDSenderStorePacket 73830 [14:26:22]StoreOFDPacket docnum=73830 [14:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 AF A2 04 01 29 CA 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9C 00 00 00 F4 03 04 00 0E 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 20 01 00 35 04 06 00 72 2F A0 0A 4E 49 41 CE 46 91 F8 EA BD E2 [14:26:22]CheckFolder [14:26:22]dirname=/storage/ofd_packets [14:26:22]CheckFolder done [14:26:22]ProducePacketName [14:26:22]name=ofd_packets/00073830 [14:26:22]NVStorageSaveData ofd_packets/00073830 [14:26:22]File name is /storage/ofd_packets/00073830 [14:26:22]Write 298 bytes [14:26:22]NVStorageSaveData done [14:26:22]OFDSenderStorePacket done [14:26:22]KKMCreateOFDPacket done [14:26:22]NVStorageSaveData kkm_last_timestamp [14:26:22]File name is /storage/kkm_last_timestamp [14:26:22]Write 4 bytes [14:26:22]NVStorageSaveData done [14:26:22]ExternCall_PrintAddStr [14:26:22]wPrintStart [14:26:22]Write to MH i2c: 01 00 00 E3 24 07 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [14:26:22]RasterBufferAndPrint [14:26:22]line Счет N : (1)1963039 [14:26:22]line ИНН: 02508201610067 [14:26:22]line Контрольно-Кассовый Чек [14:26:22]line ПРОДАЖА [14:26:22]line ТРК (МРК, ГНК) : 51 [14:26:22]line Товар: 2710194210 [14:26:22]line ДТ-К-5 [14:26:22]line 13.130 * 76.20 [14:26:22]line = 1000.51 [14:26:22]line НДС 12% НСП 1% [14:26:22]line > о реализуемом товаре [14:26:22]line ОКРУГЛЕНИЕ: -0.51 [14:26:22]line ИТОГО: 1000.00 [14:26:22]line Внесено: 1000.00 [14:26:22]line СДАЧА: 0.00 [14:26:22]line НСП 1% : 8.85 [14:26:22]line НДС 12% : 106.25 [14:26:22]line Наличными: 1000.00 [14:26:22]line Безнал.: 0.00 [14:26:22]line Место: АЗС № 133 "Партнер Нефть" [14:26:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:26:22]line СНО: Общий режим [14:26:22]line Чек 156 20.10.2024 14:26 [14:26:22]line Смена: 170 ФФД: 1.0 [14:26:22]line ЗНМ: 0300000020 [14:26:22]line РНМ: 0000000000161154 [14:26:22]line Версия ККМ: v1.0 [14:26:22]line ФМ: 0000000000963323 [14:26:22]line ФД: 73830 [14:26:22]line ФПД: 125548874059337 [14:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142622&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73830&fm=125548874059337&tin=02508201610067®Number=0000000000161154&sum=100000 [14:26:22]OFD Sender: Processing packet 73830 [packets to send 15, broken 14] [14:26:22]ProducePacketName [14:26:22]name=ofd_packets/00073830 [14:26:22]OFD Sender: To server: pG, [14:26:22]CommunicateWithHost lk.salyk.kg:30040 [14:26:22]ConnectInit lk.salyk.kg [14:26:22]written 0, free lines is 4095 [14:26:22]Connected sock=10 [14:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 AF A2 04 01 29 CA 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 9C 00 00 00 F4 03 04 00 0E 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 20 01 00 35 04 06 00 72 2F A0 0A 4E 49 41 CE 46 91 F8 EA BD E2 [14:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 31 C9 47 00 ED 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 39 36 33 33 32 33 10 04 04 00 66 20 01 00 F4 03 04 00 F3 BB 14 67 B6 04 01 00 00 AA FA 1C 98 D9 85 E6 C8 [14:26:23]CommunicateWithHost err = 0 [14:26:23]CheckOFDResponse [14:26:23]1017 (14) - 77093643461234 [14:26:23]1041 (16) - 0000000000963323 [14:26:23]1040 (4) - 73830 [14:26:23]1012 (4) - 20.10.2024 08:14 [14:26:23]1206 (1) - 0 [14:26:23]OFD Sender: Remove packet 73830 [14:26:23]ProducePacketName [14:26:23]name=ofd_packets/00073830 [14:26:23]NVStorageDeleteData [14:26:23]Write to MH i2c: 01 00 00 0D 25 32 [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: 01 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: 01 07 00 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: 01 07 00 0D 25 00 00 00 00 00 C3 0C 08 [14:26:23]RasterBufferAndPrint [14:26:23]line [14:26:23]line [14:26:23]line [14:26:23]line [14:26:23]line [14:26:23]written 0, free lines is 3273 [14:26:23]MH_Cut [14:26:23]Write to MH i2c: D1 01 00 14 25 01 0B [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: D1 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: D1 01 00 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: D1 01 00 14 25 00 0A [14:26:23]Write to MH i2c: 01 00 00 15 25 3A [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]OFD Sender: No OFD packet to send [14:26:23]*** Cut start [14:26:23]*** Partial cut [14:26:23]*** CUTSNS_PIN = 1 [14:26:24]*** CUTSNS_PIN = 0 [14:26:24]*** Brake cut motor [14:26:24]Read from MH i2c: 01 [14:26:24]MH_I2C_Read... [14:26:24]*** Stop cut motor [14:26:24]*** Cut end [14:26:24]Read from MH i2c: 01 07 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 07 00 15 25 00 00 00 00 00 FF 0F 4F [14:26:24]process_action close_receipt done [14:26:24]requested_data is exist [14:26:24]produce_requested_data [14:26:24]requested_item fm.sn is exist - process it [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 11 00 00 [14:26:24]Write to MH i2c: E2 08 00 16 25 80 11 00 00 00 00 00 00 B5 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 17 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 17 00 16 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [14:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:24]wFMCommunicate OK [14:26:24]requested_item fd.num is exist - process it [14:26:24]SAM_PROTO_GetFieldsCounters [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 13 00 00 [14:26:24]Write to MH i2c: E2 08 00 17 25 80 13 00 00 00 00 00 00 B8 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 62 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 62 00 17 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 66 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 66 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:24]wFMCommunicate OK [14:26:24]SAM_PROTO_GetFieldsCounters done [14:26:24]requested_item shift.num is exist - process it [14:26:24]requested_item shift.opened is exist - process it [14:26:24]req_shift_opened [14:26:24]FM_GetShiftState [14:26:24]SAM_PROTO_GetShiftState [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 13 01 00 [14:26:24]Write to MH i2c: E2 08 00 18 25 80 13 01 00 00 00 00 00 BA [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 0E 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 0E 00 18 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [14:26:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:26:24]wFMCommunicate OK [14:26:24]SAM_PROTO_GetShiftState done [14:26:24]FM_GetShiftState done [14:26:24]req_shift_opened done [14:26:24]requested_item shift.open_date is exist - process it [14:26:24]req_shift_open_date [14:26:24]req_shift_open_date done [14:26:24]produce_requested_data done [14:26:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73830,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:26:24]process_action_free close_receipt [14:26:24]json_value_free [14:26:24]json_value_free done [14:26:24]process_json_proto returns [14:26:24]Send response to host [14:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73830,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:26:24]free response buf [14:26:24]execute_script done [14:26:24]execute_script returns [14:26:24]free content buf [14:26:24]Sock 9.Close socket [14:26:24]Sock 9.Thread stoped [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:50]accept exits with 8 [14:27:50]New connection [14:27:50]New thread 3067432292 created [14:27:50]Thread 3067575652 joined [14:27:50]Waiting for new connection... [14:27:50] Sock 8.Parse request [14:27:50]Sock 8.Check first char [14:27:50]Sock 8.First char is OK [14:27:50]request: POST /json_proto HTTP/1.0 [14:27:50]Method: POST [14:27:50]URL: /json_proto [14:27:50]Method is POST - this is cgi request [14:27:50]url: /json_proto [14:27:50]query_string will be loaded in cgi processing [14:27:50]execute_cgi json_proto POST (null) [14:27:50]execute_cgi path=json_proto method=POST [14:27:50]POST find Content-Length [14:27:50]Host: 172.17.44.196:8080 [14:27:50]Content-Length: 679 [14:27:50]Content-Type: application/json [14:27:50] [14:27:50]POST finish read [14:27:50]Found Content-Length = 679 [14:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:50]execute_script... [14:27: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 : (1)1963040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:50]POST & json_proto [14:27:50]process_json_proto [14:27:50]json parsed OK: [14:27:50]protocol is kg_v1.0 [14:27:50]action value=close_receipt [14:27:50]process_action close_receipt [14:27:50]cmd_close_receipt [14:27:50]MH_GetDate [14:27:50]Write to MH i2c: F0 00 00 19 25 2D [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: F0 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: F0 09 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: F0 09 00 19 25 00 68 13 15 67 E7 19 F8 65 8A [14:27:50]GetLastDocTimeStamp 1729434382 [14:27:50]current date 1729434472 [14:27:50]FM_GetShiftState [14:27:50]SAM_PROTO_GetShiftState [14:27:50]wFMCommunicate request_size=4 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 13 01 00 [14:27:50]Write to MH i2c: E2 08 00 1A 25 80 13 01 00 00 00 00 00 BC [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:50]Read from MH i2c: E2 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 0E 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 0E 00 1A 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [14:27:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:27:50]wFMCommunicate OK [14:27:50]SAM_PROTO_GetShiftState done [14:27:50]FM_GetShiftState done [14:27:50]opened in 1729384303 [14:27:50]opened+sec_in_day 1729470703 [14:27:50]quantity*price = 90047 [14:27:50]sum+1 = 90048 [14:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 157 20.10.2024 14:27 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73831 ФПД: 270737049656310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142752&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73831&fm=270737049656310&tin=02508201610067®Number=0000000000161154&sum=90000 [14:27:51]StoreToDocumentArchive [14:27:51]shift 170 fd 73831 [14:27:51]save to /storage/0170/doc_00073831 [14:27:51]save last doc name /storage/0170/doc_00073831 to /storage/kkm_last_doc_name [14:27:51]save OK [14:27:51]Clear old archive folders... [14:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:51]tlvbuf is 0037D5A0 [14:27:51]SAM_PROTO_ClearQueue [14:27:51]wFMCommunicate request_size=4 [14:27:51]MH_SAM_APDU [14:27:51]CAPDU: 80 09 00 00 [14:27:51]Write to MH i2c: E2 08 00 27 25 80 09 00 00 00 00 00 00 BE [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:51]Read from MH i2c: E2 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 27 25 00 90 00 C0 [14:27:51]RAPDU: 90 00 [14:27:51]wFMCommunicate OK [14:27:51]SAM_PROTO_ClearQueue done [14:27:51]KKMCreateOFDPacket [14:27:51]OFDProtocolAddRootSTLVToBuf [14:27:51]FM_MakeSignedData [14:27:51]FM_MakeSignedData [14:27:51]SAM_PROTO_SignData [14:27:51]wFMCommunicate request_size=4 [14:27:51]MH_SAM_APDU [14:27:51]CAPDU: 80 0D 01 02 [14:27:51]Write to MH i2c: E2 08 00 28 25 80 0D 01 02 00 00 00 00 C6 [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:51]Read from MH i2c: E2 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [14:27:51]RAPDU: 90 00 [14:27:51]wFMCommunicate OK [14:27:51]wFMCommunicate request_size=255 [14:27:51]MH_SAM_APDU [14:27: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 68 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 20 01 00 35 04 06 00 F6 [14:27:51]Write to MH i2c: E2 02 01 29 25 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 68 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 20 01 00 35 04 06 00 F6 00 00 21 [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 03 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [14:27:52]RAPDU: 90 00 [14:27:52]wFMCommunicate OK [14:27:52]wFMCommunicate request_size=10 [14:27:52]MH_SAM_APDU [14:27:52]CAPDU: 80 0D 02 02 05 3B E1 AC 1B F6 [14:27:52]Write to MH i2c: E2 0D 00 2A 25 80 0D 02 02 05 00 3B E1 AC 1B F6 00 00 AC [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 03 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [14:27:52]RAPDU: 90 00 [14:27:52]wFMCommunicate OK [14:27:52]wFMCommunicate request_size=4 [14:27:52]MH_SAM_APDU [14:27:52]CAPDU: 80 0D 03 02 [14:27:52]Write to MH i2c: E2 08 00 2B 25 80 0D 03 02 00 00 00 00 CB [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 0B 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 0B 00 2B 25 00 07 86 05 90 C9 BA 8F 43 90 00 43 [14:27:52]RAPDU: 07 86 05 90 C9 BA 8F 43 90 00 [14:27:52]wFMCommunicate OK [14:27:52]SAM_PROTO_SignData done [14:27:52]FM_MakeSignedData done [14:27:52]CreateOFDProtocolMessage [14:27:52]wFMCommunicate request_size=4 [14:27:52]MH_SAM_APDU [14:27:52]CAPDU: 80 11 00 00 [14:27:52]Write to MH i2c: E2 08 00 2C 25 80 11 00 00 00 00 00 00 CB [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 17 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 17 00 2C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [14:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:27:52]wFMCommunicate OK [14:27:52]CreateOFDProtocolMessage done [14:27:52]OFDSenderStorePacket 73831 [14:27:52]StoreOFDPacket docnum=73831 [14:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 33 8A 07 01 C4 93 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 68 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 20 01 00 35 04 06 00 F6 3B E1 AC 1B F6 07 86 05 90 C9 BA 8F 43 [14:27:52]CheckFolder [14:27:52]dirname=/storage/ofd_packets [14:27:52]CheckFolder done [14:27:52]ProducePacketName [14:27:52]name=ofd_packets/00073831 [14:27:52]NVStorageSaveData ofd_packets/00073831 [14:27:52]File name is /storage/ofd_packets/00073831 [14:27:52]Write 301 bytes [14:27:52]NVStorageSaveData done [14:27:52]OFDSenderStorePacket done [14:27:52]KKMCreateOFDPacket done [14:27:52]NVStorageSaveData kkm_last_timestamp [14:27:52]File name is /storage/kkm_last_timestamp [14:27:52]Write 4 bytes [14:27:52]NVStorageSaveData done [14:27:52]ExternCall_PrintAddStr [14:27:52]wPrintStart [14:27:52]Write to MH i2c: 01 00 00 2D 25 52 [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 2D 25 00 00 00 00 00 FF 0F 67 [14:27:52]RasterBufferAndPrint [14:27:52]line Счет N : (1)1963040 [14:27:52]line ИНН: 02508201610067 [14:27:52]line Контрольно-Кассовый Чек [14:27:52]line ПРОДАЖА [14:27:52]line ТРК (МРК, ГНК) : 63 [14:27:52]line Товар: 2710124130 [14:27:52]line Аи-92-К-5 [14:27:52]line 13.460 * 66.90 [14:27:52]line = 900.47 [14:27:52]line НДС 12% НСП 1% [14:27:52]line > о реализуемом товаре [14:27:52]line ОКРУГЛЕНИЕ: -0.47 [14:27:52]line ИТОГО: 900.00 [14:27:52]line Внесено: 900.00 [14:27:52]line СДАЧА: 0.00 [14:27:52]line НСП 1% : 7.97 [14:27:52]line НДС 12% : 95.62 [14:27:52]line Наличными: 900.00 [14:27:52]line Безнал.: 0.00 [14:27:52]line Место: АЗС № 133 "Партнер Нефть" [14:27:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:27:52]line СНО: Общий режим [14:27:52]line Чек 157 20.10.2024 14:27 [14:27:52]line Смена: 170 ФФД: 1.0 [14:27:52]line ЗНМ: 0300000020 [14:27:52]line РНМ: 0000000000161154 [14:27:52]line Версия ККМ: v1.0 [14:27:52]line ФМ: 0000000000963323 [14:27:52]line ФД: 73831 [14:27:52]line ФПД: 270737049656310 [14:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142752&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73831&fm=270737049656310&tin=02508201610067®Number=0000000000161154&sum=90000 [14:27:52]OFD Sender: Processing packet 73831 [packets to send 15, broken 14] [14:27:52]ProducePacketName [14:27:52]name=ofd_packets/00073831 [14:27:52]OFD Sender: To server: pG, [14:27:52]CommunicateWithHost lk.salyk.kg:30040 [14:27:52]ConnectInit lk.salyk.kg [14:27:52]written 0, free lines is 4095 [14:27:52]Connected sock=10 [14:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 33 8A 07 01 C4 93 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 68 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 20 01 00 35 04 06 00 F6 3B E1 AC 1B F6 07 86 05 90 C9 BA 8F 43 [14:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9F 75 47 00 09 CB 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 39 36 33 33 32 33 10 04 04 00 67 20 01 00 F4 03 04 00 4D BC 14 67 B6 04 01 00 00 51 E4 C7 17 CB E6 56 A1 [14:27:52]CommunicateWithHost err = 0 [14:27:52]CheckOFDResponse [14:27:52]1017 (14) - 77093643461234 [14:27:52]1041 (16) - 0000000000963323 [14:27:52]1040 (4) - 73831 [14:27:52]1012 (4) - 20.10.2024 08:16 [14:27:52]1206 (1) - 0 [14:27:52]OFD Sender: Remove packet 73831 [14:27:52]ProducePacketName [14:27:52]name=ofd_packets/00073831 [14:27:52]NVStorageDeleteData [14:27:52]Write to MH i2c: 01 00 00 57 25 7C [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 57 25 00 00 00 00 00 BA 0C 49 [14:27:52]RasterBufferAndPrint [14:27:52]line [14:27:52]line [14:27:52]line [14:27:52]line [14:27:52]line [14:27:52]written 0, free lines is 3264 [14:27:53]MH_Cut [14:27:53]Write to MH i2c: D1 01 00 5E 25 01 55 [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: D1 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: D1 01 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: D1 01 00 5E 25 00 54 [14:27:53]Write to MH i2c: 01 00 00 5F 25 84 [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]OFD Sender: No OFD packet to send [14:27:53]*** Cut start [14:27:53]*** Partial cut [14:27:53]*** CUTSNS_PIN = 1 [14:27:53]*** CUTSNS_PIN = 0 [14:27:54]*** Brake cut motor [14:27:54]Read from MH i2c: 01 [14:27:54]MH_I2C_Read... [14:27:54]*** Stop cut motor [14:27:54]*** Cut end [14:27:54]Read from MH i2c: 01 07 00 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: 01 07 00 5F 25 00 00 00 00 00 FF 0F 99 [14:27:54]process_action close_receipt done [14:27:54]requested_data is exist [14:27:54]produce_requested_data [14:27:54]requested_item fm.sn is exist - process it [14:27:54]wFMCommunicate request_size=4 [14:27:54]MH_SAM_APDU [14:27:54]CAPDU: 80 11 00 00 [14:27:54]Write to MH i2c: E2 08 00 60 25 80 11 00 00 00 00 00 00 FF [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:54]Read from MH i2c: E2 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: E2 17 00 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: E2 17 00 60 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [14:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:27:54]wFMCommunicate OK [14:27:54]requested_item fd.num is exist - process it [14:27:54]SAM_PROTO_GetFieldsCounters [14:27:54]wFMCommunicate request_size=4 [14:27:54]MH_SAM_APDU [14:27:54]CAPDU: 80 13 00 00 [14:27:54]Write to MH i2c: E2 08 00 61 25 80 13 00 00 00 00 00 00 02 [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:54]Read from MH i2c: E2 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: E2 62 00 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: E2 62 00 61 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 67 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 67 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:54]wFMCommunicate OK [14:27:54]SAM_PROTO_GetFieldsCounters done [14:27:54]requested_item shift.num is exist - process it [14:27:54]requested_item shift.opened is exist - process it [14:27:54]req_shift_opened [14:27:54]FM_GetShiftState [14:27:54]SAM_PROTO_GetShiftState [14:27:54]wFMCommunicate request_size=4 [14:27:54]MH_SAM_APDU [14:27:54]CAPDU: 80 13 01 00 [14:27:54]Write to MH i2c: E2 08 00 62 25 80 13 01 00 00 00 00 00 04 [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:54]Read from MH i2c: E2 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: E2 0E 00 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: E2 0E 00 62 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [14:27:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:27:54]wFMCommunicate OK [14:27:54]SAM_PROTO_GetShiftState done [14:27:54]FM_GetShiftState done [14:27:54]req_shift_opened done [14:27:54]requested_item shift.open_date is exist - process it [14:27:54]req_shift_open_date [14:27:54]req_shift_open_date done [14:27:54]produce_requested_data done [14:27:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73831,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:27:54]process_action_free close_receipt [14:27:54]json_value_free [14:27:54]json_value_free done [14:27:54]process_json_proto returns [14:27:54]Send response to host [14:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73831,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:27:54]free response buf [14:27:54]execute_script done [14:27:54]execute_script returns [14:27:54]free content buf [14:27:54]Sock 8.Close socket [14:27:54]Sock 8.Thread stoped [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:45]accept exits with 9 [14:28:45]New connection [14:28:45]New thread 3067575652 created [14:28:45]Thread 3067432292 joined [14:28:45]Waiting for new connection... [14:28:45] Sock 9.Parse request [14:28:45]Sock 9.Check first char [14:28:45]Sock 9.First char is OK [14:28:45]request: POST /json_proto HTTP/1.0 [14:28:45]Method: POST [14:28:45]URL: /json_proto [14:28:45]Method is POST - this is cgi request [14:28:45]url: /json_proto [14:28:45]query_string will be loaded in cgi processing [14:28:45]execute_cgi json_proto POST (null) [14:28:45]execute_cgi path=json_proto method=POST [14:28:45]POST find Content-Length [14:28:45]Host: 172.17.44.196:8080 [14:28:45]Content-Length: 658 [14:28:45]Content-Type: application/json [14:28:45] [14:28:45]POST finish read [14:28:45]Found Content-Length = 658 [14:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272799", "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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:45]execute_script... [14:28: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)272799", "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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:45]POST & json_proto [14:28:45]process_json_proto [14:28:45]json parsed OK: [14:28:45]protocol is kg_v1.0 [14:28:45]action value=close_receipt [14:28:45]process_action close_receipt [14:28:45]cmd_close_receipt [14:28:45]MH_GetDate [14:28:45]Write to MH i2c: F0 00 00 63 25 77 [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: F0 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: F0 09 00 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: F0 09 00 63 25 00 9F 13 15 67 E7 19 F8 65 0B [14:28:45]GetLastDocTimeStamp 1729434472 [14:28:45]current date 1729434527 [14:28:45]FM_GetShiftState [14:28:45]SAM_PROTO_GetShiftState [14:28:45]wFMCommunicate request_size=4 [14:28:45]MH_SAM_APDU [14:28:45]CAPDU: 80 13 01 00 [14:28:45]Write to MH i2c: E2 08 00 64 25 80 13 01 00 00 00 00 00 06 [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:45]Read from MH i2c: E2 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: E2 0E 00 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: E2 0E 00 64 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4B [14:28:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:28:45]wFMCommunicate OK [14:28:45]SAM_PROTO_GetShiftState done [14:28:45]FM_GetShiftState done [14:28:45]opened in 1729384303 [14:28:45]opened+sec_in_day 1729470703 [14:28:45]quantity*price = 12500 [14:28:45]sum+1 = 12501 [14:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 158 20.10.2024 14:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73832 ФПД: 142935235752194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142847&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73832&fm=142935235752194&tin=02508201610067®Number=0000000000161154&sum=12500 0 [14:28:46]StoreToDocumentArchive [14:28:46]shift 170 fd 73832 [14:28:46]save to /storage/0170/doc_00073832 [14:28:46]save last doc name /storage/0170/doc_00073832 to /storage/kkm_last_doc_name [14:28:46]save OK [14:28:46]Clear old archive folders... [14:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:28:46]tlvbuf is 003CBCE0 [14:28:46]SAM_PROTO_ClearQueue [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 09 00 00 [14:28:46]Write to MH i2c: E2 08 00 71 25 80 09 00 00 00 00 00 00 08 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 71 25 00 90 00 0A [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]SAM_PROTO_ClearQueue done [14:28:46]KKMCreateOFDPacket [14:28:46]OFDProtocolAddRootSTLVToBuf [14:28:46]FM_MakeSignedData [14:28:46]FM_MakeSignedData [14:28:46]SAM_PROTO_SignData [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 01 02 [14:28:46]Write to MH i2c: E2 08 00 72 25 80 0D 01 02 00 00 00 00 10 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 72 25 00 90 00 0B [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]wFMCommunicate request_size=255 [14:28:46]MH_SAM_APDU [14:28:46]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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 9E 00 00 00 F4 03 04 00 9F 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [14:28:46]Write to MH i2c: E2 02 01 73 25 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 9E 00 00 00 F4 03 04 00 9F 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 2B [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 73 25 00 90 00 0C [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]wFMCommunicate request_size=37 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 20 01 00 35 04 06 00 81 FF B3 F3 F1 02 [14:28:46]Write to MH i2c: E2 28 00 74 25 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 20 01 00 35 04 06 00 81 FF B3 F3 F1 02 00 00 06 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 03 02 [14:28:46]Write to MH i2c: E2 08 00 75 25 80 0D 03 02 00 00 00 00 15 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:47]Read from MH i2c: E2 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: E2 0B 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: E2 0B 00 75 25 00 BA 0A 47 37 DD AE 0E D1 90 00 C2 [14:28:47]RAPDU: BA 0A 47 37 DD AE 0E D1 90 00 [14:28:47]wFMCommunicate OK [14:28:47]SAM_PROTO_SignData done [14:28:47]FM_MakeSignedData done [14:28:47]CreateOFDProtocolMessage [14:28:47]wFMCommunicate request_size=4 [14:28:47]MH_SAM_APDU [14:28:47]CAPDU: 80 11 00 00 [14:28:47]Write to MH i2c: E2 08 00 76 25 80 11 00 00 00 00 00 00 15 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:47]Read from MH i2c: E2 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: E2 17 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: E2 17 00 76 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [14:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:28:47]wFMCommunicate OK [14:28:47]CreateOFDProtocolMessage done [14:28:47]OFDSenderStorePacket 73832 [14:28:47]StoreOFDPacket docnum=73832 [14:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 E5 31 22 01 6D 38 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 9E 00 00 00 F4 03 04 00 9F 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 20 01 00 35 04 06 00 81 FF B3 F3 F1 02 BA 0A 47 37 DD AE 0E D1 [14:28:47]CheckFolder [14:28:47]dirname=/storage/ofd_packets [14:28:47]CheckFolder done [14:28:47]ProducePacketName [14:28:47]name=ofd_packets/00073832 [14:28:47]NVStorageSaveData ofd_packets/00073832 [14:28:47]File name is /storage/ofd_packets/00073832 [14:28:47]Write 328 bytes [14:28:47]NVStorageSaveData done [14:28:47]OFDSenderStorePacket done [14:28:47]KKMCreateOFDPacket done [14:28:47]NVStorageSaveData kkm_last_timestamp [14:28:47]File name is /storage/kkm_last_timestamp [14:28:47]Write 4 bytes [14:28:47]NVStorageSaveData done [14:28:47]ExternCall_PrintAddStr [14:28:47]wPrintStart [14:28:47]Write to MH i2c: 01 00 00 77 25 9C [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 07 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 07 00 77 25 00 00 00 00 00 FF 0F B1 [14:28:47]RasterBufferAndPrint [14:28:47]line Счет N : (3)272799 [14:28:47]line ИНН: 02508201610067 [14:28:47]line Контрольно-Кассовый Чек [14:28:47]line ПРОДАЖА [14:28:47]line Товар: 5449000054227 [14:28:47]line Напиток Кока-Кола 1л [14:28:47]line 1.000 * 125.00 [14:28:47]line = 125.00 [14:28:47]line НДС 12% НСП 1% [14:28:47]line > о реализуемом товаре [14:28:47]line ИТОГО: 125.00 [14:28:47]line НСП 1% : 1.11 [14:28:47]line НДС 12% : 13.27 [14:28:47]line Наличными: 125.00 [14:28:47]line Безнал.: 0.00 [14:28:47]line Место: АЗС № 133 "Партнер Нефть" [14:28:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:28:47]line СНО: Общий режим [14:28:47]line Чек 158 20.10.2024 14:28 [14:28:47]line Смена: 170 ФФД: 1.0 [14:28:47]line ЗНМ: 0300000020 [14:28:47]line РНМ: 0000000000161154 [14:28:47]line Версия ККМ: v1.0 [14:28:47]line ФМ: 0000000000963323 [14:28:47]line ФД: 73832 [14:28:47]line ФПД: 142935235752194 [14:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142847&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73832&fm=142935235752194&tin=02508201610067®Number=0000000000161154&sum=12500 [14:28:47]line 0 [14:28:47]OFD Sender: Processing packet 73832 [packets to send 15, broken 14] [14:28:47]ProducePacketName [14:28:47]name=ofd_packets/00073832 [14:28:47]OFD Sender: To server: pG, [14:28:47]CommunicateWithHost lk.salyk.kg:30040 [14:28:47]ConnectInit lk.salyk.kg [14:28:47]written 0, free lines is 4095 [14:28:47]Connected sock=10 [14:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 E5 31 22 01 6D 38 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 9E 00 00 00 F4 03 04 00 9F 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 20 01 00 35 04 06 00 81 FF B3 F3 F1 02 BA 0A 47 37 DD AE 0E D1 [14:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6D 88 47 00 7F 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 39 36 33 33 32 33 10 04 04 00 68 20 01 00 F4 03 04 00 84 BC 14 67 B6 04 01 00 00 33 40 A2 D7 AE F1 AB 65 [14:28:47]CommunicateWithHost err = 0 [14:28:47]CheckOFDResponse [14:28:47]1017 (14) - 77093643461234 [14:28:47]1041 (16) - 0000000000963323 [14:28:47]1040 (4) - 73832 [14:28:47]1012 (4) - 20.10.2024 08:17 [14:28:47]1206 (1) - 0 [14:28:47]OFD Sender: Remove packet 73832 [14:28:47]ProducePacketName [14:28:47]name=ofd_packets/00073832 [14:28:47]NVStorageDeleteData [14:28:47]Write to MH i2c: 01 00 00 9E 25 C3 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 07 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 07 00 9E 25 00 00 00 00 00 E9 0C BF [14:28:47]RasterBufferAndPrint [14:28:47]line [14:28:47]line [14:28:47]line [14:28:47]line [14:28:47]line [14:28:47]written 0, free lines is 3309 [14:28:47]MH_Cut [14:28:47]Write to MH i2c: D1 01 00 A5 25 01 9C [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: D1 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: D1 01 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: D1 01 00 A5 25 00 9B [14:28:47]Write to MH i2c: 01 00 00 A6 25 CB [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:48]OFD Sender: No OFD packet to send [14:28:48]*** Cut start [14:28:48]*** Partial cut [14:28:48]*** CUTSNS_PIN = 1 [14:28:48]*** CUTSNS_PIN = 0 [14:28:48]*** Brake cut motor [14:28:49]Read from MH i2c: 01 [14:28:49]MH_I2C_Read... [14:28:49]*** Stop cut motor [14:28:49]*** Cut end [14:28:49]Read from MH i2c: 01 07 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: 01 07 00 A6 25 00 00 00 00 00 FF 0F E0 [14:28:49]process_action close_receipt done [14:28:49]requested_data is exist [14:28:49]produce_requested_data [14:28:49]requested_item fm.sn is exist - process it [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 11 00 00 [14:28:49]Write to MH i2c: E2 08 00 A7 25 80 11 00 00 00 00 00 00 46 [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:49]Read from MH i2c: E2 17 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 17 00 A7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 93 [14:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:28:49]wFMCommunicate OK [14:28:49]requested_item fd.num is exist - process it [14:28:49]SAM_PROTO_GetFieldsCounters [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 13 00 00 [14:28:49]Write to MH i2c: E2 08 00 A8 25 80 13 00 00 00 00 00 00 49 [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 62 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 62 00 A8 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 68 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [14:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 68 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:49]wFMCommunicate OK [14:28:49]SAM_PROTO_GetFieldsCounters done [14:28:49]requested_item shift.num is exist - process it [14:28:49]requested_item shift.opened is exist - process it [14:28:49]req_shift_opened [14:28:49]FM_GetShiftState [14:28:49]SAM_PROTO_GetShiftState [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 13 01 00 [14:28:49]Write to MH i2c: E2 08 00 A9 25 80 13 01 00 00 00 00 00 4B [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 0E 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 0E 00 A9 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 90 [14:28:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:28:49]wFMCommunicate OK [14:28:49]SAM_PROTO_GetShiftState done [14:28:49]FM_GetShiftState done [14:28:49]req_shift_opened done [14:28:49]requested_item shift.open_date is exist - process it [14:28:49]req_shift_open_date [14:28:49]req_shift_open_date done [14:28:49]produce_requested_data done [14:28:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73832,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:28:49]process_action_free close_receipt [14:28:49]json_value_free [14:28:49]json_value_free done [14:28:49]process_json_proto returns [14:28:49]Send response to host [14:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73832,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:28:49]free response buf [14:28:49]execute_script done [14:28:49]execute_script returns [14:28:49]free content buf [14:28:49]Sock 9.Close socket [14:28:49]Sock 9.Thread stoped [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:32]accept exits with 8 [14:29:32]New connection [14:29:32]New thread 3067432292 created [14:29:32]Thread 3067575652 joined [14:29:32]Waiting for new connection... [14:29:32] Sock 8.Parse request [14:29:32]Sock 8.Check first char [14:29:32]Sock 8.First char is OK [14:29:32]request: POST /json_proto HTTP/1.0 [14:29:32]Method: POST [14:29:32]URL: /json_proto [14:29:32]Method is POST - this is cgi request [14:29:32]url: /json_proto [14:29:32]query_string will be loaded in cgi processing [14:29:32]execute_cgi json_proto POST (null) [14:29:32]execute_cgi path=json_proto method=POST [14:29:32]POST find Content-Length [14:29:32]Host: 172.17.44.196:8080 [14:29:32]Content-Length: 678 [14:29:32]Content-Type: application/json [14:29:32] [14:29:32]POST finish read [14:29:32]Found Content-Length = 678 [14:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:32]execute_script... [14:29: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)1963041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:32]POST & json_proto [14:29:32]process_json_proto [14:29:32]json parsed OK: [14:29:32]protocol is kg_v1.0 [14:29:32]action value=close_receipt [14:29:32]process_action close_receipt [14:29:32]cmd_close_receipt [14:29:32]MH_GetDate [14:29:32]Write to MH i2c: F0 00 00 AA 25 BE [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: F0 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: F0 09 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: F0 09 00 AA 25 00 CF 13 15 67 E7 19 F8 65 82 [14:29:32]GetLastDocTimeStamp 1729434527 [14:29:32]current date 1729434575 [14:29:32]FM_GetShiftState [14:29:32]SAM_PROTO_GetShiftState [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 01 00 [14:29:32]Write to MH i2c: E2 08 00 AB 25 80 13 01 00 00 00 00 00 4D [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:33]Read from MH i2c: E2 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: E2 0E 00 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: E2 0E 00 AB 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 92 [14:29:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:29:33]wFMCommunicate OK [14:29:33]SAM_PROTO_GetShiftState done [14:29:33]FM_GetShiftState done [14:29:33]opened in 1729384303 [14:29:33]opened+sec_in_day 1729470703 [14:29:33]quantity*price = 40068 [14:29:33]sum+1 = 40069 [14:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 159 20.10.2024 14:29 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73833 ФПД: 191110811429548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142935&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73833&fm=191110811429548&tin=02508201610067®Number=0000000000161154&sum=40000 [14:29:34]StoreToDocumentArchive [14:29:34]shift 170 fd 73833 [14:29:34]save to /storage/0170/doc_00073833 [14:29:34]save last doc name /storage/0170/doc_00073833 to /storage/kkm_last_doc_name [14:29:34]save OK [14:29:34]Clear old archive folders... [14:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:34]tlvbuf is 00338E60 [14:29:34]SAM_PROTO_ClearQueue [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 09 00 00 [14:29:34]Write to MH i2c: E2 08 00 B8 25 80 09 00 00 00 00 00 00 4F [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]SAM_PROTO_ClearQueue done [14:29:34]KKMCreateOFDPacket [14:29:34]OFDProtocolAddRootSTLVToBuf [14:29:34]FM_MakeSignedData [14:29:34]FM_MakeSignedData [14:29:34]SAM_PROTO_SignData [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 01 02 [14:29:34]Write to MH i2c: E2 08 00 B9 25 80 0D 01 02 00 00 00 00 57 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 B9 25 00 90 00 52 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=255 [14:29:34]MH_SAM_APDU [14:29:34]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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 CF 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 20 01 00 35 04 06 00 AD [14:29:34]Write to MH i2c: E2 02 01 BA 25 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 CF 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 20 01 00 35 04 06 00 AD 00 00 66 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 BA 25 00 90 00 53 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=10 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 02 02 05 D0 74 07 2A AC [14:29:34]Write to MH i2c: E2 0D 00 BB 25 80 0D 02 02 05 00 D0 74 07 2A AC 00 00 85 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 BB 25 00 90 00 54 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 03 02 [14:29:34]Write to MH i2c: E2 08 00 BC 25 80 0D 03 02 00 00 00 00 5C [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 0B 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 0B 00 BC 25 00 B7 BF 29 B2 8D 71 CF 17 90 00 92 [14:29:34]RAPDU: B7 BF 29 B2 8D 71 CF 17 90 00 [14:29:34]wFMCommunicate OK [14:29:34]SAM_PROTO_SignData done [14:29:34]FM_MakeSignedData done [14:29:34]CreateOFDProtocolMessage [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 11 00 00 [14:29:34]Write to MH i2c: E2 08 00 BD 25 80 11 00 00 00 00 00 00 5C [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 BD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A9 [14:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:29:34]wFMCommunicate OK [14:29:34]CreateOFDProtocolMessage done [14:29:34]OFDSenderStorePacket 73833 [14:29:34]StoreOFDPacket docnum=73833 [14:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 76 BB 07 01 6F 9A 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 CF 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 20 01 00 35 04 06 00 AD D0 74 07 2A AC B7 BF 29 B2 8D 71 CF 17 [14:29:34]CheckFolder [14:29:34]dirname=/storage/ofd_packets [14:29:34]CheckFolder done [14:29:34]ProducePacketName [14:29:34]name=ofd_packets/00073833 [14:29:34]NVStorageSaveData ofd_packets/00073833 [14:29:34]File name is /storage/ofd_packets/00073833 [14:29:34]Write 301 bytes [14:29:34]NVStorageSaveData done [14:29:34]OFDSenderStorePacket done [14:29:34]KKMCreateOFDPacket done [14:29:34]NVStorageSaveData kkm_last_timestamp [14:29:34]File name is /storage/kkm_last_timestamp [14:29:34]Write 4 bytes [14:29:34]NVStorageSaveData done [14:29:34]ExternCall_PrintAddStr [14:29:34]wPrintStart [14:29:34]Write to MH i2c: 01 00 00 BE 25 E3 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 07 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 07 00 BE 25 00 00 00 00 00 FF 0F F8 [14:29:34]RasterBufferAndPrint [14:29:34]line Счет N : (1)1963041 [14:29:34]line ИНН: 02508201610067 [14:29:34]line Контрольно-Кассовый Чек [14:29:34]line ПРОДАЖА [14:29:34]line ТРК (МРК, ГНК) : 44 [14:29:34]line Товар: 2710124500 [14:29:34]line Аи-95-К-5 [14:29:34]line 5.400 * 74.20 [14:29:34]line = 400.68 [14:29:34]line НДС 12% НСП 1% [14:29:34]line > о реализуемом товаре [14:29:34]line ОКРУГЛЕНИЕ: -0.68 [14:29:34]line ИТОГО: 400.00 [14:29:34]line Внесено: 400.00 [14:29:34]line СДАЧА: 0.00 [14:29:34]line НСП 1% : 3.55 [14:29:34]line НДС 12% : 42.55 [14:29:34]line Наличными: 400.00 [14:29:34]line Безнал.: 0.00 [14:29:34]line Место: АЗС № 133 "Партнер Нефть" [14:29:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:29:34]line СНО: Общий режим [14:29:34]line Чек 159 20.10.2024 14:29 [14:29:34]line Смена: 170 ФФД: 1.0 [14:29:34]line ЗНМ: 0300000020 [14:29:34]line РНМ: 0000000000161154 [14:29:34]line Версия ККМ: v1.0 [14:29:34]line ФМ: 0000000000963323 [14:29:34]line ФД: 73833 [14:29:34]line ФПД: 191110811429548 [14:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142935&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73833&fm=191110811429548&tin=02508201610067®Number=0000000000161154&sum=40000 [14:29:34]OFD Sender: Processing packet 73833 [packets to send 15, broken 14] [14:29:34]ProducePacketName [14:29:34]name=ofd_packets/00073833 [14:29:34]OFD Sender: To server: pG, [14:29:34]CommunicateWithHost lk.salyk.kg:30040 [14:29:34]ConnectInit lk.salyk.kg [14:29:34]written 0, free lines is 4095 [14:29:35]Connected sock=10 [14:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 76 BB 07 01 6F 9A 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 CF 13 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 20 01 00 35 04 06 00 AD D0 74 07 2A AC B7 BF 29 B2 8D 71 CF 17 [14:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2F F0 47 00 04 77 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 39 36 33 33 32 33 10 04 04 00 69 20 01 00 F4 03 04 00 B3 BC 14 67 B6 04 01 00 00 62 07 D9 95 2D 23 EB 9E [14:29:35]CommunicateWithHost err = 0 [14:29:35]CheckOFDResponse [14:29:35]1017 (14) - 77093643461234 [14:29:35]1041 (16) - 0000000000963323 [14:29:35]1040 (4) - 73833 [14:29:35]1012 (4) - 20.10.2024 08:17 [14:29:35]1206 (1) - 0 [14:29:35]OFD Sender: Remove packet 73833 [14:29:35]ProducePacketName [14:29:35]name=ofd_packets/00073833 [14:29:35]NVStorageDeleteData [14:29:35]Write to MH i2c: 01 00 00 E8 25 0D [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: 01 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: 01 07 00 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 C3 0C E3 [14:29:35]RasterBufferAndPrint [14:29:35]line [14:29:35]line [14:29:35]line [14:29:35]line [14:29:35]line [14:29:35]written 0, free lines is 3271 [14:29:35]MH_Cut [14:29:35]Write to MH i2c: D1 01 00 EF 25 01 E6 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: D1 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: D1 01 00 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: D1 01 00 EF 25 00 E5 [14:29:35]Write to MH i2c: 01 00 00 F0 25 15 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]OFD Sender: No OFD packet to send [14:29:36]*** Cut start [14:29:36]*** Partial cut [14:29:36]*** CUTSNS_PIN = 1 [14:29:36]*** CUTSNS_PIN = 0 [14:29:36]*** Brake cut motor [14:29:36]Read from MH i2c: 01 [14:29:36]MH_I2C_Read... [14:29:36]*** Stop cut motor [14:29:36]*** Cut end [14:29:36]Read from MH i2c: 01 07 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: 01 07 00 F0 25 00 00 00 00 00 FF 0F 2A [14:29:36]process_action close_receipt done [14:29:36]requested_data is exist [14:29:36]produce_requested_data [14:29:36]requested_item fm.sn is exist - process it [14:29:36]wFMCommunicate request_size=4 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 11 00 00 [14:29:36]Write to MH i2c: E2 08 00 F1 25 80 11 00 00 00 00 00 00 90 [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:36]Read from MH i2c: E2 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 17 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 17 00 F1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DD [14:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:29:36]wFMCommunicate OK [14:29:36]requested_item fd.num is exist - process it [14:29:36]SAM_PROTO_GetFieldsCounters [14:29:36]wFMCommunicate request_size=4 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 13 00 00 [14:29:36]Write to MH i2c: E2 08 00 F2 25 80 13 00 00 00 00 00 00 93 [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 62 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 62 00 F2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 69 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [14:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 69 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_GetFieldsCounters done [14:29:37]requested_item shift.num is exist - process it [14:29:37]requested_item shift.opened is exist - process it [14:29:37]req_shift_opened [14:29:37]FM_GetShiftState [14:29:37]SAM_PROTO_GetShiftState [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 13 01 00 [14:29:37]Write to MH i2c: E2 08 00 F3 25 80 13 01 00 00 00 00 00 95 [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0E 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0E 00 F3 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DA [14:29:37]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_GetShiftState done [14:29:37]FM_GetShiftState done [14:29:37]req_shift_opened done [14:29:37]requested_item shift.open_date is exist - process it [14:29:37]req_shift_open_date [14:29:37]req_shift_open_date done [14:29:37]produce_requested_data done [14:29:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73833,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:29:37]process_action_free close_receipt [14:29:37]json_value_free [14:29:37]json_value_free done [14:29:37]process_json_proto returns [14:29:37]Send response to host [14:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73833,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:29:37]free response buf [14:29:37]execute_script done [14:29:37]execute_script returns [14:29:37]free content buf [14:29:37]Sock 8.Close socket [14:29:37]Sock 8.Thread stoped [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:32]accept exits with 9 [14:30:32]New connection [14:30:32]New thread 3067575652 created [14:30:32]Thread 3067432292 joined [14:30:32]Waiting for new connection... [14:30:32] Sock 9.Parse request [14:30:32]Sock 9.Check first char [14:30:32]Sock 9.First char is OK [14:30:32]request: POST /json_proto HTTP/1.0 [14:30:32]Method: POST [14:30:32]URL: /json_proto [14:30:32]Method is POST - this is cgi request [14:30:32]url: /json_proto [14:30:32]query_string will be loaded in cgi processing [14:30:32]execute_cgi json_proto POST (null) [14:30:32]execute_cgi path=json_proto method=POST [14:30:32]POST find Content-Length [14:30:32]Host: 172.17.44.196:8080 [14:30:32]Content-Length: 679 [14:30:32]Content-Type: application/json [14:30:32] [14:30:32]POST finish read [14:30:32]Found Content-Length = 679 [14:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963042", "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" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]execute_script... [14:30: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)1963042", "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" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]POST & json_proto [14:30:32]process_json_proto [14:30:32]json parsed OK: [14:30:32]protocol is kg_v1.0 [14:30:32]action value=close_receipt [14:30:32]process_action close_receipt [14:30:32]cmd_close_receipt [14:30:32]MH_GetDate [14:30:32]Write to MH i2c: F0 00 00 F4 25 08 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 09 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 09 00 F4 25 00 0A 14 15 67 E7 19 F8 65 08 [14:30:32]GetLastDocTimeStamp 1729434575 [14:30:32]current date 1729434634 [14:30:32]FM_GetShiftState [14:30:32]SAM_PROTO_GetShiftState [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 01 00 [14:30:32]Write to MH i2c: E2 08 00 F5 25 80 13 01 00 00 00 00 00 97 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 F5 25 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DC [14:30:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetShiftState done [14:30:32]FM_GetShiftState done [14:30:32]opened in 1729384303 [14:30:32]opened+sec_in_day 1729470703 [14:30:32]quantity*price = 90047 [14:30:32]sum+1 = 90048 [14:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 160 20.10.2024 14:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73834 ФПД: 35361379992287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143034&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73834&fm=35361379992287&tin=02508201610067®Number=0000000000161154&sum=90000 [14:30:33]StoreToDocumentArchive [14:30:33]shift 170 fd 73834 [14:30:33]save to /storage/0170/doc_00073834 [14:30:33]save last doc name /storage/0170/doc_00073834 to /storage/kkm_last_doc_name [14:30:33]save OK [14:30:33]Clear old archive folders... [14:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:33]tlvbuf is 003D6270 [14:30:33]SAM_PROTO_ClearQueue [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 09 00 00 [14:30:33]Write to MH i2c: E2 08 00 02 26 80 09 00 00 00 00 00 00 9A [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]SAM_PROTO_ClearQueue done [14:30:33]KKMCreateOFDPacket [14:30:33]OFDProtocolAddRootSTLVToBuf [14:30:33]FM_MakeSignedData [14:30:33]FM_MakeSignedData [14:30:33]SAM_PROTO_SignData [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 0D 01 02 [14:30:33]Write to MH i2c: E2 08 00 03 26 80 0D 01 02 00 00 00 00 A2 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]wFMCommunicate request_size=255 [14:30:33]MH_SAM_APDU [14:30: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0A 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 20 01 00 35 04 06 00 20 [14:30:33]Write to MH i2c: E2 02 01 04 26 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0A 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 20 01 00 35 04 06 00 20 00 00 D0 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]wFMCommunicate request_size=10 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 02 02 05 29 36 7E 42 DF [14:30:34]Write to MH i2c: E2 0D 00 05 26 80 0D 02 02 05 00 29 36 7E 42 DF 00 00 AD [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 03 02 [14:30:34]Write to MH i2c: E2 08 00 06 26 80 0D 03 02 00 00 00 00 A7 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0B 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0B 00 06 26 00 CB 71 5E 06 BB 55 40 36 90 00 CE [14:30:34]RAPDU: CB 71 5E 06 BB 55 40 36 90 00 [14:30:34]wFMCommunicate OK [14:30:34]SAM_PROTO_SignData done [14:30:34]FM_MakeSignedData done [14:30:34]CreateOFDProtocolMessage [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 11 00 00 [14:30:34]Write to MH i2c: E2 08 00 07 26 80 11 00 00 00 00 00 00 A7 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 17 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 17 00 07 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F4 [14:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:30:34]wFMCommunicate OK [14:30:34]CreateOFDProtocolMessage done [14:30:34]OFDSenderStorePacket 73834 [14:30:34]StoreOFDPacket docnum=73834 [14:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E5 44 07 01 A3 86 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0A 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 20 01 00 35 04 06 00 20 29 36 7E 42 DF CB 71 5E 06 BB 55 40 36 [14:30:34]CheckFolder [14:30:34]dirname=/storage/ofd_packets [14:30:34]CheckFolder done [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00073834 [14:30:34]NVStorageSaveData ofd_packets/00073834 [14:30:34]File name is /storage/ofd_packets/00073834 [14:30:34]Write 301 bytes [14:30:34]NVStorageSaveData done [14:30:34]OFDSenderStorePacket done [14:30:34]KKMCreateOFDPacket done [14:30:34]NVStorageSaveData kkm_last_timestamp [14:30:34]File name is /storage/kkm_last_timestamp [14:30:34]Write 4 bytes [14:30:34]NVStorageSaveData done [14:30:34]ExternCall_PrintAddStr [14:30:34]wPrintStart [14:30:34]Write to MH i2c: 01 00 00 08 26 2E [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 08 26 00 00 00 00 00 FF 0F 43 [14:30:34]RasterBufferAndPrint [14:30:34]line Счет N : (1)1963042 [14:30:34]line ИНН: 02508201610067 [14:30:34]line Контрольно-Кассовый Чек [14:30:34]line ПРОДАЖА [14:30:34]line ТРК (МРК, ГНК) : 33 [14:30:34]line Товар: 2710124130 [14:30:34]line Аи-92-К-5 [14:30:34]line 13.460 * 66.90 [14:30:34]line = 900.47 [14:30:34]line НДС 12% НСП 1% [14:30:34]line > о реализуемом товаре [14:30:34]line ОКРУГЛЕНИЕ: -0.47 [14:30:34]line ИТОГО: 900.00 [14:30:34]line Внесено: 900.00 [14:30:34]line СДАЧА: 0.00 [14:30:34]line НСП 1% : 7.97 [14:30:34]line НДС 12% : 95.62 [14:30:34]line Наличными: 900.00 [14:30:34]line Безнал.: 0.00 [14:30:34]line Место: АЗС № 133 "Партнер Нефть" [14:30:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:30:34]line СНО: Общий режим [14:30:34]line Чек 160 20.10.2024 14:30 [14:30:34]line Смена: 170 ФФД: 1.0 [14:30:34]line ЗНМ: 0300000020 [14:30:34]line РНМ: 0000000000161154 [14:30:34]line Версия ККМ: v1.0 [14:30:34]line ФМ: 0000000000963323 [14:30:34]line ФД: 73834 [14:30:34]line ФПД: 35361379992287 [14:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143034&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73834&fm=35361379992287&tin=02508201610067®Number=0000000000161154&sum=90000 [14:30:34]OFD Sender: Processing packet 73834 [packets to send 15, broken 14] [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00073834 [14:30:34]OFD Sender: To server: pG, [14:30:34]CommunicateWithHost lk.salyk.kg:30040 [14:30:34]ConnectInit lk.salyk.kg [14:30:34]written 0, free lines is 4095 [14:30:34]Connected sock=10 [14:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E5 44 07 01 A3 86 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0A 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 20 01 00 35 04 06 00 20 29 36 7E 42 DF CB 71 5E 06 BB 55 40 36 [14:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AD 1D 47 00 79 92 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 39 36 33 33 32 33 10 04 04 00 6A 20 01 00 F4 03 04 00 EF BC 14 67 B6 04 01 00 00 67 F9 DF 1A 42 09 61 EB [14:30:34]CommunicateWithHost err = 0 [14:30:34]CheckOFDResponse [14:30:34]1017 (14) - 77093643461234 [14:30:34]1041 (16) - 0000000000963323 [14:30:34]1040 (4) - 73834 [14:30:34]1012 (4) - 20.10.2024 08:18 [14:30:34]1206 (1) - 0 [14:30:34]OFD Sender: Remove packet 73834 [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00073834 [14:30:34]NVStorageDeleteData [14:30:35]Write to MH i2c: 01 00 00 32 26 58 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 07 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 C4 0C 2F [14:30:35]RasterBufferAndPrint [14:30:35]line [14:30:35]line [14:30:35]line [14:30:35]line [14:30:35]line [14:30:35]written 0, free lines is 3273 [14:30:35]MH_Cut [14:30:35]Write to MH i2c: D1 01 00 39 26 01 31 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: D1 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: D1 01 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: D1 01 00 39 26 00 30 [14:30:35]Write to MH i2c: 01 00 00 3A 26 60 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]OFD Sender: No OFD packet to send [14:30:35]*** Cut start [14:30:35]*** Partial cut [14:30:35]*** CUTSNS_PIN = 1 [14:30:36]*** CUTSNS_PIN = 0 [14:30:36]*** Brake cut motor [14:30:36]Read from MH i2c: 01 [14:30:36]MH_I2C_Read... [14:30:36]*** Stop cut motor [14:30:36]*** Cut end [14:30:36]Read from MH i2c: 01 07 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: 01 07 00 3A 26 00 00 00 00 00 FF 0F 75 [14:30:36]process_action close_receipt done [14:30:36]requested_data is exist [14:30:36]produce_requested_data [14:30:36]requested_item fm.sn is exist - process it [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 11 00 00 [14:30:36]Write to MH i2c: E2 08 00 3B 26 80 11 00 00 00 00 00 00 DB [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 3B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [14:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:30:36]wFMCommunicate OK [14:30:36]requested_item fd.num is exist - process it [14:30:36]SAM_PROTO_GetFieldsCounters [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 13 00 00 [14:30:36]Write to MH i2c: E2 08 00 3C 26 80 13 00 00 00 00 00 00 DE [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 62 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 62 00 3C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [14:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_GetFieldsCounters done [14:30:36]requested_item shift.num is exist - process it [14:30:36]requested_item shift.opened is exist - process it [14:30:36]req_shift_opened [14:30:36]FM_GetShiftState [14:30:36]SAM_PROTO_GetShiftState [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 13 01 00 [14:30:36]Write to MH i2c: E2 08 00 3D 26 80 13 01 00 00 00 00 00 E0 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0E 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0E 00 3D 26 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 25 [14:30:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_GetShiftState done [14:30:36]FM_GetShiftState done [14:30:36]req_shift_opened done [14:30:36]requested_item shift.open_date is exist - process it [14:30:36]req_shift_open_date [14:30:36]req_shift_open_date done [14:30:36]produce_requested_data done [14:30:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73834,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:30:36]process_action_free close_receipt [14:30:36]json_value_free [14:30:36]json_value_free done [14:30:36]process_json_proto returns [14:30:36]Send response to host [14:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73834,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:30:36]free response buf [14:30:36]execute_script done [14:30:36]execute_script returns [14:30:36]free content buf [14:30:36]Sock 9.Close socket [14:30:36]Sock 9.Thread stoped [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:53]accept exits with 8 [14:30:53]New connection [14:30:53]New thread 3067432292 created [14:30:53]Thread 3067575652 joined [14:30:53]Waiting for new connection... [14:30:53] Sock 8.Parse request [14:30:53]Sock 8.Check first char [14:30:53]Sock 8.First char is OK [14:30:53]request: POST /json_proto HTTP/1.0 [14:30:53]Method: POST [14:30:53]URL: /json_proto [14:30:53]Method is POST - this is cgi request [14:30:53]url: /json_proto [14:30:53]query_string will be loaded in cgi processing [14:30:53]execute_cgi json_proto POST (null) [14:30:53]execute_cgi path=json_proto method=POST [14:30:53]POST find Content-Length [14:30:53]Host: 172.17.44.196:8080 [14:30:53]Content-Length: 678 [14:30:53]Content-Type: application/json [14:30:53] [14:30:53]POST finish read [14:30:53]Found Content-Length = 678 [14:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [14:30:53]execute_script... [14:30: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 : (1)1963043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [14:30:53]POST & json_proto [14:30:53]process_json_proto [14:30:53]json parsed OK: [14:30:53]protocol is kg_v1.0 [14:30:53]action value=close_receipt [14:30:53]process_action close_receipt [14:30:53]cmd_close_receipt [14:30:53]MH_GetDate [14:30:53]Write to MH i2c: F0 00 00 3E 26 53 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: F0 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: F0 09 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: F0 09 00 3E 26 00 1F 14 15 67 E7 19 F8 65 68 [14:30:53]GetLastDocTimeStamp 1729434634 [14:30:53]current date 1729434655 [14:30:53]FM_GetShiftState [14:30:53]SAM_PROTO_GetShiftState [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 13 01 00 [14:30:53]Write to MH i2c: E2 08 00 3F 26 80 13 01 00 00 00 00 00 E2 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0E 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0E 00 3F 26 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 27 [14:30:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_GetShiftState done [14:30:53]FM_GetShiftState done [14:30:53]opened in 1729384303 [14:30:53]opened+sec_in_day 1729470703 [14:30:53]quantity*price = 20034 [14:30:53]sum+1 = 20035 [14:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 161 20.10.2024 14:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73835 ФПД: 179216090540948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143055&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73835&fm=179216090540948&tin=02508201610067®Number=0000000000161154&sum=20000 [14:30:54]StoreToDocumentArchive [14:30:54]shift 170 fd 73835 [14:30:54]save to /storage/0170/doc_00073835 [14:30:54]save last doc name /storage/0170/doc_00073835 to /storage/kkm_last_doc_name [14:30:54]save OK [14:30:54]Clear old archive folders... [14:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:54]tlvbuf is 00322F60 [14:30:54]SAM_PROTO_ClearQueue [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 09 00 00 [14:30:54]Write to MH i2c: E2 08 00 4C 26 80 09 00 00 00 00 00 00 E4 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [14:30:55]RAPDU: 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_ClearQueue done [14:30:55]KKMCreateOFDPacket [14:30:55]OFDProtocolAddRootSTLVToBuf [14:30:55]FM_MakeSignedData [14:30:55]FM_MakeSignedData [14:30:55]SAM_PROTO_SignData [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 0D 01 02 [14:30:55]Write to MH i2c: E2 08 00 4D 26 80 0D 01 02 00 00 00 00 EC [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [14:30:55]RAPDU: 90 00 [14:30:55]wFMCommunicate OK [14:30:55]wFMCommunicate request_size=255 [14:30:55]MH_SAM_APDU [14:30: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 A1 00 00 00 F4 03 04 00 1F 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 20 01 00 35 04 06 00 A2 [14:30:55]Write to MH i2c: E2 02 01 4E 26 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 A1 00 00 00 F4 03 04 00 1F 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 20 01 00 35 04 06 00 A2 00 00 37 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 4E 26 00 90 00 E8 [14:30:55]RAPDU: 90 00 [14:30:55]wFMCommunicate OK [14:30:55]wFMCommunicate request_size=10 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 0D 02 02 05 FE FF 6A 2B 94 [14:30:55]Write to MH i2c: E2 0D 00 4F 26 80 0D 02 02 05 00 FE FF 6A 2B 94 00 00 1F [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 4F 26 00 90 00 E9 [14:30:55]RAPDU: 90 00 [14:30:55]wFMCommunicate OK [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 0D 03 02 [14:30:55]Write to MH i2c: E2 08 00 50 26 80 0D 03 02 00 00 00 00 F1 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0B 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0B 00 50 26 00 F3 23 B4 2A CC 19 5B 98 90 00 BE [14:30:55]RAPDU: F3 23 B4 2A CC 19 5B 98 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_SignData done [14:30:55]FM_MakeSignedData done [14:30:55]CreateOFDProtocolMessage [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 11 00 00 [14:30:55]Write to MH i2c: E2 08 00 51 26 80 11 00 00 00 00 00 00 F1 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]OFD Sender: No OFD packet to send [14:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 17 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 17 00 51 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [14:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:30:55]wFMCommunicate OK [14:30:55]CreateOFDProtocolMessage done [14:30:55]OFDSenderStorePacket 73835 [14:30:55]StoreOFDPacket docnum=73835 [14:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EC BE 07 01 71 1E 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 A1 00 00 00 F4 03 04 00 1F 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 20 01 00 35 04 06 00 A2 FE FF 6A 2B 94 F3 23 B4 2A CC 19 5B 98 [14:30:55]CheckFolder [14:30:55]dirname=/storage/ofd_packets [14:30:55]CheckFolder done [14:30:55]ProducePacketName [14:30:55]name=ofd_packets/00073835 [14:30:55]NVStorageSaveData ofd_packets/00073835 [14:30:55]File name is /storage/ofd_packets/00073835 [14:30:55]Write 301 bytes [14:30:55]NVStorageSaveData done [14:30:55]OFDSenderStorePacket done [14:30:55]KKMCreateOFDPacket done [14:30:55]NVStorageSaveData kkm_last_timestamp [14:30:55]File name is /storage/kkm_last_timestamp [14:30:55]Write 4 bytes [14:30:55]NVStorageSaveData done [14:30:55]ExternCall_PrintAddStr [14:30:55]wPrintStart [14:30:55]Write to MH i2c: 01 00 00 52 26 78 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: 01 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: 01 07 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: 01 07 00 52 26 00 00 00 00 00 FF 0F 8D [14:30:55]RasterBufferAndPrint [14:30:55]line Счет N : (1)1963043 [14:30:55]line ИНН: 02508201610067 [14:30:55]line Контрольно-Кассовый Чек [14:30:55]line ПРОДАЖА [14:30:55]line ТРК (МРК, ГНК) : 44 [14:30:55]line Товар: 2710124500 [14:30:55]line Аи-95-К-5 [14:30:55]line 2.700 * 74.20 [14:30:55]line = 200.34 [14:30:55]line НДС 12% НСП 1% [14:30:55]line > о реализуемом товаре [14:30:55]line ОКРУГЛЕНИЕ: -0.34 [14:30:55]line ИТОГО: 200.00 [14:30:55]line Внесено: 200.00 [14:30:55]line СДАЧА: 0.00 [14:30:55]line НСП 1% : 1.77 [14:30:55]line НДС 12% : 21.27 [14:30:55]line Наличными: 200.00 [14:30:55]line Безнал.: 0.00 [14:30:55]line Место: АЗС № 133 "Партнер Нефть" [14:30:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:30:55]line СНО: Общий режим [14:30:55]line Чек 161 20.10.2024 14:30 [14:30:55]line Смена: 170 ФФД: 1.0 [14:30:55]line ЗНМ: 0300000020 [14:30:55]line РНМ: 0000000000161154 [14:30:55]line Версия ККМ: v1.0 [14:30:55]line ФМ: 0000000000963323 [14:30:55]line ФД: 73835 [14:30:55]line ФПД: 179216090540948 [14:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143055&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73835&fm=179216090540948&tin=02508201610067®Number=0000000000161154&sum=20000 [14:30:55]OFD Sender: Processing packet 73835 [packets to send 15, broken 14] [14:30:55]ProducePacketName [14:30:55]name=ofd_packets/00073835 [14:30:55]OFD Sender: To server: pG, [14:30:55]CommunicateWithHost lk.salyk.kg:30040 [14:30:55]ConnectInit lk.salyk.kg [14:30:55]written 0, free lines is 4095 [14:30:56]Connected sock=10 [14:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EC BE 07 01 71 1E 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 A1 00 00 00 F4 03 04 00 1F 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 20 01 00 35 04 06 00 A2 FE FF 6A 2B 94 F3 23 B4 2A CC 19 5B 98 [14:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A2 50 47 00 D2 5B 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 39 36 33 33 32 33 10 04 04 00 6B 20 01 00 F4 03 04 00 04 BD 14 67 B6 04 01 00 00 A3 FB 5A 28 9B 3E E1 84 [14:30:56]CommunicateWithHost err = 0 [14:30:56]CheckOFDResponse [14:30:56]1017 (14) - 77093643461234 [14:30:56]1041 (16) - 0000000000963323 [14:30:56]1040 (4) - 73835 [14:30:56]1012 (4) - 20.10.2024 08:19 [14:30:56]1206 (1) - 0 [14:30:56]OFD Sender: Remove packet 73835 [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00073835 [14:30:56]NVStorageDeleteData [14:30:56]Write to MH i2c: 01 00 00 7C 26 A2 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 C9 0C 7E [14:30:56]RasterBufferAndPrint [14:30:56]line [14:30:56]line [14:30:56]line [14:30:56]line [14:30:56]line [14:30:56]written 0, free lines is 3278 [14:30:56]MH_Cut [14:30:56]Write to MH i2c: D1 01 00 83 26 01 7B [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: D1 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: D1 01 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: D1 01 00 83 26 00 7A [14:30:56]Write to MH i2c: 01 00 00 84 26 AA [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]OFD Sender: No OFD packet to send [14:30:57]*** Cut start [14:30:57]*** Partial cut [14:30:57]*** CUTSNS_PIN = 1 [14:30:57]*** CUTSNS_PIN = 0 [14:30:57]*** Brake cut motor [14:30:57]Read from MH i2c: 01 [14:30:57]MH_I2C_Read... [14:30:57]*** Stop cut motor [14:30:57]*** Cut end [14:30:57]Read from MH i2c: 01 07 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 84 26 00 00 00 00 00 FF 0F BF [14:30:57]process_action close_receipt done [14:30:57]requested_data is exist [14:30:57]produce_requested_data [14:30:57]requested_item fm.sn is exist - process it [14:30:57]wFMCommunicate request_size=4 [14:30:57]MH_SAM_APDU [14:30:57]CAPDU: 80 11 00 00 [14:30:57]Write to MH i2c: E2 08 00 85 26 80 11 00 00 00 00 00 00 25 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:57]Read from MH i2c: E2 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 17 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 17 00 85 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 72 [14:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:30:57]wFMCommunicate OK [14:30:57]requested_item fd.num is exist - process it [14:30:57]SAM_PROTO_GetFieldsCounters [14:30:57]wFMCommunicate request_size=4 [14:30:57]MH_SAM_APDU [14:30:57]CAPDU: 80 13 00 00 [14:30:57]Write to MH i2c: E2 08 00 86 26 80 13 00 00 00 00 00 00 28 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:57]Read from MH i2c: E2 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 62 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 62 00 86 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [14:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:57]wFMCommunicate OK [14:30:57]SAM_PROTO_GetFieldsCounters done [14:30:57]requested_item shift.num is exist - process it [14:30:57]requested_item shift.opened is exist - process it [14:30:57]req_shift_opened [14:30:57]FM_GetShiftState [14:30:57]SAM_PROTO_GetShiftState [14:30:57]wFMCommunicate request_size=4 [14:30:57]MH_SAM_APDU [14:30:57]CAPDU: 80 13 01 00 [14:30:57]Write to MH i2c: E2 08 00 87 26 80 13 01 00 00 00 00 00 2A [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:58]Read from MH i2c: E2 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 0E 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 0E 00 87 26 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [14:30:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:30:58]wFMCommunicate OK [14:30:58]SAM_PROTO_GetShiftState done [14:30:58]FM_GetShiftState done [14:30:58]req_shift_opened done [14:30:58]requested_item shift.open_date is exist - process it [14:30:58]req_shift_open_date [14:30:58]req_shift_open_date done [14:30:58]produce_requested_data done [14:30:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73835,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:30:58]process_action_free close_receipt [14:30:58]json_value_free [14:30:58]json_value_free done [14:30:58]process_json_proto returns [14:30:58]Send response to host [14:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73835,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:30:58]free response buf [14:30:58]execute_script done [14:30:58]execute_script returns [14:30:58]free content buf [14:30:58]Sock 8.Close socket [14:30:58]Sock 8.Thread stoped [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:24]accept exits with 9 [14:31:24]New connection [14:31:24]New thread 3067575652 created [14:31:24]Thread 3067432292 joined [14:31:24]Waiting for new connection... [14:31:24] Sock 9.Parse request [14:31:24]Sock 9.Check first char [14:31:24]Sock 9.First char is OK [14:31:24]request: POST /json_proto HTTP/1.0 [14:31:24]Method: POST [14:31:24]URL: /json_proto [14:31:24]Method is POST - this is cgi request [14:31:24]url: /json_proto [14:31:24]query_string will be loaded in cgi processing [14:31:24]execute_cgi json_proto POST (null) [14:31:24]execute_cgi path=json_proto method=POST [14:31:24]POST find Content-Length [14:31:24]Host: 172.17.44.196:8080 [14:31:24]Content-Length: 679 [14:31:24]Content-Type: application/json [14:31:24] [14:31:24]POST finish read [14:31:24]Found Content-Length = 679 [14:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963044", "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" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:24]execute_script... [14:31: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 : (1)1963044", "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" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:24]POST & json_proto [14:31:24]process_json_proto [14:31:24]json parsed OK: [14:31:24]protocol is kg_v1.0 [14:31:24]action value=close_receipt [14:31:24]process_action close_receipt [14:31:24]cmd_close_receipt [14:31:24]MH_GetDate [14:31:24]Write to MH i2c: F0 00 00 88 26 9D [14:31:24]Write i2c OK [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 09 00 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 09 00 88 26 00 3E 14 15 67 E7 19 F8 65 D1 [14:31:24]GetLastDocTimeStamp 1729434655 [14:31:24]current date 1729434686 [14:31:24]FM_GetShiftState [14:31:24]SAM_PROTO_GetShiftState [14:31:24]wFMCommunicate request_size=4 [14:31:24]MH_SAM_APDU [14:31:24]CAPDU: 80 13 01 00 [14:31:24]Write to MH i2c: E2 08 00 89 26 80 13 01 00 00 00 00 00 2C [14:31:24]Write i2c OK [14:31:24]MH_I2C_Read... [14:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:24]Read from MH i2c: E2 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: E2 0E 00 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: E2 0E 00 89 26 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [14:31:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:31:24]wFMCommunicate OK [14:31:24]SAM_PROTO_GetShiftState done [14:31:24]FM_GetShiftState done [14:31:24]opened in 1729384303 [14:31:24]opened+sec_in_day 1729470703 [14:31:24]quantity*price = 70044 [14:31:24]sum+1 = 70045 [14:31:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 162 20.10.2024 14:31 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73836 ФПД: 35370992202859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73836&fm=35370992202859&tin=02508201610067®Number=0000000000161154&sum=70000 [14:31:25]StoreToDocumentArchive [14:31:25]shift 170 fd 73836 [14:31:25]save to /storage/0170/doc_00073836 [14:31:25]save last doc name /storage/0170/doc_00073836 to /storage/kkm_last_doc_name [14:31:25]save OK [14:31:25]Clear old archive folders... [14:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:25]tlvbuf is 0033C9D0 [14:31:25]SAM_PROTO_ClearQueue [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 09 00 00 [14:31:25]Write to MH i2c: E2 08 00 96 26 80 09 00 00 00 00 00 00 2E [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 96 26 00 90 00 30 [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]SAM_PROTO_ClearQueue done [14:31:25]KKMCreateOFDPacket [14:31:25]OFDProtocolAddRootSTLVToBuf [14:31:25]FM_MakeSignedData [14:31:25]FM_MakeSignedData [14:31:25]SAM_PROTO_SignData [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 01 02 [14:31:25]Write to MH i2c: E2 08 00 97 26 80 0D 01 02 00 00 00 00 36 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=255 [14:31:25]MH_SAM_APDU [14:31:25]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3E 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 20 01 00 35 04 06 00 20 [14:31:25]Write to MH i2c: E2 02 01 98 26 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3E 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 20 01 00 35 04 06 00 20 00 00 8F [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 98 26 00 90 00 32 [14:31:26]RAPDU: 90 00 [14:31:26]wFMCommunicate OK [14:31:26]wFMCommunicate request_size=10 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 0D 02 02 05 2B 73 6C F4 6B [14:31:26]Write to MH i2c: E2 0D 00 99 26 80 0D 02 02 05 00 2B 73 6C F4 6B 00 00 AC [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [14:31:26]RAPDU: 90 00 [14:31:26]wFMCommunicate OK [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 0D 03 02 [14:31:26]Write to MH i2c: E2 08 00 9A 26 80 0D 03 02 00 00 00 00 3B [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0B 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0B 00 9A 26 00 1F 08 2E 96 6E 0B 2F E8 90 00 B7 [14:31:26]RAPDU: 1F 08 2E 96 6E 0B 2F E8 90 00 [14:31:26]wFMCommunicate OK [14:31:26]SAM_PROTO_SignData done [14:31:26]FM_MakeSignedData done [14:31:26]CreateOFDProtocolMessage [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 11 00 00 [14:31:26]Write to MH i2c: E2 08 00 9B 26 80 11 00 00 00 00 00 00 3B [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 17 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 17 00 9B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [14:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:31:26]wFMCommunicate OK [14:31:26]CreateOFDProtocolMessage done [14:31:26]OFDSenderStorePacket 73836 [14:31:26]StoreOFDPacket docnum=73836 [14:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E E8 07 01 97 7D 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3E 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 20 01 00 35 04 06 00 20 2B 73 6C F4 6B 1F 08 2E 96 6E 0B 2F E8 [14:31:26]CheckFolder [14:31:26]dirname=/storage/ofd_packets [14:31:26]CheckFolder done [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00073836 [14:31:26]NVStorageSaveData ofd_packets/00073836 [14:31:26]File name is /storage/ofd_packets/00073836 [14:31:26]Write 301 bytes [14:31:26]NVStorageSaveData done [14:31:26]OFDSenderStorePacket done [14:31:26]KKMCreateOFDPacket done [14:31:26]NVStorageSaveData kkm_last_timestamp [14:31:26]File name is /storage/kkm_last_timestamp [14:31:26]Write 4 bytes [14:31:26]NVStorageSaveData done [14:31:26]ExternCall_PrintAddStr [14:31:26]wPrintStart [14:31:26]Write to MH i2c: 01 00 00 9C 26 C2 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 FF 0F D7 [14:31:26]RasterBufferAndPrint [14:31:26]line Счет N : (1)1963044 [14:31:26]line ИНН: 02508201610067 [14:31:26]line Контрольно-Кассовый Чек [14:31:26]line ПРОДАЖА [14:31:26]line ТРК (МРК, ГНК) : 53 [14:31:26]line Товар: 2710124130 [14:31:26]line Аи-92-К-5 [14:31:26]line 10.470 * 66.90 [14:31:26]line = 700.44 [14:31:26]line НДС 12% НСП 1% [14:31:26]line > о реализуемом товаре [14:31:26]line ОКРУГЛЕНИЕ: -0.44 [14:31:26]line ИТОГО: 700.00 [14:31:26]line Внесено: 700.00 [14:31:26]line СДАЧА: 0.00 [14:31:26]line НСП 1% : 6.20 [14:31:26]line НДС 12% : 74.38 [14:31:26]line Наличными: 700.00 [14:31:26]line Безнал.: 0.00 [14:31:26]line Место: АЗС № 133 "Партнер Нефть" [14:31:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:31:26]line СНО: Общий режим [14:31:26]line Чек 162 20.10.2024 14:31 [14:31:26]line Смена: 170 ФФД: 1.0 [14:31:26]line ЗНМ: 0300000020 [14:31:26]line РНМ: 0000000000161154 [14:31:26]line Версия ККМ: v1.0 [14:31:26]line ФМ: 0000000000963323 [14:31:26]line ФД: 73836 [14:31:26]line ФПД: 35370992202859 [14:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143126&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73836&fm=35370992202859&tin=02508201610067®Number=0000000000161154&sum=70000 [14:31:26]OFD Sender: Processing packet 73836 [packets to send 15, broken 14] [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00073836 [14:31:26]OFD Sender: To server: pG, [14:31:26]CommunicateWithHost lk.salyk.kg:30040 [14:31:26]ConnectInit lk.salyk.kg [14:31:26]written 0, free lines is 4095 [14:31:26]Connected sock=10 [14:31:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E E8 07 01 97 7D 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3E 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 20 01 00 35 04 06 00 20 2B 73 6C F4 6B 1F 08 2E 96 6E 0B 2F E8 [14:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 2B 47 00 5B 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 39 36 33 33 32 33 10 04 04 00 6C 20 01 00 F4 03 04 00 23 BD 14 67 B6 04 01 00 00 0A 3E 46 70 49 91 D7 B0 [14:31:27]CommunicateWithHost err = 0 [14:31:27]CheckOFDResponse [14:31:27]1017 (14) - 77093643461234 [14:31:27]1041 (16) - 0000000000963323 [14:31:27]1040 (4) - 73836 [14:31:27]1012 (4) - 20.10.2024 08:19 [14:31:27]1206 (1) - 0 [14:31:27]OFD Sender: Remove packet 73836 [14:31:27]ProducePacketName [14:31:27]name=ofd_packets/00073836 [14:31:27]NVStorageDeleteData [14:31:27]Write to MH i2c: 01 00 00 C6 26 EC [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 B8 0C B7 [14:31:27]RasterBufferAndPrint [14:31:27]line [14:31:27]line [14:31:27]line [14:31:27]line [14:31:27]line [14:31:27]written 0, free lines is 3263 [14:31:27]MH_Cut [14:31:27]Write to MH i2c: D1 01 00 CD 26 01 C5 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: D1 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: D1 01 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: D1 01 00 CD 26 00 C4 [14:31:27]Write to MH i2c: 01 00 00 CE 26 F4 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]OFD Sender: No OFD packet to send [14:31:28]*** Cut start [14:31:28]*** Partial cut [14:31:28]*** CUTSNS_PIN = 1 [14:31:28]*** CUTSNS_PIN = 0 [14:31:28]*** Brake cut motor [14:31:28]Read from MH i2c: 01 [14:31:28]MH_I2C_Read... [14:31:28]*** Stop cut motor [14:31:28]*** Cut end [14:31:28]Read from MH i2c: 01 07 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 CE 26 00 00 00 00 00 FF 0F 09 [14:31:28]process_action close_receipt done [14:31:28]requested_data is exist [14:31:28]produce_requested_data [14:31:28]requested_item fm.sn is exist - process it [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 11 00 00 [14:31:28]Write to MH i2c: E2 08 00 CF 26 80 11 00 00 00 00 00 00 6F [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 17 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 17 00 CF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [14:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:31:28]wFMCommunicate OK [14:31:28]requested_item fd.num is exist - process it [14:31:28]SAM_PROTO_GetFieldsCounters [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 00 00 [14:31:28]Write to MH i2c: E2 08 00 D0 26 80 13 00 00 00 00 00 00 72 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 62 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 62 00 D0 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [14:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetFieldsCounters done [14:31:28]requested_item shift.num is exist - process it [14:31:28]requested_item shift.opened is exist - process it [14:31:28]req_shift_opened [14:31:28]FM_GetShiftState [14:31:28]SAM_PROTO_GetShiftState [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 01 00 [14:31:28]Write to MH i2c: E2 08 00 D1 26 80 13 01 00 00 00 00 00 74 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 D1 26 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B9 [14:31:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetShiftState done [14:31:28]FM_GetShiftState done [14:31:28]req_shift_opened done [14:31:28]requested_item shift.open_date is exist - process it [14:31:28]req_shift_open_date [14:31:28]req_shift_open_date done [14:31:28]produce_requested_data done [14:31:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73836,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:31:28]process_action_free close_receipt [14:31:28]json_value_free [14:31:28]json_value_free done [14:31:28]process_json_proto returns [14:31:28]Send response to host [14:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73836,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:31:28]free response buf [14:31:28]execute_script done [14:31:28]execute_script returns [14:31:28]free content buf [14:31:28]Sock 9.Close socket [14:31:28]Sock 9.Thread stoped [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:50]accept exits with 8 [14:32:50]New connection [14:32:50]New thread 3067432292 created [14:32:50]Thread 3067575652 joined [14:32:50]Waiting for new connection... [14:32:50] Sock 8.Parse request [14:32:50]Sock 8.Check first char [14:32:50]Sock 8.First char is OK [14:32:50]request: POST /json_proto HTTP/1.0 [14:32:50]Method: POST [14:32:50]URL: /json_proto [14:32:50]Method is POST - this is cgi request [14:32:50]url: /json_proto [14:32:50]query_string will be loaded in cgi processing [14:32:50]execute_cgi json_proto POST (null) [14:32:50]execute_cgi path=json_proto method=POST [14:32:50]POST find Content-Length [14:32:50]Host: 172.17.44.196:8080 [14:32:50]Content-Length: 683 [14:32:50]Content-Type: application/json [14:32:50] [14:32:50]POST finish read [14:32:50]Found Content-Length = 683 [14:32:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [14:32:50]execute_script... [14:32: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 : (1)1963046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [14:32:50]POST & json_proto [14:32:50]process_json_proto [14:32:50]json parsed OK: [14:32:50]protocol is kg_v1.0 [14:32:50]action value=close_receipt [14:32:50]process_action close_receipt [14:32:50]cmd_close_receipt [14:32:50]MH_GetDate [14:32:50]Write to MH i2c: F0 00 00 D2 26 E7 [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: F0 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: F0 09 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: F0 09 00 D2 26 00 94 14 15 67 E7 19 F8 65 71 [14:32:50]GetLastDocTimeStamp 1729434686 [14:32:50]current date 1729434772 [14:32:50]FM_GetShiftState [14:32:50]SAM_PROTO_GetShiftState [14:32:50]wFMCommunicate request_size=4 [14:32:50]MH_SAM_APDU [14:32:50]CAPDU: 80 13 01 00 [14:32:50]Write to MH i2c: E2 08 00 D3 26 80 13 01 00 00 00 00 00 76 [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 0E 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 0E 00 D3 26 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [14:32:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:32:50]wFMCommunicate OK [14:32:50]SAM_PROTO_GetShiftState done [14:32:50]FM_GetShiftState done [14:32:50]opened in 1729384303 [14:32:50]opened+sec_in_day 1729470703 [14:32:50]quantity*price = 100021 [14:32:50]sum+1 = 100023 [14:32:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 163 20.10.2024 14:32 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73837 ФПД: 99407239070203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73837&fm=99407239070203&tin=02508201610067®Number=0000000000161154&sum=100000 [14:32:51]StoreToDocumentArchive [14:32:51]shift 170 fd 73837 [14:32:51]save to /storage/0170/doc_00073837 [14:32:51]save last doc name /storage/0170/doc_00073837 to /storage/kkm_last_doc_name [14:32:51]save OK [14:32:51]Clear old archive folders... [14:32:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:51]tlvbuf is B6FED010 [14:32:51]SAM_PROTO_ClearQueue [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 09 00 00 [14:32:51]Write to MH i2c: E2 08 00 E0 26 80 09 00 00 00 00 00 00 78 [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 E0 26 00 90 00 7A [14:32:52]RAPDU: 90 00 [14:32:52]wFMCommunicate OK [14:32:52]SAM_PROTO_ClearQueue done [14:32:52]KKMCreateOFDPacket [14:32:52]OFDProtocolAddRootSTLVToBuf [14:32:52]FM_MakeSignedData [14:32:52]FM_MakeSignedData [14:32:52]SAM_PROTO_SignData [14:32:52]wFMCommunicate request_size=4 [14:32:52]MH_SAM_APDU [14:32:52]CAPDU: 80 0D 01 02 [14:32:52]Write to MH i2c: E2 08 00 E1 26 80 0D 01 02 00 00 00 00 80 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [14:32:52]RAPDU: 90 00 [14:32:52]wFMCommunicate OK [14:32:52]wFMCommunicate request_size=255 [14:32:52]MH_SAM_APDU [14:32:52]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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 A3 00 00 00 F4 03 04 00 94 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 20 01 00 35 04 06 00 5A [14:32:52]Write to MH i2c: E2 02 01 E2 26 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 A3 00 00 00 F4 03 04 00 94 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 20 01 00 35 04 06 00 5A 00 00 78 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [14:32:52]RAPDU: 90 00 [14:32:52]wFMCommunicate OK [14:32:52]wFMCommunicate request_size=10 [14:32:52]MH_SAM_APDU [14:32:52]CAPDU: 80 0D 02 02 05 69 0D 2C 41 FB [14:32:52]Write to MH i2c: E2 0D 00 E3 26 80 0D 02 02 05 00 69 0D 2C 41 FB 00 00 6B [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [14:32:52]RAPDU: 90 00 [14:32:52]wFMCommunicate OK [14:32:52]wFMCommunicate request_size=4 [14:32:52]MH_SAM_APDU [14:32:52]CAPDU: 80 0D 03 02 [14:32:52]Write to MH i2c: E2 08 00 E4 26 80 0D 03 02 00 00 00 00 85 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 0B 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 0B 00 E4 26 00 46 E1 AC 5B B4 6C DE 2E 90 00 E0 [14:32:52]RAPDU: 46 E1 AC 5B B4 6C DE 2E 90 00 [14:32:52]wFMCommunicate OK [14:32:52]SAM_PROTO_SignData done [14:32:52]FM_MakeSignedData done [14:32:52]CreateOFDProtocolMessage [14:32:52]wFMCommunicate request_size=4 [14:32:52]MH_SAM_APDU [14:32:52]CAPDU: 80 11 00 00 [14:32:52]Write to MH i2c: E2 08 00 E5 26 80 11 00 00 00 00 00 00 85 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 17 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 17 00 E5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [14:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:32:52]wFMCommunicate OK [14:32:52]CreateOFDProtocolMessage done [14:32:52]OFDSenderStorePacket 73837 [14:32:52]StoreOFDPacket docnum=73837 [14:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DF 88 07 01 85 DF 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 A3 00 00 00 F4 03 04 00 94 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 20 01 00 35 04 06 00 5A 69 0D 2C 41 FB 46 E1 AC 5B B4 6C DE 2E [14:32:52]CheckFolder [14:32:52]dirname=/storage/ofd_packets [14:32:52]CheckFolder done [14:32:52]ProducePacketName [14:32:52]name=ofd_packets/00073837 [14:32:52]NVStorageSaveData ofd_packets/00073837 [14:32:52]File name is /storage/ofd_packets/00073837 [14:32:52]Write 301 bytes [14:32:52]NVStorageSaveData done [14:32:52]OFDSenderStorePacket done [14:32:52]KKMCreateOFDPacket done [14:32:52]NVStorageSaveData kkm_last_timestamp [14:32:52]File name is /storage/kkm_last_timestamp [14:32:52]Write 4 bytes [14:32:52]NVStorageSaveData done [14:32:52]ExternCall_PrintAddStr [14:32:52]wPrintStart [14:32:52]Write to MH i2c: 01 00 00 E6 26 0C [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: 01 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: 01 07 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: 01 07 00 E6 26 00 00 00 00 00 FF 0F 21 [14:32:52]RasterBufferAndPrint [14:32:52]line Счет N : (1)1963046 [14:32:52]line ИНН: 02508201610067 [14:32:52]line Контрольно-Кассовый Чек [14:32:52]line ПРОДАЖА [14:32:52]line ТРК (МРК, ГНК) : 64 [14:32:52]line Товар: 2710124500 [14:32:52]line Аи-95-К-5 [14:32:52]line 13.480 * 74.20 [14:32:52]line = 1000.22 [14:32:52]line НДС 12% НСП 1% [14:32:52]line > о реализуемом товаре [14:32:52]line ОКРУГЛЕНИЕ: -0.22 [14:32:52]line ИТОГО: 1000.00 [14:32:52]line Внесено: 1000.00 [14:32:52]line СДАЧА: 0.00 [14:32:52]line НСП 1% : 8.85 [14:32:52]line НДС 12% : 106.22 [14:32:52]line Наличными: 1000.00 [14:32:52]line Безнал.: 0.00 [14:32:52]line Место: АЗС № 133 "Партнер Нефть" [14:32:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:32:52]line СНО: Общий режим [14:32:52]line Чек 163 20.10.2024 14:32 [14:32:52]line Смена: 170 ФФД: 1.0 [14:32:52]line ЗНМ: 0300000020 [14:32:52]line РНМ: 0000000000161154 [14:32:52]line Версия ККМ: v1.0 [14:32:52]line ФМ: 0000000000963323 [14:32:52]line ФД: 73837 [14:32:52]line ФПД: 99407239070203 [14:32:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73837&fm=99407239070203&tin=02508201610067®Number=0000000000161154&sum=100000 [14:32:52]OFD Sender: Processing packet 73837 [packets to send 15, broken 14] [14:32:52]ProducePacketName [14:32:52]name=ofd_packets/00073837 [14:32:52]OFD Sender: To server: pG, [14:32:52]CommunicateWithHost lk.salyk.kg:30040 [14:32:52]ConnectInit lk.salyk.kg [14:32:52]written 0, free lines is 4095 [14:32:53]Connected sock=10 [14:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DF 88 07 01 85 DF 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 A3 00 00 00 F4 03 04 00 94 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 20 01 00 35 04 06 00 5A 69 0D 2C 41 FB 46 E1 AC 5B B4 6C DE 2E [14:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C1 B4 47 00 5F 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 39 36 33 33 32 33 10 04 04 00 6D 20 01 00 F4 03 04 00 79 BD 14 67 B6 04 01 00 00 8B E0 7E 35 BF 78 58 85 [14:32:53]CommunicateWithHost err = 0 [14:32:53]CheckOFDResponse [14:32:53]1017 (14) - 77093643461234 [14:32:53]1041 (16) - 0000000000963323 [14:32:53]1040 (4) - 73837 [14:32:53]1012 (4) - 20.10.2024 08:21 [14:32:53]1206 (1) - 0 [14:32:53]OFD Sender: Remove packet 73837 [14:32:53]ProducePacketName [14:32:53]name=ofd_packets/00073837 [14:32:53]NVStorageDeleteData [14:32:53]Write to MH i2c: 01 00 00 10 27 37 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 07 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 07 00 10 27 00 00 00 00 00 BE 0C 08 [14:32:53]RasterBufferAndPrint [14:32:53]line [14:32:53]line [14:32:53]line [14:32:53]line [14:32:53]line [14:32:53]written 0, free lines is 3268 [14:32:53]MH_Cut [14:32:53]Write to MH i2c: D1 01 00 17 27 01 10 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: D1 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: D1 01 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: D1 01 00 17 27 00 0F [14:32:53]Write to MH i2c: 01 00 00 18 27 3F [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]OFD Sender: No OFD packet to send [14:32:54]*** Cut start [14:32:54]*** Partial cut [14:32:54]*** CUTSNS_PIN = 1 [14:32:54]*** CUTSNS_PIN = 0 [14:32:54]*** Brake cut motor [14:32:54]Read from MH i2c: 01 [14:32:54]MH_I2C_Read... [14:32:54]*** Stop cut motor [14:32:54]*** Cut end [14:32:54]Read from MH i2c: 01 07 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 18 27 00 00 00 00 00 FF 0F 54 [14:32:54]process_action close_receipt done [14:32:54]requested_data is exist [14:32:54]produce_requested_data [14:32:54]requested_item fm.sn is exist - process it [14:32:54]wFMCommunicate request_size=4 [14:32:54]MH_SAM_APDU [14:32:54]CAPDU: 80 11 00 00 [14:32:54]Write to MH i2c: E2 08 00 19 27 80 11 00 00 00 00 00 00 BA [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:54]Read from MH i2c: E2 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 17 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 17 00 19 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [14:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:32:54]wFMCommunicate OK [14:32:54]requested_item fd.num is exist - process it [14:32:54]SAM_PROTO_GetFieldsCounters [14:32:54]wFMCommunicate request_size=4 [14:32:54]MH_SAM_APDU [14:32:54]CAPDU: 80 13 00 00 [14:32:54]Write to MH i2c: E2 08 00 1A 27 80 13 00 00 00 00 00 00 BD [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:54]Read from MH i2c: E2 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 62 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 62 00 1A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [14:32:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:55]wFMCommunicate OK [14:32:55]SAM_PROTO_GetFieldsCounters done [14:32:55]requested_item shift.num is exist - process it [14:32:55]requested_item shift.opened is exist - process it [14:32:55]req_shift_opened [14:32:55]FM_GetShiftState [14:32:55]SAM_PROTO_GetShiftState [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 13 01 00 [14:32:55]Write to MH i2c: E2 08 00 1B 27 80 13 01 00 00 00 00 00 BF [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 0E 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 0E 00 1B 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 04 [14:32:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:32:55]wFMCommunicate OK [14:32:55]SAM_PROTO_GetShiftState done [14:32:55]FM_GetShiftState done [14:32:55]req_shift_opened done [14:32:55]requested_item shift.open_date is exist - process it [14:32:55]req_shift_open_date [14:32:55]req_shift_open_date done [14:32:55]produce_requested_data done [14:32:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73837,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:32:55]process_action_free close_receipt [14:32:55]json_value_free [14:32:55]json_value_free done [14:32:55]process_json_proto returns [14:32:55]Send response to host [14:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73837,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:32:55]free response buf [14:32:55]execute_script done [14:32:55]execute_script returns [14:32:55]free content buf [14:32:55]Sock 8.Close socket [14:32:55]Sock 8.Thread stoped [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:11]accept exits with 9 [14:33:11]New connection [14:33:11]New thread 3067575652 created [14:33:11]Thread 3067432292 joined [14:33:11]Waiting for new connection... [14:33:11] Sock 9.Parse request [14:33:11]Sock 9.Check first char [14:33:11]Sock 9.First char is OK [14:33:11]request: POST /json_proto HTTP/1.0 [14:33:11]Method: POST [14:33:11]URL: /json_proto [14:33:11]Method is POST - this is cgi request [14:33:11]url: /json_proto [14:33:11]query_string will be loaded in cgi processing [14:33:11]execute_cgi json_proto POST (null) [14:33:11]execute_cgi path=json_proto method=POST [14:33:11]POST find Content-Length [14:33:11]Host: 172.17.44.196:8080 [14:33:11]Content-Length: 678 [14:33:11]Content-Type: application/json [14:33:11] [14:33:11]POST finish read [14:33:11]Found Content-Length = 678 [14:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963048", "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" : 7.480, "sum" : 500.41, "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" ] } } [14:33:11]execute_script... [14:33: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 : (1)1963048", "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" : 7.480, "sum" : 500.41, "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" ] } } [14:33:11]POST & json_proto [14:33:11]process_json_proto [14:33:11]json parsed OK: [14:33:11]protocol is kg_v1.0 [14:33:11]action value=close_receipt [14:33:11]process_action close_receipt [14:33:11]cmd_close_receipt [14:33:11]MH_GetDate [14:33:11]Write to MH i2c: F0 00 00 1C 27 32 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 1C 27 00 A9 14 15 67 E7 19 F8 65 D1 [14:33:11]GetLastDocTimeStamp 1729434772 [14:33:11]current date 1729434793 [14:33:11]FM_GetShiftState [14:33:11]SAM_PROTO_GetShiftState [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 13 01 00 [14:33:11]Write to MH i2c: E2 08 00 1D 27 80 13 01 00 00 00 00 00 C1 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 1D 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 06 [14:33:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_GetShiftState done [14:33:11]FM_GetShiftState done [14:33:11]opened in 1729384303 [14:33:11]opened+sec_in_day 1729470703 [14:33:11]quantity*price = 50041 [14:33:11]sum+1 = 50042 [14:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 164 20.10.2024 14:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73838 ФПД: 214729959376579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143313&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73838&fm=214729959376579&tin=02508201610067®Number=0000000000161154&sum=50000 [14:33:12]StoreToDocumentArchive [14:33:12]shift 170 fd 73838 [14:33:12]save to /storage/0170/doc_00073838 [14:33:12]save last doc name /storage/0170/doc_00073838 to /storage/kkm_last_doc_name [14:33:12]save OK [14:33:12]Clear old archive folders... [14:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:12]tlvbuf is 0033CC80 [14:33:12]SAM_PROTO_ClearQueue [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 09 00 00 [14:33:12]Write to MH i2c: E2 08 00 2A 27 80 09 00 00 00 00 00 00 C3 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 2A 27 00 90 00 C5 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_ClearQueue done [14:33:12]KKMCreateOFDPacket [14:33:12]OFDProtocolAddRootSTLVToBuf [14:33:12]FM_MakeSignedData [14:33:12]FM_MakeSignedData [14:33:12]SAM_PROTO_SignData [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 01 02 [14:33:12]Write to MH i2c: E2 08 00 2B 27 80 0D 01 02 00 00 00 00 CB [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 2B 27 00 90 00 C6 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=255 [14:33:12]MH_SAM_APDU [14:33:12]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 A4 00 00 00 F4 03 04 00 A9 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 20 01 00 35 04 06 00 C3 [14:33:12]Write to MH i2c: E2 02 01 2C 27 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 A4 00 00 00 F4 03 04 00 A9 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 20 01 00 35 04 06 00 C3 00 00 26 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=10 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 05 4B B6 F3 86 C3 [14:33:12]Write to MH i2c: E2 0D 00 2D 27 80 0D 02 02 05 00 4B B6 F3 86 C3 00 00 15 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 03 02 [14:33:12]Write to MH i2c: E2 08 00 2E 27 80 0D 03 02 00 00 00 00 D0 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 2E 27 00 6A 57 52 C5 E9 87 44 74 90 00 D1 [14:33:12]RAPDU: 6A 57 52 C5 E9 87 44 74 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_SignData done [14:33:12]FM_MakeSignedData done [14:33:12]CreateOFDProtocolMessage [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 11 00 00 [14:33:12]Write to MH i2c: E2 08 00 2F 27 80 11 00 00 00 00 00 00 D0 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 2F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1D [14:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:12]wFMCommunicate OK [14:33:12]CreateOFDProtocolMessage done [14:33:12]OFDSenderStorePacket 73838 [14:33:12]StoreOFDPacket docnum=73838 [14:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC C6 07 01 FE F9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 A4 00 00 00 F4 03 04 00 A9 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 20 01 00 35 04 06 00 C3 4B B6 F3 86 C3 6A 57 52 C5 E9 87 44 74 [14:33:12]CheckFolder [14:33:12]dirname=/storage/ofd_packets [14:33:12]CheckFolder done [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00073838 [14:33:12]NVStorageSaveData ofd_packets/00073838 [14:33:12]File name is /storage/ofd_packets/00073838 [14:33:12]Write 301 bytes [14:33:12]NVStorageSaveData done [14:33:12]OFDSenderStorePacket done [14:33:12]KKMCreateOFDPacket done [14:33:12]NVStorageSaveData kkm_last_timestamp [14:33:12]File name is /storage/kkm_last_timestamp [14:33:12]Write 4 bytes [14:33:12]NVStorageSaveData done [14:33:12]ExternCall_PrintAddStr [14:33:12]wPrintStart [14:33:12]Write to MH i2c: 01 00 00 30 27 57 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 30 27 00 00 00 00 00 FF 0F 6C [14:33:12]RasterBufferAndPrint [14:33:12]line Счет N : (1)1963048 [14:33:12]line ИНН: 02508201610067 [14:33:12]line Контрольно-Кассовый Чек [14:33:12]line ПРОДАЖА [14:33:12]line ТРК (МРК, ГНК) : 43 [14:33:12]line Товар: 2710124130 [14:33:12]line Аи-92-К-5 [14:33:12]line 7.480 * 66.90 [14:33:12]line = 500.41 [14:33:12]line НДС 12% НСП 1% [14:33:12]line > о реализуемом товаре [14:33:12]line ОКРУГЛЕНИЕ: -0.41 [14:33:12]line ИТОГО: 500.00 [14:33:12]line Внесено: 500.00 [14:33:12]line СДАЧА: 0.00 [14:33:12]line НСП 1% : 4.43 [14:33:12]line НДС 12% : 53.14 [14:33:12]line Наличными: 500.00 [14:33:12]line Безнал.: 0.00 [14:33:12]line Место: АЗС № 133 "Партнер Нефть" [14:33:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:33:12]line СНО: Общий режим [14:33:12]line Чек 164 20.10.2024 14:33 [14:33:12]line Смена: 170 ФФД: 1.0 [14:33:12]line ЗНМ: 0300000020 [14:33:12]line РНМ: 0000000000161154 [14:33:12]line Версия ККМ: v1.0 [14:33:12]line ФМ: 0000000000963323 [14:33:12]line ФД: 73838 [14:33:12]line ФПД: 214729959376579 [14:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143313&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73838&fm=214729959376579&tin=02508201610067®Number=0000000000161154&sum=50000 [14:33:13]OFD Sender: Processing packet 73838 [packets to send 15, broken 14] [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00073838 [14:33:13]OFD Sender: To server: pG, [14:33:13]CommunicateWithHost lk.salyk.kg:30040 [14:33:13]ConnectInit lk.salyk.kg [14:33:13]written 0, free lines is 4095 [14:33:13]Connected sock=10 [14:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC C6 07 01 FE F9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 A4 00 00 00 F4 03 04 00 A9 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 20 01 00 35 04 06 00 C3 4B B6 F3 86 C3 6A 57 52 C5 E9 87 44 74 [14:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B2 5E 47 00 BA 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 39 36 33 33 32 33 10 04 04 00 6E 20 01 00 F4 03 04 00 8D BD 14 67 B6 04 01 00 00 5E 78 D4 95 6D 69 50 3B [14:33:13]CommunicateWithHost err = 0 [14:33:13]CheckOFDResponse [14:33:13]1017 (14) - 77093643461234 [14:33:13]1041 (16) - 0000000000963323 [14:33:13]1040 (4) - 73838 [14:33:13]1012 (4) - 20.10.2024 08:21 [14:33:13]1206 (1) - 0 [14:33:13]OFD Sender: Remove packet 73838 [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00073838 [14:33:13]NVStorageDeleteData [14:33:13]Write to MH i2c: 01 00 00 5A 27 81 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 5A 27 00 00 00 00 00 B6 0C 4A [14:33:13]RasterBufferAndPrint [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]written 0, free lines is 3259 [14:33:13]MH_Cut [14:33:13]Write to MH i2c: D1 01 00 61 27 01 5A [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 61 27 00 59 [14:33:13]Write to MH i2c: 01 00 00 62 27 89 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:14]OFD Sender: No OFD packet to send [14:33:14]*** Cut start [14:33:14]*** Partial cut [14:33:14]*** CUTSNS_PIN = 1 [14:33:14]*** CUTSNS_PIN = 0 [14:33:14]*** Brake cut motor [14:33:15]Read from MH i2c: 01 [14:33:15]MH_I2C_Read... [14:33:15]*** Stop cut motor [14:33:15]*** Cut end [14:33:15]Read from MH i2c: 01 07 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: 01 07 00 62 27 00 00 00 00 00 FF 0F 9E [14:33:15]process_action close_receipt done [14:33:15]requested_data is exist [14:33:15]produce_requested_data [14:33:15]requested_item fm.sn is exist - process it [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 11 00 00 [14:33:15]Write to MH i2c: E2 08 00 63 27 80 11 00 00 00 00 00 00 04 [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 17 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 17 00 63 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [14:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:15]wFMCommunicate OK [14:33:15]requested_item fd.num is exist - process it [14:33:15]SAM_PROTO_GetFieldsCounters [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 13 00 00 [14:33:15]Write to MH i2c: E2 08 00 64 27 80 13 00 00 00 00 00 00 07 [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 62 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 62 00 64 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [14:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:15]wFMCommunicate OK [14:33:15]SAM_PROTO_GetFieldsCounters done [14:33:15]requested_item shift.num is exist - process it [14:33:15]requested_item shift.opened is exist - process it [14:33:15]req_shift_opened [14:33:15]FM_GetShiftState [14:33:15]SAM_PROTO_GetShiftState [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 13 01 00 [14:33:15]Write to MH i2c: E2 08 00 65 27 80 13 01 00 00 00 00 00 09 [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 65 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4E [14:33:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:15]wFMCommunicate OK [14:33:15]SAM_PROTO_GetShiftState done [14:33:15]FM_GetShiftState done [14:33:15]req_shift_opened done [14:33:15]requested_item shift.open_date is exist - process it [14:33:15]req_shift_open_date [14:33:15]req_shift_open_date done [14:33:15]produce_requested_data done [14:33:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73838,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:33:15]process_action_free close_receipt [14:33:15]json_value_free [14:33:15]json_value_free done [14:33:15]process_json_proto returns [14:33:15]Send response to host [14:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73838,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:33:15]free response buf [14:33:15]execute_script done [14:33:15]execute_script returns [14:33:15]free content buf [14:33:15]Sock 9.Close socket [14:33:15]Sock 9.Thread stoped [14:33:15]accept exits with 8 [14:33:15]New connection [14:33:15]New thread 3067432292 created [14:33:15]Thread 3067575652 joined [14:33:15]Waiting for new connection... [14:33:15] Sock 8.Parse request [14:33:15]Sock 8.Check first char [14:33:15]Sock 8.First char is OK [14:33:15]request: POST /json_proto HTTP/1.0 [14:33:15]Method: POST [14:33:15]URL: /json_proto [14:33:15]Method is POST - this is cgi request [14:33:15]url: /json_proto [14:33:15]query_string will be loaded in cgi processing [14:33:15]execute_cgi json_proto POST (null) [14:33:15]execute_cgi path=json_proto method=POST [14:33:15]POST find Content-Length [14:33:15]Host: 172.17.44.196:8080 [14:33:15]Content-Length: 680 [14:33:15]Content-Type: application/json [14:33:15] [14:33:15]POST finish read [14:33:15]Found Content-Length = 680 [14:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:33:15]execute_script... [14:33:15]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)1963049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:33:15]POST & json_proto [14:33:15]process_json_proto [14:33:15]json parsed OK: [14:33:15]protocol is kg_v1.0 [14:33:15]action value=close_receipt [14:33:15]process_action close_receipt [14:33:15]cmd_close_receipt [14:33:15]MH_GetDate [14:33:15]Write to MH i2c: F0 00 00 66 27 7C [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: F0 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: F0 09 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: F0 09 00 66 27 00 AD 14 15 67 E7 19 F8 65 1F [14:33:15]GetLastDocTimeStamp 1729434793 [14:33:15]current date 1729434797 [14:33:15]FM_GetShiftState [14:33:15]SAM_PROTO_GetShiftState [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 13 01 00 [14:33:15]Write to MH i2c: E2 08 00 67 27 80 13 01 00 00 00 00 00 0B [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:15]Read from MH i2c: E2 0E 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 67 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 50 [14:33:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:15]wFMCommunicate OK [14:33:15]SAM_PROTO_GetShiftState done [14:33:15]FM_GetShiftState done [14:33:15]opened in 1729384303 [14:33:15]opened+sec_in_day 1729470703 [14:33:15]quantity*price = 100050 [14:33:15]sum+1 = 100052 [14:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 165 20.10.2024 14:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73839 ФПД: 230872527882339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143317&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73839&fm=230872527882339&tin=02508201610067®Number=0000000000161154&sum=100000 [14:33:17]StoreToDocumentArchive [14:33:17]shift 170 fd 73839 [14:33:17]save to /storage/0170/doc_00073839 [14:33:17]save last doc name /storage/0170/doc_00073839 to /storage/kkm_last_doc_name [14:33:17]save OK [14:33:17]Clear old archive folders... [14:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:17]tlvbuf is 0034FDF0 [14:33:17]SAM_PROTO_ClearQueue [14:33:17]wFMCommunicate request_size=4 [14:33:17]MH_SAM_APDU [14:33:17]CAPDU: 80 09 00 00 [14:33:17]Write to MH i2c: E2 08 00 74 27 80 09 00 00 00 00 00 00 0D [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 74 27 00 90 00 0F [14:33:17]RAPDU: 90 00 [14:33:17]wFMCommunicate OK [14:33:17]SAM_PROTO_ClearQueue done [14:33:17]KKMCreateOFDPacket [14:33:17]OFDProtocolAddRootSTLVToBuf [14:33:17]FM_MakeSignedData [14:33:17]FM_MakeSignedData [14:33:17]SAM_PROTO_SignData [14:33:17]wFMCommunicate request_size=4 [14:33:17]MH_SAM_APDU [14:33:17]CAPDU: 80 0D 01 02 [14:33:17]Write to MH i2c: E2 08 00 75 27 80 0D 01 02 00 00 00 00 15 [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 75 27 00 90 00 10 [14:33:17]RAPDU: 90 00 [14:33:17]wFMCommunicate OK [14:33:17]wFMCommunicate request_size=255 [14:33:17]MH_SAM_APDU [14:33:17]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 A5 00 00 00 F4 03 04 00 AD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 20 01 00 35 04 06 00 D1 FA 33 03 [14:33:17]Write to MH i2c: E2 02 01 76 27 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 A5 00 00 00 F4 03 04 00 AD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 20 01 00 35 04 06 00 D1 FA 33 03 00 00 AA [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 76 27 00 90 00 11 [14:33:17]RAPDU: 90 00 [14:33:17]wFMCommunicate OK [14:33:17]wFMCommunicate request_size=7 [14:33:17]MH_SAM_APDU [14:33:17]CAPDU: 80 0D 02 02 02 48 63 [14:33:17]Write to MH i2c: E2 0A 00 77 27 80 0D 02 02 02 00 48 63 00 00 C7 [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [14:33:17]RAPDU: 90 00 [14:33:17]wFMCommunicate OK [14:33:17]wFMCommunicate request_size=4 [14:33:17]MH_SAM_APDU [14:33:17]CAPDU: 80 0D 03 02 [14:33:17]Write to MH i2c: E2 08 00 78 27 80 0D 03 02 00 00 00 00 1A [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 0B 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 0B 00 78 27 00 B8 25 8A 39 CC 2E 03 E2 90 00 9A [14:33:17]RAPDU: B8 25 8A 39 CC 2E 03 E2 90 00 [14:33:17]wFMCommunicate OK [14:33:17]SAM_PROTO_SignData done [14:33:17]FM_MakeSignedData done [14:33:17]CreateOFDProtocolMessage [14:33:17]wFMCommunicate request_size=4 [14:33:17]MH_SAM_APDU [14:33:17]CAPDU: 80 11 00 00 [14:33:17]Write to MH i2c: E2 08 00 79 27 80 11 00 00 00 00 00 00 1A [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:17]Read from MH i2c: E2 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 17 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: E2 17 00 79 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [14:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:17]wFMCommunicate OK [14:33:17]CreateOFDProtocolMessage done [14:33:17]OFDSenderStorePacket 73839 [14:33:17]StoreOFDPacket docnum=73839 [14:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4C 0C 04 01 CB 28 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 A5 00 00 00 F4 03 04 00 AD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 20 01 00 35 04 06 00 D1 FA 33 03 48 63 B8 25 8A 39 CC 2E 03 E2 [14:33:17]CheckFolder [14:33:17]dirname=/storage/ofd_packets [14:33:17]CheckFolder done [14:33:17]ProducePacketName [14:33:17]name=ofd_packets/00073839 [14:33:17]NVStorageSaveData ofd_packets/00073839 [14:33:17]File name is /storage/ofd_packets/00073839 [14:33:17]Write 298 bytes [14:33:17]NVStorageSaveData done [14:33:17]OFDSenderStorePacket done [14:33:17]KKMCreateOFDPacket done [14:33:17]NVStorageSaveData kkm_last_timestamp [14:33:17]File name is /storage/kkm_last_timestamp [14:33:17]Write 4 bytes [14:33:17]NVStorageSaveData done [14:33:17]ExternCall_PrintAddStr [14:33:17]wPrintStart [14:33:17]Write to MH i2c: 01 00 00 7A 27 A1 [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: 01 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: 01 07 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: 01 07 00 7A 27 00 00 00 00 00 FF 0F B6 [14:33:17]RasterBufferAndPrint [14:33:17]line Счет N : (1)1963049 [14:33:17]line ИНН: 02508201610067 [14:33:17]line Контрольно-Кассовый Чек [14:33:17]line ПРОДАЖА [14:33:17]line ТРК (МРК, ГНК) : 31 [14:33:17]line Товар: 2710194210 [14:33:17]line ДТ-К-5 [14:33:17]line 13.130 * 76.20 [14:33:17]line = 1000.51 [14:33:17]line НДС 12% НСП 1% [14:33:17]line > о реализуемом товаре [14:33:17]line ОКРУГЛЕНИЕ: -0.51 [14:33:17]line ИТОГО: 1000.00 [14:33:17]line Внесено: 1000.00 [14:33:17]line СДАЧА: 0.00 [14:33:17]line НСП 1% : 8.85 [14:33:17]line НДС 12% : 106.25 [14:33:17]line Наличными: 1000.00 [14:33:17]line Безнал.: 0.00 [14:33:17]line Место: АЗС № 133 "Партнер Нефть" [14:33:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:33:17]line СНО: Общий режим [14:33:17]line Чек 165 20.10.2024 14:33 [14:33:17]line Смена: 170 ФФД: 1.0 [14:33:17]line ЗНМ: 0300000020 [14:33:17]line РНМ: 0000000000161154 [14:33:17]line Версия ККМ: v1.0 [14:33:17]line ФМ: 0000000000963323 [14:33:17]line ФД: 73839 [14:33:17]line ФПД: 230872527882339 [14:33:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143317&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73839&fm=230872527882339&tin=02508201610067®Number=0000000000161154&sum=100000 [14:33:18]OFD Sender: Processing packet 73839 [packets to send 15, broken 14] [14:33:18]ProducePacketName [14:33:18]name=ofd_packets/00073839 [14:33:18]written 0, free lines is 4095 [14:33:18]OFD Sender: To server: pG, [14:33:18]CommunicateWithHost lk.salyk.kg:30040 [14:33:18]ConnectInit lk.salyk.kg [14:33:18]Connected sock=9 [14:33:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4C 0C 04 01 CB 28 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 A5 00 00 00 F4 03 04 00 AD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 20 01 00 35 04 06 00 D1 FA 33 03 48 63 B8 25 8A 39 CC 2E 03 E2 [14:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 37 FF 47 00 02 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 39 36 33 33 32 33 10 04 04 00 6F 20 01 00 F4 03 04 00 92 BD 14 67 B6 04 01 00 00 64 69 0C 2D 22 27 9A 36 [14:33:18]CommunicateWithHost err = 0 [14:33:18]CheckOFDResponse [14:33:18]1017 (14) - 77093643461234 [14:33:18]1041 (16) - 0000000000963323 [14:33:18]1040 (4) - 73839 [14:33:18]1012 (4) - 20.10.2024 08:21 [14:33:18]1206 (1) - 0 [14:33:18]OFD Sender: Remove packet 73839 [14:33:18]ProducePacketName [14:33:18]name=ofd_packets/00073839 [14:33:18]NVStorageDeleteData [14:33:18]Write to MH i2c: 01 00 00 A4 27 CB [14:33:18]Write i2c OK [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: 01 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: 01 07 00 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: 01 07 00 A4 27 00 00 00 00 00 C5 0C A3 [14:33:18]RasterBufferAndPrint [14:33:18]line [14:33:18]line [14:33:18]line [14:33:18]line [14:33:18]line [14:33:18]written 0, free lines is 3281 [14:33:18]MH_Cut [14:33:18]Write to MH i2c: D1 01 00 AB 27 01 A4 [14:33:18]Write i2c OK [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: D1 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: D1 01 00 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: D1 01 00 AB 27 00 A3 [14:33:18]Write to MH i2c: 01 00 00 AC 27 D3 [14:33:18]Write i2c OK [14:33:18]MH_I2C_Read... [14:33:19]OFD Sender: No OFD packet to send [14:33:19]*** Cut start [14:33:19]*** Partial cut [14:33:19]*** CUTSNS_PIN = 1 [14:33:19]*** CUTSNS_PIN = 0 [14:33:19]*** Brake cut motor [14:33:20]Read from MH i2c: 01 [14:33:20]MH_I2C_Read... [14:33:20]*** Stop cut motor [14:33:20]*** Cut end [14:33:20]Read from MH i2c: 01 07 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: 01 07 00 AC 27 00 00 00 00 00 FF 0F E8 [14:33:20]process_action close_receipt done [14:33:20]requested_data is exist [14:33:20]produce_requested_data [14:33:20]requested_item fm.sn is exist - process it [14:33:20]wFMCommunicate request_size=4 [14:33:20]MH_SAM_APDU [14:33:20]CAPDU: 80 11 00 00 [14:33:20]Write to MH i2c: E2 08 00 AD 27 80 11 00 00 00 00 00 00 4E [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:20]Read from MH i2c: E2 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 17 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 17 00 AD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [14:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:20]wFMCommunicate OK [14:33:20]requested_item fd.num is exist - process it [14:33:20]SAM_PROTO_GetFieldsCounters [14:33:20]wFMCommunicate request_size=4 [14:33:20]MH_SAM_APDU [14:33:20]CAPDU: 80 13 00 00 [14:33:20]Write to MH i2c: E2 08 00 AE 27 80 13 00 00 00 00 00 00 51 [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:20]Read from MH i2c: E2 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 62 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 62 00 AE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [14:33:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:20]wFMCommunicate OK [14:33:20]SAM_PROTO_GetFieldsCounters done [14:33:20]requested_item shift.num is exist - process it [14:33:20]requested_item shift.opened is exist - process it [14:33:20]req_shift_opened [14:33:20]FM_GetShiftState [14:33:20]SAM_PROTO_GetShiftState [14:33:20]wFMCommunicate request_size=4 [14:33:20]MH_SAM_APDU [14:33:20]CAPDU: 80 13 01 00 [14:33:20]Write to MH i2c: E2 08 00 AF 27 80 13 01 00 00 00 00 00 53 [14:33:20]Write i2c OK [14:33:20]MH_I2C_Read... [14:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:20]Read from MH i2c: E2 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 0E 00 [14:33:20]MH_I2C_Read... [14:33:20]Read from MH i2c: E2 0E 00 AF 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 98 [14:33:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:20]wFMCommunicate OK [14:33:20]SAM_PROTO_GetShiftState done [14:33:20]FM_GetShiftState done [14:33:20]req_shift_opened done [14:33:20]requested_item shift.open_date is exist - process it [14:33:20]req_shift_open_date [14:33:20]req_shift_open_date done [14:33:20]produce_requested_data done [14:33:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73839,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:33:20]process_action_free close_receipt [14:33:20]json_value_free [14:33:20]json_value_free done [14:33:20]process_json_proto returns [14:33:20]Send response to host [14:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73839,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:33:20]free response buf [14:33:20]execute_script done [14:33:20]execute_script returns [14:33:20]free content buf [14:33:20]Sock 8.Close socket [14:33:20]Sock 8.Thread stoped [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:42]accept exits with 10 [14:33:42]New connection [14:33:42]New thread 3067575652 created [14:33:42]Thread 3067432292 joined [14:33:42]Waiting for new connection... [14:33:42] Sock 10.Parse request [14:33:42]Sock 10.Check first char [14:33:42]Sock 10.First char is OK [14:33:42]request: POST /json_proto HTTP/1.0 [14:33:42]Method: POST [14:33:42]URL: /json_proto [14:33:42]Method is POST - this is cgi request [14:33:42]url: /json_proto [14:33:42]query_string will be loaded in cgi processing [14:33:42]execute_cgi json_proto POST (null) [14:33:42]execute_cgi path=json_proto method=POST [14:33:42]POST find Content-Length [14:33:42]Host: 172.17.44.196:8080 [14:33:42]Content-Length: 680 [14:33:42]Content-Type: application/json [14:33:42] [14:33:42]POST finish read [14:33:42]Found Content-Length = 680 [14:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [14:33:42]execute_script... [14:33: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 : (1)1963047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [14:33:42]POST & json_proto [14:33:42]process_json_proto [14:33:42]json parsed OK: [14:33:42]protocol is kg_v1.0 [14:33:42]action value=close_receipt [14:33:42]process_action close_receipt [14:33:42]cmd_close_receipt [14:33:42]MH_GetDate [14:33:42]Write to MH i2c: F0 00 00 B0 27 C6 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: F0 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: F0 09 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: F0 09 00 B0 27 00 C8 14 15 67 E7 19 F8 65 84 [14:33:42]GetLastDocTimeStamp 1729434797 [14:33:42]current date 1729434824 [14:33:42]FM_GetShiftState [14:33:42]SAM_PROTO_GetShiftState [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 13 01 00 [14:33:42]Write to MH i2c: E2 08 00 B1 27 80 13 01 00 00 00 00 00 55 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 B1 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9A [14:33:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_GetShiftState done [14:33:42]FM_GetShiftState done [14:33:42]opened in 1729384303 [14:33:42]opened+sec_in_day 1729470703 [14:33:42]quantity*price = 200025 [14:33:42]sum+1 = 200026 [14:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 166 20.10.2024 14:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73840 ФПД: 218825101095487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143344&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73840&fm=218825101095487&tin=02508201610067®Number=0000000000161154&sum=200000 [14:33:43]StoreToDocumentArchive [14:33:43]shift 170 fd 73840 [14:33:43]save to /storage/0170/doc_00073840 [14:33:43]save last doc name /storage/0170/doc_00073840 to /storage/kkm_last_doc_name [14:33:43]save OK [14:33:43]Clear old archive folders... [14:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:43]tlvbuf is 003EE270 [14:33:43]SAM_PROTO_ClearQueue [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 09 00 00 [14:33:43]Write to MH i2c: E2 08 00 BE 27 80 09 00 00 00 00 00 00 57 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 BE 27 00 90 00 59 [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_ClearQueue done [14:33:43]KKMCreateOFDPacket [14:33:43]OFDProtocolAddRootSTLVToBuf [14:33:43]FM_MakeSignedData [14:33:43]FM_MakeSignedData [14:33:43]SAM_PROTO_SignData [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 0D 01 02 [14:33:43]Write to MH i2c: E2 08 00 BF 27 80 0D 01 02 00 00 00 00 5F [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 BF 27 00 90 00 5A [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]wFMCommunicate request_size=255 [14:33:43]MH_SAM_APDU [14:33:43]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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 A6 00 00 00 F4 03 04 00 C8 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 20 01 00 35 04 06 00 C7 05 30 6B [14:33:43]Write to MH i2c: E2 02 01 C0 27 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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 A6 00 00 00 F4 03 04 00 C8 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 20 01 00 35 04 06 00 C7 05 30 6B 00 00 65 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:44]OFD Sender: No OFD packet to send [14:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [14:33:44]RAPDU: 90 00 [14:33:44]wFMCommunicate OK [14:33:44]wFMCommunicate request_size=7 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 0D 02 02 02 32 3F [14:33:44]Write to MH i2c: E2 0A 00 C1 27 80 0D 02 02 02 00 32 3F 00 00 D7 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:44]Read from MH i2c: E2 03 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [14:33:44]RAPDU: 90 00 [14:33:44]wFMCommunicate OK [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 0D 03 02 [14:33:44]Write to MH i2c: E2 08 00 C2 27 80 0D 03 02 00 00 00 00 64 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0B 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0B 00 C2 27 00 8C D9 6C CB D7 99 D1 AC 90 00 EE [14:33:44]RAPDU: 8C D9 6C CB D7 99 D1 AC 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_SignData done [14:33:44]FM_MakeSignedData done [14:33:44]CreateOFDProtocolMessage [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 11 00 00 [14:33:44]Write to MH i2c: E2 08 00 C3 27 80 11 00 00 00 00 00 00 64 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 C3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B1 [14:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:44]wFMCommunicate OK [14:33:44]CreateOFDProtocolMessage done [14:33:44]OFDSenderStorePacket 73840 [14:33:44]StoreOFDPacket docnum=73840 [14:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 8E AD 04 01 B2 0A 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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 A6 00 00 00 F4 03 04 00 C8 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 20 01 00 35 04 06 00 C7 05 30 6B 32 3F 8C D9 6C CB D7 99 D1 AC [14:33:44]CheckFolder [14:33:44]dirname=/storage/ofd_packets [14:33:44]CheckFolder done [14:33:44]ProducePacketName [14:33:44]name=ofd_packets/00073840 [14:33:44]NVStorageSaveData ofd_packets/00073840 [14:33:44]File name is /storage/ofd_packets/00073840 [14:33:44]Write 298 bytes [14:33:44]NVStorageSaveData done [14:33:44]OFDSenderStorePacket done [14:33:44]KKMCreateOFDPacket done [14:33:44]NVStorageSaveData kkm_last_timestamp [14:33:44]File name is /storage/kkm_last_timestamp [14:33:44]Write 4 bytes [14:33:44]NVStorageSaveData done [14:33:44]ExternCall_PrintAddStr [14:33:44]wPrintStart [14:33:44]Write to MH i2c: 01 00 00 C4 27 EB [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 C4 27 00 00 00 00 00 FF 0F 00 [14:33:44]RasterBufferAndPrint [14:33:44]line Счет N : (1)1963047 [14:33:44]line ИНН: 02508201610067 [14:33:44]line Контрольно-Кассовый Чек [14:33:44]line ПРОДАЖА [14:33:44]line ТРК (МРК, ГНК) : 21 [14:33:44]line Товар: 2710194210 [14:33:44]line ДТ-К-5 [14:33:44]line 26.250 * 76.20 [14:33:44]line = 2000.25 [14:33:44]line НДС 12% НСП 1% [14:33:44]line > о реализуемом товаре [14:33:44]line ОКРУГЛЕНИЕ: -0.25 [14:33:44]line ИТОГО: 2000.00 [14:33:44]line Внесено: 2000.00 [14:33:44]line СДАЧА: 0.00 [14:33:44]line НСП 1% : 17.70 [14:33:44]line НДС 12% : 212.42 [14:33:44]line Наличными: 2000.00 [14:33:44]line Безнал.: 0.00 [14:33:44]line Место: АЗС № 133 "Партнер Нефть" [14:33:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:33:44]line СНО: Общий режим [14:33:44]line Чек 166 20.10.2024 14:33 [14:33:44]line Смена: 170 ФФД: 1.0 [14:33:44]line ЗНМ: 0300000020 [14:33:44]line РНМ: 0000000000161154 [14:33:44]line Версия ККМ: v1.0 [14:33:44]line ФМ: 0000000000963323 [14:33:44]line ФД: 73840 [14:33:44]line ФПД: 218825101095487 [14:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143344&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73840&fm=218825101095487&tin=02508201610067®Number=0000000000161154&sum=200000 [14:33:44]OFD Sender: Processing packet 73840 [packets to send 15, broken 14] [14:33:44]ProducePacketName [14:33:44]name=ofd_packets/00073840 [14:33:44]OFD Sender: To server: pG, [14:33:44]CommunicateWithHost lk.salyk.kg:30040 [14:33:44]ConnectInit lk.salyk.kg [14:33:44]written 0, free lines is 4095 [14:33:44]Connected sock=9 [14:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 8E AD 04 01 B2 0A 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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 A6 00 00 00 F4 03 04 00 C8 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 20 01 00 35 04 06 00 C7 05 30 6B 32 3F 8C D9 6C CB D7 99 D1 AC [14:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B FB 47 00 8E A3 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 39 36 33 33 32 33 10 04 04 00 70 20 01 00 F4 03 04 00 AD BD 14 67 B6 04 01 00 00 3C 73 D7 63 B8 64 EB 30 [14:33:45]CommunicateWithHost err = 0 [14:33:45]CheckOFDResponse [14:33:45]1017 (14) - 77093643461234 [14:33:45]1041 (16) - 0000000000963323 [14:33:45]1040 (4) - 73840 [14:33:45]1012 (4) - 20.10.2024 08:22 [14:33:45]1206 (1) - 0 [14:33:45]OFD Sender: Remove packet 73840 [14:33:45]ProducePacketName [14:33:45]name=ofd_packets/00073840 [14:33:45]NVStorageDeleteData [14:33:45]Write to MH i2c: 01 00 00 EE 27 15 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 07 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 07 00 EE 27 00 00 00 00 00 CB 0C F3 [14:33:45]RasterBufferAndPrint [14:33:45]line [14:33:45]line [14:33:45]line [14:33:45]line [14:33:45]line [14:33:45]written 0, free lines is 3280 [14:33:45]MH_Cut [14:33:45]Write to MH i2c: D1 01 00 F5 27 01 EE [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: D1 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: D1 01 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: D1 01 00 F5 27 00 ED [14:33:45]Write to MH i2c: 01 00 00 F6 27 1D [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]OFD Sender: No OFD packet to send [14:33:46]*** Cut start [14:33:46]*** Partial cut [14:33:46]*** CUTSNS_PIN = 1 [14:33:46]*** CUTSNS_PIN = 0 [14:33:46]*** Brake cut motor [14:33:46]Read from MH i2c: 01 [14:33:46]MH_I2C_Read... [14:33:46]*** Stop cut motor [14:33:46]*** Cut end [14:33:46]Read from MH i2c: 01 07 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 07 00 F6 27 00 00 00 00 00 FF 0F 32 [14:33:46]process_action close_receipt done [14:33:46]requested_data is exist [14:33:46]produce_requested_data [14:33:46]requested_item fm.sn is exist - process it [14:33:46]wFMCommunicate request_size=4 [14:33:46]MH_SAM_APDU [14:33:46]CAPDU: 80 11 00 00 [14:33:46]Write to MH i2c: E2 08 00 F7 27 80 11 00 00 00 00 00 00 98 [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:46]Read from MH i2c: E2 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 17 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 17 00 F7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [14:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:46]wFMCommunicate OK [14:33:46]requested_item fd.num is exist - process it [14:33:46]SAM_PROTO_GetFieldsCounters [14:33:46]wFMCommunicate request_size=4 [14:33:46]MH_SAM_APDU [14:33:46]CAPDU: 80 13 00 00 [14:33:46]Write to MH i2c: E2 08 00 F8 27 80 13 00 00 00 00 00 00 9B [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:46]Read from MH i2c: E2 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 62 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 62 00 F8 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 70 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 70 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:46]wFMCommunicate OK [14:33:46]SAM_PROTO_GetFieldsCounters done [14:33:46]requested_item shift.num is exist - process it [14:33:46]requested_item shift.opened is exist - process it [14:33:46]req_shift_opened [14:33:46]FM_GetShiftState [14:33:46]SAM_PROTO_GetShiftState [14:33:46]wFMCommunicate request_size=4 [14:33:46]MH_SAM_APDU [14:33:46]CAPDU: 80 13 01 00 [14:33:46]Write to MH i2c: E2 08 00 F9 27 80 13 01 00 00 00 00 00 9D [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:46]Read from MH i2c: E2 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 0E 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 0E 00 F9 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E2 [14:33:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:46]wFMCommunicate OK [14:33:46]SAM_PROTO_GetShiftState done [14:33:46]FM_GetShiftState done [14:33:46]req_shift_opened done [14:33:46]requested_item shift.open_date is exist - process it [14:33:46]req_shift_open_date [14:33:46]req_shift_open_date done [14:33:46]produce_requested_data done [14:33:46]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73840,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:33:46]process_action_free close_receipt [14:33:46]json_value_free [14:33:46]json_value_free done [14:33:46]process_json_proto returns [14:33:46]Send response to host [14:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73840,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:33:46]free response buf [14:33:46]execute_script done [14:33:46]execute_script returns [14:33:46]free content buf [14:33:46]Sock 10.Close socket [14:33:46]Sock 10.Thread stoped [14:33:47]accept exits with 8 [14:33:47]New connection [14:33:47]New thread 3067432292 created [14:33:47]Thread 3067575652 joined [14:33:47]Waiting for new connection... [14:33:47] Sock 8.Parse request [14:33:47]Sock 8.Check first char [14:33:47]Sock 8.First char is OK [14:33:47]request: POST /json_proto HTTP/1.0 [14:33:47]Method: POST [14:33:47]URL: /json_proto [14:33:47]Method is POST - this is cgi request [14:33:47]url: /json_proto [14:33:47]query_string will be loaded in cgi processing [14:33:47]execute_cgi json_proto POST (null) [14:33:47]execute_cgi path=json_proto method=POST [14:33:47]POST find Content-Length [14:33:47]Host: 172.17.44.196:8080 [14:33:47]Content-Length: 790 [14:33:47]Content-Type: application/json [14:33:47] [14:33:47]POST finish read [14:33:47]Found Content-Length = 790 [14:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 42.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A04822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:47]execute_script... [14:33: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 : (1)1963045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 42.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A04822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:47]POST & json_proto [14:33:47]process_json_proto [14:33:47]json parsed OK: [14:33:47]protocol is kg_v1.0 [14:33:47]action value=close_receipt [14:33:47]process_action close_receipt [14:33:47]cmd_close_receipt [14:33:47]MH_GetDate [14:33:47]Write to MH i2c: F0 00 00 FA 27 10 [14:33:47]Write i2c OK [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: F0 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: F0 09 00 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: F0 09 00 FA 27 00 CD 14 15 67 E7 19 F8 65 D3 [14:33:47]GetLastDocTimeStamp 1729434824 [14:33:47]current date 1729434829 [14:33:47]FM_GetShiftState [14:33:47]SAM_PROTO_GetShiftState [14:33:47]wFMCommunicate request_size=4 [14:33:47]MH_SAM_APDU [14:33:47]CAPDU: 80 13 01 00 [14:33:47]Write to MH i2c: E2 08 00 FB 27 80 13 01 00 00 00 00 00 9F [14:33:47]Write i2c OK [14:33:47]MH_I2C_Read... [14:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:47]Read from MH i2c: E2 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: E2 0E 00 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: E2 0E 00 FB 27 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E4 [14:33:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:47]wFMCommunicate OK [14:33:47]SAM_PROTO_GetShiftState done [14:33:47]FM_GetShiftState done [14:33:47]opened in 1729384303 [14:33:47]opened+sec_in_day 1729470703 [14:33:47]quantity*price = 0 [14:33:47]sum+1 = 1 [14:33:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 167 20.10.2024 14:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливная Карта 04822 ФМ: 0000000000963323 ФД: 73841 ФПД: 55080306553627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143349&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73841&fm=55080306553627&tin=02508201610067®Number=0000000000161154&sum=0 [14:33:48]StoreToDocumentArchive [14:33:48]shift 170 fd 73841 [14:33:48]save to /storage/0170/doc_00073841 [14:33:48]save last doc name /storage/0170/doc_00073841 to /storage/kkm_last_doc_name [14:33:48]save OK [14:33:48]Clear old archive folders... [14:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:48]tlvbuf is 003DEF30 [14:33:48]SAM_PROTO_ClearQueue [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 09 00 00 [14:33:48]Write to MH i2c: E2 08 00 08 28 80 09 00 00 00 00 00 00 A2 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 08 28 00 90 00 A4 [14:33:48]RAPDU: 90 00 [14:33:48]wFMCommunicate OK [14:33:48]SAM_PROTO_ClearQueue done [14:33:48]KKMCreateOFDPacket [14:33:48]OFDProtocolAddRootSTLVToBuf [14:33:48]FM_MakeSignedData [14:33:48]FM_MakeSignedData [14:33:48]SAM_PROTO_SignData [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 0D 01 02 [14:33:48]Write to MH i2c: E2 08 00 09 28 80 0D 01 02 00 00 00 00 AA [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 09 28 00 90 00 A5 [14:33:48]RAPDU: 90 00 [14:33:48]wFMCommunicate OK [14:33:48]wFMCommunicate request_size=255 [14:33:48]MH_SAM_APDU [14:33:48]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 10 A4 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 A7 00 00 00 F4 03 04 00 CD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 20 01 00 35 04 06 00 32 18 62 1B [14:33:48]Write to MH i2c: E2 02 01 0A 28 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 10 A4 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 A7 00 00 00 F4 03 04 00 CD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 20 01 00 35 04 06 00 32 18 62 1B 00 00 B5 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:49]Read from MH i2c: E2 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 03 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 03 00 0A 28 00 90 00 A6 [14:33:49]RAPDU: 90 00 [14:33:49]wFMCommunicate OK [14:33:49]wFMCommunicate request_size=7 [14:33:49]MH_SAM_APDU [14:33:49]CAPDU: 80 0D 02 02 02 33 1B [14:33:49]Write to MH i2c: E2 0A 00 0B 28 80 0D 02 02 02 00 33 1B 00 00 FF [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:49]Read from MH i2c: E2 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 03 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 03 00 0B 28 00 90 00 A7 [14:33:49]RAPDU: 90 00 [14:33:49]wFMCommunicate OK [14:33:49]wFMCommunicate request_size=4 [14:33:49]MH_SAM_APDU [14:33:49]CAPDU: 80 0D 03 02 [14:33:49]Write to MH i2c: E2 08 00 0C 28 80 0D 03 02 00 00 00 00 AF [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:49]Read from MH i2c: E2 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 0B 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 0B 00 0C 28 00 03 94 52 A8 AD 3F 2C CD 90 00 26 [14:33:49]RAPDU: 03 94 52 A8 AD 3F 2C CD 90 00 [14:33:49]wFMCommunicate OK [14:33:49]SAM_PROTO_SignData done [14:33:49]FM_MakeSignedData done [14:33:49]CreateOFDProtocolMessage [14:33:49]wFMCommunicate request_size=4 [14:33:49]MH_SAM_APDU [14:33:49]CAPDU: 80 11 00 00 [14:33:49]Write to MH i2c: E2 08 00 0D 28 80 11 00 00 00 00 00 00 AF [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:49]Read from MH i2c: E2 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 17 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: E2 17 00 0D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FC [14:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:49]wFMCommunicate OK [14:33:49]CreateOFDProtocolMessage done [14:33:49]OFDSenderStorePacket 73841 [14:33:49]StoreOFDPacket docnum=73841 [14:33:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 32 9C 04 01 6A 68 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 10 A4 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 A7 00 00 00 F4 03 04 00 CD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 20 01 00 35 04 06 00 32 18 62 1B 33 1B 03 94 52 A8 AD 3F 2C CD [14:33:49]CheckFolder [14:33:49]dirname=/storage/ofd_packets [14:33:49]CheckFolder done [14:33:49]ProducePacketName [14:33:49]name=ofd_packets/00073841 [14:33:49]NVStorageSaveData ofd_packets/00073841 [14:33:49]File name is /storage/ofd_packets/00073841 [14:33:49]Write 298 bytes [14:33:49]NVStorageSaveData done [14:33:49]OFDSenderStorePacket done [14:33:49]KKMCreateOFDPacket done [14:33:49]NVStorageSaveData kkm_last_timestamp [14:33:49]File name is /storage/kkm_last_timestamp [14:33:49]Write 4 bytes [14:33:49]NVStorageSaveData done [14:33:49]ExternCall_PrintAddStr [14:33:49]wPrintStart [14:33:49]Write to MH i2c: 01 00 00 0E 28 36 [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: 01 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: 01 07 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: 01 07 00 0E 28 00 00 00 00 00 FF 0F 4B [14:33:49]RasterBufferAndPrint [14:33:49]line Счет N : (1)1963045 [14:33:49]line ИНН: 02508201610067 [14:33:49]line Контрольно-Кассовый Чек [14:33:49]line ПРОДАЖА [14:33:49]line ТРК (МРК, ГНК) : 11 [14:33:49]line Товар: 2710194210 [14:33:49]line ДТ-К-5 [14:33:49]line 42.000 * 0.00 [14:33:49]line = 0.00 [14:33:49]line НДС 12% НСП 1% [14:33:49]line > о реализуемом товаре [14:33:49]line ИТОГО: 0.00 [14:33:49]line НСП 1% : 0.00 [14:33:49]line НДС 12% : 0.00 [14:33:49]line Наличными: 0.00 [14:33:49]line Безнал.: 0.00 [14:33:49]line Место: АЗС № 133 "Партнер Нефть" [14:33:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:33:49]line СНО: Общий режим [14:33:49]line Чек 167 20.10.2024 14:33 [14:33:49]line Смена: 170 ФФД: 1.0 [14:33:49]line ЗНМ: 0300000020 [14:33:49]line РНМ: 0000000000161154 [14:33:49]line Версия ККМ: v1.0 [14:33:49]line Талоны: Топливная Карта [14:33:49]line 04822 [14:33:49]line ФМ: 0000000000963323 [14:33:49]line ФД: 73841 [14:33:49]line ФПД: 55080306553627 [14:33:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143349&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73841&fm=55080306553627&tin=02508201610067®Number=0000000000161154&sum=0 [14:33:49]OFD Sender: Processing packet 73841 [packets to send 15, broken 14] [14:33:49]ProducePacketName [14:33:49]name=ofd_packets/00073841 [14:33:49]OFD Sender: To server: pG, [14:33:49]CommunicateWithHost lk.salyk.kg:30040 [14:33:49]ConnectInit lk.salyk.kg [14:33:49]written 0, free lines is 4095 [14:33:49]Connected sock=9 [14:33:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 32 9C 04 01 6A 68 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 10 A4 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 A7 00 00 00 F4 03 04 00 CD 14 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 20 01 00 35 04 06 00 32 18 62 1B 33 1B 03 94 52 A8 AD 3F 2C CD [14:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 56 75 47 00 0F A6 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 39 36 33 33 32 33 10 04 04 00 71 20 01 00 F4 03 04 00 B2 BD 14 67 B6 04 01 00 00 BF 8B 04 2A 55 60 0D EE [14:33:49]CommunicateWithHost err = 0 [14:33:49]CheckOFDResponse [14:33:49]1017 (14) - 77093643461234 [14:33:49]1041 (16) - 0000000000963323 [14:33:49]1040 (4) - 73841 [14:33:49]1012 (4) - 20.10.2024 08:22 [14:33:49]1206 (1) - 0 [14:33:49]OFD Sender: Remove packet 73841 [14:33:49]ProducePacketName [14:33:49]name=ofd_packets/00073841 [14:33:49]NVStorageDeleteData [14:33:50]Write to MH i2c: 01 00 00 37 28 5F [14:33:50]Write i2c OK [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: 01 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: 01 07 00 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: 01 07 00 37 28 00 00 00 00 00 EE 0C 60 [14:33:50]RasterBufferAndPrint [14:33:50]line [14:33:50]line [14:33:50]line [14:33:50]line [14:33:50]line [14:33:50]written 0, free lines is 3325 [14:33:50]MH_Cut [14:33:50]Write to MH i2c: D1 01 00 3E 28 01 38 [14:33:50]Write i2c OK [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: D1 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: D1 01 00 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: D1 01 00 3E 28 00 37 [14:33:50]Write to MH i2c: 01 00 00 3F 28 67 [14:33:50]Write i2c OK [14:33:50]MH_I2C_Read... [14:33:50]OFD Sender: No OFD packet to send [14:33:50]*** Cut start [14:33:50]*** Partial cut [14:33:50]*** CUTSNS_PIN = 1 [14:33:50]*** CUTSNS_PIN = 0 [14:33:51]*** Brake cut motor [14:33:51]Read from MH i2c: 01 [14:33:51]MH_I2C_Read... [14:33:51]*** Stop cut motor [14:33:51]*** Cut end [14:33:51]Read from MH i2c: 01 07 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: 01 07 00 3F 28 00 00 00 00 00 FF 0F 7C [14:33:51]process_action close_receipt done [14:33:51]requested_data is exist [14:33:51]produce_requested_data [14:33:51]requested_item fm.sn is exist - process it [14:33:51]wFMCommunicate request_size=4 [14:33:51]MH_SAM_APDU [14:33:51]CAPDU: 80 11 00 00 [14:33:51]Write to MH i2c: E2 08 00 40 28 80 11 00 00 00 00 00 00 E2 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 17 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 17 00 40 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [14:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:33:51]wFMCommunicate OK [14:33:51]requested_item fd.num is exist - process it [14:33:51]SAM_PROTO_GetFieldsCounters [14:33:51]wFMCommunicate request_size=4 [14:33:51]MH_SAM_APDU [14:33:51]CAPDU: 80 13 00 00 [14:33:51]Write to MH i2c: E2 08 00 41 28 80 13 00 00 00 00 00 00 E5 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 62 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 62 00 41 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 71 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:33:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 71 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:51]wFMCommunicate OK [14:33:51]SAM_PROTO_GetFieldsCounters done [14:33:51]requested_item shift.num is exist - process it [14:33:51]requested_item shift.opened is exist - process it [14:33:51]req_shift_opened [14:33:51]FM_GetShiftState [14:33:51]SAM_PROTO_GetShiftState [14:33:51]wFMCommunicate request_size=4 [14:33:51]MH_SAM_APDU [14:33:51]CAPDU: 80 13 01 00 [14:33:51]Write to MH i2c: E2 08 00 42 28 80 13 01 00 00 00 00 00 E7 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 42 28 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2C [14:33:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:33:51]wFMCommunicate OK [14:33:51]SAM_PROTO_GetShiftState done [14:33:51]FM_GetShiftState done [14:33:51]req_shift_opened done [14:33:51]requested_item shift.open_date is exist - process it [14:33:51]req_shift_open_date [14:33:51]req_shift_open_date done [14:33:51]produce_requested_data done [14:33:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73841,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:33:51]process_action_free close_receipt [14:33:51]json_value_free [14:33:51]json_value_free done [14:33:51]process_json_proto returns [14:33:51]Send response to host [14:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73841,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:33:51]free response buf [14:33:51]execute_script done [14:33:51]execute_script returns [14:33:51]free content buf [14:33:51]Sock 8.Close socket [14:33:51]Sock 8.Thread stoped [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]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:10]accept exits with 10 [14:35:10]New connection [14:35:10]New thread 3067575652 created [14:35:10]Thread 3067432292 joined [14:35:10]Waiting for new connection... [14:35:10] Sock 10.Parse request [14:35:10]Sock 10.Check first char [14:35:10]Sock 10.First char is OK [14:35:10]request: POST /json_proto HTTP/1.0 [14:35:10]Method: POST [14:35:10]URL: /json_proto [14:35:10]Method is POST - this is cgi request [14:35:10]url: /json_proto [14:35:10]query_string will be loaded in cgi processing [14:35:10]execute_cgi json_proto POST (null) [14:35:10]execute_cgi path=json_proto method=POST [14:35:10]POST find Content-Length [14:35:10]Host: 172.17.44.196:8080 [14:35:10]Content-Length: 678 [14:35:10]Content-Type: application/json [14:35:10] [14:35:10]POST finish read [14:35:10]Found Content-Length = 678 [14:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963050", "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.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:10]execute_script... [14:35: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 : (1)1963050", "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.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:10]POST & json_proto [14:35:10]process_json_proto [14:35:10]json parsed OK: [14:35:10]protocol is kg_v1.0 [14:35:10]action value=close_receipt [14:35:10]process_action close_receipt [14:35:10]cmd_close_receipt [14:35:10]MH_GetDate [14:35:10]Write to MH i2c: F0 00 00 43 28 5A [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: F0 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: F0 09 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: F0 09 00 43 28 00 20 15 15 67 E7 19 F8 65 71 [14:35:10]GetLastDocTimeStamp 1729434829 [14:35:10]current date 1729434912 [14:35:10]FM_GetShiftState [14:35:10]SAM_PROTO_GetShiftState [14:35:10]wFMCommunicate request_size=4 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 13 01 00 [14:35:10]Write to MH i2c: E2 08 00 44 28 80 13 01 00 00 00 00 00 E9 [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 0E 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 0E 00 44 28 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2E [14:35:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:35:10]wFMCommunicate OK [14:35:10]SAM_PROTO_GetShiftState done [14:35:10]FM_GetShiftState done [14:35:10]opened in 1729384303 [14:35:10]opened+sec_in_day 1729470703 [14:35:10]quantity*price = 15052 [14:35:10]sum+1 = 15054 [14:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 168 20.10.2024 14:35 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73842 ФПД: 17131804175683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143512&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73842&fm=17131804175683&tin=02508201610067®Number=0000000000161154&sum=15000 [14:35:12]StoreToDocumentArchive [14:35:12]shift 170 fd 73842 [14:35:12]save to /storage/0170/doc_00073842 [14:35:12]save last doc name /storage/0170/doc_00073842 to /storage/kkm_last_doc_name [14:35:12]save OK [14:35:12]Clear old archive folders... [14:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:12]tlvbuf is 003B23A0 [14:35:12]SAM_PROTO_ClearQueue [14:35:12]wFMCommunicate request_size=4 [14:35:12]MH_SAM_APDU [14:35:12]CAPDU: 80 09 00 00 [14:35:12]Write to MH i2c: E2 08 00 51 28 80 09 00 00 00 00 00 00 EB [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:12]Read from MH i2c: E2 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 51 28 00 90 00 ED [14:35:12]RAPDU: 90 00 [14:35:12]wFMCommunicate OK [14:35:12]SAM_PROTO_ClearQueue done [14:35:12]KKMCreateOFDPacket [14:35:12]OFDProtocolAddRootSTLVToBuf [14:35:12]FM_MakeSignedData [14:35:12]FM_MakeSignedData [14:35:12]SAM_PROTO_SignData [14:35:12]wFMCommunicate request_size=4 [14:35:12]MH_SAM_APDU [14:35:12]CAPDU: 80 0D 01 02 [14:35:12]Write to MH i2c: E2 08 00 52 28 80 0D 01 02 00 00 00 00 F3 [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:12]Read from MH i2c: E2 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 52 28 00 90 00 EE [14:35:12]RAPDU: 90 00 [14:35:12]wFMCommunicate OK [14:35:12]wFMCommunicate request_size=255 [14:35:12]MH_SAM_APDU [14:35:12]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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A8 00 00 00 F4 03 04 00 20 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 20 01 00 35 04 06 00 0F [14:35:12]Write to MH i2c: E2 02 01 53 28 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A8 00 00 00 F4 03 04 00 20 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 20 01 00 35 04 06 00 0F 00 00 17 [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:12]Read from MH i2c: E2 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 53 28 00 90 00 EF [14:35:12]RAPDU: 90 00 [14:35:12]wFMCommunicate OK [14:35:12]wFMCommunicate request_size=10 [14:35:12]MH_SAM_APDU [14:35:12]CAPDU: 80 0D 02 02 05 94 CF 1A 2D 43 [14:35:12]Write to MH i2c: E2 0D 00 54 28 80 0D 02 02 05 00 94 CF 1A 2D 43 00 00 ED [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:12]Read from MH i2c: E2 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 03 00 54 28 00 90 00 F0 [14:35:12]RAPDU: 90 00 [14:35:12]wFMCommunicate OK [14:35:12]wFMCommunicate request_size=4 [14:35:12]MH_SAM_APDU [14:35:12]CAPDU: 80 0D 03 02 [14:35:12]Write to MH i2c: E2 08 00 55 28 80 0D 03 02 00 00 00 00 F8 [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:12]Read from MH i2c: E2 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 0B 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 0B 00 55 28 00 2F 10 BE F0 3F F7 D4 C1 90 00 B1 [14:35:12]RAPDU: 2F 10 BE F0 3F F7 D4 C1 90 00 [14:35:12]wFMCommunicate OK [14:35:12]SAM_PROTO_SignData done [14:35:12]FM_MakeSignedData done [14:35:12]CreateOFDProtocolMessage [14:35:12]wFMCommunicate request_size=4 [14:35:12]MH_SAM_APDU [14:35:12]CAPDU: 80 11 00 00 [14:35:12]Write to MH i2c: E2 08 00 56 28 80 11 00 00 00 00 00 00 F8 [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:12]Read from MH i2c: E2 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 17 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: E2 17 00 56 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 45 [14:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:35:12]wFMCommunicate OK [14:35:12]CreateOFDProtocolMessage done [14:35:12]OFDSenderStorePacket 73842 [14:35:12]StoreOFDPacket docnum=73842 [14:35:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 64 E2 07 01 D0 C1 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A8 00 00 00 F4 03 04 00 20 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 20 01 00 35 04 06 00 0F 94 CF 1A 2D 43 2F 10 BE F0 3F F7 D4 C1 [14:35:12]CheckFolder [14:35:12]dirname=/storage/ofd_packets [14:35:12]CheckFolder done [14:35:12]ProducePacketName [14:35:12]name=ofd_packets/00073842 [14:35:12]NVStorageSaveData ofd_packets/00073842 [14:35:12]File name is /storage/ofd_packets/00073842 [14:35:12]Write 301 bytes [14:35:12]NVStorageSaveData done [14:35:12]OFDSenderStorePacket done [14:35:12]KKMCreateOFDPacket done [14:35:12]NVStorageSaveData kkm_last_timestamp [14:35:12]File name is /storage/kkm_last_timestamp [14:35:12]Write 4 bytes [14:35:12]NVStorageSaveData done [14:35:12]ExternCall_PrintAddStr [14:35:12]wPrintStart [14:35:12]Write to MH i2c: 01 00 00 57 28 7F [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: 01 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: 01 07 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 FF 0F 94 [14:35:12]RasterBufferAndPrint [14:35:12]line Счет N : (1)1963050 [14:35:12]line ИНН: 02508201610067 [14:35:12]line Контрольно-Кассовый Чек [14:35:12]line ПРОДАЖА [14:35:12]line ТРК (МРК, ГНК) : 53 [14:35:12]line Товар: 2710124130 [14:35:12]line Аи-92-К-5 [14:35:12]line 2.250 * 66.90 [14:35:12]line = 150.53 [14:35:12]line НДС 12% НСП 1% [14:35:12]line > о реализуемом товаре [14:35:12]line ОКРУГЛЕНИЕ: -0.53 [14:35:12]line ИТОГО: 150.00 [14:35:12]line Внесено: 150.00 [14:35:12]line СДАЧА: 0.00 [14:35:12]line НСП 1% : 1.33 [14:35:12]line НДС 12% : 15.98 [14:35:12]line Наличными: 150.00 [14:35:12]line Безнал.: 0.00 [14:35:12]line Место: АЗС № 133 "Партнер Нефть" [14:35:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:35:12]line СНО: Общий режим [14:35:12]line Чек 168 20.10.2024 14:35 [14:35:12]line Смена: 170 ФФД: 1.0 [14:35:12]line ЗНМ: 0300000020 [14:35:12]line РНМ: 0000000000161154 [14:35:12]line Версия ККМ: v1.0 [14:35:12]line ФМ: 0000000000963323 [14:35:12]line ФД: 73842 [14:35:12]line ФПД: 17131804175683 [14:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143512&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73842&fm=17131804175683&tin=02508201610067®Number=0000000000161154&sum=15000 [14:35:12]OFD Sender: Processing packet 73842 [packets to send 15, broken 14] [14:35:12]ProducePacketName [14:35:12]name=ofd_packets/00073842 [14:35:12]OFD Sender: To server: pG, [14:35:12]CommunicateWithHost lk.salyk.kg:30040 [14:35:12]ConnectInit lk.salyk.kg [14:35:12]written 0, free lines is 4095 [14:35:12]Connected sock=9 [14:35:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 64 E2 07 01 D0 C1 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 A8 00 00 00 F4 03 04 00 20 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 20 01 00 35 04 06 00 0F 94 CF 1A 2D 43 2F 10 BE F0 3F F7 D4 C1 [14:35:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 82 85 47 00 96 C8 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 39 36 33 33 32 33 10 04 04 00 72 20 01 00 F4 03 04 00 05 BE 14 67 B6 04 01 00 00 B8 65 A6 9C 67 AB 69 04 [14:35:13]CommunicateWithHost err = 0 [14:35:13]CheckOFDResponse [14:35:13]1017 (14) - 77093643461234 [14:35:13]1041 (16) - 0000000000963323 [14:35:13]1040 (4) - 73842 [14:35:13]1012 (4) - 20.10.2024 08:23 [14:35:13]1206 (1) - 0 [14:35:13]OFD Sender: Remove packet 73842 [14:35:13]ProducePacketName [14:35:13]name=ofd_packets/00073842 [14:35:13]NVStorageDeleteData [14:35:13]Write to MH i2c: 01 00 00 81 28 A9 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: 01 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: 01 07 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: 01 07 00 81 28 00 00 00 00 00 BE 0C 7A [14:35:13]RasterBufferAndPrint [14:35:13]line [14:35:13]line [14:35:13]line [14:35:13]line [14:35:13]line [14:35:13]written 0, free lines is 3266 [14:35:13]MH_Cut [14:35:13]Write to MH i2c: D1 01 00 88 28 01 82 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: D1 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: D1 01 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: D1 01 00 88 28 00 81 [14:35:13]Write to MH i2c: 01 00 00 89 28 B1 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]OFD Sender: No OFD packet to send [14:35:14]*** Cut start [14:35:14]*** Partial cut [14:35:14]*** CUTSNS_PIN = 1 [14:35:14]*** CUTSNS_PIN = 0 [14:35:14]*** Brake cut motor [14:35:14]Read from MH i2c: 01 [14:35:14]MH_I2C_Read... [14:35:14]*** Stop cut motor [14:35:14]*** Cut end [14:35:14]Read from MH i2c: 01 07 00 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: 01 07 00 89 28 00 00 00 00 00 FF 0F C6 [14:35:14]process_action close_receipt done [14:35:14]requested_data is exist [14:35:14]produce_requested_data [14:35:14]requested_item fm.sn is exist - process it [14:35:14]wFMCommunicate request_size=4 [14:35:14]MH_SAM_APDU [14:35:14]CAPDU: 80 11 00 00 [14:35:14]Write to MH i2c: E2 08 00 8A 28 80 11 00 00 00 00 00 00 2C [14:35:14]Write i2c OK [14:35:14]MH_I2C_Read... [14:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:14]Read from MH i2c: E2 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 17 00 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 17 00 8A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [14:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:35:14]wFMCommunicate OK [14:35:14]requested_item fd.num is exist - process it [14:35:14]SAM_PROTO_GetFieldsCounters [14:35:14]wFMCommunicate request_size=4 [14:35:14]MH_SAM_APDU [14:35:14]CAPDU: 80 13 00 00 [14:35:14]Write to MH i2c: E2 08 00 8B 28 80 13 00 00 00 00 00 00 2F [14:35:14]Write i2c OK [14:35:14]MH_I2C_Read... [14:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:14]Read from MH i2c: E2 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 62 00 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 62 00 8B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 72 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [14:35:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 72 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:14]wFMCommunicate OK [14:35:14]SAM_PROTO_GetFieldsCounters done [14:35:14]requested_item shift.num is exist - process it [14:35:14]requested_item shift.opened is exist - process it [14:35:14]req_shift_opened [14:35:14]FM_GetShiftState [14:35:14]SAM_PROTO_GetShiftState [14:35:14]wFMCommunicate request_size=4 [14:35:14]MH_SAM_APDU [14:35:14]CAPDU: 80 13 01 00 [14:35:14]Write to MH i2c: E2 08 00 8C 28 80 13 01 00 00 00 00 00 31 [14:35:14]Write i2c OK [14:35:14]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 0E 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 0E 00 8C 28 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 76 [14:35:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:35:15]wFMCommunicate OK [14:35:15]SAM_PROTO_GetShiftState done [14:35:15]FM_GetShiftState done [14:35:15]req_shift_opened done [14:35:15]requested_item shift.open_date is exist - process it [14:35:15]req_shift_open_date [14:35:15]req_shift_open_date done [14:35:15]produce_requested_data done [14:35:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73842,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:35:15]process_action_free close_receipt [14:35:15]json_value_free [14:35:15]json_value_free done [14:35:15]process_json_proto returns [14:35:15]Send response to host [14:35:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73842,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:35:15]free response buf [14:35:15]execute_script done [14:35:15]execute_script returns [14:35:15]free content buf [14:35:15]Sock 10.Close socket [14:35:15]Sock 10.Thread stoped [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:46]accept exits with 8 [14:35:46]New connection [14:35:46]New thread 3067432292 created [14:35:46]Thread 3067575652 joined [14:35:46]Waiting for new connection... [14:35:46] Sock 8.Parse request [14:35:46]Sock 8.Check first char [14:35:46]Sock 8.First char is OK [14:35:46]request: POST /json_proto HTTP/1.0 [14:35:46]Method: POST [14:35:46]URL: /json_proto [14:35:46]Method is POST - this is cgi request [14:35:46]url: /json_proto [14:35:46]query_string will be loaded in cgi processing [14:35:46]execute_cgi json_proto POST (null) [14:35:46]execute_cgi path=json_proto method=POST [14:35:46]POST find Content-Length [14:35:46]Host: 172.17.44.196:8080 [14:35:46]Content-Length: 749 [14:35:46]Content-Type: application/json [14:35:46] [14:35:46]POST finish read [14:35:46]Found Content-Length = 749 [14:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.480, "sum" : 990.43, "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: Mbank", "payments": [ { "type": 1, "sum" : 990.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:46]execute_script... [14:35: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)1963051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.480, "sum" : 990.43, "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: Mbank", "payments": [ { "type": 1, "sum" : 990.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:46]POST & json_proto [14:35:46]process_json_proto [14:35:46]json parsed OK: [14:35:46]protocol is kg_v1.0 [14:35:46]action value=close_receipt [14:35:46]process_action close_receipt [14:35:46]cmd_close_receipt [14:35:46]MH_GetDate [14:35:46]Write to MH i2c: F0 00 00 8D 28 A4 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: F0 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: F0 09 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: F0 09 00 8D 28 00 44 15 15 67 E7 19 F8 65 DF [14:35:46]GetLastDocTimeStamp 1729434912 [14:35:46]current date 1729434948 [14:35:46]FM_GetShiftState [14:35:46]SAM_PROTO_GetShiftState [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 13 01 00 [14:35:46]Write to MH i2c: E2 08 00 8E 28 80 13 01 00 00 00 00 00 33 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 0E 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 0E 00 8E 28 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 78 [14:35:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:35:46]wFMCommunicate OK [14:35:46]SAM_PROTO_GetShiftState done [14:35:46]FM_GetShiftState done [14:35:46]opened in 1729384303 [14:35:46]opened+sec_in_day 1729470703 [14:35:46]quantity*price = 99043 [14:35:46]sum+1 = 99044 [14:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 990.43 НСП 1% : 8.76 НДС 12% : 105.18 Наличными: 0.00 Безнал.: 990.43 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 169 20.10.2024 14:35 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73843 ФПД: 105926082755525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143548&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73843&fm=105926082755525&tin=02508201610067®Number=0000000000161154&sum=99043 [14:35:47]StoreToDocumentArchive [14:35:47]shift 170 fd 73843 [14:35:47]save to /storage/0170/doc_00073843 [14:35:47]save last doc name /storage/0170/doc_00073843 to /storage/kkm_last_doc_name [14:35:47]save OK [14:35:47]Clear old archive folders... [14:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:35:47]tlvbuf is 00322890 [14:35:47]SAM_PROTO_ClearQueue [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 09 00 00 [14:35:47]Write to MH i2c: E2 08 00 9B 28 80 09 00 00 00 00 00 00 35 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 03 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 03 00 9B 28 00 90 00 37 [14:35:47]RAPDU: 90 00 [14:35:47]wFMCommunicate OK [14:35:47]SAM_PROTO_ClearQueue done [14:35:47]KKMCreateOFDPacket [14:35:47]OFDProtocolAddRootSTLVToBuf [14:35:47]FM_MakeSignedData [14:35:47]FM_MakeSignedData [14:35:47]SAM_PROTO_SignData [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 0D 01 02 [14:35:47]Write to MH i2c: E2 08 00 9C 28 80 0D 01 02 00 00 00 00 3D [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 03 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 03 00 9C 28 00 90 00 38 [14:35:47]RAPDU: 90 00 [14:35:47]wFMCommunicate OK [14:35:47]wFMCommunicate request_size=253 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 44 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 20 01 00 35 04 06 00 60 56 D6 88 FB C5 [14:35:47]Write to MH i2c: E2 00 01 9D 28 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 44 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 20 01 00 35 04 06 00 60 56 D6 88 FB C5 00 00 F2 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 03 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 03 00 9D 28 00 90 00 39 [14:35:48]RAPDU: 90 00 [14:35:48]wFMCommunicate OK [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 0D 03 02 [14:35:48]Write to MH i2c: E2 08 00 9E 28 80 0D 03 02 00 00 00 00 41 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0B 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0B 00 9E 28 00 40 21 A4 AD FD 7C 3C AE 90 00 57 [14:35:48]RAPDU: 40 21 A4 AD FD 7C 3C AE 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_SignData done [14:35:48]FM_MakeSignedData done [14:35:48]CreateOFDProtocolMessage [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 11 00 00 [14:35:48]Write to MH i2c: E2 08 00 9F 28 80 11 00 00 00 00 00 00 41 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 17 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 17 00 9F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8E [14:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:35:48]wFMCommunicate OK [14:35:48]CreateOFDProtocolMessage done [14:35:48]OFDSenderStorePacket 73843 [14:35:48]StoreOFDPacket docnum=73843 [14:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 AF EE 00 01 8D 9F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 44 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 20 01 00 35 04 06 00 60 56 D6 88 FB C5 40 21 A4 AD FD 7C 3C AE [14:35:48]CheckFolder [14:35:48]dirname=/storage/ofd_packets [14:35:48]CheckFolder done [14:35:48]ProducePacketName [14:35:48]name=ofd_packets/00073843 [14:35:48]NVStorageSaveData ofd_packets/00073843 [14:35:48]File name is /storage/ofd_packets/00073843 [14:35:48]Write 294 bytes [14:35:48]NVStorageSaveData done [14:35:48]OFDSenderStorePacket done [14:35:48]KKMCreateOFDPacket done [14:35:48]NVStorageSaveData kkm_last_timestamp [14:35:48]File name is /storage/kkm_last_timestamp [14:35:48]Write 4 bytes [14:35:48]NVStorageSaveData done [14:35:48]ExternCall_PrintAddStr [14:35:48]wPrintStart [14:35:48]Write to MH i2c: 01 00 00 A0 28 C8 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 07 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 07 00 A0 28 00 00 00 00 00 FF 0F DD [14:35:48]RasterBufferAndPrint [14:35:48]line Счет N : (1)1963051 [14:35:48]line ИНН: 02508201610067 [14:35:48]line Контрольно-Кассовый Чек [14:35:48]line ПРОДАЖА [14:35:48]line ТРК (МРК, ГНК) : 62 [14:35:48]line Товар: 2710124130 [14:35:48]line SU-92 [14:35:48]line 14.480 * 68.40 [14:35:48]line = 990.43 [14:35:48]line НДС 12% НСП 1% [14:35:48]line > о реализуемом товаре [14:35:48]line ИТОГО: 990.43 [14:35:48]line НСП 1% : 8.76 [14:35:48]line НДС 12% : 105.18 [14:35:48]line Наличными: 0.00 [14:35:48]line Безнал.: 990.43 [14:35:48]line Место: АЗС № 133 "Партнер Нефть" [14:35:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:35:48]line СНО: Общий режим [14:35:48]line Чек 169 20.10.2024 14:35 [14:35:48]line Смена: 170 ФФД: 1.0 [14:35:48]line ЗНМ: 0300000020 [14:35:48]line РНМ: 0000000000161154 [14:35:48]line Версия ККМ: v1.0 [14:35:48]line Платежная система: Mbank [14:35:48]line ФМ: 0000000000963323 [14:35:48]line ФД: 73843 [14:35:48]line ФПД: 105926082755525 [14:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143548&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73843&fm=105926082755525&tin=02508201610067®Number=0000000000161154&sum=99043 [14:35:48]OFD Sender: Processing packet 73843 [packets to send 15, broken 14] [14:35:48]ProducePacketName [14:35:48]name=ofd_packets/00073843 [14:35:48]OFD Sender: To server: pG, [14:35:48]CommunicateWithHost lk.salyk.kg:30040 [14:35:48]ConnectInit lk.salyk.kg [14:35:48]written 0, free lines is 4095 [14:35:48]Connected sock=10 [14:35:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 AF EE 00 01 8D 9F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 90 38 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E3 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 82 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 44 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 20 01 00 35 04 06 00 60 56 D6 88 FB C5 40 21 A4 AD FD 7C 3C AE [14:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AB 0C 47 00 00 34 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 39 36 33 33 32 33 10 04 04 00 73 20 01 00 F4 03 04 00 29 BE 14 67 B6 04 01 00 00 5E E1 1C 23 01 95 EE 7F [14:35:48]CommunicateWithHost err = 0 [14:35:48]CheckOFDResponse [14:35:48]1017 (14) - 77093643461234 [14:35:48]1041 (16) - 0000000000963323 [14:35:48]1040 (4) - 73843 [14:35:48]1012 (4) - 20.10.2024 08:24 [14:35:48]1206 (1) - 0 [14:35:48]OFD Sender: Remove packet 73843 [14:35:48]ProducePacketName [14:35:48]name=ofd_packets/00073843 [14:35:48]NVStorageDeleteData [14:35:48]Write to MH i2c: 01 00 00 C8 28 F0 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 07 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 07 00 C8 28 00 00 00 00 00 F7 0C FA [14:35:48]RasterBufferAndPrint [14:35:48]line [14:35:48]line [14:35:48]line [14:35:48]line [14:35:48]line [14:35:48]written 0, free lines is 3326 [14:35:48]MH_Cut [14:35:48]Write to MH i2c: D1 01 00 CF 28 01 C9 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: D1 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: D1 01 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: D1 01 00 CF 28 00 C8 [14:35:48]Write to MH i2c: 01 00 00 D0 28 F8 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:49]OFD Sender: No OFD packet to send [14:35:49]*** Cut start [14:35:49]*** Partial cut [14:35:49]*** CUTSNS_PIN = 1 [14:35:49]*** CUTSNS_PIN = 0 [14:35:50]*** Brake cut motor [14:35:50]Read from MH i2c: 01 [14:35:50]MH_I2C_Read... [14:35:50]*** Stop cut motor [14:35:50]*** Cut end [14:35:50]Read from MH i2c: 01 07 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 07 00 D0 28 00 00 00 00 00 FF 0F 0D [14:35:50]process_action close_receipt done [14:35:50]requested_data is exist [14:35:50]produce_requested_data [14:35:50]requested_item fm.sn is exist - process it [14:35:50]wFMCommunicate request_size=4 [14:35:50]MH_SAM_APDU [14:35:50]CAPDU: 80 11 00 00 [14:35:50]Write to MH i2c: E2 08 00 D1 28 80 11 00 00 00 00 00 00 73 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:50]Read from MH i2c: E2 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 17 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 17 00 D1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C0 [14:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:35:50]wFMCommunicate OK [14:35:50]requested_item fd.num is exist - process it [14:35:50]SAM_PROTO_GetFieldsCounters [14:35:50]wFMCommunicate request_size=4 [14:35:50]MH_SAM_APDU [14:35:50]CAPDU: 80 13 00 00 [14:35:50]Write to MH i2c: E2 08 00 D2 28 80 13 00 00 00 00 00 00 76 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:50]Read from MH i2c: E2 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 62 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 62 00 D2 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 73 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [14:35:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 73 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:50]wFMCommunicate OK [14:35:50]SAM_PROTO_GetFieldsCounters done [14:35:50]requested_item shift.num is exist - process it [14:35:50]requested_item shift.opened is exist - process it [14:35:50]req_shift_opened [14:35:50]FM_GetShiftState [14:35:50]SAM_PROTO_GetShiftState [14:35:50]wFMCommunicate request_size=4 [14:35:50]MH_SAM_APDU [14:35:50]CAPDU: 80 13 01 00 [14:35:50]Write to MH i2c: E2 08 00 D3 28 80 13 01 00 00 00 00 00 78 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:50]Read from MH i2c: E2 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 0E 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 0E 00 D3 28 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BD [14:35:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:35:50]wFMCommunicate OK [14:35:50]SAM_PROTO_GetShiftState done [14:35:50]FM_GetShiftState done [14:35:50]req_shift_opened done [14:35:50]requested_item shift.open_date is exist - process it [14:35:50]req_shift_open_date [14:35:50]req_shift_open_date done [14:35:50]produce_requested_data done [14:35:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73843,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:35:50]process_action_free close_receipt [14:35:50]json_value_free [14:35:50]json_value_free done [14:35:50]process_json_proto returns [14:35:50]Send response to host [14:35:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73843,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:35:50]free response buf [14:35:50]execute_script done [14:35:50]execute_script returns [14:35:50]free content buf [14:35:50]Sock 8.Close socket [14:35:50]Sock 8.Thread stoped [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:58]accept exits with 9 [14:36:58]New connection [14:36:58]New thread 3067575652 created [14:36:58]Thread 3067432292 joined [14:36:58]Waiting for new connection... [14:36:58] Sock 9.Parse request [14:36:58]Sock 9.Check first char [14:36:58]Sock 9.First char is OK [14:36:58]request: POST /json_proto HTTP/1.0 [14:36:58]Method: POST [14:36:58]URL: /json_proto [14:36:58]Method is POST - this is cgi request [14:36:58]url: /json_proto [14:36:58]query_string will be loaded in cgi processing [14:36:58]execute_cgi json_proto POST (null) [14:36:58]execute_cgi path=json_proto method=POST [14:36:58]POST find Content-Length [14:36:58]Host: 172.17.44.196:8080 [14:36:58]Content-Length: 683 [14:36:58]Content-Type: application/json [14:36:58] [14:36:58]POST finish read [14:36:58]Found Content-Length = 683 [14:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963052", "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" : 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" ] } } [14:36:58]execute_script... [14:36: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)1963052", "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" : 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" ] } } [14:36:58]POST & json_proto [14:36:58]process_json_proto [14:36:58]json parsed OK: [14:36:58]protocol is kg_v1.0 [14:36:58]action value=close_receipt [14:36:58]process_action close_receipt [14:36:58]cmd_close_receipt [14:36:58]MH_GetDate [14:36:58]Write to MH i2c: F0 00 00 D4 28 EB [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: F0 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: F0 09 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: F0 09 00 D4 28 00 8C 15 15 67 E7 19 F8 65 6E [14:36:58]GetLastDocTimeStamp 1729434948 [14:36:58]current date 1729435020 [14:36:58]FM_GetShiftState [14:36:58]SAM_PROTO_GetShiftState [14:36:58]wFMCommunicate request_size=4 [14:36:58]MH_SAM_APDU [14:36:58]CAPDU: 80 13 01 00 [14:36:58]Write to MH i2c: E2 08 00 D5 28 80 13 01 00 00 00 00 00 7A [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:58]Read from MH i2c: E2 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 0E 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 0E 00 D5 28 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BF [14:36:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:36:58]wFMCommunicate OK [14:36:58]SAM_PROTO_GetShiftState done [14:36:58]FM_GetShiftState done [14:36:58]opened in 1729384303 [14:36:58]opened+sec_in_day 1729470703 [14:36:58]quantity*price = 100015 [14:36:58]sum+1 = 100017 [14:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 170 20.10.2024 14:37 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73844 ФПД: 280634985194415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143700&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73844&fm=280634985194415&tin=02508201610067®Number=0000000000161154&sum=100000 [14:36:59]StoreToDocumentArchive [14:36:59]shift 170 fd 73844 [14:36:59]save to /storage/0170/doc_00073844 [14:36:59]save last doc name /storage/0170/doc_00073844 to /storage/kkm_last_doc_name [14:36:59]save OK [14:36:59]Clear old archive folders... [14:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:59]tlvbuf is 00373CC0 [14:36:59]SAM_PROTO_ClearQueue [14:36:59]wFMCommunicate request_size=4 [14:36:59]MH_SAM_APDU [14:36:59]CAPDU: 80 09 00 00 [14:36:59]Write to MH i2c: E2 08 00 E2 28 80 09 00 00 00 00 00 00 7C [14:36:59]Write i2c OK [14:36:59]MH_I2C_Read... [14:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:59]Read from MH i2c: E2 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 03 00 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 03 00 E2 28 00 90 00 7E [14:36:59]RAPDU: 90 00 [14:36:59]wFMCommunicate OK [14:36:59]SAM_PROTO_ClearQueue done [14:36:59]KKMCreateOFDPacket [14:36:59]OFDProtocolAddRootSTLVToBuf [14:36:59]FM_MakeSignedData [14:36:59]FM_MakeSignedData [14:36:59]SAM_PROTO_SignData [14:36:59]wFMCommunicate request_size=4 [14:36:59]MH_SAM_APDU [14:36:59]CAPDU: 80 0D 01 02 [14:37:00]Write to MH i2c: E2 08 00 E3 28 80 0D 01 02 00 00 00 00 84 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=255 [14:37:00]MH_SAM_APDU [14:37:00]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 AA 00 00 00 F4 03 04 00 8C 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 20 01 00 35 04 06 00 FF [14:37:00]Write to MH i2c: E2 02 01 E4 28 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 AA 00 00 00 F4 03 04 00 8C 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 20 01 00 35 04 06 00 FF 00 00 05 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=10 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 02 02 05 3C 6C 9A A3 AF [14:37:00]Write to MH i2c: E2 0D 00 E5 28 80 0D 02 02 05 00 3C 6C 9A A3 AF 00 00 25 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 E5 28 00 90 00 81 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 03 02 [14:37:00]Write to MH i2c: E2 08 00 E6 28 80 0D 03 02 00 00 00 00 89 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 0B 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 0B 00 E6 28 00 4A 18 6B E6 E5 1E 94 0D 90 00 E1 [14:37:00]RAPDU: 4A 18 6B E6 E5 1E 94 0D 90 00 [14:37:00]wFMCommunicate OK [14:37:00]SAM_PROTO_SignData done [14:37:00]FM_MakeSignedData done [14:37:00]CreateOFDProtocolMessage [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 11 00 00 [14:37:00]Write to MH i2c: E2 08 00 E7 28 80 11 00 00 00 00 00 00 89 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 17 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 17 00 E7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D6 [14:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:37:00]wFMCommunicate OK [14:37:00]CreateOFDProtocolMessage done [14:37:00]OFDSenderStorePacket 73844 [14:37:00]StoreOFDPacket docnum=73844 [14:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 61 24 07 01 5D C5 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 AA 00 00 00 F4 03 04 00 8C 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 20 01 00 35 04 06 00 FF 3C 6C 9A A3 AF 4A 18 6B E6 E5 1E 94 0D [14:37:00]CheckFolder [14:37:00]dirname=/storage/ofd_packets [14:37:00]CheckFolder done [14:37:00]ProducePacketName [14:37:00]name=ofd_packets/00073844 [14:37:00]NVStorageSaveData ofd_packets/00073844 [14:37:00]File name is /storage/ofd_packets/00073844 [14:37:00]Write 301 bytes [14:37:00]NVStorageSaveData done [14:37:00]OFDSenderStorePacket done [14:37:00]KKMCreateOFDPacket done [14:37:00]NVStorageSaveData kkm_last_timestamp [14:37:00]File name is /storage/kkm_last_timestamp [14:37:00]Write 4 bytes [14:37:00]NVStorageSaveData done [14:37:00]ExternCall_PrintAddStr [14:37:00]wPrintStart [14:37:00]Write to MH i2c: 01 00 00 E8 28 10 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 07 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 07 00 E8 28 00 00 00 00 00 FF 0F 25 [14:37:00]RasterBufferAndPrint [14:37:00]line Счет N : (1)1963052 [14:37:00]line ИНН: 02508201610067 [14:37:00]line Контрольно-Кассовый Чек [14:37:00]line ПРОДАЖА [14:37:00]line ТРК (МРК, ГНК) : 33 [14:37:00]line Товар: 2710124130 [14:37:00]line Аи-92-К-5 [14:37:00]line 14.950 * 66.90 [14:37:00]line = 1000.16 [14:37:00]line НДС 12% НСП 1% [14:37:00]line > о реализуемом товаре [14:37:00]line ОКРУГЛЕНИЕ: -0.16 [14:37:00]line ИТОГО: 1000.00 [14:37:00]line Внесено: 1000.00 [14:37:00]line СДАЧА: 0.00 [14:37:00]line НСП 1% : 8.85 [14:37:00]line НДС 12% : 106.21 [14:37:00]line Наличными: 1000.00 [14:37:00]line Безнал.: 0.00 [14:37:00]line Место: АЗС № 133 "Партнер Нефть" [14:37:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:37:00]line СНО: Общий режим [14:37:00]line Чек 170 20.10.2024 14:37 [14:37:00]line Смена: 170 ФФД: 1.0 [14:37:00]line ЗНМ: 0300000020 [14:37:00]line РНМ: 0000000000161154 [14:37:00]line Версия ККМ: v1.0 [14:37:00]line ФМ: 0000000000963323 [14:37:00]line ФД: 73844 [14:37:00]line ФПД: 280634985194415 [14:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143700&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73844&fm=280634985194415&tin=02508201610067®Number=0000000000161154&sum=100000 [14:37:00]OFD Sender: Processing packet 73844 [packets to send 15, broken 14] [14:37:00]ProducePacketName [14:37:00]name=ofd_packets/00073844 [14:37:00]OFD Sender: To server: pG, [14:37:00]CommunicateWithHost lk.salyk.kg:30040 [14:37:00]ConnectInit lk.salyk.kg [14:37:00]written 0, free lines is 4095 [14:37:00]Connected sock=10 [14:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 61 24 07 01 5D C5 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 AA 00 00 00 F4 03 04 00 8C 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 20 01 00 35 04 06 00 FF 3C 6C 9A A3 AF 4A 18 6B E6 E5 1E 94 0D [14:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EA BE 47 00 DA 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 39 36 33 33 32 33 10 04 04 00 74 20 01 00 F4 03 04 00 71 BE 14 67 B6 04 01 00 00 AD 62 E4 F7 0C 92 C5 2B [14:37:01]CommunicateWithHost err = 0 [14:37:01]CheckOFDResponse [14:37:01]1017 (14) - 77093643461234 [14:37:01]1041 (16) - 0000000000963323 [14:37:01]1040 (4) - 73844 [14:37:01]1012 (4) - 20.10.2024 08:25 [14:37:01]1206 (1) - 0 [14:37:01]OFD Sender: Remove packet 73844 [14:37:01]ProducePacketName [14:37:01]name=ofd_packets/00073844 [14:37:01]NVStorageDeleteData [14:37:01]Write to MH i2c: 01 00 00 12 29 3B [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 07 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 07 00 12 29 00 00 00 00 00 C3 0C 11 [14:37:01]RasterBufferAndPrint [14:37:01]line [14:37:01]line [14:37:01]line [14:37:01]line [14:37:01]line [14:37:01]written 0, free lines is 3273 [14:37:01]MH_Cut [14:37:01]Write to MH i2c: D1 01 00 19 29 01 14 [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: D1 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: D1 01 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: D1 01 00 19 29 00 13 [14:37:01]Write to MH i2c: 01 00 00 1A 29 43 [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]OFD Sender: No OFD packet to send [14:37:02]*** Cut start [14:37:02]*** Partial cut [14:37:02]*** CUTSNS_PIN = 1 [14:37:02]*** CUTSNS_PIN = 0 [14:37:02]*** Brake cut motor [14:37:02]Read from MH i2c: 01 [14:37:02]MH_I2C_Read... [14:37:02]*** Stop cut motor [14:37:02]*** Cut end [14:37:02]Read from MH i2c: 01 07 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: 01 07 00 1A 29 00 00 00 00 00 FF 0F 58 [14:37:02]process_action close_receipt done [14:37:02]requested_data is exist [14:37:02]produce_requested_data [14:37:02]requested_item fm.sn is exist - process it [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 11 00 00 [14:37:02]Write to MH i2c: E2 08 00 1B 29 80 11 00 00 00 00 00 00 BE [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 17 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 17 00 1B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0B [14:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:37:02]wFMCommunicate OK [14:37:02]requested_item fd.num is exist - process it [14:37:02]SAM_PROTO_GetFieldsCounters [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 00 00 [14:37:02]Write to MH i2c: E2 08 00 1C 29 80 13 00 00 00 00 00 00 C1 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 62 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 62 00 1C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 74 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [14:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 74 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetFieldsCounters done [14:37:02]requested_item shift.num is exist - process it [14:37:02]requested_item shift.opened is exist - process it [14:37:02]req_shift_opened [14:37:02]FM_GetShiftState [14:37:02]SAM_PROTO_GetShiftState [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 01 00 [14:37:02]Write to MH i2c: E2 08 00 1D 29 80 13 01 00 00 00 00 00 C3 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 1D 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 08 [14:37:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetShiftState done [14:37:02]FM_GetShiftState done [14:37:02]req_shift_opened done [14:37:02]requested_item shift.open_date is exist - process it [14:37:02]req_shift_open_date [14:37:02]req_shift_open_date done [14:37:02]produce_requested_data done [14:37:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73844,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:37:02]process_action_free close_receipt [14:37:02]json_value_free [14:37:02]json_value_free done [14:37:02]process_json_proto returns [14:37:02]Send response to host [14:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73844,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:37:02]free response buf [14:37:02]execute_script done [14:37:02]execute_script returns [14:37:02]free content buf [14:37:02]Sock 9.Close socket [14:37:02]Sock 9.Thread stoped [14:37:03]accept exits with 8 [14:37:03]New connection [14:37:03]New thread 3067432292 created [14:37:03]Thread 3067575652 joined [14:37:03]Waiting for new connection... [14:37:03] Sock 8.Parse request [14:37:03]Sock 8.Check first char [14:37:03]Sock 8.First char is OK [14:37:03]request: POST /json_proto HTTP/1.0 [14:37:03]Method: POST [14:37:03]URL: /json_proto [14:37:03]Method is POST - this is cgi request [14:37:03]url: /json_proto [14:37:03]query_string will be loaded in cgi processing [14:37:03]execute_cgi json_proto POST (null) [14:37:03]execute_cgi path=json_proto method=POST [14:37:03]POST find Content-Length [14:37:03]Host: 172.17.44.196:8080 [14:37:03]Content-Length: 844 [14:37:03]Content-Type: application/json [14:37:03] [14:37:03]POST finish read [14:37:03]Found Content-Length = 844 [14:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:03]execute_script... [14:37: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)1963053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:03]POST & json_proto [14:37:03]process_json_proto [14:37:03]json parsed OK: [14:37:03]protocol is kg_v1.0 [14:37:03]action value=close_receipt [14:37:03]process_action close_receipt [14:37:03]cmd_close_receipt [14:37:03]MH_GetDate [14:37:03]Write to MH i2c: F0 00 00 1E 29 36 [14:37:03]Write i2c OK [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: F0 [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: F0 09 00 [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: F0 09 00 1E 29 00 91 15 15 67 E7 19 F8 65 BE [14:37:03]GetLastDocTimeStamp 1729435020 [14:37:03]current date 1729435025 [14:37:03]FM_GetShiftState [14:37:03]SAM_PROTO_GetShiftState [14:37:03]wFMCommunicate request_size=4 [14:37:03]MH_SAM_APDU [14:37:03]CAPDU: 80 13 01 00 [14:37:03]Write to MH i2c: E2 08 00 1F 29 80 13 01 00 00 00 00 00 C5 [14:37:03]Write i2c OK [14:37:03]MH_I2C_Read... [14:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:03]Read from MH i2c: E2 [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: E2 0E 00 [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: E2 0E 00 1F 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0A [14:37:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:37:03]wFMCommunicate OK [14:37:03]SAM_PROTO_GetShiftState done [14:37:03]FM_GetShiftState done [14:37:03]opened in 1729384303 [14:37:03]opened+sec_in_day 1729470703 [14:37:03]quantity*price = 100021 [14:37:03]sum+1 = 100023 [14:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 171 20.10.2024 14:37 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000963323 ФД: 73845 ФПД: 149243199543668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143705&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73845&fm=149243199543668&tin=02508201610067®Number=0000000000161154&sum=100022 [14:37:04]StoreToDocumentArchive [14:37:04]shift 170 fd 73845 [14:37:04]save to /storage/0170/doc_00073845 [14:37:04]save last doc name /storage/0170/doc_00073845 to /storage/kkm_last_doc_name [14:37:04]save OK [14:37:04]Clear old archive folders... [14:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:04]tlvbuf is 00373AD0 [14:37:04]SAM_PROTO_ClearQueue [14:37:04]wFMCommunicate request_size=4 [14:37:04]MH_SAM_APDU [14:37:04]CAPDU: 80 09 00 00 [14:37:04]Write to MH i2c: E2 08 00 2C 29 80 09 00 00 00 00 00 00 C7 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 2C 29 00 90 00 C9 [14:37:04]RAPDU: 90 00 [14:37:04]wFMCommunicate OK [14:37:04]SAM_PROTO_ClearQueue done [14:37:04]KKMCreateOFDPacket [14:37:04]OFDProtocolAddRootSTLVToBuf [14:37:04]FM_MakeSignedData [14:37:04]FM_MakeSignedData [14:37:04]SAM_PROTO_SignData [14:37:04]wFMCommunicate request_size=4 [14:37:04]MH_SAM_APDU [14:37:04]CAPDU: 80 0D 01 02 [14:37:04]Write to MH i2c: E2 08 00 2D 29 80 0D 01 02 00 00 00 00 CF [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:05]Read from MH i2c: E2 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 03 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 03 00 2D 29 00 90 00 CA [14:37:05]RAPDU: 90 00 [14:37:05]wFMCommunicate OK [14:37:05]wFMCommunicate request_size=255 [14:37:05]MH_SAM_APDU [14:37: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 20 01 00 35 04 06 00 87 [14:37:05]Write to MH i2c: E2 02 01 2E 29 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 20 01 00 35 04 06 00 87 00 00 2E [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:05]Read from MH i2c: E2 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 03 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [14:37:05]RAPDU: 90 00 [14:37:05]wFMCommunicate OK [14:37:05]wFMCommunicate request_size=10 [14:37:05]MH_SAM_APDU [14:37:05]CAPDU: 80 0D 02 02 05 BC 63 E4 D9 74 [14:37:05]Write to MH i2c: E2 0D 00 2F 29 80 0D 02 02 05 00 BC 63 E4 D9 74 00 00 2C [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:05]Read from MH i2c: E2 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 03 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [14:37:05]RAPDU: 90 00 [14:37:05]wFMCommunicate OK [14:37:05]wFMCommunicate request_size=4 [14:37:05]MH_SAM_APDU [14:37:05]CAPDU: 80 0D 03 02 [14:37:05]Write to MH i2c: E2 08 00 30 29 80 0D 03 02 00 00 00 00 D4 [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:05]Read from MH i2c: E2 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 0B 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 0B 00 30 29 00 DF C7 72 9A 17 9B 6B B8 90 00 5C [14:37:05]RAPDU: DF C7 72 9A 17 9B 6B B8 90 00 [14:37:05]wFMCommunicate OK [14:37:05]SAM_PROTO_SignData done [14:37:05]FM_MakeSignedData done [14:37:05]CreateOFDProtocolMessage [14:37:05]wFMCommunicate request_size=4 [14:37:05]MH_SAM_APDU [14:37:05]CAPDU: 80 11 00 00 [14:37:05]Write to MH i2c: E2 08 00 31 29 80 11 00 00 00 00 00 00 D4 [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:05]Read from MH i2c: E2 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 17 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: E2 17 00 31 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 21 [14:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:37:05]wFMCommunicate OK [14:37:05]CreateOFDProtocolMessage done [14:37:05]OFDSenderStorePacket 73845 [14:37:05]StoreOFDPacket docnum=73845 [14:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4C 0C 07 01 37 90 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 20 01 00 35 04 06 00 87 BC 63 E4 D9 74 DF C7 72 9A 17 9B 6B B8 [14:37:05]CheckFolder [14:37:05]dirname=/storage/ofd_packets [14:37:05]CheckFolder done [14:37:05]ProducePacketName [14:37:05]name=ofd_packets/00073845 [14:37:05]NVStorageSaveData ofd_packets/00073845 [14:37:05]File name is /storage/ofd_packets/00073845 [14:37:05]Write 301 bytes [14:37:05]NVStorageSaveData done [14:37:05]OFDSenderStorePacket done [14:37:05]KKMCreateOFDPacket done [14:37:05]NVStorageSaveData kkm_last_timestamp [14:37:05]File name is /storage/kkm_last_timestamp [14:37:05]Write 4 bytes [14:37:05]NVStorageSaveData done [14:37:05]ExternCall_PrintAddStr [14:37:05]wPrintStart [14:37:05]Write to MH i2c: 01 00 00 32 29 5B [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: 01 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: 01 07 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: 01 07 00 32 29 00 00 00 00 00 FF 0F 70 [14:37:05]RasterBufferAndPrint [14:37:05]line Счет N : (1)1963053 [14:37:05]line ИНН: 02508201610067 [14:37:05]line Контрольно-Кассовый Чек [14:37:05]line ПРОДАЖА [14:37:05]line ТРК (МРК, ГНК) : 44 [14:37:05]line Товар: 2710124500 [14:37:05]line Аи-95-К-5 [14:37:05]line 13.480 * 74.20 [14:37:05]line = 1000.22 [14:37:05]line НДС 12% НСП 1% [14:37:05]line > о реализуемом товаре [14:37:05]line ИТОГО: 1000.22 [14:37:05]line НСП 1% : 8.85 [14:37:05]line НДС 12% : 106.22 [14:37:05]line Наличными: 0.00 [14:37:05]line Безнал.: 1000.22 [14:37:05]line Место: АЗС № 133 "Партнер Нефть" [14:37:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:37:05]line СНО: Общий режим [14:37:05]line Чек 171 20.10.2024 14:37 [14:37:05]line Смена: 170 ФФД: 1.0 [14:37:05]line ЗНМ: 0300000020 [14:37:05]line РНМ: 0000000000161154 [14:37:05]line Версия ККМ: v1.0 [14:37:05]line Платежная система: АКБ Кыргызстан [14:37:05]line ФМ: 0000000000963323 [14:37:05]line ФД: 73845 [14:37:05]line ФПД: 149243199543668 [14:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143705&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73845&fm=149243199543668&tin=02508201610067®Number=0000000000161154&sum=100022 [14:37:05]OFD Sender: Processing packet 73845 [packets to send 15, broken 14] [14:37:05]ProducePacketName [14:37:05]name=ofd_packets/00073845 [14:37:05]written 0, free lines is 4095 [14:37:05]OFD Sender: To server: pG, [14:37:05]CommunicateWithHost lk.salyk.kg:30040 [14:37:05]ConnectInit lk.salyk.kg [14:37:05]Connected sock=10 [14:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4C 0C 07 01 37 90 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 15 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 20 01 00 35 04 06 00 87 BC 63 E4 D9 74 DF C7 72 9A 17 9B 6B B8 [14:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CB 2D 47 00 A6 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 39 36 33 33 32 33 10 04 04 00 75 20 01 00 F4 03 04 00 76 BE 14 67 B6 04 01 00 00 79 85 53 6E F6 6B 3D DB [14:37:06]CommunicateWithHost err = 0 [14:37:06]CheckOFDResponse [14:37:06]1017 (14) - 77093643461234 [14:37:06]1041 (16) - 0000000000963323 [14:37:06]1040 (4) - 73845 [14:37:06]1012 (4) - 20.10.2024 08:25 [14:37:06]1206 (1) - 0 [14:37:06]OFD Sender: Remove packet 73845 [14:37:06]ProducePacketName [14:37:06]name=ofd_packets/00073845 [14:37:06]NVStorageDeleteData [14:37:06]Write to MH i2c: 01 00 00 5B 29 84 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 07 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 07 00 5B 29 00 00 00 00 00 EA 0C 81 [14:37:06]RasterBufferAndPrint [14:37:06]line [14:37:06]line [14:37:06]line [14:37:06]line [14:37:06]line [14:37:06]written 0, free lines is 3320 [14:37:06]MH_Cut [14:37:06]Write to MH i2c: D1 01 00 62 29 01 5D [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: D1 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: D1 01 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: D1 01 00 62 29 00 5C [14:37:06]Write to MH i2c: 01 00 00 63 29 8C [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]OFD Sender: No OFD packet to send [14:37:07]*** Cut start [14:37:07]*** Partial cut [14:37:07]*** CUTSNS_PIN = 1 [14:37:07]*** CUTSNS_PIN = 0 [14:37:07]*** Brake cut motor [14:37:07]Read from MH i2c: 01 [14:37:07]MH_I2C_Read... [14:37:07]*** Stop cut motor [14:37:07]*** Cut end [14:37:07]Read from MH i2c: 01 07 00 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: 01 07 00 63 29 00 00 00 00 00 FF 0F A1 [14:37:07]process_action close_receipt done [14:37:07]requested_data is exist [14:37:07]produce_requested_data [14:37:07]requested_item fm.sn is exist - process it [14:37:07]wFMCommunicate request_size=4 [14:37:07]MH_SAM_APDU [14:37:07]CAPDU: 80 11 00 00 [14:37:07]Write to MH i2c: E2 08 00 64 29 80 11 00 00 00 00 00 00 07 [14:37:07]Write i2c OK [14:37:07]MH_I2C_Read... [14:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:07]Read from MH i2c: E2 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: E2 17 00 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: E2 17 00 64 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 54 [14:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:37:07]wFMCommunicate OK [14:37:07]requested_item fd.num is exist - process it [14:37:07]SAM_PROTO_GetFieldsCounters [14:37:07]wFMCommunicate request_size=4 [14:37:07]MH_SAM_APDU [14:37:07]CAPDU: 80 13 00 00 [14:37:07]Write to MH i2c: E2 08 00 65 29 80 13 00 00 00 00 00 00 0A [14:37:07]Write i2c OK [14:37:07]MH_I2C_Read... [14:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:08]Read from MH i2c: E2 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 62 00 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 62 00 65 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 75 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [14:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 75 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:08]wFMCommunicate OK [14:37:08]SAM_PROTO_GetFieldsCounters done [14:37:08]requested_item shift.num is exist - process it [14:37:08]requested_item shift.opened is exist - process it [14:37:08]req_shift_opened [14:37:08]FM_GetShiftState [14:37:08]SAM_PROTO_GetShiftState [14:37:08]wFMCommunicate request_size=4 [14:37:08]MH_SAM_APDU [14:37:08]CAPDU: 80 13 01 00 [14:37:08]Write to MH i2c: E2 08 00 66 29 80 13 01 00 00 00 00 00 0C [14:37:08]Write i2c OK [14:37:08]MH_I2C_Read... [14:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:08]Read from MH i2c: E2 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 0E 00 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 0E 00 66 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 51 [14:37:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:37:08]wFMCommunicate OK [14:37:08]SAM_PROTO_GetShiftState done [14:37:08]FM_GetShiftState done [14:37:08]req_shift_opened done [14:37:08]requested_item shift.open_date is exist - process it [14:37:08]req_shift_open_date [14:37:08]req_shift_open_date done [14:37:08]produce_requested_data done [14:37:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73845,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:37:08]process_action_free close_receipt [14:37:08]json_value_free [14:37:08]json_value_free done [14:37:08]process_json_proto returns [14:37:08]Send response to host [14:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73845,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:37:08]free response buf [14:37:08]execute_script done [14:37:08]execute_script returns [14:37:08]free content buf [14:37:08]Sock 8.Close socket [14:37:08]Sock 8.Thread stoped [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:15]accept exits with 9 [14:39:15]New connection [14:39:15]New thread 3067575652 created [14:39:15]Thread 3067432292 joined [14:39:15]Waiting for new connection... [14:39:15] Sock 9.Parse request [14:39:15]Sock 9.Check first char [14:39:15]Sock 9.First char is OK [14:39:15]request: POST /json_proto HTTP/1.0 [14:39:15]Method: POST [14:39:15]URL: /json_proto [14:39:15]Method is POST - this is cgi request [14:39:15]url: /json_proto [14:39:15]query_string will be loaded in cgi processing [14:39:15]execute_cgi json_proto POST (null) [14:39:15]execute_cgi path=json_proto method=POST [14:39:15]POST find Content-Length [14:39:15]Host: 172.17.44.196:8080 [14:39:15]Content-Length: 683 [14:39:15]Content-Type: application/json [14:39:15] [14:39:15]POST finish read [14:39:15]Found Content-Length = 683 [14:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963054", "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" : 31.400, "sum" : 2100.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:15]execute_script... [14:39:15]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)1963054", "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" : 31.400, "sum" : 2100.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:15]POST & json_proto [14:39:15]process_json_proto [14:39:15]json parsed OK: [14:39:15]protocol is kg_v1.0 [14:39:15]action value=close_receipt [14:39:15]process_action close_receipt [14:39:15]cmd_close_receipt [14:39:15]MH_GetDate [14:39:15]Write to MH i2c: F0 00 00 67 29 7F [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: F0 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: F0 09 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: F0 09 00 67 29 00 15 16 15 67 E7 19 F8 65 8C [14:39:15]GetLastDocTimeStamp 1729435025 [14:39:15]current date 1729435157 [14:39:15]FM_GetShiftState [14:39:15]SAM_PROTO_GetShiftState [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 13 01 00 [14:39:15]Write to MH i2c: E2 08 00 68 29 80 13 01 00 00 00 00 00 0E [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0E 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0E 00 68 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 53 [14:39:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:39:15]wFMCommunicate OK [14:39:15]SAM_PROTO_GetShiftState done [14:39:15]FM_GetShiftState done [14:39:15]opened in 1729384303 [14:39:15]opened+sec_in_day 1729470703 [14:39:15]quantity*price = 210066 [14:39:15]sum+1 = 210067 [14:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.08 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 172 20.10.2024 14:39 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73846 ФПД: 252468786915060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143917&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73846&fm=252468786915060&tin=02508201610067®Number=0000000000161154&sum=210000 [14:39:16]StoreToDocumentArchive [14:39:16]shift 170 fd 73846 [14:39:16]save to /storage/0170/doc_00073846 [14:39:16]save last doc name /storage/0170/doc_00073846 to /storage/kkm_last_doc_name [14:39:16]save OK [14:39:16]Clear old archive folders... [14:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:16]tlvbuf is 00383090 [14:39:16]SAM_PROTO_ClearQueue [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 09 00 00 [14:39:16]Write to MH i2c: E2 08 00 75 29 80 09 00 00 00 00 00 00 10 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 75 29 00 90 00 12 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]SAM_PROTO_ClearQueue done [14:39:16]KKMCreateOFDPacket [14:39:16]OFDProtocolAddRootSTLVToBuf [14:39:16]FM_MakeSignedData [14:39:16]FM_MakeSignedData [14:39:16]SAM_PROTO_SignData [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 01 02 [14:39:16]Write to MH i2c: E2 08 00 76 29 80 0D 01 02 00 00 00 00 18 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 76 29 00 90 00 13 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]wFMCommunicate request_size=255 [14:39:16]MH_SAM_APDU [14:39:16]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 A8 7A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 20 01 00 35 04 06 00 E5 [14:39:16]Write to MH i2c: E2 02 01 77 29 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 A8 7A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 20 01 00 35 04 06 00 E5 00 00 88 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]wFMCommunicate request_size=10 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 02 02 05 9E 78 5C 66 F4 [14:39:16]Write to MH i2c: E2 0D 00 78 29 80 0D 02 02 05 00 9E 78 5C 66 F4 00 00 F1 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 03 02 [14:39:16]Write to MH i2c: E2 08 00 79 29 80 0D 03 02 00 00 00 00 1D [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:16]OFD Sender: No OFD packet to send [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 0B 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 0B 00 79 29 00 F2 A0 1F 00 FF D4 EA 93 90 00 1F [14:39:16]RAPDU: F2 A0 1F 00 FF D4 EA 93 90 00 [14:39:16]wFMCommunicate OK [14:39:16]SAM_PROTO_SignData done [14:39:16]FM_MakeSignedData done [14:39:16]CreateOFDProtocolMessage [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 11 00 00 [14:39:16]Write to MH i2c: E2 08 00 7A 29 80 11 00 00 00 00 00 00 1D [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 17 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 17 00 7A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6A [14:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:39:16]wFMCommunicate OK [14:39:16]CreateOFDProtocolMessage done [14:39:16]OFDSenderStorePacket 73846 [14:39:16]StoreOFDPacket docnum=73846 [14:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A0 49 07 01 A9 3F 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 A8 7A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 20 01 00 35 04 06 00 E5 9E 78 5C 66 F4 F2 A0 1F 00 FF D4 EA 93 [14:39:16]CheckFolder [14:39:16]dirname=/storage/ofd_packets [14:39:16]CheckFolder done [14:39:16]ProducePacketName [14:39:16]name=ofd_packets/00073846 [14:39:16]NVStorageSaveData ofd_packets/00073846 [14:39:16]File name is /storage/ofd_packets/00073846 [14:39:16]Write 301 bytes [14:39:16]NVStorageSaveData done [14:39:16]OFDSenderStorePacket done [14:39:16]KKMCreateOFDPacket done [14:39:16]NVStorageSaveData kkm_last_timestamp [14:39:16]File name is /storage/kkm_last_timestamp [14:39:16]Write 4 bytes [14:39:16]NVStorageSaveData done [14:39:16]ExternCall_PrintAddStr [14:39:16]wPrintStart [14:39:16]Write to MH i2c: 01 00 00 7B 29 A4 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: 01 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: 01 07 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: 01 07 00 7B 29 00 00 00 00 00 FF 0F B9 [14:39:16]RasterBufferAndPrint [14:39:16]line Счет N : (1)1963054 [14:39:16]line ИНН: 02508201610067 [14:39:16]line Контрольно-Кассовый Чек [14:39:16]line ПРОДАЖА [14:39:16]line ТРК (МРК, ГНК) : 53 [14:39:16]line Товар: 2710124130 [14:39:16]line Аи-92-К-5 [14:39:16]line 31.400 * 66.90 [14:39:16]line = 2100.66 [14:39:16]line НДС 12% НСП 1% [14:39:16]line > о реализуемом товаре [14:39:16]line ОКРУГЛЕНИЕ: -0.66 [14:39:16]line ИТОГО: 2100.00 [14:39:16]line Внесено: 2100.00 [14:39:16]line СДАЧА: 0.00 [14:39:16]line НСП 1% : 18.59 [14:39:16]line НДС 12% : 223.08 [14:39:16]line Наличными: 2100.00 [14:39:16]line Безнал.: 0.00 [14:39:16]line Место: АЗС № 133 "Партнер Нефть" [14:39:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:39:16]line СНО: Общий режим [14:39:16]line Чек 172 20.10.2024 14:39 [14:39:16]line Смена: 170 ФФД: 1.0 [14:39:16]line ЗНМ: 0300000020 [14:39:16]line РНМ: 0000000000161154 [14:39:16]line Версия ККМ: v1.0 [14:39:16]line ФМ: 0000000000963323 [14:39:16]line ФД: 73846 [14:39:16]line ФПД: 252468786915060 [14:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143917&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73846&fm=252468786915060&tin=02508201610067®Number=0000000000161154&sum=210000 [14:39:17]OFD Sender: Processing packet 73846 [packets to send 15, broken 14] [14:39:17]ProducePacketName [14:39:17]name=ofd_packets/00073846 [14:39:17]OFD Sender: To server: pG, [14:39:17]CommunicateWithHost lk.salyk.kg:30040 [14:39:17]ConnectInit lk.salyk.kg [14:39:17]written 0, free lines is 4095 [14:39:17]Connected sock=10 [14:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A0 49 07 01 A9 3F 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 A8 7A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 15 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 20 01 00 35 04 06 00 E5 9E 78 5C 66 F4 F2 A0 1F 00 FF D4 EA 93 [14:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8C 4B 47 00 EF C5 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 39 36 33 33 32 33 10 04 04 00 76 20 01 00 F4 03 04 00 F9 BE 14 67 B6 04 01 00 00 59 DB 9D FF 1D 15 D1 09 [14:39:17]CommunicateWithHost err = 0 [14:39:17]CheckOFDResponse [14:39:17]1017 (14) - 77093643461234 [14:39:17]1041 (16) - 0000000000963323 [14:39:17]1040 (4) - 73846 [14:39:17]1012 (4) - 20.10.2024 08:27 [14:39:17]1206 (1) - 0 [14:39:17]OFD Sender: Remove packet 73846 [14:39:17]ProducePacketName [14:39:17]name=ofd_packets/00073846 [14:39:17]NVStorageDeleteData [14:39:17]Write to MH i2c: 01 00 00 A5 29 CE [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 A5 29 00 00 00 00 00 C1 0C A2 [14:39:17]RasterBufferAndPrint [14:39:17]line [14:39:17]line [14:39:17]line [14:39:17]line [14:39:17]line [14:39:17]written 0, free lines is 3270 [14:39:17]MH_Cut [14:39:17]Write to MH i2c: D1 01 00 AC 29 01 A7 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: D1 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: D1 01 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: D1 01 00 AC 29 00 A6 [14:39:17]Write to MH i2c: 01 00 00 AD 29 D6 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:18]OFD Sender: No OFD packet to send [14:39:18]*** Cut start [14:39:18]*** Partial cut [14:39:18]*** CUTSNS_PIN = 1 [14:39:18]*** CUTSNS_PIN = 0 [14:39:18]*** Brake cut motor [14:39:19]Read from MH i2c: 01 [14:39:19]MH_I2C_Read... [14:39:19]*** Stop cut motor [14:39:19]*** Cut end [14:39:19]Read from MH i2c: 01 07 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 07 00 AD 29 00 00 00 00 00 FF 0F EB [14:39:19]process_action close_receipt done [14:39:19]requested_data is exist [14:39:19]produce_requested_data [14:39:19]requested_item fm.sn is exist - process it [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 11 00 00 [14:39:19]Write to MH i2c: E2 08 00 AE 29 80 11 00 00 00 00 00 00 51 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 17 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 17 00 AE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [14:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:39:19]wFMCommunicate OK [14:39:19]requested_item fd.num is exist - process it [14:39:19]SAM_PROTO_GetFieldsCounters [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 00 00 [14:39:19]Write to MH i2c: E2 08 00 AF 29 80 13 00 00 00 00 00 00 54 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 62 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 62 00 AF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 76 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [14:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 76 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetFieldsCounters done [14:39:19]requested_item shift.num is exist - process it [14:39:19]requested_item shift.opened is exist - process it [14:39:19]req_shift_opened [14:39:19]FM_GetShiftState [14:39:19]SAM_PROTO_GetShiftState [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 01 00 [14:39:19]Write to MH i2c: E2 08 00 B0 29 80 13 01 00 00 00 00 00 56 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 B0 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9B [14:39:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetShiftState done [14:39:19]FM_GetShiftState done [14:39:19]req_shift_opened done [14:39:19]requested_item shift.open_date is exist - process it [14:39:19]req_shift_open_date [14:39:19]req_shift_open_date done [14:39:19]produce_requested_data done [14:39:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73846,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:39:19]process_action_free close_receipt [14:39:19]json_value_free [14:39:19]json_value_free done [14:39:19]process_json_proto returns [14:39:19]Send response to host [14:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73846,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:39:19]free response buf [14:39:19]execute_script done [14:39:19]execute_script returns [14:39:19]free content buf [14:39:19]Sock 9.Close socket [14:39:19]Sock 9.Thread stoped [14:39:19]accept exits with 8 [14:39:19]New connection [14:39:19]New thread 3067432292 created [14:39:19]Thread 3067575652 joined [14:39:19]Waiting for new connection... [14:39:19] Sock 8.Parse request [14:39:19]Sock 8.Check first char [14:39:19]Sock 8.First char is OK [14:39:19]request: POST /json_proto HTTP/1.0 [14:39:19]Method: POST [14:39:19]URL: /json_proto [14:39:19]Method is POST - this is cgi request [14:39:19]url: /json_proto [14:39:19]query_string will be loaded in cgi processing [14:39:19]execute_cgi json_proto POST (null) [14:39:19]execute_cgi path=json_proto method=POST [14:39:19]POST find Content-Length [14:39:19]Host: 172.17.44.196:8080 [14:39:19]Content-Length: 678 [14:39:19]Content-Type: application/json [14:39:19] [14:39:19]POST finish read [14:39:19]Found Content-Length = 678 [14:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963055", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:39:19]execute_script... [14:39: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)1963055", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:39:19]POST & json_proto [14:39:19]process_json_proto [14:39:19]json parsed OK: [14:39:19]protocol is kg_v1.0 [14:39:19]action value=close_receipt [14:39:19]process_action close_receipt [14:39:19]cmd_close_receipt [14:39:19]MH_GetDate [14:39:19]Write to MH i2c: F0 00 00 B1 29 C9 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 09 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 09 00 B1 29 00 19 16 15 67 E7 19 F8 65 DA [14:39:19]GetLastDocTimeStamp 1729435157 [14:39:19]current date 1729435161 [14:39:19]FM_GetShiftState [14:39:19]SAM_PROTO_GetShiftState [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 01 00 [14:39:19]Write to MH i2c: E2 08 00 B2 29 80 13 01 00 00 00 00 00 58 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 B2 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9D [14:39:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetShiftState done [14:39:19]FM_GetShiftState done [14:39:19]opened in 1729384303 [14:39:19]opened+sec_in_day 1729470703 [14:39:19]quantity*price = 50041 [14:39:19]sum+1 = 50042 [14:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 173 20.10.2024 14:39 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73847 ФПД: 247454765070147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143922&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73847&fm=247454765070147&tin=02508201610067®Number=0000000000161154&sum=50000 [14:39:21]StoreToDocumentArchive [14:39:21]shift 170 fd 73847 [14:39:21]save to /storage/0170/doc_00073847 [14:39:21]save last doc name /storage/0170/doc_00073847 to /storage/kkm_last_doc_name [14:39:21]save OK [14:39:21]Clear old archive folders... [14:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:21]tlvbuf is 003E16F0 [14:39:21]SAM_PROTO_ClearQueue [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 09 00 00 [14:39:21]Write to MH i2c: E2 08 00 BF 29 80 09 00 00 00 00 00 00 5A [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 BF 29 00 90 00 5C [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_ClearQueue done [14:39:21]KKMCreateOFDPacket [14:39:21]OFDProtocolAddRootSTLVToBuf [14:39:21]FM_MakeSignedData [14:39:21]FM_MakeSignedData [14:39:21]SAM_PROTO_SignData [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 0D 01 02 [14:39:21]Write to MH i2c: E2 08 00 C0 29 80 0D 01 02 00 00 00 00 62 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 C0 29 00 90 00 5D [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]wFMCommunicate request_size=255 [14:39:21]MH_SAM_APDU [14:39: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AD 00 00 00 F4 03 04 00 1A 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 20 01 00 35 04 06 00 E1 [14:39:21]Write to MH i2c: E2 02 01 C1 29 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AD 00 00 00 F4 03 04 00 1A 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 20 01 00 35 04 06 00 E1 00 00 60 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 C1 29 00 90 00 5E [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]wFMCommunicate request_size=10 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 0D 02 02 05 0F 0D 5E B7 43 [14:39:21]Write to MH i2c: E2 0D 00 C2 29 80 0D 02 02 05 00 0F 0D 5E B7 43 00 00 E3 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 C2 29 00 90 00 5F [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 0D 03 02 [14:39:21]Write to MH i2c: E2 08 00 C3 29 80 0D 03 02 00 00 00 00 67 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0B 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0B 00 C3 29 00 60 9E 30 78 D4 30 F9 8B 90 00 96 [14:39:21]RAPDU: 60 9E 30 78 D4 30 F9 8B 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_SignData done [14:39:21]FM_MakeSignedData done [14:39:21]CreateOFDProtocolMessage [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 11 00 00 [14:39:21]Write to MH i2c: E2 08 00 C4 29 80 11 00 00 00 00 00 00 67 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 17 00 C4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B4 [14:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:39:21]wFMCommunicate OK [14:39:21]CreateOFDProtocolMessage done [14:39:21]OFDSenderStorePacket 73847 [14:39:21]StoreOFDPacket docnum=73847 [14:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 B3 81 07 01 24 43 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AD 00 00 00 F4 03 04 00 1A 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 20 01 00 35 04 06 00 E1 0F 0D 5E B7 43 60 9E 30 78 D4 30 F9 8B [14:39:21]CheckFolder [14:39:21]dirname=/storage/ofd_packets [14:39:21]CheckFolder done [14:39:21]ProducePacketName [14:39:21]name=ofd_packets/00073847 [14:39:21]NVStorageSaveData ofd_packets/00073847 [14:39:21]File name is /storage/ofd_packets/00073847 [14:39:21]Write 301 bytes [14:39:21]NVStorageSaveData done [14:39:21]OFDSenderStorePacket done [14:39:21]KKMCreateOFDPacket done [14:39:21]NVStorageSaveData kkm_last_timestamp [14:39:21]File name is /storage/kkm_last_timestamp [14:39:21]Write 4 bytes [14:39:21]NVStorageSaveData done [14:39:21]ExternCall_PrintAddStr [14:39:21]wPrintStart [14:39:21]Write to MH i2c: 01 00 00 C5 29 EE [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 C5 29 00 00 00 00 00 FF 0F 03 [14:39:21]RasterBufferAndPrint [14:39:21]line Счет N : (1)1963055 [14:39:21]line ИНН: 02508201610067 [14:39:21]line Контрольно-Кассовый Чек [14:39:21]line ПРОДАЖА [14:39:21]line ТРК (МРК, ГНК) : 33 [14:39:21]line Товар: 2710124130 [14:39:21]line Аи-92-К-5 [14:39:21]line 7.480 * 66.90 [14:39:21]line = 500.41 [14:39:21]line НДС 12% НСП 1% [14:39:21]line > о реализуемом товаре [14:39:21]line ОКРУГЛЕНИЕ: -0.41 [14:39:21]line ИТОГО: 500.00 [14:39:21]line Внесено: 500.00 [14:39:21]line СДАЧА: 0.00 [14:39:21]line НСП 1% : 4.43 [14:39:21]line НДС 12% : 53.14 [14:39:21]line Наличными: 500.00 [14:39:21]line Безнал.: 0.00 [14:39:21]line Место: АЗС № 133 "Партнер Нефть" [14:39:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:39:21]line СНО: Общий режим [14:39:21]line Чек 173 20.10.2024 14:39 [14:39:21]line Смена: 170 ФФД: 1.0 [14:39:21]line ЗНМ: 0300000020 [14:39:21]line РНМ: 0000000000161154 [14:39:21]line Версия ККМ: v1.0 [14:39:21]line ФМ: 0000000000963323 [14:39:21]line ФД: 73847 [14:39:21]line ФПД: 247454765070147 [14:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143922&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73847&fm=247454765070147&tin=02508201610067®Number=0000000000161154&sum=50000 [14:39:22]OFD Sender: Processing packet 73847 [packets to send 15, broken 14] [14:39:22]ProducePacketName [14:39:22]name=ofd_packets/00073847 [14:39:22]OFD Sender: To server: pG, [14:39:22]CommunicateWithHost lk.salyk.kg:30040 [14:39:22]ConnectInit lk.salyk.kg [14:39:22]written 0, free lines is 4095 [14:39:22]Connected sock=10 [14:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 B3 81 07 01 24 43 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AD 00 00 00 F4 03 04 00 1A 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 20 01 00 35 04 06 00 E1 0F 0D 5E B7 43 60 9E 30 78 D4 30 F9 8B [14:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D6 3C 47 00 B1 EC 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 39 36 33 33 32 33 10 04 04 00 77 20 01 00 F4 03 04 00 FF BE 14 67 B6 04 01 00 00 87 75 5C C6 5F FB D9 FC [14:39:22]CommunicateWithHost err = 0 [14:39:22]CheckOFDResponse [14:39:22]1017 (14) - 77093643461234 [14:39:22]1041 (16) - 0000000000963323 [14:39:22]1040 (4) - 73847 [14:39:22]1012 (4) - 20.10.2024 08:27 [14:39:22]1206 (1) - 0 [14:39:22]OFD Sender: Remove packet 73847 [14:39:22]ProducePacketName [14:39:22]name=ofd_packets/00073847 [14:39:22]NVStorageDeleteData [14:39:22]Write to MH i2c: 01 00 00 EF 29 18 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 07 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 07 00 EF 29 00 00 00 00 00 CA 0C F5 [14:39:22]RasterBufferAndPrint [14:39:22]line [14:39:22]line [14:39:22]line [14:39:22]line [14:39:22]line [14:39:22]written 0, free lines is 3287 [14:39:22]MH_Cut [14:39:22]Write to MH i2c: D1 01 00 F6 29 01 F1 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: D1 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: D1 01 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: D1 01 00 F6 29 00 F0 [14:39:22]Write to MH i2c: 01 00 00 F7 29 20 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:23]OFD Sender: No OFD packet to send [14:39:23]*** Cut start [14:39:23]*** Partial cut [14:39:23]*** CUTSNS_PIN = 1 [14:39:23]*** CUTSNS_PIN = 0 [14:39:23]*** Brake cut motor [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]*** Stop cut motor [14:39:24]*** Cut end [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 FF 0F 35 [14:39:24]process_action close_receipt done [14:39:24]requested_data is exist [14:39:24]produce_requested_data [14:39:24]requested_item fm.sn is exist - process it [14:39:24]wFMCommunicate request_size=4 [14:39:24]MH_SAM_APDU [14:39:24]CAPDU: 80 11 00 00 [14:39:24]Write to MH i2c: E2 08 00 F8 29 80 11 00 00 00 00 00 00 9B [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:24]Read from MH i2c: E2 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 17 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 17 00 F8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E8 [14:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:39:24]wFMCommunicate OK [14:39:24]requested_item fd.num is exist - process it [14:39:24]SAM_PROTO_GetFieldsCounters [14:39:24]wFMCommunicate request_size=4 [14:39:24]MH_SAM_APDU [14:39:24]CAPDU: 80 13 00 00 [14:39:24]Write to MH i2c: E2 08 00 F9 29 80 13 00 00 00 00 00 00 9E [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:24]Read from MH i2c: E2 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 62 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 62 00 F9 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 77 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [14:39:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 77 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:24]wFMCommunicate OK [14:39:24]SAM_PROTO_GetFieldsCounters done [14:39:24]requested_item shift.num is exist - process it [14:39:24]requested_item shift.opened is exist - process it [14:39:24]req_shift_opened [14:39:24]FM_GetShiftState [14:39:24]SAM_PROTO_GetShiftState [14:39:24]wFMCommunicate request_size=4 [14:39:24]MH_SAM_APDU [14:39:24]CAPDU: 80 13 01 00 [14:39:24]Write to MH i2c: E2 08 00 FA 29 80 13 01 00 00 00 00 00 A0 [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:24]Read from MH i2c: E2 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 0E 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 0E 00 FA 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E5 [14:39:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:39:24]wFMCommunicate OK [14:39:24]SAM_PROTO_GetShiftState done [14:39:24]FM_GetShiftState done [14:39:24]req_shift_opened done [14:39:24]requested_item shift.open_date is exist - process it [14:39:24]req_shift_open_date [14:39:24]req_shift_open_date done [14:39:24]produce_requested_data done [14:39:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73847,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:39:24]process_action_free close_receipt [14:39:24]json_value_free [14:39:24]json_value_free done [14:39:24]process_json_proto returns [14:39:24]Send response to host [14:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73847,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:39:24]free response buf [14:39:24]execute_script done [14:39:24]execute_script returns [14:39:24]free content buf [14:39:24]Sock 8.Close socket [14:39:24]Sock 8.Thread stoped [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:43]accept exits with 9 [14:39:43]New connection [14:39:43]New thread 3067575652 created [14:39:43]Thread 3067432292 joined [14:39:43]Waiting for new connection... [14:39:43] Sock 9.Parse request [14:39:43]Sock 9.Check first char [14:39:43]Sock 9.First char is OK [14:39:43]request: POST /json_proto HTTP/1.0 [14:39:43]Method: POST [14:39:43]URL: /json_proto [14:39:43]Method is POST - this is cgi request [14:39:43]url: /json_proto [14:39:43]query_string will be loaded in cgi processing [14:39:43]execute_cgi json_proto POST (null) [14:39:43]execute_cgi path=json_proto method=POST [14:39:43]POST find Content-Length [14:39:43]Host: 172.17.44.196:8080 [14:39:43]Content-Length: 801 [14:39:43]Content-Type: application/json [14:39:43] [14:39:43]POST finish read [14:39:43]Found Content-Length = 801 [14:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220508", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:43]execute_script... [14:39: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 : (1)1963056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220508", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:43]POST & json_proto [14:39:43]process_json_proto [14:39:43]json parsed OK: [14:39:43]protocol is kg_v1.0 [14:39:43]action value=close_receipt [14:39:43]process_action close_receipt [14:39:43]cmd_close_receipt [14:39:43]MH_GetDate [14:39:43]Write to MH i2c: F0 00 00 FB 29 13 [14:39:43]Write i2c OK [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: F0 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: F0 09 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: F0 09 00 FB 29 00 31 16 15 67 E7 19 F8 65 3C [14:39:43]GetLastDocTimeStamp 1729435162 [14:39:43]current date 1729435185 [14:39:43]FM_GetShiftState [14:39:43]SAM_PROTO_GetShiftState [14:39:43]wFMCommunicate request_size=4 [14:39:43]MH_SAM_APDU [14:39:43]CAPDU: 80 13 01 00 [14:39:43]Write to MH i2c: E2 08 00 FC 29 80 13 01 00 00 00 00 00 A2 [14:39:43]Write i2c OK [14:39:43]MH_I2C_Read... [14:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:43]Read from MH i2c: E2 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 0E 00 [14:39:43]MH_I2C_Read... [14:39:43]Read from MH i2c: E2 0E 00 FC 29 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E7 [14:39:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:39:43]wFMCommunicate OK [14:39:43]SAM_PROTO_GetShiftState done [14:39:43]FM_GetShiftState done [14:39:43]opened in 1729384303 [14:39:43]opened+sec_in_day 1729470703 [14:39:43]quantity*price = 0 [14:39:43]sum+1 = 1 [14:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 174 20.10.2024 14:39 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливные Талоны 4220508 ФМ: 0000000000963323 ФД: 73848 ФПД: 150105161050183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143945&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73848&fm=150105161050183&tin=02508201610067®Number=0000000000161154&sum=0 [14:39:44]StoreToDocumentArchive [14:39:44]shift 170 fd 73848 [14:39:44]save to /storage/0170/doc_00073848 [14:39:44]save last doc name /storage/0170/doc_00073848 to /storage/kkm_last_doc_name [14:39:44]save OK [14:39:44]Clear old archive folders... [14:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:44]tlvbuf is 003A02E0 [14:39:44]SAM_PROTO_ClearQueue [14:39:44]wFMCommunicate request_size=4 [14:39:44]MH_SAM_APDU [14:39:44]CAPDU: 80 09 00 00 [14:39:44]Write to MH i2c: E2 08 00 09 2A 80 09 00 00 00 00 00 00 A5 [14:39:44]Write i2c OK [14:39:44]MH_I2C_Read... [14:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:44]Read from MH i2c: E2 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 03 00 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 03 00 09 2A 00 90 00 A7 [14:39:44]RAPDU: 90 00 [14:39:44]wFMCommunicate OK [14:39:44]SAM_PROTO_ClearQueue done [14:39:44]KKMCreateOFDPacket [14:39:44]OFDProtocolAddRootSTLVToBuf [14:39:44]FM_MakeSignedData [14:39:44]FM_MakeSignedData [14:39:44]SAM_PROTO_SignData [14:39:44]wFMCommunicate request_size=4 [14:39:44]MH_SAM_APDU [14:39:44]CAPDU: 80 0D 01 02 [14:39:44]Write to MH i2c: E2 08 00 0A 2A 80 0D 01 02 00 00 00 00 AD [14:39:44]Write i2c OK [14:39:44]MH_I2C_Read... [14:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:44]Read from MH i2c: E2 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 03 00 [14:39:44]MH_I2C_Read... [14:39:44]Read from MH i2c: E2 03 00 0A 2A 00 90 00 A8 [14:39:44]RAPDU: 90 00 [14:39:44]wFMCommunicate OK [14:39:44]wFMCommunicate request_size=255 [14:39:44]MH_SAM_APDU [14:39:44]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 AE 00 00 00 F4 03 04 00 31 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 20 01 00 35 04 06 00 88 [14:39:44]Write to MH i2c: E2 02 01 0B 2A 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 AE 00 00 00 F4 03 04 00 31 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 20 01 00 35 04 06 00 88 00 00 1D [14:39:44]Write i2c OK [14:39:44]MH_I2C_Read... [14:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:45]Read from MH i2c: E2 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 03 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 03 00 0B 2A 00 90 00 A9 [14:39:45]RAPDU: 90 00 [14:39:45]wFMCommunicate OK [14:39:45]wFMCommunicate request_size=10 [14:39:45]MH_SAM_APDU [14:39:45]CAPDU: 80 0D 02 02 05 85 14 CD A8 47 [14:39:45]Write to MH i2c: E2 0D 00 0C 2A 80 0D 02 02 05 00 85 14 CD A8 47 00 00 0F [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:45]Read from MH i2c: E2 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 03 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 03 00 0C 2A 00 90 00 AA [14:39:45]RAPDU: 90 00 [14:39:45]wFMCommunicate OK [14:39:45]wFMCommunicate request_size=4 [14:39:45]MH_SAM_APDU [14:39:45]CAPDU: 80 0D 03 02 [14:39:45]Write to MH i2c: E2 08 00 0D 2A 80 0D 03 02 00 00 00 00 B2 [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:45]Read from MH i2c: E2 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 0B 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 0B 00 0D 2A 00 89 6A 70 E6 16 15 08 F8 90 00 27 [14:39:45]RAPDU: 89 6A 70 E6 16 15 08 F8 90 00 [14:39:45]wFMCommunicate OK [14:39:45]SAM_PROTO_SignData done [14:39:45]FM_MakeSignedData done [14:39:45]CreateOFDProtocolMessage [14:39:45]wFMCommunicate request_size=4 [14:39:45]MH_SAM_APDU [14:39:45]CAPDU: 80 11 00 00 [14:39:45]Write to MH i2c: E2 08 00 0E 2A 80 11 00 00 00 00 00 00 B2 [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:45]Read from MH i2c: E2 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 17 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 17 00 0E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FF [14:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:39:45]wFMCommunicate OK [14:39:45]CreateOFDProtocolMessage done [14:39:45]OFDSenderStorePacket 73848 [14:39:45]StoreOFDPacket docnum=73848 [14:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 19 53 07 01 AC 70 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 AE 00 00 00 F4 03 04 00 31 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 20 01 00 35 04 06 00 88 85 14 CD A8 47 89 6A 70 E6 16 15 08 F8 [14:39:45]CheckFolder [14:39:45]dirname=/storage/ofd_packets [14:39:45]CheckFolder done [14:39:45]ProducePacketName [14:39:45]name=ofd_packets/00073848 [14:39:45]NVStorageSaveData ofd_packets/00073848 [14:39:45]File name is /storage/ofd_packets/00073848 [14:39:45]Write 301 bytes [14:39:45]NVStorageSaveData done [14:39:45]OFDSenderStorePacket done [14:39:45]KKMCreateOFDPacket done [14:39:45]NVStorageSaveData kkm_last_timestamp [14:39:45]File name is /storage/kkm_last_timestamp [14:39:45]Write 4 bytes [14:39:45]NVStorageSaveData done [14:39:45]ExternCall_PrintAddStr [14:39:45]wPrintStart [14:39:45]Write to MH i2c: 01 00 00 0F 2A 39 [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: 01 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: 01 07 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: 01 07 00 0F 2A 00 00 00 00 00 FF 0F 4E [14:39:45]RasterBufferAndPrint [14:39:45]line Счет N : (1)1963056 [14:39:45]line ИНН: 02508201610067 [14:39:45]line Контрольно-Кассовый Чек [14:39:45]line ПРОДАЖА [14:39:45]line ТРК (МРК, ГНК) : 63 [14:39:45]line Товар: 2710124130 [14:39:45]line Аи-92-К-5 [14:39:45]line 10.000 * 0.00 [14:39:45]line = 0.00 [14:39:45]line НДС 12% НСП 1% [14:39:45]line > о реализуемом товаре [14:39:45]line ИТОГО: 0.00 [14:39:45]line НСП 1% : 0.00 [14:39:45]line НДС 12% : 0.00 [14:39:45]line Наличными: 0.00 [14:39:45]line Безнал.: 0.00 [14:39:45]line Место: АЗС № 133 "Партнер Нефть" [14:39:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:39:45]line СНО: Общий режим [14:39:45]line Чек 174 20.10.2024 14:39 [14:39:45]line Смена: 170 ФФД: 1.0 [14:39:45]line ЗНМ: 0300000020 [14:39:45]line РНМ: 0000000000161154 [14:39:45]line Версия ККМ: v1.0 [14:39:45]line Талоны: Топливные Талоны [14:39:45]line 4220508 [14:39:45]line ФМ: 0000000000963323 [14:39:45]line ФД: 73848 [14:39:45]line ФПД: 150105161050183 [14:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143945&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73848&fm=150105161050183&tin=02508201610067®Number=0000000000161154&sum=0 [14:39:45]written 0, free lines is 4095 [14:39:45]OFD Sender: Processing packet 73848 [packets to send 15, broken 14] [14:39:45]ProducePacketName [14:39:45]name=ofd_packets/00073848 [14:39:45]OFD Sender: To server: pG, [14:39:45]CommunicateWithHost lk.salyk.kg:30040 [14:39:45]ConnectInit lk.salyk.kg [14:39:45]Connected sock=10 [14:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 19 53 07 01 AC 70 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 AE 00 00 00 F4 03 04 00 31 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 20 01 00 35 04 06 00 88 85 14 CD A8 47 89 6A 70 E6 16 15 08 F8 [14:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8C 48 47 00 1B 65 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 39 36 33 33 32 33 10 04 04 00 78 20 01 00 F4 03 04 00 15 BF 14 67 B6 04 01 00 00 1A E0 56 FA A0 B1 10 B3 [14:39:45]CommunicateWithHost err = 0 [14:39:45]CheckOFDResponse [14:39:45]1017 (14) - 77093643461234 [14:39:45]1041 (16) - 0000000000963323 [14:39:45]1040 (4) - 73848 [14:39:45]1012 (4) - 20.10.2024 08:28 [14:39:45]1206 (1) - 0 [14:39:45]OFD Sender: Remove packet 73848 [14:39:45]ProducePacketName [14:39:45]name=ofd_packets/00073848 [14:39:45]NVStorageDeleteData [14:39:45]Write to MH i2c: 01 00 00 38 2A 62 [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: 01 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: 01 07 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: 01 07 00 38 2A 00 00 00 00 00 D3 0C 48 [14:39:45]RasterBufferAndPrint [14:39:45]line [14:39:45]line [14:39:45]line [14:39:45]line [14:39:45]line [14:39:45]written 0, free lines is 3291 [14:39:45]MH_Cut [14:39:45]Write to MH i2c: D1 01 00 3F 2A 01 3B [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: D1 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: D1 01 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: D1 01 00 3F 2A 00 3A [14:39:45]Write to MH i2c: 01 00 00 40 2A 6A [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:46]OFD Sender: No OFD packet to send [14:39:46]*** Cut start [14:39:46]*** Partial cut [14:39:46]*** CUTSNS_PIN = 1 [14:39:46]*** CUTSNS_PIN = 0 [14:39:46]*** Brake cut motor [14:39:47]Read from MH i2c: 01 [14:39:47]MH_I2C_Read... [14:39:47]*** Stop cut motor [14:39:47]*** Cut end [14:39:47]Read from MH i2c: 01 07 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [14:39:47]process_action close_receipt done [14:39:47]requested_data is exist [14:39:47]produce_requested_data [14:39:47]requested_item fm.sn is exist - process it [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 11 00 00 [14:39:47]Write to MH i2c: E2 08 00 41 2A 80 11 00 00 00 00 00 00 E5 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 17 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 17 00 41 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 32 [14:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:39:47]wFMCommunicate OK [14:39:47]requested_item fd.num is exist - process it [14:39:47]SAM_PROTO_GetFieldsCounters [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 13 00 00 [14:39:47]Write to MH i2c: E2 08 00 42 2A 80 13 00 00 00 00 00 00 E8 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 62 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 62 00 42 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 78 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 78 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_GetFieldsCounters done [14:39:47]requested_item shift.num is exist - process it [14:39:47]requested_item shift.opened is exist - process it [14:39:47]req_shift_opened [14:39:47]FM_GetShiftState [14:39:47]SAM_PROTO_GetShiftState [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 13 01 00 [14:39:47]Write to MH i2c: E2 08 00 43 2A 80 13 01 00 00 00 00 00 EA [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0E 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0E 00 43 2A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2F [14:39:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_GetShiftState done [14:39:47]FM_GetShiftState done [14:39:47]req_shift_opened done [14:39:47]requested_item shift.open_date is exist - process it [14:39:47]req_shift_open_date [14:39:47]req_shift_open_date done [14:39:47]produce_requested_data done [14:39:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73848,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:39:47]process_action_free close_receipt [14:39:47]json_value_free [14:39:47]json_value_free done [14:39:47]process_json_proto returns [14:39:47]Send response to host [14:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73848,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:39:47]free response buf [14:39:47]execute_script done [14:39:47]execute_script returns [14:39:47]free content buf [14:39:47]Sock 9.Close socket [14:39:47]Sock 9.Thread stoped [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:25]accept exits with 8 [14:41:25]New connection [14:41:25]New thread 3067432292 created [14:41:25]Thread 3067575652 joined [14:41:25]Waiting for new connection... [14:41:25] Sock 8.Parse request [14:41:25]Sock 8.Check first char [14:41:25]Sock 8.First char is OK [14:41:25]request: POST /json_proto HTTP/1.0 [14:41:25]Method: POST [14:41:25]URL: /json_proto [14:41:25]Method is POST - this is cgi request [14:41:25]url: /json_proto [14:41:25]query_string will be loaded in cgi processing [14:41:25]execute_cgi json_proto POST (null) [14:41:25]execute_cgi path=json_proto method=POST [14:41:25]POST find Content-Length [14:41:25]Host: 172.17.44.196:8080 [14:41:25]Content-Length: 678 [14:41:25]Content-Type: application/json [14:41:25] [14:41:25]POST finish read [14:41:25]Found Content-Length = 678 [14:41:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963058", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:41:25]execute_script... [14:41: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 : (1)1963058", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:41:25]POST & json_proto [14:41:25]process_json_proto [14:41:25]json parsed OK: [14:41:25]protocol is kg_v1.0 [14:41:25]action value=close_receipt [14:41:25]process_action close_receipt [14:41:25]cmd_close_receipt [14:41:25]MH_GetDate [14:41:25]Write to MH i2c: F0 00 00 44 2A 5D [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: F0 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: F0 09 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: F0 09 00 44 2A 00 97 16 15 67 E7 19 F8 65 EC [14:41:25]GetLastDocTimeStamp 1729435185 [14:41:25]current date 1729435287 [14:41:25]FM_GetShiftState [14:41:25]SAM_PROTO_GetShiftState [14:41:25]wFMCommunicate request_size=4 [14:41:25]MH_SAM_APDU [14:41:25]CAPDU: 80 13 01 00 [14:41:25]Write to MH i2c: E2 08 00 45 2A 80 13 01 00 00 00 00 00 EC [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:25]Read from MH i2c: E2 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 0E 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 0E 00 45 2A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 31 [14:41:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:41:25]wFMCommunicate OK [14:41:25]SAM_PROTO_GetShiftState done [14:41:25]FM_GetShiftState done [14:41:25]opened in 1729384303 [14:41:25]opened+sec_in_day 1729470703 [14:41:25]quantity*price = 50041 [14:41:25]sum+1 = 50042 [14:41:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 175 20.10.2024 14:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73849 ФПД: 261785811302184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144127&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73849&fm=261785811302184&tin=02508201610067®Number=0000000000161154&sum=50000 [14:41:26]StoreToDocumentArchive [14:41:26]shift 170 fd 73849 [14:41:26]save to /storage/0170/doc_00073849 [14:41:26]save last doc name /storage/0170/doc_00073849 to /storage/kkm_last_doc_name [14:41:26]save OK [14:41:26]Clear old archive folders... [14:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:26]tlvbuf is 003DA910 [14:41:26]SAM_PROTO_ClearQueue [14:41:26]wFMCommunicate request_size=4 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 09 00 00 [14:41:26]Write to MH i2c: E2 08 00 52 2A 80 09 00 00 00 00 00 00 EE [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 52 2A 00 90 00 F0 [14:41:26]RAPDU: 90 00 [14:41:26]wFMCommunicate OK [14:41:26]SAM_PROTO_ClearQueue done [14:41:26]KKMCreateOFDPacket [14:41:26]OFDProtocolAddRootSTLVToBuf [14:41:26]FM_MakeSignedData [14:41:26]FM_MakeSignedData [14:41:26]SAM_PROTO_SignData [14:41:26]wFMCommunicate request_size=4 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 0D 01 02 [14:41:26]Write to MH i2c: E2 08 00 53 2A 80 0D 01 02 00 00 00 00 F6 [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 53 2A 00 90 00 F1 [14:41:26]RAPDU: 90 00 [14:41:26]wFMCommunicate OK [14:41:26]wFMCommunicate request_size=255 [14:41:26]MH_SAM_APDU [14:41:26]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AF 00 00 00 F4 03 04 00 97 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 20 01 00 35 04 06 00 EE [14:41:26]Write to MH i2c: E2 02 01 54 2A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AF 00 00 00 F4 03 04 00 97 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 20 01 00 35 04 06 00 EE 00 00 82 [14:41:26]OFD Sender: No OFD packet to send [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 54 2A 00 90 00 F2 [14:41:26]RAPDU: 90 00 [14:41:26]wFMCommunicate OK [14:41:26]wFMCommunicate request_size=10 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 0D 02 02 05 17 C2 4A 37 28 [14:41:26]Write to MH i2c: E2 0D 00 55 2A 80 0D 02 02 05 00 17 C2 4A 37 28 00 00 85 [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 03 00 55 2A 00 90 00 F3 [14:41:26]RAPDU: 90 00 [14:41:26]wFMCommunicate OK [14:41:26]wFMCommunicate request_size=4 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 0D 03 02 [14:41:26]Write to MH i2c: E2 08 00 56 2A 80 0D 03 02 00 00 00 00 FB [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 0B 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 0B 00 56 2A 00 58 A6 0C 5D F5 00 7A D5 90 00 A7 [14:41:26]RAPDU: 58 A6 0C 5D F5 00 7A D5 90 00 [14:41:26]wFMCommunicate OK [14:41:26]SAM_PROTO_SignData done [14:41:26]FM_MakeSignedData done [14:41:26]CreateOFDProtocolMessage [14:41:26]wFMCommunicate request_size=4 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 11 00 00 [14:41:26]Write to MH i2c: E2 08 00 57 2A 80 11 00 00 00 00 00 00 FB [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 17 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 17 00 57 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 48 [14:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:41:26]wFMCommunicate OK [14:41:26]CreateOFDProtocolMessage done [14:41:26]OFDSenderStorePacket 73849 [14:41:26]StoreOFDPacket docnum=73849 [14:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D4 CB 07 01 C3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AF 00 00 00 F4 03 04 00 97 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 20 01 00 35 04 06 00 EE 17 C2 4A 37 28 58 A6 0C 5D F5 00 7A D5 [14:41:26]CheckFolder [14:41:26]dirname=/storage/ofd_packets [14:41:26]CheckFolder done [14:41:26]ProducePacketName [14:41:26]name=ofd_packets/00073849 [14:41:26]NVStorageSaveData ofd_packets/00073849 [14:41:26]File name is /storage/ofd_packets/00073849 [14:41:26]Write 301 bytes [14:41:26]NVStorageSaveData done [14:41:26]OFDSenderStorePacket done [14:41:26]KKMCreateOFDPacket done [14:41:26]NVStorageSaveData kkm_last_timestamp [14:41:26]File name is /storage/kkm_last_timestamp [14:41:26]Write 4 bytes [14:41:26]NVStorageSaveData done [14:41:26]ExternCall_PrintAddStr [14:41:26]wPrintStart [14:41:26]Write to MH i2c: 01 00 00 58 2A 82 [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: 01 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: 01 07 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: 01 07 00 58 2A 00 00 00 00 00 FF 0F 97 [14:41:26]RasterBufferAndPrint [14:41:26]line Счет N : (1)1963058 [14:41:26]line ИНН: 02508201610067 [14:41:26]line Контрольно-Кассовый Чек [14:41:26]line ПРОДАЖА [14:41:26]line ТРК (МРК, ГНК) : 33 [14:41:26]line Товар: 2710124130 [14:41:26]line Аи-92-К-5 [14:41:26]line 7.480 * 66.90 [14:41:26]line = 500.41 [14:41:26]line НДС 12% НСП 1% [14:41:26]line > о реализуемом товаре [14:41:26]line ОКРУГЛЕНИЕ: -0.41 [14:41:26]line ИТОГО: 500.00 [14:41:26]line Внесено: 500.00 [14:41:26]line СДАЧА: 0.00 [14:41:26]line НСП 1% : 4.43 [14:41:26]line НДС 12% : 53.14 [14:41:26]line Наличными: 500.00 [14:41:26]line Безнал.: 0.00 [14:41:26]line Место: АЗС № 133 "Партнер Нефть" [14:41:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:41:26]line СНО: Общий режим [14:41:26]line Чек 175 20.10.2024 14:41 [14:41:26]line Смена: 170 ФФД: 1.0 [14:41:26]line ЗНМ: 0300000020 [14:41:26]line РНМ: 0000000000161154 [14:41:26]line Версия ККМ: v1.0 [14:41:26]line ФМ: 0000000000963323 [14:41:26]line ФД: 73849 [14:41:26]line ФПД: 261785811302184 [14:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144127&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73849&fm=261785811302184&tin=02508201610067®Number=0000000000161154&sum=50000 [14:41:27]OFD Sender: Processing packet 73849 [packets to send 15, broken 14] [14:41:27]ProducePacketName [14:41:27]name=ofd_packets/00073849 [14:41:27]OFD Sender: To server: pG, [14:41:27]CommunicateWithHost lk.salyk.kg:30040 [14:41:27]ConnectInit lk.salyk.kg [14:41:27]written 0, free lines is 4095 [14:41:27]Connected sock=11 [14:41:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D4 CB 07 01 C3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 AF 00 00 00 F4 03 04 00 97 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 20 01 00 35 04 06 00 EE 17 C2 4A 37 28 58 A6 0C 5D F5 00 7A D5 [14:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A1 A9 47 00 C8 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 39 36 33 33 32 33 10 04 04 00 79 20 01 00 F4 03 04 00 7B BF 14 67 B6 04 01 00 00 3B 87 09 BA 58 04 F9 BF [14:41:27]CommunicateWithHost err = 0 [14:41:27]CheckOFDResponse [14:41:27]1017 (14) - 77093643461234 [14:41:27]1041 (16) - 0000000000963323 [14:41:27]1040 (4) - 73849 [14:41:27]1012 (4) - 20.10.2024 08:29 [14:41:27]1206 (1) - 0 [14:41:27]OFD Sender: Remove packet 73849 [14:41:27]ProducePacketName [14:41:27]name=ofd_packets/00073849 [14:41:27]NVStorageDeleteData [14:41:27]Write to MH i2c: 01 00 00 82 2A AC [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 82 2A 00 00 00 00 00 BD 0C 7C [14:41:27]RasterBufferAndPrint [14:41:27]line [14:41:27]line [14:41:27]line [14:41:27]line [14:41:27]line [14:41:27]written 0, free lines is 3265 [14:41:27]MH_Cut [14:41:27]Write to MH i2c: D1 01 00 89 2A 01 85 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: D1 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: D1 01 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: D1 01 00 89 2A 00 84 [14:41:27]Write to MH i2c: 01 00 00 8A 2A B4 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]OFD Sender: No OFD packet to send [14:41:28]*** Cut start [14:41:28]*** Partial cut [14:41:28]*** CUTSNS_PIN = 1 [14:41:28]*** CUTSNS_PIN = 0 [14:41:28]*** Brake cut motor [14:41:28]Read from MH i2c: 01 [14:41:28]MH_I2C_Read... [14:41:28]*** Stop cut motor [14:41:28]*** Cut end [14:41:28]Read from MH i2c: 01 07 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 8A 2A 00 00 00 00 00 FF 0F C9 [14:41:28]process_action close_receipt done [14:41:28]requested_data is exist [14:41:28]produce_requested_data [14:41:28]requested_item fm.sn is exist - process it [14:41:28]wFMCommunicate request_size=4 [14:41:28]MH_SAM_APDU [14:41:28]CAPDU: 80 11 00 00 [14:41:28]Write to MH i2c: E2 08 00 8B 2A 80 11 00 00 00 00 00 00 2F [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 17 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 17 00 8B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7C [14:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:41:29]wFMCommunicate OK [14:41:29]requested_item fd.num is exist - process it [14:41:29]SAM_PROTO_GetFieldsCounters [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 13 00 00 [14:41:29]Write to MH i2c: E2 08 00 8C 2A 80 13 00 00 00 00 00 00 32 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 62 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 62 00 8C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 79 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [14:41:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 79 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:29]wFMCommunicate OK [14:41:29]SAM_PROTO_GetFieldsCounters done [14:41:29]requested_item shift.num is exist - process it [14:41:29]requested_item shift.opened is exist - process it [14:41:29]req_shift_opened [14:41:29]FM_GetShiftState [14:41:29]SAM_PROTO_GetShiftState [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 13 01 00 [14:41:29]Write to MH i2c: E2 08 00 8D 2A 80 13 01 00 00 00 00 00 34 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 0E 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 0E 00 8D 2A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 79 [14:41:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:41:29]wFMCommunicate OK [14:41:29]SAM_PROTO_GetShiftState done [14:41:29]FM_GetShiftState done [14:41:29]req_shift_opened done [14:41:29]requested_item shift.open_date is exist - process it [14:41:29]req_shift_open_date [14:41:29]req_shift_open_date done [14:41:29]produce_requested_data done [14:41:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73849,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:41:29]process_action_free close_receipt [14:41:29]json_value_free [14:41:29]json_value_free done [14:41:29]process_json_proto returns [14:41:29]Send response to host [14:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73849,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:41:29]free response buf [14:41:29]execute_script done [14:41:29]execute_script returns [14:41:29]free content buf [14:41:29]Sock 8.Close socket [14:41:29]Sock 8.Thread stoped [14:41:29]accept exits with 9 [14:41:29]New connection [14:41:29]New thread 3067575652 created [14:41:29]Thread 3067432292 joined [14:41:29]Waiting for new connection... [14:41:29] Sock 9.Parse request [14:41:29]Sock 9.Check first char [14:41:29]Sock 9.First char is OK [14:41:29]request: POST /json_proto HTTP/1.0 [14:41:29]Method: POST [14:41:29]URL: /json_proto [14:41:29]Method is POST - this is cgi request [14:41:29]url: /json_proto [14:41:29]query_string will be loaded in cgi processing [14:41:29]execute_cgi json_proto POST (null) [14:41:29]execute_cgi path=json_proto method=POST [14:41:29]POST find Content-Length [14:41:29]Host: 172.17.44.196:8080 [14:41:29]Content-Length: 659 [14:41:29]Content-Type: application/json [14:41:29] [14:41:29]POST finish read [14:41:29]Found Content-Length = 659 [14:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:29]execute_script... [14:41: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 : (1)1963059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:29]POST & json_proto [14:41:29]process_json_proto [14:41:29]json parsed OK: [14:41:29]protocol is kg_v1.0 [14:41:29]action value=close_receipt [14:41:29]process_action close_receipt [14:41:29]cmd_close_receipt [14:41:29]MH_GetDate [14:41:29]Write to MH i2c: F0 00 00 8E 2A A7 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: F0 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: F0 09 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: F0 09 00 8E 2A 00 9B 16 15 67 E7 19 F8 65 3A [14:41:29]GetLastDocTimeStamp 1729435287 [14:41:29]current date 1729435291 [14:41:29]FM_GetShiftState [14:41:29]SAM_PROTO_GetShiftState [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 13 01 00 [14:41:29]Write to MH i2c: E2 08 00 8F 2A 80 13 01 00 00 00 00 00 36 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:29]Read from MH i2c: E2 0E 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 0E 00 8F 2A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7B [14:41:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:41:29]wFMCommunicate OK [14:41:29]SAM_PROTO_GetShiftState done [14:41:29]FM_GetShiftState done [14:41:29]opened in 1729384303 [14:41:29]opened+sec_in_day 1729470703 [14:41:29]quantity*price = 60055 [14:41:29]sum+1 = 60056 [14:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 176 20.10.2024 14:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73850 ФПД: 17540553657181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144131&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73850&fm=17540553657181&tin=02508201610067®Number=0000000000161154&sum=60000 [14:41:31]StoreToDocumentArchive [14:41:31]shift 170 fd 73850 [14:41:31]save to /storage/0170/doc_00073850 [14:41:31]save last doc name /storage/0170/doc_00073850 to /storage/kkm_last_doc_name [14:41:31]save OK [14:41:31]Clear old archive folders... [14:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:41:31]tlvbuf is 003E1D10 [14:41:31]SAM_PROTO_ClearQueue [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 09 00 00 [14:41:31]Write to MH i2c: E2 08 00 9C 2A 80 09 00 00 00 00 00 00 38 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 9C 2A 00 90 00 3A [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]SAM_PROTO_ClearQueue done [14:41:31]KKMCreateOFDPacket [14:41:31]OFDProtocolAddRootSTLVToBuf [14:41:31]FM_MakeSignedData [14:41:31]FM_MakeSignedData [14:41:31]SAM_PROTO_SignData [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 01 02 [14:41:31]Write to MH i2c: E2 08 00 9D 2A 80 0D 01 02 00 00 00 00 40 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 9D 2A 00 90 00 3B [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]wFMCommunicate request_size=253 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 9B 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 20 01 00 35 04 06 00 0F F3 FA 78 4B 5D [14:41:31]Write to MH i2c: E2 00 01 9E 2A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 9B 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 20 01 00 35 04 06 00 0F F3 FA 78 4B 5D 00 00 94 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 9E 2A 00 90 00 3C [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 03 02 [14:41:31]Write to MH i2c: E2 08 00 9F 2A 80 0D 03 02 00 00 00 00 44 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 0B 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 0B 00 9F 2A 00 74 78 53 7A F4 63 94 30 90 00 19 [14:41:31]RAPDU: 74 78 53 7A F4 63 94 30 90 00 [14:41:31]wFMCommunicate OK [14:41:31]SAM_PROTO_SignData done [14:41:31]FM_MakeSignedData done [14:41:31]CreateOFDProtocolMessage [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 11 00 00 [14:41:31]Write to MH i2c: E2 08 00 A0 2A 80 11 00 00 00 00 00 00 44 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 17 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 17 00 A0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [14:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:41:31]wFMCommunicate OK [14:41:31]CreateOFDProtocolMessage done [14:41:31]OFDSenderStorePacket 73850 [14:41:31]StoreOFDPacket docnum=73850 [14:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 85 C2 00 01 7B 2F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 9B 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 20 01 00 35 04 06 00 0F F3 FA 78 4B 5D 74 78 53 7A F4 63 94 30 [14:41:31]CheckFolder [14:41:31]dirname=/storage/ofd_packets [14:41:31]CheckFolder done [14:41:31]ProducePacketName [14:41:31]name=ofd_packets/00073850 [14:41:31]NVStorageSaveData ofd_packets/00073850 [14:41:31]File name is /storage/ofd_packets/00073850 [14:41:31]Write 294 bytes [14:41:31]NVStorageSaveData done [14:41:31]OFDSenderStorePacket done [14:41:31]KKMCreateOFDPacket done [14:41:31]NVStorageSaveData kkm_last_timestamp [14:41:31]File name is /storage/kkm_last_timestamp [14:41:31]Write 4 bytes [14:41:31]NVStorageSaveData done [14:41:31]ExternCall_PrintAddStr [14:41:31]wPrintStart [14:41:31]Write to MH i2c: 01 00 00 A1 2A CB [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 07 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 07 00 A1 2A 00 00 00 00 00 FF 0F E0 [14:41:31]RasterBufferAndPrint [14:41:31]line Счет N : (1)1963059 [14:41:31]line ИНН: 02508201610067 [14:41:31]line Контрольно-Кассовый Чек [14:41:31]line ПРОДАЖА [14:41:31]line ТРК (МРК, ГНК) : 52 [14:41:31]line Товар: 2710124130 [14:41:31]line SU-92 [14:41:31]line 8.780 * 68.40 [14:41:31]line = 600.55 [14:41:31]line НДС 12% НСП 1% [14:41:31]line > о реализуемом товаре [14:41:31]line ОКРУГЛЕНИЕ: -0.55 [14:41:31]line ИТОГО: 600.00 [14:41:31]line Внесено: 600.00 [14:41:31]line СДАЧА: 0.00 [14:41:31]line НСП 1% : 5.31 [14:41:31]line НДС 12% : 63.77 [14:41:31]line Наличными: 600.00 [14:41:31]line Безнал.: 0.00 [14:41:31]line Место: АЗС № 133 "Партнер Нефть" [14:41:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:41:31]line СНО: Общий режим [14:41:31]line Чек 176 20.10.2024 14:41 [14:41:31]line Смена: 170 ФФД: 1.0 [14:41:31]line ЗНМ: 0300000020 [14:41:31]line РНМ: 0000000000161154 [14:41:31]line Версия ККМ: v1.0 [14:41:31]line ФМ: 0000000000963323 [14:41:31]line ФД: 73850 [14:41:31]line ФПД: 17540553657181 [14:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144131&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73850&fm=17540553657181&tin=02508201610067®Number=0000000000161154&sum=60000 [14:41:31]OFD Sender: Processing packet 73850 [packets to send 15, broken 14] [14:41:31]ProducePacketName [14:41:31]name=ofd_packets/00073850 [14:41:31]OFD Sender: To server: pG, [14:41:31]CommunicateWithHost lk.salyk.kg:30040 [14:41:31]ConnectInit lk.salyk.kg [14:41:31]written 0, free lines is 4095 [14:41:31]Connected sock=10 [14:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 85 C2 00 01 7B 2F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 9B 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 20 01 00 35 04 06 00 0F F3 FA 78 4B 5D 74 78 53 7A F4 63 94 30 [14:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 33 02 47 00 19 27 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 39 36 33 33 32 33 10 04 04 00 7A 20 01 00 F4 03 04 00 80 BF 14 67 B6 04 01 00 00 BF F2 8E 36 BD 0D 52 4E [14:41:32]CommunicateWithHost err = 0 [14:41:32]CheckOFDResponse [14:41:32]1017 (14) - 77093643461234 [14:41:32]1041 (16) - 0000000000963323 [14:41:32]1040 (4) - 73850 [14:41:32]1012 (4) - 20.10.2024 08:29 [14:41:32]1206 (1) - 0 [14:41:32]OFD Sender: Remove packet 73850 [14:41:32]ProducePacketName [14:41:32]name=ofd_packets/00073850 [14:41:32]NVStorageDeleteData [14:41:32]Write to MH i2c: 01 00 00 CB 2A F5 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 07 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 07 00 CB 2A 00 00 00 00 00 C9 0C D1 [14:41:32]RasterBufferAndPrint [14:41:32]line [14:41:32]line [14:41:32]line [14:41:32]line [14:41:32]line [14:41:32]written 0, free lines is 3281 [14:41:32]MH_Cut [14:41:32]Write to MH i2c: D1 01 00 D2 2A 01 CE [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: D1 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: D1 01 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: D1 01 00 D2 2A 00 CD [14:41:32]Write to MH i2c: 01 00 00 D3 2A FD [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]OFD Sender: No OFD packet to send [14:41:33]*** Cut start [14:41:33]*** Partial cut [14:41:33]*** CUTSNS_PIN = 1 [14:41:33]*** CUTSNS_PIN = 0 [14:41:33]*** Brake cut motor [14:41:33]Read from MH i2c: 01 [14:41:33]MH_I2C_Read... [14:41:33]*** Stop cut motor [14:41:33]*** Cut end [14:41:33]Read from MH i2c: 01 07 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: 01 07 00 D3 2A 00 00 00 00 00 FF 0F 12 [14:41:33]process_action close_receipt done [14:41:33]requested_data is exist [14:41:33]produce_requested_data [14:41:33]requested_item fm.sn is exist - process it [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 11 00 00 [14:41:33]Write to MH i2c: E2 08 00 D4 2A 80 11 00 00 00 00 00 00 78 [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 17 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 17 00 D4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C5 [14:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:41:33]wFMCommunicate OK [14:41:33]requested_item fd.num is exist - process it [14:41:33]SAM_PROTO_GetFieldsCounters [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 13 00 00 [14:41:33]Write to MH i2c: E2 08 00 D5 2A 80 13 00 00 00 00 00 00 7B [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 62 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 62 00 D5 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:33]wFMCommunicate OK [14:41:33]SAM_PROTO_GetFieldsCounters done [14:41:33]requested_item shift.num is exist - process it [14:41:33]requested_item shift.opened is exist - process it [14:41:33]req_shift_opened [14:41:33]FM_GetShiftState [14:41:33]SAM_PROTO_GetShiftState [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 13 01 00 [14:41:33]Write to MH i2c: E2 08 00 D6 2A 80 13 01 00 00 00 00 00 7D [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0E 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0E 00 D6 2A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C2 [14:41:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:41:33]wFMCommunicate OK [14:41:33]SAM_PROTO_GetShiftState done [14:41:33]FM_GetShiftState done [14:41:33]req_shift_opened done [14:41:33]requested_item shift.open_date is exist - process it [14:41:33]req_shift_open_date [14:41:33]req_shift_open_date done [14:41:33]produce_requested_data done [14:41:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73850,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:41:33]process_action_free close_receipt [14:41:33]json_value_free [14:41:33]json_value_free done [14:41:33]process_json_proto returns [14:41:33]Send response to host [14:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73850,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:41:33]free response buf [14:41:33]execute_script done [14:41:33]execute_script returns [14:41:33]free content buf [14:41:33]Sock 9.Close socket [14:41:33]Sock 9.Thread stoped [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:50]accept exits with 8 [14:42:50]New connection [14:42:50]New thread 3067432292 created [14:42:50]Thread 3067575652 joined [14:42:50]Waiting for new connection... [14:42:50] Sock 8.Parse request [14:42:50]Sock 8.Check first char [14:42:50]Sock 8.First char is OK [14:42:50]request: POST /json_proto HTTP/1.0 [14:42:50]Method: POST [14:42:50]URL: /json_proto [14:42:50]Method is POST - this is cgi request [14:42:50]url: /json_proto [14:42:50]query_string will be loaded in cgi processing [14:42:50]execute_cgi json_proto POST (null) [14:42:50]execute_cgi path=json_proto method=POST [14:42:50]POST find Content-Length [14:42:50]Host: 172.17.44.196:8080 [14:42:50]Content-Length: 679 [14:42:50]Content-Type: application/json [14:42:50] [14:42:50]POST finish read [14:42:50]Found Content-Length = 679 [14:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:50]execute_script... [14:42: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 : (1)1963060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:50]POST & json_proto [14:42:50]process_json_proto [14:42:50]json parsed OK: [14:42:50]protocol is kg_v1.0 [14:42:50]action value=close_receipt [14:42:50]process_action close_receipt [14:42:50]cmd_close_receipt [14:42:50]MH_GetDate [14:42:50]Write to MH i2c: F0 00 00 D7 2A F0 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: F0 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: F0 09 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: F0 09 00 D7 2A 00 EC 16 15 67 E7 19 F8 65 D4 [14:42:50]GetLastDocTimeStamp 1729435291 [14:42:50]current date 1729435372 [14:42:50]FM_GetShiftState [14:42:50]SAM_PROTO_GetShiftState [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 13 01 00 [14:42:50]Write to MH i2c: E2 08 00 D8 2A 80 13 01 00 00 00 00 00 7F [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 0E 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 0E 00 D8 2A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C4 [14:42:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:42:50]wFMCommunicate OK [14:42:50]SAM_PROTO_GetShiftState done [14:42:50]FM_GetShiftState done [14:42:50]opened in 1729384303 [14:42:50]opened+sec_in_day 1729470703 [14:42:50]quantity*price = 75016 [14:42:50]sum+1 = 75017 [14:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 177 20.10.2024 14:42 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73851 ФПД: 86245359621921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73851&fm=86245359621921&tin=02508201610067®Number=0000000000161154&sum=75000 [14:42:51]StoreToDocumentArchive [14:42:51]shift 170 fd 73851 [14:42:51]save to /storage/0170/doc_00073851 [14:42:51]save last doc name /storage/0170/doc_00073851 to /storage/kkm_last_doc_name [14:42:51]save OK [14:42:51]Clear old archive folders... [14:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:51]tlvbuf is 0037DA40 [14:42:51]SAM_PROTO_ClearQueue [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 09 00 00 [14:42:51]Write to MH i2c: E2 08 00 E5 2A 80 09 00 00 00 00 00 00 81 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 E5 2A 00 90 00 83 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_ClearQueue done [14:42:51]KKMCreateOFDPacket [14:42:51]OFDProtocolAddRootSTLVToBuf [14:42:51]FM_MakeSignedData [14:42:51]FM_MakeSignedData [14:42:51]SAM_PROTO_SignData [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 01 02 [14:42:51]Write to MH i2c: E2 08 00 E6 2A 80 0D 01 02 00 00 00 00 89 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 E6 2A 00 90 00 84 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=255 [14:42:51]MH_SAM_APDU [14:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 20 01 00 35 04 06 00 4E [14:42:51]Write to MH i2c: E2 02 01 E7 2A 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 20 01 00 35 04 06 00 4E 00 00 49 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 E7 2A 00 90 00 85 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=10 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 02 02 05 70 90 06 17 21 [14:42:51]Write to MH i2c: E2 0D 00 E8 2A 80 0D 02 02 05 00 70 90 06 17 21 00 00 D4 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 E8 2A 00 90 00 86 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 03 02 [14:42:51]Write to MH i2c: E2 08 00 E9 2A 80 0D 03 02 00 00 00 00 8E [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0B 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0B 00 E9 2A 00 9E 26 D3 92 BD EB E7 37 90 00 7E [14:42:51]RAPDU: 9E 26 D3 92 BD EB E7 37 90 00 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_SignData done [14:42:51]FM_MakeSignedData done [14:42:51]CreateOFDProtocolMessage [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 11 00 00 [14:42:51]Write to MH i2c: E2 08 00 EA 2A 80 11 00 00 00 00 00 00 8E [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 EA 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [14:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:42:51]wFMCommunicate OK [14:42:51]CreateOFDProtocolMessage done [14:42:51]OFDSenderStorePacket 73851 [14:42:51]StoreOFDPacket docnum=73851 [14:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FE FF 07 01 E1 F3 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 20 01 00 35 04 06 00 4E 70 90 06 17 21 9E 26 D3 92 BD EB E7 37 [14:42:51]CheckFolder [14:42:51]dirname=/storage/ofd_packets [14:42:51]CheckFolder done [14:42:51]ProducePacketName [14:42:51]name=ofd_packets/00073851 [14:42:51]NVStorageSaveData ofd_packets/00073851 [14:42:51]File name is /storage/ofd_packets/00073851 [14:42:51]Write 301 bytes [14:42:51]NVStorageSaveData done [14:42:51]OFDSenderStorePacket done [14:42:51]KKMCreateOFDPacket done [14:42:51]NVStorageSaveData kkm_last_timestamp [14:42:51]File name is /storage/kkm_last_timestamp [14:42:51]Write 4 bytes [14:42:51]NVStorageSaveData done [14:42:51]ExternCall_PrintAddStr [14:42:51]wPrintStart [14:42:51]Write to MH i2c: 01 00 00 EB 2A 15 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 EB 2A 00 00 00 00 00 FF 0F 2A [14:42:51]RasterBufferAndPrint [14:42:51]line Счет N : (1)1963060 [14:42:51]line ИНН: 02508201610067 [14:42:51]line Контрольно-Кассовый Чек [14:42:51]line ПРОДАЖА [14:42:51]line ТРК (МРК, ГНК) : 44 [14:42:51]line Товар: 2710124500 [14:42:51]line Аи-95-К-5 [14:42:51]line 10.110 * 74.20 [14:42:51]line = 750.16 [14:42:51]line НДС 12% НСП 1% [14:42:51]line > о реализуемом товаре [14:42:51]line ОКРУГЛЕНИЕ: -0.16 [14:42:51]line ИТОГО: 750.00 [14:42:51]line Внесено: 750.00 [14:42:51]line СДАЧА: 0.00 [14:42:51]line НСП 1% : 6.64 [14:42:51]line НДС 12% : 79.66 [14:42:51]line Наличными: 750.00 [14:42:51]line Безнал.: 0.00 [14:42:51]line Место: АЗС № 133 "Партнер Нефть" [14:42:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:42:51]line СНО: Общий режим [14:42:51]line Чек 177 20.10.2024 14:42 [14:42:51]line Смена: 170 ФФД: 1.0 [14:42:51]line ЗНМ: 0300000020 [14:42:51]line РНМ: 0000000000161154 [14:42:51]line Версия ККМ: v1.0 [14:42:51]line ФМ: 0000000000963323 [14:42:51]line ФД: 73851 [14:42:52]line ФПД: 86245359621921 [14:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73851&fm=86245359621921&tin=02508201610067®Number=0000000000161154&sum=75000 [14:42:52]OFD Sender: Processing packet 73851 [packets to send 15, broken 14] [14:42:52]ProducePacketName [14:42:52]name=ofd_packets/00073851 [14:42:52]OFD Sender: To server: pG, [14:42:52]CommunicateWithHost lk.salyk.kg:30040 [14:42:52]ConnectInit lk.salyk.kg [14:42:52]written 0, free lines is 4095 [14:42:52]Connected sock=10 [14:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FE FF 07 01 E1 F3 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EC 16 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 20 01 00 35 04 06 00 4E 70 90 06 17 21 9E 26 D3 92 BD EB E7 37 [14:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 67 71 47 00 3B 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 39 36 33 33 32 33 10 04 04 00 7B 20 01 00 F4 03 04 00 D0 BF 14 67 B6 04 01 00 00 06 64 F4 3A 16 0E 49 87 [14:42:52]CommunicateWithHost err = 0 [14:42:52]CheckOFDResponse [14:42:52]1017 (14) - 77093643461234 [14:42:52]1041 (16) - 0000000000963323 [14:42:52]1040 (4) - 73851 [14:42:52]1012 (4) - 20.10.2024 08:31 [14:42:52]1206 (1) - 0 [14:42:52]OFD Sender: Remove packet 73851 [14:42:52]ProducePacketName [14:42:52]name=ofd_packets/00073851 [14:42:52]NVStorageDeleteData [14:42:52]Write to MH i2c: 01 00 00 15 2B 40 [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 07 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 07 00 15 2B 00 00 00 00 00 B0 0C 03 [14:42:52]RasterBufferAndPrint [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]written 0, free lines is 3253 [14:42:52]MH_Cut [14:42:52]Write to MH i2c: D1 01 00 1C 2B 01 19 [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 01 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 01 00 1C 2B 00 18 [14:42:52]Write to MH i2c: 01 00 00 1D 2B 48 [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]OFD Sender: No OFD packet to send [14:42:53]*** Cut start [14:42:53]*** Partial cut [14:42:53]*** CUTSNS_PIN = 1 [14:42:53]*** CUTSNS_PIN = 0 [14:42:53]*** Brake cut motor [14:42:53]Read from MH i2c: 01 [14:42:53]MH_I2C_Read... [14:42:54]*** Stop cut motor [14:42:54]*** Cut end [14:42:54]Read from MH i2c: 01 07 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: 01 07 00 1D 2B 00 00 00 00 00 FF 0F 5D [14:42:54]process_action close_receipt done [14:42:54]requested_data is exist [14:42:54]produce_requested_data [14:42:54]requested_item fm.sn is exist - process it [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 11 00 00 [14:42:54]Write to MH i2c: E2 08 00 1E 2B 80 11 00 00 00 00 00 00 C3 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:54]Read from MH i2c: E2 17 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 17 00 1E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 10 [14:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:42:54]wFMCommunicate OK [14:42:54]requested_item fd.num is exist - process it [14:42:54]SAM_PROTO_GetFieldsCounters [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 13 00 00 [14:42:54]Write to MH i2c: E2 08 00 1F 2B 80 13 00 00 00 00 00 00 C6 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 62 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 62 00 1F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [14:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:54]wFMCommunicate OK [14:42:54]SAM_PROTO_GetFieldsCounters done [14:42:54]requested_item shift.num is exist - process it [14:42:54]requested_item shift.opened is exist - process it [14:42:54]req_shift_opened [14:42:54]FM_GetShiftState [14:42:54]SAM_PROTO_GetShiftState [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 13 01 00 [14:42:54]Write to MH i2c: E2 08 00 20 2B 80 13 01 00 00 00 00 00 C8 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0E 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0E 00 20 2B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0D [14:42:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:42:54]wFMCommunicate OK [14:42:54]SAM_PROTO_GetShiftState done [14:42:54]FM_GetShiftState done [14:42:54]req_shift_opened done [14:42:54]requested_item shift.open_date is exist - process it [14:42:54]req_shift_open_date [14:42:54]req_shift_open_date done [14:42:54]produce_requested_data done [14:42:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73851,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:42:54]process_action_free close_receipt [14:42:54]json_value_free [14:42:54]json_value_free done [14:42:54]process_json_proto returns [14:42:54]Send response to host [14:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73851,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:42:54]free response buf [14:42:54]execute_script done [14:42:54]execute_script returns [14:42:54]free content buf [14:42:54]Sock 8.Close socket [14:42:54]Sock 8.Thread stoped [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]accept exits with 9 [14:43:27]New connection [14:43:27]New thread 3067575652 created [14:43:27]Thread 3067432292 joined [14:43:27]Waiting for new connection... [14:43:27] Sock 9.Parse request [14:43:27]Sock 9.Check first char [14:43:27]Sock 9.First char is OK [14:43:27]request: POST /json_proto HTTP/1.0 [14:43:27]Method: POST [14:43:27]URL: /json_proto [14:43:27]Method is POST - this is cgi request [14:43:27]url: /json_proto [14:43:27]query_string will be loaded in cgi processing [14:43:27]execute_cgi json_proto POST (null) [14:43:27]execute_cgi path=json_proto method=POST [14:43:27]POST find Content-Length [14:43:27]Host: 172.17.44.196:8080 [14:43:27]Content-Length: 922 [14:43:27]Content-Type: application/json [14:43:27] [14:43:27]POST finish read [14:43:27]Found Content-Length = 922 [14:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272800", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [14:43:27]execute_script... [14:43: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)272800", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [14:43:27]POST & json_proto [14:43:27]process_json_proto [14:43:27]json parsed OK: [14:43:27]protocol is kg_v1.0 [14:43:27]action value=close_receipt [14:43:27]process_action close_receipt [14:43:27]cmd_close_receipt [14:43:27]MH_GetDate [14:43:27]Write to MH i2c: F0 00 00 21 2B 3B [14:43:27]Write i2c OK [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: F0 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: F0 09 00 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: F0 09 00 21 2B 00 11 17 15 67 E7 19 F8 65 45 [14:43:27]GetLastDocTimeStamp 1729435372 [14:43:27]current date 1729435409 [14:43:27]FM_GetShiftState [14:43:27]SAM_PROTO_GetShiftState [14:43:27]wFMCommunicate request_size=4 [14:43:27]MH_SAM_APDU [14:43:27]CAPDU: 80 13 01 00 [14:43:27]Write to MH i2c: E2 08 00 22 2B 80 13 01 00 00 00 00 00 CA [14:43:27]Write i2c OK [14:43:27]MH_I2C_Read... [14:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:27]Read from MH i2c: E2 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: E2 0E 00 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: E2 0E 00 22 2B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0F [14:43:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:43:27]wFMCommunicate OK [14:43:27]SAM_PROTO_GetShiftState done [14:43:27]FM_GetShiftState done [14:43:27]opened in 1729384303 [14:43:27]opened+sec_in_day 1729470703 [14:43:27]quantity*price = 11000 [14:43:27]sum+1 = 11001 [14:43:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 178 20.10.2024 14:43 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73852 ФПД: 66521819791083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144330&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73852&fm=66521819791083&tin=02508201610067®Number=0000000000161154&sum=25000 0 [14:43:29]StoreToDocumentArchive [14:43:29]shift 170 fd 73852 [14:43:29]save to /storage/0170/doc_00073852 [14:43:29]save last doc name /storage/0170/doc_00073852 to /storage/kkm_last_doc_name [14:43:29]save OK [14:43:29]Clear old archive folders... [14:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=396 [14:43:29]tlvbuf is 0032A100 [14:43:29]SAM_PROTO_ClearQueue [14:43:29]wFMCommunicate request_size=4 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 09 00 00 [14:43:29]Write to MH i2c: E2 08 00 2F 2B 80 09 00 00 00 00 00 00 CC [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 2F 2B 00 90 00 CE [14:43:29]RAPDU: 90 00 [14:43:29]wFMCommunicate OK [14:43:29]SAM_PROTO_ClearQueue done [14:43:29]KKMCreateOFDPacket [14:43:29]OFDProtocolAddRootSTLVToBuf [14:43:29]FM_MakeSignedData [14:43:29]FM_MakeSignedData [14:43:29]SAM_PROTO_SignData [14:43:29]wFMCommunicate request_size=4 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 0D 01 02 [14:43:29]Write to MH i2c: E2 08 00 30 2B 80 0D 01 02 00 00 00 00 D4 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 30 2B 00 90 00 CF [14:43:29]RAPDU: 90 00 [14:43:29]wFMCommunicate OK [14:43:29]wFMCommunicate request_size=255 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 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 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 A8 61 00 00 00 00 EB 03 26 00 EF [14:43:29]Write to MH i2c: E2 02 01 31 2B 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 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 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 A8 61 00 00 00 00 EB 03 26 00 EF 00 00 D2 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 31 2B 00 90 00 D0 [14:43:29]RAPDU: 90 00 [14:43:29]wFMCommunicate OK [14:43:29]wFMCommunicate request_size=155 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 0D 02 02 96 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 5F 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 B2 00 00 00 F4 03 04 00 12 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 20 01 00 35 04 06 00 3C 80 51 70 3E EB [14:43:29]Write to MH i2c: E2 9E 00 32 2B 80 0D 02 02 96 00 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 5F 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 B2 00 00 00 F4 03 04 00 12 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 20 01 00 35 04 06 00 3C 80 51 70 3E EB 00 00 C3 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 32 2B 00 90 00 D1 [14:43:29]RAPDU: 90 00 [14:43:29]wFMCommunicate OK [14:43:29]wFMCommunicate request_size=4 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 0D 03 02 [14:43:29]Write to MH i2c: E2 08 00 33 2B 80 0D 03 02 00 00 00 00 D9 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 0B 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 0B 00 33 2B 00 79 10 4E D6 1C FF FB AC 90 00 49 [14:43:29]RAPDU: 79 10 4E D6 1C FF FB AC 90 00 [14:43:29]wFMCommunicate OK [14:43:29]SAM_PROTO_SignData done [14:43:29]FM_MakeSignedData done [14:43:29]CreateOFDProtocolMessage [14:43:29]wFMCommunicate request_size=4 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 11 00 00 [14:43:29]Write to MH i2c: E2 08 00 34 2B 80 11 00 00 00 00 00 00 D9 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 17 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 17 00 34 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 26 [14:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:43:29]wFMCommunicate OK [14:43:29]CreateOFDProtocolMessage done [14:43:29]OFDSenderStorePacket 73852 [14:43:29]StoreOFDPacket docnum=73852 [14:43:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 7D 5B 98 01 73 7A 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 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 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 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 5F 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 B2 00 00 00 F4 03 04 00 12 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 20 01 00 35 04 06 00 3C 80 51 70 3E EB 79 10 4E D6 1C FF FB AC [14:43:29]CheckFolder [14:43:29]dirname=/storage/ofd_packets [14:43:29]CheckFolder done [14:43:29]ProducePacketName [14:43:29]name=ofd_packets/00073852 [14:43:29]NVStorageSaveData ofd_packets/00073852 [14:43:29]File name is /storage/ofd_packets/00073852 [14:43:29]Write 446 bytes [14:43:29]NVStorageSaveData done [14:43:29]OFDSenderStorePacket done [14:43:29]KKMCreateOFDPacket done [14:43:29]NVStorageSaveData kkm_last_timestamp [14:43:29]File name is /storage/kkm_last_timestamp [14:43:29]Write 4 bytes [14:43:29]NVStorageSaveData done [14:43:29]ExternCall_PrintAddStr [14:43:29]wPrintStart [14:43:29]Write to MH i2c: 01 00 00 35 2B 60 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 07 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 07 00 35 2B 00 00 00 00 00 FF 0F 75 [14:43:29]RasterBufferAndPrint [14:43:29]line Счет N : (3)272800 [14:43:29]line ИНН: 02508201610067 [14:43:29]line Контрольно-Кассовый Чек [14:43:29]line ПРОДАЖА [14:43:29]line Товар: 4870202522015 [14:43:29]line Напиток Maxi Чай Грушевый 1,2л [14:43:29]line 1.000 * 110.00 [14:43:29]line = 110.00 [14:43:29]line НДС 12% НСП 1% [14:43:29]line > о реализуемом товаре [14:43:29]line Товар: 48743587 [14:43:30]line Сигареты Winston XStyle Silver [14:43:30]line 1.000 * 140.00 [14:43:30]line = 140.00 [14:43:30]line НДС 12% НСП 1% [14:43:30]line > о реализуемом товаре [14:43:30]line ИТОГО: 250.00 [14:43:30]line НСП 1% : 2.21 [14:43:30]line НДС 12% : 26.55 [14:43:30]line Наличными: 250.00 [14:43:30]line Безнал.: 0.00 [14:43:30]line Место: АЗС № 133 "Партнер Нефть" [14:43:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:43:30]line СНО: Общий режим [14:43:30]line Чек 178 20.10.2024 14:43 [14:43:30]line Смена: 170 ФФД: 1.0 [14:43:30]line ЗНМ: 0300000020 [14:43:30]line РНМ: 0000000000161154 [14:43:30]line Версия ККМ: v1.0 [14:43:30]line ФМ: 0000000000963323 [14:43:30]line ФД: 73852 [14:43:30]line ФПД: 66521819791083 [14:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144330&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73852&fm=66521819791083&tin=02508201610067®Number=0000000000161154&sum=25000 [14:43:30]line 0 [14:43:30]OFD Sender: Processing packet 73852 [packets to send 15, broken 14] [14:43:30]ProducePacketName [14:43:30]name=ofd_packets/00073852 [14:43:30]OFD Sender: To server: pG, [14:43:30]CommunicateWithHost lk.salyk.kg:30040 [14:43:30]ConnectInit lk.salyk.kg [14:43:30]written 0, free lines is 4095 [14:43:30]Connected sock=10 [14:43:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 7D 5B 98 01 73 7A 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 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 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 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 5F 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 B2 00 00 00 F4 03 04 00 12 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 20 01 00 35 04 06 00 3C 80 51 70 3E EB 79 10 4E D6 1C FF FB AC [14:43:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 33 EC 47 00 1B 07 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 39 36 33 33 32 33 10 04 04 00 7C 20 01 00 F4 03 04 00 F6 BF 14 67 B6 04 01 00 00 1C FD 2D 10 FB 41 1A B1 [14:43:30]CommunicateWithHost err = 0 [14:43:30]CheckOFDResponse [14:43:30]1017 (14) - 77093643461234 [14:43:30]1041 (16) - 0000000000963323 [14:43:30]1040 (4) - 73852 [14:43:30]1012 (4) - 20.10.2024 08:31 [14:43:30]1206 (1) - 0 [14:43:30]OFD Sender: Remove packet 73852 [14:43:30]ProducePacketName [14:43:30]name=ofd_packets/00073852 [14:43:30]NVStorageDeleteData [14:43:30]Write to MH i2c: 01 00 00 64 2B 8F [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: 01 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: 01 07 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: 01 07 00 64 2B 00 00 00 00 00 64 0C 06 [14:43:30]RasterBufferAndPrint [14:43:30]line [14:43:30]line [14:43:30]line [14:43:30]line [14:43:30]line [14:43:30]written 0, free lines is 3180 [14:43:30]MH_Cut [14:43:30]Write to MH i2c: D1 01 00 6B 2B 01 68 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: D1 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: D1 01 00 [14:43:30]MH_I2C_Read... [14:43:30]Read from MH i2c: D1 01 00 6B 2B 00 67 [14:43:30]Write to MH i2c: 01 00 00 6C 2B 97 [14:43:30]Write i2c OK [14:43:30]MH_I2C_Read... [14:43:30]OFD Sender: No OFD packet to send [14:43:31]*** Cut start [14:43:31]*** Partial cut [14:43:31]*** CUTSNS_PIN = 1 [14:43:31]*** CUTSNS_PIN = 0 [14:43:31]*** Brake cut motor [14:43:32]Read from MH i2c: 01 [14:43:32]MH_I2C_Read... [14:43:32]*** Stop cut motor [14:43:32]*** Cut end [14:43:32]Read from MH i2c: 01 07 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: 01 07 00 6C 2B 00 00 00 00 00 FF 0F AC [14:43:32]process_action close_receipt done [14:43:32]requested_data is exist [14:43:32]produce_requested_data [14:43:32]requested_item fm.sn is exist - process it [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 11 00 00 [14:43:32]Write to MH i2c: E2 08 00 6D 2B 80 11 00 00 00 00 00 00 12 [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 17 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 17 00 6D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5F [14:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:43:32]wFMCommunicate OK [14:43:32]requested_item fd.num is exist - process it [14:43:32]SAM_PROTO_GetFieldsCounters [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 13 00 00 [14:43:32]Write to MH i2c: E2 08 00 6E 2B 80 13 00 00 00 00 00 00 15 [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 62 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 62 00 6E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [14:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:32]wFMCommunicate OK [14:43:32]SAM_PROTO_GetFieldsCounters done [14:43:32]requested_item shift.num is exist - process it [14:43:32]requested_item shift.opened is exist - process it [14:43:32]req_shift_opened [14:43:32]FM_GetShiftState [14:43:32]SAM_PROTO_GetShiftState [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 13 01 00 [14:43:32]Write to MH i2c: E2 08 00 6F 2B 80 13 01 00 00 00 00 00 17 [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 0E 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 0E 00 6F 2B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5C [14:43:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:43:32]wFMCommunicate OK [14:43:32]SAM_PROTO_GetShiftState done [14:43:32]FM_GetShiftState done [14:43:32]req_shift_opened done [14:43:32]requested_item shift.open_date is exist - process it [14:43:32]req_shift_open_date [14:43:32]req_shift_open_date done [14:43:32]produce_requested_data done [14:43:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73852,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:43:32]process_action_free close_receipt [14:43:32]json_value_free [14:43:32]json_value_free done [14:43:32]process_json_proto returns [14:43:32]Send response to host [14:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73852,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:43:32]free response buf [14:43:32]execute_script done [14:43:32]execute_script returns [14:43:32]free content buf [14:43:32]Sock 9.Close socket [14:43:32]Sock 9.Thread stoped [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:41]accept exits with 8 [14:43:41]New connection [14:43:41]New thread 3067432292 created [14:43:41]Thread 3067575652 joined [14:43:41]Waiting for new connection... [14:43:41] Sock 8.Parse request [14:43:41]Sock 8.Check first char [14:43:41]Sock 8.First char is OK [14:43:41]request: POST /json_proto HTTP/1.0 [14:43:41]Method: POST [14:43:41]URL: /json_proto [14:43:41]Method is POST - this is cgi request [14:43:41]url: /json_proto [14:43:41]query_string will be loaded in cgi processing [14:43:41]execute_cgi json_proto POST (null) [14:43:41]execute_cgi path=json_proto method=POST [14:43:41]POST find Content-Length [14:43:41]Host: 172.17.44.196:8080 [14:43:41]Content-Length: 621 [14:43:41]Content-Type: application/json [14:43:41] [14:43:41]POST finish read [14:43:41]Found Content-Length = 621 [14:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272801", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True 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" ] } } [14:43:41]execute_script... [14:43: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 : (3)272801", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True 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" ] } } [14:43:41]POST & json_proto [14:43:41]process_json_proto [14:43:41]json parsed OK: [14:43:41]protocol is kg_v1.0 [14:43:41]action value=close_receipt [14:43:41]process_action close_receipt [14:43:41]cmd_close_receipt [14:43:41]MH_GetDate [14:43:41]Write to MH i2c: F0 00 00 70 2B 8A [14:43:41]Write i2c OK [14:43:41]MH_I2C_Read... [14:43:41]Read from MH i2c: F0 [14:43:41]MH_I2C_Read... [14:43:41]Read from MH i2c: F0 09 00 [14:43:41]MH_I2C_Read... [14:43:41]Read from MH i2c: F0 09 00 70 2B 00 1F 17 15 67 E7 19 F8 65 A2 [14:43:41]GetLastDocTimeStamp 1729435410 [14:43:41]current date 1729435423 [14:43:41]FM_GetShiftState [14:43:41]SAM_PROTO_GetShiftState [14:43:41]wFMCommunicate request_size=4 [14:43:41]MH_SAM_APDU [14:43:41]CAPDU: 80 13 01 00 [14:43:41]Write to MH i2c: E2 08 00 71 2B 80 13 01 00 00 00 00 00 19 [14:43:41]Write i2c OK [14:43:41]MH_I2C_Read... [14:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:41]Read from MH i2c: E2 [14:43:41]MH_I2C_Read... [14:43:41]Read from MH i2c: E2 0E 00 [14:43:41]MH_I2C_Read... [14:43:41]Read from MH i2c: E2 0E 00 71 2B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5E [14:43:41]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:43:41]wFMCommunicate OK [14:43:41]SAM_PROTO_GetShiftState done [14:43:41]FM_GetShiftState done [14:43:41]opened in 1729384303 [14:43:41]opened+sec_in_day 1729470703 [14:43:41]quantity*price = 14000 [14:43:41]sum+1 = 14001 [14:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 179 20.10.2024 14:43 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73853 ФПД: 260783195129459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144343&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73853&fm=260783195129459&tin=02508201610067®Number=0000000000161154&sum=14000 0 [14:43:42]StoreToDocumentArchive [14:43:42]shift 170 fd 73853 [14:43:42]save to /storage/0170/doc_00073853 [14:43:42]save last doc name /storage/0170/doc_00073853 to /storage/kkm_last_doc_name [14:43:42]save OK [14:43:42]Clear old archive folders... [14:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:43:42]tlvbuf is 0033C8F0 [14:43:42]SAM_PROTO_ClearQueue [14:43:42]wFMCommunicate request_size=4 [14:43:42]MH_SAM_APDU [14:43:42]CAPDU: 80 09 00 00 [14:43:42]Write to MH i2c: E2 08 00 7E 2B 80 09 00 00 00 00 00 00 1B [14:43:42]Write i2c OK [14:43:42]MH_I2C_Read... [14:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:42]Read from MH i2c: E2 [14:43:42]MH_I2C_Read... [14:43:42]Read from MH i2c: E2 03 00 [14:43:42]MH_I2C_Read... [14:43:42]Read from MH i2c: E2 03 00 7E 2B 00 90 00 1D [14:43:42]RAPDU: 90 00 [14:43:42]wFMCommunicate OK [14:43:42]SAM_PROTO_ClearQueue done [14:43:42]KKMCreateOFDPacket [14:43:42]OFDProtocolAddRootSTLVToBuf [14:43:42]FM_MakeSignedData [14:43:42]FM_MakeSignedData [14:43:42]SAM_PROTO_SignData [14:43:42]wFMCommunicate request_size=4 [14:43:42]MH_SAM_APDU [14:43:42]CAPDU: 80 0D 01 02 [14:43:42]Write to MH i2c: E2 08 00 7F 2B 80 0D 01 02 00 00 00 00 23 [14:43:42]Write i2c OK [14:43:42]MH_I2C_Read... [14:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:42]Read from MH i2c: E2 [14:43:42]MH_I2C_Read... [14:43:42]Read from MH i2c: E2 03 00 [14:43:42]MH_I2C_Read... [14:43:42]Read from MH i2c: E2 03 00 7F 2B 00 90 00 1E [14:43:42]RAPDU: 90 00 [14:43:42]wFMCommunicate OK [14:43:42]wFMCommunicate request_size=255 [14:43:42]MH_SAM_APDU [14:43:42]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 36 36 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 54 72 75 65 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 B3 00 00 00 F4 03 04 00 1F 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [14:43:42]Write to MH i2c: E2 02 01 80 2B 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 36 36 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 54 72 75 65 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 B3 00 00 00 F4 03 04 00 1F 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 48 [14:43:42]Write i2c OK [14:43:42]MH_I2C_Read... [14:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:43]Read from MH i2c: E2 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 03 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 03 00 80 2B 00 90 00 1F [14:43:43]RAPDU: 90 00 [14:43:43]wFMCommunicate OK [14:43:43]wFMCommunicate request_size=32 [14:43:43]MH_SAM_APDU [14:43:43]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 20 01 00 35 04 06 00 ED 2E 51 B5 86 73 [14:43:43]Write to MH i2c: E2 23 00 81 2B 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 20 01 00 35 04 06 00 ED 2E 51 B5 86 73 00 00 35 [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:43]Read from MH i2c: E2 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 03 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 03 00 81 2B 00 90 00 20 [14:43:43]RAPDU: 90 00 [14:43:43]wFMCommunicate OK [14:43:43]wFMCommunicate request_size=4 [14:43:43]MH_SAM_APDU [14:43:43]CAPDU: 80 0D 03 02 [14:43:43]Write to MH i2c: E2 08 00 82 2B 80 0D 03 02 00 00 00 00 28 [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:43]Read from MH i2c: E2 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 0B 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 0B 00 82 2B 00 84 B7 30 4F 92 07 74 AB 90 00 9B [14:43:43]RAPDU: 84 B7 30 4F 92 07 74 AB 90 00 [14:43:43]wFMCommunicate OK [14:43:43]SAM_PROTO_SignData done [14:43:43]FM_MakeSignedData done [14:43:43]CreateOFDProtocolMessage [14:43:43]wFMCommunicate request_size=4 [14:43:43]MH_SAM_APDU [14:43:43]CAPDU: 80 11 00 00 [14:43:43]Write to MH i2c: E2 08 00 83 2B 80 11 00 00 00 00 00 00 28 [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:43]Read from MH i2c: E2 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 17 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 17 00 83 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 75 [14:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:43:43]wFMCommunicate OK [14:43:43]CreateOFDProtocolMessage done [14:43:43]OFDSenderStorePacket 73853 [14:43:43]StoreOFDPacket docnum=73853 [14:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 00 1D 1D 01 27 41 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 36 36 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 54 72 75 65 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 B3 00 00 00 F4 03 04 00 1F 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 20 01 00 35 04 06 00 ED 2E 51 B5 86 73 84 B7 30 4F 92 07 74 AB [14:43:43]CheckFolder [14:43:43]dirname=/storage/ofd_packets [14:43:43]CheckFolder done [14:43:43]ProducePacketName [14:43:43]name=ofd_packets/00073853 [14:43:43]NVStorageSaveData ofd_packets/00073853 [14:43:43]File name is /storage/ofd_packets/00073853 [14:43:43]Write 323 bytes [14:43:43]NVStorageSaveData done [14:43:43]OFDSenderStorePacket done [14:43:43]KKMCreateOFDPacket done [14:43:43]NVStorageSaveData kkm_last_timestamp [14:43:43]File name is /storage/kkm_last_timestamp [14:43:43]Write 4 bytes [14:43:43]NVStorageSaveData done [14:43:43]ExternCall_PrintAddStr [14:43:43]wPrintStart [14:43:43]Write to MH i2c: 01 00 00 84 2B AF [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: 01 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: 01 07 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: 01 07 00 84 2B 00 00 00 00 00 FF 0F C4 [14:43:43]RasterBufferAndPrint [14:43:43]line Счет N : (3)272801 [14:43:43]line ИНН: 02508201610067 [14:43:43]line Контрольно-Кассовый Чек [14:43:43]line ПРОДАЖА [14:43:43]line Товар: 48747066 [14:43:43]line Сигареты Winston True Silver [14:43:43]line 1.000 * 140.00 [14:43:43]line = 140.00 [14:43:43]line НДС 12% НСП 1% [14:43:43]line > о реализуемом товаре [14:43:43]line ИТОГО: 140.00 [14:43:43]line НСП 1% : 1.24 [14:43:43]line НДС 12% : 14.87 [14:43:43]line Наличными: 140.00 [14:43:43]line Безнал.: 0.00 [14:43:43]line Место: АЗС № 133 "Партнер Нефть" [14:43:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:43:43]line СНО: Общий режим [14:43:43]line Чек 179 20.10.2024 14:43 [14:43:43]line Смена: 170 ФФД: 1.0 [14:43:43]line ЗНМ: 0300000020 [14:43:43]line РНМ: 0000000000161154 [14:43:43]line Версия ККМ: v1.0 [14:43:43]line ФМ: 0000000000963323 [14:43:43]line ФД: 73853 [14:43:43]line ФПД: 260783195129459 [14:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144343&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73853&fm=260783195129459&tin=02508201610067®Number=0000000000161154&sum=14000 [14:43:43]line 0 [14:43:43]written 0, free lines is 4095 [14:43:43]OFD Sender: Processing packet 73853 [packets to send 15, broken 14] [14:43:43]ProducePacketName [14:43:43]name=ofd_packets/00073853 [14:43:43]OFD Sender: To server: pG, [14:43:43]CommunicateWithHost lk.salyk.kg:30040 [14:43:43]ConnectInit lk.salyk.kg [14:43:43]Connected sock=10 [14:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 00 1D 1D 01 27 41 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 36 36 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 54 72 75 65 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 B3 00 00 00 F4 03 04 00 1F 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 20 01 00 35 04 06 00 ED 2E 51 B5 86 73 84 B7 30 4F 92 07 74 AB [14:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F5 1C 47 00 F4 E3 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 39 36 33 33 32 33 10 04 04 00 7D 20 01 00 F4 03 04 00 03 C0 14 67 B6 04 01 00 00 9A 9B 25 66 11 1F 94 63 [14:43:43]CommunicateWithHost err = 0 [14:43:43]CheckOFDResponse [14:43:43]1017 (14) - 77093643461234 [14:43:43]1041 (16) - 0000000000963323 [14:43:43]1040 (4) - 73853 [14:43:43]1012 (4) - 20.10.2024 08:32 [14:43:43]1206 (1) - 0 [14:43:43]OFD Sender: Remove packet 73853 [14:43:43]ProducePacketName [14:43:43]name=ofd_packets/00073853 [14:43:43]NVStorageDeleteData [14:43:43]Write to MH i2c: 01 00 00 AB 2B D6 [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: 01 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: 01 07 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: 01 07 00 AB 2B 00 00 00 00 00 FC 0C E5 [14:43:43]RasterBufferAndPrint [14:43:43]line [14:43:43]line [14:43:43]line [14:43:43]line [14:43:43]line [14:43:43]written 0, free lines is 3336 [14:43:43]MH_Cut [14:43:43]Write to MH i2c: D1 01 00 B2 2B 01 AF [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: D1 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: D1 01 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: D1 01 00 B2 2B 00 AE [14:43:43]Write to MH i2c: 01 00 00 B3 2B DE [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:44]OFD Sender: No OFD packet to send [14:43:44]*** Cut start [14:43:44]*** Partial cut [14:43:44]*** CUTSNS_PIN = 1 [14:43:44]*** CUTSNS_PIN = 0 [14:43:44]*** Brake cut motor [14:43:45]Read from MH i2c: 01 [14:43:45]MH_I2C_Read... [14:43:45]*** Stop cut motor [14:43:45]*** Cut end [14:43:45]Read from MH i2c: 01 07 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 07 00 B3 2B 00 00 00 00 00 FF 0F F3 [14:43:45]process_action close_receipt done [14:43:45]requested_data is exist [14:43:45]produce_requested_data [14:43:45]requested_item fm.sn is exist - process it [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 11 00 00 [14:43:45]Write to MH i2c: E2 08 00 B4 2B 80 11 00 00 00 00 00 00 59 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 17 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 17 00 B4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A6 [14:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:43:45]wFMCommunicate OK [14:43:45]requested_item fd.num is exist - process it [14:43:45]SAM_PROTO_GetFieldsCounters [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 13 00 00 [14:43:45]Write to MH i2c: E2 08 00 B5 2B 80 13 00 00 00 00 00 00 5C [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 62 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 62 00 B5 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:43:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:45]wFMCommunicate OK [14:43:45]SAM_PROTO_GetFieldsCounters done [14:43:45]requested_item shift.num is exist - process it [14:43:45]requested_item shift.opened is exist - process it [14:43:45]req_shift_opened [14:43:45]FM_GetShiftState [14:43:45]SAM_PROTO_GetShiftState [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 13 01 00 [14:43:45]Write to MH i2c: E2 08 00 B6 2B 80 13 01 00 00 00 00 00 5E [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 0E 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 0E 00 B6 2B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A3 [14:43:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:43:45]wFMCommunicate OK [14:43:45]SAM_PROTO_GetShiftState done [14:43:45]FM_GetShiftState done [14:43:45]req_shift_opened done [14:43:45]requested_item shift.open_date is exist - process it [14:43:45]req_shift_open_date [14:43:45]req_shift_open_date done [14:43:45]produce_requested_data done [14:43:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73853,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:43:45]process_action_free close_receipt [14:43:45]json_value_free [14:43:45]json_value_free done [14:43:45]process_json_proto returns [14:43:45]Send response to host [14:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73853,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:43:45]free response buf [14:43:45]execute_script done [14:43:45]execute_script returns [14:43:45]free content buf [14:43:45]Sock 8.Close socket [14:43:45]Sock 8.Thread stoped [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:38]accept exits with 9 [14:44:38]New connection [14:44:38]New thread 3067575652 created [14:44:38]Thread 3067432292 joined [14:44:38]Waiting for new connection... [14:44:38] Sock 9.Parse request [14:44:38]Sock 9.Check first char [14:44:38]Sock 9.First char is OK [14:44:38]request: POST /json_proto HTTP/1.0 [14:44:38]Method: POST [14:44:38]URL: /json_proto [14:44:38]Method is POST - this is cgi request [14:44:38]url: /json_proto [14:44:38]query_string will be loaded in cgi processing [14:44:38]execute_cgi json_proto POST (null) [14:44:38]execute_cgi path=json_proto method=POST [14:44:38]POST find Content-Length [14:44:38]Host: 172.17.44.196:8080 [14:44:38]Content-Length: 678 [14:44:38]Content-Type: application/json [14:44:38] [14:44:38]POST finish read [14:44:38]Found Content-Length = 678 [14:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963061", "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" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:38]execute_script... [14:44: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 : (1)1963061", "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" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:38]POST & json_proto [14:44:38]process_json_proto [14:44:38]json parsed OK: [14:44:38]protocol is kg_v1.0 [14:44:38]action value=close_receipt [14:44:38]process_action close_receipt [14:44:38]cmd_close_receipt [14:44:38]MH_GetDate [14:44:38]Write to MH i2c: F0 00 00 B7 2B D1 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: F0 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: F0 09 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: F0 09 00 B7 2B 00 58 17 15 67 E7 19 F8 65 22 [14:44:38]GetLastDocTimeStamp 1729435423 [14:44:38]current date 1729435480 [14:44:38]FM_GetShiftState [14:44:38]SAM_PROTO_GetShiftState [14:44:38]wFMCommunicate request_size=4 [14:44:38]MH_SAM_APDU [14:44:38]CAPDU: 80 13 01 00 [14:44:38]Write to MH i2c: E2 08 00 B8 2B 80 13 01 00 00 00 00 00 60 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:38]Read from MH i2c: E2 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 0E 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 0E 00 B8 2B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A5 [14:44:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:44:38]wFMCommunicate OK [14:44:38]SAM_PROTO_GetShiftState done [14:44:38]FM_GetShiftState done [14:44:38]opened in 1729384303 [14:44:38]opened+sec_in_day 1729470703 [14:44:38]quantity*price = 31041 [14:44:38]sum+1 = 31043 [14:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 180 20.10.2024 14:44 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73854 ФПД: 48008945479203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144441&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73854&fm=48008945479203&tin=02508201610067®Number=0000000000161154&sum=31000 [14:44:40]StoreToDocumentArchive [14:44:40]shift 170 fd 73854 [14:44:40]save to /storage/0170/doc_00073854 [14:44:40]save last doc name /storage/0170/doc_00073854 to /storage/kkm_last_doc_name [14:44:40]save OK [14:44:40]Clear old archive folders... [14:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:40]tlvbuf is 00329E90 [14:44:40]SAM_PROTO_ClearQueue [14:44:40]wFMCommunicate request_size=4 [14:44:40]MH_SAM_APDU [14:44:40]CAPDU: 80 09 00 00 [14:44:40]Write to MH i2c: E2 08 00 C5 2B 80 09 00 00 00 00 00 00 62 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 C5 2B 00 90 00 64 [14:44:40]RAPDU: 90 00 [14:44:40]wFMCommunicate OK [14:44:40]SAM_PROTO_ClearQueue done [14:44:40]KKMCreateOFDPacket [14:44:40]OFDProtocolAddRootSTLVToBuf [14:44:40]FM_MakeSignedData [14:44:40]FM_MakeSignedData [14:44:40]SAM_PROTO_SignData [14:44:40]wFMCommunicate request_size=4 [14:44:40]MH_SAM_APDU [14:44:40]CAPDU: 80 0D 01 02 [14:44:40]Write to MH i2c: E2 08 00 C6 2B 80 0D 01 02 00 00 00 00 6A [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 C6 2B 00 90 00 65 [14:44:40]RAPDU: 90 00 [14:44:40]wFMCommunicate OK [14:44:40]wFMCommunicate request_size=255 [14:44:40]MH_SAM_APDU [14:44:40]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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 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 B4 00 00 00 F4 03 04 00 59 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 20 01 00 35 04 06 00 2B [14:44:40]Write to MH i2c: E2 02 01 C7 2B 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 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 B4 00 00 00 F4 03 04 00 59 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 20 01 00 35 04 06 00 2B 00 00 C6 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 C7 2B 00 90 00 66 [14:44:40]RAPDU: 90 00 [14:44:40]wFMCommunicate OK [14:44:40]wFMCommunicate request_size=10 [14:44:40]MH_SAM_APDU [14:44:40]CAPDU: 80 0D 02 02 05 A9 F4 24 2E 23 [14:44:40]Write to MH i2c: E2 0D 00 C8 2B 80 0D 02 02 05 00 A9 F4 24 2E 23 00 00 89 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 03 00 C8 2B 00 90 00 67 [14:44:40]RAPDU: 90 00 [14:44:40]wFMCommunicate OK [14:44:40]wFMCommunicate request_size=4 [14:44:40]MH_SAM_APDU [14:44:40]CAPDU: 80 0D 03 02 [14:44:40]Write to MH i2c: E2 08 00 C9 2B 80 0D 03 02 00 00 00 00 6F [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 0B 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 0B 00 C9 2B 00 99 97 45 0F EE 0C 94 A6 90 00 28 [14:44:40]RAPDU: 99 97 45 0F EE 0C 94 A6 90 00 [14:44:40]wFMCommunicate OK [14:44:40]SAM_PROTO_SignData done [14:44:40]FM_MakeSignedData done [14:44:40]CreateOFDProtocolMessage [14:44:40]wFMCommunicate request_size=4 [14:44:40]MH_SAM_APDU [14:44:40]CAPDU: 80 11 00 00 [14:44:40]Write to MH i2c: E2 08 00 CA 2B 80 11 00 00 00 00 00 00 6F [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:40]Read from MH i2c: E2 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 17 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: E2 17 00 CA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [14:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:44:40]wFMCommunicate OK [14:44:40]CreateOFDProtocolMessage done [14:44:40]OFDSenderStorePacket 73854 [14:44:40]StoreOFDPacket docnum=73854 [14:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EA 6F 07 01 E5 9E 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 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 B4 00 00 00 F4 03 04 00 59 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 20 01 00 35 04 06 00 2B A9 F4 24 2E 23 99 97 45 0F EE 0C 94 A6 [14:44:40]CheckFolder [14:44:40]dirname=/storage/ofd_packets [14:44:40]CheckFolder done [14:44:40]ProducePacketName [14:44:40]name=ofd_packets/00073854 [14:44:40]NVStorageSaveData ofd_packets/00073854 [14:44:40]File name is /storage/ofd_packets/00073854 [14:44:40]Write 301 bytes [14:44:40]NVStorageSaveData done [14:44:40]OFDSenderStorePacket done [14:44:40]KKMCreateOFDPacket done [14:44:40]NVStorageSaveData kkm_last_timestamp [14:44:40]File name is /storage/kkm_last_timestamp [14:44:40]Write 4 bytes [14:44:40]NVStorageSaveData done [14:44:40]ExternCall_PrintAddStr [14:44:40]wPrintStart [14:44:40]Write to MH i2c: 01 00 00 CB 2B F6 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: 01 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: 01 07 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: 01 07 00 CB 2B 00 00 00 00 00 FF 0F 0B [14:44:40]RasterBufferAndPrint [14:44:40]line Счет N : (1)1963061 [14:44:40]line ИНН: 02508201610067 [14:44:40]line Контрольно-Кассовый Чек [14:44:40]line ПРОДАЖА [14:44:40]line ТРК (МРК, ГНК) : 53 [14:44:40]line Товар: 2710124130 [14:44:40]line Аи-92-К-5 [14:44:40]line 4.640 * 66.90 [14:44:40]line = 310.42 [14:44:40]line НДС 12% НСП 1% [14:44:40]line > о реализуемом товаре [14:44:40]line ОКРУГЛЕНИЕ: -0.42 [14:44:40]line ИТОГО: 310.00 [14:44:40]line Внесено: 310.00 [14:44:40]line СДАЧА: 0.00 [14:44:40]line НСП 1% : 2.75 [14:44:40]line НДС 12% : 32.96 [14:44:40]line Наличными: 310.00 [14:44:40]line Безнал.: 0.00 [14:44:40]line Место: АЗС № 133 "Партнер Нефть" [14:44:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:44:40]line СНО: Общий режим [14:44:40]line Чек 180 20.10.2024 14:44 [14:44:40]line Смена: 170 ФФД: 1.0 [14:44:40]line ЗНМ: 0300000020 [14:44:40]line РНМ: 0000000000161154 [14:44:40]line Версия ККМ: v1.0 [14:44:40]line ФМ: 0000000000963323 [14:44:40]line ФД: 73854 [14:44:40]line ФПД: 48008945479203 [14:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144441&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73854&fm=48008945479203&tin=02508201610067®Number=0000000000161154&sum=31000 [14:44:40]OFD Sender: Processing packet 73854 [packets to send 15, broken 14] [14:44:40]ProducePacketName [14:44:40]name=ofd_packets/00073854 [14:44:40]OFD Sender: To server: pG, [14:44:40]CommunicateWithHost lk.salyk.kg:30040 [14:44:40]ConnectInit lk.salyk.kg [14:44:40]written 0, free lines is 4095 [14:44:40]Connected sock=10 [14:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EA 6F 07 01 E5 9E 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 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 B4 00 00 00 F4 03 04 00 59 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 20 01 00 35 04 06 00 2B A9 F4 24 2E 23 99 97 45 0F EE 0C 94 A6 [14:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 18 E9 47 00 37 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 39 36 33 33 32 33 10 04 04 00 7E 20 01 00 F4 03 04 00 3D C0 14 67 B6 04 01 00 00 6E D9 5D FF F9 F7 55 5B [14:44:41]CommunicateWithHost err = 0 [14:44:41]CheckOFDResponse [14:44:41]1017 (14) - 77093643461234 [14:44:41]1041 (16) - 0000000000963323 [14:44:41]1040 (4) - 73854 [14:44:41]1012 (4) - 20.10.2024 08:33 [14:44:41]1206 (1) - 0 [14:44:41]OFD Sender: Remove packet 73854 [14:44:41]ProducePacketName [14:44:41]name=ofd_packets/00073854 [14:44:41]NVStorageDeleteData [14:44:41]Write to MH i2c: 01 00 00 F5 2B 20 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: 01 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: 01 07 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: 01 07 00 F5 2B 00 00 00 00 00 B8 0C EB [14:44:41]RasterBufferAndPrint [14:44:41]line [14:44:41]line [14:44:41]line [14:44:41]line [14:44:41]line [14:44:41]written 0, free lines is 3263 [14:44:41]MH_Cut [14:44:41]Write to MH i2c: D1 01 00 FC 2B 01 F9 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: D1 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: D1 01 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: D1 01 00 FC 2B 00 F8 [14:44:41]Write to MH i2c: 01 00 00 FD 2B 28 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]OFD Sender: No OFD packet to send [14:44:42]*** Cut start [14:44:42]*** Partial cut [14:44:42]*** CUTSNS_PIN = 1 [14:44:42]*** CUTSNS_PIN = 0 [14:44:42]*** Brake cut motor [14:44:42]Read from MH i2c: 01 [14:44:42]*** Stop cut motor [14:44:42]*** Cut end [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: 01 07 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: 01 07 00 FD 2B 00 00 00 00 00 FF 0F 3D [14:44:42]process_action close_receipt done [14:44:42]requested_data is exist [14:44:42]produce_requested_data [14:44:42]requested_item fm.sn is exist - process it [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 11 00 00 [14:44:42]Write to MH i2c: E2 08 00 FE 2B 80 11 00 00 00 00 00 00 A3 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 17 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 17 00 FE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [14:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:44:42]wFMCommunicate OK [14:44:42]requested_item fd.num is exist - process it [14:44:42]SAM_PROTO_GetFieldsCounters [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 13 00 00 [14:44:42]Write to MH i2c: E2 08 00 FF 2B 80 13 00 00 00 00 00 00 A6 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 62 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 62 00 FF 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:42]wFMCommunicate OK [14:44:42]SAM_PROTO_GetFieldsCounters done [14:44:42]requested_item shift.num is exist - process it [14:44:42]requested_item shift.opened is exist - process it [14:44:42]req_shift_opened [14:44:42]FM_GetShiftState [14:44:42]SAM_PROTO_GetShiftState [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 13 01 00 [14:44:42]Write to MH i2c: E2 08 00 00 2C 80 13 01 00 00 00 00 00 A9 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:43]Read from MH i2c: E2 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 0E 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 0E 00 00 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EE [14:44:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:44:43]wFMCommunicate OK [14:44:43]SAM_PROTO_GetShiftState done [14:44:43]FM_GetShiftState done [14:44:43]req_shift_opened done [14:44:43]requested_item shift.open_date is exist - process it [14:44:43]req_shift_open_date [14:44:43]req_shift_open_date done [14:44:43]produce_requested_data done [14:44:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73854,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:44:43]process_action_free close_receipt [14:44:43]json_value_free [14:44:43]json_value_free done [14:44:43]process_json_proto returns [14:44:43]Send response to host [14:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73854,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:44:43]free response buf [14:44:43]execute_script done [14:44:43]execute_script returns [14:44:43]free content buf [14:44:43]Sock 9.Close socket [14:44:43]Sock 9.Thread stoped [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]accept exits with 8 [14:45:21]New connection [14:45:21]New thread 3067432292 created [14:45:21]Thread 3067575652 joined [14:45:21]Waiting for new connection... [14:45:21] Sock 8.Parse request [14:45:21]Sock 8.Check first char [14:45:21]Sock 8.First char is OK [14:45:21]request: POST /json_proto HTTP/1.0 [14:45:21]Method: POST [14:45:21]URL: /json_proto [14:45:21]Method is POST - this is cgi request [14:45:21]url: /json_proto [14:45:21]query_string will be loaded in cgi processing [14:45:21]execute_cgi json_proto POST (null) [14:45:21]execute_cgi path=json_proto method=POST [14:45:21]POST find Content-Length [14:45:21]Host: 172.17.44.196:8080 [14:45:21]Content-Length: 680 [14:45:21]Content-Type: application/json [14:45:21] [14:45:21]POST finish read [14:45:21]Found Content-Length = 680 [14:45:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [14:45:21]execute_script... [14:45: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 : (1)1963062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [14:45:21]POST & json_proto [14:45:21]process_json_proto [14:45:21]json parsed OK: [14:45:21]protocol is kg_v1.0 [14:45:21]action value=close_receipt [14:45:21]process_action close_receipt [14:45:21]cmd_close_receipt [14:45:21]MH_GetDate [14:45:21]Write to MH i2c: F0 00 00 01 2C 1C [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: F0 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: F0 09 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: F0 09 00 01 2C 00 83 17 15 67 E7 19 F8 65 98 [14:45:21]GetLastDocTimeStamp 1729435481 [14:45:21]current date 1729435523 [14:45:21]FM_GetShiftState [14:45:21]SAM_PROTO_GetShiftState [14:45:21]wFMCommunicate request_size=4 [14:45:21]MH_SAM_APDU [14:45:21]CAPDU: 80 13 01 00 [14:45:21]Write to MH i2c: E2 08 00 02 2C 80 13 01 00 00 00 00 00 AB [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:21]Read from MH i2c: E2 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 0E 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 0E 00 02 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F0 [14:45:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:45:21]wFMCommunicate OK [14:45:21]SAM_PROTO_GetShiftState done [14:45:21]FM_GetShiftState done [14:45:21]opened in 1729384303 [14:45:21]opened+sec_in_day 1729470703 [14:45:21]quantity*price = 200025 [14:45:21]sum+1 = 200026 [14:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 181 20.10.2024 14:45 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73855 ФПД: 44086587094570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144523&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73855&fm=44086587094570&tin=02508201610067®Number=0000000000161154&sum=200000 [14:45:22]StoreToDocumentArchive [14:45:22]shift 170 fd 73855 [14:45:22]save to /storage/0170/doc_00073855 [14:45:22]save last doc name /storage/0170/doc_00073855 to /storage/kkm_last_doc_name [14:45:22]save OK [14:45:22]Clear old archive folders... [14:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:45:22]tlvbuf is 00322B90 [14:45:22]SAM_PROTO_ClearQueue [14:45:22]wFMCommunicate request_size=4 [14:45:22]MH_SAM_APDU [14:45:22]CAPDU: 80 09 00 00 [14:45:22]Write to MH i2c: E2 08 00 0F 2C 80 09 00 00 00 00 00 00 AD [14:45:22]Write i2c OK [14:45:22]MH_I2C_Read... [14:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:22]Read from MH i2c: E2 [14:45:22]MH_I2C_Read... [14:45:22]Read from MH i2c: E2 03 00 [14:45:22]MH_I2C_Read... [14:45:22]Read from MH i2c: E2 03 00 0F 2C 00 90 00 AF [14:45:22]RAPDU: 90 00 [14:45:22]wFMCommunicate OK [14:45:22]SAM_PROTO_ClearQueue done [14:45:22]KKMCreateOFDPacket [14:45:22]OFDProtocolAddRootSTLVToBuf [14:45:22]FM_MakeSignedData [14:45:22]FM_MakeSignedData [14:45:22]SAM_PROTO_SignData [14:45:22]wFMCommunicate request_size=4 [14:45:22]MH_SAM_APDU [14:45:22]CAPDU: 80 0D 01 02 [14:45:22]Write to MH i2c: E2 08 00 10 2C 80 0D 01 02 00 00 00 00 B5 [14:45:22]Write i2c OK [14:45:22]MH_I2C_Read... [14:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:22]Read from MH i2c: E2 [14:45:22]MH_I2C_Read... [14:45:22]Read from MH i2c: E2 03 00 [14:45:22]MH_I2C_Read... [14:45:22]Read from MH i2c: E2 03 00 10 2C 00 90 00 B0 [14:45:22]RAPDU: 90 00 [14:45:22]wFMCommunicate OK [14:45:22]wFMCommunicate request_size=255 [14:45:22]MH_SAM_APDU [14:45:22]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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 B5 00 00 00 F4 03 04 00 83 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 20 01 00 35 04 06 00 28 18 B5 5C [14:45:22]Write to MH i2c: E2 02 01 11 2C 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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 B5 00 00 00 F4 03 04 00 83 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 20 01 00 35 04 06 00 28 18 B5 5C 00 00 81 [14:45:22]Write i2c OK [14:45:22]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 03 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 03 00 11 2C 00 90 00 B1 [14:45:23]RAPDU: 90 00 [14:45:23]wFMCommunicate OK [14:45:23]wFMCommunicate request_size=7 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 0D 02 02 02 F6 2A [14:45:23]Write to MH i2c: E2 0A 00 12 2C 80 0D 02 02 02 00 F6 2A 00 00 DC [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 03 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 03 00 12 2C 00 90 00 B2 [14:45:23]RAPDU: 90 00 [14:45:23]wFMCommunicate OK [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 0D 03 02 [14:45:23]Write to MH i2c: E2 08 00 13 2C 80 0D 03 02 00 00 00 00 BA [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0B 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0B 00 13 2C 00 B2 AD F9 5E DF 9F BB 11 90 00 BB [14:45:23]RAPDU: B2 AD F9 5E DF 9F BB 11 90 00 [14:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_SignData done [14:45:23]FM_MakeSignedData done [14:45:23]CreateOFDProtocolMessage [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 11 00 00 [14:45:23]Write to MH i2c: E2 08 00 14 2C 80 11 00 00 00 00 00 00 BA [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 17 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 17 00 14 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [14:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:45:23]wFMCommunicate OK [14:45:23]CreateOFDProtocolMessage done [14:45:23]OFDSenderStorePacket 73855 [14:45:23]StoreOFDPacket docnum=73855 [14:45:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7F E4 04 01 6C AC 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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 B5 00 00 00 F4 03 04 00 83 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 20 01 00 35 04 06 00 28 18 B5 5C F6 2A B2 AD F9 5E DF 9F BB 11 [14:45:23]CheckFolder [14:45:23]dirname=/storage/ofd_packets [14:45:23]CheckFolder done [14:45:23]ProducePacketName [14:45:23]name=ofd_packets/00073855 [14:45:23]NVStorageSaveData ofd_packets/00073855 [14:45:23]File name is /storage/ofd_packets/00073855 [14:45:23]Write 298 bytes [14:45:23]NVStorageSaveData done [14:45:23]OFDSenderStorePacket done [14:45:23]KKMCreateOFDPacket done [14:45:23]NVStorageSaveData kkm_last_timestamp [14:45:23]File name is /storage/kkm_last_timestamp [14:45:23]Write 4 bytes [14:45:23]NVStorageSaveData done [14:45:23]ExternCall_PrintAddStr [14:45:23]wPrintStart [14:45:23]Write to MH i2c: 01 00 00 15 2C 41 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 07 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 07 00 15 2C 00 00 00 00 00 FF 0F 56 [14:45:23]RasterBufferAndPrint [14:45:23]line Счет N : (1)1963062 [14:45:23]line ИНН: 02508201610067 [14:45:23]line Контрольно-Кассовый Чек [14:45:23]line ПРОДАЖА [14:45:23]line ТРК (МРК, ГНК) : 11 [14:45:23]line Товар: 2710194210 [14:45:23]line ДТ-К-5 [14:45:23]line 26.250 * 76.20 [14:45:23]line = 2000.25 [14:45:23]line НДС 12% НСП 1% [14:45:23]line > о реализуемом товаре [14:45:23]line ОКРУГЛЕНИЕ: -0.25 [14:45:23]line ИТОГО: 2000.00 [14:45:23]line Внесено: 2000.00 [14:45:23]line СДАЧА: 0.00 [14:45:23]line НСП 1% : 17.70 [14:45:23]line НДС 12% : 212.42 [14:45:23]line Наличными: 2000.00 [14:45:23]line Безнал.: 0.00 [14:45:23]line Место: АЗС № 133 "Партнер Нефть" [14:45:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:45:23]line СНО: Общий режим [14:45:23]line Чек 181 20.10.2024 14:45 [14:45:23]line Смена: 170 ФФД: 1.0 [14:45:23]line ЗНМ: 0300000020 [14:45:23]line РНМ: 0000000000161154 [14:45:23]line Версия ККМ: v1.0 [14:45:23]line ФМ: 0000000000963323 [14:45:23]line ФД: 73855 [14:45:23]line ФПД: 44086587094570 [14:45:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144523&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73855&fm=44086587094570&tin=02508201610067®Number=0000000000161154&sum=200000 [14:45:23]OFD Sender: Processing packet 73855 [packets to send 15, broken 14] [14:45:23]ProducePacketName [14:45:23]name=ofd_packets/00073855 [14:45:23]OFD Sender: To server: pG, [14:45:23]CommunicateWithHost lk.salyk.kg:30040 [14:45:23]ConnectInit lk.salyk.kg [14:45:23]written 0, free lines is 4095 [14:45:23]Connected sock=10 [14:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7F E4 04 01 6C AC 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 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 B5 00 00 00 F4 03 04 00 83 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 20 01 00 35 04 06 00 28 18 B5 5C F6 2A B2 AD F9 5E DF 9F BB 11 [14:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AC CE 47 00 1F 96 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 39 36 33 33 32 33 10 04 04 00 7F 20 01 00 F4 03 04 00 68 C0 14 67 B6 04 01 00 00 FB 03 79 7A CF 91 08 BB [14:45:23]CommunicateWithHost err = 0 [14:45:23]CheckOFDResponse [14:45:23]1017 (14) - 77093643461234 [14:45:23]1041 (16) - 0000000000963323 [14:45:23]1040 (4) - 73855 [14:45:23]1012 (4) - 20.10.2024 08:33 [14:45:23]1206 (1) - 0 [14:45:23]OFD Sender: Remove packet 73855 [14:45:23]ProducePacketName [14:45:23]name=ofd_packets/00073855 [14:45:23]NVStorageDeleteData [14:45:23]Write to MH i2c: 01 00 00 3F 2C 6B [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 07 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 07 00 3F 2C 00 00 00 00 00 BF 0C 3D [14:45:23]RasterBufferAndPrint [14:45:23]line [14:45:23]line [14:45:23]line [14:45:23]line [14:45:23]line [14:45:23]written 0, free lines is 3269 [14:45:23]MH_Cut [14:45:23]Write to MH i2c: D1 01 00 46 2C 01 44 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: D1 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: D1 01 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: D1 01 00 46 2C 00 43 [14:45:23]Write to MH i2c: 01 00 00 47 2C 73 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:24]OFD Sender: No OFD packet to send [14:45:24]*** Cut start [14:45:24]*** Partial cut [14:45:24]*** CUTSNS_PIN = 1 [14:45:24]*** CUTSNS_PIN = 0 [14:45:25]*** Brake cut motor [14:45:25]Read from MH i2c: 01 [14:45:25]MH_I2C_Read... [14:45:25]*** Stop cut motor [14:45:25]*** Cut end [14:45:25]Read from MH i2c: 01 07 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 07 00 47 2C 00 00 00 00 00 FF 0F 88 [14:45:25]process_action close_receipt done [14:45:25]requested_data is exist [14:45:25]produce_requested_data [14:45:25]requested_item fm.sn is exist - process it [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 11 00 00 [14:45:25]Write to MH i2c: E2 08 00 48 2C 80 11 00 00 00 00 00 00 EE [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 17 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 17 00 48 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [14:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:45:25]wFMCommunicate OK [14:45:25]requested_item fd.num is exist - process it [14:45:25]SAM_PROTO_GetFieldsCounters [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 13 00 00 [14:45:25]Write to MH i2c: E2 08 00 49 2C 80 13 00 00 00 00 00 00 F1 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 62 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 62 00 49 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [14:45:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_GetFieldsCounters done [14:45:25]requested_item shift.num is exist - process it [14:45:25]requested_item shift.opened is exist - process it [14:45:25]req_shift_opened [14:45:25]FM_GetShiftState [14:45:25]SAM_PROTO_GetShiftState [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 13 01 00 [14:45:25]Write to MH i2c: E2 08 00 4A 2C 80 13 01 00 00 00 00 00 F3 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0E 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0E 00 4A 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 38 [14:45:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_GetShiftState done [14:45:25]FM_GetShiftState done [14:45:25]req_shift_opened done [14:45:25]requested_item shift.open_date is exist - process it [14:45:25]req_shift_open_date [14:45:25]req_shift_open_date done [14:45:25]produce_requested_data done [14:45:25]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73855,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:45:25]process_action_free close_receipt [14:45:25]json_value_free [14:45:25]json_value_free done [14:45:25]process_json_proto returns [14:45:25]Send response to host [14:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73855,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:45:25]free response buf [14:45:25]execute_script done [14:45:25]execute_script returns [14:45:25]free content buf [14:45:25]Sock 8.Close socket [14:45:25]Sock 8.Thread stoped [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:00]accept exits with 9 [14:47:00]New connection [14:47:00]New thread 3067575652 created [14:47:00]Thread 3067432292 joined [14:47:00]Waiting for new connection... [14:47:00] Sock 9.Parse request [14:47:00]Sock 9.Check first char [14:47:00]Sock 9.First char is OK [14:47:00]request: POST /json_proto HTTP/1.0 [14:47:00]Method: POST [14:47:00]URL: /json_proto [14:47:00]Method is POST - this is cgi request [14:47:00]url: /json_proto [14:47:00]query_string will be loaded in cgi processing [14:47:00]execute_cgi json_proto POST (null) [14:47:00]execute_cgi path=json_proto method=POST [14:47:00]POST find Content-Length [14:47:00]Host: 172.17.44.196:8080 [14:47:00]Content-Length: 683 [14:47:00]Content-Type: application/json [14:47:00] [14:47:00]POST finish read [14:47:00]Found Content-Length = 683 [14:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [14:47:00]execute_script... [14:47: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 : (1)1963065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [14:47:00]POST & json_proto [14:47:00]process_json_proto [14:47:00]json parsed OK: [14:47:00]protocol is kg_v1.0 [14:47:00]action value=close_receipt [14:47:00]process_action close_receipt [14:47:00]cmd_close_receipt [14:47:00]MH_GetDate [14:47:00]Write to MH i2c: F0 00 00 4B 2C 66 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 09 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 09 00 4B 2C 00 E6 17 15 67 E7 19 F8 65 45 [14:47:00]GetLastDocTimeStamp 1729435523 [14:47:00]current date 1729435622 [14:47:00]FM_GetShiftState [14:47:00]SAM_PROTO_GetShiftState [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 13 01 00 [14:47:00]Write to MH i2c: E2 08 00 4C 2C 80 13 01 00 00 00 00 00 F5 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 4C 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3A [14:47:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetShiftState done [14:47:00]FM_GetShiftState done [14:47:00]opened in 1729384303 [14:47:00]opened+sec_in_day 1729470703 [14:47:00]quantity*price = 100015 [14:47:00]sum+1 = 100017 [14:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 182 20.10.2024 14:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73856 ФПД: 81575807317259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144702&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73856&fm=81575807317259&tin=02508201610067®Number=0000000000161154&sum=100000 [14:47:01]StoreToDocumentArchive [14:47:01]shift 170 fd 73856 [14:47:01]save to /storage/0170/doc_00073856 [14:47:01]save last doc name /storage/0170/doc_00073856 to /storage/kkm_last_doc_name [14:47:01]save OK [14:47:01]Clear old archive folders... [14:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:01]tlvbuf is 00338760 [14:47:01]SAM_PROTO_ClearQueue [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 09 00 00 [14:47:01]Write to MH i2c: E2 08 00 59 2C 80 09 00 00 00 00 00 00 F7 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 59 2C 00 90 00 F9 [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]SAM_PROTO_ClearQueue done [14:47:01]KKMCreateOFDPacket [14:47:01]OFDProtocolAddRootSTLVToBuf [14:47:01]FM_MakeSignedData [14:47:01]FM_MakeSignedData [14:47:01]SAM_PROTO_SignData [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 01 02 [14:47:01]Write to MH i2c: E2 08 00 5A 2C 80 0D 01 02 00 00 00 00 FF [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 5A 2C 00 90 00 FA [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=255 [14:47:01]MH_SAM_APDU [14:47:01]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 B6 00 00 00 F4 03 04 00 E6 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 80 20 01 00 35 04 06 00 4A [14:47:01]Write to MH i2c: E2 02 01 5B 2C 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 B6 00 00 00 F4 03 04 00 E6 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 80 20 01 00 35 04 06 00 4A 00 00 3F [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 5B 2C 00 90 00 FB [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=10 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 02 02 05 31 59 04 75 0B [14:47:01]Write to MH i2c: E2 0D 00 5C 2C 80 0D 02 02 05 00 31 59 04 75 0B 00 00 1A [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [14:47:02]RAPDU: 90 00 [14:47:02]wFMCommunicate OK [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 0D 03 02 [14:47:02]Write to MH i2c: E2 08 00 5D 2C 80 0D 03 02 00 00 00 00 04 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0B 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0B 00 5D 2C 00 8F C7 19 FE 78 2E 39 A8 90 00 F9 [14:47:02]RAPDU: 8F C7 19 FE 78 2E 39 A8 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_SignData done [14:47:02]FM_MakeSignedData done [14:47:02]CreateOFDProtocolMessage [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 11 00 00 [14:47:02]Write to MH i2c: E2 08 00 5E 2C 80 11 00 00 00 00 00 00 04 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 5E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [14:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:47:02]wFMCommunicate OK [14:47:02]CreateOFDProtocolMessage done [14:47:02]OFDSenderStorePacket 73856 [14:47:02]StoreOFDPacket docnum=73856 [14:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C8 30 07 01 27 E4 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 B6 00 00 00 F4 03 04 00 E6 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 80 20 01 00 35 04 06 00 4A 31 59 04 75 0B 8F C7 19 FE 78 2E 39 A8 [14:47:02]CheckFolder [14:47:02]dirname=/storage/ofd_packets [14:47:02]CheckFolder done [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00073856 [14:47:02]NVStorageSaveData ofd_packets/00073856 [14:47:02]File name is /storage/ofd_packets/00073856 [14:47:02]Write 301 bytes [14:47:02]NVStorageSaveData done [14:47:02]OFDSenderStorePacket done [14:47:02]KKMCreateOFDPacket done [14:47:02]NVStorageSaveData kkm_last_timestamp [14:47:02]File name is /storage/kkm_last_timestamp [14:47:02]Write 4 bytes [14:47:02]NVStorageSaveData done [14:47:02]ExternCall_PrintAddStr [14:47:02]wPrintStart [14:47:02]Write to MH i2c: 01 00 00 5F 2C 8B [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 5F 2C 00 00 00 00 00 FF 0F A0 [14:47:02]RasterBufferAndPrint [14:47:02]line Счет N : (1)1963065 [14:47:02]line ИНН: 02508201610067 [14:47:02]line Контрольно-Кассовый Чек [14:47:02]line ПРОДАЖА [14:47:02]line ТРК (МРК, ГНК) : 63 [14:47:02]line Товар: 2710124130 [14:47:02]line Аи-92-К-5 [14:47:02]line 14.950 * 66.90 [14:47:02]line = 1000.16 [14:47:02]line НДС 12% НСП 1% [14:47:02]line > о реализуемом товаре [14:47:02]line ОКРУГЛЕНИЕ: -0.16 [14:47:02]line ИТОГО: 1000.00 [14:47:02]line Внесено: 1000.00 [14:47:02]line СДАЧА: 0.00 [14:47:02]line НСП 1% : 8.85 [14:47:02]line НДС 12% : 106.21 [14:47:02]line Наличными: 1000.00 [14:47:02]line Безнал.: 0.00 [14:47:02]line Место: АЗС № 133 "Партнер Нефть" [14:47:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:47:02]line СНО: Общий режим [14:47:02]line Чек 182 20.10.2024 14:47 [14:47:02]line Смена: 170 ФФД: 1.0 [14:47:02]line ЗНМ: 0300000020 [14:47:02]line РНМ: 0000000000161154 [14:47:02]line Версия ККМ: v1.0 [14:47:02]line ФМ: 0000000000963323 [14:47:02]line ФД: 73856 [14:47:02]line ФПД: 81575807317259 [14:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144702&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73856&fm=81575807317259&tin=02508201610067®Number=0000000000161154&sum=100000 [14:47:02]written 0, free lines is 4095 [14:47:02]OFD Sender: Processing packet 73856 [packets to send 15, broken 14] [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00073856 [14:47:02]OFD Sender: To server: pG, [14:47:02]CommunicateWithHost lk.salyk.kg:30040 [14:47:02]ConnectInit lk.salyk.kg [14:47:02]Connected sock=10 [14:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C8 30 07 01 27 E4 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 B6 00 00 00 F4 03 04 00 E6 17 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 80 20 01 00 35 04 06 00 4A 31 59 04 75 0B 8F C7 19 FE 78 2E 39 A8 [14:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 73 5F 47 00 B7 75 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 39 36 33 33 32 33 10 04 04 00 80 20 01 00 F4 03 04 00 CB C0 14 67 B6 04 01 00 00 40 7A AD 68 1D 5A 77 D3 [14:47:02]CommunicateWithHost err = 0 [14:47:02]CheckOFDResponse [14:47:02]1017 (14) - 77093643461234 [14:47:02]1041 (16) - 0000000000963323 [14:47:02]1040 (4) - 73856 [14:47:02]1012 (4) - 20.10.2024 08:35 [14:47:02]1206 (1) - 0 [14:47:02]OFD Sender: Remove packet 73856 [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00073856 [14:47:02]NVStorageDeleteData [14:47:02]Write to MH i2c: 01 00 00 89 2C B5 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 89 2C 00 00 00 00 00 B0 0C 78 [14:47:02]RasterBufferAndPrint [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]written 0, free lines is 3253 [14:47:02]MH_Cut [14:47:02]Write to MH i2c: D1 01 00 90 2C 01 8E [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 01 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 01 00 90 2C 00 8D [14:47:02]Write to MH i2c: 01 00 00 91 2C BD [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:03]OFD Sender: No OFD packet to send [14:47:03]*** Cut start [14:47:03]*** Partial cut [14:47:03]*** CUTSNS_PIN = 1 [14:47:03]*** CUTSNS_PIN = 0 [14:47:04]*** Brake cut motor [14:47:04]Read from MH i2c: 01 [14:47:04]MH_I2C_Read... [14:47:04]*** Stop cut motor [14:47:04]*** Cut end [14:47:04]Read from MH i2c: 01 07 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: 01 07 00 91 2C 00 00 00 00 00 FF 0F D2 [14:47:04]process_action close_receipt done [14:47:04]requested_data is exist [14:47:04]produce_requested_data [14:47:04]requested_item fm.sn is exist - process it [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 11 00 00 [14:47:04]Write to MH i2c: E2 08 00 92 2C 80 11 00 00 00 00 00 00 38 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 17 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 17 00 92 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 85 [14:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:47:04]wFMCommunicate OK [14:47:04]requested_item fd.num is exist - process it [14:47:04]SAM_PROTO_GetFieldsCounters [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 13 00 00 [14:47:04]Write to MH i2c: E2 08 00 93 2C 80 13 00 00 00 00 00 00 3B [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 62 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 62 00 93 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 80 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [14:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 80 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:04]wFMCommunicate OK [14:47:04]SAM_PROTO_GetFieldsCounters done [14:47:04]requested_item shift.num is exist - process it [14:47:04]requested_item shift.opened is exist - process it [14:47:04]req_shift_opened [14:47:04]FM_GetShiftState [14:47:04]SAM_PROTO_GetShiftState [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 13 01 00 [14:47:04]Write to MH i2c: E2 08 00 94 2C 80 13 01 00 00 00 00 00 3D [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 0E 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 0E 00 94 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 82 [14:47:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:47:04]wFMCommunicate OK [14:47:04]SAM_PROTO_GetShiftState done [14:47:04]FM_GetShiftState done [14:47:04]req_shift_opened done [14:47:04]requested_item shift.open_date is exist - process it [14:47:04]req_shift_open_date [14:47:04]req_shift_open_date done [14:47:04]produce_requested_data done [14:47:04]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73856,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:47:04]process_action_free close_receipt [14:47:04]json_value_free [14:47:04]json_value_free done [14:47:04]process_json_proto returns [14:47:04]Send response to host [14:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73856,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:47:04]free response buf [14:47:04]execute_script done [14:47:04]execute_script returns [14:47:04]free content buf [14:47:04]Sock 9.Close socket [14:47:04]Sock 9.Thread stoped [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:10]accept exits with 8 [14:49:10]New connection [14:49:10]New thread 3067432292 created [14:49:10]Thread 3067575652 joined [14:49:10]Waiting for new connection... [14:49:10] Sock 8.Parse request [14:49:10]Sock 8.Check first char [14:49:10]Sock 8.First char is OK [14:49:10]request: POST /json_proto HTTP/1.0 [14:49:10]Method: POST [14:49:10]URL: /json_proto [14:49:10]Method is POST - this is cgi request [14:49:10]url: /json_proto [14:49:10]query_string will be loaded in cgi processing [14:49:10]execute_cgi json_proto POST (null) [14:49:10]execute_cgi path=json_proto method=POST [14:49:10]POST find Content-Length [14:49:10]Host: 172.17.44.196:8080 [14:49:10]Content-Length: 680 [14:49:10]Content-Type: application/json [14:49:10] [14:49:10]POST finish read [14:49:10]Found Content-Length = 680 [14:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:49:10]execute_script... [14:49: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 : (1)1963067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:49:10]POST & json_proto [14:49:10]process_json_proto [14:49:10]json parsed OK: [14:49:10]protocol is kg_v1.0 [14:49:10]action value=close_receipt [14:49:10]process_action close_receipt [14:49:10]cmd_close_receipt [14:49:10]MH_GetDate [14:49:10]Write to MH i2c: F0 00 00 95 2C B0 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: F0 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: F0 09 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: F0 09 00 95 2C 00 68 18 15 67 E7 19 F8 65 12 [14:49:10]GetLastDocTimeStamp 1729435622 [14:49:10]current date 1729435752 [14:49:10]FM_GetShiftState [14:49:10]SAM_PROTO_GetShiftState [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 01 00 [14:49:10]Write to MH i2c: E2 08 00 96 2C 80 13 01 00 00 00 00 00 3F [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 96 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 84 [14:49:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetShiftState done [14:49:10]FM_GetShiftState done [14:49:10]opened in 1729384303 [14:49:10]opened+sec_in_day 1729470703 [14:49:10]quantity*price = 100050 [14:49:10]sum+1 = 100052 [14:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 183 20.10.2024 14:49 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73857 ФПД: 66034203628606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144912&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73857&fm=66034203628606&tin=02508201610067®Number=0000000000161154&sum=100000 [14:49:11]StoreToDocumentArchive [14:49:11]shift 170 fd 73857 [14:49:11]save to /storage/0170/doc_00073857 [14:49:11]save last doc name /storage/0170/doc_00073857 to /storage/kkm_last_doc_name [14:49:11]save OK [14:49:11]Clear old archive folders... [14:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:11]tlvbuf is 0035A190 [14:49:11]SAM_PROTO_ClearQueue [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 09 00 00 [14:49:11]Write to MH i2c: E2 08 00 A3 2C 80 09 00 00 00 00 00 00 41 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 03 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [14:49:11]RAPDU: 90 00 [14:49:11]wFMCommunicate OK [14:49:11]SAM_PROTO_ClearQueue done [14:49:11]KKMCreateOFDPacket [14:49:11]OFDProtocolAddRootSTLVToBuf [14:49:11]FM_MakeSignedData [14:49:11]FM_MakeSignedData [14:49:11]SAM_PROTO_SignData [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 0D 01 02 [14:49:11]Write to MH i2c: E2 08 00 A4 2C 80 0D 01 02 00 00 00 00 49 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 03 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 03 00 A4 2C 00 90 00 44 [14:49:12]RAPDU: 90 00 [14:49:12]wFMCommunicate OK [14:49:12]wFMCommunicate request_size=255 [14:49:12]MH_SAM_APDU [14:49:12]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B7 00 00 00 F4 03 04 00 68 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 20 01 00 35 04 06 00 3C 0E C9 40 [14:49:12]Write to MH i2c: E2 02 01 A5 2C 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B7 00 00 00 F4 03 04 00 68 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 20 01 00 35 04 06 00 3C 0E C9 40 00 00 13 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 03 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 03 00 A5 2C 00 90 00 45 [14:49:12]RAPDU: 90 00 [14:49:12]wFMCommunicate OK [14:49:12]wFMCommunicate request_size=7 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 0D 02 02 02 14 3E [14:49:12]Write to MH i2c: E2 0A 00 A6 2C 80 0D 02 02 02 00 14 3E 00 00 A2 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 03 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 03 00 A6 2C 00 90 00 46 [14:49:12]RAPDU: 90 00 [14:49:12]wFMCommunicate OK [14:49:12]wFMCommunicate request_size=4 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 0D 03 02 [14:49:12]Write to MH i2c: E2 08 00 A7 2C 80 0D 03 02 00 00 00 00 4E [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 0B 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 0B 00 A7 2C 00 A8 F7 E4 17 32 2C FE E9 90 00 2E [14:49:12]RAPDU: A8 F7 E4 17 32 2C FE E9 90 00 [14:49:12]wFMCommunicate OK [14:49:12]SAM_PROTO_SignData done [14:49:12]FM_MakeSignedData done [14:49:12]CreateOFDProtocolMessage [14:49:12]wFMCommunicate request_size=4 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 11 00 00 [14:49:12]Write to MH i2c: E2 08 00 A8 2C 80 11 00 00 00 00 00 00 4E [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 17 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 17 00 A8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [14:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:49:12]wFMCommunicate OK [14:49:12]CreateOFDProtocolMessage done [14:49:12]OFDSenderStorePacket 73857 [14:49:12]StoreOFDPacket docnum=73857 [14:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 21 15 04 01 B5 FD 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B7 00 00 00 F4 03 04 00 68 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 20 01 00 35 04 06 00 3C 0E C9 40 14 3E A8 F7 E4 17 32 2C FE E9 [14:49:12]CheckFolder [14:49:12]dirname=/storage/ofd_packets [14:49:12]CheckFolder done [14:49:12]ProducePacketName [14:49:12]name=ofd_packets/00073857 [14:49:12]NVStorageSaveData ofd_packets/00073857 [14:49:12]File name is /storage/ofd_packets/00073857 [14:49:12]Write 298 bytes [14:49:12]NVStorageSaveData done [14:49:12]OFDSenderStorePacket done [14:49:12]KKMCreateOFDPacket done [14:49:12]NVStorageSaveData kkm_last_timestamp [14:49:12]File name is /storage/kkm_last_timestamp [14:49:12]Write 4 bytes [14:49:12]NVStorageSaveData done [14:49:12]ExternCall_PrintAddStr [14:49:12]wPrintStart [14:49:12]Write to MH i2c: 01 00 00 A9 2C D5 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: 01 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: 01 07 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: 01 07 00 A9 2C 00 00 00 00 00 FF 0F EA [14:49:12]RasterBufferAndPrint [14:49:12]line Счет N : (1)1963067 [14:49:12]line ИНН: 02508201610067 [14:49:12]line Контрольно-Кассовый Чек [14:49:12]line ПРОДАЖА [14:49:12]line ТРК (МРК, ГНК) : 31 [14:49:12]line Товар: 2710194210 [14:49:12]line ДТ-К-5 [14:49:12]line 13.130 * 76.20 [14:49:12]line = 1000.51 [14:49:12]line НДС 12% НСП 1% [14:49:12]line > о реализуемом товаре [14:49:12]line ОКРУГЛЕНИЕ: -0.51 [14:49:12]line ИТОГО: 1000.00 [14:49:12]line Внесено: 1000.00 [14:49:12]line СДАЧА: 0.00 [14:49:12]line НСП 1% : 8.85 [14:49:12]line НДС 12% : 106.25 [14:49:12]line Наличными: 1000.00 [14:49:12]line Безнал.: 0.00 [14:49:12]line Место: АЗС № 133 "Партнер Нефть" [14:49:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:49:12]line СНО: Общий режим [14:49:12]line Чек 183 20.10.2024 14:49 [14:49:12]line Смена: 170 ФФД: 1.0 [14:49:12]line ЗНМ: 0300000020 [14:49:12]line РНМ: 0000000000161154 [14:49:12]line Версия ККМ: v1.0 [14:49:12]line ФМ: 0000000000963323 [14:49:12]line ФД: 73857 [14:49:12]line ФПД: 66034203628606 [14:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144912&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73857&fm=66034203628606&tin=02508201610067®Number=0000000000161154&sum=100000 [14:49:12]OFD Sender: Processing packet 73857 [packets to send 15, broken 14] [14:49:12]ProducePacketName [14:49:12]name=ofd_packets/00073857 [14:49:12]OFD Sender: To server: pG, [14:49:12]CommunicateWithHost lk.salyk.kg:30040 [14:49:12]ConnectInit lk.salyk.kg [14:49:12]written 0, free lines is 4095 [14:49:12]Connected sock=10 [14:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 21 15 04 01 B5 FD 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B7 00 00 00 F4 03 04 00 68 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 20 01 00 35 04 06 00 3C 0E C9 40 14 3E A8 F7 E4 17 32 2C FE E9 [14:49:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1A AF 47 00 CE 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 39 36 33 33 32 33 10 04 04 00 81 20 01 00 F4 03 04 00 4D C1 14 67 B6 04 01 00 00 6F 18 A9 1E 9D C2 14 F4 [14:49:13]CommunicateWithHost err = 0 [14:49:13]CheckOFDResponse [14:49:13]1017 (14) - 77093643461234 [14:49:13]1041 (16) - 0000000000963323 [14:49:13]1040 (4) - 73857 [14:49:13]1012 (4) - 20.10.2024 08:37 [14:49:13]1206 (1) - 0 [14:49:13]OFD Sender: Remove packet 73857 [14:49:13]ProducePacketName [14:49:13]name=ofd_packets/00073857 [14:49:13]NVStorageDeleteData [14:49:13]Write to MH i2c: 01 00 00 D3 2C FF [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: 01 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: 01 07 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: 01 07 00 D3 2C 00 00 00 00 00 BA 0C CC [14:49:13]RasterBufferAndPrint [14:49:13]line [14:49:13]line [14:49:13]line [14:49:13]line [14:49:13]line [14:49:13]written 0, free lines is 3263 [14:49:13]MH_Cut [14:49:13]Write to MH i2c: D1 01 00 DA 2C 01 D8 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: D1 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: D1 01 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: D1 01 00 DA 2C 00 D7 [14:49:13]Write to MH i2c: 01 00 00 DB 2C 07 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]OFD Sender: No OFD packet to send [14:49:14]*** Cut start [14:49:14]*** Partial cut [14:49:14]*** CUTSNS_PIN = 1 [14:49:14]*** CUTSNS_PIN = 0 [14:49:14]*** Brake cut motor [14:49:14]Read from MH i2c: 01 [14:49:14]MH_I2C_Read... [14:49:14]*** Stop cut motor [14:49:14]*** Cut end [14:49:14]Read from MH i2c: 01 07 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 DB 2C 00 00 00 00 00 FF 0F 1C [14:49:14]process_action close_receipt done [14:49:14]requested_data is exist [14:49:14]produce_requested_data [14:49:14]requested_item fm.sn is exist - process it [14:49:14]wFMCommunicate request_size=4 [14:49:14]MH_SAM_APDU [14:49:14]CAPDU: 80 11 00 00 [14:49:14]Write to MH i2c: E2 08 00 DC 2C 80 11 00 00 00 00 00 00 82 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 17 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 17 00 DC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CF [14:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:49:14]wFMCommunicate OK [14:49:14]requested_item fd.num is exist - process it [14:49:14]SAM_PROTO_GetFieldsCounters [14:49:14]wFMCommunicate request_size=4 [14:49:14]MH_SAM_APDU [14:49:14]CAPDU: 80 13 00 00 [14:49:14]Write to MH i2c: E2 08 00 DD 2C 80 13 00 00 00 00 00 00 85 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 62 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 62 00 DD 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 81 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [14:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 81 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:14]wFMCommunicate OK [14:49:14]SAM_PROTO_GetFieldsCounters done [14:49:14]requested_item shift.num is exist - process it [14:49:14]requested_item shift.opened is exist - process it [14:49:14]req_shift_opened [14:49:14]FM_GetShiftState [14:49:14]SAM_PROTO_GetShiftState [14:49:14]wFMCommunicate request_size=4 [14:49:14]MH_SAM_APDU [14:49:14]CAPDU: 80 13 01 00 [14:49:14]Write to MH i2c: E2 08 00 DE 2C 80 13 01 00 00 00 00 00 87 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 0E 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 0E 00 DE 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CC [14:49:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:49:14]wFMCommunicate OK [14:49:14]SAM_PROTO_GetShiftState done [14:49:14]FM_GetShiftState done [14:49:14]req_shift_opened done [14:49:14]requested_item shift.open_date is exist - process it [14:49:14]req_shift_open_date [14:49:14]req_shift_open_date done [14:49:14]produce_requested_data done [14:49:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73857,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:49:14]process_action_free close_receipt [14:49:14]json_value_free [14:49:14]json_value_free done [14:49:14]process_json_proto returns [14:49:14]Send response to host [14:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73857,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:49:14]free response buf [14:49:14]execute_script done [14:49:14]execute_script returns [14:49:14]free content buf [14:49:14]Sock 8.Close socket [14:49:14]Sock 8.Thread stoped [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:40]accept exits with 9 [14:50:40]New connection [14:50:40]New thread 3067575652 created [14:50:40]Thread 3067432292 joined [14:50:40]Waiting for new connection... [14:50:40] Sock 9.Parse request [14:50:40]Sock 9.Check first char [14:50:40]Sock 9.First char is OK [14:50:40]request: POST /json_proto HTTP/1.0 [14:50:40]Method: POST [14:50:40]URL: /json_proto [14:50:40]Method is POST - this is cgi request [14:50:40]url: /json_proto [14:50:40]query_string will be loaded in cgi processing [14:50:40]execute_cgi json_proto POST (null) [14:50:40]execute_cgi path=json_proto method=POST [14:50:40]POST find Content-Length [14:50:40]Host: 172.17.44.196:8080 [14:50:40]Content-Length: 768 [14:50:40]Content-Type: application/json [14:50:40] [14:50:40]POST finish read [14:50:40]Found Content-Length = 768 [14:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "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: Mbank", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:40]execute_script... [14:50: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 : (1)1963063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "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: Mbank", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:40]POST & json_proto [14:50:40]process_json_proto [14:50:40]json parsed OK: [14:50:40]protocol is kg_v1.0 [14:50:40]action value=close_receipt [14:50:40]process_action close_receipt [14:50:40]cmd_close_receipt [14:50:40]MH_GetDate [14:50:40]Write to MH i2c: F0 00 00 DF 2C FA [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: F0 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: F0 09 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: F0 09 00 DF 2C 00 C2 18 15 67 E7 19 F8 65 B6 [14:50:40]GetLastDocTimeStamp 1729435752 [14:50:40]current date 1729435842 [14:50:40]FM_GetShiftState [14:50:40]SAM_PROTO_GetShiftState [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 13 01 00 [14:50:40]Write to MH i2c: E2 08 00 E0 2C 80 13 01 00 00 00 00 00 89 [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 0E 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 0E 00 E0 2C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CE [14:50:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:50:40]wFMCommunicate OK [14:50:40]SAM_PROTO_GetShiftState done [14:50:40]FM_GetShiftState done [14:50:40]opened in 1729384303 [14:50:40]opened+sec_in_day 1729470703 [14:50:40]quantity*price = 998982 [14:50:40]sum+1 = 998983 [14:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.82 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.82 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 184 20.10.2024 14:50 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73858 ФПД: 176873398388032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145043&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73858&fm=176873398388032&tin=02508201610067®Number=0000000000161154&sum=998982 [14:50:42]StoreToDocumentArchive [14:50:42]shift 170 fd 73858 [14:50:42]save to /storage/0170/doc_00073858 [14:50:42]save last doc name /storage/0170/doc_00073858 to /storage/kkm_last_doc_name [14:50:42]save OK [14:50:42]Clear old archive folders... [14:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:50:42]tlvbuf is 00331630 [14:50:42]SAM_PROTO_ClearQueue [14:50:42]wFMCommunicate request_size=4 [14:50:42]MH_SAM_APDU [14:50:42]CAPDU: 80 09 00 00 [14:50:42]Write to MH i2c: E2 08 00 ED 2C 80 09 00 00 00 00 00 00 8B [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:42]Read from MH i2c: E2 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [14:50:42]RAPDU: 90 00 [14:50:42]wFMCommunicate OK [14:50:42]SAM_PROTO_ClearQueue done [14:50:42]KKMCreateOFDPacket [14:50:42]OFDProtocolAddRootSTLVToBuf [14:50:42]FM_MakeSignedData [14:50:42]FM_MakeSignedData [14:50:42]SAM_PROTO_SignData [14:50:42]wFMCommunicate request_size=4 [14:50:42]MH_SAM_APDU [14:50:42]CAPDU: 80 0D 01 02 [14:50:42]Write to MH i2c: E2 08 00 EE 2C 80 0D 01 02 00 00 00 00 93 [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:42]Read from MH i2c: E2 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [14:50:42]RAPDU: 90 00 [14:50:42]wFMCommunicate OK [14:50:42]wFMCommunicate request_size=255 [14:50:42]MH_SAM_APDU [14:50: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 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C3 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 20 01 00 35 04 06 00 A0 DD 8C 14 [14:50:42]Write to MH i2c: E2 02 01 EF 2C 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 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C3 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 20 01 00 35 04 06 00 A0 DD 8C 14 00 00 C4 [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:42]Read from MH i2c: E2 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 EF 2C 00 90 00 8F [14:50:42]RAPDU: 90 00 [14:50:42]wFMCommunicate OK [14:50:42]wFMCommunicate request_size=7 [14:50:42]MH_SAM_APDU [14:50:42]CAPDU: 80 0D 02 02 02 C5 40 [14:50:42]Write to MH i2c: E2 0A 00 F0 2C 80 0D 02 02 02 00 C5 40 00 00 9F [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:42]Read from MH i2c: E2 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 03 00 F0 2C 00 90 00 90 [14:50:42]RAPDU: 90 00 [14:50:42]wFMCommunicate OK [14:50:42]wFMCommunicate request_size=4 [14:50:42]MH_SAM_APDU [14:50:42]CAPDU: 80 0D 03 02 [14:50:42]Write to MH i2c: E2 08 00 F1 2C 80 0D 03 02 00 00 00 00 98 [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:42]Read from MH i2c: E2 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 0B 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 0B 00 F1 2C 00 FF 18 25 CF 96 B2 5A BA 90 00 00 [14:50:42]RAPDU: FF 18 25 CF 96 B2 5A BA 90 00 [14:50:42]wFMCommunicate OK [14:50:42]SAM_PROTO_SignData done [14:50:42]FM_MakeSignedData done [14:50:42]CreateOFDProtocolMessage [14:50:42]wFMCommunicate request_size=4 [14:50:42]MH_SAM_APDU [14:50:42]CAPDU: 80 11 00 00 [14:50:42]Write to MH i2c: E2 08 00 F2 2C 80 11 00 00 00 00 00 00 98 [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:42]Read from MH i2c: E2 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 17 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: E2 17 00 F2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [14:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:50:42]wFMCommunicate OK [14:50:42]CreateOFDProtocolMessage done [14:50:42]OFDSenderStorePacket 73858 [14:50:42]StoreOFDPacket docnum=73858 [14:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 95 D0 04 01 25 0C 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 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C3 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 20 01 00 35 04 06 00 A0 DD 8C 14 C5 40 FF 18 25 CF 96 B2 5A BA [14:50:42]CheckFolder [14:50:42]dirname=/storage/ofd_packets [14:50:42]CheckFolder done [14:50:42]ProducePacketName [14:50:42]name=ofd_packets/00073858 [14:50:42]NVStorageSaveData ofd_packets/00073858 [14:50:42]File name is /storage/ofd_packets/00073858 [14:50:42]Write 298 bytes [14:50:42]NVStorageSaveData done [14:50:42]OFDSenderStorePacket done [14:50:42]KKMCreateOFDPacket done [14:50:42]NVStorageSaveData kkm_last_timestamp [14:50:42]File name is /storage/kkm_last_timestamp [14:50:42]Write 4 bytes [14:50:42]NVStorageSaveData done [14:50:42]ExternCall_PrintAddStr [14:50:42]wPrintStart [14:50:42]Write to MH i2c: 01 00 00 F3 2C 1F [14:50:42]Write i2c OK [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: 01 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: 01 07 00 [14:50:42]MH_I2C_Read... [14:50:42]Read from MH i2c: 01 07 00 F3 2C 00 00 00 00 00 FF 0F 34 [14:50:42]RasterBufferAndPrint [14:50:42]line Счет N : (1)1963063 [14:50:42]line ИНН: 02508201610067 [14:50:42]line Контрольно-Кассовый Чек [14:50:42]line ПРОДАЖА [14:50:42]line ТРК (МРК, ГНК) : 21 [14:50:42]line Товар: 2710194210 [14:50:42]line ДТ-К-5 [14:50:42]line 131.100 * 76.20 [14:50:42]line = 9989.82 [14:50:42]line НДС 12% НСП 1% [14:50:42]line > о реализуемом товаре [14:50:42]line ИТОГО: 9989.82 [14:50:42]line НСП 1% : 88.40 [14:50:42]line НДС 12% : 1060.87 [14:50:42]line Наличными: 0.00 [14:50:42]line Безнал.: 9989.82 [14:50:42]line Место: АЗС № 133 "Партнер Нефть" [14:50:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:50:42]line СНО: Общий режим [14:50:42]line Чек 184 20.10.2024 14:50 [14:50:42]line Смена: 170 ФФД: 1.0 [14:50:42]line ЗНМ: 0300000020 [14:50:42]line РНМ: 0000000000161154 [14:50:42]line Версия ККМ: v1.0 [14:50:42]line Платежная система: Mbank [14:50:42]line ФМ: 0000000000963323 [14:50:42]line ФД: 73858 [14:50:42]line ФПД: 176873398388032 [14:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145043&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73858&fm=176873398388032&tin=02508201610067®Number=0000000000161154&sum=998982 [14:50:42]OFD Sender: Processing packet 73858 [packets to send 15, broken 14] [14:50:42]ProducePacketName [14:50:42]name=ofd_packets/00073858 [14:50:42]OFD Sender: To server: pG, [14:50:42]CommunicateWithHost lk.salyk.kg:30040 [14:50:42]ConnectInit lk.salyk.kg [14:50:42]written 0, free lines is 4095 [14:50:42]Connected sock=10 [14:50:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 95 D0 04 01 25 0C 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 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C3 18 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 20 01 00 35 04 06 00 A0 DD 8C 14 C5 40 FF 18 25 CF 96 B2 5A BA [14:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 74 D6 47 00 BB 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 39 36 33 33 32 33 10 04 04 00 82 20 01 00 F4 03 04 00 A7 C1 14 67 B6 04 01 00 00 D6 94 BB F0 DE CD 10 92 [14:50:43]CommunicateWithHost err = 0 [14:50:43]CheckOFDResponse [14:50:43]1017 (14) - 77093643461234 [14:50:43]1041 (16) - 0000000000963323 [14:50:43]1040 (4) - 73858 [14:50:43]1012 (4) - 20.10.2024 08:39 [14:50:43]1206 (1) - 0 [14:50:43]OFD Sender: Remove packet 73858 [14:50:43]ProducePacketName [14:50:43]name=ofd_packets/00073858 [14:50:43]NVStorageDeleteData [14:50:43]Write to MH i2c: 01 00 00 1B 2D 48 [14:50:43]Write i2c OK [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: 01 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: 01 07 00 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: 01 07 00 1B 2D 00 00 00 00 00 EE 0C 49 [14:50:43]RasterBufferAndPrint [14:50:43]line [14:50:43]line [14:50:43]line [14:50:43]line [14:50:43]line [14:50:43]written 0, free lines is 3315 [14:50:43]MH_Cut [14:50:43]Write to MH i2c: D1 01 00 22 2D 01 21 [14:50:43]Write i2c OK [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: D1 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: D1 01 00 [14:50:43]MH_I2C_Read... [14:50:43]Read from MH i2c: D1 01 00 22 2D 00 20 [14:50:43]Write to MH i2c: 01 00 00 23 2D 50 [14:50:43]Write i2c OK [14:50:43]MH_I2C_Read... [14:50:43]OFD Sender: No OFD packet to send [14:50:44]*** Cut start [14:50:44]*** Partial cut [14:50:44]*** CUTSNS_PIN = 1 [14:50:44]*** CUTSNS_PIN = 0 [14:50:44]*** Brake cut motor [14:50:44]Read from MH i2c: 01 [14:50:44]MH_I2C_Read... [14:50:44]*** Stop cut motor [14:50:44]*** Cut end [14:50:44]Read from MH i2c: 01 07 00 [14:50:44]MH_I2C_Read... [14:50:44]Read from MH i2c: 01 07 00 23 2D 00 00 00 00 00 FF 0F 65 [14:50:44]process_action close_receipt done [14:50:44]requested_data is exist [14:50:44]produce_requested_data [14:50:44]requested_item fm.sn is exist - process it [14:50:44]wFMCommunicate request_size=4 [14:50:44]MH_SAM_APDU [14:50:44]CAPDU: 80 11 00 00 [14:50:44]Write to MH i2c: E2 08 00 24 2D 80 11 00 00 00 00 00 00 CB [14:50:44]Write i2c OK [14:50:44]MH_I2C_Read... [14:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:44]Read from MH i2c: E2 [14:50:44]MH_I2C_Read... [14:50:44]Read from MH i2c: E2 17 00 [14:50:44]MH_I2C_Read... [14:50:44]Read from MH i2c: E2 17 00 24 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [14:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:50:44]wFMCommunicate OK [14:50:44]requested_item fd.num is exist - process it [14:50:44]SAM_PROTO_GetFieldsCounters [14:50:44]wFMCommunicate request_size=4 [14:50:44]MH_SAM_APDU [14:50:44]CAPDU: 80 13 00 00 [14:50:44]Write to MH i2c: E2 08 00 25 2D 80 13 00 00 00 00 00 00 CE [14:50:44]Write i2c OK [14:50:44]MH_I2C_Read... [14:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:44]Read from MH i2c: E2 [14:50:44]MH_I2C_Read... [14:50:44]Read from MH i2c: E2 62 00 [14:50:44]MH_I2C_Read... [14:50:44]Read from MH i2c: E2 62 00 25 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 82 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [14:50:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 82 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:44]wFMCommunicate OK [14:50:44]SAM_PROTO_GetFieldsCounters done [14:50:44]requested_item shift.num is exist - process it [14:50:44]requested_item shift.opened is exist - process it [14:50:44]req_shift_opened [14:50:44]FM_GetShiftState [14:50:44]SAM_PROTO_GetShiftState [14:50:44]wFMCommunicate request_size=4 [14:50:44]MH_SAM_APDU [14:50:44]CAPDU: 80 13 01 00 [14:50:44]Write to MH i2c: E2 08 00 26 2D 80 13 01 00 00 00 00 00 D0 [14:50:44]Write i2c OK [14:50:44]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 0E 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 0E 00 26 2D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 15 [14:50:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:50:45]wFMCommunicate OK [14:50:45]SAM_PROTO_GetShiftState done [14:50:45]FM_GetShiftState done [14:50:45]req_shift_opened done [14:50:45]requested_item shift.open_date is exist - process it [14:50:45]req_shift_open_date [14:50:45]req_shift_open_date done [14:50:45]produce_requested_data done [14:50:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73858,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:50:45]process_action_free close_receipt [14:50:45]json_value_free [14:50:45]json_value_free done [14:50:45]process_json_proto returns [14:50:45]Send response to host [14:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73858,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:50:45]free response buf [14:50:45]execute_script done [14:50:45]execute_script returns [14:50:45]free content buf [14:50:45]Sock 9.Close socket [14:50:45]Sock 9.Thread stoped [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:44]accept exits with 8 [14:51:44]New connection [14:51:44]New thread 3067432292 created [14:51:44]Thread 3067575652 joined [14:51:44]Waiting for new connection... [14:51:44] Sock 8.Parse request [14:51:44]Sock 8.Check first char [14:51:44]Sock 8.First char is OK [14:51:44]request: POST /json_proto HTTP/1.0 [14:51:44]Method: POST [14:51:44]URL: /json_proto [14:51:44]Method is POST - this is cgi request [14:51:44]url: /json_proto [14:51:44]query_string will be loaded in cgi processing [14:51:44]execute_cgi json_proto POST (null) [14:51:44]execute_cgi path=json_proto method=POST [14:51:44]POST find Content-Length [14:51:44]Host: 172.17.44.196:8080 [14:51:44]Content-Length: 981 [14:51:44]Content-Type: application/json [14:51:44] [14:51:44]POST finish read [14:51:44]Found Content-Length = 981 [14:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:44]execute_script... [14:51: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 : (1)1963066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:44]POST & json_proto [14:51:44]process_json_proto [14:51:44]json parsed OK: [14:51:44]protocol is kg_v1.0 [14:51:44]action value=close_receipt [14:51:44]process_action close_receipt [14:51:44]cmd_close_receipt [14:51:44]MH_GetDate [14:51:44]Write to MH i2c: F0 00 00 27 2D 43 [14:51:44]Write i2c OK [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: F0 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: F0 09 00 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: F0 09 00 27 2D 00 02 19 15 67 E7 19 F8 65 40 [14:51:44]GetLastDocTimeStamp 1729435843 [14:51:44]current date 1729435906 [14:51:44]FM_GetShiftState [14:51:44]SAM_PROTO_GetShiftState [14:51:44]wFMCommunicate request_size=4 [14:51:44]MH_SAM_APDU [14:51:44]CAPDU: 80 13 01 00 [14:51:44]Write to MH i2c: E2 08 00 28 2D 80 13 01 00 00 00 00 00 D2 [14:51:44]Write i2c OK [14:51:44]MH_I2C_Read... [14:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:44]Read from MH i2c: E2 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: E2 0E 00 [14:51:44]MH_I2C_Read... [14:51:44]Read from MH i2c: E2 0E 00 28 2D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 17 [14:51:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:51:44]wFMCommunicate OK [14:51:44]SAM_PROTO_GetShiftState done [14:51:44]FM_GetShiftState done [14:51:44]opened in 1729384303 [14:51:44]opened+sec_in_day 1729470703 [14:51:44]quantity*price = 800052 [14:51:44]sum+1 = 800054 [14:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 185 20.10.2024 14:51 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 106.39 сом ФМ: 0000000000963323 ФД: 73859 ФПД: 10129657591281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145146&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73859&fm=10129657591281&tin=02508201610067®Number=0000000000161154&sum=800000 [14:51:45]StoreToDocumentArchive [14:51:45]shift 170 fd 73859 [14:51:45]save to /storage/0170/doc_00073859 [14:51:45]save last doc name /storage/0170/doc_00073859 to /storage/kkm_last_doc_name [14:51:45]save OK [14:51:45]Clear old archive folders... [14:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:51:45]tlvbuf is 00359D30 [14:51:45]SAM_PROTO_ClearQueue [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 09 00 00 [14:51:45]Write to MH i2c: E2 08 00 35 2D 80 09 00 00 00 00 00 00 D4 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 35 2D 00 90 00 D6 [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]SAM_PROTO_ClearQueue done [14:51:45]KKMCreateOFDPacket [14:51:45]OFDProtocolAddRootSTLVToBuf [14:51:45]FM_MakeSignedData [14:51:45]FM_MakeSignedData [14:51:45]SAM_PROTO_SignData [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 01 02 [14:51:45]Write to MH i2c: E2 08 00 36 2D 80 0D 01 02 00 00 00 00 DC [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 36 2D 00 90 00 D7 [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]wFMCommunicate request_size=255 [14:51:45]MH_SAM_APDU [14:51:45]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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 20 01 00 35 04 06 00 09 36 7E A4 [14:51:45]Write to MH i2c: E2 02 01 37 2D 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 20 01 00 35 04 06 00 09 36 7E A4 00 00 C6 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]wFMCommunicate request_size=7 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 02 02 02 75 F1 [14:51:45]Write to MH i2c: E2 0A 00 38 2D 80 0D 02 02 02 00 75 F1 00 00 49 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 03 00 38 2D 00 90 00 D9 [14:51:45]RAPDU: 90 00 [14:51:45]wFMCommunicate OK [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 0D 03 02 [14:51:45]Write to MH i2c: E2 08 00 39 2D 80 0D 03 02 00 00 00 00 E1 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 0B 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 0B 00 39 2D 00 13 E1 82 94 80 04 23 F9 90 00 8C [14:51:45]RAPDU: 13 E1 82 94 80 04 23 F9 90 00 [14:51:45]wFMCommunicate OK [14:51:45]SAM_PROTO_SignData done [14:51:45]FM_MakeSignedData done [14:51:45]CreateOFDProtocolMessage [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 11 00 00 [14:51:45]Write to MH i2c: E2 08 00 3A 2D 80 11 00 00 00 00 00 00 E1 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 17 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 17 00 3A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2E [14:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:51:45]wFMCommunicate OK [14:51:45]CreateOFDProtocolMessage done [14:51:45]OFDSenderStorePacket 73859 [14:51:45]StoreOFDPacket docnum=73859 [14:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 CD 59 04 01 08 38 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 20 01 00 35 04 06 00 09 36 7E A4 75 F1 13 E1 82 94 80 04 23 F9 [14:51:45]CheckFolder [14:51:45]dirname=/storage/ofd_packets [14:51:45]CheckFolder done [14:51:45]ProducePacketName [14:51:45]name=ofd_packets/00073859 [14:51:45]NVStorageSaveData ofd_packets/00073859 [14:51:45]File name is /storage/ofd_packets/00073859 [14:51:45]Write 298 bytes [14:51:45]NVStorageSaveData done [14:51:45]OFDSenderStorePacket done [14:51:45]KKMCreateOFDPacket done [14:51:45]NVStorageSaveData kkm_last_timestamp [14:51:45]File name is /storage/kkm_last_timestamp [14:51:45]Write 4 bytes [14:51:45]NVStorageSaveData done [14:51:45]ExternCall_PrintAddStr [14:51:45]wPrintStart [14:51:45]Write to MH i2c: 01 00 00 3B 2D 68 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: 01 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: 01 07 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: 01 07 00 3B 2D 00 00 00 00 00 FF 0F 7D [14:51:45]RasterBufferAndPrint [14:51:45]line Счет N : (1)1963066 [14:51:45]line ИНН: 02508201610067 [14:51:45]line Контрольно-Кассовый Чек [14:51:45]line ПРОДАЖА [14:51:45]line ТРК (МРК, ГНК) : 11 [14:51:45]line Товар: 2710194210 [14:51:45]line ДТ-К-5 [14:51:45]line 106.390 * 75.20 [14:51:45]line = 8000.53 [14:51:45]line НДС 12% НСП 1% [14:51:45]line > о реализуемом товаре [14:51:45]line ОКРУГЛЕНИЕ: -0.53 [14:51:45]line ИТОГО: 8000.00 [14:51:45]line Внесено: 8000.00 [14:51:45]line СДАЧА: 0.00 [14:51:45]line НСП 1% : 70.80 [14:51:45]line НДС 12% : 849.61 [14:51:45]line Наличными: 8000.00 [14:51:45]line Безнал.: 0.00 [14:51:45]line Место: АЗС № 133 "Партнер Нефть" [14:51:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:51:45]line СНО: Общий режим [14:51:45]line Чек 185 20.10.2024 14:51 [14:51:45]line Смена: 170 ФФД: 1.0 [14:51:45]line ЗНМ: 0300000020 [14:51:45]line РНМ: 0000000000161154 [14:51:45]line Версия ККМ: v1.0 [14:51:45]line [14:51:45]line Дисконтная программа [14:51:45]line ДТ [14:51:45]line номер 133 [14:51:45]line сэкономлено 106.39 сом [14:51:45]line ФМ: 0000000000963323 [14:51:45]line ФД: 73859 [14:51:45]line ФПД: 10129657591281 [14:51:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145146&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73859&fm=10129657591281&tin=02508201610067®Number=0000000000161154&sum=800000 [14:51:45]written 0, free lines is 4095 [14:51:46]OFD Sender: Processing packet 73859 [packets to send 15, broken 14] [14:51:46]ProducePacketName [14:51:46]name=ofd_packets/00073859 [14:51:46]OFD Sender: To server: pG, [14:51:46]CommunicateWithHost lk.salyk.kg:30040 [14:51:46]ConnectInit lk.salyk.kg [14:51:46]Connected sock=10 [14:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 CD 59 04 01 08 38 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 20 01 00 35 04 06 00 09 36 7E A4 75 F1 13 E1 82 94 80 04 23 F9 [14:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DF 6F 47 00 AF 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 39 36 33 33 32 33 10 04 04 00 83 20 01 00 F4 03 04 00 E6 C1 14 67 B6 04 01 00 00 7B EC D3 E0 F8 05 AE 96 [14:51:46]CommunicateWithHost err = 0 [14:51:46]CheckOFDResponse [14:51:46]1017 (14) - 77093643461234 [14:51:46]1041 (16) - 0000000000963323 [14:51:46]1040 (4) - 73859 [14:51:46]1012 (4) - 20.10.2024 08:40 [14:51:46]1206 (1) - 0 [14:51:46]OFD Sender: Remove packet 73859 [14:51:46]ProducePacketName [14:51:46]name=ofd_packets/00073859 [14:51:46]NVStorageDeleteData [14:51:46]Write to MH i2c: 01 00 00 6A 2D 97 [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: 01 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: 01 07 00 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: 01 07 00 6A 2D 00 00 00 00 00 53 0C FD [14:51:46]RasterBufferAndPrint [14:51:46]line [14:51:46]line [14:51:46]line [14:51:46]line [14:51:46]line [14:51:46]written 0, free lines is 3160 [14:51:46]MH_Cut [14:51:46]Write to MH i2c: D1 01 00 71 2D 01 70 [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: D1 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: D1 01 00 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: D1 01 00 71 2D 00 6F [14:51:46]Write to MH i2c: 01 00 00 72 2D 9F [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]OFD Sender: No OFD packet to send [14:51:47]*** Cut start [14:51:47]*** Partial cut [14:51:47]*** CUTSNS_PIN = 1 [14:51:47]*** CUTSNS_PIN = 0 [14:51:47]*** Brake cut motor [14:51:47]Read from MH i2c: 01 [14:51:47]MH_I2C_Read... [14:51:47]*** Stop cut motor [14:51:47]*** Cut end [14:51:47]Read from MH i2c: 01 07 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 FF 0F B4 [14:51:47]process_action close_receipt done [14:51:47]requested_data is exist [14:51:47]produce_requested_data [14:51:47]requested_item fm.sn is exist - process it [14:51:47]wFMCommunicate request_size=4 [14:51:47]MH_SAM_APDU [14:51:47]CAPDU: 80 11 00 00 [14:51:47]Write to MH i2c: E2 08 00 73 2D 80 11 00 00 00 00 00 00 1A [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 17 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 17 00 73 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [14:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:51:48]wFMCommunicate OK [14:51:48]requested_item fd.num is exist - process it [14:51:48]SAM_PROTO_GetFieldsCounters [14:51:48]wFMCommunicate request_size=4 [14:51:48]MH_SAM_APDU [14:51:48]CAPDU: 80 13 00 00 [14:51:48]Write to MH i2c: E2 08 00 74 2D 80 13 00 00 00 00 00 00 1D [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 62 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 62 00 74 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 83 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [14:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 83 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:48]wFMCommunicate OK [14:51:48]SAM_PROTO_GetFieldsCounters done [14:51:48]requested_item shift.num is exist - process it [14:51:48]requested_item shift.opened is exist - process it [14:51:48]req_shift_opened [14:51:48]FM_GetShiftState [14:51:48]SAM_PROTO_GetShiftState [14:51:48]wFMCommunicate request_size=4 [14:51:48]MH_SAM_APDU [14:51:48]CAPDU: 80 13 01 00 [14:51:48]Write to MH i2c: E2 08 00 75 2D 80 13 01 00 00 00 00 00 1F [14:51:48]Write i2c OK [14:51:48]MH_I2C_Read... [14:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:48]Read from MH i2c: E2 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 0E 00 [14:51:48]MH_I2C_Read... [14:51:48]Read from MH i2c: E2 0E 00 75 2D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 64 [14:51:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:51:48]wFMCommunicate OK [14:51:48]SAM_PROTO_GetShiftState done [14:51:48]FM_GetShiftState done [14:51:48]req_shift_opened done [14:51:48]requested_item shift.open_date is exist - process it [14:51:48]req_shift_open_date [14:51:48]req_shift_open_date done [14:51:48]produce_requested_data done [14:51:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73859,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:51:48]process_action_free close_receipt [14:51:48]json_value_free [14:51:48]json_value_free done [14:51:48]process_json_proto returns [14:51:48]Send response to host [14:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73859,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:51:48]free response buf [14:51:48]execute_script done [14:51:48]execute_script returns [14:51:48]free content buf [14:51:48]Sock 8.Close socket [14:51:48]Sock 8.Thread stoped [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]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:23]int [14:53:23]Write to MH i2c: 01 00 00 76 2D A3 [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 76 2D 00 00 00 00 00 FF 0F B8 [14:53:23]state=0 [14:53:23]int [14:53:23]Write to MH i2c: 01 00 00 77 2D A4 [14:53:23]*** FLAG_PRN_PAP1 set [14:53:23]*** FLAG_PRN_PAP1 reset [14:53:23]*** FLAG_PRN_PAP1 set [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 77 2D 00 01 00 00 00 FF 0F BA [14:53:23]state=0 [14:53:23]No paper [14:53:23]int [14:53:23]Write to MH i2c: 01 00 00 78 2D A5 [14:53:23]*** FLAG_PRN_PAP2 set [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: 01 07 00 78 2D 00 03 00 00 00 FF 0F BD [14:53:23]state=0 [14:53:23]No paper [14:53:23]Cover opened [14:53:25]int [14:53:25]Write to MH i2c: 01 00 00 79 2D A6 [14:53:25]Write i2c OK [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: 01 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: 01 07 00 [14:53:25]MH_I2C_Read... [14:53:25]*** FLAG_PRN_PAP2 reset [14:53:25]*** FLAG_PRN_PAP1 reset [14:53:25]Read from MH i2c: 01 07 00 79 2D 00 00 00 00 00 FF 0F BB [14:53:25]state=3 [14:53:25]Cover closed [14:53:26]OFD Sender: No OFD packet to send [14:53:28]accept exits with 9 [14:53:28]New connection [14:53:28]New thread 3067575652 created [14:53:28]Thread 3067432292 joined [14:53:28]Waiting for new connection... [14:53:28] Sock 9.Parse request [14:53:28]Sock 9.Check first char [14:53:28]Sock 9.First char is OK [14:53:28]request: POST /json_proto HTTP/1.0 [14:53:28]Method: POST [14:53:28]URL: /json_proto [14:53:28]Method is POST - this is cgi request [14:53:28]url: /json_proto [14:53:28]query_string will be loaded in cgi processing [14:53:28]execute_cgi json_proto POST (null) [14:53:28]execute_cgi path=json_proto method=POST [14:53:28]POST find Content-Length [14:53:28]Host: 172.17.44.196:8080 [14:53:28]Content-Length: 683 [14:53:28]Content-Type: application/json [14:53:28] [14:53:28]POST finish read [14:53:28]Found Content-Length = 683 [14:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963068", "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" : 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" ] } } [14:53:28]execute_script... [14:53: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 : (1)1963068", "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" : 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" ] } } [14:53:28]POST & json_proto [14:53:28]process_json_proto [14:53:28]json parsed OK: [14:53:28]protocol is kg_v1.0 [14:53:28]action value=close_receipt [14:53:28]process_action close_receipt [14:53:28]cmd_close_receipt [14:53:28]MH_GetDate [14:53:28]Write to MH i2c: F0 00 00 7A 2D 96 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 09 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 09 00 7A 2D 00 6A 19 15 67 E7 19 F8 65 FB [14:53:28]GetLastDocTimeStamp 1729435906 [14:53:28]current date 1729436010 [14:53:28]FM_GetShiftState [14:53:28]SAM_PROTO_GetShiftState [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 13 01 00 [14:53:28]Write to MH i2c: E2 08 00 7B 2D 80 13 01 00 00 00 00 00 25 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0E 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0E 00 7B 2D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6A [14:53:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_GetShiftState done [14:53:28]FM_GetShiftState done [14:53:28]opened in 1729384303 [14:53:28]opened+sec_in_day 1729470703 [14:53:28]quantity*price = 100015 [14:53:28]sum+1 = 100017 [14:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 186 20.10.2024 14:53 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73860 ФПД: 113572693796183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145331&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73860&fm=113572693796183&tin=02508201610067®Number=0000000000161154&sum=100000 [14:53:29]StoreToDocumentArchive [14:53:29]shift 170 fd 73860 [14:53:29]save to /storage/0170/doc_00073860 [14:53:29]save last doc name /storage/0170/doc_00073860 to /storage/kkm_last_doc_name [14:53:29]save OK [14:53:29]Clear old archive folders... [14:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:30]tlvbuf is 00390AC0 [14:53:30]SAM_PROTO_ClearQueue [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 09 00 00 [14:53:30]Write to MH i2c: E2 08 00 88 2D 80 09 00 00 00 00 00 00 27 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 88 2D 00 90 00 29 [14:53:30]RAPDU: 90 00 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_ClearQueue done [14:53:30]KKMCreateOFDPacket [14:53:30]OFDProtocolAddRootSTLVToBuf [14:53:30]FM_MakeSignedData [14:53:30]FM_MakeSignedData [14:53:30]SAM_PROTO_SignData [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 0D 01 02 [14:53:30]Write to MH i2c: E2 08 00 89 2D 80 0D 01 02 00 00 00 00 2F [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 89 2D 00 90 00 2A [14:53:30]RAPDU: 90 00 [14:53:30]wFMCommunicate OK [14:53:30]wFMCommunicate request_size=255 [14:53:30]MH_SAM_APDU [14:53:30]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 BA 00 00 00 F4 03 04 00 6B 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 20 01 00 35 04 06 00 67 [14:53:30]Write to MH i2c: E2 02 01 8A 2D 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 BA 00 00 00 F4 03 04 00 6B 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 20 01 00 35 04 06 00 67 00 00 1B [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 8A 2D 00 90 00 2B [14:53:30]RAPDU: 90 00 [14:53:30]wFMCommunicate OK [14:53:30]wFMCommunicate request_size=10 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 0D 02 02 05 4B 34 11 E5 57 [14:53:30]Write to MH i2c: E2 0D 00 8B 2D 80 0D 02 02 05 00 4B 34 11 E5 57 00 00 08 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 8B 2D 00 90 00 2C [14:53:30]RAPDU: 90 00 [14:53:30]wFMCommunicate OK [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 0D 03 02 [14:53:30]Write to MH i2c: E2 08 00 8C 2D 80 0D 03 02 00 00 00 00 34 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0B 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0B 00 8C 2D 00 F4 71 99 A2 74 D7 65 52 90 00 D7 [14:53:30]RAPDU: F4 71 99 A2 74 D7 65 52 90 00 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_SignData done [14:53:30]FM_MakeSignedData done [14:53:30]CreateOFDProtocolMessage [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 11 00 00 [14:53:30]Write to MH i2c: E2 08 00 8D 2D 80 11 00 00 00 00 00 00 34 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 8D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 81 [14:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:53:30]wFMCommunicate OK [14:53:30]CreateOFDProtocolMessage done [14:53:30]OFDSenderStorePacket 73860 [14:53:30]StoreOFDPacket docnum=73860 [14:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 59 61 07 01 9D 78 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 BA 00 00 00 F4 03 04 00 6B 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 20 01 00 35 04 06 00 67 4B 34 11 E5 57 F4 71 99 A2 74 D7 65 52 [14:53:30]CheckFolder [14:53:30]dirname=/storage/ofd_packets [14:53:30]CheckFolder done [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00073860 [14:53:30]NVStorageSaveData ofd_packets/00073860 [14:53:30]File name is /storage/ofd_packets/00073860 [14:53:30]Write 301 bytes [14:53:30]NVStorageSaveData done [14:53:30]OFDSenderStorePacket done [14:53:30]KKMCreateOFDPacket done [14:53:30]NVStorageSaveData kkm_last_timestamp [14:53:30]File name is /storage/kkm_last_timestamp [14:53:30]Write 4 bytes [14:53:30]NVStorageSaveData done [14:53:30]ExternCall_PrintAddStr [14:53:30]wPrintStart [14:53:30]Write to MH i2c: 01 00 00 8E 2D BB [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 8E 2D 00 00 00 00 00 FF 0F D0 [14:53:30]RasterBufferAndPrint [14:53:30]line Счет N : (1)1963068 [14:53:30]line ИНН: 02508201610067 [14:53:30]line Контрольно-Кассовый Чек [14:53:30]line ПРОДАЖА [14:53:30]line ТРК (МРК, ГНК) : 53 [14:53:30]line Товар: 2710124130 [14:53:30]line Аи-92-К-5 [14:53:30]line 14.950 * 66.90 [14:53:30]line = 1000.16 [14:53:30]line НДС 12% НСП 1% [14:53:30]line > о реализуемом товаре [14:53:30]line ОКРУГЛЕНИЕ: -0.16 [14:53:30]line ИТОГО: 1000.00 [14:53:30]line Внесено: 1000.00 [14:53:30]line СДАЧА: 0.00 [14:53:30]line НСП 1% : 8.85 [14:53:30]line НДС 12% : 106.21 [14:53:30]line Наличными: 1000.00 [14:53:30]line Безнал.: 0.00 [14:53:30]line Место: АЗС № 133 "Партнер Нефть" [14:53:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:53:30]line СНО: Общий режим [14:53:30]line Чек 186 20.10.2024 14:53 [14:53:30]line Смена: 170 ФФД: 1.0 [14:53:30]line ЗНМ: 0300000020 [14:53:30]line РНМ: 0000000000161154 [14:53:30]line Версия ККМ: v1.0 [14:53:30]line ФМ: 0000000000963323 [14:53:30]line ФД: 73860 [14:53:30]line ФПД: 113572693796183 [14:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145331&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73860&fm=113572693796183&tin=02508201610067®Number=0000000000161154&sum=100000 [14:53:30]OFD Sender: Processing packet 73860 [packets to send 15, broken 14] [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00073860 [14:53:30]OFD Sender: To server: pG, [14:53:30]CommunicateWithHost lk.salyk.kg:30040 [14:53:30]ConnectInit lk.salyk.kg [14:53:30]written 0, free lines is 4095 [14:53:30]Connected sock=10 [14:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 59 61 07 01 9D 78 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 BA 00 00 00 F4 03 04 00 6B 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 20 01 00 35 04 06 00 67 4B 34 11 E5 57 F4 71 99 A2 74 D7 65 52 [14:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 46 C6 47 00 06 94 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 39 36 33 33 32 33 10 04 04 00 84 20 01 00 F4 03 04 00 4F C2 14 67 B6 04 01 00 00 49 C3 2E BE 59 90 A7 7A [14:53:31]CommunicateWithHost err = 0 [14:53:31]CheckOFDResponse [14:53:31]1017 (14) - 77093643461234 [14:53:31]1041 (16) - 0000000000963323 [14:53:31]1040 (4) - 73860 [14:53:31]1012 (4) - 20.10.2024 08:41 [14:53:31]1206 (1) - 0 [14:53:31]OFD Sender: Remove packet 73860 [14:53:31]ProducePacketName [14:53:31]name=ofd_packets/00073860 [14:53:31]NVStorageDeleteData [14:53:31]Write to MH i2c: 01 00 00 B8 2D E5 [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 07 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 07 00 B8 2D 00 00 00 00 00 B1 0C A9 [14:53:31]RasterBufferAndPrint [14:53:31]line [14:53:31]line [14:53:31]line [14:53:31]line [14:53:31]line [14:53:31]written 0, free lines is 3253 [14:53:31]MH_Cut [14:53:31]Write to MH i2c: D1 01 00 BF 2D 01 BE [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: D1 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: D1 01 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: D1 01 00 BF 2D 00 BD [14:53:31]Write to MH i2c: 01 00 00 C0 2D ED [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]OFD Sender: No OFD packet to send [14:53:32]*** Cut start [14:53:32]*** Partial cut [14:53:32]*** CUTSNS_PIN = 1 [14:53:32]*** CUTSNS_PIN = 0 [14:53:32]*** Brake cut motor [14:53:32]Read from MH i2c: 01 [14:53:32]MH_I2C_Read... [14:53:32]*** Stop cut motor [14:53:32]*** Cut end [14:53:32]Read from MH i2c: 01 07 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: 01 07 00 C0 2D 00 00 00 00 00 FF 0F 02 [14:53:32]process_action close_receipt done [14:53:32]requested_data is exist [14:53:32]produce_requested_data [14:53:32]requested_item fm.sn is exist - process it [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 11 00 00 [14:53:32]Write to MH i2c: E2 08 00 C1 2D 80 11 00 00 00 00 00 00 68 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 17 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 17 00 C1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B5 [14:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:53:32]wFMCommunicate OK [14:53:32]requested_item fd.num is exist - process it [14:53:32]SAM_PROTO_GetFieldsCounters [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 00 00 [14:53:32]Write to MH i2c: E2 08 00 C2 2D 80 13 00 00 00 00 00 00 6B [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 62 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 62 00 C2 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 84 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 84 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetFieldsCounters done [14:53:32]requested_item shift.num is exist - process it [14:53:32]requested_item shift.opened is exist - process it [14:53:32]req_shift_opened [14:53:32]FM_GetShiftState [14:53:32]SAM_PROTO_GetShiftState [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 01 00 [14:53:32]Write to MH i2c: E2 08 00 C3 2D 80 13 01 00 00 00 00 00 6D [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:33]Read from MH i2c: E2 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 0E 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 0E 00 C3 2D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B2 [14:53:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:53:33]wFMCommunicate OK [14:53:33]SAM_PROTO_GetShiftState done [14:53:33]FM_GetShiftState done [14:53:33]req_shift_opened done [14:53:33]requested_item shift.open_date is exist - process it [14:53:33]req_shift_open_date [14:53:33]req_shift_open_date done [14:53:33]produce_requested_data done [14:53:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73860,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:53:33]process_action_free close_receipt [14:53:33]json_value_free [14:53:33]json_value_free done [14:53:33]process_json_proto returns [14:53:33]Send response to host [14:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73860,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:53:33]free response buf [14:53:33]execute_script done [14:53:33]execute_script returns [14:53:33]free content buf [14:53:33]Sock 9.Close socket [14:53:33]Sock 9.Thread stoped [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:07]accept exits with 8 [14:54:07]New connection [14:54:07]New thread 3067432292 created [14:54:07]Thread 3067575652 joined [14:54:07]Waiting for new connection... [14:54:07] Sock 8.Parse request [14:54:07]Sock 8.Check first char [14:54:07]Sock 8.First char is OK [14:54:07]request: POST /json_proto HTTP/1.0 [14:54:07]Method: POST [14:54:07]URL: /json_proto [14:54:07]Method is POST - this is cgi request [14:54:07]url: /json_proto [14:54:07]query_string will be loaded in cgi processing [14:54:07]execute_cgi json_proto POST (null) [14:54:07]execute_cgi path=json_proto method=POST [14:54:07]POST find Content-Length [14:54:07]Host: 172.17.44.196:8080 [14:54:07]Content-Length: 663 [14:54:07]Content-Type: application/json [14:54:07] [14:54:07]POST finish read [14:54:07]Found Content-Length = 663 [14:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272802", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:07]execute_script... [14:54: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)272802", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:07]POST & json_proto [14:54:07]process_json_proto [14:54:07]json parsed OK: [14:54:07]protocol is kg_v1.0 [14:54:07]action value=close_receipt [14:54:07]process_action close_receipt [14:54:07]cmd_close_receipt [14:54:07]MH_GetDate [14:54:07]Write to MH i2c: F0 00 00 C4 2D E0 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 09 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 09 00 C4 2D 00 91 19 15 67 E7 19 F8 65 6C [14:54:07]GetLastDocTimeStamp 1729436011 [14:54:07]current date 1729436049 [14:54:07]FM_GetShiftState [14:54:07]SAM_PROTO_GetShiftState [14:54:07]wFMCommunicate request_size=4 [14:54:07]MH_SAM_APDU [14:54:07]CAPDU: 80 13 01 00 [14:54:07]Write to MH i2c: E2 08 00 C5 2D 80 13 01 00 00 00 00 00 6F [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:07]Read from MH i2c: E2 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 C5 2D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B4 [14:54:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:54:07]wFMCommunicate OK [14:54:07]SAM_PROTO_GetShiftState done [14:54:07]FM_GetShiftState done [14:54:07]opened in 1729384303 [14:54:07]opened+sec_in_day 1729470703 [14:54:07]quantity*price = 18000 [14:54:07]sum+1 = 18001 [14:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 187 20.10.2024 14:54 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73861 ФПД: 139168328929394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145409&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73861&fm=139168328929394&tin=02508201610067®Number=0000000000161154&sum=18000 0 [14:54:08]StoreToDocumentArchive [14:54:08]shift 170 fd 73861 [14:54:08]save to /storage/0170/doc_00073861 [14:54:08]save last doc name /storage/0170/doc_00073861 to /storage/kkm_last_doc_name [14:54:08]save OK [14:54:08]Clear old archive folders... [14:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:54:08]tlvbuf is B6E40010 [14:54:08]SAM_PROTO_ClearQueue [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 09 00 00 [14:54:08]Write to MH i2c: E2 08 00 D2 2D 80 09 00 00 00 00 00 00 71 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 D2 2D 00 90 00 73 [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_ClearQueue done [14:54:08]KKMCreateOFDPacket [14:54:08]OFDProtocolAddRootSTLVToBuf [14:54:08]FM_MakeSignedData [14:54:08]FM_MakeSignedData [14:54:08]SAM_PROTO_SignData [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 01 02 [14:54:08]Write to MH i2c: E2 08 00 D3 2D 80 0D 01 02 00 00 00 00 79 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 D3 2D 00 90 00 74 [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]wFMCommunicate request_size=255 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 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 50 46 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 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 91 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 [14:54:08]Write to MH i2c: E2 02 01 D4 2D 80 0D 02 02 FA 00 03 00 1F 01 1E 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 50 46 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 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 91 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 00 00 A7 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 D4 2D 00 90 00 75 [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=46 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 02 02 29 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 20 01 00 35 04 06 00 7E 92 A6 CF 50 72 [14:54:09]Write to MH i2c: E2 31 00 D5 2D 80 0D 02 02 29 00 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 20 01 00 35 04 06 00 7E 92 A6 CF 50 72 00 00 EB [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 03 02 [14:54:09]Write to MH i2c: E2 08 00 D6 2D 80 0D 03 02 00 00 00 00 7E [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 0B 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 0B 00 D6 2D 00 34 9D 65 51 DA 7D C4 C3 90 00 E4 [14:54:09]RAPDU: 34 9D 65 51 DA 7D C4 C3 90 00 [14:54:09]wFMCommunicate OK [14:54:09]SAM_PROTO_SignData done [14:54:09]FM_MakeSignedData done [14:54:09]CreateOFDProtocolMessage [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 11 00 00 [14:54:09]Write to MH i2c: E2 08 00 D7 2D 80 11 00 00 00 00 00 00 7E [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 17 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 17 00 D7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [14:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:54:09]wFMCommunicate OK [14:54:09]CreateOFDProtocolMessage done [14:54:09]OFDSenderStorePacket 73861 [14:54:09]StoreOFDPacket docnum=73861 [14:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 33 01 00 00 42 1F 2B 01 56 40 5A 03 01 00 03 00 1F 01 1E 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 50 46 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 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 91 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 20 01 00 35 04 06 00 7E 92 A6 CF 50 72 34 9D 65 51 DA 7D C4 C3 [14:54:09]CheckFolder [14:54:09]dirname=/storage/ofd_packets [14:54:09]CheckFolder done [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00073861 [14:54:09]NVStorageSaveData ofd_packets/00073861 [14:54:09]File name is /storage/ofd_packets/00073861 [14:54:09]Write 337 bytes [14:54:09]NVStorageSaveData done [14:54:09]OFDSenderStorePacket done [14:54:09]KKMCreateOFDPacket done [14:54:09]NVStorageSaveData kkm_last_timestamp [14:54:09]File name is /storage/kkm_last_timestamp [14:54:09]Write 4 bytes [14:54:09]NVStorageSaveData done [14:54:09]ExternCall_PrintAddStr [14:54:09]wPrintStart [14:54:09]Write to MH i2c: 01 00 00 D8 2D 05 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 D8 2D 00 00 00 00 00 FF 0F 1A [14:54:09]RasterBufferAndPrint [14:54:09]line Счет N : (3)272802 [14:54:09]line ИНН: 02508201610067 [14:54:09]line Контрольно-Кассовый Чек [14:54:09]line ПРОДАЖА [14:54:09]line Товар: 5449000176448 [14:54:09]line Сок Piko Pulpy апельсин ПЭТ 1л [14:54:09]line 1.000 * 180.00 [14:54:09]line = 180.00 [14:54:09]line НДС 12% НСП 1% [14:54:09]line > о реализуемом товаре [14:54:09]line ИТОГО: 180.00 [14:54:09]line НСП 1% : 1.59 [14:54:09]line НДС 12% : 19.11 [14:54:09]line Наличными: 180.00 [14:54:09]line Безнал.: 0.00 [14:54:09]line Место: АЗС № 133 "Партнер Нефть" [14:54:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:54:09]line СНО: Общий режим [14:54:09]line Чек 187 20.10.2024 14:54 [14:54:09]line Смена: 170 ФФД: 1.0 [14:54:09]line ЗНМ: 0300000020 [14:54:09]line РНМ: 0000000000161154 [14:54:09]line Версия ККМ: v1.0 [14:54:09]line ФМ: 0000000000963323 [14:54:09]line ФД: 73861 [14:54:09]line ФПД: 139168328929394 [14:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145409&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73861&fm=139168328929394&tin=02508201610067®Number=0000000000161154&sum=18000 [14:54:09]line 0 [14:54:09]OFD Sender: Processing packet 73861 [packets to send 15, broken 14] [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00073861 [14:54:09]OFD Sender: To server: pG, [14:54:09]CommunicateWithHost lk.salyk.kg:30040 [14:54:09]ConnectInit lk.salyk.kg [14:54:09]written 0, free lines is 4095 [14:54:09]Connected sock=10 [14:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 33 01 00 00 42 1F 2B 01 56 40 5A 03 01 00 03 00 1F 01 1E 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 50 46 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 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 91 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 20 01 00 35 04 06 00 7E 92 A6 CF 50 72 34 9D 65 51 DA 7D C4 C3 [14:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 66 3B 47 00 3B 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 39 36 33 33 32 33 10 04 04 00 85 20 01 00 F4 03 04 00 76 C2 14 67 B6 04 01 00 00 26 73 75 FE 4B 9A 7D F8 [14:54:09]CommunicateWithHost err = 0 [14:54:09]CheckOFDResponse [14:54:09]1017 (14) - 77093643461234 [14:54:09]1041 (16) - 0000000000963323 [14:54:09]1040 (4) - 73861 [14:54:09]1012 (4) - 20.10.2024 08:42 [14:54:09]1206 (1) - 0 [14:54:09]OFD Sender: Remove packet 73861 [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00073861 [14:54:09]NVStorageDeleteData [14:54:09]Write to MH i2c: 01 00 00 00 2E 2E [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 00 2E 00 00 00 00 00 D2 0C 13 [14:54:09]RasterBufferAndPrint [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]written 0, free lines is 3287 [14:54:09]MH_Cut [14:54:09]Write to MH i2c: D1 01 00 07 2E 01 07 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 01 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 01 00 07 2E 00 06 [14:54:09]Write to MH i2c: 01 00 00 08 2E 36 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:10]OFD Sender: No OFD packet to send [14:54:10]*** Cut start [14:54:10]*** Partial cut [14:54:10]*** CUTSNS_PIN = 1 [14:54:10]*** CUTSNS_PIN = 0 [14:54:11]*** Brake cut motor [14:54:11]Read from MH i2c: 01 [14:54:11]MH_I2C_Read... [14:54:11]*** Stop cut motor [14:54:11]*** Cut end [14:54:11]Read from MH i2c: 01 07 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: 01 07 00 08 2E 00 00 00 00 00 FF 0F 4B [14:54:11]process_action close_receipt done [14:54:11]requested_data is exist [14:54:11]produce_requested_data [14:54:11]requested_item fm.sn is exist - process it [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 11 00 00 [14:54:11]Write to MH i2c: E2 08 00 09 2E 80 11 00 00 00 00 00 00 B1 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 17 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 17 00 09 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FE [14:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:54:11]wFMCommunicate OK [14:54:11]requested_item fd.num is exist - process it [14:54:11]SAM_PROTO_GetFieldsCounters [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 00 00 [14:54:11]Write to MH i2c: E2 08 00 0A 2E 80 13 00 00 00 00 00 00 B4 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 62 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 62 00 0A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 85 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 85 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetFieldsCounters done [14:54:11]requested_item shift.num is exist - process it [14:54:11]requested_item shift.opened is exist - process it [14:54:11]req_shift_opened [14:54:11]FM_GetShiftState [14:54:11]SAM_PROTO_GetShiftState [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 01 00 [14:54:11]Write to MH i2c: E2 08 00 0B 2E 80 13 01 00 00 00 00 00 B6 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 0B 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FB [14:54:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetShiftState done [14:54:11]FM_GetShiftState done [14:54:11]req_shift_opened done [14:54:11]requested_item shift.open_date is exist - process it [14:54:11]req_shift_open_date [14:54:11]req_shift_open_date done [14:54:11]produce_requested_data done [14:54:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73861,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:54:11]process_action_free close_receipt [14:54:11]json_value_free [14:54:11]json_value_free done [14:54:11]process_json_proto returns [14:54:11]Send response to host [14:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73861,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:54:11]free response buf [14:54:11]execute_script done [14:54:11]execute_script returns [14:54:11]free content buf [14:54:11]Sock 8.Close socket [14:54:11]Sock 8.Thread stoped [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:26]accept exits with 9 [14:54:26]New connection [14:54:26]New thread 3067575652 created [14:54:26]Thread 3067432292 joined [14:54:26]Waiting for new connection... [14:54:26] Sock 9.Parse request [14:54:26]Sock 9.Check first char [14:54:26]Sock 9.First char is OK [14:54:26]request: POST /json_proto HTTP/1.0 [14:54:26]Method: POST [14:54:26]URL: /json_proto [14:54:26]Method is POST - this is cgi request [14:54:26]url: /json_proto [14:54:26]query_string will be loaded in cgi processing [14:54:26]execute_cgi json_proto POST (null) [14:54:26]execute_cgi path=json_proto method=POST [14:54:26]POST find Content-Length [14:54:26]Host: 172.17.44.196:8080 [14:54:26]Content-Length: 659 [14:54:26]Content-Type: application/json [14:54:26] [14:54:26]POST finish read [14:54:26]Found Content-Length = 659 [14:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:26]execute_script... [14:54: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)1963069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:26]POST & json_proto [14:54:26]process_json_proto [14:54:26]json parsed OK: [14:54:26]protocol is kg_v1.0 [14:54:26]action value=close_receipt [14:54:26]process_action close_receipt [14:54:26]cmd_close_receipt [14:54:26]MH_GetDate [14:54:26]Write to MH i2c: F0 00 00 0C 2E 29 [14:54:26]Write i2c OK [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: F0 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: F0 09 00 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: F0 09 00 0C 2E 00 A4 19 15 67 E7 19 F8 65 C8 [14:54:26]GetLastDocTimeStamp 1729436049 [14:54:26]current date 1729436068 [14:54:26]FM_GetShiftState [14:54:26]SAM_PROTO_GetShiftState [14:54:26]wFMCommunicate request_size=4 [14:54:26]MH_SAM_APDU [14:54:26]CAPDU: 80 13 01 00 [14:54:26]Write to MH i2c: E2 08 00 0D 2E 80 13 01 00 00 00 00 00 B8 [14:54:26]Write i2c OK [14:54:26]MH_I2C_Read... [14:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:26]Read from MH i2c: E2 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: E2 0E 00 [14:54:26]MH_I2C_Read... [14:54:26]Read from MH i2c: E2 0E 00 0D 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FD [14:54:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:54:26]wFMCommunicate OK [14:54:26]SAM_PROTO_GetShiftState done [14:54:26]FM_GetShiftState done [14:54:26]opened in 1729384303 [14:54:26]opened+sec_in_day 1729470703 [14:54:26]quantity*price = 60055 [14:54:26]sum+1 = 60056 [14:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 188 20.10.2024 14:54 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73862 ФПД: 33397754147797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145428&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73862&fm=33397754147797&tin=02508201610067®Number=0000000000161154&sum=60000 [14:54:27]StoreToDocumentArchive [14:54:27]shift 170 fd 73862 [14:54:27]save to /storage/0170/doc_00073862 [14:54:27]save last doc name /storage/0170/doc_00073862 to /storage/kkm_last_doc_name [14:54:27]save OK [14:54:27]Clear old archive folders... [14:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:54:27]tlvbuf is 00390800 [14:54:27]SAM_PROTO_ClearQueue [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 09 00 00 [14:54:27]Write to MH i2c: E2 08 00 1A 2E 80 09 00 00 00 00 00 00 BA [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 1A 2E 00 90 00 BC [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]SAM_PROTO_ClearQueue done [14:54:27]KKMCreateOFDPacket [14:54:27]OFDProtocolAddRootSTLVToBuf [14:54:27]FM_MakeSignedData [14:54:27]FM_MakeSignedData [14:54:27]SAM_PROTO_SignData [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 0D 01 02 [14:54:27]Write to MH i2c: E2 08 00 1B 2E 80 0D 01 02 00 00 00 00 C2 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 1B 2E 00 90 00 BD [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]wFMCommunicate request_size=253 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A4 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 20 01 00 35 04 06 00 1E 60 05 45 B3 D5 [14:54:27]Write to MH i2c: E2 00 01 1C 2E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A4 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 20 01 00 35 04 06 00 1E 60 05 45 B3 D5 00 00 6E [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 03 00 1C 2E 00 90 00 BE [14:54:27]RAPDU: 90 00 [14:54:27]wFMCommunicate OK [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 0D 03 02 [14:54:27]Write to MH i2c: E2 08 00 1D 2E 80 0D 03 02 00 00 00 00 C6 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0B 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0B 00 1D 2E 00 06 8E 6C 20 70 C3 70 97 90 00 21 [14:54:27]RAPDU: 06 8E 6C 20 70 C3 70 97 90 00 [14:54:27]wFMCommunicate OK [14:54:27]SAM_PROTO_SignData done [14:54:27]FM_MakeSignedData done [14:54:27]CreateOFDProtocolMessage [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 11 00 00 [14:54:27]Write to MH i2c: E2 08 00 1E 2E 80 11 00 00 00 00 00 00 C6 [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 17 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 17 00 1E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 13 [14:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:54:27]wFMCommunicate OK [14:54:27]CreateOFDProtocolMessage done [14:54:27]OFDSenderStorePacket 73862 [14:54:27]StoreOFDPacket docnum=73862 [14:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 9C C5 00 01 F3 2D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A4 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 20 01 00 35 04 06 00 1E 60 05 45 B3 D5 06 8E 6C 20 70 C3 70 97 [14:54:27]CheckFolder [14:54:27]dirname=/storage/ofd_packets [14:54:27]CheckFolder done [14:54:27]ProducePacketName [14:54:27]name=ofd_packets/00073862 [14:54:27]NVStorageSaveData ofd_packets/00073862 [14:54:27]File name is /storage/ofd_packets/00073862 [14:54:27]Write 294 bytes [14:54:27]NVStorageSaveData done [14:54:27]OFDSenderStorePacket done [14:54:27]KKMCreateOFDPacket done [14:54:27]NVStorageSaveData kkm_last_timestamp [14:54:27]File name is /storage/kkm_last_timestamp [14:54:27]Write 4 bytes [14:54:27]NVStorageSaveData done [14:54:27]ExternCall_PrintAddStr [14:54:27]wPrintStart [14:54:27]Write to MH i2c: 01 00 00 1F 2E 4D [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: 01 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: 01 07 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: 01 07 00 1F 2E 00 00 00 00 00 FF 0F 62 [14:54:27]RasterBufferAndPrint [14:54:27]line Счет N : (1)1963069 [14:54:27]line ИНН: 02508201610067 [14:54:27]line Контрольно-Кассовый Чек [14:54:27]line ПРОДАЖА [14:54:27]line ТРК (МРК, ГНК) : 32 [14:54:27]line Товар: 2710124130 [14:54:27]line SU-92 [14:54:27]line 8.780 * 68.40 [14:54:27]line = 600.55 [14:54:27]line НДС 12% НСП 1% [14:54:27]line > о реализуемом товаре [14:54:27]line ОКРУГЛЕНИЕ: -0.55 [14:54:27]line ИТОГО: 600.00 [14:54:27]line Внесено: 600.00 [14:54:27]line СДАЧА: 0.00 [14:54:27]line НСП 1% : 5.31 [14:54:27]line НДС 12% : 63.77 [14:54:27]line Наличными: 600.00 [14:54:27]line Безнал.: 0.00 [14:54:27]line Место: АЗС № 133 "Партнер Нефть" [14:54:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:54:27]line СНО: Общий режим [14:54:27]line Чек 188 20.10.2024 14:54 [14:54:27]line Смена: 170 ФФД: 1.0 [14:54:27]line ЗНМ: 0300000020 [14:54:27]line РНМ: 0000000000161154 [14:54:27]line Версия ККМ: v1.0 [14:54:27]line ФМ: 0000000000963323 [14:54:27]line ФД: 73862 [14:54:27]line ФПД: 33397754147797 [14:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145428&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73862&fm=33397754147797&tin=02508201610067®Number=0000000000161154&sum=60000 [14:54:28]OFD Sender: Processing packet 73862 [packets to send 15, broken 14] [14:54:28]ProducePacketName [14:54:28]name=ofd_packets/00073862 [14:54:28]OFD Sender: To server: pG, [14:54:28]CommunicateWithHost lk.salyk.kg:30040 [14:54:28]ConnectInit lk.salyk.kg [14:54:28]written 0, free lines is 4095 [14:54:28]Connected sock=11 [14:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 9C C5 00 01 F3 2D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A4 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 20 01 00 35 04 06 00 1E 60 05 45 B3 D5 06 8E 6C 20 70 C3 70 97 [14:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 08 41 47 00 BA 01 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 39 36 33 33 32 33 10 04 04 00 86 20 01 00 F4 03 04 00 88 C2 14 67 B6 04 01 00 00 ED 95 DA 6E 20 D0 8D EE [14:54:28]CommunicateWithHost err = 0 [14:54:28]CheckOFDResponse [14:54:28]1017 (14) - 77093643461234 [14:54:28]1041 (16) - 0000000000963323 [14:54:28]1040 (4) - 73862 [14:54:28]1012 (4) - 20.10.2024 08:42 [14:54:28]1206 (1) - 0 [14:54:28]OFD Sender: Remove packet 73862 [14:54:28]ProducePacketName [14:54:28]name=ofd_packets/00073862 [14:54:28]NVStorageDeleteData [14:54:28]Write to MH i2c: 01 00 00 49 2E 77 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: 01 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: 01 07 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: 01 07 00 49 2E 00 00 00 00 00 AF 0C 39 [14:54:28]RasterBufferAndPrint [14:54:28]line [14:54:28]line [14:54:28]line [14:54:28]line [14:54:28]line [14:54:28]written 0, free lines is 3251 [14:54:28]MH_Cut [14:54:28]Write to MH i2c: D1 01 00 50 2E 01 50 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: D1 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: D1 01 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: D1 01 00 50 2E 00 4F [14:54:28]Write to MH i2c: 01 00 00 51 2E 7F [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:29]OFD Sender: No OFD packet to send [14:54:29]*** Cut start [14:54:29]*** Partial cut [14:54:29]*** CUTSNS_PIN = 1 [14:54:29]*** CUTSNS_PIN = 0 [14:54:29]*** Brake cut motor [14:54:30]Read from MH i2c: 01 [14:54:30]MH_I2C_Read... [14:54:30]*** Stop cut motor [14:54:30]*** Cut end [14:54:30]Read from MH i2c: 01 07 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 51 2E 00 00 00 00 00 FF 0F 94 [14:54:30]process_action close_receipt done [14:54:30]requested_data is exist [14:54:30]produce_requested_data [14:54:30]requested_item fm.sn is exist - process it [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 11 00 00 [14:54:30]Write to MH i2c: E2 08 00 52 2E 80 11 00 00 00 00 00 00 FA [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 17 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 17 00 52 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [14:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:54:30]wFMCommunicate OK [14:54:30]requested_item fd.num is exist - process it [14:54:30]SAM_PROTO_GetFieldsCounters [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 13 00 00 [14:54:30]Write to MH i2c: E2 08 00 53 2E 80 13 00 00 00 00 00 00 FD [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 62 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 62 00 53 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 86 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 86 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_GetFieldsCounters done [14:54:30]requested_item shift.num is exist - process it [14:54:30]requested_item shift.opened is exist - process it [14:54:30]req_shift_opened [14:54:30]FM_GetShiftState [14:54:30]SAM_PROTO_GetShiftState [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 13 01 00 [14:54:30]Write to MH i2c: E2 08 00 54 2E 80 13 01 00 00 00 00 00 FF [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0E 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0E 00 54 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 44 [14:54:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_GetShiftState done [14:54:30]FM_GetShiftState done [14:54:30]req_shift_opened done [14:54:30]requested_item shift.open_date is exist - process it [14:54:30]req_shift_open_date [14:54:30]req_shift_open_date done [14:54:30]produce_requested_data done [14:54:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73862,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:54:30]process_action_free close_receipt [14:54:30]json_value_free [14:54:30]json_value_free done [14:54:30]process_json_proto returns [14:54:30]Send response to host [14:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73862,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:54:30]free response buf [14:54:30]execute_script done [14:54:30]execute_script returns [14:54:30]free content buf [14:54:30]Sock 9.Close socket [14:54:30]Sock 9.Thread stoped [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:47]accept exits with 8 [14:55:47]New connection [14:55:47]New thread 3067432292 created [14:55:47]Thread 3067575652 joined [14:55:47]Waiting for new connection... [14:55:47] Sock 8.Parse request [14:55:47]Sock 8.Check first char [14:55:47]Sock 8.First char is OK [14:55:47]request: POST /json_proto HTTP/1.0 [14:55:47]Method: POST [14:55:47]URL: /json_proto [14:55:47]Method is POST - this is cgi request [14:55:47]url: /json_proto [14:55:47]query_string will be loaded in cgi processing [14:55:47]execute_cgi json_proto POST (null) [14:55:47]execute_cgi path=json_proto method=POST [14:55:47]POST find Content-Length [14:55:47]Host: 172.17.44.196:8080 [14:55:47]Content-Length: 689 [14:55:47]Content-Type: application/json [14:55:47] [14:55:47]POST finish read [14:55:47]Found Content-Length = 689 [14:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272803", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:47]execute_script... [14:55: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)272803", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:47]POST & json_proto [14:55:47]process_json_proto [14:55:47]json parsed OK: [14:55:47]protocol is kg_v1.0 [14:55:47]action value=close_receipt [14:55:47]process_action close_receipt [14:55:47]cmd_close_receipt [14:55:47]MH_GetDate [14:55:47]Write to MH i2c: F0 00 00 55 2E 72 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: F0 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: F0 09 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: F0 09 00 55 2E 00 F5 19 15 67 E7 19 F8 65 62 [14:55:47]GetLastDocTimeStamp 1729436068 [14:55:47]current date 1729436149 [14:55:47]FM_GetShiftState [14:55:47]SAM_PROTO_GetShiftState [14:55:47]wFMCommunicate request_size=4 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 13 01 00 [14:55:47]Write to MH i2c: E2 08 00 56 2E 80 13 01 00 00 00 00 00 01 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 0E 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 0E 00 56 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 46 [14:55:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:55:47]wFMCommunicate OK [14:55:47]SAM_PROTO_GetShiftState done [14:55:47]FM_GetShiftState done [14:55:47]opened in 1729384303 [14:55:47]opened+sec_in_day 1729470703 [14:55:47]quantity*price = 10000 [14:55:47]sum+1 = 10001 [14:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 189 20.10.2024 14:55 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73863 ФПД: 243040714735861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145549&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73863&fm=243040714735861&tin=02508201610067®Number=0000000000161154&sum=10000 0 [14:55:48]StoreToDocumentArchive [14:55:48]shift 170 fd 73863 [14:55:48]save to /storage/0170/doc_00073863 [14:55:48]save last doc name /storage/0170/doc_00073863 to /storage/kkm_last_doc_name [14:55:48]save OK [14:55:48]Clear old archive folders... [14:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:55:48]tlvbuf is 003A04C0 [14:55:48]SAM_PROTO_ClearQueue [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 09 00 00 [14:55:48]Write to MH i2c: E2 08 00 63 2E 80 09 00 00 00 00 00 00 03 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 63 2E 00 90 00 05 [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_ClearQueue done [14:55:48]KKMCreateOFDPacket [14:55:48]OFDProtocolAddRootSTLVToBuf [14:55:48]FM_MakeSignedData [14:55:48]FM_MakeSignedData [14:55:48]SAM_PROTO_SignData [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 01 02 [14:55:48]Write to MH i2c: E2 08 00 64 2E 80 0D 01 02 00 00 00 00 0B [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 64 2E 00 90 00 06 [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]wFMCommunicate request_size=255 [14:55:48]MH_SAM_APDU [14:55:48]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 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 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F5 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:55:48]Write to MH i2c: E2 02 01 65 2E 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 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 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F5 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 B5 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 03 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 03 00 65 2E 00 90 00 07 [14:55:49]RAPDU: 90 00 [14:55:49]wFMCommunicate OK [14:55:49]wFMCommunicate request_size=52 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 20 01 00 35 04 06 00 DD 0B 53 77 C0 F5 [14:55:49]Write to MH i2c: E2 37 00 66 2E 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 20 01 00 35 04 06 00 DD 0B 53 77 C0 F5 00 00 D3 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]OFD Sender: No OFD packet to send [14:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 03 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 03 00 66 2E 00 90 00 08 [14:55:49]RAPDU: 90 00 [14:55:49]wFMCommunicate OK [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 0D 03 02 [14:55:49]Write to MH i2c: E2 08 00 67 2E 80 0D 03 02 00 00 00 00 10 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 0B 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 0B 00 67 2E 00 63 7A 24 0A 04 C9 04 CE 90 00 BB [14:55:49]RAPDU: 63 7A 24 0A 04 C9 04 CE 90 00 [14:55:49]wFMCommunicate OK [14:55:49]SAM_PROTO_SignData done [14:55:49]FM_MakeSignedData done [14:55:49]CreateOFDProtocolMessage [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 11 00 00 [14:55:49]Write to MH i2c: E2 08 00 68 2E 80 11 00 00 00 00 00 00 10 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 17 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 17 00 68 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [14:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:49]wFMCommunicate OK [14:55:49]CreateOFDProtocolMessage done [14:55:49]OFDSenderStorePacket 73863 [14:55:49]StoreOFDPacket docnum=73863 [14:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 9D AC 31 01 03 40 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 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 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F5 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 20 01 00 35 04 06 00 DD 0B 53 77 C0 F5 63 7A 24 0A 04 C9 04 CE [14:55:49]CheckFolder [14:55:49]dirname=/storage/ofd_packets [14:55:49]CheckFolder done [14:55:49]ProducePacketName [14:55:49]name=ofd_packets/00073863 [14:55:49]NVStorageSaveData ofd_packets/00073863 [14:55:49]File name is /storage/ofd_packets/00073863 [14:55:49]Write 343 bytes [14:55:49]NVStorageSaveData done [14:55:49]OFDSenderStorePacket done [14:55:49]KKMCreateOFDPacket done [14:55:49]NVStorageSaveData kkm_last_timestamp [14:55:49]File name is /storage/kkm_last_timestamp [14:55:49]Write 4 bytes [14:55:49]NVStorageSaveData done [14:55:49]ExternCall_PrintAddStr [14:55:49]wPrintStart [14:55:49]Write to MH i2c: 01 00 00 69 2E 97 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 07 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 07 00 69 2E 00 00 00 00 00 FF 0F AC [14:55:49]RasterBufferAndPrint [14:55:49]line Счет N : (3)272803 [14:55:49]line ИНН: 02508201610067 [14:55:49]line Контрольно-Кассовый Чек [14:55:49]line ПРОДАЖА [14:55:49]line Товар: 4870002326172 [14:55:49]line Вода ASU пит н.газ лимон ПЭТ 1л [14:55:49]line 1.000 * 100.00 [14:55:49]line = 100.00 [14:55:49]line НДС 12% НСП 1% [14:55:49]line > о реализуемом товаре [14:55:49]line ИТОГО: 100.00 [14:55:49]line НСП 1% : 0.88 [14:55:49]line НДС 12% : 10.62 [14:55:49]line Наличными: 100.00 [14:55:49]line Безнал.: 0.00 [14:55:49]line Место: АЗС № 133 "Партнер Нефть" [14:55:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:55:49]line СНО: Общий режим [14:55:49]line Чек 189 20.10.2024 14:55 [14:55:49]line Смена: 170 ФФД: 1.0 [14:55:49]line ЗНМ: 0300000020 [14:55:49]line РНМ: 0000000000161154 [14:55:49]line Версия ККМ: v1.0 [14:55:49]line ФМ: 0000000000963323 [14:55:49]line ФД: 73863 [14:55:49]line ФПД: 243040714735861 [14:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145549&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73863&fm=243040714735861&tin=02508201610067®Number=0000000000161154&sum=10000 [14:55:49]line 0 [14:55:49]OFD Sender: Processing packet 73863 [packets to send 15, broken 14] [14:55:49]ProducePacketName [14:55:49]name=ofd_packets/00073863 [14:55:49]OFD Sender: To server: pG, [14:55:49]CommunicateWithHost lk.salyk.kg:30040 [14:55:49]ConnectInit lk.salyk.kg [14:55:49]written 0, free lines is 4095 [14:55:49]Connected sock=10 [14:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 9D AC 31 01 03 40 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 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 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F5 19 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 20 01 00 35 04 06 00 DD 0B 53 77 C0 F5 63 7A 24 0A 04 C9 04 CE [14:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9C 26 47 00 88 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 39 36 33 33 32 33 10 04 04 00 87 20 01 00 F4 03 04 00 DA C2 14 67 B6 04 01 00 00 D3 A1 D7 5F 81 E8 0A 9D [14:55:50]CommunicateWithHost err = 0 [14:55:50]CheckOFDResponse [14:55:50]1017 (14) - 77093643461234 [14:55:50]1041 (16) - 0000000000963323 [14:55:50]1040 (4) - 73863 [14:55:50]1012 (4) - 20.10.2024 08:44 [14:55:50]1206 (1) - 0 [14:55:50]OFD Sender: Remove packet 73863 [14:55:50]ProducePacketName [14:55:50]name=ofd_packets/00073863 [14:55:50]NVStorageDeleteData [14:55:50]Write to MH i2c: 01 00 00 91 2E BF [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: 01 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: 01 07 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: 01 07 00 91 2E 00 00 00 00 00 E4 0C B6 [14:55:50]RasterBufferAndPrint [14:55:50]line [14:55:50]line [14:55:50]line [14:55:50]line [14:55:50]line [14:55:50]written 0, free lines is 3306 [14:55:50]MH_Cut [14:55:50]Write to MH i2c: D1 01 00 98 2E 01 98 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: D1 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: D1 01 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: D1 01 00 98 2E 00 97 [14:55:50]Write to MH i2c: 01 00 00 99 2E C7 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]OFD Sender: No OFD packet to send [14:55:50]*** Cut start [14:55:50]*** Partial cut [14:55:50]*** CUTSNS_PIN = 1 [14:55:51]*** CUTSNS_PIN = 0 [14:55:51]*** Brake cut motor [14:55:51]Read from MH i2c: 01 [14:55:51]MH_I2C_Read... [14:55:51]*** Stop cut motor [14:55:51]*** Cut end [14:55:51]Read from MH i2c: 01 07 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 99 2E 00 00 00 00 00 FF 0F DC [14:55:51]process_action close_receipt done [14:55:51]requested_data is exist [14:55:51]produce_requested_data [14:55:51]requested_item fm.sn is exist - process it [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 11 00 00 [14:55:51]Write to MH i2c: E2 08 00 9A 2E 80 11 00 00 00 00 00 00 42 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 17 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 17 00 9A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [14:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:51]wFMCommunicate OK [14:55:51]requested_item fd.num is exist - process it [14:55:51]SAM_PROTO_GetFieldsCounters [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 13 00 00 [14:55:51]Write to MH i2c: E2 08 00 9B 2E 80 13 00 00 00 00 00 00 45 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 62 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 62 00 9B 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 87 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 87 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_GetFieldsCounters done [14:55:51]requested_item shift.num is exist - process it [14:55:51]requested_item shift.opened is exist - process it [14:55:51]req_shift_opened [14:55:51]FM_GetShiftState [14:55:51]SAM_PROTO_GetShiftState [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 13 01 00 [14:55:51]Write to MH i2c: E2 08 00 9C 2E 80 13 01 00 00 00 00 00 47 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0E 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0E 00 9C 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8C [14:55:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_GetShiftState done [14:55:51]FM_GetShiftState done [14:55:51]req_shift_opened done [14:55:51]requested_item shift.open_date is exist - process it [14:55:51]req_shift_open_date [14:55:51]req_shift_open_date done [14:55:51]produce_requested_data done [14:55:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73863,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:55:51]process_action_free close_receipt [14:55:51]json_value_free [14:55:51]json_value_free done [14:55:51]process_json_proto returns [14:55:51]Send response to host [14:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73863,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:55:51]free response buf [14:55:51]execute_script done [14:55:51]execute_script returns [14:55:51]free content buf [14:55:51]Sock 8.Close socket [14:55:51]Sock 8.Thread stoped [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:52]accept exits with 9 [14:56:52]New connection [14:56:52]New thread 3067575652 created [14:56:52]Thread 3067432292 joined [14:56:52]Waiting for new connection... [14:56:52] Sock 9.Parse request [14:56:52]Sock 9.Check first char [14:56:52]Sock 9.First char is OK [14:56:52]request: POST /json_proto HTTP/1.0 [14:56:52]Method: POST [14:56:52]URL: /json_proto [14:56:52]Method is POST - this is cgi request [14:56:52]url: /json_proto [14:56:52]query_string will be loaded in cgi processing [14:56:52]execute_cgi json_proto POST (null) [14:56:52]execute_cgi path=json_proto method=POST [14:56:52]POST find Content-Length [14:56:52]Host: 172.17.44.196:8080 [14:56:52]Content-Length: 679 [14:56:52]Content-Type: application/json [14:56:52] [14:56:52]POST finish read [14:56:52]Found Content-Length = 679 [14:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:52]execute_script... [14:56: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)1963070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:52]POST & json_proto [14:56:52]process_json_proto [14:56:52]json parsed OK: [14:56:52]protocol is kg_v1.0 [14:56:52]action value=close_receipt [14:56:52]process_action close_receipt [14:56:52]cmd_close_receipt [14:56:52]MH_GetDate [14:56:52]Write to MH i2c: F0 00 00 9D 2E BA [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: F0 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: F0 09 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: F0 09 00 9D 2E 00 36 1A 15 67 E7 19 F8 65 EC [14:56:52]GetLastDocTimeStamp 1729436149 [14:56:52]current date 1729436214 [14:56:52]FM_GetShiftState [14:56:52]SAM_PROTO_GetShiftState [14:56:52]wFMCommunicate request_size=4 [14:56:52]MH_SAM_APDU [14:56:52]CAPDU: 80 13 01 00 [14:56:52]Write to MH i2c: E2 08 00 9E 2E 80 13 01 00 00 00 00 00 49 [14:56:52]Write i2c OK [14:56:52]MH_I2C_Read... [14:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:52]Read from MH i2c: E2 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 0E 00 [14:56:52]MH_I2C_Read... [14:56:52]Read from MH i2c: E2 0E 00 9E 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8E [14:56:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:56:52]wFMCommunicate OK [14:56:52]SAM_PROTO_GetShiftState done [14:56:52]FM_GetShiftState done [14:56:52]opened in 1729384303 [14:56:52]opened+sec_in_day 1729470703 [14:56:52]quantity*price = 90004 [14:56:52]sum+1 = 90006 [14:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 190 20.10.2024 14:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73864 ФПД: 102688362723242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145654&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73864&fm=102688362723242&tin=02508201610067®Number=0000000000161154&sum=90000 [14:56:53]StoreToDocumentArchive [14:56:53]shift 170 fd 73864 [14:56:53]save to /storage/0170/doc_00073864 [14:56:53]save last doc name /storage/0170/doc_00073864 to /storage/kkm_last_doc_name [14:56:53]save OK [14:56:53]Clear old archive folders... [14:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:53]tlvbuf is 003423C0 [14:56:53]SAM_PROTO_ClearQueue [14:56:53]wFMCommunicate request_size=4 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 09 00 00 [14:56:53]Write to MH i2c: E2 08 00 AB 2E 80 09 00 00 00 00 00 00 4B [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 AB 2E 00 90 00 4D [14:56:53]RAPDU: 90 00 [14:56:53]wFMCommunicate OK [14:56:53]SAM_PROTO_ClearQueue done [14:56:53]KKMCreateOFDPacket [14:56:53]OFDProtocolAddRootSTLVToBuf [14:56:53]FM_MakeSignedData [14:56:53]FM_MakeSignedData [14:56:53]SAM_PROTO_SignData [14:56:53]wFMCommunicate request_size=4 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 0D 01 02 [14:56:53]Write to MH i2c: E2 08 00 AC 2E 80 0D 01 02 00 00 00 00 53 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 AC 2E 00 90 00 4E [14:56:53]RAPDU: 90 00 [14:56:53]wFMCommunicate OK [14:56:53]wFMCommunicate request_size=255 [14:56:53]MH_SAM_APDU [14:56:53]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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 20 01 00 35 04 06 00 5D [14:56:53]Write to MH i2c: E2 02 01 AD 2E 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 20 01 00 35 04 06 00 5D 00 00 A6 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 AD 2E 00 90 00 4F [14:56:53]RAPDU: 90 00 [14:56:53]wFMCommunicate OK [14:56:53]wFMCommunicate request_size=10 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 0D 02 02 05 64 FF 61 F7 AA [14:56:53]Write to MH i2c: E2 0D 00 AE 2E 80 0D 02 02 05 00 64 FF 61 F7 AA 00 00 C5 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [14:56:53]RAPDU: 90 00 [14:56:53]wFMCommunicate OK [14:56:53]wFMCommunicate request_size=4 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 0D 03 02 [14:56:53]Write to MH i2c: E2 08 00 AF 2E 80 0D 03 02 00 00 00 00 58 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 0B 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 0B 00 AF 2E 00 0F 98 07 3C C3 96 FB 15 90 00 AC [14:56:53]RAPDU: 0F 98 07 3C C3 96 FB 15 90 00 [14:56:53]wFMCommunicate OK [14:56:53]SAM_PROTO_SignData done [14:56:53]FM_MakeSignedData done [14:56:53]CreateOFDProtocolMessage [14:56:53]wFMCommunicate request_size=4 [14:56:53]MH_SAM_APDU [14:56:53]CAPDU: 80 11 00 00 [14:56:53]Write to MH i2c: E2 08 00 B0 2E 80 11 00 00 00 00 00 00 58 [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:53]Read from MH i2c: E2 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 17 00 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: E2 17 00 B0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A5 [14:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:56:53]wFMCommunicate OK [14:56:53]CreateOFDProtocolMessage done [14:56:53]OFDSenderStorePacket 73864 [14:56:53]StoreOFDPacket docnum=73864 [14:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EF 03 07 01 7A 0B 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 20 01 00 35 04 06 00 5D 64 FF 61 F7 AA 0F 98 07 3C C3 96 FB 15 [14:56:53]CheckFolder [14:56:53]dirname=/storage/ofd_packets [14:56:53]CheckFolder done [14:56:53]ProducePacketName [14:56:53]name=ofd_packets/00073864 [14:56:53]NVStorageSaveData ofd_packets/00073864 [14:56:53]File name is /storage/ofd_packets/00073864 [14:56:53]Write 301 bytes [14:56:53]NVStorageSaveData done [14:56:53]OFDSenderStorePacket done [14:56:53]KKMCreateOFDPacket done [14:56:53]NVStorageSaveData kkm_last_timestamp [14:56:53]File name is /storage/kkm_last_timestamp [14:56:53]Write 4 bytes [14:56:53]NVStorageSaveData done [14:56:53]ExternCall_PrintAddStr [14:56:53]wPrintStart [14:56:53]Write to MH i2c: 01 00 00 B1 2E DF [14:56:53]Write i2c OK [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 [14:56:53]MH_I2C_Read... [14:56:53]Read from MH i2c: 01 07 00 [14:56:53]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 07 00 B1 2E 00 00 00 00 00 FF 0F F4 [14:56:54]RasterBufferAndPrint [14:56:54]line Счет N : (1)1963070 [14:56:54]line ИНН: 02508201610067 [14:56:54]line Контрольно-Кассовый Чек [14:56:54]line ПРОДАЖА [14:56:54]line ТРК (МРК, ГНК) : 44 [14:56:54]line Товар: 2710124500 [14:56:54]line Аи-95-К-5 [14:56:54]line 12.130 * 74.20 [14:56:54]line = 900.05 [14:56:54]line НДС 12% НСП 1% [14:56:54]line > о реализуемом товаре [14:56:54]line ОКРУГЛЕНИЕ: -0.05 [14:56:54]line ИТОГО: 900.00 [14:56:54]line Внесено: 900.00 [14:56:54]line СДАЧА: 0.00 [14:56:54]line НСП 1% : 7.96 [14:56:54]line НДС 12% : 95.58 [14:56:54]line Наличными: 900.00 [14:56:54]line Безнал.: 0.00 [14:56:54]line Место: АЗС № 133 "Партнер Нефть" [14:56:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:56:54]line СНО: Общий режим [14:56:54]line Чек 190 20.10.2024 14:56 [14:56:54]line Смена: 170 ФФД: 1.0 [14:56:54]line ЗНМ: 0300000020 [14:56:54]line РНМ: 0000000000161154 [14:56:54]line Версия ККМ: v1.0 [14:56:54]line ФМ: 0000000000963323 [14:56:54]line ФД: 73864 [14:56:54]line ФПД: 102688362723242 [14:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145654&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73864&fm=102688362723242&tin=02508201610067®Number=0000000000161154&sum=90000 [14:56:54]OFD Sender: Processing packet 73864 [packets to send 15, broken 14] [14:56:54]ProducePacketName [14:56:54]name=ofd_packets/00073864 [14:56:54]OFD Sender: To server: pG, [14:56:54]CommunicateWithHost lk.salyk.kg:30040 [14:56:54]ConnectInit lk.salyk.kg [14:56:54]written 0, free lines is 4095 [14:56:54]Connected sock=10 [14:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EF 03 07 01 7A 0B 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 36 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 20 01 00 35 04 06 00 5D 64 FF 61 F7 AA 0F 98 07 3C C3 96 FB 15 [14:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 00 AD 47 00 64 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 39 36 33 33 32 33 10 04 04 00 88 20 01 00 F4 03 04 00 1A C3 14 67 B6 04 01 00 00 6F ED 3A 0A 73 63 AB 0D [14:56:54]CommunicateWithHost err = 0 [14:56:54]CheckOFDResponse [14:56:54]1017 (14) - 77093643461234 [14:56:54]1041 (16) - 0000000000963323 [14:56:54]1040 (4) - 73864 [14:56:54]1012 (4) - 20.10.2024 08:45 [14:56:54]1206 (1) - 0 [14:56:54]OFD Sender: Remove packet 73864 [14:56:54]ProducePacketName [14:56:54]name=ofd_packets/00073864 [14:56:54]NVStorageDeleteData [14:56:54]Write to MH i2c: 01 00 00 DB 2E 09 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 07 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: 01 07 00 DB 2E 00 00 00 00 00 C1 0C DD [14:56:54]RasterBufferAndPrint [14:56:54]line [14:56:54]line [14:56:54]line [14:56:54]line [14:56:54]line [14:56:54]written 0, free lines is 3269 [14:56:54]MH_Cut [14:56:54]Write to MH i2c: D1 01 00 E2 2E 01 E2 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: D1 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: D1 01 00 [14:56:54]MH_I2C_Read... [14:56:54]Read from MH i2c: D1 01 00 E2 2E 00 E1 [14:56:54]Write to MH i2c: 01 00 00 E3 2E 11 [14:56:54]Write i2c OK [14:56:54]MH_I2C_Read... [14:56:55]OFD Sender: No OFD packet to send [14:56:55]*** Cut start [14:56:55]*** Partial cut [14:56:55]*** CUTSNS_PIN = 1 [14:56:55]*** CUTSNS_PIN = 0 [14:56:55]*** Brake cut motor [14:56:56]Read from MH i2c: 01 [14:56:56]MH_I2C_Read... [14:56:56]*** Stop cut motor [14:56:56]*** Cut end [14:56:56]Read from MH i2c: 01 07 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 07 00 E3 2E 00 00 00 00 00 FF 0F 26 [14:56:56]process_action close_receipt done [14:56:56]requested_data is exist [14:56:56]produce_requested_data [14:56:56]requested_item fm.sn is exist - process it [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 11 00 00 [14:56:56]Write to MH i2c: E2 08 00 E4 2E 80 11 00 00 00 00 00 00 8C [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 E4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [14:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:56:56]wFMCommunicate OK [14:56:56]requested_item fd.num is exist - process it [14:56:56]SAM_PROTO_GetFieldsCounters [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 13 00 00 [14:56:56]Write to MH i2c: E2 08 00 E5 2E 80 13 00 00 00 00 00 00 8F [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 62 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 62 00 E5 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 88 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 88 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_GetFieldsCounters done [14:56:56]requested_item shift.num is exist - process it [14:56:56]requested_item shift.opened is exist - process it [14:56:56]req_shift_opened [14:56:56]FM_GetShiftState [14:56:56]SAM_PROTO_GetShiftState [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 13 01 00 [14:56:56]Write to MH i2c: E2 08 00 E6 2E 80 13 01 00 00 00 00 00 91 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0E 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0E 00 E6 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D6 [14:56:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_GetShiftState done [14:56:56]FM_GetShiftState done [14:56:56]req_shift_opened done [14:56:56]requested_item shift.open_date is exist - process it [14:56:56]req_shift_open_date [14:56:56]req_shift_open_date done [14:56:56]produce_requested_data done [14:56:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73864,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:56:56]process_action_free close_receipt [14:56:56]json_value_free [14:56:56]json_value_free done [14:56:56]process_json_proto returns [14:56:56]Send response to host [14:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73864,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:56:56]free response buf [14:56:56]execute_script done [14:56:56]execute_script returns [14:56:56]free content buf [14:56:56]Sock 9.Close socket [14:56:56]Sock 9.Thread stoped [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:30]accept exits with 8 [14:57:30]New connection [14:57:30]New thread 3067432292 created [14:57:30]Thread 3067575652 joined [14:57:30]Waiting for new connection... [14:57:30] Sock 8.Parse request [14:57:30]Sock 8.Check first char [14:57:30]Sock 8.First char is OK [14:57:30]request: POST /json_proto HTTP/1.0 [14:57:30]Method: POST [14:57:30]URL: /json_proto [14:57:30]Method is POST - this is cgi request [14:57:30]url: /json_proto [14:57:30]query_string will be loaded in cgi processing [14:57:30]execute_cgi json_proto POST (null) [14:57:30]execute_cgi path=json_proto method=POST [14:57:30]POST find Content-Length [14:57:30]Host: 172.17.44.196:8080 [14:57:30]Content-Length: 744 [14:57:30]Content-Type: application/json [14:57:30] [14:57:30]POST finish read [14:57:30]Found Content-Length = 744 [14:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272804", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:30]execute_script... [14:57: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)272804", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:30]POST & json_proto [14:57:30]process_json_proto [14:57:30]json parsed OK: [14:57:30]protocol is kg_v1.0 [14:57:30]action value=close_receipt [14:57:30]process_action close_receipt [14:57:30]cmd_close_receipt [14:57:30]MH_GetDate [14:57:30]Write to MH i2c: F0 00 00 E7 2E 04 [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: F0 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: F0 09 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: F0 09 00 E7 2E 00 5C 1A 15 67 E7 19 F8 65 5C [14:57:30]GetLastDocTimeStamp 1729436214 [14:57:30]current date 1729436252 [14:57:30]FM_GetShiftState [14:57:30]SAM_PROTO_GetShiftState [14:57:30]wFMCommunicate request_size=4 [14:57:30]MH_SAM_APDU [14:57:30]CAPDU: 80 13 01 00 [14:57:30]Write to MH i2c: E2 08 00 E8 2E 80 13 01 00 00 00 00 00 93 [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:30]Read from MH i2c: E2 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 0E 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 0E 00 E8 2E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [14:57:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:57:30]wFMCommunicate OK [14:57:30]SAM_PROTO_GetShiftState done [14:57:30]FM_GetShiftState done [14:57:30]opened in 1729384303 [14:57:30]opened+sec_in_day 1729470703 [14:57:30]quantity*price = 14000 [14:57:30]sum+1 = 14001 [14:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 191 20.10.2024 14:57 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73865 ФПД: 65550539098828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145732&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73865&fm=65550539098828&tin=02508201610067®Number=0000000000161154&sum=14000 0 [14:57:31]StoreToDocumentArchive [14:57:31]shift 170 fd 73865 [14:57:31]save to /storage/0170/doc_00073865 [14:57:31]save last doc name /storage/0170/doc_00073865 to /storage/kkm_last_doc_name [14:57:31]save OK [14:57:31]Clear old archive folders... [14:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:57:31]tlvbuf is 0037B730 [14:57:31]SAM_PROTO_ClearQueue [14:57:31]wFMCommunicate request_size=4 [14:57:31]MH_SAM_APDU [14:57:31]CAPDU: 80 09 00 00 [14:57:31]Write to MH i2c: E2 08 00 F5 2E 80 09 00 00 00 00 00 00 95 [14:57:31]Write i2c OK [14:57:31]MH_I2C_Read... [14:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:31]Read from MH i2c: E2 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 03 00 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 03 00 F5 2E 00 90 00 97 [14:57:31]RAPDU: 90 00 [14:57:31]wFMCommunicate OK [14:57:31]SAM_PROTO_ClearQueue done [14:57:31]KKMCreateOFDPacket [14:57:31]OFDProtocolAddRootSTLVToBuf [14:57:31]FM_MakeSignedData [14:57:31]FM_MakeSignedData [14:57:31]SAM_PROTO_SignData [14:57:31]wFMCommunicate request_size=4 [14:57:31]MH_SAM_APDU [14:57:31]CAPDU: 80 0D 01 02 [14:57:31]Write to MH i2c: E2 08 00 F6 2E 80 0D 01 02 00 00 00 00 9D [14:57:31]Write i2c OK [14:57:31]MH_I2C_Read... [14:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:31]Read from MH i2c: E2 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 03 00 [14:57:31]MH_I2C_Read... [14:57:31]Read from MH i2c: E2 03 00 F6 2E 00 90 00 98 [14:57:31]RAPDU: 90 00 [14:57:31]wFMCommunicate OK [14:57:31]wFMCommunicate request_size=255 [14:57:31]MH_SAM_APDU [14:57:31]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 5C 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [14:57:31]Write to MH i2c: E2 02 01 F7 2E 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 5C 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 DD [14:57:31]Write i2c OK [14:57:31]MH_I2C_Read... [14:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:32]Read from MH i2c: E2 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 03 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 03 00 F7 2E 00 90 00 99 [14:57:32]RAPDU: 90 00 [14:57:32]wFMCommunicate OK [14:57:32]wFMCommunicate request_size=28 [14:57:32]MH_SAM_APDU [14:57:32]CAPDU: 80 0D 02 02 17 36 33 33 32 33 10 04 04 00 89 20 01 00 35 04 06 00 3B 9E 2C 99 0A CC [14:57:32]Write to MH i2c: E2 1F 00 F8 2E 80 0D 02 02 17 00 36 33 33 32 33 10 04 04 00 89 20 01 00 35 04 06 00 3B 9E 2C 99 0A CC 00 00 44 [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:32]Read from MH i2c: E2 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 03 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 03 00 F8 2E 00 90 00 9A [14:57:32]RAPDU: 90 00 [14:57:32]wFMCommunicate OK [14:57:32]wFMCommunicate request_size=4 [14:57:32]MH_SAM_APDU [14:57:32]CAPDU: 80 0D 03 02 [14:57:32]Write to MH i2c: E2 08 00 F9 2E 80 0D 03 02 00 00 00 00 A2 [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:32]Read from MH i2c: E2 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 0B 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 0B 00 F9 2E 00 7A BD AC A2 C0 61 7B 83 90 00 47 [14:57:32]RAPDU: 7A BD AC A2 C0 61 7B 83 90 00 [14:57:32]wFMCommunicate OK [14:57:32]SAM_PROTO_SignData done [14:57:32]FM_MakeSignedData done [14:57:32]CreateOFDProtocolMessage [14:57:32]wFMCommunicate request_size=4 [14:57:32]MH_SAM_APDU [14:57:32]CAPDU: 80 11 00 00 [14:57:32]Write to MH i2c: E2 08 00 FA 2E 80 11 00 00 00 00 00 00 A2 [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:32]Read from MH i2c: E2 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 17 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 17 00 FA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EF [14:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:57:32]wFMCommunicate OK [14:57:32]CreateOFDProtocolMessage done [14:57:32]OFDSenderStorePacket 73865 [14:57:32]StoreOFDPacket docnum=73865 [14:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 AB 12 19 01 11 AD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 5C 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 89 20 01 00 35 04 06 00 3B 9E 2C 99 0A CC 7A BD AC A2 C0 61 7B 83 [14:57:32]CheckFolder [14:57:32]dirname=/storage/ofd_packets [14:57:32]CheckFolder done [14:57:32]ProducePacketName [14:57:32]name=ofd_packets/00073865 [14:57:32]NVStorageSaveData ofd_packets/00073865 [14:57:32]File name is /storage/ofd_packets/00073865 [14:57:32]Write 319 bytes [14:57:32]NVStorageSaveData done [14:57:32]OFDSenderStorePacket done [14:57:32]KKMCreateOFDPacket done [14:57:32]NVStorageSaveData kkm_last_timestamp [14:57:32]File name is /storage/kkm_last_timestamp [14:57:32]Write 4 bytes [14:57:32]NVStorageSaveData done [14:57:32]ExternCall_PrintAddStr [14:57:32]wPrintStart [14:57:32]Write to MH i2c: 01 00 00 FB 2E 29 [14:57:32]OFD Sender: Processing packet 73865 [packets to send 15, broken 14] [14:57:32]ProducePacketName [14:57:32]name=ofd_packets/00073865 [14:57:32]OFD Sender: To server: pG, [14:57:32]CommunicateWithHost lk.salyk.kg:30040 [14:57:32]ConnectInit lk.salyk.kg [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: 01 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: 01 07 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: 01 07 00 FB 2E 00 00 00 00 00 FF 0F 3E [14:57:32]RasterBufferAndPrint [14:57:32]line Счет N : (3)272804 [14:57:32]line ИНН: 02508201610067 [14:57:32]line Контрольно-Кассовый Чек [14:57:32]line ПРОДАЖА [14:57:32]line Товар: 47803008 [14:57:32]line Сигареты Winston XS Blue [14:57:32]line 1.000 * 140.00 [14:57:32]line = 140.00 [14:57:32]line НДС 12% НСП 1% [14:57:32]line > о реализуемом товаре [14:57:32]line ИТОГО: 140.00 [14:57:32]line НСП 1% : 1.24 [14:57:32]line НДС 12% : 14.87 [14:57:32]line Наличными: 0.00 [14:57:32]line Безнал.: 140.00 [14:57:32]line Место: АЗС № 133 "Партнер Нефть" [14:57:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:57:32]line СНО: Общий режим [14:57:32]line Чек 191 20.10.2024 14:57 [14:57:32]line Смена: 170 ФФД: 1.0 [14:57:32]line ЗНМ: 0300000020 [14:57:32]line РНМ: 0000000000161154 [14:57:32]line Версия ККМ: v1.0 [14:57:32]line Платежная система: Mbank [14:57:32]line ФМ: 0000000000963323 [14:57:32]line ФД: 73865 [14:57:32]line ФПД: 65550539098828 [14:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145732&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73865&fm=65550539098828&tin=02508201610067®Number=0000000000161154&sum=14000 [14:57:32]line 0 [14:57:32]Connected sock=10 [14:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 AB 12 19 01 11 AD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 5C 1A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 89 20 01 00 35 04 06 00 3B 9E 2C 99 0A CC 7A BD AC A2 C0 61 7B 83 [14:57:32]written 0, free lines is 4095 [14:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2C 87 47 00 82 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 39 36 33 33 32 33 10 04 04 00 89 20 01 00 F4 03 04 00 41 C3 14 67 B6 04 01 00 00 86 8D 0D D1 D4 45 44 61 [14:57:32]CommunicateWithHost err = 0 [14:57:32]CheckOFDResponse [14:57:32]1017 (14) - 77093643461234 [14:57:32]1041 (16) - 0000000000963323 [14:57:32]1040 (4) - 73865 [14:57:32]1012 (4) - 20.10.2024 08:45 [14:57:32]1206 (1) - 0 [14:57:32]OFD Sender: Remove packet 73865 [14:57:32]ProducePacketName [14:57:32]name=ofd_packets/00073865 [14:57:32]NVStorageDeleteData [14:57:33]Write to MH i2c: 01 00 00 23 2F 52 [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: 01 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: 01 07 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: 01 07 00 23 2F 00 00 00 00 00 E5 0C 4A [14:57:33]RasterBufferAndPrint [14:57:33]line [14:57:33]line [14:57:33]line [14:57:33]line [14:57:33]line [14:57:33]written 0, free lines is 3307 [14:57:33]MH_Cut [14:57:33]Write to MH i2c: D1 01 00 2A 2F 01 2B [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: D1 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: D1 01 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: D1 01 00 2A 2F 00 2A [14:57:33]Write to MH i2c: 01 00 00 2B 2F 5A [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]OFD Sender: No OFD packet to send [14:57:33]*** Cut start [14:57:33]*** Partial cut [14:57:33]*** CUTSNS_PIN = 1 [14:57:33]*** CUTSNS_PIN = 0 [14:57:34]*** Brake cut motor [14:57:34]Read from MH i2c: 01 [14:57:34]MH_I2C_Read... [14:57:34]*** Stop cut motor [14:57:34]*** Cut end [14:57:34]Read from MH i2c: 01 07 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 07 00 2B 2F 00 00 00 00 00 FF 0F 6F [14:57:34]process_action close_receipt done [14:57:34]requested_data is exist [14:57:34]produce_requested_data [14:57:34]requested_item fm.sn is exist - process it [14:57:34]wFMCommunicate request_size=4 [14:57:34]MH_SAM_APDU [14:57:34]CAPDU: 80 11 00 00 [14:57:34]Write to MH i2c: E2 08 00 2C 2F 80 11 00 00 00 00 00 00 D5 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 17 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 17 00 2C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 22 [14:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:57:34]wFMCommunicate OK [14:57:34]requested_item fd.num is exist - process it [14:57:34]SAM_PROTO_GetFieldsCounters [14:57:34]wFMCommunicate request_size=4 [14:57:34]MH_SAM_APDU [14:57:34]CAPDU: 80 13 00 00 [14:57:34]Write to MH i2c: E2 08 00 2D 2F 80 13 00 00 00 00 00 00 D8 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 62 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 62 00 2D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 89 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [14:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 89 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:34]wFMCommunicate OK [14:57:34]SAM_PROTO_GetFieldsCounters done [14:57:34]requested_item shift.num is exist - process it [14:57:34]requested_item shift.opened is exist - process it [14:57:34]req_shift_opened [14:57:34]FM_GetShiftState [14:57:34]SAM_PROTO_GetShiftState [14:57:34]wFMCommunicate request_size=4 [14:57:34]MH_SAM_APDU [14:57:34]CAPDU: 80 13 01 00 [14:57:34]Write to MH i2c: E2 08 00 2E 2F 80 13 01 00 00 00 00 00 DA [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 0E 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 0E 00 2E 2F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1F [14:57:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [14:57:34]wFMCommunicate OK [14:57:34]SAM_PROTO_GetShiftState done [14:57:34]FM_GetShiftState done [14:57:34]req_shift_opened done [14:57:34]requested_item shift.open_date is exist - process it [14:57:34]req_shift_open_date [14:57:34]req_shift_open_date done [14:57:34]produce_requested_data done [14:57:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73865,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [14:57:34]process_action_free close_receipt [14:57:34]json_value_free [14:57:34]json_value_free done [14:57:34]process_json_proto returns [14:57:34]Send response to host [14:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73865,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [14:57:34]free response buf [14:57:34]execute_script done [14:57:34]execute_script returns [14:57:34]free content buf [14:57:34]Sock 8.Close socket [14:57:34]Sock 8.Thread stoped [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]accept exits with 9 [15:02:03]New connection [15:02:03]New thread 3067575652 created [15:02:03]Thread 3067432292 joined [15:02:03]Waiting for new connection... [15:02:03] Sock 9.Parse request [15:02:03]Sock 9.Check first char [15:02:03]Sock 9.First char is OK [15:02:03]request: POST /json_proto HTTP/1.0 [15:02:03]Method: POST [15:02:03]URL: /json_proto [15:02:03]Method is POST - this is cgi request [15:02:03]url: /json_proto [15:02:03]query_string will be loaded in cgi processing [15:02:03]execute_cgi json_proto POST (null) [15:02:03]execute_cgi path=json_proto method=POST [15:02:03]POST find Content-Length [15:02:03]Host: 172.17.44.196:8080 [15:02:03]Content-Length: 760 [15:02:03]Content-Type: application/json [15:02:03] [15:02:03]POST finish read [15:02:03]Found Content-Length = 760 [15:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272805", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:03]execute_script... [15:02: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)272805", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:03]POST & json_proto [15:02:03]process_json_proto [15:02:03]json parsed OK: [15:02:03]protocol is kg_v1.0 [15:02:03]action value=close_receipt [15:02:03]process_action close_receipt [15:02:03]cmd_close_receipt [15:02:03]MH_GetDate [15:02:03]Write to MH i2c: F0 00 00 2F 2F 4D [15:02:03]Write i2c OK [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: F0 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: F0 09 00 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: F0 09 00 2F 2F 00 6D 1B 15 67 E7 19 F8 65 B7 [15:02:03]GetLastDocTimeStamp 1729436252 [15:02:03]current date 1729436525 [15:02:03]FM_GetShiftState [15:02:03]SAM_PROTO_GetShiftState [15:02:03]wFMCommunicate request_size=4 [15:02:03]MH_SAM_APDU [15:02:03]CAPDU: 80 13 01 00 [15:02:03]Write to MH i2c: E2 08 00 30 2F 80 13 01 00 00 00 00 00 DC [15:02:03]Write i2c OK [15:02:03]MH_I2C_Read... [15:02:03]OFD Sender: No OFD packet to send [15:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:03]Read from MH i2c: E2 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: E2 0E 00 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: E2 0E 00 30 2F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 21 [15:02:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:02:03]wFMCommunicate OK [15:02:03]SAM_PROTO_GetShiftState done [15:02:03]FM_GetShiftState done [15:02:03]opened in 1729384303 [15:02:03]opened+sec_in_day 1729470703 [15:02:03]quantity*price = 13000 [15:02:03]sum+1 = 13001 [15:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 192 20.10.2024 15:02 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73866 ФПД: 35624549340848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150205&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73866&fm=35624549340848&tin=02508201610067®Number=0000000000161154&sum=13000 0 [15:02:04]StoreToDocumentArchive [15:02:04]shift 170 fd 73866 [15:02:04]save to /storage/0170/doc_00073866 [15:02:04]save last doc name /storage/0170/doc_00073866 to /storage/kkm_last_doc_name [15:02:04]save OK [15:02:04]Clear old archive folders... [15:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:02:04]tlvbuf is 00390980 [15:02:04]SAM_PROTO_ClearQueue [15:02:04]wFMCommunicate request_size=4 [15:02:04]MH_SAM_APDU [15:02:04]CAPDU: 80 09 00 00 [15:02:04]Write to MH i2c: E2 08 00 3D 2F 80 09 00 00 00 00 00 00 DE [15:02:04]Write i2c OK [15:02:04]MH_I2C_Read... [15:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:04]Read from MH i2c: E2 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 3D 2F 00 90 00 E0 [15:02:04]RAPDU: 90 00 [15:02:04]wFMCommunicate OK [15:02:04]SAM_PROTO_ClearQueue done [15:02:04]KKMCreateOFDPacket [15:02:04]OFDProtocolAddRootSTLVToBuf [15:02:04]FM_MakeSignedData [15:02:04]FM_MakeSignedData [15:02:04]SAM_PROTO_SignData [15:02:04]wFMCommunicate request_size=4 [15:02:04]MH_SAM_APDU [15:02:04]CAPDU: 80 0D 01 02 [15:02:04]Write to MH i2c: E2 08 00 3E 2F 80 0D 01 02 00 00 00 00 E6 [15:02:04]Write i2c OK [15:02:04]MH_I2C_Read... [15:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:04]Read from MH i2c: E2 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 3E 2F 00 90 00 E1 [15:02:04]RAPDU: 90 00 [15:02:04]wFMCommunicate OK [15:02:04]wFMCommunicate request_size=255 [15:02:04]MH_SAM_APDU [15:02:04]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 C0 00 00 00 F4 03 04 00 6D 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 [15:02:04]Write to MH i2c: E2 02 01 3F 2F 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 C0 00 00 00 F4 03 04 00 6D 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 00 00 12 [15:02:04]Write i2c OK [15:02:04]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 3F 2F 00 90 00 E2 [15:02:05]RAPDU: 90 00 [15:02:05]wFMCommunicate OK [15:02:05]wFMCommunicate request_size=44 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 0D 02 02 27 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 20 01 00 35 04 06 00 20 66 7C 9B D6 B0 [15:02:05]Write to MH i2c: E2 2F 00 40 2F 80 0D 02 02 27 00 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 20 01 00 35 04 06 00 20 66 7C 9B D6 B0 00 00 CF [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 40 2F 00 90 00 E3 [15:02:05]RAPDU: 90 00 [15:02:05]wFMCommunicate OK [15:02:05]wFMCommunicate request_size=4 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 0D 03 02 [15:02:05]Write to MH i2c: E2 08 00 41 2F 80 0D 03 02 00 00 00 00 EB [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 0B 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 0B 00 41 2F 00 AE 81 88 05 09 DA 29 31 90 00 E5 [15:02:05]RAPDU: AE 81 88 05 09 DA 29 31 90 00 [15:02:05]wFMCommunicate OK [15:02:05]SAM_PROTO_SignData done [15:02:05]FM_MakeSignedData done [15:02:05]CreateOFDProtocolMessage [15:02:05]wFMCommunicate request_size=4 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 11 00 00 [15:02:05]Write to MH i2c: E2 08 00 42 2F 80 11 00 00 00 00 00 00 EB [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 17 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 17 00 42 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 38 [15:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:02:05]wFMCommunicate OK [15:02:05]CreateOFDProtocolMessage done [15:02:05]OFDSenderStorePacket 73866 [15:02:05]StoreOFDPacket docnum=73866 [15:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 31 01 00 00 07 04 29 01 27 DA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 C0 00 00 00 F4 03 04 00 6D 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 20 01 00 35 04 06 00 20 66 7C 9B D6 B0 AE 81 88 05 09 DA 29 31 [15:02:05]CheckFolder [15:02:05]dirname=/storage/ofd_packets [15:02:05]CheckFolder done [15:02:05]ProducePacketName [15:02:05]name=ofd_packets/00073866 [15:02:05]NVStorageSaveData ofd_packets/00073866 [15:02:05]File name is /storage/ofd_packets/00073866 [15:02:05]Write 335 bytes [15:02:05]NVStorageSaveData done [15:02:05]OFDSenderStorePacket done [15:02:05]KKMCreateOFDPacket done [15:02:05]NVStorageSaveData kkm_last_timestamp [15:02:05]File name is /storage/kkm_last_timestamp [15:02:05]Write 4 bytes [15:02:05]NVStorageSaveData done [15:02:05]ExternCall_PrintAddStr [15:02:05]wPrintStart [15:02:05]Write to MH i2c: 01 00 00 43 2F 72 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 07 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 07 00 43 2F 00 00 00 00 00 FF 0F 87 [15:02:05]RasterBufferAndPrint [15:02:05]line Счет N : (3)272805 [15:02:05]line ИНН: 02508201610067 [15:02:05]line Контрольно-Кассовый Чек [15:02:05]line ПРОДАЖА [15:02:05]line Товар: 48745291 [15:02:05]line Сигареты Parliament SOHO NYC COMPACT BLU [15:02:05]line 1.000 * 130.00 [15:02:05]line = 130.00 [15:02:05]line НДС 12% НСП 1% [15:02:05]line > о реализуемом товаре [15:02:05]line ИТОГО: 130.00 [15:02:05]line НСП 1% : 1.15 [15:02:05]line НДС 12% : 13.80 [15:02:05]line Наличными: 0.00 [15:02:05]line Безнал.: 130.00 [15:02:05]line Место: АЗС № 133 "Партнер Нефть" [15:02:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:02:05]line СНО: Общий режим [15:02:05]line Чек 192 20.10.2024 15:02 [15:02:05]line Смена: 170 ФФД: 1.0 [15:02:05]line ЗНМ: 0300000020 [15:02:05]line РНМ: 0000000000161154 [15:02:05]line Версия ККМ: v1.0 [15:02:05]line Платежная система: Mbank [15:02:05]line ФМ: 0000000000963323 [15:02:05]line ФД: 73866 [15:02:05]line ФПД: 35624549340848 [15:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150205&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73866&fm=35624549340848&tin=02508201610067®Number=0000000000161154&sum=13000 [15:02:05]line 0 [15:02:05]OFD Sender: Processing packet 73866 [packets to send 15, broken 14] [15:02:05]ProducePacketName [15:02:05]name=ofd_packets/00073866 [15:02:05]OFD Sender: To server: pG, [15:02:05]CommunicateWithHost lk.salyk.kg:30040 [15:02:05]ConnectInit lk.salyk.kg [15:02:05]written 0, free lines is 4095 [15:02:05]Connected sock=10 [15:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 31 01 00 00 07 04 29 01 27 DA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 C0 00 00 00 F4 03 04 00 6D 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 20 01 00 35 04 06 00 20 66 7C 9B D6 B0 AE 81 88 05 09 DA 29 31 [15:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA 2A 47 00 A6 90 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 39 36 33 33 32 33 10 04 04 00 8A 20 01 00 F4 03 04 00 52 C4 14 67 B6 04 01 00 00 3E 17 F3 27 32 82 16 A3 [15:02:05]CommunicateWithHost err = 0 [15:02:05]CheckOFDResponse [15:02:05]1017 (14) - 77093643461234 [15:02:05]1041 (16) - 0000000000963323 [15:02:05]1040 (4) - 73866 [15:02:05]1012 (4) - 20.10.2024 08:50 [15:02:05]1206 (1) - 0 [15:02:05]OFD Sender: Remove packet 73866 [15:02:05]ProducePacketName [15:02:05]name=ofd_packets/00073866 [15:02:05]NVStorageDeleteData [15:02:06]Write to MH i2c: 01 00 00 6C 2F 9B [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: 01 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: 01 07 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: 01 07 00 6C 2F 00 00 00 00 00 DF 0C 8D [15:02:06]RasterBufferAndPrint [15:02:06]line [15:02:06]line [15:02:06]line [15:02:06]line [15:02:06]line [15:02:06]written 0, free lines is 3304 [15:02:06]MH_Cut [15:02:06]Write to MH i2c: D1 01 00 73 2F 01 74 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: D1 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: D1 01 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: D1 01 00 73 2F 00 73 [15:02:06]Write to MH i2c: 01 00 00 74 2F A3 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]OFD Sender: No OFD packet to send [15:02:06]*** Cut start [15:02:06]*** Partial cut [15:02:06]*** CUTSNS_PIN = 1 [15:02:06]*** CUTSNS_PIN = 0 [15:02:07]*** Brake cut motor [15:02:07]Read from MH i2c: 01 [15:02:07]MH_I2C_Read... [15:02:07]*** Stop cut motor [15:02:07]*** Cut end [15:02:07]Read from MH i2c: 01 07 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: 01 07 00 74 2F 00 00 00 00 00 FF 0F B8 [15:02:07]process_action close_receipt done [15:02:07]requested_data is exist [15:02:07]produce_requested_data [15:02:07]requested_item fm.sn is exist - process it [15:02:07]wFMCommunicate request_size=4 [15:02:07]MH_SAM_APDU [15:02:07]CAPDU: 80 11 00 00 [15:02:07]Write to MH i2c: E2 08 00 75 2F 80 11 00 00 00 00 00 00 1E [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:07]Read from MH i2c: E2 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 17 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 17 00 75 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6B [15:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:02:07]wFMCommunicate OK [15:02:07]requested_item fd.num is exist - process it [15:02:07]SAM_PROTO_GetFieldsCounters [15:02:07]wFMCommunicate request_size=4 [15:02:07]MH_SAM_APDU [15:02:07]CAPDU: 80 13 00 00 [15:02:07]Write to MH i2c: E2 08 00 76 2F 80 13 00 00 00 00 00 00 21 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:07]Read from MH i2c: E2 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 62 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 62 00 76 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [15:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:07]wFMCommunicate OK [15:02:07]SAM_PROTO_GetFieldsCounters done [15:02:07]requested_item shift.num is exist - process it [15:02:07]requested_item shift.opened is exist - process it [15:02:07]req_shift_opened [15:02:07]FM_GetShiftState [15:02:07]SAM_PROTO_GetShiftState [15:02:07]wFMCommunicate request_size=4 [15:02:07]MH_SAM_APDU [15:02:07]CAPDU: 80 13 01 00 [15:02:07]Write to MH i2c: E2 08 00 77 2F 80 13 01 00 00 00 00 00 23 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:07]Read from MH i2c: E2 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 0E 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 0E 00 77 2F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 68 [15:02:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:02:07]wFMCommunicate OK [15:02:07]SAM_PROTO_GetShiftState done [15:02:07]FM_GetShiftState done [15:02:07]req_shift_opened done [15:02:07]requested_item shift.open_date is exist - process it [15:02:07]req_shift_open_date [15:02:07]req_shift_open_date done [15:02:07]produce_requested_data done [15:02:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73866,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:02:07]process_action_free close_receipt [15:02:07]json_value_free [15:02:07]json_value_free done [15:02:07]process_json_proto returns [15:02:07]Send response to host [15:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73866,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:02:07]free response buf [15:02:07]execute_script done [15:02:07]execute_script returns [15:02:07]free content buf [15:02:07]Sock 9.Close socket [15:02:07]Sock 9.Thread stoped [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:02]accept exits with 8 [15:03:02]New connection [15:03:02]New thread 3067432292 created [15:03:02]Thread 3067575652 joined [15:03:02]Waiting for new connection... [15:03:02] Sock 8.Parse request [15:03:02]Sock 8.Check first char [15:03:02]Sock 8.First char is OK [15:03:02]request: POST /json_proto HTTP/1.0 [15:03:02]Method: POST [15:03:02]URL: /json_proto [15:03:02]Method is POST - this is cgi request [15:03:02]url: /json_proto [15:03:02]query_string will be loaded in cgi processing [15:03:02]execute_cgi json_proto POST (null) [15:03:02]execute_cgi path=json_proto method=POST [15:03:02]POST find Content-Length [15:03:02]Host: 172.17.44.196:8080 [15:03:02]Content-Length: 833 [15:03:02]Content-Type: application/json [15:03:02] [15:03:02]POST finish read [15:03:02]Found Content-Length = 833 [15:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272806", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.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: Mbank", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:02]execute_script... [15:03: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)272806", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.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: Mbank", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:02]POST & json_proto [15:03:02]process_json_proto [15:03:02]json parsed OK: [15:03:02]protocol is kg_v1.0 [15:03:02]action value=close_receipt [15:03:02]process_action close_receipt [15:03:02]cmd_close_receipt [15:03:02]MH_GetDate [15:03:02]Write to MH i2c: F0 00 00 78 2F 96 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: F0 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: F0 09 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: F0 09 00 78 2F 00 A8 1B 15 67 E7 19 F8 65 3B [15:03:02]GetLastDocTimeStamp 1729436525 [15:03:02]current date 1729436584 [15:03:02]FM_GetShiftState [15:03:02]SAM_PROTO_GetShiftState [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 13 01 00 [15:03:02]Write to MH i2c: E2 08 00 79 2F 80 13 01 00 00 00 00 00 25 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 0E 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 0E 00 79 2F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6A [15:03:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:03:02]wFMCommunicate OK [15:03:02]SAM_PROTO_GetShiftState done [15:03:02]FM_GetShiftState done [15:03:02]opened in 1729384303 [15:03:02]opened+sec_in_day 1729470703 [15:03:02]quantity*price = 10700 [15:03:02]sum+1 = 10701 [15:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 0.00 Безнал.: 107.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 193 20.10.2024 15:03 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73867 ФПД: 266938988093516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150304&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73867&fm=266938988093516&tin=02508201610067®Number=0000000000161154&sum=10700 0 [15:03:03]StoreToDocumentArchive [15:03:03]shift 170 fd 73867 [15:03:03]save to /storage/0170/doc_00073867 [15:03:03]save last doc name /storage/0170/doc_00073867 to /storage/kkm_last_doc_name [15:03:03]save OK [15:03:03]Clear old archive folders... [15:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=298 [15:03:03]tlvbuf is B6E40010 [15:03:03]SAM_PROTO_ClearQueue [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 09 00 00 [15:03:03]Write to MH i2c: E2 08 00 86 2F 80 09 00 00 00 00 00 00 27 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 86 2F 00 90 00 29 [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]SAM_PROTO_ClearQueue done [15:03:03]KKMCreateOFDPacket [15:03:03]OFDProtocolAddRootSTLVToBuf [15:03:03]FM_MakeSignedData [15:03:03]FM_MakeSignedData [15:03:03]SAM_PROTO_SignData [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 01 02 [15:03:03]Write to MH i2c: E2 08 00 87 2F 80 0D 01 02 00 00 00 00 2F [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 87 2F 00 90 00 2A [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]wFMCommunicate request_size=255 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A8 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [15:03:03]Write to MH i2c: E2 02 01 88 2F 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A8 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 DE [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 03 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 03 00 88 2F 00 90 00 2B [15:03:04]RAPDU: 90 00 [15:03:04]wFMCommunicate OK [15:03:04]wFMCommunicate request_size=57 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 20 01 00 35 04 06 00 F2 C7 93 8F E0 4C [15:03:04]Write to MH i2c: E2 3C 00 89 2F 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 20 01 00 35 04 06 00 F2 C7 93 8F E0 4C 00 00 95 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 03 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 03 00 89 2F 00 90 00 2C [15:03:04]RAPDU: 90 00 [15:03:04]wFMCommunicate OK [15:03:04]wFMCommunicate request_size=4 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 0D 03 02 [15:03:04]Write to MH i2c: E2 08 00 8A 2F 80 0D 03 02 00 00 00 00 34 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 0B 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 0B 00 8A 2F 00 97 02 DC FC D5 84 07 CE 90 00 D4 [15:03:04]RAPDU: 97 02 DC FC D5 84 07 CE 90 00 [15:03:04]wFMCommunicate OK [15:03:04]SAM_PROTO_SignData done [15:03:04]FM_MakeSignedData done [15:03:04]CreateOFDProtocolMessage [15:03:04]wFMCommunicate request_size=4 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 11 00 00 [15:03:04]Write to MH i2c: E2 08 00 8B 2F 80 11 00 00 00 00 00 00 34 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 17 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 17 00 8B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 81 [15:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:03:04]wFMCommunicate OK [15:03:04]CreateOFDProtocolMessage done [15:03:04]OFDSenderStorePacket 73867 [15:03:04]StoreOFDPacket docnum=73867 [15:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3E 01 00 00 84 90 36 01 EE CC 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A8 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 20 01 00 35 04 06 00 F2 C7 93 8F E0 4C 97 02 DC FC D5 84 07 CE [15:03:04]CheckFolder [15:03:04]dirname=/storage/ofd_packets [15:03:04]CheckFolder done [15:03:04]ProducePacketName [15:03:04]name=ofd_packets/00073867 [15:03:04]NVStorageSaveData ofd_packets/00073867 [15:03:04]File name is /storage/ofd_packets/00073867 [15:03:04]Write 348 bytes [15:03:04]NVStorageSaveData done [15:03:04]OFDSenderStorePacket done [15:03:04]KKMCreateOFDPacket done [15:03:04]NVStorageSaveData kkm_last_timestamp [15:03:04]File name is /storage/kkm_last_timestamp [15:03:04]Write 4 bytes [15:03:04]NVStorageSaveData done [15:03:04]ExternCall_PrintAddStr [15:03:04]wPrintStart [15:03:04]Write to MH i2c: 01 00 00 8C 2F BB [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 8C 2F 00 00 00 00 00 FF 0F D0 [15:03:04]RasterBufferAndPrint [15:03:04]line Счет N : (3)272806 [15:03:04]line ИНН: 02508201610067 [15:03:04]line Контрольно-Кассовый Чек [15:03:04]line ПРОДАЖА [15:03:04]line Товар: 5449000189356 [15:03:04]line Холодный чай Fuse манго ананас 1л [15:03:04]line 1.000 * 107.00 [15:03:04]line = 107.00 [15:03:04]line НДС 12% НСП 1% [15:03:04]line > о реализуемом товаре [15:03:04]line ИТОГО: 107.00 [15:03:04]line НСП 1% : 0.95 [15:03:04]line НДС 12% : 11.36 [15:03:04]line Наличными: 0.00 [15:03:04]line Безнал.: 107.00 [15:03:04]line Место: АЗС № 133 "Партнер Нефть" [15:03:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:03:04]line СНО: Общий режим [15:03:04]line Чек 193 20.10.2024 15:03 [15:03:04]line Смена: 170 ФФД: 1.0 [15:03:04]line ЗНМ: 0300000020 [15:03:04]line РНМ: 0000000000161154 [15:03:04]line Версия ККМ: v1.0 [15:03:04]line Платежная система: Mbank [15:03:04]line ФМ: 0000000000963323 [15:03:04]line ФД: 73867 [15:03:04]line ФПД: 266938988093516 [15:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150304&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73867&fm=266938988093516&tin=02508201610067®Number=0000000000161154&sum=10700 [15:03:04]line 0 [15:03:04]OFD Sender: Processing packet 73867 [packets to send 15, broken 14] [15:03:04]ProducePacketName [15:03:04]name=ofd_packets/00073867 [15:03:04]OFD Sender: To server: pG, [15:03:04]CommunicateWithHost lk.salyk.kg:30040 [15:03:04]ConnectInit lk.salyk.kg [15:03:04]written 0, free lines is 4095 [15:03:04]Connected sock=10 [15:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3E 01 00 00 84 90 36 01 EE CC 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A8 1B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 20 01 00 35 04 06 00 F2 C7 93 8F E0 4C 97 02 DC FC D5 84 07 CE [15:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7D EA 47 00 92 82 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 39 36 33 33 32 33 10 04 04 00 8B 20 01 00 F4 03 04 00 8D C4 14 67 B6 04 01 00 00 9F 3A A3 61 BB 65 AF B5 [15:03:04]CommunicateWithHost err = 0 [15:03:04]CheckOFDResponse [15:03:04]1017 (14) - 77093643461234 [15:03:04]1041 (16) - 0000000000963323 [15:03:04]1040 (4) - 73867 [15:03:04]1012 (4) - 20.10.2024 08:51 [15:03:04]1206 (1) - 0 [15:03:04]OFD Sender: Remove packet 73867 [15:03:04]ProducePacketName [15:03:04]name=ofd_packets/00073867 [15:03:04]NVStorageDeleteData [15:03:05]Write to MH i2c: 01 00 00 B5 2F E4 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: 01 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: 01 07 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: 01 07 00 B5 2F 00 00 00 00 00 C2 0C B9 [15:03:05]RasterBufferAndPrint [15:03:05]line [15:03:05]line [15:03:05]line [15:03:05]line [15:03:05]line [15:03:05]written 0, free lines is 3272 [15:03:05]MH_Cut [15:03:05]Write to MH i2c: D1 01 00 BC 2F 01 BD [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: D1 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: D1 01 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: D1 01 00 BC 2F 00 BC [15:03:05]Write to MH i2c: 01 00 00 BD 2F EC [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]OFD Sender: No OFD packet to send [15:03:05]*** Cut start [15:03:05]*** Partial cut [15:03:05]*** CUTSNS_PIN = 1 [15:03:05]*** CUTSNS_PIN = 0 [15:03:06]*** Brake cut motor [15:03:06]Read from MH i2c: 01 [15:03:06]MH_I2C_Read... [15:03:06]*** Stop cut motor [15:03:06]*** Cut end [15:03:06]Read from MH i2c: 01 07 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: 01 07 00 BD 2F 00 00 00 00 00 FF 0F 01 [15:03:06]process_action close_receipt done [15:03:06]requested_data is exist [15:03:06]produce_requested_data [15:03:06]requested_item fm.sn is exist - process it [15:03:06]wFMCommunicate request_size=4 [15:03:06]MH_SAM_APDU [15:03:06]CAPDU: 80 11 00 00 [15:03:06]Write to MH i2c: E2 08 00 BE 2F 80 11 00 00 00 00 00 00 67 [15:03:06]Write i2c OK [15:03:06]MH_I2C_Read... [15:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:06]Read from MH i2c: E2 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 17 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 17 00 BE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B4 [15:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:03:06]wFMCommunicate OK [15:03:06]requested_item fd.num is exist - process it [15:03:06]SAM_PROTO_GetFieldsCounters [15:03:06]wFMCommunicate request_size=4 [15:03:06]MH_SAM_APDU [15:03:06]CAPDU: 80 13 00 00 [15:03:06]Write to MH i2c: E2 08 00 BF 2F 80 13 00 00 00 00 00 00 6A [15:03:06]Write i2c OK [15:03:06]MH_I2C_Read... [15:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:06]Read from MH i2c: E2 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 62 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 62 00 BF 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:06]wFMCommunicate OK [15:03:06]SAM_PROTO_GetFieldsCounters done [15:03:06]requested_item shift.num is exist - process it [15:03:06]requested_item shift.opened is exist - process it [15:03:06]req_shift_opened [15:03:06]FM_GetShiftState [15:03:06]SAM_PROTO_GetShiftState [15:03:06]wFMCommunicate request_size=4 [15:03:06]MH_SAM_APDU [15:03:06]CAPDU: 80 13 01 00 [15:03:06]Write to MH i2c: E2 08 00 C0 2F 80 13 01 00 00 00 00 00 6C [15:03:06]Write i2c OK [15:03:06]MH_I2C_Read... [15:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:06]Read from MH i2c: E2 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 C0 2F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B1 [15:03:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:03:06]wFMCommunicate OK [15:03:06]SAM_PROTO_GetShiftState done [15:03:06]FM_GetShiftState done [15:03:06]req_shift_opened done [15:03:06]requested_item shift.open_date is exist - process it [15:03:06]req_shift_open_date [15:03:06]req_shift_open_date done [15:03:06]produce_requested_data done [15:03:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73867,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:03:06]process_action_free close_receipt [15:03:06]json_value_free [15:03:06]json_value_free done [15:03:06]process_json_proto returns [15:03:06]Send response to host [15:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73867,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:03:06]free response buf [15:03:06]execute_script done [15:03:06]execute_script returns [15:03:06]free content buf [15:03:06]Sock 8.Close socket [15:03:06]Sock 8.Thread stoped [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:34]accept exits with 9 [15:04:34]New connection [15:04:34]New thread 3067575652 created [15:04:34]Thread 3067432292 joined [15:04:34]Waiting for new connection... [15:04:34] Sock 9.Parse request [15:04:34]Sock 9.Check first char [15:04:34]Sock 9.First char is OK [15:04:34]request: POST /json_proto HTTP/1.0 [15:04:34]Method: POST [15:04:34]URL: /json_proto [15:04:34]Method is POST - this is cgi request [15:04:34]url: /json_proto [15:04:34]query_string will be loaded in cgi processing [15:04:34]execute_cgi json_proto POST (null) [15:04:34]execute_cgi path=json_proto method=POST [15:04:34]POST find Content-Length [15:04:34]Host: 172.17.44.196:8080 [15:04:34]Content-Length: 767 [15:04:34]Content-Type: application/json [15:04:34] [15:04:34]POST finish read [15:04:34]Found Content-Length = 767 [15:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:34]execute_script... [15:04: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 : (1)1963071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:34]POST & json_proto [15:04:34]process_json_proto [15:04:34]json parsed OK: [15:04:34]protocol is kg_v1.0 [15:04:34]action value=close_receipt [15:04:34]process_action close_receipt [15:04:34]cmd_close_receipt [15:04:34]MH_GetDate [15:04:34]Write to MH i2c: F0 00 00 C1 2F DF [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: F0 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: F0 09 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: F0 09 00 C1 2F 00 05 1C 15 67 E7 19 F8 65 E2 [15:04:34]GetLastDocTimeStamp 1729436584 [15:04:34]current date 1729436677 [15:04:34]FM_GetShiftState [15:04:34]SAM_PROTO_GetShiftState [15:04:34]wFMCommunicate request_size=4 [15:04:34]MH_SAM_APDU [15:04:34]CAPDU: 80 13 01 00 [15:04:34]Write to MH i2c: E2 08 00 C2 2F 80 13 01 00 00 00 00 00 6E [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:34]Read from MH i2c: E2 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 0E 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 0E 00 C2 2F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B3 [15:04:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:04:34]wFMCommunicate OK [15:04:34]SAM_PROTO_GetShiftState done [15:04:34]FM_GetShiftState done [15:04:34]opened in 1729384303 [15:04:34]opened+sec_in_day 1729470703 [15:04:34]quantity*price = 100050 [15:04:34]sum+1 = 100052 [15:04:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 194 20.10.2024 15:04 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73868 ФПД: 38570066680828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150437&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73868&fm=38570066680828&tin=02508201610067®Number=0000000000161154&sum=100051 [15:04:36]StoreToDocumentArchive [15:04:36]shift 170 fd 73868 [15:04:36]save to /storage/0170/doc_00073868 [15:04:36]save last doc name /storage/0170/doc_00073868 to /storage/kkm_last_doc_name [15:04:36]save OK [15:04:36]Clear old archive folders... [15:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:36]tlvbuf is 00390800 [15:04:36]SAM_PROTO_ClearQueue [15:04:36]wFMCommunicate request_size=4 [15:04:36]MH_SAM_APDU [15:04:36]CAPDU: 80 09 00 00 [15:04:36]Write to MH i2c: E2 08 00 CF 2F 80 09 00 00 00 00 00 00 70 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 CF 2F 00 90 00 72 [15:04:36]RAPDU: 90 00 [15:04:36]wFMCommunicate OK [15:04:36]SAM_PROTO_ClearQueue done [15:04:36]KKMCreateOFDPacket [15:04:36]OFDProtocolAddRootSTLVToBuf [15:04:36]FM_MakeSignedData [15:04:36]FM_MakeSignedData [15:04:36]SAM_PROTO_SignData [15:04:36]wFMCommunicate request_size=4 [15:04:36]MH_SAM_APDU [15:04:36]CAPDU: 80 0D 01 02 [15:04:36]Write to MH i2c: E2 08 00 D0 2F 80 0D 01 02 00 00 00 00 78 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 D0 2F 00 90 00 73 [15:04:36]RAPDU: 90 00 [15:04:36]wFMCommunicate OK [15:04:36]wFMCommunicate request_size=255 [15:04:36]MH_SAM_APDU [15:04:36]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 05 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 20 01 00 35 04 06 00 23 14 4B 1F [15:04:36]Write to MH i2c: E2 02 01 D1 2F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 05 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 20 01 00 35 04 06 00 23 14 4B 1F 00 00 AD [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 D1 2F 00 90 00 74 [15:04:36]RAPDU: 90 00 [15:04:36]wFMCommunicate OK [15:04:36]wFMCommunicate request_size=7 [15:04:36]MH_SAM_APDU [15:04:36]CAPDU: 80 0D 02 02 02 9B FC [15:04:36]Write to MH i2c: E2 0A 00 D2 2F 80 0D 02 02 02 00 9B FC 00 00 16 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 03 00 D2 2F 00 90 00 75 [15:04:36]RAPDU: 90 00 [15:04:36]wFMCommunicate OK [15:04:36]wFMCommunicate request_size=4 [15:04:36]MH_SAM_APDU [15:04:36]CAPDU: 80 0D 03 02 [15:04:36]Write to MH i2c: E2 08 00 D3 2F 80 0D 03 02 00 00 00 00 7D [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 0B 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 0B 00 D3 2F 00 C0 B3 AE 84 01 DA EF C2 90 00 AF [15:04:36]RAPDU: C0 B3 AE 84 01 DA EF C2 90 00 [15:04:36]wFMCommunicate OK [15:04:36]SAM_PROTO_SignData done [15:04:36]FM_MakeSignedData done [15:04:36]CreateOFDProtocolMessage [15:04:36]wFMCommunicate request_size=4 [15:04:36]MH_SAM_APDU [15:04:36]CAPDU: 80 11 00 00 [15:04:36]Write to MH i2c: E2 08 00 D4 2F 80 11 00 00 00 00 00 00 7D [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:36]Read from MH i2c: E2 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 17 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: E2 17 00 D4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CA [15:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:04:36]wFMCommunicate OK [15:04:36]CreateOFDProtocolMessage done [15:04:36]OFDSenderStorePacket 73868 [15:04:36]StoreOFDPacket docnum=73868 [15:04:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 49 03 04 01 9D E0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 05 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 20 01 00 35 04 06 00 23 14 4B 1F 9B FC C0 B3 AE 84 01 DA EF C2 [15:04:36]CheckFolder [15:04:36]dirname=/storage/ofd_packets [15:04:36]CheckFolder done [15:04:36]ProducePacketName [15:04:36]name=ofd_packets/00073868 [15:04:36]NVStorageSaveData ofd_packets/00073868 [15:04:36]File name is /storage/ofd_packets/00073868 [15:04:36]Write 298 bytes [15:04:36]NVStorageSaveData done [15:04:36]OFDSenderStorePacket done [15:04:36]KKMCreateOFDPacket done [15:04:36]NVStorageSaveData kkm_last_timestamp [15:04:36]File name is /storage/kkm_last_timestamp [15:04:36]Write 4 bytes [15:04:36]NVStorageSaveData done [15:04:36]ExternCall_PrintAddStr [15:04:36]wPrintStart [15:04:36]Write to MH i2c: 01 00 00 D5 2F 04 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 D5 2F 00 00 00 00 00 FF 0F 19 [15:04:36]RasterBufferAndPrint [15:04:36]line Счет N : (1)1963071 [15:04:36]line ИНН: 02508201610067 [15:04:36]line Контрольно-Кассовый Чек [15:04:36]line ПРОДАЖА [15:04:36]line ТРК (МРК, ГНК) : 31 [15:04:36]line Товар: 2710194210 [15:04:36]line ДТ-К-5 [15:04:36]line 13.130 * 76.20 [15:04:36]line = 1000.51 [15:04:36]line НДС 12% НСП 1% [15:04:36]line > о реализуемом товаре [15:04:36]line ИТОГО: 1000.51 [15:04:36]line НСП 1% : 8.85 [15:04:36]line НДС 12% : 106.25 [15:04:36]line Наличными: 0.00 [15:04:36]line Безнал.: 1000.51 [15:04:36]line Место: АЗС № 133 "Партнер Нефть" [15:04:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:04:36]line СНО: Общий режим [15:04:36]line Чек 194 20.10.2024 15:04 [15:04:36]line Смена: 170 ФФД: 1.0 [15:04:36]line ЗНМ: 0300000020 [15:04:36]line РНМ: 0000000000161154 [15:04:36]line Версия ККМ: v1.0 [15:04:36]line Платежная система: Mbank [15:04:36]line ФМ: 0000000000963323 [15:04:36]line ФД: 73868 [15:04:36]line ФПД: 38570066680828 [15:04:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150437&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73868&fm=38570066680828&tin=02508201610067®Number=0000000000161154&sum=100051 [15:04:36]OFD Sender: Processing packet 73868 [packets to send 15, broken 14] [15:04:36]ProducePacketName [15:04:36]name=ofd_packets/00073868 [15:04:36]OFD Sender: To server: pG, [15:04:36]CommunicateWithHost lk.salyk.kg:30040 [15:04:36]ConnectInit lk.salyk.kg [15:04:36]written 0, free lines is 4095 [15:04:37]Connected sock=10 [15:04:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 49 03 04 01 9D E0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 05 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 20 01 00 35 04 06 00 23 14 4B 1F 9B FC C0 B3 AE 84 01 DA EF C2 [15:04:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 25 12 47 00 E7 3E 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 39 36 33 33 32 33 10 04 04 00 8C 20 01 00 F4 03 04 00 E9 C4 14 67 B6 04 01 00 00 14 CB 18 38 DA BC 52 EF [15:04:37]CommunicateWithHost err = 0 [15:04:37]CheckOFDResponse [15:04:37]1017 (14) - 77093643461234 [15:04:37]1041 (16) - 0000000000963323 [15:04:37]1040 (4) - 73868 [15:04:37]1012 (4) - 20.10.2024 08:52 [15:04:37]1206 (1) - 0 [15:04:37]OFD Sender: Remove packet 73868 [15:04:37]ProducePacketName [15:04:37]name=ofd_packets/00073868 [15:04:37]NVStorageDeleteData [15:04:37]Write to MH i2c: 01 00 00 FD 2F 2C [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: 01 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: 01 07 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: 01 07 00 FD 2F 00 00 00 00 00 EB 0C 2A [15:04:37]RasterBufferAndPrint [15:04:37]line [15:04:37]line [15:04:37]line [15:04:37]line [15:04:37]line [15:04:37]written 0, free lines is 3312 [15:04:37]MH_Cut [15:04:37]Write to MH i2c: D1 01 00 04 30 01 06 [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: D1 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: D1 01 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: D1 01 00 04 30 00 05 [15:04:37]Write to MH i2c: 01 00 00 05 30 35 [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]OFD Sender: No OFD packet to send [15:04:38]*** Cut start [15:04:38]*** Partial cut [15:04:38]*** CUTSNS_PIN = 1 [15:04:38]*** CUTSNS_PIN = 0 [15:04:38]*** Brake cut motor [15:04:38]Read from MH i2c: 01 [15:04:38]MH_I2C_Read... [15:04:38]*** Stop cut motor [15:04:38]*** Cut end [15:04:38]Read from MH i2c: 01 07 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: 01 07 00 05 30 00 00 00 00 00 FF 0F 4A [15:04:38]process_action close_receipt done [15:04:38]requested_data is exist [15:04:38]produce_requested_data [15:04:38]requested_item fm.sn is exist - process it [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 11 00 00 [15:04:38]Write to MH i2c: E2 08 00 06 30 80 11 00 00 00 00 00 00 B0 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 17 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 17 00 06 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [15:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:04:38]wFMCommunicate OK [15:04:38]requested_item fd.num is exist - process it [15:04:38]SAM_PROTO_GetFieldsCounters [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 13 00 00 [15:04:38]Write to MH i2c: E2 08 00 07 30 80 13 00 00 00 00 00 00 B3 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:39]Read from MH i2c: E2 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 62 00 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 62 00 07 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [15:04:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:39]wFMCommunicate OK [15:04:39]SAM_PROTO_GetFieldsCounters done [15:04:39]requested_item shift.num is exist - process it [15:04:39]requested_item shift.opened is exist - process it [15:04:39]req_shift_opened [15:04:39]FM_GetShiftState [15:04:39]SAM_PROTO_GetShiftState [15:04:39]wFMCommunicate request_size=4 [15:04:39]MH_SAM_APDU [15:04:39]CAPDU: 80 13 01 00 [15:04:39]Write to MH i2c: E2 08 00 08 30 80 13 01 00 00 00 00 00 B5 [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:39]Read from MH i2c: E2 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 0E 00 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 0E 00 08 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FA [15:04:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:04:39]wFMCommunicate OK [15:04:39]SAM_PROTO_GetShiftState done [15:04:39]FM_GetShiftState done [15:04:39]req_shift_opened done [15:04:39]requested_item shift.open_date is exist - process it [15:04:39]req_shift_open_date [15:04:39]req_shift_open_date done [15:04:39]produce_requested_data done [15:04:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73868,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:04:39]process_action_free close_receipt [15:04:39]json_value_free [15:04:39]json_value_free done [15:04:39]process_json_proto returns [15:04:39]Send response to host [15:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73868,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:04:39]free response buf [15:04:39]execute_script done [15:04:39]execute_script returns [15:04:39]free content buf [15:04:39]Sock 9.Close socket [15:04:39]Sock 9.Thread stoped [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:55]accept exits with 8 [15:05:55]New connection [15:05:55]New thread 3067432292 created [15:05:55]Thread 3067575652 joined [15:05:55]Waiting for new connection... [15:05:55] Sock 8.Parse request [15:05:55]Sock 8.Check first char [15:05:55]Sock 8.First char is OK [15:05:55]request: POST /json_proto HTTP/1.0 [15:05:55]Method: POST [15:05:55]URL: /json_proto [15:05:55]Method is POST - this is cgi request [15:05:55]url: /json_proto [15:05:55]query_string will be loaded in cgi processing [15:05:55]execute_cgi json_proto POST (null) [15:05:55]execute_cgi path=json_proto method=POST [15:05:55]POST find Content-Length [15:05:55]Host: 172.17.44.196:8080 [15:05:55]Content-Length: 680 [15:05:55]Content-Type: application/json [15:05:55] [15:05:55]POST finish read [15:05:55]Found Content-Length = 680 [15:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [15:05:55]execute_script... [15:05: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)1963072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [15:05:55]POST & json_proto [15:05:55]process_json_proto [15:05:55]json parsed OK: [15:05:55]protocol is kg_v1.0 [15:05:55]action value=close_receipt [15:05:55]process_action close_receipt [15:05:55]cmd_close_receipt [15:05:55]MH_GetDate [15:05:55]Write to MH i2c: F0 00 00 09 30 28 [15:05:55]Write i2c OK [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: F0 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: F0 09 00 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: F0 09 00 09 30 00 55 1C 15 67 E7 19 F8 65 7B [15:05:55]GetLastDocTimeStamp 1729436677 [15:05:55]current date 1729436757 [15:05:55]FM_GetShiftState [15:05:55]SAM_PROTO_GetShiftState [15:05:55]wFMCommunicate request_size=4 [15:05:55]MH_SAM_APDU [15:05:55]CAPDU: 80 13 01 00 [15:05:55]Write to MH i2c: E2 08 00 0A 30 80 13 01 00 00 00 00 00 B7 [15:05:55]Write i2c OK [15:05:55]MH_I2C_Read... [15:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:55]Read from MH i2c: E2 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: E2 0E 00 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: E2 0E 00 0A 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FC [15:05:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:05:55]wFMCommunicate OK [15:05:55]SAM_PROTO_GetShiftState done [15:05:55]FM_GetShiftState done [15:05:55]opened in 1729384303 [15:05:55]opened+sec_in_day 1729470703 [15:05:55]quantity*price = 150037 [15:05:55]sum+1 = 150039 [15:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 195 20.10.2024 15:05 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73869 ФПД: 5741693581073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73869&fm=5741693581073&tin=02508201610067®Number=0000000000161154&sum=150000 [15:05:56]StoreToDocumentArchive [15:05:56]shift 170 fd 73869 [15:05:56]save to /storage/0170/doc_00073869 [15:05:56]save last doc name /storage/0170/doc_00073869 to /storage/kkm_last_doc_name [15:05:56]save OK [15:05:56]Clear old archive folders... [15:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:56]tlvbuf is B6F72920 [15:05:56]SAM_PROTO_ClearQueue [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 09 00 00 [15:05:56]Write to MH i2c: E2 08 00 17 30 80 09 00 00 00 00 00 00 B9 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 17 30 00 90 00 BB [15:05:56]RAPDU: 90 00 [15:05:56]wFMCommunicate OK [15:05:56]SAM_PROTO_ClearQueue done [15:05:56]KKMCreateOFDPacket [15:05:56]OFDProtocolAddRootSTLVToBuf [15:05:56]FM_MakeSignedData [15:05:56]FM_MakeSignedData [15:05:56]SAM_PROTO_SignData [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 0D 01 02 [15:05:56]Write to MH i2c: E2 08 00 18 30 80 0D 01 02 00 00 00 00 C1 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 18 30 00 90 00 BC [15:05:56]RAPDU: 90 00 [15:05:56]wFMCommunicate OK [15:05:56]wFMCommunicate request_size=255 [15:05:56]MH_SAM_APDU [15:05:56]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 C3 00 00 00 F4 03 04 00 55 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 20 01 00 35 04 06 00 05 38 D7 9B [15:05:56]Write to MH i2c: E2 02 01 19 30 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 C3 00 00 00 F4 03 04 00 55 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 20 01 00 35 04 06 00 05 38 D7 9B 00 00 67 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 19 30 00 90 00 BD [15:05:56]RAPDU: 90 00 [15:05:56]wFMCommunicate OK [15:05:56]wFMCommunicate request_size=7 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 0D 02 02 02 37 11 [15:05:56]Write to MH i2c: E2 0A 00 1A 30 80 0D 02 02 02 00 37 11 00 00 10 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 1A 30 00 90 00 BE [15:05:56]RAPDU: 90 00 [15:05:56]wFMCommunicate OK [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 0D 03 02 [15:05:56]Write to MH i2c: E2 08 00 1B 30 80 0D 03 02 00 00 00 00 C6 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0B 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0B 00 1B 30 00 50 FA 83 10 3C AA 7A 1B 90 00 1F [15:05:56]RAPDU: 50 FA 83 10 3C AA 7A 1B 90 00 [15:05:56]wFMCommunicate OK [15:05:56]SAM_PROTO_SignData done [15:05:56]FM_MakeSignedData done [15:05:56]CreateOFDProtocolMessage [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 11 00 00 [15:05:56]Write to MH i2c: E2 08 00 1C 30 80 11 00 00 00 00 00 00 C6 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 17 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 17 00 1C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 13 [15:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:05:56]wFMCommunicate OK [15:05:56]CreateOFDProtocolMessage done [15:05:56]OFDSenderStorePacket 73869 [15:05:56]StoreOFDPacket docnum=73869 [15:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 E0 EE 04 01 AA 00 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 C3 00 00 00 F4 03 04 00 55 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 20 01 00 35 04 06 00 05 38 D7 9B 37 11 50 FA 83 10 3C AA 7A 1B [15:05:56]CheckFolder [15:05:56]dirname=/storage/ofd_packets [15:05:56]CheckFolder done [15:05:56]ProducePacketName [15:05:56]name=ofd_packets/00073869 [15:05:56]NVStorageSaveData ofd_packets/00073869 [15:05:56]File name is /storage/ofd_packets/00073869 [15:05:56]Write 298 bytes [15:05:56]NVStorageSaveData done [15:05:56]OFDSenderStorePacket done [15:05:56]KKMCreateOFDPacket done [15:05:56]NVStorageSaveData kkm_last_timestamp [15:05:56]File name is /storage/kkm_last_timestamp [15:05:56]Write 4 bytes [15:05:56]NVStorageSaveData done [15:05:56]ExternCall_PrintAddStr [15:05:56]wPrintStart [15:05:56]Write to MH i2c: 01 00 00 1D 30 4D [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: 01 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: 01 07 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: 01 07 00 1D 30 00 00 00 00 00 FF 0F 62 [15:05:56]RasterBufferAndPrint [15:05:56]line Счет N : (1)1963072 [15:05:56]line ИНН: 02508201610067 [15:05:56]line Контрольно-Кассовый Чек [15:05:56]line ПРОДАЖА [15:05:56]line ТРК (МРК, ГНК) : 31 [15:05:56]line Товар: 2710194210 [15:05:56]line ДТ-К-5 [15:05:56]line 19.690 * 76.20 [15:05:56]line = 1500.38 [15:05:56]line НДС 12% НСП 1% [15:05:56]line > о реализуемом товаре [15:05:56]line ОКРУГЛЕНИЕ: -0.38 [15:05:56]line ИТОГО: 1500.00 [15:05:56]line Внесено: 1500.00 [15:05:56]line СДАЧА: 0.00 [15:05:56]line НСП 1% : 13.28 [15:05:56]line НДС 12% : 159.33 [15:05:56]line Наличными: 1500.00 [15:05:56]line Безнал.: 0.00 [15:05:56]line Место: АЗС № 133 "Партнер Нефть" [15:05:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:05:56]line СНО: Общий режим [15:05:56]line Чек 195 20.10.2024 15:05 [15:05:56]line Смена: 170 ФФД: 1.0 [15:05:56]line ЗНМ: 0300000020 [15:05:56]line РНМ: 0000000000161154 [15:05:56]line Версия ККМ: v1.0 [15:05:56]line ФМ: 0000000000963323 [15:05:56]line ФД: 73869 [15:05:56]line ФПД: 5741693581073 [15:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73869&fm=5741693581073&tin=02508201610067®Number=0000000000161154&sum=150000 [15:05:57]OFD Sender: Processing packet 73869 [packets to send 15, broken 14] [15:05:57]ProducePacketName [15:05:57]name=ofd_packets/00073869 [15:05:57]OFD Sender: To server: pG, [15:05:57]CommunicateWithHost lk.salyk.kg:30040 [15:05:57]ConnectInit lk.salyk.kg [15:05:57]written 0, free lines is 4095 [15:05:57]Connected sock=10 [15:05:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 E0 EE 04 01 AA 00 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 C3 00 00 00 F4 03 04 00 55 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 20 01 00 35 04 06 00 05 38 D7 9B 37 11 50 FA 83 10 3C AA 7A 1B [15:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B E0 47 00 4C 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 39 36 33 33 32 33 10 04 04 00 8D 20 01 00 F4 03 04 00 39 C5 14 67 B6 04 01 00 00 03 D8 AC D6 3D AF 58 BF [15:05:57]CommunicateWithHost err = 0 [15:05:57]CheckOFDResponse [15:05:57]1017 (14) - 77093643461234 [15:05:57]1041 (16) - 0000000000963323 [15:05:57]1040 (4) - 73869 [15:05:57]1012 (4) - 20.10.2024 08:54 [15:05:57]1206 (1) - 0 [15:05:57]OFD Sender: Remove packet 73869 [15:05:57]ProducePacketName [15:05:57]name=ofd_packets/00073869 [15:05:57]NVStorageDeleteData [15:05:57]Write to MH i2c: 01 00 00 47 30 77 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: 01 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: 01 07 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: 01 07 00 47 30 00 00 00 00 00 C4 0C 4E [15:05:57]RasterBufferAndPrint [15:05:57]line [15:05:57]line [15:05:57]line [15:05:57]line [15:05:57]line [15:05:57]written 0, free lines is 3273 [15:05:57]MH_Cut [15:05:57]Write to MH i2c: D1 01 00 4E 30 01 50 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: D1 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: D1 01 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: D1 01 00 4E 30 00 4F [15:05:57]Write to MH i2c: 01 00 00 4F 30 7F [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]OFD Sender: No OFD packet to send [15:05:58]*** Cut start [15:05:58]*** Partial cut [15:05:58]*** CUTSNS_PIN = 1 [15:05:58]*** CUTSNS_PIN = 0 [15:05:58]*** Brake cut motor [15:05:59]Read from MH i2c: 01 [15:05:59]MH_I2C_Read... [15:05:59]*** Stop cut motor [15:05:59]*** Cut end [15:05:59]Read from MH i2c: 01 07 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: 01 07 00 4F 30 00 00 00 00 00 FF 0F 94 [15:05:59]process_action close_receipt done [15:05:59]requested_data is exist [15:05:59]produce_requested_data [15:05:59]requested_item fm.sn is exist - process it [15:05:59]wFMCommunicate request_size=4 [15:05:59]MH_SAM_APDU [15:05:59]CAPDU: 80 11 00 00 [15:05:59]Write to MH i2c: E2 08 00 50 30 80 11 00 00 00 00 00 00 FA [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:59]Read from MH i2c: E2 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 17 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 17 00 50 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [15:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:05:59]wFMCommunicate OK [15:05:59]requested_item fd.num is exist - process it [15:05:59]SAM_PROTO_GetFieldsCounters [15:05:59]wFMCommunicate request_size=4 [15:05:59]MH_SAM_APDU [15:05:59]CAPDU: 80 13 00 00 [15:05:59]Write to MH i2c: E2 08 00 51 30 80 13 00 00 00 00 00 00 FD [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:59]Read from MH i2c: E2 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 62 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 62 00 51 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:05:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:59]wFMCommunicate OK [15:05:59]SAM_PROTO_GetFieldsCounters done [15:05:59]requested_item shift.num is exist - process it [15:05:59]requested_item shift.opened is exist - process it [15:05:59]req_shift_opened [15:05:59]FM_GetShiftState [15:05:59]SAM_PROTO_GetShiftState [15:05:59]wFMCommunicate request_size=4 [15:05:59]MH_SAM_APDU [15:05:59]CAPDU: 80 13 01 00 [15:05:59]Write to MH i2c: E2 08 00 52 30 80 13 01 00 00 00 00 00 FF [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:59]Read from MH i2c: E2 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 0E 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 0E 00 52 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 44 [15:05:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:05:59]wFMCommunicate OK [15:05:59]SAM_PROTO_GetShiftState done [15:05:59]FM_GetShiftState done [15:05:59]req_shift_opened done [15:05:59]requested_item shift.open_date is exist - process it [15:05:59]req_shift_open_date [15:05:59]req_shift_open_date done [15:05:59]produce_requested_data done [15:05:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73869,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:05:59]process_action_free close_receipt [15:05:59]json_value_free [15:05:59]json_value_free done [15:05:59]process_json_proto returns [15:05:59]Send response to host [15:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73869,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:05:59]free response buf [15:05:59]execute_script done [15:05:59]execute_script returns [15:05:59]free content buf [15:05:59]Sock 8.Close socket [15:05:59]Sock 8.Thread stoped [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:10]accept exits with 9 [15:06:10]New connection [15:06:10]New thread 3067575652 created [15:06:10]Thread 3067432292 joined [15:06:10]Waiting for new connection... [15:06:10] Sock 9.Parse request [15:06:10]Sock 9.Check first char [15:06:10]Sock 9.First char is OK [15:06:10]request: POST /json_proto HTTP/1.0 [15:06:10]Method: POST [15:06:10]URL: /json_proto [15:06:10]Method is POST - this is cgi request [15:06:10]url: /json_proto [15:06:10]query_string will be loaded in cgi processing [15:06:10]execute_cgi json_proto POST (null) [15:06:10]execute_cgi path=json_proto method=POST [15:06:10]POST find Content-Length [15:06:10]Host: 172.17.44.196:8080 [15:06:10]Content-Length: 767 [15:06:10]Content-Type: application/json [15:06:10] [15:06:10]POST finish read [15:06:10]Found Content-Length = 767 [15:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963073", "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" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:10]execute_script... [15:06: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 : (1)1963073", "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" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:10]POST & json_proto [15:06:10]process_json_proto [15:06:10]json parsed OK: [15:06:10]protocol is kg_v1.0 [15:06:10]action value=close_receipt [15:06:10]process_action close_receipt [15:06:10]cmd_close_receipt [15:06:10]MH_GetDate [15:06:10]Write to MH i2c: F0 00 00 53 30 72 [15:06:10]Write i2c OK [15:06:10]MH_I2C_Read... [15:06:10]Read from MH i2c: F0 [15:06:10]MH_I2C_Read... [15:06:10]Read from MH i2c: F0 09 00 [15:06:10]MH_I2C_Read... [15:06:10]Read from MH i2c: F0 09 00 53 30 00 64 1C 15 67 E7 19 F8 65 D4 [15:06:10]GetLastDocTimeStamp 1729436757 [15:06:10]current date 1729436772 [15:06:10]FM_GetShiftState [15:06:10]SAM_PROTO_GetShiftState [15:06:10]wFMCommunicate request_size=4 [15:06:10]MH_SAM_APDU [15:06:10]CAPDU: 80 13 01 00 [15:06:10]Write to MH i2c: E2 08 00 54 30 80 13 01 00 00 00 00 00 01 [15:06:10]Write i2c OK [15:06:10]MH_I2C_Read... [15:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:10]Read from MH i2c: E2 [15:06:10]MH_I2C_Read... [15:06:10]Read from MH i2c: E2 0E 00 [15:06:10]MH_I2C_Read... [15:06:10]Read from MH i2c: E2 0E 00 54 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 46 [15:06:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:06:10]wFMCommunicate OK [15:06:10]SAM_PROTO_GetShiftState done [15:06:10]FM_GetShiftState done [15:06:10]opened in 1729384303 [15:06:10]opened+sec_in_day 1729470703 [15:06:10]quantity*price = 50041 [15:06:10]sum+1 = 50042 [15:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 196 20.10.2024 15:06 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73870 ФПД: 200973600017336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150612&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73870&fm=200973600017336&tin=02508201610067®Number=0000000000161154&sum=50041 [15:06:11]StoreToDocumentArchive [15:06:11]shift 170 fd 73870 [15:06:11]save to /storage/0170/doc_00073870 [15:06:11]save last doc name /storage/0170/doc_00073870 to /storage/kkm_last_doc_name [15:06:11]save OK [15:06:11]Clear old archive folders... [15:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:11]tlvbuf is 003738C0 [15:06:11]SAM_PROTO_ClearQueue [15:06:11]wFMCommunicate request_size=4 [15:06:11]MH_SAM_APDU [15:06:11]CAPDU: 80 09 00 00 [15:06:11]Write to MH i2c: E2 08 00 61 30 80 09 00 00 00 00 00 00 03 [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:11]Read from MH i2c: E2 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 61 30 00 90 00 05 [15:06:11]RAPDU: 90 00 [15:06:11]wFMCommunicate OK [15:06:11]SAM_PROTO_ClearQueue done [15:06:11]KKMCreateOFDPacket [15:06:11]OFDProtocolAddRootSTLVToBuf [15:06:11]FM_MakeSignedData [15:06:11]FM_MakeSignedData [15:06:11]SAM_PROTO_SignData [15:06:11]wFMCommunicate request_size=4 [15:06:11]MH_SAM_APDU [15:06:11]CAPDU: 80 0D 01 02 [15:06:11]Write to MH i2c: E2 08 00 62 30 80 0D 01 02 00 00 00 00 0B [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:11]Read from MH i2c: E2 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 62 30 00 90 00 06 [15:06:11]RAPDU: 90 00 [15:06:11]wFMCommunicate OK [15:06:11]wFMCommunicate request_size=255 [15:06:11]MH_SAM_APDU [15:06:11]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 64 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 20 01 00 35 04 06 00 B6 [15:06:11]Write to MH i2c: E2 02 01 63 30 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 64 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 20 01 00 35 04 06 00 B6 00 00 AE [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:11]Read from MH i2c: E2 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 63 30 00 90 00 07 [15:06:11]RAPDU: 90 00 [15:06:11]wFMCommunicate OK [15:06:11]wFMCommunicate request_size=10 [15:06:11]MH_SAM_APDU [15:06:11]CAPDU: 80 0D 02 02 05 C8 D0 09 CB B8 [15:06:11]Write to MH i2c: E2 0D 00 64 30 80 0D 02 02 05 00 C8 D0 09 CB B8 00 00 3C [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:11]Read from MH i2c: E2 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 03 00 64 30 00 90 00 08 [15:06:11]RAPDU: 90 00 [15:06:11]wFMCommunicate OK [15:06:11]wFMCommunicate request_size=4 [15:06:11]MH_SAM_APDU [15:06:11]CAPDU: 80 0D 03 02 [15:06:11]Write to MH i2c: E2 08 00 65 30 80 0D 03 02 00 00 00 00 10 [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:11]Read from MH i2c: E2 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 0B 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 0B 00 65 30 00 70 F3 EF 46 0D 98 3F A7 90 00 34 [15:06:11]RAPDU: 70 F3 EF 46 0D 98 3F A7 90 00 [15:06:11]wFMCommunicate OK [15:06:11]SAM_PROTO_SignData done [15:06:11]FM_MakeSignedData done [15:06:11]CreateOFDProtocolMessage [15:06:11]wFMCommunicate request_size=4 [15:06:11]MH_SAM_APDU [15:06:11]CAPDU: 80 11 00 00 [15:06:11]Write to MH i2c: E2 08 00 66 30 80 11 00 00 00 00 00 00 10 [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:11]Read from MH i2c: E2 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 17 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: E2 17 00 66 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [15:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:06:11]wFMCommunicate OK [15:06:11]CreateOFDProtocolMessage done [15:06:11]OFDSenderStorePacket 73870 [15:06:11]StoreOFDPacket docnum=73870 [15:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 84 BA 07 01 BD 52 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 64 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 20 01 00 35 04 06 00 B6 C8 D0 09 CB B8 70 F3 EF 46 0D 98 3F A7 [15:06:11]CheckFolder [15:06:11]dirname=/storage/ofd_packets [15:06:11]CheckFolder done [15:06:11]ProducePacketName [15:06:11]name=ofd_packets/00073870 [15:06:11]NVStorageSaveData ofd_packets/00073870 [15:06:11]File name is /storage/ofd_packets/00073870 [15:06:11]Write 301 bytes [15:06:11]NVStorageSaveData done [15:06:11]OFDSenderStorePacket done [15:06:11]KKMCreateOFDPacket done [15:06:11]NVStorageSaveData kkm_last_timestamp [15:06:11]File name is /storage/kkm_last_timestamp [15:06:11]Write 4 bytes [15:06:11]NVStorageSaveData done [15:06:11]ExternCall_PrintAddStr [15:06:11]wPrintStart [15:06:11]Write to MH i2c: 01 00 00 67 30 97 [15:06:11]Write i2c OK [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: 01 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: 01 07 00 [15:06:11]MH_I2C_Read... [15:06:11]Read from MH i2c: 01 07 00 67 30 00 00 00 00 00 FF 0F AC [15:06:11]RasterBufferAndPrint [15:06:11]line Счет N : (1)1963073 [15:06:11]line ИНН: 02508201610067 [15:06:11]line Контрольно-Кассовый Чек [15:06:11]line ПРОДАЖА [15:06:11]line ТРК (МРК, ГНК) : 53 [15:06:11]line Товар: 2710124130 [15:06:11]line Аи-92-К-5 [15:06:11]line 7.480 * 66.90 [15:06:11]line = 500.41 [15:06:11]line НДС 12% НСП 1% [15:06:11]line > о реализуемом товаре [15:06:11]line ИТОГО: 500.41 [15:06:11]line НСП 1% : 4.43 [15:06:11]line НДС 12% : 53.14 [15:06:11]line Наличными: 0.00 [15:06:11]line Безнал.: 500.41 [15:06:11]line Место: АЗС № 133 "Партнер Нефть" [15:06:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:06:11]line СНО: Общий режим [15:06:11]line Чек 196 20.10.2024 15:06 [15:06:11]line Смена: 170 ФФД: 1.0 [15:06:11]line ЗНМ: 0300000020 [15:06:11]line РНМ: 0000000000161154 [15:06:11]line Версия ККМ: v1.0 [15:06:11]line Платежная система: Mbank [15:06:11]line ФМ: 0000000000963323 [15:06:11]line ФД: 73870 [15:06:11]line ФПД: 200973600017336 [15:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150612&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73870&fm=200973600017336&tin=02508201610067®Number=0000000000161154&sum=50041 [15:06:12]OFD Sender: Processing packet 73870 [packets to send 15, broken 14] [15:06:12]ProducePacketName [15:06:12]name=ofd_packets/00073870 [15:06:12]OFD Sender: To server: pG, [15:06:12]CommunicateWithHost lk.salyk.kg:30040 [15:06:12]ConnectInit lk.salyk.kg [15:06:12]written 0, free lines is 4095 [15:06:12]Connected sock=10 [15:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 84 BA 07 01 BD 52 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 64 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 20 01 00 35 04 06 00 B6 C8 D0 09 CB B8 70 F3 EF 46 0D 98 3F A7 [15:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9B 65 47 00 A2 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 39 36 33 33 32 33 10 04 04 00 8E 20 01 00 F4 03 04 00 48 C5 14 67 B6 04 01 00 00 5B B2 0C 83 20 B0 C0 D8 [15:06:12]CommunicateWithHost err = 0 [15:06:12]CheckOFDResponse [15:06:12]1017 (14) - 77093643461234 [15:06:12]1041 (16) - 0000000000963323 [15:06:12]1040 (4) - 73870 [15:06:12]1012 (4) - 20.10.2024 08:54 [15:06:12]1206 (1) - 0 [15:06:12]OFD Sender: Remove packet 73870 [15:06:12]ProducePacketName [15:06:12]name=ofd_packets/00073870 [15:06:12]NVStorageDeleteData [15:06:12]Write to MH i2c: 01 00 00 8F 30 BF [15:06:12]Write i2c OK [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: 01 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: 01 07 00 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: 01 07 00 8F 30 00 00 00 00 00 E6 0C B8 [15:06:12]RasterBufferAndPrint [15:06:12]line [15:06:12]line [15:06:12]line [15:06:12]line [15:06:12]line [15:06:12]written 0, free lines is 3308 [15:06:12]MH_Cut [15:06:12]Write to MH i2c: D1 01 00 96 30 01 98 [15:06:12]Write i2c OK [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: D1 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: D1 01 00 [15:06:12]MH_I2C_Read... [15:06:12]Read from MH i2c: D1 01 00 96 30 00 97 [15:06:12]Write to MH i2c: 01 00 00 97 30 C7 [15:06:12]Write i2c OK [15:06:12]MH_I2C_Read... [15:06:13]OFD Sender: No OFD packet to send [15:06:13]*** Cut start [15:06:13]*** Partial cut [15:06:13]*** CUTSNS_PIN = 1 [15:06:13]*** CUTSNS_PIN = 0 [15:06:13]*** Brake cut motor [15:06:14]Read from MH i2c: 01 [15:06:14]MH_I2C_Read... [15:06:14]*** Stop cut motor [15:06:14]*** Cut end [15:06:14]Read from MH i2c: 01 07 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: 01 07 00 97 30 00 00 00 00 00 FF 0F DC [15:06:14]process_action close_receipt done [15:06:14]requested_data is exist [15:06:14]produce_requested_data [15:06:14]requested_item fm.sn is exist - process it [15:06:14]wFMCommunicate request_size=4 [15:06:14]MH_SAM_APDU [15:06:14]CAPDU: 80 11 00 00 [15:06:14]Write to MH i2c: E2 08 00 98 30 80 11 00 00 00 00 00 00 42 [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 17 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 17 00 98 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [15:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:06:14]wFMCommunicate OK [15:06:14]requested_item fd.num is exist - process it [15:06:14]SAM_PROTO_GetFieldsCounters [15:06:14]wFMCommunicate request_size=4 [15:06:14]MH_SAM_APDU [15:06:14]CAPDU: 80 13 00 00 [15:06:14]Write to MH i2c: E2 08 00 99 30 80 13 00 00 00 00 00 00 45 [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 62 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 62 00 99 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:06:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:14]wFMCommunicate OK [15:06:14]SAM_PROTO_GetFieldsCounters done [15:06:14]requested_item shift.num is exist - process it [15:06:14]requested_item shift.opened is exist - process it [15:06:14]req_shift_opened [15:06:14]FM_GetShiftState [15:06:14]SAM_PROTO_GetShiftState [15:06:14]wFMCommunicate request_size=4 [15:06:14]MH_SAM_APDU [15:06:14]CAPDU: 80 13 01 00 [15:06:14]Write to MH i2c: E2 08 00 9A 30 80 13 01 00 00 00 00 00 47 [15:06:14]Write i2c OK [15:06:14]MH_I2C_Read... [15:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:14]Read from MH i2c: E2 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 0E 00 [15:06:14]MH_I2C_Read... [15:06:14]Read from MH i2c: E2 0E 00 9A 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8C [15:06:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:06:14]wFMCommunicate OK [15:06:14]SAM_PROTO_GetShiftState done [15:06:14]FM_GetShiftState done [15:06:14]req_shift_opened done [15:06:14]requested_item shift.open_date is exist - process it [15:06:14]req_shift_open_date [15:06:14]req_shift_open_date done [15:06:14]produce_requested_data done [15:06:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73870,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:06:14]process_action_free close_receipt [15:06:14]json_value_free [15:06:14]json_value_free done [15:06:14]process_json_proto returns [15:06:14]Send response to host [15:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73870,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:06:14]free response buf [15:06:14]execute_script done [15:06:14]execute_script returns [15:06:14]free content buf [15:06:14]Sock 9.Close socket [15:06:14]Sock 9.Thread stoped [15:06:16]accept exits with 8 [15:06:16]New connection [15:06:16]New thread 3067432292 created [15:06:16]Thread 3067575652 joined [15:06:16]Waiting for new connection... [15:06:16] Sock 8.Parse request [15:06:16]Sock 8.Check first char [15:06:16]Sock 8.First char is OK [15:06:16]request: POST /json_proto HTTP/1.0 [15:06:16]Method: POST [15:06:16]URL: /json_proto [15:06:16]Method is POST - this is cgi request [15:06:16]url: /json_proto [15:06:16]query_string will be loaded in cgi processing [15:06:16]execute_cgi json_proto POST (null) [15:06:16]execute_cgi path=json_proto method=POST [15:06:16]POST find Content-Length [15:06:16]Host: 172.17.44.196:8080 [15:06:16]Content-Length: 678 [15:06:16]Content-Type: application/json [15:06:16] [15:06:16]POST finish read [15:06:16]Found Content-Length = 678 [15:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963074", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:16]execute_script... [15:06: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)1963074", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:16]POST & json_proto [15:06:16]process_json_proto [15:06:16]json parsed OK: [15:06:16]protocol is kg_v1.0 [15:06:16]action value=close_receipt [15:06:16]process_action close_receipt [15:06:16]cmd_close_receipt [15:06:16]MH_GetDate [15:06:16]Write to MH i2c: F0 00 00 9B 30 BA [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: F0 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: F0 09 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: F0 09 00 9B 30 00 6B 1C 15 67 E7 19 F8 65 23 [15:06:16]GetLastDocTimeStamp 1729436772 [15:06:16]current date 1729436779 [15:06:16]FM_GetShiftState [15:06:16]SAM_PROTO_GetShiftState [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 13 01 00 [15:06:16]Write to MH i2c: E2 08 00 9C 30 80 13 01 00 00 00 00 00 49 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 0E 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 0E 00 9C 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8E [15:06:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:06:16]wFMCommunicate OK [15:06:16]SAM_PROTO_GetShiftState done [15:06:16]FM_GetShiftState done [15:06:16]opened in 1729384303 [15:06:16]opened+sec_in_day 1729470703 [15:06:16]quantity*price = 30038 [15:06:16]sum+1 = 30039 [15:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 197 20.10.2024 15:06 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73871 ФПД: 147301424489988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73871&fm=147301424489988&tin=02508201610067®Number=0000000000161154&sum=30000 [15:06:18]StoreToDocumentArchive [15:06:18]shift 170 fd 73871 [15:06:18]save to /storage/0170/doc_00073871 [15:06:18]save last doc name /storage/0170/doc_00073871 to /storage/kkm_last_doc_name [15:06:18]save OK [15:06:18]Clear old archive folders... [15:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:18]tlvbuf is 00335C20 [15:06:18]SAM_PROTO_ClearQueue [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 09 00 00 [15:06:18]Write to MH i2c: E2 08 00 A9 30 80 09 00 00 00 00 00 00 4B [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 A9 30 00 90 00 4D [15:06:18]RAPDU: 90 00 [15:06:18]wFMCommunicate OK [15:06:18]SAM_PROTO_ClearQueue done [15:06:18]KKMCreateOFDPacket [15:06:18]OFDProtocolAddRootSTLVToBuf [15:06:18]FM_MakeSignedData [15:06:18]FM_MakeSignedData [15:06:18]SAM_PROTO_SignData [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 0D 01 02 [15:06:18]Write to MH i2c: E2 08 00 AA 30 80 0D 01 02 00 00 00 00 53 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 AA 30 00 90 00 4E [15:06:18]RAPDU: 90 00 [15:06:18]wFMCommunicate OK [15:06:18]wFMCommunicate request_size=255 [15:06:18]MH_SAM_APDU [15:06: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C5 00 00 00 F4 03 04 00 6B 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 20 01 00 35 04 06 00 85 [15:06:18]Write to MH i2c: E2 02 01 AB 30 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C5 00 00 00 F4 03 04 00 6B 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 20 01 00 35 04 06 00 85 00 00 70 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:18]Read from MH i2c: E2 03 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 AB 30 00 90 00 4F [15:06:18]RAPDU: 90 00 [15:06:18]wFMCommunicate OK [15:06:18]wFMCommunicate request_size=10 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 0D 02 02 05 F8 49 14 E6 04 [15:06:18]Write to MH i2c: E2 0D 00 AC 30 80 0D 02 02 05 00 F8 49 14 E6 04 00 00 9F [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 03 00 AC 30 00 90 00 50 [15:06:18]RAPDU: 90 00 [15:06:18]wFMCommunicate OK [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 0D 03 02 [15:06:18]Write to MH i2c: E2 08 00 AD 30 80 0D 03 02 00 00 00 00 58 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 0B 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 0B 00 AD 30 00 0F BE 9F 5D D3 75 6F F6 90 00 CF [15:06:18]RAPDU: 0F BE 9F 5D D3 75 6F F6 90 00 [15:06:18]wFMCommunicate OK [15:06:18]SAM_PROTO_SignData done [15:06:18]FM_MakeSignedData done [15:06:18]CreateOFDProtocolMessage [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 11 00 00 [15:06:18]Write to MH i2c: E2 08 00 AE 30 80 11 00 00 00 00 00 00 58 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 17 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 17 00 AE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A5 [15:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:06:18]wFMCommunicate OK [15:06:18]CreateOFDProtocolMessage done [15:06:18]OFDSenderStorePacket 73871 [15:06:18]StoreOFDPacket docnum=73871 [15:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AF 25 07 01 30 C4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C5 00 00 00 F4 03 04 00 6B 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 20 01 00 35 04 06 00 85 F8 49 14 E6 04 0F BE 9F 5D D3 75 6F F6 [15:06:18]CheckFolder [15:06:18]dirname=/storage/ofd_packets [15:06:18]CheckFolder done [15:06:18]ProducePacketName [15:06:18]name=ofd_packets/00073871 [15:06:18]NVStorageSaveData ofd_packets/00073871 [15:06:18]File name is /storage/ofd_packets/00073871 [15:06:18]Write 301 bytes [15:06:18]NVStorageSaveData done [15:06:18]OFDSenderStorePacket done [15:06:18]KKMCreateOFDPacket done [15:06:18]NVStorageSaveData kkm_last_timestamp [15:06:18]File name is /storage/kkm_last_timestamp [15:06:18]Write 4 bytes [15:06:18]NVStorageSaveData done [15:06:18]ExternCall_PrintAddStr [15:06:18]wPrintStart [15:06:18]Write to MH i2c: 01 00 00 AF 30 DF [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: 01 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: 01 07 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: 01 07 00 AF 30 00 00 00 00 00 FF 0F F4 [15:06:18]RasterBufferAndPrint [15:06:18]line Счет N : (1)1963074 [15:06:18]line ИНН: 02508201610067 [15:06:18]line Контрольно-Кассовый Чек [15:06:18]line ПРОДАЖА [15:06:18]line ТРК (МРК, ГНК) : 43 [15:06:18]line Товар: 2710124130 [15:06:18]line Аи-92-К-5 [15:06:18]line 4.490 * 66.90 [15:06:18]line = 300.38 [15:06:18]line НДС 12% НСП 1% [15:06:18]line > о реализуемом товаре [15:06:18]line ОКРУГЛЕНИЕ: -0.38 [15:06:18]line ИТОГО: 300.00 [15:06:18]line Внесено: 300.00 [15:06:18]line СДАЧА: 0.00 [15:06:18]line НСП 1% : 2.66 [15:06:18]line НДС 12% : 31.90 [15:06:18]line Наличными: 300.00 [15:06:18]line Безнал.: 0.00 [15:06:18]line Место: АЗС № 133 "Партнер Нефть" [15:06:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:06:18]line СНО: Общий режим [15:06:18]line Чек 197 20.10.2024 15:06 [15:06:18]line Смена: 170 ФФД: 1.0 [15:06:18]line ЗНМ: 0300000020 [15:06:18]line РНМ: 0000000000161154 [15:06:18]line Версия ККМ: v1.0 [15:06:18]line ФМ: 0000000000963323 [15:06:18]line ФД: 73871 [15:06:18]line ФПД: 147301424489988 [15:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73871&fm=147301424489988&tin=02508201610067®Number=0000000000161154&sum=30000 [15:06:18]written 0, free lines is 4095 [15:06:18]OFD Sender: Processing packet 73871 [packets to send 15, broken 14] [15:06:18]ProducePacketName [15:06:18]name=ofd_packets/00073871 [15:06:18]OFD Sender: To server: pG, [15:06:18]CommunicateWithHost lk.salyk.kg:30040 [15:06:18]ConnectInit lk.salyk.kg [15:06:18]Connected sock=10 [15:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AF 25 07 01 30 C4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C5 00 00 00 F4 03 04 00 6B 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 20 01 00 35 04 06 00 85 F8 49 14 E6 04 0F BE 9F 5D D3 75 6F F6 [15:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F2 17 47 00 5C 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 39 36 33 33 32 33 10 04 04 00 8F 20 01 00 F4 03 04 00 4F C5 14 67 B6 04 01 00 00 27 51 B2 99 98 F9 CD 8A [15:06:19]CommunicateWithHost err = 0 [15:06:19]CheckOFDResponse [15:06:19]1017 (14) - 77093643461234 [15:06:19]1041 (16) - 0000000000963323 [15:06:19]1040 (4) - 73871 [15:06:19]1012 (4) - 20.10.2024 08:54 [15:06:19]1206 (1) - 0 [15:06:19]OFD Sender: Remove packet 73871 [15:06:19]ProducePacketName [15:06:19]name=ofd_packets/00073871 [15:06:19]NVStorageDeleteData [15:06:19]Write to MH i2c: 01 00 00 D9 30 09 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: 01 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: 01 07 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: 01 07 00 D9 30 00 00 00 00 00 C9 0C E5 [15:06:19]RasterBufferAndPrint [15:06:19]line [15:06:19]line [15:06:19]line [15:06:19]line [15:06:19]line [15:06:19]written 0, free lines is 3288 [15:06:19]MH_Cut [15:06:19]Write to MH i2c: D1 01 00 E0 30 01 E2 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: D1 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: D1 01 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: D1 01 00 E0 30 00 E1 [15:06:19]Write to MH i2c: 01 00 00 E1 30 11 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]OFD Sender: No OFD packet to send [15:06:20]*** Cut start [15:06:20]*** Partial cut [15:06:20]*** CUTSNS_PIN = 1 [15:06:20]*** CUTSNS_PIN = 0 [15:06:20]*** Brake cut motor [15:06:20]Read from MH i2c: 01 [15:06:20]MH_I2C_Read... [15:06:20]*** Stop cut motor [15:06:20]*** Cut end [15:06:20]Read from MH i2c: 01 07 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: 01 07 00 E1 30 00 00 00 00 00 FF 0F 26 [15:06:20]process_action close_receipt done [15:06:20]requested_data is exist [15:06:20]produce_requested_data [15:06:20]requested_item fm.sn is exist - process it [15:06:20]wFMCommunicate request_size=4 [15:06:20]MH_SAM_APDU [15:06:20]CAPDU: 80 11 00 00 [15:06:20]Write to MH i2c: E2 08 00 E2 30 80 11 00 00 00 00 00 00 8C [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:20]Read from MH i2c: E2 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 17 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 17 00 E2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [15:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:06:20]wFMCommunicate OK [15:06:20]requested_item fd.num is exist - process it [15:06:20]SAM_PROTO_GetFieldsCounters [15:06:20]wFMCommunicate request_size=4 [15:06:20]MH_SAM_APDU [15:06:20]CAPDU: 80 13 00 00 [15:06:20]Write to MH i2c: E2 08 00 E3 30 80 13 00 00 00 00 00 00 8F [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:20]Read from MH i2c: E2 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 62 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 62 00 E3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [15:06:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:20]wFMCommunicate OK [15:06:20]SAM_PROTO_GetFieldsCounters done [15:06:20]requested_item shift.num is exist - process it [15:06:20]requested_item shift.opened is exist - process it [15:06:20]req_shift_opened [15:06:20]FM_GetShiftState [15:06:20]SAM_PROTO_GetShiftState [15:06:20]wFMCommunicate request_size=4 [15:06:20]MH_SAM_APDU [15:06:20]CAPDU: 80 13 01 00 [15:06:20]Write to MH i2c: E2 08 00 E4 30 80 13 01 00 00 00 00 00 91 [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 0E 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 0E 00 E4 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D6 [15:06:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:06:21]wFMCommunicate OK [15:06:21]SAM_PROTO_GetShiftState done [15:06:21]FM_GetShiftState done [15:06:21]req_shift_opened done [15:06:21]requested_item shift.open_date is exist - process it [15:06:21]req_shift_open_date [15:06:21]req_shift_open_date done [15:06:21]produce_requested_data done [15:06:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73871,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:06:21]process_action_free close_receipt [15:06:21]json_value_free [15:06:21]json_value_free done [15:06:21]process_json_proto returns [15:06:21]Send response to host [15:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73871,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:06:21]free response buf [15:06:21]execute_script done [15:06:21]execute_script returns [15:06:21]free content buf [15:06:21]Sock 8.Close socket [15:06:21]Sock 8.Thread stoped [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [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]accept exits with 9 [15:08:14]New connection [15:08:14]New thread 3067575652 created [15:08:14]Thread 3067432292 joined [15:08:14]Waiting for new connection... [15:08:14] Sock 9.Parse request [15:08:14]Sock 9.Check first char [15:08:14]Sock 9.First char is OK [15:08:14]request: POST /json_proto HTTP/1.0 [15:08:14]Method: POST [15:08:14]URL: /json_proto [15:08:14]Method is POST - this is cgi request [15:08:14]url: /json_proto [15:08:14]query_string will be loaded in cgi processing [15:08:14]execute_cgi json_proto POST (null) [15:08:14]execute_cgi path=json_proto method=POST [15:08:14]POST find Content-Length [15:08:14]Host: 172.17.44.196:8080 [15:08:14]Content-Length: 678 [15:08:14]Content-Type: application/json [15:08:14] [15:08:14]POST finish read [15:08:14]Found Content-Length = 678 [15:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963075", "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.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" ] } } [15:08:14]execute_script... [15:08: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 : (1)1963075", "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.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" ] } } [15:08:14]POST & json_proto [15:08:14]process_json_proto [15:08:14]json parsed OK: [15:08:14]protocol is kg_v1.0 [15:08:14]action value=close_receipt [15:08:14]process_action close_receipt [15:08:14]cmd_close_receipt [15:08:14]MH_GetDate [15:08:14]Write to MH i2c: F0 00 00 E5 30 04 [15:08:14]Write i2c OK [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: F0 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: F0 09 00 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: F0 09 00 E5 30 00 E0 1C 15 67 E7 19 F8 65 E2 [15:08:14]GetLastDocTimeStamp 1729436779 [15:08:14]current date 1729436896 [15:08:14]FM_GetShiftState [15:08:14]SAM_PROTO_GetShiftState [15:08:14]wFMCommunicate request_size=4 [15:08:14]MH_SAM_APDU [15:08:14]CAPDU: 80 13 01 00 [15:08:14]Write to MH i2c: E2 08 00 E6 30 80 13 01 00 00 00 00 00 93 [15:08:14]Write i2c OK [15:08:14]MH_I2C_Read... [15:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:14]Read from MH i2c: E2 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: E2 0E 00 [15:08:14]MH_I2C_Read... [15:08:14]Read from MH i2c: E2 0E 00 E6 30 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [15:08:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:08:14]wFMCommunicate OK [15:08:14]SAM_PROTO_GetShiftState done [15:08:14]FM_GetShiftState done [15:08:14]opened in 1729384303 [15:08:14]opened+sec_in_day 1729470703 [15:08:14]quantity*price = 20003 [15:08:14]sum+1 = 20004 [15:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 198 20.10.2024 15:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73872 ФПД: 37565647725378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150816&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73872&fm=37565647725378&tin=02508201610067®Number=0000000000161154&sum=20000 [15:08:15]StoreToDocumentArchive [15:08:15]shift 170 fd 73872 [15:08:15]save to /storage/0170/doc_00073872 [15:08:15]save last doc name /storage/0170/doc_00073872 to /storage/kkm_last_doc_name [15:08:15]save OK [15:08:15]Clear old archive folders... [15:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:15]tlvbuf is 00329790 [15:08:15]SAM_PROTO_ClearQueue [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 09 00 00 [15:08:15]Write to MH i2c: E2 08 00 F3 30 80 09 00 00 00 00 00 00 95 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 F3 30 00 90 00 97 [15:08:15]RAPDU: 90 00 [15:08:15]wFMCommunicate OK [15:08:15]SAM_PROTO_ClearQueue done [15:08:15]KKMCreateOFDPacket [15:08:15]OFDProtocolAddRootSTLVToBuf [15:08:15]FM_MakeSignedData [15:08:15]FM_MakeSignedData [15:08:15]SAM_PROTO_SignData [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 0D 01 02 [15:08:15]Write to MH i2c: E2 08 00 F4 30 80 0D 01 02 00 00 00 00 9D [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 03 00 F4 30 00 90 00 98 [15:08:15]RAPDU: 90 00 [15:08:15]wFMCommunicate OK [15:08:15]wFMCommunicate request_size=255 [15:08:15]MH_SAM_APDU [15:08:15]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 C6 00 00 00 F4 03 04 00 E0 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 20 01 00 35 04 06 00 22 [15:08:15]Write to MH i2c: E2 02 01 F5 30 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 C6 00 00 00 F4 03 04 00 E0 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 20 01 00 35 04 06 00 22 00 00 9C [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:16]Read from MH i2c: E2 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 03 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 03 00 F5 30 00 90 00 99 [15:08:16]RAPDU: 90 00 [15:08:16]wFMCommunicate OK [15:08:16]wFMCommunicate request_size=10 [15:08:16]MH_SAM_APDU [15:08:16]CAPDU: 80 0D 02 02 05 2A 6F 16 A3 42 [15:08:16]Write to MH i2c: E2 0D 00 F6 30 80 0D 02 02 05 00 2A 6F 16 A3 42 00 00 3E [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:16]Read from MH i2c: E2 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 03 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 03 00 F6 30 00 90 00 9A [15:08:16]RAPDU: 90 00 [15:08:16]wFMCommunicate OK [15:08:16]wFMCommunicate request_size=4 [15:08:16]MH_SAM_APDU [15:08:16]CAPDU: 80 0D 03 02 [15:08:16]Write to MH i2c: E2 08 00 F7 30 80 0D 03 02 00 00 00 00 A2 [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:16]Read from MH i2c: E2 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 0B 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 0B 00 F7 30 00 5B F7 83 A3 FA 1C 95 E5 90 00 AB [15:08:16]RAPDU: 5B F7 83 A3 FA 1C 95 E5 90 00 [15:08:16]wFMCommunicate OK [15:08:16]SAM_PROTO_SignData done [15:08:16]FM_MakeSignedData done [15:08:16]CreateOFDProtocolMessage [15:08:16]wFMCommunicate request_size=4 [15:08:16]MH_SAM_APDU [15:08:16]CAPDU: 80 11 00 00 [15:08:16]Write to MH i2c: E2 08 00 F8 30 80 11 00 00 00 00 00 00 A2 [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:16]Read from MH i2c: E2 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 17 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 17 00 F8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EF [15:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:08:16]wFMCommunicate OK [15:08:16]CreateOFDProtocolMessage done [15:08:16]OFDSenderStorePacket 73872 [15:08:16]StoreOFDPacket docnum=73872 [15:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 30 67 07 01 F2 94 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 C6 00 00 00 F4 03 04 00 E0 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 20 01 00 35 04 06 00 22 2A 6F 16 A3 42 5B F7 83 A3 FA 1C 95 E5 [15:08:16]CheckFolder [15:08:16]dirname=/storage/ofd_packets [15:08:16]CheckFolder done [15:08:16]ProducePacketName [15:08:16]name=ofd_packets/00073872 [15:08:16]NVStorageSaveData ofd_packets/00073872 [15:08:16]File name is /storage/ofd_packets/00073872 [15:08:16]Write 301 bytes [15:08:16]NVStorageSaveData done [15:08:16]OFDSenderStorePacket done [15:08:16]KKMCreateOFDPacket done [15:08:16]NVStorageSaveData kkm_last_timestamp [15:08:16]File name is /storage/kkm_last_timestamp [15:08:16]Write 4 bytes [15:08:16]NVStorageSaveData done [15:08:16]ExternCall_PrintAddStr [15:08:16]wPrintStart [15:08:16]Write to MH i2c: 01 00 00 F9 30 29 [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: 01 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: 01 07 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: 01 07 00 F9 30 00 00 00 00 00 FF 0F 3E [15:08:16]RasterBufferAndPrint [15:08:16]line Счет N : (1)1963075 [15:08:16]line ИНН: 02508201610067 [15:08:16]line Контрольно-Кассовый Чек [15:08:16]line ПРОДАЖА [15:08:16]line ТРК (МРК, ГНК) : 53 [15:08:16]line Товар: 2710124130 [15:08:16]line Аи-92-К-5 [15:08:16]line 2.990 * 66.90 [15:08:16]line = 200.03 [15:08:16]line НДС 12% НСП 1% [15:08:16]line > о реализуемом товаре [15:08:16]line ОКРУГЛЕНИЕ: -0.03 [15:08:16]line ИТОГО: 200.00 [15:08:16]line Внесено: 200.00 [15:08:16]line СДАЧА: 0.00 [15:08:16]line НСП 1% : 1.77 [15:08:16]line НДС 12% : 21.24 [15:08:16]line Наличными: 200.00 [15:08:16]line Безнал.: 0.00 [15:08:16]line Место: АЗС № 133 "Партнер Нефть" [15:08:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:08:16]line СНО: Общий режим [15:08:16]line Чек 198 20.10.2024 15:08 [15:08:16]line Смена: 170 ФФД: 1.0 [15:08:16]line ЗНМ: 0300000020 [15:08:16]line РНМ: 0000000000161154 [15:08:16]line Версия ККМ: v1.0 [15:08:16]line ФМ: 0000000000963323 [15:08:16]line ФД: 73872 [15:08:16]line ФПД: 37565647725378 [15:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150816&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73872&fm=37565647725378&tin=02508201610067®Number=0000000000161154&sum=20000 [15:08:16]OFD Sender: Processing packet 73872 [packets to send 15, broken 14] [15:08:16]ProducePacketName [15:08:16]name=ofd_packets/00073872 [15:08:16]OFD Sender: To server: pG, [15:08:16]CommunicateWithHost lk.salyk.kg:30040 [15:08:16]ConnectInit lk.salyk.kg [15:08:16]written 0, free lines is 4095 [15:08:16]Connected sock=10 [15:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 30 67 07 01 F2 94 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 C6 00 00 00 F4 03 04 00 E0 1C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 20 01 00 35 04 06 00 22 2A 6F 16 A3 42 5B F7 83 A3 FA 1C 95 E5 [15:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 04 03 47 00 79 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 39 36 33 33 32 33 10 04 04 00 90 20 01 00 F4 03 04 00 C5 C5 14 67 B6 04 01 00 00 0F 81 3E 37 97 10 12 37 [15:08:16]CommunicateWithHost err = 0 [15:08:16]CheckOFDResponse [15:08:16]1017 (14) - 77093643461234 [15:08:16]1041 (16) - 0000000000963323 [15:08:16]1040 (4) - 73872 [15:08:16]1012 (4) - 20.10.2024 08:56 [15:08:16]1206 (1) - 0 [15:08:16]OFD Sender: Remove packet 73872 [15:08:16]ProducePacketName [15:08:16]name=ofd_packets/00073872 [15:08:16]NVStorageDeleteData [15:08:17]Write to MH i2c: 01 00 00 23 31 54 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: 01 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: 01 07 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: 01 07 00 23 31 00 00 00 00 00 BA 0C 21 [15:08:17]RasterBufferAndPrint [15:08:17]line [15:08:17]line [15:08:17]line [15:08:17]line [15:08:17]line [15:08:17]written 0, free lines is 3263 [15:08:17]MH_Cut [15:08:17]Write to MH i2c: D1 01 00 2A 31 01 2D [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: D1 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: D1 01 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: D1 01 00 2A 31 00 2C [15:08:17]Write to MH i2c: 01 00 00 2B 31 5C [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]OFD Sender: No OFD packet to send [15:08:17]*** Cut start [15:08:17]*** Partial cut [15:08:17]*** CUTSNS_PIN = 1 [15:08:17]*** CUTSNS_PIN = 0 [15:08:18]*** Brake cut motor [15:08:18]Read from MH i2c: 01 [15:08:18]*** Stop cut motor [15:08:18]*** Cut end [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 2B 31 00 00 00 00 00 FF 0F 71 [15:08:18]process_action close_receipt done [15:08:18]requested_data is exist [15:08:18]produce_requested_data [15:08:18]requested_item fm.sn is exist - process it [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 11 00 00 [15:08:18]Write to MH i2c: E2 08 00 2C 31 80 11 00 00 00 00 00 00 D7 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 2C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 24 [15:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:08:18]wFMCommunicate OK [15:08:18]requested_item fd.num is exist - process it [15:08:18]SAM_PROTO_GetFieldsCounters [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 13 00 00 [15:08:18]Write to MH i2c: E2 08 00 2D 31 80 13 00 00 00 00 00 00 DA [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 62 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 62 00 2D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 90 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [15:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 90 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_GetFieldsCounters done [15:08:18]requested_item shift.num is exist - process it [15:08:18]requested_item shift.opened is exist - process it [15:08:18]req_shift_opened [15:08:18]FM_GetShiftState [15:08:18]SAM_PROTO_GetShiftState [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 13 01 00 [15:08:18]Write to MH i2c: E2 08 00 2E 31 80 13 01 00 00 00 00 00 DC [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0E 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0E 00 2E 31 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 21 [15:08:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_GetShiftState done [15:08:18]FM_GetShiftState done [15:08:18]req_shift_opened done [15:08:18]requested_item shift.open_date is exist - process it [15:08:18]req_shift_open_date [15:08:18]req_shift_open_date done [15:08:18]produce_requested_data done [15:08:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73872,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:08:18]process_action_free close_receipt [15:08:18]json_value_free [15:08:18]json_value_free done [15:08:18]process_json_proto returns [15:08:18]Send response to host [15:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73872,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:08:18]free response buf [15:08:18]execute_script done [15:08:18]execute_script returns [15:08:18]free content buf [15:08:18]Sock 9.Close socket [15:08:18]Sock 9.Thread stoped [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:23]accept exits with 8 [15:09:23]New connection [15:09:23]New thread 3067432292 created [15:09:23]Thread 3067575652 joined [15:09:23]Waiting for new connection... [15:09:23] Sock 8.Parse request [15:09:23]Sock 8.Check first char [15:09:23]Sock 8.First char is OK [15:09:23]request: POST /json_proto HTTP/1.0 [15:09:23]Method: POST [15:09:23]URL: /json_proto [15:09:23]Method is POST - this is cgi request [15:09:23]url: /json_proto [15:09:23]query_string will be loaded in cgi processing [15:09:23]execute_cgi json_proto POST (null) [15:09:23]execute_cgi path=json_proto method=POST [15:09:23]POST find Content-Length [15:09:23]Host: 172.17.44.196:8080 [15:09:23]Content-Length: 678 [15:09:23]Content-Type: application/json [15:09:23] [15:09:23]POST finish read [15:09:23]Found Content-Length = 678 [15:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:23]execute_script... [15:09: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 : (1)1963076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:23]POST & json_proto [15:09:23]process_json_proto [15:09:23]json parsed OK: [15:09:23]protocol is kg_v1.0 [15:09:23]action value=close_receipt [15:09:23]process_action close_receipt [15:09:23]cmd_close_receipt [15:09:23]MH_GetDate [15:09:23]Write to MH i2c: F0 00 00 2F 31 4F [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: F0 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: F0 09 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: F0 09 00 2F 31 00 26 1D 15 67 E7 19 F8 65 74 [15:09:23]GetLastDocTimeStamp 1729436896 [15:09:23]current date 1729436966 [15:09:23]FM_GetShiftState [15:09:23]SAM_PROTO_GetShiftState [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 13 01 00 [15:09:23]Write to MH i2c: E2 08 00 30 31 80 13 01 00 00 00 00 00 DE [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 30 31 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 23 [15:09:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:09:23]wFMCommunicate OK [15:09:23]SAM_PROTO_GetShiftState done [15:09:23]FM_GetShiftState done [15:09:23]opened in 1729384303 [15:09:23]opened+sec_in_day 1729470703 [15:09:23]quantity*price = 60009 [15:09:23]sum+1 = 60010 [15:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 199 20.10.2024 15:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73873 ФПД: 257915169204522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150926&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73873&fm=257915169204522&tin=02508201610067®Number=0000000000161154&sum=60000 [15:09:24]StoreToDocumentArchive [15:09:24]shift 170 fd 73873 [15:09:24]save to /storage/0170/doc_00073873 [15:09:24]save last doc name /storage/0170/doc_00073873 to /storage/kkm_last_doc_name [15:09:24]save OK [15:09:24]Clear old archive folders... [15:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:24]tlvbuf is 0033C4D0 [15:09:24]SAM_PROTO_ClearQueue [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 09 00 00 [15:09:24]Write to MH i2c: E2 08 00 3D 31 80 09 00 00 00 00 00 00 E0 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 3D 31 00 90 00 E2 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_ClearQueue done [15:09:25]KKMCreateOFDPacket [15:09:25]OFDProtocolAddRootSTLVToBuf [15:09:25]FM_MakeSignedData [15:09:25]FM_MakeSignedData [15:09:25]SAM_PROTO_SignData [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 01 02 [15:09:25]Write to MH i2c: E2 08 00 3E 31 80 0D 01 02 00 00 00 00 E8 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 3E 31 00 90 00 E3 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=255 [15:09:25]MH_SAM_APDU [15:09:25]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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 26 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 20 01 00 35 04 06 00 EA [15:09:25]Write to MH i2c: E2 02 01 3F 31 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 26 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 20 01 00 35 04 06 00 EA 00 00 13 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 3F 31 00 90 00 E4 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=10 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 02 02 05 92 8E 0A E9 2A [15:09:25]Write to MH i2c: E2 0D 00 40 31 80 0D 02 02 05 00 92 8E 0A E9 2A 00 00 32 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 40 31 00 90 00 E5 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 03 02 [15:09:25]Write to MH i2c: E2 08 00 41 31 80 0D 03 02 00 00 00 00 ED [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 0B 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 0B 00 41 31 00 6C 09 EC 45 BB 36 DC 93 90 00 F4 [15:09:25]RAPDU: 6C 09 EC 45 BB 36 DC 93 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_SignData done [15:09:25]FM_MakeSignedData done [15:09:25]CreateOFDProtocolMessage [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 11 00 00 [15:09:25]Write to MH i2c: E2 08 00 42 31 80 11 00 00 00 00 00 00 ED [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 17 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 17 00 42 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3A [15:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:09:25]wFMCommunicate OK [15:09:25]CreateOFDProtocolMessage done [15:09:25]OFDSenderStorePacket 73873 [15:09:25]StoreOFDPacket docnum=73873 [15:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 31 42 07 01 C1 50 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 26 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 20 01 00 35 04 06 00 EA 92 8E 0A E9 2A 6C 09 EC 45 BB 36 DC 93 [15:09:25]CheckFolder [15:09:25]dirname=/storage/ofd_packets [15:09:25]CheckFolder done [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00073873 [15:09:25]NVStorageSaveData ofd_packets/00073873 [15:09:25]File name is /storage/ofd_packets/00073873 [15:09:25]Write 301 bytes [15:09:25]NVStorageSaveData done [15:09:25]OFDSenderStorePacket done [15:09:25]KKMCreateOFDPacket done [15:09:25]NVStorageSaveData kkm_last_timestamp [15:09:25]File name is /storage/kkm_last_timestamp [15:09:25]Write 4 bytes [15:09:25]NVStorageSaveData done [15:09:25]ExternCall_PrintAddStr [15:09:25]wPrintStart [15:09:25]Write to MH i2c: 01 00 00 43 31 74 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 43 31 00 00 00 00 00 FF 0F 89 [15:09:25]RasterBufferAndPrint [15:09:25]line Счет N : (1)1963076 [15:09:25]line ИНН: 02508201610067 [15:09:25]line Контрольно-Кассовый Чек [15:09:25]line ПРОДАЖА [15:09:25]line ТРК (МРК, ГНК) : 63 [15:09:25]line Товар: 2710124130 [15:09:25]line Аи-92-К-5 [15:09:25]line 8.970 * 66.90 [15:09:25]line = 600.09 [15:09:25]line НДС 12% НСП 1% [15:09:25]line > о реализуемом товаре [15:09:25]line ОКРУГЛЕНИЕ: -0.09 [15:09:25]line ИТОГО: 600.00 [15:09:25]line Внесено: 600.00 [15:09:25]line СДАЧА: 0.00 [15:09:25]line НСП 1% : 5.31 [15:09:25]line НДС 12% : 63.73 [15:09:25]line Наличными: 600.00 [15:09:25]line Безнал.: 0.00 [15:09:25]line Место: АЗС № 133 "Партнер Нефть" [15:09:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:09:25]line СНО: Общий режим [15:09:25]line Чек 199 20.10.2024 15:09 [15:09:25]line Смена: 170 ФФД: 1.0 [15:09:25]line ЗНМ: 0300000020 [15:09:25]line РНМ: 0000000000161154 [15:09:25]line Версия ККМ: v1.0 [15:09:25]line ФМ: 0000000000963323 [15:09:25]line ФД: 73873 [15:09:25]line ФПД: 257915169204522 [15:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150926&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73873&fm=257915169204522&tin=02508201610067®Number=0000000000161154&sum=60000 [15:09:25]OFD Sender: Processing packet 73873 [packets to send 15, broken 14] [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00073873 [15:09:25]OFD Sender: To server: pG, [15:09:25]CommunicateWithHost lk.salyk.kg:30040 [15:09:25]ConnectInit lk.salyk.kg [15:09:25]written 0, free lines is 4095 [15:09:25]Connected sock=11 [15:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 31 42 07 01 C1 50 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 26 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 20 01 00 35 04 06 00 EA 92 8E 0A E9 2A 6C 09 EC 45 BB 36 DC 93 [15:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 96 EC 47 00 54 39 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 39 36 33 33 32 33 10 04 04 00 91 20 01 00 F4 03 04 00 0A C6 14 67 B6 04 01 00 00 29 1C 9A 6E 66 E0 C5 8D [15:09:26]CommunicateWithHost err = 0 [15:09:26]CheckOFDResponse [15:09:26]1017 (14) - 77093643461234 [15:09:26]1041 (16) - 0000000000963323 [15:09:26]1040 (4) - 73873 [15:09:26]1012 (4) - 20.10.2024 08:57 [15:09:26]1206 (1) - 0 [15:09:26]OFD Sender: Remove packet 73873 [15:09:26]ProducePacketName [15:09:26]name=ofd_packets/00073873 [15:09:26]NVStorageDeleteData [15:09:26]Write to MH i2c: 01 00 00 6D 31 9E [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 6D 31 00 00 00 00 00 BF 0C 70 [15:09:26]RasterBufferAndPrint [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]written 0, free lines is 3267 [15:09:26]MH_Cut [15:09:26]Write to MH i2c: D1 01 00 74 31 01 77 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 01 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 01 00 74 31 00 76 [15:09:26]Write to MH i2c: 01 00 00 75 31 A6 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]OFD Sender: No OFD packet to send [15:09:27]*** Cut start [15:09:27]*** Partial cut [15:09:27]*** CUTSNS_PIN = 1 [15:09:27]*** CUTSNS_PIN = 0 [15:09:27]*** Brake cut motor [15:09:27]Read from MH i2c: 01 [15:09:27]MH_I2C_Read... [15:09:27]*** Stop cut motor [15:09:27]*** Cut end [15:09:27]Read from MH i2c: 01 07 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: 01 07 00 75 31 00 00 00 00 00 FF 0F BB [15:09:27]process_action close_receipt done [15:09:27]requested_data is exist [15:09:27]produce_requested_data [15:09:27]requested_item fm.sn is exist - process it [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 11 00 00 [15:09:27]Write to MH i2c: E2 08 00 76 31 80 11 00 00 00 00 00 00 21 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 17 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 17 00 76 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6E [15:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:09:27]wFMCommunicate OK [15:09:27]requested_item fd.num is exist - process it [15:09:27]SAM_PROTO_GetFieldsCounters [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 13 00 00 [15:09:27]Write to MH i2c: E2 08 00 77 31 80 13 00 00 00 00 00 00 24 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 62 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 62 00 77 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 91 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [15:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 91 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:27]wFMCommunicate OK [15:09:27]SAM_PROTO_GetFieldsCounters done [15:09:27]requested_item shift.num is exist - process it [15:09:27]requested_item shift.opened is exist - process it [15:09:27]req_shift_opened [15:09:27]FM_GetShiftState [15:09:27]SAM_PROTO_GetShiftState [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 13 01 00 [15:09:27]Write to MH i2c: E2 08 00 78 31 80 13 01 00 00 00 00 00 26 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 78 31 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6B [15:09:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetShiftState done [15:09:28]FM_GetShiftState done [15:09:28]req_shift_opened done [15:09:28]requested_item shift.open_date is exist - process it [15:09:28]req_shift_open_date [15:09:28]req_shift_open_date done [15:09:28]produce_requested_data done [15:09:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73873,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:09:28]process_action_free close_receipt [15:09:28]json_value_free [15:09:28]json_value_free done [15:09:28]process_json_proto returns [15:09:28]Send response to host [15:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73873,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:09:28]free response buf [15:09:28]execute_script done [15:09:28]execute_script returns [15:09:28]free content buf [15:09:28]Sock 8.Close socket [15:09:28]Sock 8.Thread stoped [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:39]accept exits with 9 [15:09:39]New connection [15:09:39]New thread 3067575652 created [15:09:39]Thread 3067432292 joined [15:09:39]Waiting for new connection... [15:09:39] Sock 9.Parse request [15:09:39]Sock 9.Check first char [15:09:39]Sock 9.First char is OK [15:09:39]request: POST /json_proto HTTP/1.0 [15:09:39]Method: POST [15:09:39]URL: /json_proto [15:09:39]Method is POST - this is cgi request [15:09:39]url: /json_proto [15:09:39]query_string will be loaded in cgi processing [15:09:39]execute_cgi json_proto POST (null) [15:09:39]execute_cgi path=json_proto method=POST [15:09:39]POST find Content-Length [15:09:39]Host: 172.17.44.196:8080 [15:09:39]Content-Length: 678 [15:09:39]Content-Type: application/json [15:09:39] [15:09:39]POST finish read [15:09:39]Found Content-Length = 678 [15:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963077", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:39]execute_script... [15:09:39]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)1963077", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:39]POST & json_proto [15:09:39]process_json_proto [15:09:39]json parsed OK: [15:09:39]protocol is kg_v1.0 [15:09:39]action value=close_receipt [15:09:39]process_action close_receipt [15:09:39]cmd_close_receipt [15:09:39]MH_GetDate [15:09:39]Write to MH i2c: F0 00 00 79 31 99 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: F0 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: F0 09 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: F0 09 00 79 31 00 35 1D 15 67 E7 19 F8 65 CD [15:09:39]GetLastDocTimeStamp 1729436966 [15:09:39]current date 1729436981 [15:09:39]FM_GetShiftState [15:09:39]SAM_PROTO_GetShiftState [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 13 01 00 [15:09:39]Write to MH i2c: E2 08 00 7A 31 80 13 01 00 00 00 00 00 28 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 0E 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 0E 00 7A 31 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [15:09:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:09:39]wFMCommunicate OK [15:09:39]SAM_PROTO_GetShiftState done [15:09:39]FM_GetShiftState done [15:09:39]opened in 1729384303 [15:09:39]opened+sec_in_day 1729470703 [15:09:39]quantity*price = 30038 [15:09:39]sum+1 = 30039 [15:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 200 20.10.2024 15:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73874 ФПД: 231760633042617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150941&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73874&fm=231760633042617&tin=02508201610067®Number=0000000000161154&sum=30000 [15:09:40]StoreToDocumentArchive [15:09:40]shift 170 fd 73874 [15:09:40]save to /storage/0170/doc_00073874 [15:09:40]save last doc name /storage/0170/doc_00073874 to /storage/kkm_last_doc_name [15:09:40]save OK [15:09:40]Clear old archive folders... [15:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:40]tlvbuf is 0033C880 [15:09:40]SAM_PROTO_ClearQueue [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 09 00 00 [15:09:40]Write to MH i2c: E2 08 00 87 31 80 09 00 00 00 00 00 00 2A [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 87 31 00 90 00 2C [15:09:40]RAPDU: 90 00 [15:09:40]wFMCommunicate OK [15:09:40]SAM_PROTO_ClearQueue done [15:09:40]KKMCreateOFDPacket [15:09:40]OFDProtocolAddRootSTLVToBuf [15:09:40]FM_MakeSignedData [15:09:40]FM_MakeSignedData [15:09:40]SAM_PROTO_SignData [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 0D 01 02 [15:09:40]Write to MH i2c: E2 08 00 88 31 80 0D 01 02 00 00 00 00 32 [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 88 31 00 90 00 2D [15:09:40]RAPDU: 90 00 [15:09:40]wFMCommunicate OK [15:09:40]wFMCommunicate request_size=255 [15:09:40]MH_SAM_APDU [15:09:40]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C8 00 00 00 F4 03 04 00 35 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 20 01 00 35 04 06 00 D2 [15:09:40]Write to MH i2c: E2 02 01 89 31 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C8 00 00 00 F4 03 04 00 35 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 20 01 00 35 04 06 00 D2 00 00 6D [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:41]Read from MH i2c: E2 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 03 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 03 00 89 31 00 90 00 2E [15:09:41]RAPDU: 90 00 [15:09:41]wFMCommunicate OK [15:09:41]wFMCommunicate request_size=10 [15:09:41]MH_SAM_APDU [15:09:41]CAPDU: 80 0D 02 02 05 C8 FA 34 96 B9 [15:09:41]Write to MH i2c: E2 0D 00 8A 31 80 0D 02 02 05 00 C8 FA 34 96 B9 00 00 84 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:41]Read from MH i2c: E2 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 03 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 03 00 8A 31 00 90 00 2F [15:09:41]RAPDU: 90 00 [15:09:41]wFMCommunicate OK [15:09:41]wFMCommunicate request_size=4 [15:09:41]MH_SAM_APDU [15:09:41]CAPDU: 80 0D 03 02 [15:09:41]Write to MH i2c: E2 08 00 8B 31 80 0D 03 02 00 00 00 00 37 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:41]Read from MH i2c: E2 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 0B 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 0B 00 8B 31 00 19 9E 11 BF 30 B4 2B 54 90 00 22 [15:09:41]RAPDU: 19 9E 11 BF 30 B4 2B 54 90 00 [15:09:41]wFMCommunicate OK [15:09:41]SAM_PROTO_SignData done [15:09:41]FM_MakeSignedData done [15:09:41]CreateOFDProtocolMessage [15:09:41]wFMCommunicate request_size=4 [15:09:41]MH_SAM_APDU [15:09:41]CAPDU: 80 11 00 00 [15:09:41]Write to MH i2c: E2 08 00 8C 31 80 11 00 00 00 00 00 00 37 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:41]Read from MH i2c: E2 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 17 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: E2 17 00 8C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [15:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:09:41]wFMCommunicate OK [15:09:41]CreateOFDProtocolMessage done [15:09:41]OFDSenderStorePacket 73874 [15:09:41]StoreOFDPacket docnum=73874 [15:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A7 09 07 01 0F 98 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C8 00 00 00 F4 03 04 00 35 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 20 01 00 35 04 06 00 D2 C8 FA 34 96 B9 19 9E 11 BF 30 B4 2B 54 [15:09:41]CheckFolder [15:09:41]dirname=/storage/ofd_packets [15:09:41]CheckFolder done [15:09:41]ProducePacketName [15:09:41]name=ofd_packets/00073874 [15:09:41]NVStorageSaveData ofd_packets/00073874 [15:09:41]File name is /storage/ofd_packets/00073874 [15:09:41]Write 301 bytes [15:09:41]NVStorageSaveData done [15:09:41]OFDSenderStorePacket done [15:09:41]KKMCreateOFDPacket done [15:09:41]NVStorageSaveData kkm_last_timestamp [15:09:41]File name is /storage/kkm_last_timestamp [15:09:41]Write 4 bytes [15:09:41]NVStorageSaveData done [15:09:41]ExternCall_PrintAddStr [15:09:41]wPrintStart [15:09:41]Write to MH i2c: 01 00 00 8D 31 BE [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 8D 31 00 00 00 00 00 FF 0F D3 [15:09:41]RasterBufferAndPrint [15:09:41]line Счет N : (1)1963077 [15:09:41]line ИНН: 02508201610067 [15:09:41]line Контрольно-Кассовый Чек [15:09:41]line ПРОДАЖА [15:09:41]line ТРК (МРК, ГНК) : 43 [15:09:41]line Товар: 2710124130 [15:09:41]line Аи-92-К-5 [15:09:41]line 4.490 * 66.90 [15:09:41]line = 300.38 [15:09:41]line НДС 12% НСП 1% [15:09:41]line > о реализуемом товаре [15:09:41]line ОКРУГЛЕНИЕ: -0.38 [15:09:41]line ИТОГО: 300.00 [15:09:41]line Внесено: 300.00 [15:09:41]line СДАЧА: 0.00 [15:09:41]line НСП 1% : 2.66 [15:09:41]line НДС 12% : 31.90 [15:09:41]line Наличными: 300.00 [15:09:41]line Безнал.: 0.00 [15:09:41]line Место: АЗС № 133 "Партнер Нефть" [15:09:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:09:41]line СНО: Общий режим [15:09:41]line Чек 200 20.10.2024 15:09 [15:09:41]line Смена: 170 ФФД: 1.0 [15:09:41]line ЗНМ: 0300000020 [15:09:41]line РНМ: 0000000000161154 [15:09:41]line Версия ККМ: v1.0 [15:09:41]line ФМ: 0000000000963323 [15:09:41]line ФД: 73874 [15:09:41]line ФПД: 231760633042617 [15:09:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150941&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73874&fm=231760633042617&tin=02508201610067®Number=0000000000161154&sum=30000 [15:09:41]OFD Sender: Processing packet 73874 [packets to send 15, broken 14] [15:09:41]ProducePacketName [15:09:41]name=ofd_packets/00073874 [15:09:41]OFD Sender: To server: pG, [15:09:41]CommunicateWithHost lk.salyk.kg:30040 [15:09:41]ConnectInit lk.salyk.kg [15:09:41]written 0, free lines is 4095 [15:09:41]Connected sock=11 [15:09:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A7 09 07 01 0F 98 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 C8 00 00 00 F4 03 04 00 35 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 20 01 00 35 04 06 00 D2 C8 FA 34 96 B9 19 9E 11 BF 30 B4 2B 54 [15:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FD 90 47 00 F2 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 39 36 33 33 32 33 10 04 04 00 92 20 01 00 F4 03 04 00 1A C6 14 67 B6 04 01 00 00 B5 1D D1 AD B9 51 97 D7 [15:09:41]CommunicateWithHost err = 0 [15:09:41]CheckOFDResponse [15:09:41]1017 (14) - 77093643461234 [15:09:41]1041 (16) - 0000000000963323 [15:09:41]1040 (4) - 73874 [15:09:41]1012 (4) - 20.10.2024 08:58 [15:09:41]1206 (1) - 0 [15:09:41]OFD Sender: Remove packet 73874 [15:09:41]ProducePacketName [15:09:41]name=ofd_packets/00073874 [15:09:41]NVStorageDeleteData [15:09:42]Write to MH i2c: 01 00 00 B7 31 E8 [15:09:42]Write i2c OK [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: 01 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: 01 07 00 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: 01 07 00 B7 31 00 00 00 00 00 BE 0C B9 [15:09:42]RasterBufferAndPrint [15:09:42]line [15:09:42]line [15:09:42]line [15:09:42]line [15:09:42]line [15:09:42]written 0, free lines is 3266 [15:09:42]MH_Cut [15:09:42]Write to MH i2c: D1 01 00 BE 31 01 C1 [15:09:42]Write i2c OK [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: D1 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: D1 01 00 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: D1 01 00 BE 31 00 C0 [15:09:42]Write to MH i2c: 01 00 00 BF 31 F0 [15:09:42]Write i2c OK [15:09:42]MH_I2C_Read... [15:09:42]OFD Sender: No OFD packet to send [15:09:42]*** Cut start [15:09:42]*** Partial cut [15:09:42]*** CUTSNS_PIN = 1 [15:09:42]*** CUTSNS_PIN = 0 [15:09:43]*** Brake cut motor [15:09:43]Read from MH i2c: 01 [15:09:43]MH_I2C_Read... [15:09:43]*** Stop cut motor [15:09:43]*** Cut end [15:09:43]Read from MH i2c: 01 07 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: 01 07 00 BF 31 00 00 00 00 00 FF 0F 05 [15:09:43]process_action close_receipt done [15:09:43]requested_data is exist [15:09:43]produce_requested_data [15:09:43]requested_item fm.sn is exist - process it [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 11 00 00 [15:09:43]Write to MH i2c: E2 08 00 C0 31 80 11 00 00 00 00 00 00 6B [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 17 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 17 00 C0 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [15:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:09:43]wFMCommunicate OK [15:09:43]requested_item fd.num is exist - process it [15:09:43]SAM_PROTO_GetFieldsCounters [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 13 00 00 [15:09:43]Write to MH i2c: E2 08 00 C1 31 80 13 00 00 00 00 00 00 6E [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 62 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 62 00 C1 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 92 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [15:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 92 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:43]wFMCommunicate OK [15:09:43]SAM_PROTO_GetFieldsCounters done [15:09:43]requested_item shift.num is exist - process it [15:09:43]requested_item shift.opened is exist - process it [15:09:43]req_shift_opened [15:09:43]FM_GetShiftState [15:09:43]SAM_PROTO_GetShiftState [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 13 01 00 [15:09:43]Write to MH i2c: E2 08 00 C2 31 80 13 01 00 00 00 00 00 70 [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 0E 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 0E 00 C2 31 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B5 [15:09:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:09:43]wFMCommunicate OK [15:09:43]SAM_PROTO_GetShiftState done [15:09:43]FM_GetShiftState done [15:09:43]req_shift_opened done [15:09:43]requested_item shift.open_date is exist - process it [15:09:43]req_shift_open_date [15:09:43]req_shift_open_date done [15:09:43]produce_requested_data done [15:09:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73874,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:09:43]process_action_free close_receipt [15:09:43]json_value_free [15:09:43]json_value_free done [15:09:43]process_json_proto returns [15:09:43]Send response to host [15:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73874,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:09:43]free response buf [15:09:43]execute_script done [15:09:43]execute_script returns [15:09:43]free content buf [15:09:43]Sock 9.Close socket [15:09:43]Sock 9.Thread stoped [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:16]accept exits with 8 [15:11:16]New connection [15:11:16]New thread 3067432292 created [15:11:16]Thread 3067575652 joined [15:11:16]Waiting for new connection... [15:11:16] Sock 8.Parse request [15:11:16]Sock 8.Check first char [15:11:16]Sock 8.First char is OK [15:11:16]request: POST /json_proto HTTP/1.0 [15:11:16]Method: POST [15:11:16]URL: /json_proto [15:11:16]Method is POST - this is cgi request [15:11:16]url: /json_proto [15:11:16]query_string will be loaded in cgi processing [15:11:16]execute_cgi json_proto POST (null) [15:11:16]execute_cgi path=json_proto method=POST [15:11:16]POST find Content-Length [15:11:16]Host: 172.17.44.196:8080 [15:11:16]Content-Length: 590 [15:11:16]Content-Type: application/json [15:11:16] [15:11:16]POST finish read [15:11:16]Found Content-Length = 590 [15:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272807", "tax_sys" : 0, "items" : [ { "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" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:16]execute_script... [15:11: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)272807", "tax_sys" : 0, "items" : [ { "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" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:16]POST & json_proto [15:11:16]process_json_proto [15:11:16]json parsed OK: [15:11:16]protocol is kg_v1.0 [15:11:16]action value=close_receipt [15:11:16]process_action close_receipt [15:11:16]cmd_close_receipt [15:11:16]MH_GetDate [15:11:16]Write to MH i2c: F0 00 00 C3 31 E3 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 09 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 09 00 C3 31 00 96 1D 15 67 E7 19 F8 65 78 [15:11:16]GetLastDocTimeStamp 1729436981 [15:11:16]current date 1729437078 [15:11:16]FM_GetShiftState [15:11:16]SAM_PROTO_GetShiftState [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 13 01 00 [15:11:16]Write to MH i2c: E2 08 00 C4 31 80 13 01 00 00 00 00 00 72 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 C4 31 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [15:11:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:11:16]wFMCommunicate OK [15:11:16]SAM_PROTO_GetShiftState done [15:11:16]FM_GetShiftState done [15:11:16]opened in 1729384303 [15:11:16]opened+sec_in_day 1729470703 [15:11:16]quantity*price = 3700 [15:11:16]sum+1 = 3701 [15:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 37.00 НСП 1% : 0.33 НДС 12% : 3.93 Наличными: 37.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 201 20.10.2024 15:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73875 ФПД: 93696541913705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151118&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73875&fm=93696541913705&tin=02508201610067®Number=0000000000161154&sum=3700 0 [15:11:17]StoreToDocumentArchive [15:11:17]shift 170 fd 73875 [15:11:17]save to /storage/0170/doc_00073875 [15:11:17]save last doc name /storage/0170/doc_00073875 to /storage/kkm_last_doc_name [15:11:17]save OK [15:11:17]Clear old archive folders... [15:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=265 [15:11:17]tlvbuf is 0037D260 [15:11:17]SAM_PROTO_ClearQueue [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 09 00 00 [15:11:17]Write to MH i2c: E2 08 00 D1 31 80 09 00 00 00 00 00 00 74 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_ClearQueue done [15:11:17]KKMCreateOFDPacket [15:11:17]OFDProtocolAddRootSTLVToBuf [15:11:17]FM_MakeSignedData [15:11:17]FM_MakeSignedData [15:11:17]SAM_PROTO_SignData [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 01 02 [15:11:17]Write to MH i2c: E2 08 00 D2 31 80 0D 01 02 00 00 00 00 7C [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=255 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 96 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 [15:11:17]Write to MH i2c: E2 02 01 D3 31 80 0D 02 02 FA 00 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 96 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 00 00 03 [15:11:17]OFD Sender: No OFD packet to send [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [15:11:18]RAPDU: 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=24 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 0D 02 02 13 33 10 04 04 00 93 20 01 00 35 04 06 00 55 37 6D 18 F2 69 [15:11:18]Write to MH i2c: E2 1B 00 D4 31 80 0D 02 02 13 00 33 10 04 04 00 93 20 01 00 35 04 06 00 55 37 6D 18 F2 69 00 00 4F [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [15:11:18]RAPDU: 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=4 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 0D 03 02 [15:11:18]Write to MH i2c: E2 08 00 D5 31 80 0D 03 02 00 00 00 00 81 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 0B 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 0B 00 D5 31 00 02 50 A0 47 5D 51 56 0E 90 00 CD [15:11:18]RAPDU: 02 50 A0 47 5D 51 56 0E 90 00 [15:11:18]wFMCommunicate OK [15:11:18]SAM_PROTO_SignData done [15:11:18]FM_MakeSignedData done [15:11:18]CreateOFDProtocolMessage [15:11:18]wFMCommunicate request_size=4 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 11 00 00 [15:11:18]Write to MH i2c: E2 08 00 D6 31 80 11 00 00 00 00 00 00 81 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 17 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 17 00 D6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [15:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:11:18]wFMCommunicate OK [15:11:18]CreateOFDProtocolMessage done [15:11:18]OFDSenderStorePacket 73875 [15:11:18]StoreOFDPacket docnum=73875 [15:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1D 01 00 00 92 1D 15 01 6E 6A 5A 03 01 00 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 96 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 93 20 01 00 35 04 06 00 55 37 6D 18 F2 69 02 50 A0 47 5D 51 56 0E [15:11:18]CheckFolder [15:11:18]dirname=/storage/ofd_packets [15:11:18]CheckFolder done [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00073875 [15:11:18]NVStorageSaveData ofd_packets/00073875 [15:11:18]File name is /storage/ofd_packets/00073875 [15:11:18]Write 315 bytes [15:11:18]NVStorageSaveData done [15:11:18]OFDSenderStorePacket done [15:11:18]KKMCreateOFDPacket done [15:11:18]NVStorageSaveData kkm_last_timestamp [15:11:18]File name is /storage/kkm_last_timestamp [15:11:18]Write 4 bytes [15:11:18]NVStorageSaveData done [15:11:18]ExternCall_PrintAddStr [15:11:18]wPrintStart [15:11:18]Write to MH i2c: 01 00 00 D7 31 08 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 D7 31 00 00 00 00 00 FF 0F 1D [15:11:18]RasterBufferAndPrint [15:11:18]line Счет N : (3)272807 [15:11:18]line ИНН: 02508201610067 [15:11:18]line Контрольно-Кассовый Чек [15:11:18]line ПРОДАЖА [15:11:18]line Товар: 42113164 [15:11:18]line Жев Orbit White Spearmint [15:11:18]line 1.000 * 37.00 [15:11:18]line = 37.00 [15:11:18]line НДС 12% НСП 1% [15:11:18]line > о реализуемом товаре [15:11:18]line ИТОГО: 37.00 [15:11:18]line НСП 1% : 0.33 [15:11:18]line НДС 12% : 3.93 [15:11:18]line Наличными: 37.00 [15:11:18]line Безнал.: 0.00 [15:11:18]line Место: АЗС № 133 "Партнер Нефть" [15:11:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:11:18]line СНО: Общий режим [15:11:18]line Чек 201 20.10.2024 15:11 [15:11:18]line Смена: 170 ФФД: 1.0 [15:11:18]line ЗНМ: 0300000020 [15:11:18]line РНМ: 0000000000161154 [15:11:18]line Версия ККМ: v1.0 [15:11:18]line ФМ: 0000000000963323 [15:11:18]line ФД: 73875 [15:11:18]line ФПД: 93696541913705 [15:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151118&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73875&fm=93696541913705&tin=02508201610067®Number=0000000000161154&sum=3700 [15:11:18]line 0 [15:11:18]written 0, free lines is 4095 [15:11:18]OFD Sender: Processing packet 73875 [packets to send 15, broken 14] [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00073875 [15:11:18]OFD Sender: To server: pG, [15:11:18]CommunicateWithHost lk.salyk.kg:30040 [15:11:18]ConnectInit lk.salyk.kg [15:11:18]Connected sock=10 [15:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1D 01 00 00 92 1D 15 01 6E 6A 5A 03 01 00 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 96 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 93 20 01 00 35 04 06 00 55 37 6D 18 F2 69 02 50 A0 47 5D 51 56 0E [15:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 09 D6 47 00 66 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 39 36 33 33 32 33 10 04 04 00 93 20 01 00 F4 03 04 00 7B C6 14 67 B6 04 01 00 00 EF E6 B9 5C E1 6E 9F 4D [15:11:18]CommunicateWithHost err = 0 [15:11:18]CheckOFDResponse [15:11:18]1017 (14) - 77093643461234 [15:11:18]1041 (16) - 0000000000963323 [15:11:18]1040 (4) - 73875 [15:11:18]1012 (4) - 20.10.2024 08:59 [15:11:18]1206 (1) - 0 [15:11:18]OFD Sender: Remove packet 73875 [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00073875 [15:11:18]NVStorageDeleteData [15:11:18]Write to MH i2c: 01 00 00 FE 31 2F [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 F8 0C 3A [15:11:18]RasterBufferAndPrint [15:11:18]line [15:11:18]line [15:11:18]line [15:11:18]line [15:11:18]line [15:11:18]written 0, free lines is 3327 [15:11:18]MH_Cut [15:11:18]Write to MH i2c: D1 01 00 05 32 01 09 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: D1 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: D1 01 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: D1 01 00 05 32 00 08 [15:11:18]Write to MH i2c: 01 00 00 06 32 38 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:19]OFD Sender: No OFD packet to send [15:11:19]*** Cut start [15:11:19]*** Partial cut [15:11:19]*** CUTSNS_PIN = 1 [15:11:19]*** CUTSNS_PIN = 0 [15:11:19]*** Brake cut motor [15:11:20]Read from MH i2c: 01 [15:11:20]MH_I2C_Read... [15:11:20]*** Stop cut motor [15:11:20]*** Cut end [15:11:20]Read from MH i2c: 01 07 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 FF 0F 4D [15:11:20]process_action close_receipt done [15:11:20]requested_data is exist [15:11:20]produce_requested_data [15:11:20]requested_item fm.sn is exist - process it [15:11:20]wFMCommunicate request_size=4 [15:11:20]MH_SAM_APDU [15:11:20]CAPDU: 80 11 00 00 [15:11:20]Write to MH i2c: E2 08 00 07 32 80 11 00 00 00 00 00 00 B3 [15:11:20]Write i2c OK [15:11:20]MH_I2C_Read... [15:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:20]Read from MH i2c: E2 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 17 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 17 00 07 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 00 [15:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:11:20]wFMCommunicate OK [15:11:20]requested_item fd.num is exist - process it [15:11:20]SAM_PROTO_GetFieldsCounters [15:11:20]wFMCommunicate request_size=4 [15:11:20]MH_SAM_APDU [15:11:20]CAPDU: 80 13 00 00 [15:11:20]Write to MH i2c: E2 08 00 08 32 80 13 00 00 00 00 00 00 B6 [15:11:20]Write i2c OK [15:11:20]MH_I2C_Read... [15:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:20]Read from MH i2c: E2 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 62 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 62 00 08 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 93 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [15:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 93 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:20]wFMCommunicate OK [15:11:20]SAM_PROTO_GetFieldsCounters done [15:11:20]requested_item shift.num is exist - process it [15:11:20]requested_item shift.opened is exist - process it [15:11:20]req_shift_opened [15:11:20]FM_GetShiftState [15:11:20]SAM_PROTO_GetShiftState [15:11:20]wFMCommunicate request_size=4 [15:11:20]MH_SAM_APDU [15:11:20]CAPDU: 80 13 01 00 [15:11:20]Write to MH i2c: E2 08 00 09 32 80 13 01 00 00 00 00 00 B8 [15:11:20]Write i2c OK [15:11:20]MH_I2C_Read... [15:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:20]Read from MH i2c: E2 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 0E 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 0E 00 09 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FD [15:11:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:11:20]wFMCommunicate OK [15:11:20]SAM_PROTO_GetShiftState done [15:11:20]FM_GetShiftState done [15:11:20]req_shift_opened done [15:11:20]requested_item shift.open_date is exist - process it [15:11:20]req_shift_open_date [15:11:20]req_shift_open_date done [15:11:20]produce_requested_data done [15:11:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73875,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:11:20]process_action_free close_receipt [15:11:20]json_value_free [15:11:20]json_value_free done [15:11:20]process_json_proto returns [15:11:20]Send response to host [15:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73875,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:11:20]free response buf [15:11:20]execute_script done [15:11:20]execute_script returns [15:11:20]free content buf [15:11:20]Sock 8.Close socket [15:11:20]Sock 8.Thread stoped [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:30]accept exits with 9 [15:11:30]New connection [15:11:30]New thread 3067575652 created [15:11:30]Thread 3067432292 joined [15:11:30]Waiting for new connection... [15:11:30] Sock 9.Parse request [15:11:30]Sock 9.Check first char [15:11:30]Sock 9.First char is OK [15:11:30]request: POST /json_proto HTTP/1.0 [15:11:30]Method: POST [15:11:30]URL: /json_proto [15:11:30]Method is POST - this is cgi request [15:11:30]url: /json_proto [15:11:30]query_string will be loaded in cgi processing [15:11:30]execute_cgi json_proto POST (null) [15:11:30]execute_cgi path=json_proto method=POST [15:11:30]POST find Content-Length [15:11:30]Host: 172.17.44.196:8080 [15:11:30]Content-Length: 695 [15:11:30]Content-Type: application/json [15:11:30] [15:11:30]POST finish read [15:11:30]Found Content-Length = 695 [15:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272808", "tax_sys" : 0, "items" : [ { "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:30]execute_script... [15:11: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)272808", "tax_sys" : 0, "items" : [ { "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:30]POST & json_proto [15:11:30]process_json_proto [15:11:30]json parsed OK: [15:11:30]protocol is kg_v1.0 [15:11:30]action value=close_receipt [15:11:30]process_action close_receipt [15:11:30]cmd_close_receipt [15:11:30]MH_GetDate [15:11:30]Write to MH i2c: F0 00 00 0A 32 2B [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: F0 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: F0 09 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: F0 09 00 0A 32 00 A4 1D 15 67 E7 19 F8 65 CE [15:11:30]GetLastDocTimeStamp 1729437078 [15:11:30]current date 1729437092 [15:11:30]FM_GetShiftState [15:11:30]SAM_PROTO_GetShiftState [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 13 01 00 [15:11:30]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0E 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [15:11:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:11:30]wFMCommunicate OK [15:11:30]SAM_PROTO_GetShiftState done [15:11:30]FM_GetShiftState done [15:11:30]opened in 1729384303 [15:11:30]opened+sec_in_day 1729470703 [15:11:30]quantity*price = 1500 [15:11:30]sum+1 = 1501 [15:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 15.00 НСП 1% : 0.13 НДС 12% : 1.59 Наличными: 15.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 202 20.10.2024 15:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73876 ФПД: 72016610334694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151132&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73876&fm=72016610334694&tin=02508201610067®Number=0000000000161154&sum=1500 0 [15:11:31]StoreToDocumentArchive [15:11:31]shift 170 fd 73876 [15:11:31]save to /storage/0170/doc_00073876 [15:11:31]save last doc name /storage/0170/doc_00073876 to /storage/kkm_last_doc_name [15:11:31]save OK [15:11:31]Clear old archive folders... [15:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=290 [15:11:31]tlvbuf is 004517E0 [15:11:31]SAM_PROTO_ClearQueue [15:11:31]wFMCommunicate request_size=4 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 09 00 00 [15:11:31]Write to MH i2c: E2 08 00 18 32 80 09 00 00 00 00 00 00 BC [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 18 32 00 90 00 BE [15:11:31]RAPDU: 90 00 [15:11:31]wFMCommunicate OK [15:11:31]SAM_PROTO_ClearQueue done [15:11:31]KKMCreateOFDPacket [15:11:31]OFDProtocolAddRootSTLVToBuf [15:11:31]FM_MakeSignedData [15:11:31]FM_MakeSignedData [15:11:31]SAM_PROTO_SignData [15:11:31]wFMCommunicate request_size=4 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 0D 01 02 [15:11:31]Write to MH i2c: E2 08 00 19 32 80 0D 01 02 00 00 00 00 C4 [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 19 32 00 90 00 BF [15:11:31]RAPDU: 90 00 [15:11:31]wFMCommunicate OK [15:11:31]wFMCommunicate request_size=255 [15:11:31]MH_SAM_APDU [15:11:31]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 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A4 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [15:11:31]Write to MH i2c: E2 02 01 1A 32 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 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A4 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 41 [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [15:11:31]RAPDU: 90 00 [15:11:31]wFMCommunicate OK [15:11:31]wFMCommunicate request_size=49 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 0D 02 02 2C 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 20 01 00 35 04 06 00 41 7F AC 7A 17 E6 [15:11:31]Write to MH i2c: E2 34 00 1B 32 80 0D 02 02 2C 00 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 20 01 00 35 04 06 00 41 7F AC 7A 17 E6 00 00 7F [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 03 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [15:11:32]RAPDU: 90 00 [15:11:32]wFMCommunicate OK [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 0D 03 02 [15:11:32]Write to MH i2c: E2 08 00 1C 32 80 0D 03 02 00 00 00 00 C9 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0B 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0B 00 1C 32 00 4F 00 B3 6F F2 C8 CE 8A 90 00 4D [15:11:32]RAPDU: 4F 00 B3 6F F2 C8 CE 8A 90 00 [15:11:32]wFMCommunicate OK [15:11:32]SAM_PROTO_SignData done [15:11:32]FM_MakeSignedData done [15:11:32]CreateOFDProtocolMessage [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 11 00 00 [15:11:32]Write to MH i2c: E2 08 00 1D 32 80 11 00 00 00 00 00 00 C9 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 17 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 17 00 1D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 16 [15:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:11:32]wFMCommunicate OK [15:11:32]CreateOFDProtocolMessage done [15:11:32]OFDSenderStorePacket 73876 [15:11:32]StoreOFDPacket docnum=73876 [15:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 36 01 00 00 C4 0C 2E 01 ED DF 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 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A4 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 20 01 00 35 04 06 00 41 7F AC 7A 17 E6 4F 00 B3 6F F2 C8 CE 8A [15:11:32]CheckFolder [15:11:32]dirname=/storage/ofd_packets [15:11:32]CheckFolder done [15:11:32]ProducePacketName [15:11:32]name=ofd_packets/00073876 [15:11:32]NVStorageSaveData ofd_packets/00073876 [15:11:32]File name is /storage/ofd_packets/00073876 [15:11:32]Write 340 bytes [15:11:32]NVStorageSaveData done [15:11:32]OFDSenderStorePacket done [15:11:32]KKMCreateOFDPacket done [15:11:32]NVStorageSaveData kkm_last_timestamp [15:11:32]File name is /storage/kkm_last_timestamp [15:11:32]Write 4 bytes [15:11:32]NVStorageSaveData done [15:11:32]ExternCall_PrintAddStr [15:11:32]wPrintStart [15:11:32]Write to MH i2c: 01 00 00 1E 32 50 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 FF 0F 65 [15:11:32]RasterBufferAndPrint [15:11:32]line Счет N : (3)272808 [15:11:32]line ИНН: 02508201610067 [15:11:32]line Контрольно-Кассовый Чек [15:11:32]line ПРОДАЖА [15:11:32]line Товар: 4700000160099 [15:11:32]line Снек Курут индивидуальный [15:11:32]line 1.000 * 15.00 [15:11:32]line = 15.00 [15:11:32]line НДС 12% НСП 1% [15:11:32]line > о реализуемом товаре [15:11:32]line ИТОГО: 15.00 [15:11:32]line НСП 1% : 0.13 [15:11:32]line НДС 12% : 1.59 [15:11:32]line Наличными: 15.00 [15:11:32]line Безнал.: 0.00 [15:11:32]line Место: АЗС № 133 "Партнер Нефть" [15:11:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:11:32]line СНО: Общий режим [15:11:32]line Чек 202 20.10.2024 15:11 [15:11:32]line Смена: 170 ФФД: 1.0 [15:11:32]line ЗНМ: 0300000020 [15:11:32]line РНМ: 0000000000161154 [15:11:32]line Версия ККМ: v1.0 [15:11:32]line ФМ: 0000000000963323 [15:11:32]line ФД: 73876 [15:11:32]line ФПД: 72016610334694 [15:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151132&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73876&fm=72016610334694&tin=02508201610067®Number=0000000000161154&sum=1500 [15:11:32]line 0 [15:11:32]written 0, free lines is 4095 [15:11:32]OFD Sender: Processing packet 73876 [packets to send 15, broken 14] [15:11:32]ProducePacketName [15:11:32]name=ofd_packets/00073876 [15:11:32]OFD Sender: To server: pG, [15:11:32]CommunicateWithHost lk.salyk.kg:30040 [15:11:32]ConnectInit lk.salyk.kg [15:11:32]Connected sock=10 [15:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 36 01 00 00 C4 0C 2E 01 ED DF 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 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A4 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 20 01 00 35 04 06 00 41 7F AC 7A 17 E6 4F 00 B3 6F F2 C8 CE 8A [15:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F7 05 47 00 33 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 39 36 33 33 32 33 10 04 04 00 94 20 01 00 F4 03 04 00 88 C6 14 67 B6 04 01 00 00 BF 59 B8 82 8D A0 8C B6 [15:11:32]CommunicateWithHost err = 0 [15:11:32]CheckOFDResponse [15:11:32]1017 (14) - 77093643461234 [15:11:32]1041 (16) - 0000000000963323 [15:11:32]1040 (4) - 73876 [15:11:32]1012 (4) - 20.10.2024 08:59 [15:11:32]1206 (1) - 0 [15:11:32]OFD Sender: Remove packet 73876 [15:11:32]ProducePacketName [15:11:32]name=ofd_packets/00073876 [15:11:32]NVStorageDeleteData [15:11:32]Write to MH i2c: 01 00 00 45 32 77 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 45 32 00 00 00 00 00 EF 0C 79 [15:11:32]RasterBufferAndPrint [15:11:32]line [15:11:32]line [15:11:32]line [15:11:32]line [15:11:32]line [15:11:32]written 0, free lines is 3317 [15:11:32]MH_Cut [15:11:32]Write to MH i2c: D1 01 00 4C 32 01 50 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: D1 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: D1 01 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: D1 01 00 4C 32 00 4F [15:11:32]Write to MH i2c: 01 00 00 4D 32 7F [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:33]OFD Sender: No OFD packet to send [15:11:33]*** Cut start [15:11:33]*** Partial cut [15:11:33]*** CUTSNS_PIN = 1 [15:11:33]*** CUTSNS_PIN = 0 [15:11:33]*** Brake cut motor [15:11:34]Read from MH i2c: 01 [15:11:34]MH_I2C_Read... [15:11:34]*** Stop cut motor [15:11:34]*** Cut end [15:11:34]Read from MH i2c: 01 07 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: 01 07 00 4D 32 00 00 00 00 00 FF 0F 94 [15:11:34]process_action close_receipt done [15:11:34]requested_data is exist [15:11:34]produce_requested_data [15:11:34]requested_item fm.sn is exist - process it [15:11:34]wFMCommunicate request_size=4 [15:11:34]MH_SAM_APDU [15:11:34]CAPDU: 80 11 00 00 [15:11:34]Write to MH i2c: E2 08 00 4E 32 80 11 00 00 00 00 00 00 FA [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:34]Read from MH i2c: E2 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 17 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 17 00 4E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [15:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:11:34]wFMCommunicate OK [15:11:34]requested_item fd.num is exist - process it [15:11:34]SAM_PROTO_GetFieldsCounters [15:11:34]wFMCommunicate request_size=4 [15:11:34]MH_SAM_APDU [15:11:34]CAPDU: 80 13 00 00 [15:11:34]Write to MH i2c: E2 08 00 4F 32 80 13 00 00 00 00 00 00 FD [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:34]Read from MH i2c: E2 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 62 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 62 00 4F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 94 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [15:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 94 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:34]wFMCommunicate OK [15:11:34]SAM_PROTO_GetFieldsCounters done [15:11:34]requested_item shift.num is exist - process it [15:11:34]requested_item shift.opened is exist - process it [15:11:34]req_shift_opened [15:11:34]FM_GetShiftState [15:11:34]SAM_PROTO_GetShiftState [15:11:34]wFMCommunicate request_size=4 [15:11:34]MH_SAM_APDU [15:11:34]CAPDU: 80 13 01 00 [15:11:34]Write to MH i2c: E2 08 00 50 32 80 13 01 00 00 00 00 00 FF [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:34]Read from MH i2c: E2 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 0E 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 0E 00 50 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 44 [15:11:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:11:34]wFMCommunicate OK [15:11:34]SAM_PROTO_GetShiftState done [15:11:34]FM_GetShiftState done [15:11:34]req_shift_opened done [15:11:34]requested_item shift.open_date is exist - process it [15:11:34]req_shift_open_date [15:11:34]req_shift_open_date done [15:11:34]produce_requested_data done [15:11:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73876,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:11:34]process_action_free close_receipt [15:11:34]json_value_free [15:11:34]json_value_free done [15:11:34]process_json_proto returns [15:11:34]Send response to host [15:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73876,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:11:34]free response buf [15:11:34]execute_script done [15:11:34]execute_script returns [15:11:34]free content buf [15:11:34]Sock 9.Close socket [15:11:34]Sock 9.Thread stoped [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:56]accept exits with 8 [15:11:56]New connection [15:11:56]New thread 3067432292 created [15:11:56]Thread 3067575652 joined [15:11:56]Waiting for new connection... [15:11:56] Sock 8.Parse request [15:11:56]Sock 8.Check first char [15:11:56]Sock 8.First char is OK [15:11:56]request: POST /json_proto HTTP/1.0 [15:11:56]Method: POST [15:11:56]URL: /json_proto [15:11:56]Method is POST - this is cgi request [15:11:56]url: /json_proto [15:11:56]query_string will be loaded in cgi processing [15:11:56]execute_cgi json_proto POST (null) [15:11:56]execute_cgi path=json_proto method=POST [15:11:56]POST find Content-Length [15:11:56]Host: 172.17.44.196:8080 [15:11:56]Content-Length: 770 [15:11:56]Content-Type: application/json [15:11:56] [15:11:56]POST finish read [15:11:56]Found Content-Length = 770 [15:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963079", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:56]execute_script... [15:11: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 : (1)1963079", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:56]POST & json_proto [15:11:56]process_json_proto [15:11:56]json parsed OK: [15:11:56]protocol is kg_v1.0 [15:11:56]action value=close_receipt [15:11:56]process_action close_receipt [15:11:56]cmd_close_receipt [15:11:56]MH_GetDate [15:11:56]Write to MH i2c: F0 00 00 51 32 72 [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: F0 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: F0 09 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: F0 09 00 51 32 00 BE 1D 15 67 E7 19 F8 65 2F [15:11:56]GetLastDocTimeStamp 1729437092 [15:11:56]current date 1729437118 [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 52 32 80 13 01 00 00 00 00 00 01 [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:56]Read from MH i2c: E2 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 0E 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 0E 00 52 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 46 [15:11:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:11:56]wFMCommunicate OK [15:11:56]SAM_PROTO_GetShiftState done [15:11:56]FM_GetShiftState done [15:11:56]opened in 1729384303 [15:11:56]opened+sec_in_day 1729470703 [15:11:56]quantity*price = 100015 [15:11:56]sum+1 = 100017 [15:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 203 20.10.2024 15:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73877 ФПД: 4203149052783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151158&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73877&fm=4203149052783&tin=02508201610067®Number=0000000000161154&sum=100016 [15:11:57]StoreToDocumentArchive [15:11:57]shift 170 fd 73877 [15:11:57]save to /storage/0170/doc_00073877 [15:11:57]save last doc name /storage/0170/doc_00073877 to /storage/kkm_last_doc_name [15:11:57]save OK [15:11:57]Clear old archive folders... [15:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:57]tlvbuf is 004515D0 [15:11:57]SAM_PROTO_ClearQueue [15:11:57]wFMCommunicate request_size=4 [15:11:57]MH_SAM_APDU [15:11:57]CAPDU: 80 09 00 00 [15:11:57]Write to MH i2c: E2 08 00 5F 32 80 09 00 00 00 00 00 00 03 [15:11:57]Write i2c OK [15:11:57]MH_I2C_Read... [15:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:57]Read from MH i2c: E2 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 03 00 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 03 00 5F 32 00 90 00 05 [15:11:57]RAPDU: 90 00 [15:11:57]wFMCommunicate OK [15:11:57]SAM_PROTO_ClearQueue done [15:11:57]KKMCreateOFDPacket [15:11:57]OFDProtocolAddRootSTLVToBuf [15:11:57]FM_MakeSignedData [15:11:57]FM_MakeSignedData [15:11:57]SAM_PROTO_SignData [15:11:57]wFMCommunicate request_size=4 [15:11:57]MH_SAM_APDU [15:11:57]CAPDU: 80 0D 01 02 [15:11:57]Write to MH i2c: E2 08 00 60 32 80 0D 01 02 00 00 00 00 0B [15:11:57]Write i2c OK [15:11:57]MH_I2C_Read... [15:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:57]Read from MH i2c: E2 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 03 00 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 03 00 60 32 00 90 00 06 [15:11:57]RAPDU: 90 00 [15:11:57]wFMCommunicate OK [15:11:57]wFMCommunicate request_size=255 [15:11:57]MH_SAM_APDU [15: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 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BE 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 20 01 00 35 04 06 00 03 [15:11:57]Write to MH i2c: E2 02 01 61 32 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BE 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 20 01 00 35 04 06 00 03 00 00 2C [15:11:57]Write i2c OK [15:11:57]MH_I2C_Read... [15:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 61 32 00 90 00 07 [15:11:58]RAPDU: 90 00 [15:11:58]wFMCommunicate OK [15:11:58]wFMCommunicate request_size=10 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 0D 02 02 05 D2 9F 34 CB 6F [15:11:58]Write to MH i2c: E2 0D 00 62 32 80 0D 02 02 05 00 D2 9F 34 CB 6F 00 00 F7 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 62 32 00 90 00 08 [15:11:58]RAPDU: 90 00 [15:11:58]wFMCommunicate OK [15:11:58]wFMCommunicate request_size=4 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 0D 03 02 [15:11:58]Write to MH i2c: E2 08 00 63 32 80 0D 03 02 00 00 00 00 10 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:58]OFD Sender: No OFD packet to send [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 0B 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 0B 00 63 32 00 CB AD 64 93 48 D0 D8 EF 90 00 5F [15:11:58]RAPDU: CB AD 64 93 48 D0 D8 EF 90 00 [15:11:58]wFMCommunicate OK [15:11:58]SAM_PROTO_SignData done [15:11:58]FM_MakeSignedData done [15:11:58]CreateOFDProtocolMessage [15:11:58]wFMCommunicate request_size=4 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 11 00 00 [15:11:58]Write to MH i2c: E2 08 00 64 32 80 11 00 00 00 00 00 00 10 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 17 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 17 00 64 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [15:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:11:58]wFMCommunicate OK [15:11:58]CreateOFDProtocolMessage done [15:11:58]OFDSenderStorePacket 73877 [15:11:58]StoreOFDPacket docnum=73877 [15:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C3 AE 07 01 DE EA 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BE 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 20 01 00 35 04 06 00 03 D2 9F 34 CB 6F CB AD 64 93 48 D0 D8 EF [15:11:58]CheckFolder [15:11:58]dirname=/storage/ofd_packets [15:11:58]CheckFolder done [15:11:58]ProducePacketName [15:11:58]name=ofd_packets/00073877 [15:11:58]NVStorageSaveData ofd_packets/00073877 [15:11:58]File name is /storage/ofd_packets/00073877 [15:11:58]Write 301 bytes [15:11:58]NVStorageSaveData done [15:11:58]OFDSenderStorePacket done [15:11:58]KKMCreateOFDPacket done [15:11:58]NVStorageSaveData kkm_last_timestamp [15:11:58]File name is /storage/kkm_last_timestamp [15:11:58]Write 4 bytes [15:11:58]NVStorageSaveData done [15:11:58]ExternCall_PrintAddStr [15:11:58]wPrintStart [15:11:58]Write to MH i2c: 01 00 00 65 32 97 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 07 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 07 00 65 32 00 00 00 00 00 FF 0F AC [15:11:58]RasterBufferAndPrint [15:11:58]line Счет N : (1)1963079 [15:11:58]line ИНН: 02508201610067 [15:11:58]line Контрольно-Кассовый Чек [15:11:58]line ПРОДАЖА [15:11:58]line ТРК (МРК, ГНК) : 33 [15:11:58]line Товар: 2710124130 [15:11:58]line Аи-92-К-5 [15:11:58]line 14.950 * 66.90 [15:11:58]line = 1000.16 [15:11:58]line НДС 12% НСП 1% [15:11:58]line > о реализуемом товаре [15:11:58]line ИТОГО: 1000.16 [15:11:58]line НСП 1% : 8.85 [15:11:58]line НДС 12% : 106.21 [15:11:58]line Наличными: 0.00 [15:11:58]line Безнал.: 1000.16 [15:11:58]line Место: АЗС № 133 "Партнер Нефть" [15:11:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:11:58]line СНО: Общий режим [15:11:58]line Чек 203 20.10.2024 15:11 [15:11:58]line Смена: 170 ФФД: 1.0 [15:11:58]line ЗНМ: 0300000020 [15:11:58]line РНМ: 0000000000161154 [15:11:58]line Версия ККМ: v1.0 [15:11:58]line Платежная система: Mbank [15:11:58]line ФМ: 0000000000963323 [15:11:58]line ФД: 73877 [15:11:58]line ФПД: 4203149052783 [15:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151158&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73877&fm=4203149052783&tin=02508201610067®Number=0000000000161154&sum=100016 [15:11:58]OFD Sender: Processing packet 73877 [packets to send 15, broken 14] [15:11:58]ProducePacketName [15:11:58]name=ofd_packets/00073877 [15:11:58]OFD Sender: To server: pG, [15:11:58]CommunicateWithHost lk.salyk.kg:30040 [15:11:58]ConnectInit lk.salyk.kg [15:11:58]written 0, free lines is 4095 [15:11:58]Connected sock=10 [15:11:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C3 AE 07 01 DE EA 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BE 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 20 01 00 35 04 06 00 03 D2 9F 34 CB 6F CB AD 64 93 48 D0 D8 EF [15:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4C 0C 47 00 F9 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 39 36 33 33 32 33 10 04 04 00 95 20 01 00 F4 03 04 00 A3 C6 14 67 B6 04 01 00 00 C8 F9 32 66 9D 1D AB 95 [15:11:58]CommunicateWithHost err = 0 [15:11:58]CheckOFDResponse [15:11:58]1017 (14) - 77093643461234 [15:11:58]1041 (16) - 0000000000963323 [15:11:58]1040 (4) - 73877 [15:11:58]1012 (4) - 20.10.2024 09:00 [15:11:58]1206 (1) - 0 [15:11:58]OFD Sender: Remove packet 73877 [15:11:58]ProducePacketName [15:11:58]name=ofd_packets/00073877 [15:11:58]NVStorageDeleteData [15:11:58]Write to MH i2c: 01 00 00 8D 32 BF [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 07 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 07 00 8D 32 00 00 00 00 00 F5 0C C7 [15:11:58]RasterBufferAndPrint [15:11:58]line [15:11:58]line [15:11:58]line [15:11:58]line [15:11:58]line [15:11:58]written 0, free lines is 3321 [15:11:58]MH_Cut [15:11:58]Write to MH i2c: D1 01 00 94 32 01 98 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: D1 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: D1 01 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: D1 01 00 94 32 00 97 [15:11:58]Write to MH i2c: 01 00 00 95 32 C7 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:59]OFD Sender: No OFD packet to send [15:11:59]*** Cut start [15:11:59]*** Partial cut [15:11:59]*** CUTSNS_PIN = 1 [15:11:59]*** CUTSNS_PIN = 0 [15:12:00]*** Brake cut motor [15:12:00]Read from MH i2c: 01 [15:12:00]MH_I2C_Read... [15:12:00]*** Stop cut motor [15:12:00]*** Cut end [15:12:00]Read from MH i2c: 01 07 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 07 00 95 32 00 00 00 00 00 FF 0F DC [15:12:00]process_action close_receipt done [15:12:00]requested_data is exist [15:12:00]produce_requested_data [15:12:00]requested_item fm.sn is exist - process it [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 11 00 00 [15:12:00]Write to MH i2c: E2 08 00 96 32 80 11 00 00 00 00 00 00 42 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 17 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 17 00 96 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [15:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:12:00]wFMCommunicate OK [15:12:00]requested_item fd.num is exist - process it [15:12:00]SAM_PROTO_GetFieldsCounters [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 13 00 00 [15:12:00]Write to MH i2c: E2 08 00 97 32 80 13 00 00 00 00 00 00 45 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 62 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 62 00 97 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 95 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:12:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 95 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:00]wFMCommunicate OK [15:12:00]SAM_PROTO_GetFieldsCounters done [15:12:00]requested_item shift.num is exist - process it [15:12:00]requested_item shift.opened is exist - process it [15:12:00]req_shift_opened [15:12:00]FM_GetShiftState [15:12:00]SAM_PROTO_GetShiftState [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 13 01 00 [15:12:00]Write to MH i2c: E2 08 00 98 32 80 13 01 00 00 00 00 00 47 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 0E 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 0E 00 98 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8C [15:12:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:12:00]wFMCommunicate OK [15:12:00]SAM_PROTO_GetShiftState done [15:12:00]FM_GetShiftState done [15:12:00]req_shift_opened done [15:12:00]requested_item shift.open_date is exist - process it [15:12:00]req_shift_open_date [15:12:00]req_shift_open_date done [15:12:00]produce_requested_data done [15:12:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73877,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:12:00]process_action_free close_receipt [15:12:00]json_value_free [15:12:00]json_value_free done [15:12:00]process_json_proto returns [15:12:00]Send response to host [15:12:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73877,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:12:00]free response buf [15:12:00]execute_script done [15:12:00]execute_script returns [15:12:00]free content buf [15:12:00]Sock 8.Close socket [15:12:00]Sock 8.Thread stoped [15:12:02]accept exits with 9 [15:12:02]New connection [15:12:02]New thread 3067575652 created [15:12:02]Thread 3067432292 joined [15:12:02]Waiting for new connection... [15:12:02] Sock 9.Parse request [15:12:02]Sock 9.Check first char [15:12:02]Sock 9.First char is OK [15:12:02]request: POST /json_proto HTTP/1.0 [15:12:02]Method: POST [15:12:02]URL: /json_proto [15:12:02]Method is POST - this is cgi request [15:12:02]url: /json_proto [15:12:02]query_string will be loaded in cgi processing [15:12:02]execute_cgi json_proto POST (null) [15:12:02]execute_cgi path=json_proto method=POST [15:12:02]POST find Content-Length [15:12:02]Host: 172.17.44.196:8080 [15:12:02]Content-Length: 678 [15:12:02]Content-Type: application/json [15:12:02] [15:12:02]POST finish read [15:12:02]Found Content-Length = 678 [15:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963078", "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" : 7.480, "sum" : 500.41, "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" ] } } [15:12:02]execute_script... [15:12: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 : (1)1963078", "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" : 7.480, "sum" : 500.41, "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" ] } } [15:12:02]POST & json_proto [15:12:02]process_json_proto [15:12:02]json parsed OK: [15:12:02]protocol is kg_v1.0 [15:12:02]action value=close_receipt [15:12:02]process_action close_receipt [15:12:02]cmd_close_receipt [15:12:02]MH_GetDate [15:12:02]Write to MH i2c: F0 00 00 99 32 BA [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: F0 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: F0 09 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: F0 09 00 99 32 00 C5 1D 15 67 E7 19 F8 65 7E [15:12:02]GetLastDocTimeStamp 1729437118 [15:12:02]current date 1729437125 [15:12:02]FM_GetShiftState [15:12:02]SAM_PROTO_GetShiftState [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 13 01 00 [15:12:02]Write to MH i2c: E2 08 00 9A 32 80 13 01 00 00 00 00 00 49 [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:03]Read from MH i2c: E2 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 0E 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 0E 00 9A 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8E [15:12:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:12:03]wFMCommunicate OK [15:12:03]SAM_PROTO_GetShiftState done [15:12:03]FM_GetShiftState done [15:12:03]opened in 1729384303 [15:12:03]opened+sec_in_day 1729470703 [15:12:03]quantity*price = 50041 [15:12:03]sum+1 = 50042 [15:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 204 20.10.2024 15:12 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73878 ФПД: 164667732665117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151205&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73878&fm=164667732665117&tin=02508201610067®Number=0000000000161154&sum=50000 [15:12:04]StoreToDocumentArchive [15:12:04]shift 170 fd 73878 [15:12:04]save to /storage/0170/doc_00073878 [15:12:04]save last doc name /storage/0170/doc_00073878 to /storage/kkm_last_doc_name [15:12:04]save OK [15:12:04]Clear old archive folders... [15:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:04]tlvbuf is 003E6860 [15:12:04]SAM_PROTO_ClearQueue [15:12:04]wFMCommunicate request_size=4 [15:12:04]MH_SAM_APDU [15:12:04]CAPDU: 80 09 00 00 [15:12:04]Write to MH i2c: E2 08 00 A7 32 80 09 00 00 00 00 00 00 4B [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 A7 32 00 90 00 4D [15:12:04]RAPDU: 90 00 [15:12:04]wFMCommunicate OK [15:12:04]SAM_PROTO_ClearQueue done [15:12:04]KKMCreateOFDPacket [15:12:04]OFDProtocolAddRootSTLVToBuf [15:12:04]FM_MakeSignedData [15:12:04]FM_MakeSignedData [15:12:04]SAM_PROTO_SignData [15:12:04]wFMCommunicate request_size=4 [15:12:04]MH_SAM_APDU [15:12:04]CAPDU: 80 0D 01 02 [15:12:04]Write to MH i2c: E2 08 00 A8 32 80 0D 01 02 00 00 00 00 53 [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 A8 32 00 90 00 4E [15:12:04]RAPDU: 90 00 [15:12:04]wFMCommunicate OK [15:12:04]wFMCommunicate request_size=255 [15:12:04]MH_SAM_APDU [15:12:04]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CC 00 00 00 F4 03 04 00 C5 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 20 01 00 35 04 06 00 95 [15:12:04]Write to MH i2c: E2 02 01 A9 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CC 00 00 00 F4 03 04 00 C5 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 20 01 00 35 04 06 00 95 00 00 F5 [15:12:04]OFD Sender: No OFD packet to send [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 A9 32 00 90 00 4F [15:12:04]RAPDU: 90 00 [15:12:04]wFMCommunicate OK [15:12:04]wFMCommunicate request_size=10 [15:12:04]MH_SAM_APDU [15:12:04]CAPDU: 80 0D 02 02 05 C3 B1 B6 23 1D [15:12:04]Write to MH i2c: E2 0D 00 AA 32 80 0D 02 02 05 00 C3 B1 B6 23 1D 00 00 CA [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 03 00 AA 32 00 90 00 50 [15:12:04]RAPDU: 90 00 [15:12:04]wFMCommunicate OK [15:12:04]wFMCommunicate request_size=4 [15:12:04]MH_SAM_APDU [15:12:04]CAPDU: 80 0D 03 02 [15:12:04]Write to MH i2c: E2 08 00 AB 32 80 0D 03 02 00 00 00 00 58 [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 0B 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 0B 00 AB 32 00 58 B2 5E E1 9A FE 42 08 90 00 84 [15:12:04]RAPDU: 58 B2 5E E1 9A FE 42 08 90 00 [15:12:04]wFMCommunicate OK [15:12:04]SAM_PROTO_SignData done [15:12:04]FM_MakeSignedData done [15:12:04]CreateOFDProtocolMessage [15:12:04]wFMCommunicate request_size=4 [15:12:04]MH_SAM_APDU [15:12:04]CAPDU: 80 11 00 00 [15:12:04]Write to MH i2c: E2 08 00 AC 32 80 11 00 00 00 00 00 00 58 [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:04]Read from MH i2c: E2 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 17 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: E2 17 00 AC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A5 [15:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:12:04]wFMCommunicate OK [15:12:04]CreateOFDProtocolMessage done [15:12:04]OFDSenderStorePacket 73878 [15:12:04]StoreOFDPacket docnum=73878 [15:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4D EA 07 01 A8 C1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CC 00 00 00 F4 03 04 00 C5 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 20 01 00 35 04 06 00 95 C3 B1 B6 23 1D 58 B2 5E E1 9A FE 42 08 [15:12:04]CheckFolder [15:12:04]dirname=/storage/ofd_packets [15:12:04]CheckFolder done [15:12:04]ProducePacketName [15:12:04]name=ofd_packets/00073878 [15:12:04]NVStorageSaveData ofd_packets/00073878 [15:12:04]File name is /storage/ofd_packets/00073878 [15:12:04]Write 301 bytes [15:12:04]NVStorageSaveData done [15:12:04]OFDSenderStorePacket done [15:12:04]KKMCreateOFDPacket done [15:12:04]NVStorageSaveData kkm_last_timestamp [15:12:04]File name is /storage/kkm_last_timestamp [15:12:04]Write 4 bytes [15:12:04]NVStorageSaveData done [15:12:04]ExternCall_PrintAddStr [15:12:04]wPrintStart [15:12:04]Write to MH i2c: 01 00 00 AD 32 DF [15:12:04]Write i2c OK [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: 01 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: 01 07 00 [15:12:04]MH_I2C_Read... [15:12:04]Read from MH i2c: 01 07 00 AD 32 00 00 00 00 00 FF 0F F4 [15:12:04]RasterBufferAndPrint [15:12:04]line Счет N : (1)1963078 [15:12:04]line ИНН: 02508201610067 [15:12:04]line Контрольно-Кассовый Чек [15:12:04]line ПРОДАЖА [15:12:04]line ТРК (МРК, ГНК) : 53 [15:12:04]line Товар: 2710124130 [15:12:04]line Аи-92-К-5 [15:12:04]line 7.480 * 66.90 [15:12:04]line = 500.41 [15:12:04]line НДС 12% НСП 1% [15:12:04]line > о реализуемом товаре [15:12:04]line ОКРУГЛЕНИЕ: -0.41 [15:12:04]line ИТОГО: 500.00 [15:12:04]line Внесено: 500.00 [15:12:04]line СДАЧА: 0.00 [15:12:04]line НСП 1% : 4.43 [15:12:04]line НДС 12% : 53.14 [15:12:04]line Наличными: 500.00 [15:12:04]line Безнал.: 0.00 [15:12:04]line Место: АЗС № 133 "Партнер Нефть" [15:12:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:12:04]line СНО: Общий режим [15:12:04]line Чек 204 20.10.2024 15:12 [15:12:04]line Смена: 170 ФФД: 1.0 [15:12:04]line ЗНМ: 0300000020 [15:12:04]line РНМ: 0000000000161154 [15:12:04]line Версия ККМ: v1.0 [15:12:04]line ФМ: 0000000000963323 [15:12:04]line ФД: 73878 [15:12:04]line ФПД: 164667732665117 [15:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151205&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73878&fm=164667732665117&tin=02508201610067®Number=0000000000161154&sum=50000 [15:12:04]written 0, free lines is 4095 [15:12:04]OFD Sender: Processing packet 73878 [packets to send 15, broken 14] [15:12:04]ProducePacketName [15:12:04]name=ofd_packets/00073878 [15:12:04]OFD Sender: To server: pG, [15:12:04]CommunicateWithHost lk.salyk.kg:30040 [15:12:04]ConnectInit lk.salyk.kg [15:12:04]Connected sock=10 [15:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4D EA 07 01 A8 C1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CC 00 00 00 F4 03 04 00 C5 1D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 20 01 00 35 04 06 00 95 C3 B1 B6 23 1D 58 B2 5E E1 9A FE 42 08 [15:12:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0D 81 47 00 C5 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 39 36 33 33 32 33 10 04 04 00 96 20 01 00 F4 03 04 00 A9 C6 14 67 B6 04 01 00 00 82 81 90 40 1A D4 65 18 [15:12:05]CommunicateWithHost err = 0 [15:12:05]CheckOFDResponse [15:12:05]1017 (14) - 77093643461234 [15:12:05]1041 (16) - 0000000000963323 [15:12:05]1040 (4) - 73878 [15:12:05]1012 (4) - 20.10.2024 09:00 [15:12:05]1206 (1) - 0 [15:12:05]OFD Sender: Remove packet 73878 [15:12:05]ProducePacketName [15:12:05]name=ofd_packets/00073878 [15:12:05]NVStorageDeleteData [15:12:05]Write to MH i2c: 01 00 00 D7 32 09 [15:12:05]Write i2c OK [15:12:05]MH_I2C_Read... [15:12:05]Read from MH i2c: 01 [15:12:05]MH_I2C_Read... [15:12:05]Read from MH i2c: 01 07 00 [15:12:05]MH_I2C_Read... [15:12:05]Read from MH i2c: 01 07 00 D7 32 00 00 00 00 00 C9 0C E5 [15:12:05]RasterBufferAndPrint [15:12:05]line [15:12:05]line [15:12:05]line [15:12:05]line [15:12:05]line [15:12:05]written 0, free lines is 3283 [15:12:05]MH_Cut [15:12:05]Write to MH i2c: D1 01 00 DE 32 01 E2 [15:12:05]Write i2c OK [15:12:05]MH_I2C_Read... [15:12:05]Read from MH i2c: D1 [15:12:05]MH_I2C_Read... [15:12:05]Read from MH i2c: D1 01 00 [15:12:05]MH_I2C_Read... [15:12:05]Read from MH i2c: D1 01 00 DE 32 00 E1 [15:12:05]Write to MH i2c: 01 00 00 DF 32 11 [15:12:05]Write i2c OK [15:12:05]MH_I2C_Read... [15:12:05]OFD Sender: No OFD packet to send [15:12:06]*** Cut start [15:12:06]*** Partial cut [15:12:06]*** CUTSNS_PIN = 1 [15:12:06]*** CUTSNS_PIN = 0 [15:12:06]*** Brake cut motor [15:12:06]Read from MH i2c: 01 [15:12:06]MH_I2C_Read... [15:12:06]*** Stop cut motor [15:12:06]*** Cut end [15:12:06]Read from MH i2c: 01 07 00 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: 01 07 00 DF 32 00 00 00 00 00 FF 0F 26 [15:12:06]process_action close_receipt done [15:12:06]requested_data is exist [15:12:06]produce_requested_data [15:12:06]requested_item fm.sn is exist - process it [15:12:06]wFMCommunicate request_size=4 [15:12:06]MH_SAM_APDU [15:12:06]CAPDU: 80 11 00 00 [15:12:06]Write to MH i2c: E2 08 00 E0 32 80 11 00 00 00 00 00 00 8C [15:12:06]Write i2c OK [15:12:06]MH_I2C_Read... [15:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:06]Read from MH i2c: E2 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: E2 17 00 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: E2 17 00 E0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [15:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:12:06]wFMCommunicate OK [15:12:06]requested_item fd.num is exist - process it [15:12:06]SAM_PROTO_GetFieldsCounters [15:12:06]wFMCommunicate request_size=4 [15:12:06]MH_SAM_APDU [15:12:06]CAPDU: 80 13 00 00 [15:12:06]Write to MH i2c: E2 08 00 E1 32 80 13 00 00 00 00 00 00 8F [15:12:06]Write i2c OK [15:12:06]MH_I2C_Read... [15:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:06]Read from MH i2c: E2 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: E2 62 00 [15:12:06]MH_I2C_Read... [15:12:06]Read from MH i2c: E2 62 00 E1 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 96 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [15:12:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 96 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:06]wFMCommunicate OK [15:12:06]SAM_PROTO_GetFieldsCounters done [15:12:06]requested_item shift.num is exist - process it [15:12:06]requested_item shift.opened is exist - process it [15:12:06]req_shift_opened [15:12:06]FM_GetShiftState [15:12:06]SAM_PROTO_GetShiftState [15:12:06]wFMCommunicate request_size=4 [15:12:06]MH_SAM_APDU [15:12:06]CAPDU: 80 13 01 00 [15:12:06]Write to MH i2c: E2 08 00 E2 32 80 13 01 00 00 00 00 00 91 [15:12:06]Write i2c OK [15:12:06]MH_I2C_Read... [15:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:07]Read from MH i2c: E2 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 0E 00 [15:12:07]MH_I2C_Read... [15:12:07]Read from MH i2c: E2 0E 00 E2 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D6 [15:12:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:12:07]wFMCommunicate OK [15:12:07]SAM_PROTO_GetShiftState done [15:12:07]FM_GetShiftState done [15:12:07]req_shift_opened done [15:12:07]requested_item shift.open_date is exist - process it [15:12:07]req_shift_open_date [15:12:07]req_shift_open_date done [15:12:07]produce_requested_data done [15:12:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73878,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:12:07]process_action_free close_receipt [15:12:07]json_value_free [15:12:07]json_value_free done [15:12:07]process_json_proto returns [15:12:07]Send response to host [15:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73878,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:12:07]free response buf [15:12:07]execute_script done [15:12:07]execute_script returns [15:12:07]free content buf [15:12:07]Sock 9.Close socket [15:12:07]Sock 9.Thread stoped [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:04]accept exits with 8 [15:13:04]New connection [15:13:04]New thread 3067432292 created [15:13:04]Thread 3067575652 joined [15:13:04]Waiting for new connection... [15:13:04] Sock 8.Parse request [15:13:04]Sock 8.Check first char [15:13:04]Sock 8.First char is OK [15:13:04]request: POST /json_proto HTTP/1.0 [15:13:04]Method: POST [15:13:04]URL: /json_proto [15:13:04]Method is POST - this is cgi request [15:13:04]url: /json_proto [15:13:04]query_string will be loaded in cgi processing [15:13:04]execute_cgi json_proto POST (null) [15:13:04]execute_cgi path=json_proto method=POST [15:13:04]POST find Content-Length [15:13:04]Host: 172.17.44.196:8080 [15:13:04]Content-Length: 680 [15:13:04]Content-Type: application/json [15:13:04] [15:13:04]POST finish read [15:13:04]Found Content-Length = 680 [15:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:04]execute_script... [15: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 : (1)1963080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:04]POST & json_proto [15:13:04]process_json_proto [15:13:04]json parsed OK: [15:13:04]protocol is kg_v1.0 [15:13:04]action value=close_receipt [15:13:04]process_action close_receipt [15:13:04]cmd_close_receipt [15:13:04]MH_GetDate [15:13:04]Write to MH i2c: F0 00 00 E3 32 04 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: F0 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: F0 09 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: F0 09 00 E3 32 00 03 1E 15 67 E7 19 F8 65 07 [15:13:04]GetLastDocTimeStamp 1729437125 [15:13:04]current date 1729437187 [15:13:04]FM_GetShiftState [15:13:04]SAM_PROTO_GetShiftState [15:13:04]wFMCommunicate request_size=4 [15:13:04]MH_SAM_APDU [15:13:04]CAPDU: 80 13 01 00 [15:13:04]Write to MH i2c: E2 08 00 E4 32 80 13 01 00 00 00 00 00 93 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 0E 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 0E 00 E4 32 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [15:13:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:13:04]wFMCommunicate OK [15:13:04]SAM_PROTO_GetShiftState done [15:13:04]FM_GetShiftState done [15:13:04]opened in 1729384303 [15:13:04]opened+sec_in_day 1729470703 [15:13:04]quantity*price = 300075 [15:13:04]sum+1 = 300077 [15:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 205 20.10.2024 15:13 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73879 ФПД: 237835172164677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151307&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73879&fm=237835172164677&tin=02508201610067®Number=0000000000161154&sum=300000 [15:13:06]StoreToDocumentArchive [15:13:06]shift 170 fd 73879 [15:13:06]save to /storage/0170/doc_00073879 [15:13:06]save last doc name /storage/0170/doc_00073879 to /storage/kkm_last_doc_name [15:13:06]save OK [15:13:06]Clear old archive folders... [15:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:13:06]tlvbuf is 00338C80 [15:13:06]SAM_PROTO_ClearQueue [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 09 00 00 [15:13:06]Write to MH i2c: E2 08 00 F1 32 80 09 00 00 00 00 00 00 95 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 F1 32 00 90 00 97 [15:13:06]RAPDU: 90 00 [15:13:06]wFMCommunicate OK [15:13:06]SAM_PROTO_ClearQueue done [15:13:06]KKMCreateOFDPacket [15:13:06]OFDProtocolAddRootSTLVToBuf [15:13:06]FM_MakeSignedData [15:13:06]FM_MakeSignedData [15:13:06]SAM_PROTO_SignData [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 0D 01 02 [15:13:06]Write to MH i2c: E2 08 00 F2 32 80 0D 01 02 00 00 00 00 9D [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 F2 32 00 90 00 98 [15:13:06]RAPDU: 90 00 [15:13:06]wFMCommunicate OK [15:13:06]wFMCommunicate request_size=255 [15:13:06]MH_SAM_APDU [15:13:06]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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 03 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 20 01 00 35 04 06 00 D8 4F 50 F3 [15:13:06]Write to MH i2c: E2 02 01 F3 32 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 03 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 20 01 00 35 04 06 00 D8 4F 50 F3 00 00 82 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 F3 32 00 90 00 99 [15:13:06]RAPDU: 90 00 [15:13:06]wFMCommunicate OK [15:13:06]wFMCommunicate request_size=7 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 0D 02 02 02 B4 45 [15:13:06]Write to MH i2c: E2 0A 00 F4 32 80 0D 02 02 02 00 B4 45 00 00 9D [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 03 00 F4 32 00 90 00 9A [15:13:06]RAPDU: 90 00 [15:13:06]wFMCommunicate OK [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 0D 03 02 [15:13:06]Write to MH i2c: E2 08 00 F5 32 80 0D 03 02 00 00 00 00 A2 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 0B 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 0B 00 F5 32 00 8B 08 A5 57 00 4A AB D3 90 00 FA [15:13:06]RAPDU: 8B 08 A5 57 00 4A AB D3 90 00 [15:13:06]wFMCommunicate OK [15:13:06]SAM_PROTO_SignData done [15:13:06]FM_MakeSignedData done [15:13:06]CreateOFDProtocolMessage [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 11 00 00 [15:13:06]Write to MH i2c: E2 08 00 F6 32 80 11 00 00 00 00 00 00 A2 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 17 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 17 00 F6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EF [15:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:13:06]wFMCommunicate OK [15:13:06]CreateOFDProtocolMessage done [15:13:06]OFDSenderStorePacket 73879 [15:13:06]StoreOFDPacket docnum=73879 [15:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D8 EC 04 01 CF 8D 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 03 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 20 01 00 35 04 06 00 D8 4F 50 F3 B4 45 8B 08 A5 57 00 4A AB D3 [15:13:06]CheckFolder [15:13:06]dirname=/storage/ofd_packets [15:13:06]CheckFolder done [15:13:06]ProducePacketName [15:13:06]name=ofd_packets/00073879 [15:13:06]NVStorageSaveData ofd_packets/00073879 [15:13:06]File name is /storage/ofd_packets/00073879 [15:13:06]Write 298 bytes [15:13:06]NVStorageSaveData done [15:13:06]OFDSenderStorePacket done [15:13:06]KKMCreateOFDPacket done [15:13:06]NVStorageSaveData kkm_last_timestamp [15:13:06]File name is /storage/kkm_last_timestamp [15:13:06]Write 4 bytes [15:13:06]NVStorageSaveData done [15:13:06]ExternCall_PrintAddStr [15:13:06]wPrintStart [15:13:06]Write to MH i2c: 01 00 00 F7 32 29 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: 01 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: 01 07 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: 01 07 00 F7 32 00 00 00 00 00 FF 0F 3E [15:13:06]RasterBufferAndPrint [15:13:06]line Счет N : (1)1963080 [15:13:06]line ИНН: 02508201610067 [15:13:06]line Контрольно-Кассовый Чек [15:13:06]line ПРОДАЖА [15:13:06]line ТРК (МРК, ГНК) : 21 [15:13:06]line Товар: 2710194210 [15:13:06]line ДТ-К-5 [15:13:06]line 39.380 * 76.20 [15:13:06]line = 3000.76 [15:13:06]line НДС 12% НСП 1% [15:13:06]line > о реализуемом товаре [15:13:06]line ОКРУГЛЕНИЕ: -0.76 [15:13:06]line ИТОГО: 3000.00 [15:13:06]line Внесено: 3000.00 [15:13:06]line СДАЧА: 0.00 [15:13:06]line НСП 1% : 26.55 [15:13:06]line НДС 12% : 318.66 [15:13:06]line Наличными: 3000.00 [15:13:06]line Безнал.: 0.00 [15:13:06]line Место: АЗС № 133 "Партнер Нефть" [15:13:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:13:06]line СНО: Общий режим [15:13:06]line Чек 205 20.10.2024 15:13 [15:13:06]line Смена: 170 ФФД: 1.0 [15:13:06]line ЗНМ: 0300000020 [15:13:06]line РНМ: 0000000000161154 [15:13:06]line Версия ККМ: v1.0 [15:13:06]line ФМ: 0000000000963323 [15:13:06]line ФД: 73879 [15:13:06]line ФПД: 237835172164677 [15:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151307&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73879&fm=237835172164677&tin=02508201610067®Number=0000000000161154&sum=300000 [15:13:06]OFD Sender: Processing packet 73879 [packets to send 15, broken 14] [15:13:06]ProducePacketName [15:13:06]name=ofd_packets/00073879 [15:13:06]OFD Sender: To server: pG, [15:13:06]CommunicateWithHost lk.salyk.kg:30040 [15:13:06]ConnectInit lk.salyk.kg [15:13:06]written 0, free lines is 4095 [15:13:07]Connected sock=10 [15:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D8 EC 04 01 CF 8D 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 03 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 20 01 00 35 04 06 00 D8 4F 50 F3 B4 45 8B 08 A5 57 00 4A AB D3 [15:13:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8E 0D 47 00 16 27 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 39 36 33 33 32 33 10 04 04 00 97 20 01 00 F4 03 04 00 E7 C6 14 67 B6 04 01 00 00 5A B5 0E EB E1 AB 25 6F [15:13:07]CommunicateWithHost err = 0 [15:13:07]CheckOFDResponse [15:13:07]1017 (14) - 77093643461234 [15:13:07]1041 (16) - 0000000000963323 [15:13:07]1040 (4) - 73879 [15:13:07]1012 (4) - 20.10.2024 09:01 [15:13:07]1206 (1) - 0 [15:13:07]OFD Sender: Remove packet 73879 [15:13:07]ProducePacketName [15:13:07]name=ofd_packets/00073879 [15:13:07]NVStorageDeleteData [15:13:07]Write to MH i2c: 01 00 00 21 33 54 [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: 01 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: 01 07 00 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: 01 07 00 21 33 00 00 00 00 00 DE 0C 45 [15:13:07]RasterBufferAndPrint [15:13:07]line [15:13:07]line [15:13:07]line [15:13:07]line [15:13:07]line [15:13:07]written 0, free lines is 3300 [15:13:07]MH_Cut [15:13:07]Write to MH i2c: D1 01 00 28 33 01 2D [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: D1 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: D1 01 00 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: D1 01 00 28 33 00 2C [15:13:07]Write to MH i2c: 01 00 00 29 33 5C [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]OFD Sender: No OFD packet to send [15:13:08]*** Cut start [15:13:08]*** Partial cut [15:13:08]*** CUTSNS_PIN = 1 [15:13:08]*** CUTSNS_PIN = 0 [15:13:08]*** Brake cut motor [15:13:08]Read from MH i2c: 01 [15:13:08]MH_I2C_Read... [15:13:08]*** Stop cut motor [15:13:08]*** Cut end [15:13:08]Read from MH i2c: 01 07 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 07 00 29 33 00 00 00 00 00 FF 0F 71 [15:13:08]process_action close_receipt done [15:13:08]requested_data is exist [15:13:08]produce_requested_data [15:13:08]requested_item fm.sn is exist - process it [15:13:08]wFMCommunicate request_size=4 [15:13:08]MH_SAM_APDU [15:13:08]CAPDU: 80 11 00 00 [15:13:08]Write to MH i2c: E2 08 00 2A 33 80 11 00 00 00 00 00 00 D7 [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:08]Read from MH i2c: E2 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 17 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 17 00 2A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 24 [15:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:13:08]wFMCommunicate OK [15:13:08]requested_item fd.num is exist - process it [15:13:08]SAM_PROTO_GetFieldsCounters [15:13:08]wFMCommunicate request_size=4 [15:13:08]MH_SAM_APDU [15:13:08]CAPDU: 80 13 00 00 [15:13:08]Write to MH i2c: E2 08 00 2B 33 80 13 00 00 00 00 00 00 DA [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:09]Read from MH i2c: E2 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: E2 62 00 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: E2 62 00 2B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 97 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [15:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 97 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:09]wFMCommunicate OK [15:13:09]SAM_PROTO_GetFieldsCounters done [15:13:09]requested_item shift.num is exist - process it [15:13:09]requested_item shift.opened is exist - process it [15:13:09]req_shift_opened [15:13:09]FM_GetShiftState [15:13:09]SAM_PROTO_GetShiftState [15:13:09]wFMCommunicate request_size=4 [15:13:09]MH_SAM_APDU [15:13:09]CAPDU: 80 13 01 00 [15:13:09]Write to MH i2c: E2 08 00 2C 33 80 13 01 00 00 00 00 00 DC [15:13:09]Write i2c OK [15:13:09]MH_I2C_Read... [15:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:09]Read from MH i2c: E2 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: E2 0E 00 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: E2 0E 00 2C 33 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 21 [15:13:09]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:13:09]wFMCommunicate OK [15:13:09]SAM_PROTO_GetShiftState done [15:13:09]FM_GetShiftState done [15:13:09]req_shift_opened done [15:13:09]requested_item shift.open_date is exist - process it [15:13:09]req_shift_open_date [15:13:09]req_shift_open_date done [15:13:09]produce_requested_data done [15:13:09]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73879,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:13:09]process_action_free close_receipt [15:13:09]json_value_free [15:13:09]json_value_free done [15:13:09]process_json_proto returns [15:13:09]Send response to host [15:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73879,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:13:09]free response buf [15:13:09]execute_script done [15:13:09]execute_script returns [15:13:09]free content buf [15:13:09]Sock 8.Close socket [15:13:09]Sock 8.Thread stoped [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:45]accept exits with 9 [15:15:45]New connection [15:15:45]New thread 3067575652 created [15:15:45]Thread 3067432292 joined [15:15:45]Waiting for new connection... [15:15:45] Sock 9.Parse request [15:15:45]Sock 9.Check first char [15:15:45]Sock 9.First char is OK [15:15:45]request: POST /json_proto HTTP/1.0 [15:15:45]Method: POST [15:15:45]URL: /json_proto [15:15:45]Method is POST - this is cgi request [15:15:45]url: /json_proto [15:15:45]query_string will be loaded in cgi processing [15:15:45]execute_cgi json_proto POST (null) [15:15:45]execute_cgi path=json_proto method=POST [15:15:45]POST find Content-Length [15:15:45]Host: 172.17.44.196:8080 [15:15:45]Content-Length: 678 [15:15:45]Content-Type: application/json [15:15:45] [15:15:45]POST finish read [15:15:45]Found Content-Length = 678 [15:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963081", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [15:15:45]execute_script... [15:15: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 : (1)1963081", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [15:15:45]POST & json_proto [15:15:45]process_json_proto [15:15:45]json parsed OK: [15:15:45]protocol is kg_v1.0 [15:15:45]action value=close_receipt [15:15:45]process_action close_receipt [15:15:45]cmd_close_receipt [15:15:45]MH_GetDate [15:15:45]Write to MH i2c: F0 00 00 2D 33 4F [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: F0 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: F0 09 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: F0 09 00 2D 33 00 A3 1E 15 67 E7 19 F8 65 F2 [15:15:45]GetLastDocTimeStamp 1729437187 [15:15:45]current date 1729437347 [15:15:45]FM_GetShiftState [15:15:45]SAM_PROTO_GetShiftState [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 13 01 00 [15:15:45]Write to MH i2c: E2 08 00 2E 33 80 13 01 00 00 00 00 00 DE [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0E 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0E 00 2E 33 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 23 [15:15:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:15:45]wFMCommunicate OK [15:15:45]SAM_PROTO_GetShiftState done [15:15:45]FM_GetShiftState done [15:15:45]opened in 1729384303 [15:15:45]opened+sec_in_day 1729470703 [15:15:45]quantity*price = 50041 [15:15:45]sum+1 = 50042 [15:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 206 20.10.2024 15:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73880 ФПД: 119030051558096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151548&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73880&fm=119030051558096&tin=02508201610067®Number=0000000000161154&sum=50000 [15:15:46]StoreToDocumentArchive [15:15:46]shift 170 fd 73880 [15:15:46]save to /storage/0170/doc_00073880 [15:15:46]save last doc name /storage/0170/doc_00073880 to /storage/kkm_last_doc_name [15:15:46]save OK [15:15:46]Clear old archive folders... [15:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:46]tlvbuf is 00460620 [15:15:46]SAM_PROTO_ClearQueue [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 09 00 00 [15:15:46]Write to MH i2c: E2 08 00 3B 33 80 09 00 00 00 00 00 00 E0 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 3B 33 00 90 00 E2 [15:15:46]RAPDU: 90 00 [15:15:46]wFMCommunicate OK [15:15:46]SAM_PROTO_ClearQueue done [15:15:46]KKMCreateOFDPacket [15:15:46]OFDProtocolAddRootSTLVToBuf [15:15:46]FM_MakeSignedData [15:15:46]FM_MakeSignedData [15:15:46]SAM_PROTO_SignData [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 0D 01 02 [15:15:46]Write to MH i2c: E2 08 00 3C 33 80 0D 01 02 00 00 00 00 E8 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 3C 33 00 90 00 E3 [15:15:46]RAPDU: 90 00 [15:15:46]wFMCommunicate OK [15:15:46]wFMCommunicate request_size=255 [15:15:46]MH_SAM_APDU [15:15:46]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CE 00 00 00 F4 03 04 00 A4 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 20 01 00 35 04 06 00 6C [15:15:46]Write to MH i2c: E2 02 01 3D 33 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CE 00 00 00 F4 03 04 00 A4 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 20 01 00 35 04 06 00 6C 00 00 45 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 03 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 03 00 3D 33 00 90 00 E4 [15:15:47]RAPDU: 90 00 [15:15:47]wFMCommunicate OK [15:15:47]wFMCommunicate request_size=10 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 0D 02 02 05 41 D7 F0 D2 D0 [15:15:47]Write to MH i2c: E2 0D 00 3E 33 80 0D 02 02 05 00 41 D7 F0 D2 D0 00 00 9F [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 03 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 03 00 3E 33 00 90 00 E5 [15:15:47]RAPDU: 90 00 [15:15:47]wFMCommunicate OK [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 0D 03 02 [15:15:47]Write to MH i2c: E2 08 00 3F 33 80 0D 03 02 00 00 00 00 ED [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 0B 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 0B 00 3F 33 00 B9 85 B3 89 3A DF 79 D6 90 00 D0 [15:15:47]RAPDU: B9 85 B3 89 3A DF 79 D6 90 00 [15:15:47]wFMCommunicate OK [15:15:47]SAM_PROTO_SignData done [15:15:47]FM_MakeSignedData done [15:15:47]CreateOFDProtocolMessage [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 11 00 00 [15:15:47]Write to MH i2c: E2 08 00 40 33 80 11 00 00 00 00 00 00 ED [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 17 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 17 00 40 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3A [15:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:15:47]wFMCommunicate OK [15:15:47]CreateOFDProtocolMessage done [15:15:47]OFDSenderStorePacket 73880 [15:15:47]StoreOFDPacket docnum=73880 [15:15:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 24 5B 07 01 5F F8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CE 00 00 00 F4 03 04 00 A4 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 20 01 00 35 04 06 00 6C 41 D7 F0 D2 D0 B9 85 B3 89 3A DF 79 D6 [15:15:47]CheckFolder [15:15:47]dirname=/storage/ofd_packets [15:15:47]CheckFolder done [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00073880 [15:15:47]NVStorageSaveData ofd_packets/00073880 [15:15:47]File name is /storage/ofd_packets/00073880 [15:15:47]Write 301 bytes [15:15:47]NVStorageSaveData done [15:15:47]OFDSenderStorePacket done [15:15:47]KKMCreateOFDPacket done [15:15:47]NVStorageSaveData kkm_last_timestamp [15:15:47]File name is /storage/kkm_last_timestamp [15:15:47]Write 4 bytes [15:15:47]NVStorageSaveData done [15:15:47]ExternCall_PrintAddStr [15:15:47]wPrintStart [15:15:47]Write to MH i2c: 01 00 00 41 33 74 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 07 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 07 00 41 33 00 00 00 00 00 FF 0F 89 [15:15:47]RasterBufferAndPrint [15:15:47]line Счет N : (1)1963081 [15:15:47]line ИНН: 02508201610067 [15:15:47]line Контрольно-Кассовый Чек [15:15:47]line ПРОДАЖА [15:15:47]line ТРК (МРК, ГНК) : 33 [15:15:47]line Товар: 2710124130 [15:15:47]line Аи-92-К-5 [15:15:47]line 7.480 * 66.90 [15:15:47]line = 500.41 [15:15:47]line НДС 12% НСП 1% [15:15:47]line > о реализуемом товаре [15:15:47]line ОКРУГЛЕНИЕ: -0.41 [15:15:47]line ИТОГО: 500.00 [15:15:47]line Внесено: 500.00 [15:15:47]line СДАЧА: 0.00 [15:15:47]line НСП 1% : 4.43 [15:15:47]line НДС 12% : 53.14 [15:15:47]line Наличными: 500.00 [15:15:47]line Безнал.: 0.00 [15:15:47]line Место: АЗС № 133 "Партнер Нефть" [15:15:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:15:47]line СНО: Общий режим [15:15:47]line Чек 206 20.10.2024 15:15 [15:15:47]line Смена: 170 ФФД: 1.0 [15:15:47]line ЗНМ: 0300000020 [15:15:47]line РНМ: 0000000000161154 [15:15:47]line Версия ККМ: v1.0 [15:15:47]line ФМ: 0000000000963323 [15:15:47]line ФД: 73880 [15:15:47]line ФПД: 119030051558096 [15:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151548&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73880&fm=119030051558096&tin=02508201610067®Number=0000000000161154&sum=50000 [15:15:47]OFD Sender: Processing packet 73880 [packets to send 15, broken 14] [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00073880 [15:15:47]OFD Sender: To server: pG, [15:15:47]CommunicateWithHost lk.salyk.kg:30040 [15:15:47]ConnectInit lk.salyk.kg [15:15:47]written 0, free lines is 4095 [15:15:47]Connected sock=10 [15:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 24 5B 07 01 5F F8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 CE 00 00 00 F4 03 04 00 A4 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 20 01 00 35 04 06 00 6C 41 D7 F0 D2 D0 B9 85 B3 89 3A DF 79 D6 [15:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EE 67 47 00 A3 2C 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 39 36 33 33 32 33 10 04 04 00 98 20 01 00 F4 03 04 00 88 C7 14 67 B6 04 01 00 00 9F 03 E8 0F 68 60 F3 4E [15:15:47]CommunicateWithHost err = 0 [15:15:47]CheckOFDResponse [15:15:47]1017 (14) - 77093643461234 [15:15:47]1041 (16) - 0000000000963323 [15:15:47]1040 (4) - 73880 [15:15:47]1012 (4) - 20.10.2024 09:04 [15:15:47]1206 (1) - 0 [15:15:47]OFD Sender: Remove packet 73880 [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00073880 [15:15:47]NVStorageDeleteData [15:15:48]Write to MH i2c: 01 00 00 6B 33 9E [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: 01 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: 01 07 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: 01 07 00 6B 33 00 00 00 00 00 C1 0C 72 [15:15:48]RasterBufferAndPrint [15:15:48]line [15:15:48]line [15:15:48]line [15:15:48]line [15:15:48]line [15:15:48]written 0, free lines is 3271 [15:15:48]MH_Cut [15:15:48]Write to MH i2c: D1 01 00 72 33 01 77 [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: D1 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: D1 01 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: D1 01 00 72 33 00 76 [15:15:48]Write to MH i2c: 01 00 00 73 33 A6 [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]OFD Sender: No OFD packet to send [15:15:48]*** Cut start [15:15:48]*** Partial cut [15:15:48]*** CUTSNS_PIN = 1 [15:15:48]*** CUTSNS_PIN = 0 [15:15:49]*** Brake cut motor [15:15:49]Read from MH i2c: 01 [15:15:49]MH_I2C_Read... [15:15:49]*** Stop cut motor [15:15:49]*** Cut end [15:15:49]Read from MH i2c: 01 07 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 07 00 73 33 00 00 00 00 00 FF 0F BB [15:15:49]process_action close_receipt done [15:15:49]requested_data is exist [15:15:49]produce_requested_data [15:15:49]requested_item fm.sn is exist - process it [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 11 00 00 [15:15:49]Write to MH i2c: E2 08 00 74 33 80 11 00 00 00 00 00 00 21 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 74 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6E [15:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:15:49]wFMCommunicate OK [15:15:49]requested_item fd.num is exist - process it [15:15:49]SAM_PROTO_GetFieldsCounters [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 13 00 00 [15:15:49]Write to MH i2c: E2 08 00 75 33 80 13 00 00 00 00 00 00 24 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 62 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 62 00 75 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 98 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [15:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 98 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_GetFieldsCounters done [15:15:49]requested_item shift.num is exist - process it [15:15:49]requested_item shift.opened is exist - process it [15:15:49]req_shift_opened [15:15:49]FM_GetShiftState [15:15:49]SAM_PROTO_GetShiftState [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 13 01 00 [15:15:49]Write to MH i2c: E2 08 00 76 33 80 13 01 00 00 00 00 00 26 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:49]Read from MH i2c: E2 0E 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0E 00 76 33 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6B [15:15:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_GetShiftState done [15:15:49]FM_GetShiftState done [15:15:49]req_shift_opened done [15:15:49]requested_item shift.open_date is exist - process it [15:15:49]req_shift_open_date [15:15:49]req_shift_open_date done [15:15:49]produce_requested_data done [15:15:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73880,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:15:49]process_action_free close_receipt [15:15:49]json_value_free [15:15:49]json_value_free done [15:15:49]process_json_proto returns [15:15:49]Send response to host [15:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73880,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:15:49]free response buf [15:15:49]execute_script done [15:15:49]execute_script returns [15:15:49]free content buf [15:15:49]Sock 9.Close socket [15:15:49]Sock 9.Thread stoped [15:15:53]OFD Sender: No OFD packet to send [15:15:56]accept exits with 8 [15:15:56]New connection [15:15:56]New thread 3067432292 created [15:15:56]Thread 3067575652 joined [15:15:56]Waiting for new connection... [15:15:56] Sock 8.Parse request [15:15:56]Sock 8.Check first char [15:15:56]Sock 8.First char is OK [15:15:56]request: POST /json_proto HTTP/1.0 [15:15:56]Method: POST [15:15:56]URL: /json_proto [15:15:56]Method is POST - this is cgi request [15:15:56]url: /json_proto [15:15:56]query_string will be loaded in cgi processing [15:15:56]execute_cgi json_proto POST (null) [15:15:56]execute_cgi path=json_proto method=POST [15:15:56]POST find Content-Length [15:15:56]Host: 172.17.44.196:8080 [15:15:56]Content-Length: 678 [15:15:56]Content-Type: application/json [15:15:56] [15:15:56]POST finish read [15:15:56]Found Content-Length = 678 [15:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:56]execute_script... [15:15: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 : (1)1963082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:56]POST & json_proto [15:15:56]process_json_proto [15:15:56]json parsed OK: [15:15:56]protocol is kg_v1.0 [15:15:56]action value=close_receipt [15:15:56]process_action close_receipt [15:15:56]cmd_close_receipt [15:15:56]MH_GetDate [15:15:56]Write to MH i2c: F0 00 00 77 33 99 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: F0 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: F0 09 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: F0 09 00 77 33 00 AF 1E 15 67 E7 19 F8 65 48 [15:15:56]GetLastDocTimeStamp 1729437348 [15:15:56]current date 1729437359 [15:15:56]FM_GetShiftState [15:15:56]SAM_PROTO_GetShiftState [15:15:56]wFMCommunicate request_size=4 [15:15:56]MH_SAM_APDU [15:15:56]CAPDU: 80 13 01 00 [15:15:56]Write to MH i2c: E2 08 00 78 33 80 13 01 00 00 00 00 00 28 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:56]Read from MH i2c: E2 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: E2 0E 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: E2 0E 00 78 33 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [15:15:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:15:56]wFMCommunicate OK [15:15:56]SAM_PROTO_GetShiftState done [15:15:56]FM_GetShiftState done [15:15:56]opened in 1729384303 [15:15:56]opened+sec_in_day 1729470703 [15:15:56]quantity*price = 30038 [15:15:56]sum+1 = 30039 [15:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 207 20.10.2024 15:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73881 ФПД: 14629952579123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151559&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73881&fm=14629952579123&tin=02508201610067®Number=0000000000161154&sum=30000 [15:15:58]StoreToDocumentArchive [15:15:58]shift 170 fd 73881 [15:15:58]save to /storage/0170/doc_00073881 [15:15:58]save last doc name /storage/0170/doc_00073881 to /storage/kkm_last_doc_name [15:15:58]save OK [15:15:58]Clear old archive folders... [15:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:58]tlvbuf is 003EE180 [15:15:58]SAM_PROTO_ClearQueue [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 09 00 00 [15:15:58]Write to MH i2c: E2 08 00 85 33 80 09 00 00 00 00 00 00 2A [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 85 33 00 90 00 2C [15:15:58]RAPDU: 90 00 [15:15:58]wFMCommunicate OK [15:15:58]SAM_PROTO_ClearQueue done [15:15:58]KKMCreateOFDPacket [15:15:58]OFDProtocolAddRootSTLVToBuf [15:15:58]FM_MakeSignedData [15:15:58]FM_MakeSignedData [15:15:58]SAM_PROTO_SignData [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 0D 01 02 [15:15:58]Write to MH i2c: E2 08 00 86 33 80 0D 01 02 00 00 00 00 32 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [15:15:58]RAPDU: 90 00 [15:15:58]wFMCommunicate OK [15:15:58]wFMCommunicate request_size=255 [15:15:58]MH_SAM_APDU [15:15:58]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 CF 00 00 00 F4 03 04 00 AF 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 20 01 00 35 04 06 00 0D [15:15:58]Write to MH i2c: E2 02 01 87 33 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 CF 00 00 00 F4 03 04 00 AF 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 20 01 00 35 04 06 00 0D 00 00 31 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [15:15:58]RAPDU: 90 00 [15:15:58]wFMCommunicate OK [15:15:58]wFMCommunicate request_size=10 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 0D 02 02 05 4E 4D 20 66 33 [15:15:58]Write to MH i2c: E2 0D 00 88 33 80 0D 02 02 05 00 4E 4D 20 66 33 00 00 93 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]OFD Sender: No OFD packet to send [15:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 88 33 00 90 00 2F [15:15:58]RAPDU: 90 00 [15:15:58]wFMCommunicate OK [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 0D 03 02 [15:15:58]Write to MH i2c: E2 08 00 89 33 80 0D 03 02 00 00 00 00 37 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 0B 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 0B 00 89 33 00 E1 85 7C 67 BD E3 8D C1 90 00 6F [15:15:58]RAPDU: E1 85 7C 67 BD E3 8D C1 90 00 [15:15:58]wFMCommunicate OK [15:15:58]SAM_PROTO_SignData done [15:15:58]FM_MakeSignedData done [15:15:58]CreateOFDProtocolMessage [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 11 00 00 [15:15:58]Write to MH i2c: E2 08 00 8A 33 80 11 00 00 00 00 00 00 37 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 17 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 17 00 8A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [15:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:15:58]wFMCommunicate OK [15:15:58]CreateOFDProtocolMessage done [15:15:58]OFDSenderStorePacket 73881 [15:15:58]StoreOFDPacket docnum=73881 [15:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 01 DE 07 01 5B 21 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 CF 00 00 00 F4 03 04 00 AF 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 20 01 00 35 04 06 00 0D 4E 4D 20 66 33 E1 85 7C 67 BD E3 8D C1 [15:15:58]CheckFolder [15:15:58]dirname=/storage/ofd_packets [15:15:58]CheckFolder done [15:15:58]ProducePacketName [15:15:58]name=ofd_packets/00073881 [15:15:58]NVStorageSaveData ofd_packets/00073881 [15:15:58]File name is /storage/ofd_packets/00073881 [15:15:58]Write 301 bytes [15:15:58]NVStorageSaveData done [15:15:58]OFDSenderStorePacket done [15:15:58]KKMCreateOFDPacket done [15:15:58]NVStorageSaveData kkm_last_timestamp [15:15:58]File name is /storage/kkm_last_timestamp [15:15:58]Write 4 bytes [15:15:58]NVStorageSaveData done [15:15:58]ExternCall_PrintAddStr [15:15:58]wPrintStart [15:15:58]Write to MH i2c: 01 00 00 8B 33 BE [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: 01 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: 01 07 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: 01 07 00 8B 33 00 00 00 00 00 FF 0F D3 [15:15:58]RasterBufferAndPrint [15:15:58]line Счет N : (1)1963082 [15:15:58]line ИНН: 02508201610067 [15:15:58]line Контрольно-Кассовый Чек [15:15:58]line ПРОДАЖА [15:15:58]line ТРК (МРК, ГНК) : 63 [15:15:58]line Товар: 2710124130 [15:15:58]line Аи-92-К-5 [15:15:58]line 4.490 * 66.90 [15:15:58]line = 300.38 [15:15:58]line НДС 12% НСП 1% [15:15:58]line > о реализуемом товаре [15:15:58]line ОКРУГЛЕНИЕ: -0.38 [15:15:58]line ИТОГО: 300.00 [15:15:58]line Внесено: 300.00 [15:15:58]line СДАЧА: 0.00 [15:15:58]line НСП 1% : 2.66 [15:15:58]line НДС 12% : 31.90 [15:15:58]line Наличными: 300.00 [15:15:58]line Безнал.: 0.00 [15:15:58]line Место: АЗС № 133 "Партнер Нефть" [15:15:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:15:58]line СНО: Общий режим [15:15:58]line Чек 207 20.10.2024 15:15 [15:15:58]line Смена: 170 ФФД: 1.0 [15:15:58]line ЗНМ: 0300000020 [15:15:58]line РНМ: 0000000000161154 [15:15:58]line Версия ККМ: v1.0 [15:15:58]line ФМ: 0000000000963323 [15:15:58]line ФД: 73881 [15:15:58]line ФПД: 14629952579123 [15:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151559&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73881&fm=14629952579123&tin=02508201610067®Number=0000000000161154&sum=30000 [15:15:58]OFD Sender: Processing packet 73881 [packets to send 15, broken 14] [15:15:58]ProducePacketName [15:15:58]name=ofd_packets/00073881 [15:15:58]OFD Sender: To server: pG, [15:15:58]CommunicateWithHost lk.salyk.kg:30040 [15:15:58]ConnectInit lk.salyk.kg [15:15:58]written 0, free lines is 4095 [15:15:59]Connected sock=10 [15:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 01 DE 07 01 5B 21 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 CF 00 00 00 F4 03 04 00 AF 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 20 01 00 35 04 06 00 0D 4E 4D 20 66 33 E1 85 7C 67 BD E3 8D C1 [15:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 41 67 47 00 35 16 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 39 36 33 33 32 33 10 04 04 00 99 20 01 00 F4 03 04 00 93 C7 14 67 B6 04 01 00 00 77 E0 83 42 F1 E5 61 3D [15:15:59]CommunicateWithHost err = 0 [15:15:59]CheckOFDResponse [15:15:59]1017 (14) - 77093643461234 [15:15:59]1041 (16) - 0000000000963323 [15:15:59]1040 (4) - 73881 [15:15:59]1012 (4) - 20.10.2024 09:04 [15:15:59]1206 (1) - 0 [15:15:59]OFD Sender: Remove packet 73881 [15:15:59]ProducePacketName [15:15:59]name=ofd_packets/00073881 [15:15:59]NVStorageDeleteData [15:15:59]Write to MH i2c: 01 00 00 B5 33 E8 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 07 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 BD 0C B8 [15:15:59]RasterBufferAndPrint [15:15:59]line [15:15:59]line [15:15:59]line [15:15:59]line [15:15:59]line [15:15:59]written 0, free lines is 3267 [15:15:59]MH_Cut [15:15:59]Write to MH i2c: D1 01 00 BC 33 01 C1 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: D1 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: D1 01 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: D1 01 00 BC 33 00 C0 [15:15:59]Write to MH i2c: 01 00 00 BD 33 F0 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]OFD Sender: No OFD packet to send [15:16:00]*** Cut start [15:16:00]*** Partial cut [15:16:00]*** CUTSNS_PIN = 1 [15:16:00]*** CUTSNS_PIN = 0 [15:16:00]*** Brake cut motor [15:16:00]Read from MH i2c: 01 [15:16:00]MH_I2C_Read... [15:16:00]*** Stop cut motor [15:16:00]*** Cut end [15:16:00]Read from MH i2c: 01 07 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 BD 33 00 00 00 00 00 FF 0F 05 [15:16:00]process_action close_receipt done [15:16:00]requested_data is exist [15:16:00]produce_requested_data [15:16:00]requested_item fm.sn is exist - process it [15:16:00]wFMCommunicate request_size=4 [15:16:00]MH_SAM_APDU [15:16:00]CAPDU: 80 11 00 00 [15:16:00]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:00]Read from MH i2c: E2 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: E2 17 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: E2 17 00 BE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [15:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:16:00]wFMCommunicate OK [15:16:00]requested_item fd.num is exist - process it [15:16:00]SAM_PROTO_GetFieldsCounters [15:16:00]wFMCommunicate request_size=4 [15:16:00]MH_SAM_APDU [15:16:00]CAPDU: 80 13 00 00 [15:16:00]Write to MH i2c: E2 08 00 BF 33 80 13 00 00 00 00 00 00 6E [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 62 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 62 00 BF 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 99 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 99 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:01]wFMCommunicate OK [15:16:01]SAM_PROTO_GetFieldsCounters done [15:16:01]requested_item shift.num is exist - process it [15:16:01]requested_item shift.opened is exist - process it [15:16:01]req_shift_opened [15:16:01]FM_GetShiftState [15:16:01]SAM_PROTO_GetShiftState [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 13 01 00 [15:16:01]Write to MH i2c: E2 08 00 C0 33 80 13 01 00 00 00 00 00 70 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 0E 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 0E 00 C0 33 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B5 [15:16:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:16:01]wFMCommunicate OK [15:16:01]SAM_PROTO_GetShiftState done [15:16:01]FM_GetShiftState done [15:16:01]req_shift_opened done [15:16:01]requested_item shift.open_date is exist - process it [15:16:01]req_shift_open_date [15:16:01]req_shift_open_date done [15:16:01]produce_requested_data done [15:16:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73881,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:16:01]process_action_free close_receipt [15:16:01]json_value_free [15:16:01]json_value_free done [15:16:01]process_json_proto returns [15:16:01]Send response to host [15:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73881,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:16:01]free response buf [15:16:01]execute_script done [15:16:01]execute_script returns [15:16:01]free content buf [15:16:01]Sock 8.Close socket [15:16:01]Sock 8.Thread stoped [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]accept exits with 9 [15:16:49]New connection [15:16:49]New thread 3067575652 created [15:16:49]Thread 3067432292 joined [15:16:49]Waiting for new connection... [15:16:49] Sock 9.Parse request [15:16:49]Sock 9.Check first char [15:16:49]Sock 9.First char is OK [15:16:49]request: POST /json_proto HTTP/1.0 [15:16:49]Method: POST [15:16:49]URL: /json_proto [15:16:49]Method is POST - this is cgi request [15:16:49]url: /json_proto [15:16:49]query_string will be loaded in cgi processing [15:16:49]execute_cgi json_proto POST (null) [15:16:49]execute_cgi path=json_proto method=POST [15:16:49]POST find Content-Length [15:16:49]Host: 172.17.44.196:8080 [15:16:49]Content-Length: 680 [15:16:49]Content-Type: application/json [15:16:49] [15:16:49]POST finish read [15:16:49]Found Content-Length = 680 [15:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:49]execute_script... [15:16: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)1963084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:49]POST & json_proto [15:16:49]process_json_proto [15:16:49]json parsed OK: [15:16:49]protocol is kg_v1.0 [15:16:49]action value=close_receipt [15:16:49]process_action close_receipt [15:16:49]cmd_close_receipt [15:16:49]MH_GetDate [15:16:49]Write to MH i2c: F0 00 00 C1 33 E3 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: F0 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: F0 09 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: F0 09 00 C1 33 00 E3 1E 15 67 E7 19 F8 65 C6 [15:16:49]GetLastDocTimeStamp 1729437359 [15:16:49]current date 1729437411 [15:16:49]FM_GetShiftState [15:16:49]SAM_PROTO_GetShiftState [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 13 01 00 [15:16:49]Write to MH i2c: E2 08 00 C2 33 80 13 01 00 00 00 00 00 72 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 0E 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 0E 00 C2 33 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [15:16:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:16:49]wFMCommunicate OK [15:16:49]SAM_PROTO_GetShiftState done [15:16:49]FM_GetShiftState done [15:16:49]opened in 1729384303 [15:16:49]opened+sec_in_day 1729470703 [15:16:49]quantity*price = 130073 [15:16:49]sum+1 = 130074 [15:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 208 20.10.2024 15:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73882 ФПД: 102240486705422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151651&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73882&fm=102240486705422&tin=02508201610067®Number=0000000000161154&sum=130000 [15:16:50]StoreToDocumentArchive [15:16:50]shift 170 fd 73882 [15:16:50]save to /storage/0170/doc_00073882 [15:16:50]save last doc name /storage/0170/doc_00073882 to /storage/kkm_last_doc_name [15:16:50]save OK [15:16:50]Clear old archive folders... [15:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:50]tlvbuf is B6E407B0 [15:16:50]SAM_PROTO_ClearQueue [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 09 00 00 [15:16:50]Write to MH i2c: E2 08 00 CF 33 80 09 00 00 00 00 00 00 74 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]SAM_PROTO_ClearQueue done [15:16:50]KKMCreateOFDPacket [15:16:50]OFDProtocolAddRootSTLVToBuf [15:16:50]FM_MakeSignedData [15:16:50]FM_MakeSignedData [15:16:50]SAM_PROTO_SignData [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 01 02 [15:16:50]Write to MH i2c: E2 08 00 D0 33 80 0D 01 02 00 00 00 00 7C [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]wFMCommunicate request_size=255 [15:16:50]MH_SAM_APDU [15:16:50]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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 20 01 00 35 04 06 00 5C FC B7 E4 [15:16:50]Write to MH i2c: E2 02 01 D1 33 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 20 01 00 35 04 06 00 5C FC B7 E4 00 00 9D [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]wFMCommunicate request_size=7 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 02 02 02 49 0E [15:16:50]Write to MH i2c: E2 0A 00 D2 33 80 0D 02 02 02 00 49 0E 00 00 DA [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 03 00 D2 33 00 90 00 79 [15:16:50]RAPDU: 90 00 [15:16:50]wFMCommunicate OK [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 0D 03 02 [15:16:50]Write to MH i2c: E2 08 00 D3 33 80 0D 03 02 00 00 00 00 81 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:51]Read from MH i2c: E2 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 0B 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 0B 00 D3 33 00 3E C9 E6 E9 A1 94 66 91 90 00 84 [15:16:51]RAPDU: 3E C9 E6 E9 A1 94 66 91 90 00 [15:16:51]wFMCommunicate OK [15:16:51]SAM_PROTO_SignData done [15:16:51]FM_MakeSignedData done [15:16:51]CreateOFDProtocolMessage [15:16:51]wFMCommunicate request_size=4 [15:16:51]MH_SAM_APDU [15:16:51]CAPDU: 80 11 00 00 [15:16:51]Write to MH i2c: E2 08 00 D4 33 80 11 00 00 00 00 00 00 81 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:51]Read from MH i2c: E2 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 17 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: E2 17 00 D4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [15:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:16:51]wFMCommunicate OK [15:16:51]CreateOFDProtocolMessage done [15:16:51]OFDSenderStorePacket 73882 [15:16:51]StoreOFDPacket docnum=73882 [15:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 AA FE 04 01 0B A6 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 20 01 00 35 04 06 00 5C FC B7 E4 49 0E 3E C9 E6 E9 A1 94 66 91 [15:16:51]CheckFolder [15:16:51]dirname=/storage/ofd_packets [15:16:51]CheckFolder done [15:16:51]ProducePacketName [15:16:51]name=ofd_packets/00073882 [15:16:51]NVStorageSaveData ofd_packets/00073882 [15:16:51]File name is /storage/ofd_packets/00073882 [15:16:51]Write 298 bytes [15:16:51]NVStorageSaveData done [15:16:51]OFDSenderStorePacket done [15:16:51]KKMCreateOFDPacket done [15:16:51]NVStorageSaveData kkm_last_timestamp [15:16:51]File name is /storage/kkm_last_timestamp [15:16:51]Write 4 bytes [15:16:51]NVStorageSaveData done [15:16:51]ExternCall_PrintAddStr [15:16:51]wPrintStart [15:16:51]Write to MH i2c: 01 00 00 D5 33 08 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 FF 0F 1D [15:16:51]RasterBufferAndPrint [15:16:51]line Счет N : (1)1963084 [15:16:51]line ИНН: 02508201610067 [15:16:51]line Контрольно-Кассовый Чек [15:16:51]line ПРОДАЖА [15:16:51]line ТРК (МРК, ГНК) : 21 [15:16:51]line Товар: 2710194210 [15:16:51]line ДТ-К-5 [15:16:51]line 17.070 * 76.20 [15:16:51]line = 1300.73 [15:16:51]line НДС 12% НСП 1% [15:16:51]line > о реализуемом товаре [15:16:51]line ОКРУГЛЕНИЕ: -0.73 [15:16:51]line ИТОГО: 1300.00 [15:16:51]line Внесено: 1300.00 [15:16:51]line СДАЧА: 0.00 [15:16:51]line НСП 1% : 11.51 [15:16:51]line НДС 12% : 138.13 [15:16:51]line Наличными: 1300.00 [15:16:51]line Безнал.: 0.00 [15:16:51]line Место: АЗС № 133 "Партнер Нефть" [15:16:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:16:51]line СНО: Общий режим [15:16:51]line Чек 208 20.10.2024 15:16 [15:16:51]line Смена: 170 ФФД: 1.0 [15:16:51]line ЗНМ: 0300000020 [15:16:51]line РНМ: 0000000000161154 [15:16:51]line Версия ККМ: v1.0 [15:16:51]line ФМ: 0000000000963323 [15:16:51]line ФД: 73882 [15:16:51]line ФПД: 102240486705422 [15:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151651&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73882&fm=102240486705422&tin=02508201610067®Number=0000000000161154&sum=130000 [15:16:51]OFD Sender: Processing packet 73882 [packets to send 15, broken 14] [15:16:51]ProducePacketName [15:16:51]name=ofd_packets/00073882 [15:16:51]OFD Sender: To server: pG, [15:16:51]CommunicateWithHost lk.salyk.kg:30040 [15:16:51]ConnectInit lk.salyk.kg [15:16:51]written 0, free lines is 4095 [15:16:51]Connected sock=8 [15:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 AA FE 04 01 0B A6 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 1E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 20 01 00 35 04 06 00 5C FC B7 E4 49 0E 3E C9 E6 E9 A1 94 66 91 [15:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B5 B8 47 00 E4 86 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 39 36 33 33 32 33 10 04 04 00 9A 20 01 00 F4 03 04 00 C8 C7 14 67 B6 04 01 00 00 69 28 44 41 91 62 CF F8 [15:16:51]CommunicateWithHost err = 0 [15:16:51]CheckOFDResponse [15:16:51]1017 (14) - 77093643461234 [15:16:51]1041 (16) - 0000000000963323 [15:16:51]1040 (4) - 73882 [15:16:51]1012 (4) - 20.10.2024 09:05 [15:16:51]1206 (1) - 0 [15:16:51]OFD Sender: Remove packet 73882 [15:16:51]ProducePacketName [15:16:51]name=ofd_packets/00073882 [15:16:51]NVStorageDeleteData [15:16:51]Write to MH i2c: 01 00 00 FF 33 32 [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: 01 07 00 FF 33 00 00 00 00 00 BB 0C 00 [15:16:51]RasterBufferAndPrint [15:16:51]line [15:16:51]line [15:16:51]line [15:16:51]line [15:16:51]line [15:16:51]written 0, free lines is 3265 [15:16:51]MH_Cut [15:16:51]Write to MH i2c: D1 01 00 06 34 01 0C [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: D1 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: D1 01 00 [15:16:51]MH_I2C_Read... [15:16:51]Read from MH i2c: D1 01 00 06 34 00 0B [15:16:51]Write to MH i2c: 01 00 00 07 34 3B [15:16:51]Write i2c OK [15:16:51]MH_I2C_Read... [15:16:52]OFD Sender: No OFD packet to send [15:16:52]*** Cut start [15:16:52]*** Partial cut [15:16:52]*** CUTSNS_PIN = 1 [15:16:52]*** CUTSNS_PIN = 0 [15:16:52]*** Brake cut motor [15:16:53]Read from MH i2c: 01 [15:16:53]MH_I2C_Read... [15:16:53]*** Stop cut motor [15:16:53]*** Cut end [15:16:53]Read from MH i2c: 01 07 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: 01 07 00 07 34 00 00 00 00 00 FF 0F 50 [15:16:53]process_action close_receipt done [15:16:53]requested_data is exist [15:16:53]produce_requested_data [15:16:53]requested_item fm.sn is exist - process it [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 11 00 00 [15:16:53]Write to MH i2c: E2 08 00 08 34 80 11 00 00 00 00 00 00 B6 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 17 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 17 00 08 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [15:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:16:53]wFMCommunicate OK [15:16:53]requested_item fd.num is exist - process it [15:16:53]SAM_PROTO_GetFieldsCounters [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 13 00 00 [15:16:53]Write to MH i2c: E2 08 00 09 34 80 13 00 00 00 00 00 00 B9 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 62 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 62 00 09 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [15:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9A 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_GetFieldsCounters done [15:16:53]requested_item shift.num is exist - process it [15:16:53]requested_item shift.opened is exist - process it [15:16:53]req_shift_opened [15:16:53]FM_GetShiftState [15:16:53]SAM_PROTO_GetShiftState [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 13 01 00 [15:16:53]Write to MH i2c: E2 08 00 0A 34 80 13 01 00 00 00 00 00 BB [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 0A 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 00 [15:16:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_GetShiftState done [15:16:53]FM_GetShiftState done [15:16:53]req_shift_opened done [15:16:53]requested_item shift.open_date is exist - process it [15:16:53]req_shift_open_date [15:16:53]req_shift_open_date done [15:16:53]produce_requested_data done [15:16:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73882,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:16:53]process_action_free close_receipt [15:16:53]json_value_free [15:16:53]json_value_free done [15:16:53]process_json_proto returns [15:16:53]Send response to host [15:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73882,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:16:53]free response buf [15:16:53]execute_script done [15:16:53]execute_script returns [15:16:53]free content buf [15:16:53]Sock 9.Close socket [15:16:53]Sock 9.Thread stoped [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:30]accept exits with 10 [15:17:30]New connection [15:17:30]New thread 3067432292 created [15:17:30]Thread 3067575652 joined [15:17:30]Waiting for new connection... [15:17:30] Sock 10.Parse request [15:17:30]Sock 10.Check first char [15:17:30]Sock 10.First char is OK [15:17:30]request: POST /json_proto HTTP/1.0 [15:17:30]Method: POST [15:17:30]URL: /json_proto [15:17:30]Method is POST - this is cgi request [15:17:30]url: /json_proto [15:17:30]query_string will be loaded in cgi processing [15:17:30]execute_cgi json_proto POST (null) [15:17:30]execute_cgi path=json_proto method=POST [15:17:30]POST find Content-Length [15:17:30]Host: 172.17.44.196:8080 [15:17:30]Content-Length: 678 [15:17:30]Content-Type: application/json [15:17:30] [15:17:30]POST finish read [15:17:30]Found Content-Length = 678 [15:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963087", "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" : 7.480, "sum" : 500.41, "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" ] } } [15:17:30]execute_script... [15:17: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 : (1)1963087", "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" : 7.480, "sum" : 500.41, "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" ] } } [15:17:30]POST & json_proto [15:17:30]process_json_proto [15:17:30]json parsed OK: [15:17:30]protocol is kg_v1.0 [15:17:30]action value=close_receipt [15:17:30]process_action close_receipt [15:17:30]cmd_close_receipt [15:17:30]MH_GetDate [15:17:30]Write to MH i2c: F0 00 00 0B 34 2E [15:17:30]Write i2c OK [15:17:30]MH_I2C_Read... [15:17:30]Read from MH i2c: F0 [15:17:30]MH_I2C_Read... [15:17:30]Read from MH i2c: F0 09 00 [15:17:30]MH_I2C_Read... [15:17:30]Read from MH i2c: F0 09 00 0B 34 00 0C 1F 15 67 E7 19 F8 65 3B [15:17:30]GetLastDocTimeStamp 1729437411 [15:17:30]current date 1729437452 [15:17:30]FM_GetShiftState [15:17:30]SAM_PROTO_GetShiftState [15:17:30]wFMCommunicate request_size=4 [15:17:30]MH_SAM_APDU [15:17:30]CAPDU: 80 13 01 00 [15:17:30]Write to MH i2c: E2 08 00 0C 34 80 13 01 00 00 00 00 00 BD [15:17:30]Write i2c OK [15:17:30]MH_I2C_Read... [15:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:30]Read from MH i2c: E2 [15:17:30]MH_I2C_Read... [15:17:30]Read from MH i2c: E2 0E 00 [15:17:30]MH_I2C_Read... [15:17:30]Read from MH i2c: E2 0E 00 0C 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 02 [15:17:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:17:30]wFMCommunicate OK [15:17:30]SAM_PROTO_GetShiftState done [15:17:30]FM_GetShiftState done [15:17:30]opened in 1729384303 [15:17:30]opened+sec_in_day 1729470703 [15:17:30]quantity*price = 50041 [15:17:30]sum+1 = 50042 [15:17:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 209 20.10.2024 15:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73883 ФПД: 179136694889632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151733&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73883&fm=179136694889632&tin=02508201610067®Number=0000000000161154&sum=50000 [15:17:31]StoreToDocumentArchive [15:17:31]shift 170 fd 73883 [15:17:31]save to /storage/0170/doc_00073883 [15:17:31]save last doc name /storage/0170/doc_00073883 to /storage/kkm_last_doc_name [15:17:31]save OK [15:17:31]Clear old archive folders... [15:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:31]tlvbuf is 0039DA20 [15:17:31]SAM_PROTO_ClearQueue [15:17:31]wFMCommunicate request_size=4 [15:17:31]MH_SAM_APDU [15:17:31]CAPDU: 80 09 00 00 [15:17:31]Write to MH i2c: E2 08 00 19 34 80 09 00 00 00 00 00 00 BF [15:17:31]Write i2c OK [15:17:31]MH_I2C_Read... [15:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:31]Read from MH i2c: E2 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: E2 03 00 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: E2 03 00 19 34 00 90 00 C1 [15:17:31]RAPDU: 90 00 [15:17:31]wFMCommunicate OK [15:17:31]SAM_PROTO_ClearQueue done [15:17:31]KKMCreateOFDPacket [15:17:31]OFDProtocolAddRootSTLVToBuf [15:17:31]FM_MakeSignedData [15:17:31]FM_MakeSignedData [15:17:31]SAM_PROTO_SignData [15:17:31]wFMCommunicate request_size=4 [15:17:31]MH_SAM_APDU [15:17:31]CAPDU: 80 0D 01 02 [15:17:31]Write to MH i2c: E2 08 00 1A 34 80 0D 01 02 00 00 00 00 C7 [15:17:31]Write i2c OK [15:17:31]MH_I2C_Read... [15:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:31]Read from MH i2c: E2 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: E2 03 00 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: E2 03 00 1A 34 00 90 00 C2 [15:17:31]RAPDU: 90 00 [15:17:31]wFMCommunicate OK [15:17:31]wFMCommunicate request_size=255 [15:17:31]MH_SAM_APDU [15:17:31]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D1 00 00 00 F4 03 04 00 0D 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 20 01 00 35 04 06 00 A2 [15:17:31]Write to MH i2c: E2 02 01 1B 34 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D1 00 00 00 F4 03 04 00 0D 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 20 01 00 35 04 06 00 A2 00 00 CA [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 1B 34 00 90 00 C3 [15:17:32]RAPDU: 90 00 [15:17:32]wFMCommunicate OK [15:17:32]wFMCommunicate request_size=10 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 0D 02 02 05 EC 83 10 AC A0 [15:17:32]Write to MH i2c: E2 0D 00 1C 34 80 0D 02 02 05 00 EC 83 10 AC A0 00 00 9F [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]OFD Sender: No OFD packet to send [15:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 1C 34 00 90 00 C4 [15:17:32]RAPDU: 90 00 [15:17:32]wFMCommunicate OK [15:17:32]wFMCommunicate request_size=4 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 0D 03 02 [15:17:32]Write to MH i2c: E2 08 00 1D 34 80 0D 03 02 00 00 00 00 CC [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 0B 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 0B 00 1D 34 00 30 37 1B 10 B9 0F B8 E5 90 00 C4 [15:17:32]RAPDU: 30 37 1B 10 B9 0F B8 E5 90 00 [15:17:32]wFMCommunicate OK [15:17:32]SAM_PROTO_SignData done [15:17:32]FM_MakeSignedData done [15:17:32]CreateOFDProtocolMessage [15:17:32]wFMCommunicate request_size=4 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 11 00 00 [15:17:32]Write to MH i2c: E2 08 00 1E 34 80 11 00 00 00 00 00 00 CC [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 17 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 17 00 1E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [15:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:17:32]wFMCommunicate OK [15:17:32]CreateOFDProtocolMessage done [15:17:32]OFDSenderStorePacket 73883 [15:17:32]StoreOFDPacket docnum=73883 [15:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AD 4E 07 01 51 41 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D1 00 00 00 F4 03 04 00 0D 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 20 01 00 35 04 06 00 A2 EC 83 10 AC A0 30 37 1B 10 B9 0F B8 E5 [15:17:32]CheckFolder [15:17:32]dirname=/storage/ofd_packets [15:17:32]CheckFolder done [15:17:32]ProducePacketName [15:17:32]name=ofd_packets/00073883 [15:17:32]NVStorageSaveData ofd_packets/00073883 [15:17:32]File name is /storage/ofd_packets/00073883 [15:17:32]Write 301 bytes [15:17:32]NVStorageSaveData done [15:17:32]OFDSenderStorePacket done [15:17:32]KKMCreateOFDPacket done [15:17:32]NVStorageSaveData kkm_last_timestamp [15:17:32]File name is /storage/kkm_last_timestamp [15:17:32]Write 4 bytes [15:17:32]NVStorageSaveData done [15:17:32]ExternCall_PrintAddStr [15:17:32]wPrintStart [15:17:32]Write to MH i2c: 01 00 00 1F 34 53 [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: 01 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: 01 07 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: 01 07 00 1F 34 00 00 00 00 00 FF 0F 68 [15:17:32]RasterBufferAndPrint [15:17:32]line Счет N : (1)1963087 [15:17:32]line ИНН: 02508201610067 [15:17:32]line Контрольно-Кассовый Чек [15:17:32]line ПРОДАЖА [15:17:32]line ТРК (МРК, ГНК) : 53 [15:17:32]line Товар: 2710124130 [15:17:32]line Аи-92-К-5 [15:17:32]line 7.480 * 66.90 [15:17:32]line = 500.41 [15:17:32]line НДС 12% НСП 1% [15:17:32]line > о реализуемом товаре [15:17:32]line ОКРУГЛЕНИЕ: -0.41 [15:17:32]line ИТОГО: 500.00 [15:17:32]line Внесено: 500.00 [15:17:32]line СДАЧА: 0.00 [15:17:32]line НСП 1% : 4.43 [15:17:32]line НДС 12% : 53.14 [15:17:32]line Наличными: 500.00 [15:17:32]line Безнал.: 0.00 [15:17:32]line Место: АЗС № 133 "Партнер Нефть" [15:17:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:17:32]line СНО: Общий режим [15:17:32]line Чек 209 20.10.2024 15:17 [15:17:32]line Смена: 170 ФФД: 1.0 [15:17:32]line ЗНМ: 0300000020 [15:17:32]line РНМ: 0000000000161154 [15:17:32]line Версия ККМ: v1.0 [15:17:32]line ФМ: 0000000000963323 [15:17:32]line ФД: 73883 [15:17:32]line ФПД: 179136694889632 [15:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151733&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73883&fm=179136694889632&tin=02508201610067®Number=0000000000161154&sum=50000 [15:17:32]OFD Sender: Processing packet 73883 [packets to send 15, broken 14] [15:17:32]ProducePacketName [15:17:32]name=ofd_packets/00073883 [15:17:32]OFD Sender: To server: pG, [15:17:32]CommunicateWithHost lk.salyk.kg:30040 [15:17:32]ConnectInit lk.salyk.kg [15:17:32]written 0, free lines is 4095 [15:17:32]Connected sock=9 [15:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AD 4E 07 01 51 41 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D1 00 00 00 F4 03 04 00 0D 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 20 01 00 35 04 06 00 A2 EC 83 10 AC A0 30 37 1B 10 B9 0F B8 E5 [15:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BA 5F 47 00 B1 18 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 39 36 33 33 32 33 10 04 04 00 9B 20 01 00 F4 03 04 00 F1 C7 14 67 B6 04 01 00 00 D9 29 43 94 6A 48 E9 93 [15:17:33]CommunicateWithHost err = 0 [15:17:33]CheckOFDResponse [15:17:33]1017 (14) - 77093643461234 [15:17:33]1041 (16) - 0000000000963323 [15:17:33]1040 (4) - 73883 [15:17:33]1012 (4) - 20.10.2024 09:05 [15:17:33]1206 (1) - 0 [15:17:33]OFD Sender: Remove packet 73883 [15:17:33]ProducePacketName [15:17:33]name=ofd_packets/00073883 [15:17:33]NVStorageDeleteData [15:17:33]Write to MH i2c: 01 00 00 49 34 7D [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: 01 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: 01 07 00 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: 01 07 00 49 34 00 00 00 00 00 CA 0C 5A [15:17:33]RasterBufferAndPrint [15:17:33]line [15:17:33]line [15:17:33]line [15:17:33]line [15:17:33]line [15:17:33]written 0, free lines is 3279 [15:17:33]MH_Cut [15:17:33]Write to MH i2c: D1 01 00 50 34 01 56 [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: D1 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: D1 01 00 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: D1 01 00 50 34 00 55 [15:17:33]Write to MH i2c: 01 00 00 51 34 85 [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]OFD Sender: No OFD packet to send [15:17:34]*** Cut start [15:17:34]*** Partial cut [15:17:34]*** CUTSNS_PIN = 1 [15:17:34]*** CUTSNS_PIN = 0 [15:17:34]*** Brake cut motor [15:17:34]Read from MH i2c: 01 [15:17:34]MH_I2C_Read... [15:17:34]*** Stop cut motor [15:17:34]*** Cut end [15:17:34]Read from MH i2c: 01 07 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: 01 07 00 51 34 00 00 00 00 00 FF 0F 9A [15:17:34]process_action close_receipt done [15:17:34]requested_data is exist [15:17:34]produce_requested_data [15:17:34]requested_item fm.sn is exist - process it [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 11 00 00 [15:17:34]Write to MH i2c: E2 08 00 52 34 80 11 00 00 00 00 00 00 00 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 17 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 17 00 52 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4D [15:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:17:34]wFMCommunicate OK [15:17:34]requested_item fd.num is exist - process it [15:17:34]SAM_PROTO_GetFieldsCounters [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 13 00 00 [15:17:34]Write to MH i2c: E2 08 00 53 34 80 13 00 00 00 00 00 00 03 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 62 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 62 00 53 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [15:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9B 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:34]wFMCommunicate OK [15:17:34]SAM_PROTO_GetFieldsCounters done [15:17:34]requested_item shift.num is exist - process it [15:17:34]requested_item shift.opened is exist - process it [15:17:34]req_shift_opened [15:17:34]FM_GetShiftState [15:17:34]SAM_PROTO_GetShiftState [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 13 01 00 [15:17:34]Write to MH i2c: E2 08 00 54 34 80 13 01 00 00 00 00 00 05 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 0E 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 0E 00 54 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [15:17:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:17:34]wFMCommunicate OK [15:17:34]SAM_PROTO_GetShiftState done [15:17:34]FM_GetShiftState done [15:17:34]req_shift_opened done [15:17:34]requested_item shift.open_date is exist - process it [15:17:34]req_shift_open_date [15:17:34]req_shift_open_date done [15:17:34]produce_requested_data done [15:17:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73883,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:17:34]process_action_free close_receipt [15:17:34]json_value_free [15:17:34]json_value_free done [15:17:34]process_json_proto returns [15:17:34]Send response to host [15:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73883,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:17:34]free response buf [15:17:34]execute_script done [15:17:34]execute_script returns [15:17:34]free content buf [15:17:34]Sock 10.Close socket [15:17:34]Sock 10.Thread stoped [15:17:38]OFD Sender: No OFD packet to send [15:17:40]accept exits with 8 [15:17:40]New connection [15:17:40]New thread 3067575652 created [15:17:40]Thread 3067432292 joined [15:17:40]Waiting for new connection... [15:17:40] Sock 8.Parse request [15:17:40]Sock 8.Check first char [15:17:40]Sock 8.First char is OK [15:17:40]request: POST /json_proto HTTP/1.0 [15:17:40]Method: POST [15:17:40]URL: /json_proto [15:17:40]Method is POST - this is cgi request [15:17:40]url: /json_proto [15:17:40]query_string will be loaded in cgi processing [15:17:40]execute_cgi json_proto POST (null) [15:17:40]execute_cgi path=json_proto method=POST [15:17:40]POST find Content-Length [15:17:40]Host: 172.17.44.196:8080 [15:17:40]Content-Length: 678 [15:17:40]Content-Type: application/json [15:17:40] [15:17:40]POST finish read [15:17:40]Found Content-Length = 678 [15:17:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:40]execute_script... [15:17: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 : (1)1963086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:40]POST & json_proto [15:17:40]process_json_proto [15:17:40]json parsed OK: [15:17:40]protocol is kg_v1.0 [15:17:40]action value=close_receipt [15:17:40]process_action close_receipt [15:17:40]cmd_close_receipt [15:17:40]MH_GetDate [15:17:40]Write to MH i2c: F0 00 00 55 34 78 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: F0 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: F0 09 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: F0 09 00 55 34 00 16 1F 15 67 E7 19 F8 65 8F [15:17:40]GetLastDocTimeStamp 1729437453 [15:17:40]current date 1729437462 [15:17:40]FM_GetShiftState [15:17:40]SAM_PROTO_GetShiftState [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 13 01 00 [15:17:40]Write to MH i2c: E2 08 00 56 34 80 13 01 00 00 00 00 00 07 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 0E 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 0E 00 56 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4C [15:17:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:17:40]wFMCommunicate OK [15:17:40]SAM_PROTO_GetShiftState done [15:17:40]FM_GetShiftState done [15:17:40]opened in 1729384303 [15:17:40]opened+sec_in_day 1729470703 [15:17:40]quantity*price = 40068 [15:17:40]sum+1 = 40069 [15:17:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 210 20.10.2024 15:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73884 ФПД: 193281992410215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151742&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73884&fm=193281992410215&tin=02508201610067®Number=0000000000161154&sum=40000 [15:17:41]StoreToDocumentArchive [15:17:41]shift 170 fd 73884 [15:17:41]save to /storage/0170/doc_00073884 [15:17:41]save last doc name /storage/0170/doc_00073884 to /storage/kkm_last_doc_name [15:17:41]save OK [15:17:41]Clear old archive folders... [15:17:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:41]tlvbuf is B6F403E0 [15:17:41]SAM_PROTO_ClearQueue [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 09 00 00 [15:17:41]Write to MH i2c: E2 08 00 63 34 80 09 00 00 00 00 00 00 09 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 03 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 03 00 63 34 00 90 00 0B [15:17:41]RAPDU: 90 00 [15:17:41]wFMCommunicate OK [15:17:41]SAM_PROTO_ClearQueue done [15:17:41]KKMCreateOFDPacket [15:17:41]OFDProtocolAddRootSTLVToBuf [15:17:41]FM_MakeSignedData [15:17:41]FM_MakeSignedData [15:17:41]SAM_PROTO_SignData [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 0D 01 02 [15:17:41]Write to MH i2c: E2 08 00 64 34 80 0D 01 02 00 00 00 00 11 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 03 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 03 00 64 34 00 90 00 0C [15:17:41]RAPDU: 90 00 [15:17:41]wFMCommunicate OK [15:17:41]wFMCommunicate request_size=255 [15:17:41]MH_SAM_APDU [15:17:41]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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 16 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 20 01 00 35 04 06 00 AF [15:17:41]Write to MH i2c: E2 02 01 65 34 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 16 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 20 01 00 35 04 06 00 AF 00 00 DB [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 03 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 03 00 65 34 00 90 00 0D [15:17:41]RAPDU: 90 00 [15:17:41]wFMCommunicate OK [15:17:41]wFMCommunicate request_size=10 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 0D 02 02 05 C9 F8 7F C4 67 [15:17:41]Write to MH i2c: E2 0D 00 66 34 80 0D 02 02 05 00 C9 F8 7F C4 67 00 00 89 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 03 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 03 00 66 34 00 90 00 0E [15:17:42]RAPDU: 90 00 [15:17:42]wFMCommunicate OK [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 0D 03 02 [15:17:42]Write to MH i2c: E2 08 00 67 34 80 0D 03 02 00 00 00 00 16 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0B 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0B 00 67 34 00 8B 41 A4 F8 9D 27 5F C3 90 00 65 [15:17:42]RAPDU: 8B 41 A4 F8 9D 27 5F C3 90 00 [15:17:42]wFMCommunicate OK [15:17:42]SAM_PROTO_SignData done [15:17:42]FM_MakeSignedData done [15:17:42]CreateOFDProtocolMessage [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 11 00 00 [15:17:42]Write to MH i2c: E2 08 00 68 34 80 11 00 00 00 00 00 00 16 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 17 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 17 00 68 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 63 [15:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:17:42]wFMCommunicate OK [15:17:42]CreateOFDProtocolMessage done [15:17:42]OFDSenderStorePacket 73884 [15:17:42]StoreOFDPacket docnum=73884 [15:17:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 90 F8 07 01 4C CB 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 16 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 20 01 00 35 04 06 00 AF C9 F8 7F C4 67 8B 41 A4 F8 9D 27 5F C3 [15:17:42]CheckFolder [15:17:42]dirname=/storage/ofd_packets [15:17:42]CheckFolder done [15:17:42]ProducePacketName [15:17:42]name=ofd_packets/00073884 [15:17:42]NVStorageSaveData ofd_packets/00073884 [15:17:42]File name is /storage/ofd_packets/00073884 [15:17:42]Write 301 bytes [15:17:42]NVStorageSaveData done [15:17:42]OFDSenderStorePacket done [15:17:42]KKMCreateOFDPacket done [15:17:42]NVStorageSaveData kkm_last_timestamp [15:17:42]File name is /storage/kkm_last_timestamp [15:17:42]Write 4 bytes [15:17:42]NVStorageSaveData done [15:17:42]ExternCall_PrintAddStr [15:17:42]wPrintStart [15:17:42]Write to MH i2c: 01 00 00 69 34 9D [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: 01 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: 01 07 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: 01 07 00 69 34 00 00 00 00 00 FF 0F B2 [15:17:42]RasterBufferAndPrint [15:17:42]line Счет N : (1)1963086 [15:17:42]line ИНН: 02508201610067 [15:17:42]line Контрольно-Кассовый Чек [15:17:42]line ПРОДАЖА [15:17:42]line ТРК (МРК, ГНК) : 64 [15:17:42]line Товар: 2710124500 [15:17:42]line Аи-95-К-5 [15:17:42]line 5.400 * 74.20 [15:17:42]line = 400.68 [15:17:42]line НДС 12% НСП 1% [15:17:42]line > о реализуемом товаре [15:17:42]line ОКРУГЛЕНИЕ: -0.68 [15:17:42]line ИТОГО: 400.00 [15:17:42]line Внесено: 400.00 [15:17:42]line СДАЧА: 0.00 [15:17:42]line НСП 1% : 3.55 [15:17:42]line НДС 12% : 42.55 [15:17:42]line Наличными: 400.00 [15:17:42]line Безнал.: 0.00 [15:17:42]line Место: АЗС № 133 "Партнер Нефть" [15:17:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:17:42]line СНО: Общий режим [15:17:42]line Чек 210 20.10.2024 15:17 [15:17:42]line Смена: 170 ФФД: 1.0 [15:17:42]line ЗНМ: 0300000020 [15:17:42]line РНМ: 0000000000161154 [15:17:42]line Версия ККМ: v1.0 [15:17:42]line ФМ: 0000000000963323 [15:17:42]line ФД: 73884 [15:17:42]line ФПД: 193281992410215 [15:17:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151742&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73884&fm=193281992410215&tin=02508201610067®Number=0000000000161154&sum=40000 [15:17:42]written 0, free lines is 4095 [15:17:42]OFD Sender: Processing packet 73884 [packets to send 15, broken 14] [15:17:42]ProducePacketName [15:17:42]name=ofd_packets/00073884 [15:17:42]OFD Sender: To server: pG, [15:17:42]CommunicateWithHost lk.salyk.kg:30040 [15:17:42]ConnectInit lk.salyk.kg [15:17:42]Connected sock=11 [15:17:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 90 F8 07 01 4C CB 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 16 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 20 01 00 35 04 06 00 AF C9 F8 7F C4 67 8B 41 A4 F8 9D 27 5F C3 [15:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D7 F8 47 00 48 82 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 39 36 33 33 32 33 10 04 04 00 9C 20 01 00 F4 03 04 00 FA C7 14 67 B6 04 01 00 00 40 71 F2 1E 0E F4 7F 3F [15:17:42]CommunicateWithHost err = 0 [15:17:42]CheckOFDResponse [15:17:42]1017 (14) - 77093643461234 [15:17:42]1041 (16) - 0000000000963323 [15:17:42]1040 (4) - 73884 [15:17:42]1012 (4) - 20.10.2024 09:06 [15:17:42]1206 (1) - 0 [15:17:42]OFD Sender: Remove packet 73884 [15:17:42]ProducePacketName [15:17:42]name=ofd_packets/00073884 [15:17:42]NVStorageDeleteData [15:17:42]Write to MH i2c: 01 00 00 93 34 C7 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: 01 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: 01 07 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: 01 07 00 93 34 00 00 00 00 00 C4 0C 9E [15:17:42]RasterBufferAndPrint [15:17:42]line [15:17:42]line [15:17:42]line [15:17:42]line [15:17:42]line [15:17:42]written 0, free lines is 3272 [15:17:42]MH_Cut [15:17:42]Write to MH i2c: D1 01 00 9A 34 01 A0 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: D1 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: D1 01 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: D1 01 00 9A 34 00 9F [15:17:42]Write to MH i2c: 01 00 00 9B 34 CF [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:43]OFD Sender: No OFD packet to send [15:17:43]*** Cut start [15:17:43]*** Partial cut [15:17:43]*** CUTSNS_PIN = 1 [15:17:43]*** CUTSNS_PIN = 0 [15:17:43]*** Brake cut motor [15:17:44]Read from MH i2c: 01 [15:17:44]MH_I2C_Read... [15:17:44]*** Stop cut motor [15:17:44]*** Cut end [15:17:44]Read from MH i2c: 01 07 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 9B 34 00 00 00 00 00 FF 0F E4 [15:17:44]process_action close_receipt done [15:17:44]requested_data is exist [15:17:44]produce_requested_data [15:17:44]requested_item fm.sn is exist - process it [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 11 00 00 [15:17:44]Write to MH i2c: E2 08 00 9C 34 80 11 00 00 00 00 00 00 4A [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 17 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 17 00 9C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 97 [15:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:17:44]wFMCommunicate OK [15:17:44]requested_item fd.num is exist - process it [15:17:44]SAM_PROTO_GetFieldsCounters [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 13 00 00 [15:17:44]Write to MH i2c: E2 08 00 9D 34 80 13 00 00 00 00 00 00 4D [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 62 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 62 00 9D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:17:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9C 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:44]wFMCommunicate OK [15:17:44]SAM_PROTO_GetFieldsCounters done [15:17:44]requested_item shift.num is exist - process it [15:17:44]requested_item shift.opened is exist - process it [15:17:44]req_shift_opened [15:17:44]FM_GetShiftState [15:17:44]SAM_PROTO_GetShiftState [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 13 01 00 [15:17:44]Write to MH i2c: E2 08 00 9E 34 80 13 01 00 00 00 00 00 4F [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 0E 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 0E 00 9E 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 94 [15:17:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:17:44]wFMCommunicate OK [15:17:44]SAM_PROTO_GetShiftState done [15:17:44]FM_GetShiftState done [15:17:44]req_shift_opened done [15:17:44]requested_item shift.open_date is exist - process it [15:17:44]req_shift_open_date [15:17:44]req_shift_open_date done [15:17:44]produce_requested_data done [15:17:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73884,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:17:44]process_action_free close_receipt [15:17:44]json_value_free [15:17:44]json_value_free done [15:17:44]process_json_proto returns [15:17:44]Send response to host [15:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73884,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:17:44]free response buf [15:17:44]execute_script done [15:17:44]execute_script returns [15:17:44]free content buf [15:17:44]Sock 8.Close socket [15:17:44]Sock 8.Thread stoped [15:17:46]accept exits with 9 [15:17:46]New connection [15:17:46]New thread 3067432292 created [15:17:46]Thread 3067575652 joined [15:17:46]Waiting for new connection... [15:17:46] Sock 9.Parse request [15:17:46]Sock 9.Check first char [15:17:46]Sock 9.First char is OK [15:17:46]request: POST /json_proto HTTP/1.0 [15:17:46]Method: POST [15:17:46]URL: /json_proto [15:17:46]Method is POST - this is cgi request [15:17:46]url: /json_proto [15:17:46]query_string will be loaded in cgi processing [15:17:46]execute_cgi json_proto POST (null) [15:17:46]execute_cgi path=json_proto method=POST [15:17:46]POST find Content-Length [15:17:46]Host: 172.17.44.196:8080 [15:17:46]Content-Length: 678 [15:17:46]Content-Type: application/json [15:17:46] [15:17:46]POST finish read [15:17:46]Found Content-Length = 678 [15:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963085", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:46]execute_script... [15:17: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)1963085", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:46]POST & json_proto [15:17:46]process_json_proto [15:17:46]json parsed OK: [15:17:46]protocol is kg_v1.0 [15:17:46]action value=close_receipt [15:17:46]process_action close_receipt [15:17:46]cmd_close_receipt [15:17:46]MH_GetDate [15:17:46]Write to MH i2c: F0 00 00 9F 34 C2 [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: F0 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: F0 09 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: F0 09 00 9F 34 00 1C 1F 15 67 E7 19 F8 65 DF [15:17:46]GetLastDocTimeStamp 1729437462 [15:17:46]current date 1729437468 [15:17:46]FM_GetShiftState [15:17:46]SAM_PROTO_GetShiftState [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 13 01 00 [15:17:46]Write to MH i2c: E2 08 00 A0 34 80 13 01 00 00 00 00 00 51 [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 A0 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 96 [15:17:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:17:46]wFMCommunicate OK [15:17:46]SAM_PROTO_GetShiftState done [15:17:46]FM_GetShiftState done [15:17:46]opened in 1729384303 [15:17:46]opened+sec_in_day 1729470703 [15:17:46]quantity*price = 40006 [15:17:46]sum+1 = 40007 [15:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 211 20.10.2024 15:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73885 ФПД: 1532588857362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151748&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73885&fm=1532588857362&tin=02508201610067®Number=0000000000161154&sum=40000 [15:17:47]StoreToDocumentArchive [15:17:47]shift 170 fd 73885 [15:17:47]save to /storage/0170/doc_00073885 [15:17:47]save last doc name /storage/0170/doc_00073885 to /storage/kkm_last_doc_name [15:17:47]save OK [15:17:47]Clear old archive folders... [15:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:47]tlvbuf is 003E2490 [15:17:47]SAM_PROTO_ClearQueue [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 09 00 00 [15:17:47]Write to MH i2c: E2 08 00 AD 34 80 09 00 00 00 00 00 00 53 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 AD 34 00 90 00 55 [15:17:47]RAPDU: 90 00 [15:17:47]wFMCommunicate OK [15:17:47]SAM_PROTO_ClearQueue done [15:17:47]KKMCreateOFDPacket [15:17:47]OFDProtocolAddRootSTLVToBuf [15:17:47]FM_MakeSignedData [15:17:47]FM_MakeSignedData [15:17:47]SAM_PROTO_SignData [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 0D 01 02 [15:17:47]Write to MH i2c: E2 08 00 AE 34 80 0D 01 02 00 00 00 00 5B [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 AE 34 00 90 00 56 [15:17:47]RAPDU: 90 00 [15:17:47]wFMCommunicate OK [15:17:47]wFMCommunicate request_size=255 [15:17:47]MH_SAM_APDU [15:17:47]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 1C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 20 01 00 35 04 06 00 01 [15:17:47]Write to MH i2c: E2 02 01 AF 34 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 1C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 20 01 00 35 04 06 00 01 00 00 9F [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 AF 34 00 90 00 57 [15:17:47]RAPDU: 90 00 [15:17:47]wFMCommunicate OK [15:17:47]wFMCommunicate request_size=10 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 0D 02 02 05 64 D5 6A 18 12 [15:17:47]Write to MH i2c: E2 0D 00 B0 34 80 0D 02 02 05 00 64 D5 6A 18 12 00 00 35 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 03 00 B0 34 00 90 00 58 [15:17:47]RAPDU: 90 00 [15:17:47]wFMCommunicate OK [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 0D 03 02 [15:17:47]Write to MH i2c: E2 08 00 B1 34 80 0D 03 02 00 00 00 00 60 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 0B 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 0B 00 B1 34 00 90 0E D0 B0 7D 30 B6 91 90 00 73 [15:17:47]RAPDU: 90 0E D0 B0 7D 30 B6 91 90 00 [15:17:47]wFMCommunicate OK [15:17:47]SAM_PROTO_SignData done [15:17:47]FM_MakeSignedData done [15:17:47]CreateOFDProtocolMessage [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 11 00 00 [15:17:47]Write to MH i2c: E2 08 00 B2 34 80 11 00 00 00 00 00 00 60 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 17 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 17 00 B2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AD [15:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:17:47]wFMCommunicate OK [15:17:47]CreateOFDProtocolMessage done [15:17:47]OFDSenderStorePacket 73885 [15:17:47]StoreOFDPacket docnum=73885 [15:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CD 69 07 01 6F 16 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 1C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 20 01 00 35 04 06 00 01 64 D5 6A 18 12 90 0E D0 B0 7D 30 B6 91 [15:17:47]CheckFolder [15:17:47]dirname=/storage/ofd_packets [15:17:47]CheckFolder done [15:17:47]ProducePacketName [15:17:47]name=ofd_packets/00073885 [15:17:47]NVStorageSaveData ofd_packets/00073885 [15:17:47]File name is /storage/ofd_packets/00073885 [15:17:47]Write 301 bytes [15:17:47]NVStorageSaveData done [15:17:47]OFDSenderStorePacket done [15:17:47]KKMCreateOFDPacket done [15:17:47]NVStorageSaveData kkm_last_timestamp [15:17:47]File name is /storage/kkm_last_timestamp [15:17:47]Write 4 bytes [15:17:47]NVStorageSaveData done [15:17:47]ExternCall_PrintAddStr [15:17:47]wPrintStart [15:17:47]Write to MH i2c: 01 00 00 B3 34 E7 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: 01 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: 01 07 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: 01 07 00 B3 34 00 00 00 00 00 FF 0F FC [15:17:47]RasterBufferAndPrint [15:17:47]line Счет N : (1)1963085 [15:17:47]line ИНН: 02508201610067 [15:17:47]line Контрольно-Кассовый Чек [15:17:47]line ПРОДАЖА [15:17:47]line ТРК (МРК, ГНК) : 33 [15:17:47]line Товар: 2710124130 [15:17:47]line Аи-92-К-5 [15:17:47]line 5.980 * 66.90 [15:17:47]line = 400.06 [15:17:47]line НДС 12% НСП 1% [15:17:47]line > о реализуемом товаре [15:17:48]line ОКРУГЛЕНИЕ: -0.06 [15:17:48]line ИТОГО: 400.00 [15:17:48]line Внесено: 400.00 [15:17:48]line СДАЧА: 0.00 [15:17:48]line НСП 1% : 3.54 [15:17:48]line НДС 12% : 42.48 [15:17:48]line Наличными: 400.00 [15:17:48]line Безнал.: 0.00 [15:17:48]line Место: АЗС № 133 "Партнер Нефть" [15:17:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:17:48]line СНО: Общий режим [15:17:48]line Чек 211 20.10.2024 15:17 [15:17:48]line Смена: 170 ФФД: 1.0 [15:17:48]line ЗНМ: 0300000020 [15:17:48]line РНМ: 0000000000161154 [15:17:48]line Версия ККМ: v1.0 [15:17:48]line ФМ: 0000000000963323 [15:17:48]line ФД: 73885 [15:17:48]line ФПД: 1532588857362 [15:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151748&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73885&fm=1532588857362&tin=02508201610067®Number=0000000000161154&sum=40000 [15:17:48]OFD Sender: Processing packet 73885 [packets to send 15, broken 14] [15:17:48]ProducePacketName [15:17:48]name=ofd_packets/00073885 [15:17:48]OFD Sender: To server: pG, [15:17:48]CommunicateWithHost lk.salyk.kg:30040 [15:17:48]ConnectInit lk.salyk.kg [15:17:48]written 0, free lines is 4095 [15:17:48]Connected sock=10 [15:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CD 69 07 01 6F 16 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 1C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 20 01 00 35 04 06 00 01 64 D5 6A 18 12 90 0E D0 B0 7D 30 B6 91 [15:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FD 87 47 00 08 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 39 36 33 33 32 33 10 04 04 00 9D 20 01 00 F4 03 04 00 00 C8 14 67 B6 04 01 00 00 4E 35 83 81 51 A2 0E E0 [15:17:48]CommunicateWithHost err = 0 [15:17:48]CheckOFDResponse [15:17:48]1017 (14) - 77093643461234 [15:17:48]1041 (16) - 0000000000963323 [15:17:48]1040 (4) - 73885 [15:17:48]1012 (4) - 20.10.2024 09:06 [15:17:48]1206 (1) - 0 [15:17:48]OFD Sender: Remove packet 73885 [15:17:48]ProducePacketName [15:17:48]name=ofd_packets/00073885 [15:17:48]NVStorageDeleteData [15:17:48]Write to MH i2c: 01 00 00 DD 34 11 [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 07 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: 01 07 00 DD 34 00 00 00 00 00 DC 0C 00 [15:17:48]RasterBufferAndPrint [15:17:48]line [15:17:48]line [15:17:48]line [15:17:48]line [15:17:48]line [15:17:48]written 0, free lines is 3305 [15:17:48]MH_Cut [15:17:48]Write to MH i2c: D1 01 00 E4 34 01 EA [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: D1 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: D1 01 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: D1 01 00 E4 34 00 E9 [15:17:48]Write to MH i2c: 01 00 00 E5 34 19 [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:49]OFD Sender: No OFD packet to send [15:17:49]*** Cut start [15:17:49]*** Partial cut [15:17:49]*** CUTSNS_PIN = 1 [15:17:49]*** CUTSNS_PIN = 0 [15:17:49]*** Brake cut motor [15:17:50]Read from MH i2c: 01 [15:17:50]MH_I2C_Read... [15:17:50]*** Stop cut motor [15:17:50]*** Cut end [15:17:50]Read from MH i2c: 01 07 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: 01 07 00 E5 34 00 00 00 00 00 FF 0F 2E [15:17:50]process_action close_receipt done [15:17:50]requested_data is exist [15:17:50]produce_requested_data [15:17:50]requested_item fm.sn is exist - process it [15:17:50]wFMCommunicate request_size=4 [15:17:50]MH_SAM_APDU [15:17:50]CAPDU: 80 11 00 00 [15:17:50]Write to MH i2c: E2 08 00 E6 34 80 11 00 00 00 00 00 00 94 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:50]Read from MH i2c: E2 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 17 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 17 00 E6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E1 [15:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:17:50]wFMCommunicate OK [15:17:50]requested_item fd.num is exist - process it [15:17:50]SAM_PROTO_GetFieldsCounters [15:17:50]wFMCommunicate request_size=4 [15:17:50]MH_SAM_APDU [15:17:50]CAPDU: 80 13 00 00 [15:17:50]Write to MH i2c: E2 08 00 E7 34 80 13 00 00 00 00 00 00 97 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:50]Read from MH i2c: E2 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 62 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 62 00 E7 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [15:17:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9D 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:50]wFMCommunicate OK [15:17:50]SAM_PROTO_GetFieldsCounters done [15:17:50]requested_item shift.num is exist - process it [15:17:50]requested_item shift.opened is exist - process it [15:17:50]req_shift_opened [15:17:50]FM_GetShiftState [15:17:50]SAM_PROTO_GetShiftState [15:17:50]wFMCommunicate request_size=4 [15:17:50]MH_SAM_APDU [15:17:50]CAPDU: 80 13 01 00 [15:17:50]Write to MH i2c: E2 08 00 E8 34 80 13 01 00 00 00 00 00 99 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:50]Read from MH i2c: E2 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 0E 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: E2 0E 00 E8 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DE [15:17:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:17:50]wFMCommunicate OK [15:17:50]SAM_PROTO_GetShiftState done [15:17:50]FM_GetShiftState done [15:17:50]req_shift_opened done [15:17:50]requested_item shift.open_date is exist - process it [15:17:50]req_shift_open_date [15:17:50]req_shift_open_date done [15:17:50]produce_requested_data done [15:17:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73885,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:17:50]process_action_free close_receipt [15:17:50]json_value_free [15:17:50]json_value_free done [15:17:50]process_json_proto returns [15:17:50]Send response to host [15:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73885,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:17:50]free response buf [15:17:50]execute_script done [15:17:50]execute_script returns [15:17:50]free content buf [15:17:50]Sock 9.Close socket [15:17:50]Sock 9.Thread stoped [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:02]accept exits with 8 [15:18:02]New connection [15:18:02]New thread 3067575652 created [15:18:02]Thread 3067432292 joined [15:18:02]Waiting for new connection... [15:18:02] Sock 8.Parse request [15:18:02]Sock 8.Check first char [15:18:02]Sock 8.First char is OK [15:18:02]request: POST /json_proto HTTP/1.0 [15:18:02]Method: POST [15:18:02]URL: /json_proto [15:18:02]Method is POST - this is cgi request [15:18:02]url: /json_proto [15:18:02]query_string will be loaded in cgi processing [15:18:02]execute_cgi json_proto POST (null) [15:18:02]execute_cgi path=json_proto method=POST [15:18:02]POST find Content-Length [15:18:02]Host: 172.17.44.196:8080 [15:18:02]Content-Length: 619 [15:18:02]Content-Type: application/json [15:18:02] [15:18:02]POST finish read [15:18:02]Found Content-Length = 619 [15:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272809", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [15:18:02]execute_script... [15:18: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)272809", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [15:18:02]POST & json_proto [15:18:02]process_json_proto [15:18:02]json parsed OK: [15:18:02]protocol is kg_v1.0 [15:18:02]action value=close_receipt [15:18:02]process_action close_receipt [15:18:02]cmd_close_receipt [15:18:02]MH_GetDate [15:18:02]Write to MH i2c: F0 00 00 E9 34 0C [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: F0 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: F0 09 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: F0 09 00 E9 34 00 2C 1F 15 67 E7 19 F8 65 39 [15:18:02]GetLastDocTimeStamp 1729437468 [15:18:02]current date 1729437484 [15:18:02]FM_GetShiftState [15:18:02]SAM_PROTO_GetShiftState [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 13 01 00 [15:18:02]Write to MH i2c: E2 08 00 EA 34 80 13 01 00 00 00 00 00 9B [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 0E 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 0E 00 EA 34 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E0 [15:18:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:18:02]wFMCommunicate OK [15:18:02]SAM_PROTO_GetShiftState done [15:18:02]FM_GetShiftState done [15:18:02]opened in 1729384303 [15:18:02]opened+sec_in_day 1729470703 [15:18:02]quantity*price = 28000 [15:18:02]sum+1 = 28001 [15:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 212 20.10.2024 15:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73886 ФПД: 242210761908177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151804&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73886&fm=242210761908177&tin=02508201610067®Number=0000000000161154&sum=28000 0 [15:18:03]StoreToDocumentArchive [15:18:03]shift 170 fd 73886 [15:18:03]save to /storage/0170/doc_00073886 [15:18:03]save last doc name /storage/0170/doc_00073886 to /storage/kkm_last_doc_name [15:18:03]save OK [15:18:03]Clear old archive folders... [15:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:18:03]tlvbuf is 00451650 [15:18:03]SAM_PROTO_ClearQueue [15:18:03]wFMCommunicate request_size=4 [15:18:03]MH_SAM_APDU [15:18:03]CAPDU: 80 09 00 00 [15:18:03]Write to MH i2c: E2 08 00 F7 34 80 09 00 00 00 00 00 00 9D [15:18:03]Write i2c OK [15:18:03]MH_I2C_Read... [15:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:03]Read from MH i2c: E2 [15:18:03]MH_I2C_Read... [15:18:03]Read from MH i2c: E2 03 00 [15:18:03]MH_I2C_Read... [15:18:03]Read from MH i2c: E2 03 00 F7 34 00 90 00 9F [15:18:03]RAPDU: 90 00 [15:18:03]wFMCommunicate OK [15:18:03]SAM_PROTO_ClearQueue done [15:18:03]KKMCreateOFDPacket [15:18:03]OFDProtocolAddRootSTLVToBuf [15:18:03]FM_MakeSignedData [15:18:03]FM_MakeSignedData [15:18:03]SAM_PROTO_SignData [15:18:03]wFMCommunicate request_size=4 [15:18:03]MH_SAM_APDU [15:18:03]CAPDU: 80 0D 01 02 [15:18:03]Write to MH i2c: E2 08 00 F8 34 80 0D 01 02 00 00 00 00 A5 [15:18:03]Write i2c OK [15:18:03]MH_I2C_Read... [15:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:03]Read from MH i2c: E2 [15:18:03]MH_I2C_Read... [15:18:03]Read from MH i2c: E2 03 00 [15:18:03]MH_I2C_Read... [15:18:03]Read from MH i2c: E2 03 00 F8 34 00 90 00 A0 [15:18:03]RAPDU: 90 00 [15:18:03]wFMCommunicate OK [15:18:03]wFMCommunicate request_size=255 [15:18:03]MH_SAM_APDU [15:18:03]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 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 D4 00 00 00 F4 03 04 00 2C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:18:03]Write to MH i2c: E2 02 01 F9 34 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 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 D4 00 00 00 F4 03 04 00 2C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 58 [15:18:03]Write i2c OK [15:18:03]MH_I2C_Read... [15:18:04]OFD Sender: No OFD packet to send [15:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:04]Read from MH i2c: E2 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 03 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 03 00 F9 34 00 90 00 A1 [15:18:04]RAPDU: 90 00 [15:18:04]wFMCommunicate OK [15:18:04]wFMCommunicate request_size=30 [15:18:04]MH_SAM_APDU [15:18:04]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 9E 20 01 00 35 04 06 00 DC 4A 16 6C 9F D1 [15:18:04]Write to MH i2c: E2 21 00 FA 34 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 9E 20 01 00 35 04 06 00 DC 4A 16 6C 9F D1 00 00 72 [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:04]Read from MH i2c: E2 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 03 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 03 00 FA 34 00 90 00 A2 [15:18:04]RAPDU: 90 00 [15:18:04]wFMCommunicate OK [15:18:04]wFMCommunicate request_size=4 [15:18:04]MH_SAM_APDU [15:18:04]CAPDU: 80 0D 03 02 [15:18:04]Write to MH i2c: E2 08 00 FB 34 80 0D 03 02 00 00 00 00 AA [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:04]Read from MH i2c: E2 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 0B 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 0B 00 FB 34 00 12 C9 8C F9 44 C4 CE 25 90 00 06 [15:18:04]RAPDU: 12 C9 8C F9 44 C4 CE 25 90 00 [15:18:04]wFMCommunicate OK [15:18:04]SAM_PROTO_SignData done [15:18:04]FM_MakeSignedData done [15:18:04]CreateOFDProtocolMessage [15:18:04]wFMCommunicate request_size=4 [15:18:04]MH_SAM_APDU [15:18:04]CAPDU: 80 11 00 00 [15:18:04]Write to MH i2c: E2 08 00 FC 34 80 11 00 00 00 00 00 00 AA [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:04]Read from MH i2c: E2 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 17 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: E2 17 00 FC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [15:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:18:04]wFMCommunicate OK [15:18:04]CreateOFDProtocolMessage done [15:18:04]OFDSenderStorePacket 73886 [15:18:04]StoreOFDPacket docnum=73886 [15:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 15 58 1B 01 B9 6A 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 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 D4 00 00 00 F4 03 04 00 2C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 20 01 00 35 04 06 00 DC 4A 16 6C 9F D1 12 C9 8C F9 44 C4 CE 25 [15:18:04]CheckFolder [15:18:04]dirname=/storage/ofd_packets [15:18:04]CheckFolder done [15:18:04]ProducePacketName [15:18:04]name=ofd_packets/00073886 [15:18:04]NVStorageSaveData ofd_packets/00073886 [15:18:04]File name is /storage/ofd_packets/00073886 [15:18:04]Write 321 bytes [15:18:04]NVStorageSaveData done [15:18:04]OFDSenderStorePacket done [15:18:04]KKMCreateOFDPacket done [15:18:04]NVStorageSaveData kkm_last_timestamp [15:18:04]File name is /storage/kkm_last_timestamp [15:18:04]Write 4 bytes [15:18:04]NVStorageSaveData done [15:18:04]ExternCall_PrintAddStr [15:18:04]wPrintStart [15:18:04]Write to MH i2c: 01 00 00 FD 34 31 [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: 01 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: 01 07 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: 01 07 00 FD 34 00 00 00 00 00 FF 0F 46 [15:18:04]RasterBufferAndPrint [15:18:04]line Счет N : (3)272809 [15:18:04]line ИНН: 02508201610067 [15:18:04]line Контрольно-Кассовый Чек [15:18:04]line ПРОДАЖА [15:18:04]line Товар: 47802995 [15:18:04]line Сигареты Winston XS Silver [15:18:04]line 2.000 * 140.00 [15:18:04]line = 280.00 [15:18:04]line НДС 12% НСП 1% [15:18:04]line > о реализуемом товаре [15:18:04]line ИТОГО: 280.00 [15:18:04]line НСП 1% : 2.48 [15:18:04]line НДС 12% : 29.73 [15:18:04]line Наличными: 280.00 [15:18:04]line Безнал.: 0.00 [15:18:04]line Место: АЗС № 133 "Партнер Нефть" [15:18:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:18:04]line СНО: Общий режим [15:18:04]line Чек 212 20.10.2024 15:18 [15:18:04]line Смена: 170 ФФД: 1.0 [15:18:04]line ЗНМ: 0300000020 [15:18:04]line РНМ: 0000000000161154 [15:18:04]line Версия ККМ: v1.0 [15:18:04]line ФМ: 0000000000963323 [15:18:04]line ФД: 73886 [15:18:04]line ФПД: 242210761908177 [15:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151804&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73886&fm=242210761908177&tin=02508201610067®Number=0000000000161154&sum=28000 [15:18:04]line 0 [15:18:04]OFD Sender: Processing packet 73886 [packets to send 15, broken 14] [15:18:04]ProducePacketName [15:18:04]name=ofd_packets/00073886 [15:18:04]OFD Sender: To server: pG, [15:18:04]CommunicateWithHost lk.salyk.kg:30040 [15:18:04]ConnectInit lk.salyk.kg [15:18:04]written 0, free lines is 4095 [15:18:04]Connected sock=10 [15:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 15 58 1B 01 B9 6A 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 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 D4 00 00 00 F4 03 04 00 2C 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 20 01 00 35 04 06 00 DC 4A 16 6C 9F D1 12 C9 8C F9 44 C4 CE 25 [15:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F8 50 47 00 AE 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 39 36 33 33 32 33 10 04 04 00 9E 20 01 00 F4 03 04 00 11 C8 14 67 B6 04 01 00 00 5B A3 0D F2 33 CA 4D 64 [15:18:04]CommunicateWithHost err = 0 [15:18:04]CheckOFDResponse [15:18:04]1017 (14) - 77093643461234 [15:18:04]1041 (16) - 0000000000963323 [15:18:04]1040 (4) - 73886 [15:18:04]1012 (4) - 20.10.2024 09:06 [15:18:04]1206 (1) - 0 [15:18:04]OFD Sender: Remove packet 73886 [15:18:04]ProducePacketName [15:18:04]name=ofd_packets/00073886 [15:18:04]NVStorageDeleteData [15:18:04]Write to MH i2c: 01 00 00 24 35 59 [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: 01 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: 01 07 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: 01 07 00 24 35 00 00 00 00 00 ED 0C 59 [15:18:04]RasterBufferAndPrint [15:18:04]line [15:18:04]line [15:18:04]line [15:18:04]line [15:18:04]line [15:18:04]written 0, free lines is 3326 [15:18:04]MH_Cut [15:18:04]Write to MH i2c: D1 01 00 2B 35 01 32 [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: D1 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: D1 01 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: D1 01 00 2B 35 00 31 [15:18:04]Write to MH i2c: 01 00 00 2C 35 61 [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:05]OFD Sender: No OFD packet to send [15:18:05]*** Cut start [15:18:05]*** Partial cut [15:18:05]*** CUTSNS_PIN = 1 [15:18:05]*** CUTSNS_PIN = 0 [15:18:05]*** Brake cut motor [15:18:06]Read from MH i2c: 01 [15:18:06]MH_I2C_Read... [15:18:06]*** Stop cut motor [15:18:06]*** Cut end [15:18:06]Read from MH i2c: 01 07 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: 01 07 00 2C 35 00 00 00 00 00 FF 0F 76 [15:18:06]process_action close_receipt done [15:18:06]requested_data is exist [15:18:06]produce_requested_data [15:18:06]requested_item fm.sn is exist - process it [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 11 00 00 [15:18:06]Write to MH i2c: E2 08 00 2D 35 80 11 00 00 00 00 00 00 DC [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 17 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 17 00 2D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 29 [15:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:18:06]wFMCommunicate OK [15:18:06]requested_item fd.num is exist - process it [15:18:06]SAM_PROTO_GetFieldsCounters [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 13 00 00 [15:18:06]Write to MH i2c: E2 08 00 2E 35 80 13 00 00 00 00 00 00 DF [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 62 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 62 00 2E 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:18:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9E 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:06]wFMCommunicate OK [15:18:06]SAM_PROTO_GetFieldsCounters done [15:18:06]requested_item shift.num is exist - process it [15:18:06]requested_item shift.opened is exist - process it [15:18:06]req_shift_opened [15:18:06]FM_GetShiftState [15:18:06]SAM_PROTO_GetShiftState [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 13 01 00 [15:18:06]Write to MH i2c: E2 08 00 2F 35 80 13 01 00 00 00 00 00 E1 [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 0E 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 0E 00 2F 35 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 26 [15:18:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:18:06]wFMCommunicate OK [15:18:06]SAM_PROTO_GetShiftState done [15:18:06]FM_GetShiftState done [15:18:06]req_shift_opened done [15:18:06]requested_item shift.open_date is exist - process it [15:18:06]req_shift_open_date [15:18:06]req_shift_open_date done [15:18:06]produce_requested_data done [15:18:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73886,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:18:06]process_action_free close_receipt [15:18:06]json_value_free [15:18:06]json_value_free done [15:18:06]process_json_proto returns [15:18:06]Send response to host [15:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73886,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:18:06]free response buf [15:18:06]execute_script done [15:18:06]execute_script returns [15:18:06]free content buf [15:18:06]Sock 8.Close socket [15:18:06]Sock 8.Thread stoped [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:43]accept exits with 9 [15:18:43]New connection [15:18:43]New thread 3067432292 created [15:18:43]Thread 3067575652 joined [15:18:43]Waiting for new connection... [15:18:43] Sock 9.Parse request [15:18:43]Sock 9.Check first char [15:18:43]Sock 9.First char is OK [15:18:43]request: POST /json_proto HTTP/1.0 [15:18:43]Method: POST [15:18:43]URL: /json_proto [15:18:43]Method is POST - this is cgi request [15:18:43]url: /json_proto [15:18:43]query_string will be loaded in cgi processing [15:18:43]execute_cgi json_proto POST (null) [15:18:43]execute_cgi path=json_proto method=POST [15:18:43]POST find Content-Length [15:18:43]Host: 172.17.44.196:8080 [15:18:43]Content-Length: 748 [15:18:43]Content-Type: application/json [15:18:43] [15:18:43]POST finish read [15:18:43]Found Content-Length = 748 [15:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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: Mbank", "payments": [ { "type": 1, "sum" : 600.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:43]execute_script... [15:18: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 : (1)1963083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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: Mbank", "payments": [ { "type": 1, "sum" : 600.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:43]POST & json_proto [15:18:43]process_json_proto [15:18:43]json parsed OK: [15:18:43]protocol is kg_v1.0 [15:18:43]action value=close_receipt [15:18:43]process_action close_receipt [15:18:43]cmd_close_receipt [15:18:43]MH_GetDate [15:18:43]Write to MH i2c: F0 00 00 30 35 54 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: F0 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: F0 09 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: F0 09 00 30 35 00 55 1F 15 67 E7 19 F8 65 AA [15:18:43]GetLastDocTimeStamp 1729437484 [15:18:43]current date 1729437525 [15:18:43]FM_GetShiftState [15:18:43]SAM_PROTO_GetShiftState [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 13 01 00 [15:18:43]Write to MH i2c: E2 08 00 31 35 80 13 01 00 00 00 00 00 E3 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 0E 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 0E 00 31 35 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 28 [15:18:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:18:43]wFMCommunicate OK [15:18:43]SAM_PROTO_GetShiftState done [15:18:43]FM_GetShiftState done [15:18:43]opened in 1729384303 [15:18:43]opened+sec_in_day 1729470703 [15:18:43]quantity*price = 60055 [15:18:43]sum+1 = 60056 [15:18:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.55 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.55 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 213 20.10.2024 15:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73887 ФПД: 135294153857352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151845&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73887&fm=135294153857352&tin=02508201610067®Number=0000000000161154&sum=60055 [15:18:44]StoreToDocumentArchive [15:18:44]shift 170 fd 73887 [15:18:44]save to /storage/0170/doc_00073887 [15:18:44]save last doc name /storage/0170/doc_00073887 to /storage/kkm_last_doc_name [15:18:44]save OK [15:18:44]Clear old archive folders... [15:18:44]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:18:44]tlvbuf is 003DA100 [15:18:44]SAM_PROTO_ClearQueue [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 09 00 00 [15:18:44]Write to MH i2c: E2 08 00 3E 35 80 09 00 00 00 00 00 00 E5 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 03 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [15:18:44]RAPDU: 90 00 [15:18:44]wFMCommunicate OK [15:18:44]SAM_PROTO_ClearQueue done [15:18:44]KKMCreateOFDPacket [15:18:44]OFDProtocolAddRootSTLVToBuf [15:18:44]FM_MakeSignedData [15:18:44]FM_MakeSignedData [15:18:44]SAM_PROTO_SignData [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 0D 01 02 [15:18:44]Write to MH i2c: E2 08 00 3F 35 80 0D 01 02 00 00 00 00 ED [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 03 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 03 00 3F 35 00 90 00 E8 [15:18:44]RAPDU: 90 00 [15:18:44]wFMCommunicate OK [15:18:44]wFMCommunicate request_size=253 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 20 01 00 35 04 06 00 7B 0C 9F FB 19 48 [15:18:44]Write to MH i2c: E2 00 01 40 35 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 20 01 00 35 04 06 00 7B 0C 9F FB 19 48 00 00 22 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 03 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 03 00 40 35 00 90 00 E9 [15:18:44]RAPDU: 90 00 [15:18:44]wFMCommunicate OK [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 0D 03 02 [15:18:44]Write to MH i2c: E2 08 00 41 35 80 0D 03 02 00 00 00 00 F1 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 0B 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 0B 00 41 35 00 17 A8 DE B5 54 2C 4F D3 90 00 E6 [15:18:44]RAPDU: 17 A8 DE B5 54 2C 4F D3 90 00 [15:18:44]wFMCommunicate OK [15:18:44]SAM_PROTO_SignData done [15:18:44]FM_MakeSignedData done [15:18:44]CreateOFDProtocolMessage [15:18:44]wFMCommunicate request_size=4 [15:18:44]MH_SAM_APDU [15:18:44]CAPDU: 80 11 00 00 [15:18:44]Write to MH i2c: E2 08 00 42 35 80 11 00 00 00 00 00 00 F1 [15:18:44]Write i2c OK [15:18:44]MH_I2C_Read... [15:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:45]Read from MH i2c: E2 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 17 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: E2 17 00 42 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [15:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:18:45]wFMCommunicate OK [15:18:45]CreateOFDProtocolMessage done [15:18:45]OFDSenderStorePacket 73887 [15:18:45]StoreOFDPacket docnum=73887 [15:18:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 57 7C 00 01 26 D2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 20 01 00 35 04 06 00 7B 0C 9F FB 19 48 17 A8 DE B5 54 2C 4F D3 [15:18:45]CheckFolder [15:18:45]dirname=/storage/ofd_packets [15:18:45]CheckFolder done [15:18:45]ProducePacketName [15:18:45]name=ofd_packets/00073887 [15:18:45]NVStorageSaveData ofd_packets/00073887 [15:18:45]File name is /storage/ofd_packets/00073887 [15:18:45]Write 294 bytes [15:18:45]NVStorageSaveData done [15:18:45]OFDSenderStorePacket done [15:18:45]KKMCreateOFDPacket done [15:18:45]NVStorageSaveData kkm_last_timestamp [15:18:45]File name is /storage/kkm_last_timestamp [15:18:45]Write 4 bytes [15:18:45]NVStorageSaveData done [15:18:45]ExternCall_PrintAddStr [15:18:45]wPrintStart [15:18:45]Write to MH i2c: 01 00 00 43 35 78 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 07 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 07 00 43 35 00 00 00 00 00 FF 0F 8D [15:18:45]RasterBufferAndPrint [15:18:45]line Счет N : (1)1963083 [15:18:45]line ИНН: 02508201610067 [15:18:45]line Контрольно-Кассовый Чек [15:18:45]line ПРОДАЖА [15:18:45]line ТРК (МРК, ГНК) : 42 [15:18:45]line Товар: 2710124130 [15:18:45]line SU-92 [15:18:45]line 8.780 * 68.40 [15:18:45]line = 600.55 [15:18:45]line НДС 12% НСП 1% [15:18:45]line > о реализуемом товаре [15:18:45]line ИТОГО: 600.55 [15:18:45]line НСП 1% : 5.31 [15:18:45]line НДС 12% : 63.77 [15:18:45]line Наличными: 0.00 [15:18:45]line Безнал.: 600.55 [15:18:45]line Место: АЗС № 133 "Партнер Нефть" [15:18:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:18:45]line СНО: Общий режим [15:18:45]line Чек 213 20.10.2024 15:18 [15:18:45]line Смена: 170 ФФД: 1.0 [15:18:45]line ЗНМ: 0300000020 [15:18:45]line РНМ: 0000000000161154 [15:18:45]line Версия ККМ: v1.0 [15:18:45]line Платежная система: Mbank [15:18:45]line ФМ: 0000000000963323 [15:18:45]line ФД: 73887 [15:18:45]line ФПД: 135294153857352 [15:18:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151845&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73887&fm=135294153857352&tin=02508201610067®Number=0000000000161154&sum=60055 [15:18:45]OFD Sender: Processing packet 73887 [packets to send 15, broken 14] [15:18:45]ProducePacketName [15:18:45]name=ofd_packets/00073887 [15:18:45]OFD Sender: To server: pG, [15:18:45]CommunicateWithHost lk.salyk.kg:30040 [15:18:45]ConnectInit lk.salyk.kg [15:18:45]written 0, free lines is 4095 [15:18:45]Connected sock=10 [15:18:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 57 7C 00 01 26 D2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 20 01 00 35 04 06 00 7B 0C 9F FB 19 48 17 A8 DE B5 54 2C 4F D3 [15:18:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2A 1B 47 00 B0 80 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 39 36 33 33 32 33 10 04 04 00 9F 20 01 00 F4 03 04 00 3A C8 14 67 B6 04 01 00 00 F3 E0 38 59 F7 50 AD E6 [15:18:45]CommunicateWithHost err = 0 [15:18:45]CheckOFDResponse [15:18:45]1017 (14) - 77093643461234 [15:18:45]1041 (16) - 0000000000963323 [15:18:45]1040 (4) - 73887 [15:18:45]1012 (4) - 20.10.2024 09:07 [15:18:45]1206 (1) - 0 [15:18:45]OFD Sender: Remove packet 73887 [15:18:45]ProducePacketName [15:18:45]name=ofd_packets/00073887 [15:18:45]NVStorageDeleteData [15:18:45]Write to MH i2c: 01 00 00 6B 35 A0 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 07 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: 01 07 00 6B 35 00 00 00 00 00 E1 0C 94 [15:18:45]RasterBufferAndPrint [15:18:45]line [15:18:45]line [15:18:45]line [15:18:45]line [15:18:45]line [15:18:45]written 0, free lines is 3301 [15:18:45]MH_Cut [15:18:45]Write to MH i2c: D1 01 00 72 35 01 79 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: D1 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: D1 01 00 [15:18:45]MH_I2C_Read... [15:18:45]Read from MH i2c: D1 01 00 72 35 00 78 [15:18:45]Write to MH i2c: 01 00 00 73 35 A8 [15:18:45]Write i2c OK [15:18:45]MH_I2C_Read... [15:18:46]OFD Sender: No OFD packet to send [15:18:46]*** Cut start [15:18:46]*** Partial cut [15:18:46]*** CUTSNS_PIN = 1 [15:18:46]*** CUTSNS_PIN = 0 [15:18:46]*** Brake cut motor [15:18:47]Read from MH i2c: 01 [15:18:47]MH_I2C_Read... [15:18:47]*** Stop cut motor [15:18:47]*** Cut end [15:18:47]Read from MH i2c: 01 07 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: 01 07 00 73 35 00 00 00 00 00 FF 0F BD [15:18:47]process_action close_receipt done [15:18:47]requested_data is exist [15:18:47]produce_requested_data [15:18:47]requested_item fm.sn is exist - process it [15:18:47]wFMCommunicate request_size=4 [15:18:47]MH_SAM_APDU [15:18:47]CAPDU: 80 11 00 00 [15:18:47]Write to MH i2c: E2 08 00 74 35 80 11 00 00 00 00 00 00 23 [15:18:47]Write i2c OK [15:18:47]MH_I2C_Read... [15:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:47]Read from MH i2c: E2 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 17 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 17 00 74 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 70 [15:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:18:47]wFMCommunicate OK [15:18:47]requested_item fd.num is exist - process it [15:18:47]SAM_PROTO_GetFieldsCounters [15:18:47]wFMCommunicate request_size=4 [15:18:47]MH_SAM_APDU [15:18:47]CAPDU: 80 13 00 00 [15:18:47]Write to MH i2c: E2 08 00 75 35 80 13 00 00 00 00 00 00 26 [15:18:47]Write i2c OK [15:18:47]MH_I2C_Read... [15:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:47]Read from MH i2c: E2 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 62 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 62 00 75 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [15:18:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9F 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:47]wFMCommunicate OK [15:18:47]SAM_PROTO_GetFieldsCounters done [15:18:47]requested_item shift.num is exist - process it [15:18:47]requested_item shift.opened is exist - process it [15:18:47]req_shift_opened [15:18:47]FM_GetShiftState [15:18:47]SAM_PROTO_GetShiftState [15:18:47]wFMCommunicate request_size=4 [15:18:47]MH_SAM_APDU [15:18:47]CAPDU: 80 13 01 00 [15:18:47]Write to MH i2c: E2 08 00 76 35 80 13 01 00 00 00 00 00 28 [15:18:47]Write i2c OK [15:18:47]MH_I2C_Read... [15:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:47]Read from MH i2c: E2 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 0E 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 0E 00 76 35 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [15:18:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:18:47]wFMCommunicate OK [15:18:47]SAM_PROTO_GetShiftState done [15:18:47]FM_GetShiftState done [15:18:47]req_shift_opened done [15:18:47]requested_item shift.open_date is exist - process it [15:18:47]req_shift_open_date [15:18:47]req_shift_open_date done [15:18:47]produce_requested_data done [15:18:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73887,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:18:47]process_action_free close_receipt [15:18:47]json_value_free [15:18:47]json_value_free done [15:18:47]process_json_proto returns [15:18:47]Send response to host [15:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73887,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:18:47]free response buf [15:18:47]execute_script done [15:18:47]execute_script returns [15:18:47]free content buf [15:18:47]Sock 9.Close socket [15:18:47]Sock 9.Thread stoped [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:53]accept exits with 8 [15:20:53]New connection [15:20:53]New thread 3067575652 created [15:20:53]Thread 3067432292 joined [15:20:53]Waiting for new connection... [15:20:53] Sock 8.Parse request [15:20:53]Sock 8.Check first char [15:20:53]Sock 8.First char is OK [15:20:53]request: POST /json_proto HTTP/1.0 [15:20:53]Method: POST [15:20:53]URL: /json_proto [15:20:53]Method is POST - this is cgi request [15:20:53]url: /json_proto [15:20:53]query_string will be loaded in cgi processing [15:20:53]execute_cgi json_proto POST (null) [15:20:53]execute_cgi path=json_proto method=POST [15:20:53]POST find Content-Length [15:20:53]Host: 172.17.44.196:8080 [15:20:53]Content-Length: 590 [15:20:53]Content-Type: application/json [15:20:53] [15:20:53]POST finish read [15:20:53]Found Content-Length = 590 [15:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272810", "tax_sys" : 0, "items" : [ { "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" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:53]execute_script... [15:20: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)272810", "tax_sys" : 0, "items" : [ { "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" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:53]POST & json_proto [15:20:53]process_json_proto [15:20:53]json parsed OK: [15:20:53]protocol is kg_v1.0 [15:20:53]action value=close_receipt [15:20:53]process_action close_receipt [15:20:53]cmd_close_receipt [15:20:53]MH_GetDate [15:20:53]Write to MH i2c: F0 00 00 77 35 9B [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: F0 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: F0 09 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: F0 09 00 77 35 00 D7 1F 15 67 E7 19 F8 65 73 [15:20:53]GetLastDocTimeStamp 1729437525 [15:20:53]current date 1729437655 [15:20:53]FM_GetShiftState [15:20:53]SAM_PROTO_GetShiftState [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 13 01 00 [15:20:53]Write to MH i2c: E2 08 00 78 35 80 13 01 00 00 00 00 00 2A [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0E 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0E 00 78 35 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [15:20:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:20:53]wFMCommunicate OK [15:20:53]SAM_PROTO_GetShiftState done [15:20:53]FM_GetShiftState done [15:20:53]opened in 1729384303 [15:20:53]opened+sec_in_day 1729470703 [15:20:53]quantity*price = 3700 [15:20:53]sum+1 = 3701 [15:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 37.00 НСП 1% : 0.33 НДС 12% : 3.93 Наличными: 37.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 214 20.10.2024 15:20 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73888 ФПД: 64297515370082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152055&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73888&fm=64297515370082&tin=02508201610067®Number=0000000000161154&sum=3700 0 [15:20:54]StoreToDocumentArchive [15:20:54]shift 170 fd 73888 [15:20:54]save to /storage/0170/doc_00073888 [15:20:54]save last doc name /storage/0170/doc_00073888 to /storage/kkm_last_doc_name [15:20:54]save OK [15:20:54]Clear old archive folders... [15:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=265 [15:20:54]tlvbuf is 0033C420 [15:20:54]SAM_PROTO_ClearQueue [15:20:54]wFMCommunicate request_size=4 [15:20:54]MH_SAM_APDU [15:20:54]CAPDU: 80 09 00 00 [15:20:54]Write to MH i2c: E2 08 00 85 35 80 09 00 00 00 00 00 00 2C [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:54]Read from MH i2c: E2 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [15:20:54]RAPDU: 90 00 [15:20:54]wFMCommunicate OK [15:20:54]SAM_PROTO_ClearQueue done [15:20:54]KKMCreateOFDPacket [15:20:54]OFDProtocolAddRootSTLVToBuf [15:20:54]FM_MakeSignedData [15:20:54]FM_MakeSignedData [15:20:54]SAM_PROTO_SignData [15:20:54]wFMCommunicate request_size=4 [15:20:54]MH_SAM_APDU [15:20:54]CAPDU: 80 0D 01 02 [15:20:54]Write to MH i2c: E2 08 00 86 35 80 0D 01 02 00 00 00 00 34 [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:54]Read from MH i2c: E2 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [15:20:54]RAPDU: 90 00 [15:20:54]wFMCommunicate OK [15:20:54]wFMCommunicate request_size=255 [15:20:54]MH_SAM_APDU [15:20: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 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D7 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 [15:20:54]Write to MH i2c: E2 02 01 87 35 80 0D 02 02 FA 00 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D7 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 00 00 0B [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [15:20:55]RAPDU: 90 00 [15:20:55]wFMCommunicate OK [15:20:55]wFMCommunicate request_size=24 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 0D 02 02 13 33 10 04 04 00 A0 20 01 00 35 04 06 00 3A 7A 6E 90 46 62 [15:20:55]Write to MH i2c: E2 1B 00 88 35 80 0D 02 02 13 00 33 10 04 04 00 A0 20 01 00 35 04 06 00 3A 7A 6E 90 46 62 00 00 02 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [15:20:55]RAPDU: 90 00 [15:20:55]wFMCommunicate OK [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 0D 03 02 [15:20:55]Write to MH i2c: E2 08 00 89 35 80 0D 03 02 00 00 00 00 39 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 0B 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 0B 00 89 35 00 38 27 04 8E 02 DB 39 89 90 00 CA [15:20:55]RAPDU: 38 27 04 8E 02 DB 39 89 90 00 [15:20:55]wFMCommunicate OK [15:20:55]SAM_PROTO_SignData done [15:20:55]FM_MakeSignedData done [15:20:55]CreateOFDProtocolMessage [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 11 00 00 [15:20:55]Write to MH i2c: E2 08 00 8A 35 80 11 00 00 00 00 00 00 39 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 17 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 17 00 8A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [15:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:20:55]wFMCommunicate OK [15:20:55]CreateOFDProtocolMessage done [15:20:55]OFDSenderStorePacket 73888 [15:20:55]StoreOFDPacket docnum=73888 [15:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1D 01 00 00 B3 CA 15 01 09 0A 5A 03 01 00 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D7 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 20 01 00 35 04 06 00 3A 7A 6E 90 46 62 38 27 04 8E 02 DB 39 89 [15:20:55]CheckFolder [15:20:55]dirname=/storage/ofd_packets [15:20:55]CheckFolder done [15:20:55]ProducePacketName [15:20:55]name=ofd_packets/00073888 [15:20:55]NVStorageSaveData ofd_packets/00073888 [15:20:55]File name is /storage/ofd_packets/00073888 [15:20:55]Write 315 bytes [15:20:55]NVStorageSaveData done [15:20:55]OFDSenderStorePacket done [15:20:55]KKMCreateOFDPacket done [15:20:55]NVStorageSaveData kkm_last_timestamp [15:20:55]File name is /storage/kkm_last_timestamp [15:20:55]Write 4 bytes [15:20:55]NVStorageSaveData done [15:20:55]ExternCall_PrintAddStr [15:20:55]wPrintStart [15:20:55]Write to MH i2c: 01 00 00 8B 35 C0 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 8B 35 00 00 00 00 00 FF 0F D5 [15:20:55]RasterBufferAndPrint [15:20:55]line Счет N : (3)272810 [15:20:55]line ИНН: 02508201610067 [15:20:55]line Контрольно-Кассовый Чек [15:20:55]line ПРОДАЖА [15:20:55]line Товар: 42113164 [15:20:55]line Жев Orbit White Spearmint [15:20:55]line 1.000 * 37.00 [15:20:55]line = 37.00 [15:20:55]line НДС 12% НСП 1% [15:20:55]line > о реализуемом товаре [15:20:55]line ИТОГО: 37.00 [15:20:55]line НСП 1% : 0.33 [15:20:55]line НДС 12% : 3.93 [15:20:55]line Наличными: 37.00 [15:20:55]line Безнал.: 0.00 [15:20:55]line Место: АЗС № 133 "Партнер Нефть" [15:20:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:20:55]line СНО: Общий режим [15:20:55]line Чек 214 20.10.2024 15:20 [15:20:55]line Смена: 170 ФФД: 1.0 [15:20:55]line ЗНМ: 0300000020 [15:20:55]line РНМ: 0000000000161154 [15:20:55]line Версия ККМ: v1.0 [15:20:55]line ФМ: 0000000000963323 [15:20:55]line ФД: 73888 [15:20:55]line ФПД: 64297515370082 [15:20:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152055&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73888&fm=64297515370082&tin=02508201610067®Number=0000000000161154&sum=3700 [15:20:55]line 0 [15:20:55]OFD Sender: Processing packet 73888 [packets to send 15, broken 14] [15:20:55]ProducePacketName [15:20:55]name=ofd_packets/00073888 [15:20:55]OFD Sender: To server: pG, [15:20:55]CommunicateWithHost lk.salyk.kg:30040 [15:20:55]ConnectInit lk.salyk.kg [15:20:55]written 0, free lines is 4095 [15:20:55]Connected sock=10 [15:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1D 01 00 00 B3 CA 15 01 09 0A 5A 03 01 00 03 00 09 01 1E 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 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 D7 1F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 20 01 00 35 04 06 00 3A 7A 6E 90 46 62 38 27 04 8E 02 DB 39 89 [15:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C5 D0 47 00 47 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 39 36 33 33 32 33 10 04 04 00 A0 20 01 00 F4 03 04 00 BC C8 14 67 B6 04 01 00 00 66 2E F6 4B 4D 98 AF 82 [15:20:55]CommunicateWithHost err = 0 [15:20:55]CheckOFDResponse [15:20:55]1017 (14) - 77093643461234 [15:20:55]1041 (16) - 0000000000963323 [15:20:55]1040 (4) - 73888 [15:20:55]1012 (4) - 20.10.2024 09:09 [15:20:55]1206 (1) - 0 [15:20:55]OFD Sender: Remove packet 73888 [15:20:55]ProducePacketName [15:20:55]name=ofd_packets/00073888 [15:20:55]NVStorageDeleteData [15:20:56]Write to MH i2c: 01 00 00 B2 35 E7 [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: 01 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: 01 07 00 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: 01 07 00 B2 35 00 00 00 00 00 E4 0C DE [15:20:56]RasterBufferAndPrint [15:20:56]line [15:20:56]line [15:20:56]line [15:20:56]line [15:20:56]line [15:20:56]written 0, free lines is 3306 [15:20:56]MH_Cut [15:20:56]Write to MH i2c: D1 01 00 B9 35 01 C0 [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: D1 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: D1 01 00 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: D1 01 00 B9 35 00 BF [15:20:56]Write to MH i2c: 01 00 00 BA 35 EF [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]OFD Sender: No OFD packet to send [15:20:56]*** Cut start [15:20:56]*** Partial cut [15:20:56]*** CUTSNS_PIN = 1 [15:20:56]*** CUTSNS_PIN = 0 [15:20:57]*** Brake cut motor [15:20:57]Read from MH i2c: 01 [15:20:57]MH_I2C_Read... [15:20:57]*** Stop cut motor [15:20:57]*** Cut end [15:20:57]Read from MH i2c: 01 07 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: 01 07 00 BA 35 00 00 00 00 00 FF 0F 04 [15:20:57]process_action close_receipt done [15:20:57]requested_data is exist [15:20:57]produce_requested_data [15:20:57]requested_item fm.sn is exist - process it [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 11 00 00 [15:20:57]Write to MH i2c: E2 08 00 BB 35 80 11 00 00 00 00 00 00 6A [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 17 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 17 00 BB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B7 [15:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:20:57]wFMCommunicate OK [15:20:57]requested_item fd.num is exist - process it [15:20:57]SAM_PROTO_GetFieldsCounters [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 13 00 00 [15:20:57]Write to MH i2c: E2 08 00 BC 35 80 13 00 00 00 00 00 00 6D [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 62 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 62 00 BC 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:20:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:57]wFMCommunicate OK [15:20:57]SAM_PROTO_GetFieldsCounters done [15:20:57]requested_item shift.num is exist - process it [15:20:57]requested_item shift.opened is exist - process it [15:20:57]req_shift_opened [15:20:57]FM_GetShiftState [15:20:57]SAM_PROTO_GetShiftState [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 13 01 00 [15:20:57]Write to MH i2c: E2 08 00 BD 35 80 13 01 00 00 00 00 00 6F [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 0E 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 0E 00 BD 35 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B4 [15:20:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:20:57]wFMCommunicate OK [15:20:57]SAM_PROTO_GetShiftState done [15:20:57]FM_GetShiftState done [15:20:57]req_shift_opened done [15:20:57]requested_item shift.open_date is exist - process it [15:20:57]req_shift_open_date [15:20:57]req_shift_open_date done [15:20:57]produce_requested_data done [15:20:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73888,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:20:57]process_action_free close_receipt [15:20:57]json_value_free [15:20:57]json_value_free done [15:20:57]process_json_proto returns [15:20:57]Send response to host [15:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73888,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:20:57]free response buf [15:20:57]execute_script done [15:20:57]execute_script returns [15:20:57]free content buf [15:20:57]Sock 8.Close socket [15:20:57]Sock 8.Thread stoped [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:51]accept exits with 9 [15:22:51]New connection [15:22:51]New thread 3067432292 created [15:22:51]Thread 3067575652 joined [15:22:51]Waiting for new connection... [15:22:51] Sock 9.Parse request [15:22:51]Sock 9.Check first char [15:22:51]Sock 9.First char is OK [15:22:51]request: POST /json_proto HTTP/1.0 [15:22:51]Method: POST [15:22:51]URL: /json_proto [15:22:51]Method is POST - this is cgi request [15:22:51]url: /json_proto [15:22:51]query_string will be loaded in cgi processing [15:22:51]execute_cgi json_proto POST (null) [15:22:51]execute_cgi path=json_proto method=POST [15:22:51]POST find Content-Length [15:22:51]Host: 172.17.44.196:8080 [15:22:51]Content-Length: 751 [15:22:51]Content-Type: application/json [15:22:51] [15:22:51]POST finish read [15:22:51]Found Content-Length = 751 [15:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 8.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:51]execute_script... [15:22: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 : (1)1963089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 8.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:51]POST & json_proto [15:22:51]process_json_proto [15:22:51]json parsed OK: [15:22:51]protocol is kg_v1.0 [15:22:51]action value=close_receipt [15:22:51]process_action close_receipt [15:22:51]cmd_close_receipt [15:22:51]MH_GetDate [15:22:51]Write to MH i2c: F0 00 00 BE 35 E2 [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: F0 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: F0 09 00 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: F0 09 00 BE 35 00 4E 20 15 67 E7 19 F8 65 32 [15:22:51]GetLastDocTimeStamp 1729437655 [15:22:51]current date 1729437774 [15:22:51]FM_GetShiftState [15:22:51]SAM_PROTO_GetShiftState [15:22:51]wFMCommunicate request_size=4 [15:22:51]MH_SAM_APDU [15:22:51]CAPDU: 80 13 01 00 [15:22:51]Write to MH i2c: E2 08 00 BF 35 80 13 01 00 00 00 00 00 71 [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:51]Read from MH i2c: E2 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: E2 0E 00 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: E2 0E 00 BF 35 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B6 [15:22:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:22:51]wFMCommunicate OK [15:22:51]SAM_PROTO_GetShiftState done [15:22:51]FM_GetShiftState done [15:22:51]opened in 1729384303 [15:22:51]opened+sec_in_day 1729470703 [15:22:51]quantity*price = 0 [15:22:51]sum+1 = 1 [15:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 215 20.10.2024 15:22 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30104725 ФМ: 0000000000963323 ФД: 73889 ФПД: 730420097687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152254&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73889&fm=730420097687&tin=02508201610067®Number=0000000000161154&sum=0 [15:22:52]StoreToDocumentArchive [15:22:52]shift 170 fd 73889 [15:22:52]save to /storage/0170/doc_00073889 [15:22:52]save last doc name /storage/0170/doc_00073889 to /storage/kkm_last_doc_name [15:22:52]save OK [15:22:52]Clear old archive folders... [15:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:52]tlvbuf is 00373A40 [15:22:52]SAM_PROTO_ClearQueue [15:22:52]wFMCommunicate request_size=4 [15:22:52]MH_SAM_APDU [15:22:52]CAPDU: 80 09 00 00 [15:22:52]Write to MH i2c: E2 08 00 CC 35 80 09 00 00 00 00 00 00 73 [15:22:52]Write i2c OK [15:22:52]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 CC 35 00 90 00 75 [15:22:53]RAPDU: 90 00 [15:22:53]wFMCommunicate OK [15:22:53]SAM_PROTO_ClearQueue done [15:22:53]KKMCreateOFDPacket [15:22:53]OFDProtocolAddRootSTLVToBuf [15:22:53]FM_MakeSignedData [15:22:53]FM_MakeSignedData [15:22:53]SAM_PROTO_SignData [15:22:53]wFMCommunicate request_size=4 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 0D 01 02 [15:22:53]Write to MH i2c: E2 08 00 CD 35 80 0D 01 02 00 00 00 00 7B [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 CD 35 00 90 00 76 [15:22:53]RAPDU: 90 00 [15:22:53]wFMCommunicate OK [15:22:53]wFMCommunicate request_size=255 [15:22:53]MH_SAM_APDU [15:22:53]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 C2 1F 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 D7 00 00 00 F4 03 04 00 4E 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 20 01 00 35 04 06 00 00 AA 10 6E [15:22:53]Write to MH i2c: E2 02 01 CE 35 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 C2 1F 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 D7 00 00 00 F4 03 04 00 4E 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 20 01 00 35 04 06 00 00 AA 10 6E 00 00 01 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 CE 35 00 90 00 77 [15:22:53]RAPDU: 90 00 [15:22:53]wFMCommunicate OK [15:22:53]wFMCommunicate request_size=7 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 0D 02 02 02 32 97 [15:22:53]Write to MH i2c: E2 0A 00 CF 35 80 0D 02 02 02 00 32 97 00 00 4B [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 03 00 CF 35 00 90 00 78 [15:22:53]RAPDU: 90 00 [15:22:53]wFMCommunicate OK [15:22:53]wFMCommunicate request_size=4 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 0D 03 02 [15:22:53]Write to MH i2c: E2 08 00 D0 35 80 0D 03 02 00 00 00 00 80 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 0B 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 0B 00 D0 35 00 46 49 FB DC BD A9 02 A0 90 00 EF [15:22:53]RAPDU: 46 49 FB DC BD A9 02 A0 90 00 [15:22:53]wFMCommunicate OK [15:22:53]SAM_PROTO_SignData done [15:22:53]FM_MakeSignedData done [15:22:53]CreateOFDProtocolMessage [15:22:53]wFMCommunicate request_size=4 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 11 00 00 [15:22:53]Write to MH i2c: E2 08 00 D1 35 80 11 00 00 00 00 00 00 80 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 17 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 17 00 D1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CD [15:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:22:53]wFMCommunicate OK [15:22:53]CreateOFDProtocolMessage done [15:22:53]OFDSenderStorePacket 73889 [15:22:53]StoreOFDPacket docnum=73889 [15:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 1D 89 04 01 F1 75 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 C2 1F 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 D7 00 00 00 F4 03 04 00 4E 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 20 01 00 35 04 06 00 00 AA 10 6E 32 97 46 49 FB DC BD A9 02 A0 [15:22:53]CheckFolder [15:22:53]dirname=/storage/ofd_packets [15:22:53]CheckFolder done [15:22:53]ProducePacketName [15:22:53]name=ofd_packets/00073889 [15:22:53]NVStorageSaveData ofd_packets/00073889 [15:22:53]File name is /storage/ofd_packets/00073889 [15:22:53]Write 298 bytes [15:22:53]NVStorageSaveData done [15:22:53]OFDSenderStorePacket done [15:22:53]KKMCreateOFDPacket done [15:22:53]NVStorageSaveData kkm_last_timestamp [15:22:53]File name is /storage/kkm_last_timestamp [15:22:53]Write 4 bytes [15:22:53]NVStorageSaveData done [15:22:53]ExternCall_PrintAddStr [15:22:53]wPrintStart [15:22:53]Write to MH i2c: 01 00 00 D2 35 07 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 07 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: 01 07 00 D2 35 00 00 00 00 00 FF 0F 1C [15:22:53]RasterBufferAndPrint [15:22:53]line Счет N : (1)1963089 [15:22:53]line ИНН: 02508201610067 [15:22:53]line Контрольно-Кассовый Чек [15:22:53]line ПРОДАЖА [15:22:53]line ТРК (МРК, ГНК) : 21 [15:22:53]line Товар: 2710194210 [15:22:53]line ДТ-К-5 [15:22:53]line 8.130 * 0.00 [15:22:53]line = 0.00 [15:22:53]line НДС 12% НСП 1% [15:22:53]line > о реализуемом товаре [15:22:53]line ИТОГО: 0.00 [15:22:53]line НСП 1% : 0.00 [15:22:53]line НДС 12% : 0.00 [15:22:53]line Наличными: 0.00 [15:22:53]line Безнал.: 0.00 [15:22:53]line Место: АЗС № 133 "Партнер Нефть" [15:22:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:22:53]line СНО: Общий режим [15:22:53]line Чек 215 20.10.2024 15:22 [15:22:53]line Смена: 170 ФФД: 1.0 [15:22:53]line ЗНМ: 0300000020 [15:22:53]line РНМ: 0000000000161154 [15:22:53]line Версия ККМ: v1.0 [15:22:53]line Талоны: ТК ГПНА Online [15:22:53]line 30104725 [15:22:53]line ФМ: 0000000000963323 [15:22:53]line ФД: 73889 [15:22:53]line ФПД: 730420097687 [15:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152254&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73889&fm=730420097687&tin=02508201610067®Number=0000000000161154&sum=0 [15:22:53]OFD Sender: Processing packet 73889 [packets to send 15, broken 14] [15:22:53]ProducePacketName [15:22:53]name=ofd_packets/00073889 [15:22:53]OFD Sender: To server: pG, [15:22:53]CommunicateWithHost lk.salyk.kg:30040 [15:22:53]ConnectInit lk.salyk.kg [15:22:53]written 0, free lines is 4095 [15:22:53]Connected sock=11 [15:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 1D 89 04 01 F1 75 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 C2 1F 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 D7 00 00 00 F4 03 04 00 4E 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 20 01 00 35 04 06 00 00 AA 10 6E 32 97 46 49 FB DC BD A9 02 A0 [15:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 F2 47 00 C4 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 39 36 33 33 32 33 10 04 04 00 A1 20 01 00 F4 03 04 00 32 C9 14 67 B6 04 01 00 00 D2 5C 48 50 F4 21 D8 FC [15:22:54]CommunicateWithHost err = 0 [15:22:54]CheckOFDResponse [15:22:54]1017 (14) - 77093643461234 [15:22:54]1041 (16) - 0000000000963323 [15:22:54]1040 (4) - 73889 [15:22:54]1012 (4) - 20.10.2024 09:11 [15:22:54]1206 (1) - 0 [15:22:54]OFD Sender: Remove packet 73889 [15:22:54]ProducePacketName [15:22:54]name=ofd_packets/00073889 [15:22:54]NVStorageDeleteData [15:22:54]Write to MH i2c: 01 00 00 FB 35 30 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 07 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 07 00 FB 35 00 00 00 00 00 CA 0C 0D [15:22:54]RasterBufferAndPrint [15:22:54]line [15:22:54]line [15:22:54]line [15:22:54]line [15:22:54]line [15:22:54]written 0, free lines is 3278 [15:22:54]MH_Cut [15:22:54]Write to MH i2c: D1 01 00 02 36 01 0A [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: D1 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: D1 01 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: D1 01 00 02 36 00 09 [15:22:54]Write to MH i2c: 01 00 00 03 36 39 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]OFD Sender: No OFD packet to send [15:22:55]*** Cut start [15:22:55]*** Partial cut [15:22:55]*** CUTSNS_PIN = 1 [15:22:55]*** CUTSNS_PIN = 0 [15:22:55]*** Brake cut motor [15:22:55]Read from MH i2c: 01 [15:22:55]MH_I2C_Read... [15:22:55]*** Stop cut motor [15:22:55]*** Cut end [15:22:55]Read from MH i2c: 01 07 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: 01 07 00 03 36 00 00 00 00 00 FF 0F 4E [15:22:55]process_action close_receipt done [15:22:55]requested_data is exist [15:22:55]produce_requested_data [15:22:55]requested_item fm.sn is exist - process it [15:22:55]wFMCommunicate request_size=4 [15:22:55]MH_SAM_APDU [15:22:55]CAPDU: 80 11 00 00 [15:22:55]Write to MH i2c: E2 08 00 04 36 80 11 00 00 00 00 00 00 B4 [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:55]Read from MH i2c: E2 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 17 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 17 00 04 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 01 [15:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:22:55]wFMCommunicate OK [15:22:55]requested_item fd.num is exist - process it [15:22:55]SAM_PROTO_GetFieldsCounters [15:22:55]wFMCommunicate request_size=4 [15:22:55]MH_SAM_APDU [15:22:55]CAPDU: 80 13 00 00 [15:22:55]Write to MH i2c: E2 08 00 05 36 80 13 00 00 00 00 00 00 B7 [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:55]Read from MH i2c: E2 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 62 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 62 00 05 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [15:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:55]wFMCommunicate OK [15:22:55]SAM_PROTO_GetFieldsCounters done [15:22:55]requested_item shift.num is exist - process it [15:22:55]requested_item shift.opened is exist - process it [15:22:55]req_shift_opened [15:22:55]FM_GetShiftState [15:22:55]SAM_PROTO_GetShiftState [15:22:55]wFMCommunicate request_size=4 [15:22:55]MH_SAM_APDU [15:22:55]CAPDU: 80 13 01 00 [15:22:55]Write to MH i2c: E2 08 00 06 36 80 13 01 00 00 00 00 00 B9 [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:55]Read from MH i2c: E2 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 0E 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: E2 0E 00 06 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FE [15:22:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:22:55]wFMCommunicate OK [15:22:55]SAM_PROTO_GetShiftState done [15:22:55]FM_GetShiftState done [15:22:55]req_shift_opened done [15:22:55]requested_item shift.open_date is exist - process it [15:22:55]req_shift_open_date [15:22:55]req_shift_open_date done [15:22:55]produce_requested_data done [15:22:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73889,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:22:55]process_action_free close_receipt [15:22:55]json_value_free [15:22:55]json_value_free done [15:22:55]process_json_proto returns [15:22:55]Send response to host [15:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73889,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:22:55]free response buf [15:22:55]execute_script done [15:22:55]execute_script returns [15:22:55]free content buf [15:22:55]Sock 9.Close socket [15:22:55]Sock 9.Thread stoped [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:13]accept exits with 8 [15:23:13]New connection [15:23:13]New thread 3067575652 created [15:23:13]Thread 3067432292 joined [15:23:13]Waiting for new connection... [15:23:13] Sock 8.Parse request [15:23:13]Sock 8.Check first char [15:23:13]Sock 8.First char is OK [15:23:13]request: POST /json_proto HTTP/1.0 [15:23:13]Method: POST [15:23:13]URL: /json_proto [15:23:13]Method is POST - this is cgi request [15:23:13]url: /json_proto [15:23:13]query_string will be loaded in cgi processing [15:23:13]execute_cgi json_proto POST (null) [15:23:13]execute_cgi path=json_proto method=POST [15:23:13]POST find Content-Length [15:23:13]Host: 172.17.44.196:8080 [15:23:13]Content-Length: 678 [15:23:13]Content-Type: application/json [15:23:13] [15:23:13]POST finish read [15:23:13]Found Content-Length = 678 [15:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963090", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [15:23:13]execute_script... [15:23:13]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)1963090", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [15:23:13]POST & json_proto [15:23:13]process_json_proto [15:23:13]json parsed OK: [15:23:13]protocol is kg_v1.0 [15:23:13]action value=close_receipt [15:23:13]process_action close_receipt [15:23:13]cmd_close_receipt [15:23:13]MH_GetDate [15:23:13]Write to MH i2c: F0 00 00 07 36 2C [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: F0 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: F0 09 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: F0 09 00 07 36 00 63 20 15 67 E7 19 F8 65 91 [15:23:13]GetLastDocTimeStamp 1729437774 [15:23:13]current date 1729437795 [15:23:13]FM_GetShiftState [15:23:13]SAM_PROTO_GetShiftState [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 13 01 00 [15:23:13]Write to MH i2c: E2 08 00 08 36 80 13 01 00 00 00 00 00 BB [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 0E 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 0E 00 08 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 00 [15:23:13]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:23:13]wFMCommunicate OK [15:23:13]SAM_PROTO_GetShiftState done [15:23:13]FM_GetShiftState done [15:23:13]opened in 1729384303 [15:23:13]opened+sec_in_day 1729470703 [15:23:13]quantity*price = 50041 [15:23:13]sum+1 = 50042 [15:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 216 20.10.2024 15:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73890 ФПД: 243037090510046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152315&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73890&fm=243037090510046&tin=02508201610067®Number=0000000000161154&sum=50000 [15:23:14]StoreToDocumentArchive [15:23:14]shift 170 fd 73890 [15:23:14]save to /storage/0170/doc_00073890 [15:23:14]save last doc name /storage/0170/doc_00073890 to /storage/kkm_last_doc_name [15:23:14]save OK [15:23:14]Clear old archive folders... [15:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:14]tlvbuf is 0031AFF0 [15:23:14]SAM_PROTO_ClearQueue [15:23:14]wFMCommunicate request_size=4 [15:23:14]MH_SAM_APDU [15:23:14]CAPDU: 80 09 00 00 [15:23:14]Write to MH i2c: E2 08 00 15 36 80 09 00 00 00 00 00 00 BD [15:23:14]Write i2c OK [15:23:14]MH_I2C_Read... [15:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:14]Read from MH i2c: E2 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 03 00 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 03 00 15 36 00 90 00 BF [15:23:14]RAPDU: 90 00 [15:23:14]wFMCommunicate OK [15:23:14]SAM_PROTO_ClearQueue done [15:23:14]KKMCreateOFDPacket [15:23:14]OFDProtocolAddRootSTLVToBuf [15:23:14]FM_MakeSignedData [15:23:14]FM_MakeSignedData [15:23:14]SAM_PROTO_SignData [15:23:14]wFMCommunicate request_size=4 [15:23:14]MH_SAM_APDU [15:23:14]CAPDU: 80 0D 01 02 [15:23:14]Write to MH i2c: E2 08 00 16 36 80 0D 01 02 00 00 00 00 C5 [15:23:14]Write i2c OK [15:23:14]MH_I2C_Read... [15:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:14]Read from MH i2c: E2 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 03 00 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 03 00 16 36 00 90 00 C0 [15:23:14]RAPDU: 90 00 [15:23:14]wFMCommunicate OK [15:23:14]wFMCommunicate request_size=255 [15:23:14]MH_SAM_APDU [15:23:14]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D8 00 00 00 F4 03 04 00 63 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 20 01 00 35 04 06 00 DD [15:23:14]Write to MH i2c: E2 02 01 17 36 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D8 00 00 00 F4 03 04 00 63 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 20 01 00 35 04 06 00 DD 00 00 68 [15:23:14]Write i2c OK [15:23:14]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 03 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 03 00 17 36 00 90 00 C1 [15:23:15]RAPDU: 90 00 [15:23:15]wFMCommunicate OK [15:23:15]wFMCommunicate request_size=10 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 0D 02 02 05 0A 7B 72 74 DE [15:23:15]Write to MH i2c: E2 0D 00 18 36 80 0D 02 02 05 00 0A 7B 72 74 DE 00 00 1B [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 03 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 03 00 18 36 00 90 00 C2 [15:23:15]RAPDU: 90 00 [15:23:15]wFMCommunicate OK [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 0D 03 02 [15:23:15]Write to MH i2c: E2 08 00 19 36 80 0D 03 02 00 00 00 00 CA [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0B 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0B 00 19 36 00 BE 89 39 B9 E8 85 83 61 90 00 55 [15:23:15]RAPDU: BE 89 39 B9 E8 85 83 61 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_SignData done [15:23:15]FM_MakeSignedData done [15:23:15]CreateOFDProtocolMessage [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 11 00 00 [15:23:15]Write to MH i2c: E2 08 00 1A 36 80 11 00 00 00 00 00 00 CA [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 17 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 17 00 1A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 17 [15:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:23:15]wFMCommunicate OK [15:23:15]CreateOFDProtocolMessage done [15:23:15]OFDSenderStorePacket 73890 [15:23:15]StoreOFDPacket docnum=73890 [15:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 88 EF 07 01 DB 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D8 00 00 00 F4 03 04 00 63 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 20 01 00 35 04 06 00 DD 0A 7B 72 74 DE BE 89 39 B9 E8 85 83 61 [15:23:15]CheckFolder [15:23:15]dirname=/storage/ofd_packets [15:23:15]CheckFolder done [15:23:15]ProducePacketName [15:23:15]name=ofd_packets/00073890 [15:23:15]NVStorageSaveData ofd_packets/00073890 [15:23:15]File name is /storage/ofd_packets/00073890 [15:23:15]Write 301 bytes [15:23:15]NVStorageSaveData done [15:23:15]OFDSenderStorePacket done [15:23:15]KKMCreateOFDPacket done [15:23:15]NVStorageSaveData kkm_last_timestamp [15:23:15]File name is /storage/kkm_last_timestamp [15:23:15]Write 4 bytes [15:23:15]NVStorageSaveData done [15:23:15]ExternCall_PrintAddStr [15:23:15]wPrintStart [15:23:15]Write to MH i2c: 01 00 00 1B 36 51 [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: 01 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: 01 07 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: 01 07 00 1B 36 00 00 00 00 00 FF 0F 66 [15:23:15]RasterBufferAndPrint [15:23:15]line Счет N : (1)1963090 [15:23:15]line ИНН: 02508201610067 [15:23:15]line Контрольно-Кассовый Чек [15:23:15]line ПРОДАЖА [15:23:15]line ТРК (МРК, ГНК) : 33 [15:23:15]line Товар: 2710124130 [15:23:15]line Аи-92-К-5 [15:23:15]line 7.480 * 66.90 [15:23:15]line = 500.41 [15:23:15]line НДС 12% НСП 1% [15:23:15]line > о реализуемом товаре [15:23:15]line ОКРУГЛЕНИЕ: -0.41 [15:23:15]line ИТОГО: 500.00 [15:23:15]line Внесено: 500.00 [15:23:15]line СДАЧА: 0.00 [15:23:15]line НСП 1% : 4.43 [15:23:15]line НДС 12% : 53.14 [15:23:15]line Наличными: 500.00 [15:23:15]line Безнал.: 0.00 [15:23:15]line Место: АЗС № 133 "Партнер Нефть" [15:23:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:23:15]line СНО: Общий режим [15:23:15]line Чек 216 20.10.2024 15:23 [15:23:15]line Смена: 170 ФФД: 1.0 [15:23:15]line ЗНМ: 0300000020 [15:23:15]line РНМ: 0000000000161154 [15:23:15]line Версия ККМ: v1.0 [15:23:15]line ФМ: 0000000000963323 [15:23:15]line ФД: 73890 [15:23:15]line ФПД: 243037090510046 [15:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152315&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73890&fm=243037090510046&tin=02508201610067®Number=0000000000161154&sum=50000 [15:23:15]OFD Sender: Processing packet 73890 [packets to send 15, broken 14] [15:23:15]ProducePacketName [15:23:15]name=ofd_packets/00073890 [15:23:15]OFD Sender: To server: pG, [15:23:15]CommunicateWithHost lk.salyk.kg:30040 [15:23:15]ConnectInit lk.salyk.kg [15:23:15]written 0, free lines is 4095 [15:23:15]Connected sock=10 [15:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 88 EF 07 01 DB 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 D8 00 00 00 F4 03 04 00 63 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 20 01 00 35 04 06 00 DD 0A 7B 72 74 DE BE 89 39 B9 E8 85 83 61 [15:23:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 41 CD 47 00 AE C6 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 39 36 33 33 32 33 10 04 04 00 A2 20 01 00 F4 03 04 00 48 C9 14 67 B6 04 01 00 00 8F AF 0E 60 F2 30 2E 97 [15:23:15]CommunicateWithHost err = 0 [15:23:15]CheckOFDResponse [15:23:15]1017 (14) - 77093643461234 [15:23:15]1041 (16) - 0000000000963323 [15:23:15]1040 (4) - 73890 [15:23:15]1012 (4) - 20.10.2024 09:11 [15:23:15]1206 (1) - 0 [15:23:15]OFD Sender: Remove packet 73890 [15:23:15]ProducePacketName [15:23:15]name=ofd_packets/00073890 [15:23:15]NVStorageDeleteData [15:23:16]Write to MH i2c: 01 00 00 45 36 7B [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 07 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 07 00 45 36 00 00 00 00 00 C8 0C 56 [15:23:16]RasterBufferAndPrint [15:23:16]line [15:23:16]line [15:23:16]line [15:23:16]line [15:23:16]line [15:23:16]written 0, free lines is 3276 [15:23:16]MH_Cut [15:23:16]Write to MH i2c: D1 01 00 4C 36 01 54 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: D1 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: D1 01 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: D1 01 00 4C 36 00 53 [15:23:16]Write to MH i2c: 01 00 00 4D 36 83 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]OFD Sender: No OFD packet to send [15:23:16]*** Cut start [15:23:16]*** Partial cut [15:23:16]*** CUTSNS_PIN = 1 [15:23:17]*** CUTSNS_PIN = 0 [15:23:17]*** Brake cut motor [15:23:17]Read from MH i2c: 01 [15:23:17]MH_I2C_Read... [15:23:17]*** Stop cut motor [15:23:17]*** Cut end [15:23:17]Read from MH i2c: 01 07 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 4D 36 00 00 00 00 00 FF 0F 98 [15:23:17]process_action close_receipt done [15:23:17]requested_data is exist [15:23:17]produce_requested_data [15:23:17]requested_item fm.sn is exist - process it [15:23:17]wFMCommunicate request_size=4 [15:23:17]MH_SAM_APDU [15:23:17]CAPDU: 80 11 00 00 [15:23:17]Write to MH i2c: E2 08 00 4E 36 80 11 00 00 00 00 00 00 FE [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 17 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 17 00 4E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [15:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:23:17]wFMCommunicate OK [15:23:17]requested_item fd.num is exist - process it [15:23:17]SAM_PROTO_GetFieldsCounters [15:23:17]wFMCommunicate request_size=4 [15:23:17]MH_SAM_APDU [15:23:17]CAPDU: 80 13 00 00 [15:23:17]Write to MH i2c: E2 08 00 4F 36 80 13 00 00 00 00 00 00 01 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 62 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 62 00 4F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:17]wFMCommunicate OK [15:23:17]SAM_PROTO_GetFieldsCounters done [15:23:17]requested_item shift.num is exist - process it [15:23:17]requested_item shift.opened is exist - process it [15:23:17]req_shift_opened [15:23:17]FM_GetShiftState [15:23:17]SAM_PROTO_GetShiftState [15:23:17]wFMCommunicate request_size=4 [15:23:17]MH_SAM_APDU [15:23:17]CAPDU: 80 13 01 00 [15:23:17]Write to MH i2c: E2 08 00 50 36 80 13 01 00 00 00 00 00 03 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 0E 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 0E 00 50 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 48 [15:23:17]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:23:17]wFMCommunicate OK [15:23:17]SAM_PROTO_GetShiftState done [15:23:17]FM_GetShiftState done [15:23:17]req_shift_opened done [15:23:17]requested_item shift.open_date is exist - process it [15:23:17]req_shift_open_date [15:23:17]req_shift_open_date done [15:23:17]produce_requested_data done [15:23:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73890,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:23:17]process_action_free close_receipt [15:23:17]json_value_free [15:23:17]json_value_free done [15:23:17]process_json_proto returns [15:23:17]Send response to host [15:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73890,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:23:17]free response buf [15:23:17]execute_script done [15:23:17]execute_script returns [15:23:17]free content buf [15:23:17]Sock 8.Close socket [15:23:17]Sock 8.Thread stoped [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]accept exits with 9 [15:24:56]New connection [15:24:56]New thread 3067432292 created [15:24:56]Thread 3067575652 joined [15:24:56]Waiting for new connection... [15:24:56] Sock 9.Parse request [15:24:56]Sock 9.Check first char [15:24:56]Sock 9.First char is OK [15:24:56]request: POST /json_proto HTTP/1.0 [15:24:56]Method: POST [15:24:56]URL: /json_proto [15:24:56]Method is POST - this is cgi request [15:24:56]url: /json_proto [15:24:56]query_string will be loaded in cgi processing [15:24:56]execute_cgi json_proto POST (null) [15:24:56]execute_cgi path=json_proto method=POST [15:24:56]POST find Content-Length [15:24:56]Host: 172.17.44.196:8080 [15:24:56]Content-Length: 678 [15:24:56]Content-Type: application/json [15:24:56] [15:24:56]POST finish read [15:24:56]Found Content-Length = 678 [15:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:56]execute_script... [15:24: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 : (1)1963091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:56]POST & json_proto [15:24:56]process_json_proto [15:24:56]json parsed OK: [15:24:56]protocol is kg_v1.0 [15:24:56]action value=close_receipt [15:24:56]process_action close_receipt [15:24:56]cmd_close_receipt [15:24:56]MH_GetDate [15:24:56]Write to MH i2c: F0 00 00 51 36 76 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: F0 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: F0 09 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: F0 09 00 51 36 00 CA 20 15 67 E7 19 F8 65 42 [15:24:56]GetLastDocTimeStamp 1729437795 [15:24:56]current date 1729437898 [15:24:56]FM_GetShiftState [15:24:56]SAM_PROTO_GetShiftState [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 13 01 00 [15:24:56]Write to MH i2c: E2 08 00 52 36 80 13 01 00 00 00 00 00 05 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0E 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0E 00 52 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [15:24:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:24:56]wFMCommunicate OK [15:24:56]SAM_PROTO_GetShiftState done [15:24:56]FM_GetShiftState done [15:24:56]opened in 1729384303 [15:24:56]opened+sec_in_day 1729470703 [15:24:56]quantity*price = 40006 [15:24:56]sum+1 = 40007 [15:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 217 20.10.2024 15:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73891 ФПД: 40615491191677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152458&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73891&fm=40615491191677&tin=02508201610067®Number=0000000000161154&sum=40000 [15:24:57]StoreToDocumentArchive [15:24:57]shift 170 fd 73891 [15:24:57]save to /storage/0170/doc_00073891 [15:24:57]save last doc name /storage/0170/doc_00073891 to /storage/kkm_last_doc_name [15:24:57]save OK [15:24:57]Clear old archive folders... [15:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:57]tlvbuf is B6F726C0 [15:24:57]SAM_PROTO_ClearQueue [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 09 00 00 [15:24:57]Write to MH i2c: E2 08 00 5F 36 80 09 00 00 00 00 00 00 07 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 5F 36 00 90 00 09 [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_ClearQueue done [15:24:57]KKMCreateOFDPacket [15:24:57]OFDProtocolAddRootSTLVToBuf [15:24:57]FM_MakeSignedData [15:24:57]FM_MakeSignedData [15:24:57]SAM_PROTO_SignData [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 01 02 [15:24:57]Write to MH i2c: E2 08 00 60 36 80 0D 01 02 00 00 00 00 0F [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 60 36 00 90 00 0A [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]wFMCommunicate request_size=255 [15:24:57]MH_SAM_APDU [15:24: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 20 01 00 35 04 06 00 24 [15:24:57]Write to MH i2c: E2 02 01 61 36 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 20 01 00 35 04 06 00 24 00 00 31 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 61 36 00 90 00 0B [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]wFMCommunicate request_size=10 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 02 02 05 F0 87 EC C3 7D [15:24:57]Write to MH i2c: E2 0D 00 62 36 80 0D 02 02 05 00 F0 87 EC C3 7D 00 00 BF [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 62 36 00 90 00 0C [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 03 02 [15:24:57]Write to MH i2c: E2 08 00 63 36 80 0D 03 02 00 00 00 00 14 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0B 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0B 00 63 36 00 12 B4 DE 73 EC 5C 29 B0 90 00 4D [15:24:57]RAPDU: 12 B4 DE 73 EC 5C 29 B0 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_SignData done [15:24:57]FM_MakeSignedData done [15:24:57]CreateOFDProtocolMessage [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 11 00 00 [15:24:57]Write to MH i2c: E2 08 00 64 36 80 11 00 00 00 00 00 00 14 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 64 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [15:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:24:58]wFMCommunicate OK [15:24:58]CreateOFDProtocolMessage done [15:24:58]OFDSenderStorePacket 73891 [15:24:58]StoreOFDPacket docnum=73891 [15:24:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC 3F 07 01 CF 18 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 20 01 00 35 04 06 00 24 F0 87 EC C3 7D 12 B4 DE 73 EC 5C 29 B0 [15:24:58]CheckFolder [15:24:58]dirname=/storage/ofd_packets [15:24:58]CheckFolder done [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00073891 [15:24:58]NVStorageSaveData ofd_packets/00073891 [15:24:58]File name is /storage/ofd_packets/00073891 [15:24:58]Write 301 bytes [15:24:58]NVStorageSaveData done [15:24:58]OFDSenderStorePacket done [15:24:58]KKMCreateOFDPacket done [15:24:58]NVStorageSaveData kkm_last_timestamp [15:24:58]File name is /storage/kkm_last_timestamp [15:24:58]Write 4 bytes [15:24:58]NVStorageSaveData done [15:24:58]ExternCall_PrintAddStr [15:24:58]wPrintStart [15:24:58]Write to MH i2c: 01 00 00 65 36 9B [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 65 36 00 00 00 00 00 FF 0F B0 [15:24:58]RasterBufferAndPrint [15:24:58]line Счет N : (1)1963091 [15:24:58]line ИНН: 02508201610067 [15:24:58]line Контрольно-Кассовый Чек [15:24:58]line ПРОДАЖА [15:24:58]line ТРК (МРК, ГНК) : 63 [15:24:58]line Товар: 2710124130 [15:24:58]line Аи-92-К-5 [15:24:58]line 5.980 * 66.90 [15:24:58]line = 400.06 [15:24:58]line НДС 12% НСП 1% [15:24:58]line > о реализуемом товаре [15:24:58]line ОКРУГЛЕНИЕ: -0.06 [15:24:58]line ИТОГО: 400.00 [15:24:58]line Внесено: 400.00 [15:24:58]line СДАЧА: 0.00 [15:24:58]line НСП 1% : 3.54 [15:24:58]line НДС 12% : 42.48 [15:24:58]line Наличными: 400.00 [15:24:58]line Безнал.: 0.00 [15:24:58]line Место: АЗС № 133 "Партнер Нефть" [15:24:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:24:58]line СНО: Общий режим [15:24:58]line Чек 217 20.10.2024 15:24 [15:24:58]line Смена: 170 ФФД: 1.0 [15:24:58]line ЗНМ: 0300000020 [15:24:58]line РНМ: 0000000000161154 [15:24:58]line Версия ККМ: v1.0 [15:24:58]line ФМ: 0000000000963323 [15:24:58]line ФД: 73891 [15:24:58]line ФПД: 40615491191677 [15:24:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152458&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73891&fm=40615491191677&tin=02508201610067®Number=0000000000161154&sum=40000 [15:24:58]OFD Sender: Processing packet 73891 [packets to send 15, broken 14] [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00073891 [15:24:58]OFD Sender: To server: pG, [15:24:58]CommunicateWithHost lk.salyk.kg:30040 [15:24:58]ConnectInit lk.salyk.kg [15:24:58]written 0, free lines is 4095 [15:24:58]Connected sock=10 [15:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC 3F 07 01 CF 18 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 20 01 00 35 04 06 00 24 F0 87 EC C3 7D 12 B4 DE 73 EC 5C 29 B0 [15:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 15 7B 47 00 45 2F 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 39 36 33 33 32 33 10 04 04 00 A3 20 01 00 F4 03 04 00 AF C9 14 67 B6 04 01 00 00 6A 5C 5C 89 3A C3 63 C1 [15:24:58]CommunicateWithHost err = 0 [15:24:58]CheckOFDResponse [15:24:58]1017 (14) - 77093643461234 [15:24:58]1041 (16) - 0000000000963323 [15:24:58]1040 (4) - 73891 [15:24:58]1012 (4) - 20.10.2024 09:13 [15:24:58]1206 (1) - 0 [15:24:58]OFD Sender: Remove packet 73891 [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00073891 [15:24:58]NVStorageDeleteData [15:24:58]Write to MH i2c: 01 00 00 8F 36 C5 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 8F 36 00 00 00 00 00 B8 0C 90 [15:24:58]RasterBufferAndPrint [15:24:58]line [15:24:58]line [15:24:58]line [15:24:58]line [15:24:58]line [15:24:58]written 0, free lines is 3263 [15:24:58]MH_Cut [15:24:58]Write to MH i2c: D1 01 00 96 36 01 9E [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: D1 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: D1 01 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: D1 01 00 96 36 00 9D [15:24:58]Write to MH i2c: 01 00 00 97 36 CD [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:59]OFD Sender: No OFD packet to send [15:24:59]*** Cut start [15:24:59]*** Partial cut [15:24:59]*** CUTSNS_PIN = 1 [15:24:59]*** CUTSNS_PIN = 0 [15:24:59]*** Brake cut motor [15:25:00]Read from MH i2c: 01 [15:25:00]MH_I2C_Read... [15:25:00]*** Stop cut motor [15:25:00]*** Cut end [15:25:00]Read from MH i2c: 01 07 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: 01 07 00 97 36 00 00 00 00 00 FF 0F E2 [15:25:00]process_action close_receipt done [15:25:00]requested_data is exist [15:25:00]produce_requested_data [15:25:00]requested_item fm.sn is exist - process it [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 11 00 00 [15:25:00]Write to MH i2c: E2 08 00 98 36 80 11 00 00 00 00 00 00 48 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 98 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [15:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:25:00]wFMCommunicate OK [15:25:00]requested_item fd.num is exist - process it [15:25:00]SAM_PROTO_GetFieldsCounters [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 13 00 00 [15:25:00]Write to MH i2c: E2 08 00 99 36 80 13 00 00 00 00 00 00 4B [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 62 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 62 00 99 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [15:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:00]wFMCommunicate OK [15:25:00]SAM_PROTO_GetFieldsCounters done [15:25:00]requested_item shift.num is exist - process it [15:25:00]requested_item shift.opened is exist - process it [15:25:00]req_shift_opened [15:25:00]FM_GetShiftState [15:25:00]SAM_PROTO_GetShiftState [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 13 01 00 [15:25:00]Write to MH i2c: E2 08 00 9A 36 80 13 01 00 00 00 00 00 4D [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 0E 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 0E 00 9A 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 92 [15:25:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:25:00]wFMCommunicate OK [15:25:00]SAM_PROTO_GetShiftState done [15:25:00]FM_GetShiftState done [15:25:00]req_shift_opened done [15:25:00]requested_item shift.open_date is exist - process it [15:25:00]req_shift_open_date [15:25:00]req_shift_open_date done [15:25:00]produce_requested_data done [15:25:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73891,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:25:00]process_action_free close_receipt [15:25:00]json_value_free [15:25:00]json_value_free done [15:25:00]process_json_proto returns [15:25:00]Send response to host [15:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73891,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:25:00]free response buf [15:25:00]execute_script done [15:25:00]execute_script returns [15:25:00]free content buf [15:25:00]Sock 9.Close socket [15:25:00]Sock 9.Thread stoped [15:25:01]accept exits with 8 [15:25:01]New connection [15:25:01]New thread 3067575652 created [15:25:01]Thread 3067432292 joined [15:25:01]Waiting for new connection... [15:25:01] Sock 8.Parse request [15:25:01]Sock 8.Check first char [15:25:01]Sock 8.First char is OK [15:25:01]request: POST /json_proto HTTP/1.0 [15:25:01]Method: POST [15:25:01]URL: /json_proto [15:25:01]Method is POST - this is cgi request [15:25:01]url: /json_proto [15:25:01]query_string will be loaded in cgi processing [15:25:01]execute_cgi json_proto POST (null) [15:25:01]execute_cgi path=json_proto method=POST [15:25:01]POST find Content-Length [15:25:01]Host: 172.17.44.196:8080 [15:25:01]Content-Length: 621 [15:25:01]Content-Type: application/json [15:25:01] [15:25:01]POST finish read [15:25:01]Found Content-Length = 621 [15:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272811", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 2.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" ] } } [15:25:01]execute_script... [15:25:01]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)272811", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 2.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" ] } } [15:25:01]POST & json_proto [15:25:01]process_json_proto [15:25:01]json parsed OK: [15:25:01]protocol is kg_v1.0 [15:25:01]action value=close_receipt [15:25:01]process_action close_receipt [15:25:01]cmd_close_receipt [15:25:01]MH_GetDate [15:25:01]Write to MH i2c: F0 00 00 9B 36 C0 [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: F0 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: F0 09 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: F0 09 00 9B 36 00 CF 20 15 67 E7 19 F8 65 91 [15:25:01]GetLastDocTimeStamp 1729437898 [15:25:01]current date 1729437903 [15:25:01]FM_GetShiftState [15:25:01]SAM_PROTO_GetShiftState [15:25:01]wFMCommunicate request_size=4 [15:25:01]MH_SAM_APDU [15:25:01]CAPDU: 80 13 01 00 [15:25:01]Write to MH i2c: E2 08 00 9C 36 80 13 01 00 00 00 00 00 4F [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 9C 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 94 [15:25:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:25:01]wFMCommunicate OK [15:25:01]SAM_PROTO_GetShiftState done [15:25:01]FM_GetShiftState done [15:25:01]opened in 1729384303 [15:25:01]opened+sec_in_day 1729470703 [15:25:01]quantity*price = 26000 [15:25:01]sum+1 = 26001 [15:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 218 20.10.2024 15:25 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73892 ФПД: 131179360023708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152503&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73892&fm=131179360023708&tin=02508201610067®Number=0000000000161154&sum=26000 0 [15:25:02]StoreToDocumentArchive [15:25:02]shift 170 fd 73892 [15:25:02]save to /storage/0170/doc_00073892 [15:25:02]save last doc name /storage/0170/doc_00073892 to /storage/kkm_last_doc_name [15:25:02]save OK [15:25:02]Clear old archive folders... [15:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:25:02]tlvbuf is 00420910 [15:25:02]SAM_PROTO_ClearQueue [15:25:02]wFMCommunicate request_size=4 [15:25:02]MH_SAM_APDU [15:25:02]CAPDU: 80 09 00 00 [15:25:02]Write to MH i2c: E2 08 00 A9 36 80 09 00 00 00 00 00 00 51 [15:25:02]Write i2c OK [15:25:02]MH_I2C_Read... [15:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:02]Read from MH i2c: E2 [15:25:02]MH_I2C_Read... [15:25:02]Read from MH i2c: E2 03 00 [15:25:02]MH_I2C_Read... [15:25:02]Read from MH i2c: E2 03 00 A9 36 00 90 00 53 [15:25:02]RAPDU: 90 00 [15:25:02]wFMCommunicate OK [15:25:02]SAM_PROTO_ClearQueue done [15:25:02]KKMCreateOFDPacket [15:25:02]OFDProtocolAddRootSTLVToBuf [15:25:02]FM_MakeSignedData [15:25:02]FM_MakeSignedData [15:25:02]SAM_PROTO_SignData [15:25:02]wFMCommunicate request_size=4 [15:25:02]MH_SAM_APDU [15:25:02]CAPDU: 80 0D 01 02 [15:25:02]Write to MH i2c: E2 08 00 AA 36 80 0D 01 02 00 00 00 00 59 [15:25:02]Write i2c OK [15:25:02]MH_I2C_Read... [15:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:02]Read from MH i2c: E2 [15:25:02]MH_I2C_Read... [15:25:02]Read from MH i2c: E2 03 00 [15:25:02]MH_I2C_Read... [15:25:02]Read from MH i2c: E2 03 00 AA 36 00 90 00 54 [15:25:02]RAPDU: 90 00 [15:25:02]wFMCommunicate OK [15:25:02]wFMCommunicate request_size=255 [15:25:02]MH_SAM_APDU [15:25:02]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 DA 00 00 00 F4 03 04 00 CF 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [15:25:03]Write to MH i2c: E2 02 01 AB 36 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 DA 00 00 00 F4 03 04 00 CF 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 F5 [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:03]Read from MH i2c: E2 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 03 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 03 00 AB 36 00 90 00 55 [15:25:03]RAPDU: 90 00 [15:25:03]wFMCommunicate OK [15:25:03]wFMCommunicate request_size=32 [15:25:03]MH_SAM_APDU [15:25:03]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 20 01 00 35 04 06 00 77 4E 93 27 F4 9C [15:25:03]Write to MH i2c: E2 23 00 AC 36 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 20 01 00 35 04 06 00 77 4E 93 27 F4 9C 00 00 87 [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:03]Read from MH i2c: E2 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 03 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 03 00 AC 36 00 90 00 56 [15:25:03]RAPDU: 90 00 [15:25:03]wFMCommunicate OK [15:25:03]wFMCommunicate request_size=4 [15:25:03]MH_SAM_APDU [15:25:03]CAPDU: 80 0D 03 02 [15:25:03]Write to MH i2c: E2 08 00 AD 36 80 0D 03 02 00 00 00 00 5E [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:03]Read from MH i2c: E2 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 0B 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 0B 00 AD 36 00 3F F1 C4 50 B7 8F 7D C2 90 00 28 [15:25:03]RAPDU: 3F F1 C4 50 B7 8F 7D C2 90 00 [15:25:03]wFMCommunicate OK [15:25:03]SAM_PROTO_SignData done [15:25:03]FM_MakeSignedData done [15:25:03]CreateOFDProtocolMessage [15:25:03]wFMCommunicate request_size=4 [15:25:03]MH_SAM_APDU [15:25:03]CAPDU: 80 11 00 00 [15:25:03]Write to MH i2c: E2 08 00 AE 36 80 11 00 00 00 00 00 00 5E [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:03]Read from MH i2c: E2 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 17 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: E2 17 00 AE 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AB [15:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:25:03]wFMCommunicate OK [15:25:03]CreateOFDProtocolMessage done [15:25:03]OFDSenderStorePacket 73892 [15:25:03]StoreOFDPacket docnum=73892 [15:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 5E B6 1D 01 EC 16 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 DA 00 00 00 F4 03 04 00 CF 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 20 01 00 35 04 06 00 77 4E 93 27 F4 9C 3F F1 C4 50 B7 8F 7D C2 [15:25:03]CheckFolder [15:25:03]dirname=/storage/ofd_packets [15:25:03]CheckFolder done [15:25:03]ProducePacketName [15:25:03]name=ofd_packets/00073892 [15:25:03]NVStorageSaveData ofd_packets/00073892 [15:25:03]File name is /storage/ofd_packets/00073892 [15:25:03]Write 323 bytes [15:25:03]NVStorageSaveData done [15:25:03]OFDSenderStorePacket done [15:25:03]KKMCreateOFDPacket done [15:25:03]NVStorageSaveData kkm_last_timestamp [15:25:03]File name is /storage/kkm_last_timestamp [15:25:03]Write 4 bytes [15:25:03]NVStorageSaveData done [15:25:03]ExternCall_PrintAddStr [15:25:03]wPrintStart [15:25:03]Write to MH i2c: 01 00 00 AF 36 E5 [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: 01 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: 01 07 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: 01 07 00 AF 36 00 00 00 00 00 FF 0F FA [15:25:03]RasterBufferAndPrint [15:25:03]line Счет N : (3)272811 [15:25:03]line ИНН: 02508201610067 [15:25:03]line Контрольно-Кассовый Чек [15:25:03]line ПРОДАЖА [15:25:03]line Товар: 4780014240406 [15:25:03]line Сигареты Sovereign Blue [15:25:03]line 2.000 * 130.00 [15:25:03]line = 260.00 [15:25:03]line НДС 12% НСП 1% [15:25:03]line > о реализуемом товаре [15:25:03]line ИТОГО: 260.00 [15:25:03]line НСП 1% : 2.30 [15:25:03]line НДС 12% : 27.61 [15:25:03]line Наличными: 260.00 [15:25:03]line Безнал.: 0.00 [15:25:03]line Место: АЗС № 133 "Партнер Нефть" [15:25:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:25:03]line СНО: Общий режим [15:25:03]line Чек 218 20.10.2024 15:25 [15:25:03]line Смена: 170 ФФД: 1.0 [15:25:03]line ЗНМ: 0300000020 [15:25:03]line РНМ: 0000000000161154 [15:25:03]line Версия ККМ: v1.0 [15:25:03]line ФМ: 0000000000963323 [15:25:03]line ФД: 73892 [15:25:03]line ФПД: 131179360023708 [15:25:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152503&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73892&fm=131179360023708&tin=02508201610067®Number=0000000000161154&sum=26000 [15:25:03]line 0 [15:25:03]written 0, free lines is 4095 [15:25:03]OFD Sender: Processing packet 73892 [packets to send 15, broken 14] [15:25:03]ProducePacketName [15:25:03]name=ofd_packets/00073892 [15:25:03]OFD Sender: To server: pG, [15:25:03]CommunicateWithHost lk.salyk.kg:30040 [15:25:03]ConnectInit lk.salyk.kg [15:25:03]Connected sock=10 [15:25:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 5E B6 1D 01 EC 16 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 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 DA 00 00 00 F4 03 04 00 CF 20 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 20 01 00 35 04 06 00 77 4E 93 27 F4 9C 3F F1 C4 50 B7 8F 7D C2 [15:25:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D6 D2 47 00 D6 4B 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 39 36 33 33 32 33 10 04 04 00 A4 20 01 00 F4 03 04 00 B4 C9 14 67 B6 04 01 00 00 FC 07 4E 0F 23 B0 FA C4 [15:25:03]CommunicateWithHost err = 0 [15:25:03]CheckOFDResponse [15:25:03]1017 (14) - 77093643461234 [15:25:03]1041 (16) - 0000000000963323 [15:25:03]1040 (4) - 73892 [15:25:03]1012 (4) - 20.10.2024 09:13 [15:25:03]1206 (1) - 0 [15:25:03]OFD Sender: Remove packet 73892 [15:25:03]ProducePacketName [15:25:03]name=ofd_packets/00073892 [15:25:03]NVStorageDeleteData [15:25:03]Write to MH i2c: 01 00 00 D6 36 0C [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: 01 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: 01 07 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: 01 07 00 D6 36 00 00 00 00 00 FF 0C 1E [15:25:03]RasterBufferAndPrint [15:25:03]line [15:25:03]line [15:25:03]line [15:25:03]line [15:25:03]line [15:25:03]written 0, free lines is 3341 [15:25:03]MH_Cut [15:25:03]Write to MH i2c: D1 01 00 DD 36 01 E5 [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: D1 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: D1 01 00 [15:25:03]MH_I2C_Read... [15:25:03]Read from MH i2c: D1 01 00 DD 36 00 E4 [15:25:03]Write to MH i2c: 01 00 00 DE 36 14 [15:25:03]Write i2c OK [15:25:03]MH_I2C_Read... [15:25:04]OFD Sender: No OFD packet to send [15:25:04]*** Cut start [15:25:04]*** Partial cut [15:25:04]*** CUTSNS_PIN = 1 [15:25:04]*** CUTSNS_PIN = 0 [15:25:05]*** Brake cut motor [15:25:05]Read from MH i2c: 01 [15:25:05]MH_I2C_Read... [15:25:05]*** Stop cut motor [15:25:05]*** Cut end [15:25:05]Read from MH i2c: 01 07 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: 01 07 00 DE 36 00 00 00 00 00 FF 0F 29 [15:25:05]process_action close_receipt done [15:25:05]requested_data is exist [15:25:05]produce_requested_data [15:25:05]requested_item fm.sn is exist - process it [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 11 00 00 [15:25:05]Write to MH i2c: E2 08 00 DF 36 80 11 00 00 00 00 00 00 8F [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 17 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 17 00 DF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [15:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:25:05]wFMCommunicate OK [15:25:05]requested_item fd.num is exist - process it [15:25:05]SAM_PROTO_GetFieldsCounters [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 13 00 00 [15:25:05]Write to MH i2c: E2 08 00 E0 36 80 13 00 00 00 00 00 00 92 [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 62 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 62 00 E0 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [15:25:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:05]wFMCommunicate OK [15:25:05]SAM_PROTO_GetFieldsCounters done [15:25:05]requested_item shift.num is exist - process it [15:25:05]requested_item shift.opened is exist - process it [15:25:05]req_shift_opened [15:25:05]FM_GetShiftState [15:25:05]SAM_PROTO_GetShiftState [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 13 01 00 [15:25:05]Write to MH i2c: E2 08 00 E1 36 80 13 01 00 00 00 00 00 94 [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 0E 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 0E 00 E1 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D9 [15:25:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:25:05]wFMCommunicate OK [15:25:05]SAM_PROTO_GetShiftState done [15:25:05]FM_GetShiftState done [15:25:05]req_shift_opened done [15:25:05]requested_item shift.open_date is exist - process it [15:25:05]req_shift_open_date [15:25:05]req_shift_open_date done [15:25:05]produce_requested_data done [15:25:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73892,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:25:05]process_action_free close_receipt [15:25:05]json_value_free [15:25:05]json_value_free done [15:25:05]process_json_proto returns [15:25:05]Send response to host [15:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73892,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:25:05]free response buf [15:25:05]execute_script done [15:25:05]execute_script returns [15:25:05]free content buf [15:25:05]Sock 8.Close socket [15:25:05]Sock 8.Thread stoped [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:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:16]accept exits with 9 [15:26:16]New connection [15:26:16]New thread 3067432292 created [15:26:16]Thread 3067575652 joined [15:26:16]Waiting for new connection... [15:26:16] Sock 9.Parse request [15:26:16]Sock 9.Check first char [15:26:16]Sock 9.First char is OK [15:26:16]request: POST /json_proto HTTP/1.0 [15:26:16]Method: POST [15:26:16]URL: /json_proto [15:26:16]Method is POST - this is cgi request [15:26:16]url: /json_proto [15:26:16]query_string will be loaded in cgi processing [15:26:16]execute_cgi json_proto POST (null) [15:26:16]execute_cgi path=json_proto method=POST [15:26:16]POST find Content-Length [15:26:16]Host: 172.17.44.196:8080 [15:26:16]Content-Length: 678 [15:26:16]Content-Type: application/json [15:26:16] [15:26:16]POST finish read [15:26:16]Found Content-Length = 678 [15:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963095", "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" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:16]execute_script... [15:26: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)1963095", "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" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:16]POST & json_proto [15:26:16]process_json_proto [15:26:16]json parsed OK: [15:26:16]protocol is kg_v1.0 [15:26:16]action value=close_receipt [15:26:16]process_action close_receipt [15:26:16]cmd_close_receipt [15:26:16]MH_GetDate [15:26:16]Write to MH i2c: F0 00 00 E2 36 07 [15:26:16]Write i2c OK [15:26:16]MH_I2C_Read... [15:26:16]Read from MH i2c: F0 [15:26:16]MH_I2C_Read... [15:26:16]Read from MH i2c: F0 09 00 [15:26:16]MH_I2C_Read... [15:26:16]Read from MH i2c: F0 09 00 E2 36 00 1A 21 15 67 E7 19 F8 65 24 [15:26:16]GetLastDocTimeStamp 1729437903 [15:26:16]current date 1729437978 [15:26:16]FM_GetShiftState [15:26:16]SAM_PROTO_GetShiftState [15:26:16]wFMCommunicate request_size=4 [15:26:16]MH_SAM_APDU [15:26:16]CAPDU: 80 13 01 00 [15:26:16]Write to MH i2c: E2 08 00 E3 36 80 13 01 00 00 00 00 00 96 [15:26:16]Write i2c OK [15:26:16]MH_I2C_Read... [15:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:16]Read from MH i2c: E2 [15:26:16]MH_I2C_Read... [15:26:16]Read from MH i2c: E2 0E 00 [15:26:16]MH_I2C_Read... [15:26:16]Read from MH i2c: E2 0E 00 E3 36 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [15:26:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:26:16]wFMCommunicate OK [15:26:16]SAM_PROTO_GetShiftState done [15:26:16]FM_GetShiftState done [15:26:16]opened in 1729384303 [15:26:16]opened+sec_in_day 1729470703 [15:26:16]quantity*price = 14049 [15:26:16]sum+1 = 14050 [15:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 219 20.10.2024 15:26 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73893 ФПД: 95202177138348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152618&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73893&fm=95202177138348&tin=02508201610067®Number=0000000000161154&sum=14000 [15:26:17]StoreToDocumentArchive [15:26:17]shift 170 fd 73893 [15:26:17]save to /storage/0170/doc_00073893 [15:26:17]save last doc name /storage/0170/doc_00073893 to /storage/kkm_last_doc_name [15:26:17]save OK [15:26:17]Clear old archive folders... [15:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:17]tlvbuf is 00329D10 [15:26:17]SAM_PROTO_ClearQueue [15:26:17]wFMCommunicate request_size=4 [15:26:17]MH_SAM_APDU [15:26:17]CAPDU: 80 09 00 00 [15:26:17]Write to MH i2c: E2 08 00 F0 36 80 09 00 00 00 00 00 00 98 [15:26:17]Write i2c OK [15:26:17]MH_I2C_Read... [15:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:17]Read from MH i2c: E2 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 F0 36 00 90 00 9A [15:26:17]RAPDU: 90 00 [15:26:17]wFMCommunicate OK [15:26:17]SAM_PROTO_ClearQueue done [15:26:17]KKMCreateOFDPacket [15:26:17]OFDProtocolAddRootSTLVToBuf [15:26:17]FM_MakeSignedData [15:26:17]FM_MakeSignedData [15:26:17]SAM_PROTO_SignData [15:26:17]wFMCommunicate request_size=4 [15:26:17]MH_SAM_APDU [15:26:17]CAPDU: 80 0D 01 02 [15:26:17]Write to MH i2c: E2 08 00 F1 36 80 0D 01 02 00 00 00 00 A0 [15:26:17]Write i2c OK [15:26:17]MH_I2C_Read... [15:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:17]Read from MH i2c: E2 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 F1 36 00 90 00 9B [15:26:17]RAPDU: 90 00 [15:26:17]wFMCommunicate OK [15:26:17]wFMCommunicate request_size=255 [15:26:17]MH_SAM_APDU [15:26:17]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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 DB 00 00 00 F4 03 04 00 1A 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 20 01 00 35 04 06 00 56 [15:26:17]Write to MH i2c: E2 02 01 F2 36 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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 DB 00 00 00 F4 03 04 00 1A 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 20 01 00 35 04 06 00 56 00 00 A5 [15:26:17]Write i2c OK [15:26:17]MH_I2C_Read... [15:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:17]Read from MH i2c: E2 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 F2 36 00 90 00 9C [15:26:17]RAPDU: 90 00 [15:26:17]wFMCommunicate OK [15:26:17]wFMCommunicate request_size=10 [15:26:17]MH_SAM_APDU [15:26:17]CAPDU: 80 0D 02 02 05 95 FB F3 3E AC [15:26:17]Write to MH i2c: E2 0D 00 F3 36 80 0D 02 02 05 00 95 FB F3 3E AC 00 00 1A [15:26:17]Write i2c OK [15:26:17]MH_I2C_Read... [15:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:17]Read from MH i2c: E2 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 03 00 F3 36 00 90 00 9D [15:26:17]RAPDU: 90 00 [15:26:17]wFMCommunicate OK [15:26:17]wFMCommunicate request_size=4 [15:26:17]MH_SAM_APDU [15:26:17]CAPDU: 80 0D 03 02 [15:26:17]Write to MH i2c: E2 08 00 F4 36 80 0D 03 02 00 00 00 00 A5 [15:26:17]Write i2c OK [15:26:17]MH_I2C_Read... [15:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:17]Read from MH i2c: E2 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 0B 00 [15:26:17]MH_I2C_Read... [15:26:17]Read from MH i2c: E2 0B 00 F4 36 00 7A 1E 59 14 7A B0 59 C9 90 00 F7 [15:26:17]RAPDU: 7A 1E 59 14 7A B0 59 C9 90 00 [15:26:17]wFMCommunicate OK [15:26:17]SAM_PROTO_SignData done [15:26:17]FM_MakeSignedData done [15:26:17]CreateOFDProtocolMessage [15:26:17]wFMCommunicate request_size=4 [15:26:17]MH_SAM_APDU [15:26:17]CAPDU: 80 11 00 00 [15:26:17]Write to MH i2c: E2 08 00 F5 36 80 11 00 00 00 00 00 00 A5 [15:26:17]Write i2c OK [15:26:17]MH_I2C_Read... [15:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:18]Read from MH i2c: E2 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: E2 17 00 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: E2 17 00 F5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [15:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:26:18]wFMCommunicate OK [15:26:18]CreateOFDProtocolMessage done [15:26:18]OFDSenderStorePacket 73893 [15:26:18]StoreOFDPacket docnum=73893 [15:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E 77 07 01 52 8B 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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 DB 00 00 00 F4 03 04 00 1A 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 20 01 00 35 04 06 00 56 95 FB F3 3E AC 7A 1E 59 14 7A B0 59 C9 [15:26:18]CheckFolder [15:26:18]dirname=/storage/ofd_packets [15:26:18]CheckFolder done [15:26:18]ProducePacketName [15:26:18]name=ofd_packets/00073893 [15:26:18]NVStorageSaveData ofd_packets/00073893 [15:26:18]File name is /storage/ofd_packets/00073893 [15:26:18]Write 301 bytes [15:26:18]NVStorageSaveData done [15:26:18]OFDSenderStorePacket done [15:26:18]KKMCreateOFDPacket done [15:26:18]NVStorageSaveData kkm_last_timestamp [15:26:18]File name is /storage/kkm_last_timestamp [15:26:18]Write 4 bytes [15:26:18]NVStorageSaveData done [15:26:18]ExternCall_PrintAddStr [15:26:18]wPrintStart [15:26:18]Write to MH i2c: 01 00 00 F6 36 2C [15:26:18]OFD Sender: Processing packet 73893 [packets to send 15, broken 14] [15:26:18]ProducePacketName [15:26:18]name=ofd_packets/00073893 [15:26:18]OFD Sender: To server: pG, [15:26:18]CommunicateWithHost lk.salyk.kg:30040 [15:26:18]ConnectInit lk.salyk.kg [15:26:18]Write i2c OK [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: 01 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: 01 07 00 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: 01 07 00 F6 36 00 00 00 00 00 FF 0F 41 [15:26:18]RasterBufferAndPrint [15:26:18]line Счет N : (1)1963095 [15:26:18]line ИНН: 02508201610067 [15:26:18]line Контрольно-Кассовый Чек [15:26:18]line ПРОДАЖА [15:26:18]line ТРК (МРК, ГНК) : 33 [15:26:18]line Товар: 2710124130 [15:26:18]line Аи-92-К-5 [15:26:18]line 2.100 * 66.90 [15:26:18]line = 140.49 [15:26:18]line НДС 12% НСП 1% [15:26:18]line > о реализуемом товаре [15:26:18]line ОКРУГЛЕНИЕ: -0.49 [15:26:18]line ИТОГО: 140.00 [15:26:18]line Внесено: 140.00 [15:26:18]line СДАЧА: 0.00 [15:26:18]line НСП 1% : 1.24 [15:26:18]line НДС 12% : 14.92 [15:26:18]line Наличными: 140.00 [15:26:18]line Безнал.: 0.00 [15:26:18]line Место: АЗС № 133 "Партнер Нефть" [15:26:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:26:18]line СНО: Общий режим [15:26:18]line Чек 219 20.10.2024 15:26 [15:26:18]line Смена: 170 ФФД: 1.0 [15:26:18]line ЗНМ: 0300000020 [15:26:18]line РНМ: 0000000000161154 [15:26:18]line Версия ККМ: v1.0 [15:26:18]line ФМ: 0000000000963323 [15:26:18]line ФД: 73893 [15:26:18]line ФПД: 95202177138348 [15:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152618&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73893&fm=95202177138348&tin=02508201610067®Number=0000000000161154&sum=14000 [15:26:18]Connected sock=10 [15:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E 77 07 01 52 8B 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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 DB 00 00 00 F4 03 04 00 1A 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 20 01 00 35 04 06 00 56 95 FB F3 3E AC 7A 1E 59 14 7A B0 59 C9 [15:26:18]written 0, free lines is 4095 [15:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3C D9 47 00 7D 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 39 36 33 33 32 33 10 04 04 00 A5 20 01 00 F4 03 04 00 FE C9 14 67 B6 04 01 00 00 F5 2A 3F E2 E4 3C 6B DD [15:26:18]CommunicateWithHost err = 0 [15:26:18]CheckOFDResponse [15:26:18]1017 (14) - 77093643461234 [15:26:18]1041 (16) - 0000000000963323 [15:26:18]1040 (4) - 73893 [15:26:18]1012 (4) - 20.10.2024 09:14 [15:26:18]1206 (1) - 0 [15:26:18]OFD Sender: Remove packet 73893 [15:26:18]ProducePacketName [15:26:18]name=ofd_packets/00073893 [15:26:18]NVStorageDeleteData [15:26:18]Write to MH i2c: 01 00 00 20 37 57 [15:26:18]Write i2c OK [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: 01 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: 01 07 00 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: 01 07 00 20 37 00 00 00 00 00 B5 0C 1F [15:26:18]RasterBufferAndPrint [15:26:18]line [15:26:18]line [15:26:18]line [15:26:18]line [15:26:18]line [15:26:18]written 0, free lines is 3258 [15:26:18]MH_Cut [15:26:18]Write to MH i2c: D1 01 00 27 37 01 30 [15:26:18]Write i2c OK [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: D1 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: D1 01 00 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: D1 01 00 27 37 00 2F [15:26:18]Write to MH i2c: 01 00 00 28 37 5F [15:26:18]Write i2c OK [15:26:18]MH_I2C_Read... [15:26:19]OFD Sender: No OFD packet to send [15:26:19]*** Cut start [15:26:19]*** Partial cut [15:26:19]*** CUTSNS_PIN = 1 [15:26:19]*** CUTSNS_PIN = 0 [15:26:19]*** Brake cut motor [15:26:20]Read from MH i2c: 01 [15:26:20]MH_I2C_Read... [15:26:20]*** Stop cut motor [15:26:20]*** Cut end [15:26:20]Read from MH i2c: 01 07 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 07 00 28 37 00 00 00 00 00 FF 0F 74 [15:26:20]process_action close_receipt done [15:26:20]requested_data is exist [15:26:20]produce_requested_data [15:26:20]requested_item fm.sn is exist - process it [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 11 00 00 [15:26:20]Write to MH i2c: E2 08 00 29 37 80 11 00 00 00 00 00 00 DA [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 17 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 17 00 29 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 27 [15:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:26:20]wFMCommunicate OK [15:26:20]requested_item fd.num is exist - process it [15:26:20]SAM_PROTO_GetFieldsCounters [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 13 00 00 [15:26:20]Write to MH i2c: E2 08 00 2A 37 80 13 00 00 00 00 00 00 DD [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 62 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 62 00 2A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [15:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:20]wFMCommunicate OK [15:26:20]SAM_PROTO_GetFieldsCounters done [15:26:20]requested_item shift.num is exist - process it [15:26:20]requested_item shift.opened is exist - process it [15:26:20]req_shift_opened [15:26:20]FM_GetShiftState [15:26:20]SAM_PROTO_GetShiftState [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 13 01 00 [15:26:20]Write to MH i2c: E2 08 00 2B 37 80 13 01 00 00 00 00 00 DF [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 0E 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 0E 00 2B 37 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 24 [15:26:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:26:20]wFMCommunicate OK [15:26:20]SAM_PROTO_GetShiftState done [15:26:20]FM_GetShiftState done [15:26:20]req_shift_opened done [15:26:20]requested_item shift.open_date is exist - process it [15:26:20]req_shift_open_date [15:26:20]req_shift_open_date done [15:26:20]produce_requested_data done [15:26:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73893,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:26:20]process_action_free close_receipt [15:26:20]json_value_free [15:26:20]json_value_free done [15:26:20]process_json_proto returns [15:26:20]Send response to host [15:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73893,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:26:20]free response buf [15:26:20]execute_script done [15:26:20]execute_script returns [15:26:20]free content buf [15:26:20]Sock 9.Close socket [15:26:20]Sock 9.Thread stoped [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:28:59]accept exits with 8 [15:28:59]New connection [15:28:59]New thread 3067575652 created [15:28:59]Thread 3067432292 joined [15:28:59]Waiting for new connection... [15:28:59] Sock 8.Parse request [15:28:59]Sock 8.Check first char [15:28:59]Sock 8.First char is OK [15:28:59]request: POST /json_proto HTTP/1.0 [15:28:59]Method: POST [15:28:59]URL: /json_proto [15:28:59]Method is POST - this is cgi request [15:28:59]url: /json_proto [15:28:59]query_string will be loaded in cgi processing [15:28:59]execute_cgi json_proto POST (null) [15:28:59]execute_cgi path=json_proto method=POST [15:28:59]POST find Content-Length [15:28:59]Host: 172.17.44.196:8080 [15:28:59]Content-Length: 680 [15:28:59]Content-Type: application/json [15:28:59] [15:28:59]POST finish read [15:28:59]Found Content-Length = 680 [15:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:28:59]execute_script... [15:28:59]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)1963096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:28:59]POST & json_proto [15:28:59]process_json_proto [15:28:59]json parsed OK: [15:28:59]protocol is kg_v1.0 [15:28:59]action value=close_receipt [15:28:59]process_action close_receipt [15:28:59]cmd_close_receipt [15:28:59]MH_GetDate [15:28:59]Write to MH i2c: F0 00 00 2C 37 52 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 09 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 09 00 2C 37 00 BD 21 15 67 E7 19 F8 65 12 [15:28:59]GetLastDocTimeStamp 1729437978 [15:28:59]current date 1729438141 [15:28:59]FM_GetShiftState [15:28:59]SAM_PROTO_GetShiftState [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 13 01 00 [15:28:59]Write to MH i2c: E2 08 00 2D 37 80 13 01 00 00 00 00 00 E1 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 0E 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 0E 00 2D 37 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 26 [15:28:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:28:59]wFMCommunicate OK [15:28:59]SAM_PROTO_GetShiftState done [15:28:59]FM_GetShiftState done [15:28:59]opened in 1729384303 [15:28:59]opened+sec_in_day 1729470703 [15:28:59]quantity*price = 100050 [15:28:59]sum+1 = 100052 [15:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 220 20.10.2024 15:29 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73894 ФПД: 87285456054638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73894&fm=87285456054638&tin=02508201610067®Number=0000000000161154&sum=100000 [15:29:00]StoreToDocumentArchive [15:29:00]shift 170 fd 73894 [15:29:00]save to /storage/0170/doc_00073894 [15:29:00]save last doc name /storage/0170/doc_00073894 to /storage/kkm_last_doc_name [15:29:00]save OK [15:29:00]Clear old archive folders... [15:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:29:00]tlvbuf is 003DA610 [15:29:00]SAM_PROTO_ClearQueue [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 09 00 00 [15:29:00]Write to MH i2c: E2 08 00 3A 37 80 09 00 00 00 00 00 00 E3 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 3A 37 00 90 00 E5 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]SAM_PROTO_ClearQueue done [15:29:00]KKMCreateOFDPacket [15:29:00]OFDProtocolAddRootSTLVToBuf [15:29:00]FM_MakeSignedData [15:29:00]FM_MakeSignedData [15:29:00]SAM_PROTO_SignData [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 0D 01 02 [15:29:00]Write to MH i2c: E2 08 00 3B 37 80 0D 01 02 00 00 00 00 EB [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 03 00 3B 37 00 90 00 E6 [15:29:00]RAPDU: 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=255 [15:29:00]MH_SAM_APDU [15:29:00]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 DC 00 00 00 F4 03 04 00 BE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 20 01 00 35 04 06 00 4F 62 BA 9A [15:29:00]Write to MH i2c: E2 02 01 3C 37 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 DC 00 00 00 F4 03 04 00 BE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 20 01 00 35 04 06 00 4F 62 BA 9A 00 00 10 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 3C 37 00 90 00 E7 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=7 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 02 02 02 29 6E [15:29:01]Write to MH i2c: E2 0A 00 3D 37 80 0D 02 02 02 00 29 6E 00 00 89 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 3D 37 00 90 00 E8 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 03 02 [15:29:01]Write to MH i2c: E2 08 00 3E 37 80 0D 03 02 00 00 00 00 F0 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 0B 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 0B 00 3E 37 00 38 30 EC ED BC 09 BF 07 90 00 BD [15:29:01]RAPDU: 38 30 EC ED BC 09 BF 07 90 00 [15:29:01]wFMCommunicate OK [15:29:01]SAM_PROTO_SignData done [15:29:01]FM_MakeSignedData done [15:29:01]CreateOFDProtocolMessage [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 11 00 00 [15:29:01]Write to MH i2c: E2 08 00 3F 37 80 11 00 00 00 00 00 00 F0 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 17 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 17 00 3F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3D [15:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:29:01]wFMCommunicate OK [15:29:01]CreateOFDProtocolMessage done [15:29:01]OFDSenderStorePacket 73894 [15:29:01]StoreOFDPacket docnum=73894 [15:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 71 E9 04 01 31 5F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 DC 00 00 00 F4 03 04 00 BE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 20 01 00 35 04 06 00 4F 62 BA 9A 29 6E 38 30 EC ED BC 09 BF 07 [15:29:01]CheckFolder [15:29:01]dirname=/storage/ofd_packets [15:29:01]CheckFolder done [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00073894 [15:29:01]NVStorageSaveData ofd_packets/00073894 [15:29:01]File name is /storage/ofd_packets/00073894 [15:29:01]Write 298 bytes [15:29:01]NVStorageSaveData done [15:29:01]OFDSenderStorePacket done [15:29:01]KKMCreateOFDPacket done [15:29:01]NVStorageSaveData kkm_last_timestamp [15:29:01]File name is /storage/kkm_last_timestamp [15:29:01]Write 4 bytes [15:29:01]NVStorageSaveData done [15:29:01]ExternCall_PrintAddStr [15:29:01]wPrintStart [15:29:01]Write to MH i2c: 01 00 00 40 37 77 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 40 37 00 00 00 00 00 FF 0F 8C [15:29:01]RasterBufferAndPrint [15:29:01]line Счет N : (1)1963096 [15:29:01]line ИНН: 02508201610067 [15:29:01]line Контрольно-Кассовый Чек [15:29:01]line ПРОДАЖА [15:29:01]line ТРК (МРК, ГНК) : 11 [15:29:01]line Товар: 2710194210 [15:29:01]line ДТ-К-5 [15:29:01]line 13.130 * 76.20 [15:29:01]line = 1000.51 [15:29:01]line НДС 12% НСП 1% [15:29:01]line > о реализуемом товаре [15:29:01]line ОКРУГЛЕНИЕ: -0.51 [15:29:01]line ИТОГО: 1000.00 [15:29:01]line Внесено: 1000.00 [15:29:01]line СДАЧА: 0.00 [15:29:01]line НСП 1% : 8.85 [15:29:01]line НДС 12% : 106.25 [15:29:01]line Наличными: 1000.00 [15:29:01]line Безнал.: 0.00 [15:29:01]line Место: АЗС № 133 "Партнер Нефть" [15:29:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:29:01]line СНО: Общий режим [15:29:01]line Чек 220 20.10.2024 15:29 [15:29:01]line Смена: 170 ФФД: 1.0 [15:29:01]line ЗНМ: 0300000020 [15:29:01]line РНМ: 0000000000161154 [15:29:01]line Версия ККМ: v1.0 [15:29:01]line ФМ: 0000000000963323 [15:29:01]line ФД: 73894 [15:29:01]line ФПД: 87285456054638 [15:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73894&fm=87285456054638&tin=02508201610067®Number=0000000000161154&sum=100000 [15:29:01]OFD Sender: Processing packet 73894 [packets to send 15, broken 14] [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00073894 [15:29:01]OFD Sender: To server: pG, [15:29:01]CommunicateWithHost lk.salyk.kg:30040 [15:29:01]ConnectInit lk.salyk.kg [15:29:01]written 0, free lines is 4095 [15:29:01]Connected sock=10 [15:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 71 E9 04 01 31 5F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 DC 00 00 00 F4 03 04 00 BE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 20 01 00 35 04 06 00 4F 62 BA 9A 29 6E 38 30 EC ED BC 09 BF 07 [15:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0B F0 47 00 64 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 39 36 33 33 32 33 10 04 04 00 A6 20 01 00 F4 03 04 00 A2 CA 14 67 B6 04 01 00 00 58 2C 29 ED D8 80 B1 5D [15:29:02]CommunicateWithHost err = 0 [15:29:02]CheckOFDResponse [15:29:02]1017 (14) - 77093643461234 [15:29:02]1041 (16) - 0000000000963323 [15:29:02]1040 (4) - 73894 [15:29:02]1012 (4) - 20.10.2024 09:17 [15:29:02]1206 (1) - 0 [15:29:02]OFD Sender: Remove packet 73894 [15:29:02]ProducePacketName [15:29:02]name=ofd_packets/00073894 [15:29:02]NVStorageDeleteData [15:29:02]Write to MH i2c: 01 00 00 6A 37 A1 [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 6A 37 00 00 00 00 00 B5 0C 69 [15:29:02]RasterBufferAndPrint [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]written 0, free lines is 3258 [15:29:02]MH_Cut [15:29:02]Write to MH i2c: D1 01 00 71 37 01 7A [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 01 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 01 00 71 37 00 79 [15:29:02]Write to MH i2c: 01 00 00 72 37 A9 [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]OFD Sender: No OFD packet to send [15:29:03]*** Cut start [15:29:03]*** Partial cut [15:29:03]*** CUTSNS_PIN = 1 [15:29:03]*** CUTSNS_PIN = 0 [15:29:03]*** Brake cut motor [15:29:03]Read from MH i2c: 01 [15:29:03]MH_I2C_Read... [15:29:03]*** Stop cut motor [15:29:03]*** Cut end [15:29:03]Read from MH i2c: 01 07 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: 01 07 00 72 37 00 00 00 00 00 FF 0F BE [15:29:03]process_action close_receipt done [15:29:03]requested_data is exist [15:29:03]produce_requested_data [15:29:03]requested_item fm.sn is exist - process it [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 11 00 00 [15:29:03]Write to MH i2c: E2 08 00 73 37 80 11 00 00 00 00 00 00 24 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 17 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 17 00 73 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 71 [15:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:29:03]wFMCommunicate OK [15:29:03]requested_item fd.num is exist - process it [15:29:03]SAM_PROTO_GetFieldsCounters [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 13 00 00 [15:29:03]Write to MH i2c: E2 08 00 74 37 80 13 00 00 00 00 00 00 27 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 62 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 62 00 74 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [15:29:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:03]wFMCommunicate OK [15:29:03]SAM_PROTO_GetFieldsCounters done [15:29:03]requested_item shift.num is exist - process it [15:29:03]requested_item shift.opened is exist - process it [15:29:03]req_shift_opened [15:29:03]FM_GetShiftState [15:29:03]SAM_PROTO_GetShiftState [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 13 01 00 [15:29:03]Write to MH i2c: E2 08 00 75 37 80 13 01 00 00 00 00 00 29 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 0E 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 0E 00 75 37 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6E [15:29:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:29:03]wFMCommunicate OK [15:29:03]SAM_PROTO_GetShiftState done [15:29:03]FM_GetShiftState done [15:29:03]req_shift_opened done [15:29:03]requested_item shift.open_date is exist - process it [15:29:03]req_shift_open_date [15:29:03]req_shift_open_date done [15:29:03]produce_requested_data done [15:29:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73894,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:29:03]process_action_free close_receipt [15:29:03]json_value_free [15:29:03]json_value_free done [15:29:03]process_json_proto returns [15:29:03]Send response to host [15:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73894,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:29:03]free response buf [15:29:03]execute_script done [15:29:03]execute_script returns [15:29:03]free content buf [15:29:03]Sock 8.Close socket [15:29:03]Sock 8.Thread stoped [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]accept exits with 9 [15:29:32]New connection [15:29:32]New thread 3067432292 created [15:29:32]Thread 3067575652 joined [15:29:32]Waiting for new connection... [15:29:32] Sock 9.Parse request [15:29:32]Sock 9.Check first char [15:29:32]Sock 9.First char is OK [15:29:32]request: POST /json_proto HTTP/1.0 [15:29:32]Method: POST [15:29:32]URL: /json_proto [15:29:32]Method is POST - this is cgi request [15:29:32]url: /json_proto [15:29:32]query_string will be loaded in cgi processing [15:29:32]execute_cgi json_proto POST (null) [15:29:32]execute_cgi path=json_proto method=POST [15:29:32]POST find Content-Length [15:29:32]Host: 172.17.44.196:8080 [15:29:32]Content-Length: 748 [15:29:32]Content-Type: application/json [15:29:32] [15:29:32]POST finish read [15:29:32]Found Content-Length = 748 [15:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.610, "sum" : 520.52, "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: Mbank", "payments": [ { "type": 1, "sum" : 520.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:32]execute_script... [15:29: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)1963097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.610, "sum" : 520.52, "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: Mbank", "payments": [ { "type": 1, "sum" : 520.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:32]POST & json_proto [15:29:32]process_json_proto [15:29:32]json parsed OK: [15:29:32]protocol is kg_v1.0 [15:29:32]action value=close_receipt [15:29:32]process_action close_receipt [15:29:32]cmd_close_receipt [15:29:32]MH_GetDate [15:29:32]Write to MH i2c: F0 00 00 76 37 9C [15:29:32]Write i2c OK [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: F0 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: F0 09 00 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: F0 09 00 76 37 00 DE 21 15 67 E7 19 F8 65 7D [15:29:32]GetLastDocTimeStamp 1729438142 [15:29:32]current date 1729438174 [15:29:32]FM_GetShiftState [15:29:32]SAM_PROTO_GetShiftState [15:29:32]wFMCommunicate request_size=4 [15:29:32]MH_SAM_APDU [15:29:32]CAPDU: 80 13 01 00 [15:29:32]Write to MH i2c: E2 08 00 77 37 80 13 01 00 00 00 00 00 2B [15:29:32]Write i2c OK [15:29:32]MH_I2C_Read... [15:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:32]Read from MH i2c: E2 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: E2 0E 00 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: E2 0E 00 77 37 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 70 [15:29:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:29:32]wFMCommunicate OK [15:29:32]SAM_PROTO_GetShiftState done [15:29:32]FM_GetShiftState done [15:29:32]opened in 1729384303 [15:29:32]opened+sec_in_day 1729470703 [15:29:32]quantity*price = 52052 [15:29:32]sum+1 = 52053 [15:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 520.52 НСП 1% : 4.61 НДС 12% : 55.28 Наличными: 0.00 Безнал.: 520.52 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 221 20.10.2024 15:29 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73895 ФПД: 112568665945465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152934&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73895&fm=112568665945465&tin=02508201610067®Number=0000000000161154&sum=52052 [15:29:33]StoreToDocumentArchive [15:29:33]shift 170 fd 73895 [15:29:33]save to /storage/0170/doc_00073895 [15:29:33]save last doc name /storage/0170/doc_00073895 to /storage/kkm_last_doc_name [15:29:33]save OK [15:29:33]Clear old archive folders... [15:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:29:33]tlvbuf is 003230D0 [15:29:33]SAM_PROTO_ClearQueue [15:29:33]wFMCommunicate request_size=4 [15:29:33]MH_SAM_APDU [15:29:33]CAPDU: 80 09 00 00 [15:29:33]Write to MH i2c: E2 08 00 84 37 80 09 00 00 00 00 00 00 2D [15:29:33]Write i2c OK [15:29:33]MH_I2C_Read... [15:29:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:33]Read from MH i2c: E2 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 03 00 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 03 00 84 37 00 90 00 2F [15:29:33]RAPDU: 90 00 [15:29:33]wFMCommunicate OK [15:29:33]SAM_PROTO_ClearQueue done [15:29:33]KKMCreateOFDPacket [15:29:33]OFDProtocolAddRootSTLVToBuf [15:29:33]FM_MakeSignedData [15:29:33]FM_MakeSignedData [15:29:33]SAM_PROTO_SignData [15:29:33]wFMCommunicate request_size=4 [15:29:33]MH_SAM_APDU [15:29:33]CAPDU: 80 0D 01 02 [15:29:33]Write to MH i2c: E2 08 00 85 37 80 0D 01 02 00 00 00 00 35 [15:29:33]Write i2c OK [15:29:33]MH_I2C_Read... [15:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:33]Read from MH i2c: E2 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 03 00 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 03 00 85 37 00 90 00 30 [15:29:33]RAPDU: 90 00 [15:29:33]wFMCommunicate OK [15:29:33]wFMCommunicate request_size=253 [15:29:33]MH_SAM_APDU [15:29:33]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BA 1D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 54 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 20 01 00 35 04 06 00 66 61 6F 58 B5 79 [15:29:33]Write to MH i2c: E2 00 01 86 37 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BA 1D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 54 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 20 01 00 35 04 06 00 66 61 6F 58 B5 79 00 00 E7 [15:29:33]Write i2c OK [15:29:33]MH_I2C_Read... [15:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:33]Read from MH i2c: E2 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 03 00 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 03 00 86 37 00 90 00 31 [15:29:33]RAPDU: 90 00 [15:29:33]wFMCommunicate OK [15:29:33]wFMCommunicate request_size=4 [15:29:33]MH_SAM_APDU [15:29:33]CAPDU: 80 0D 03 02 [15:29:33]Write to MH i2c: E2 08 00 87 37 80 0D 03 02 00 00 00 00 39 [15:29:33]Write i2c OK [15:29:33]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0B 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0B 00 87 37 00 F9 95 9F 80 77 A3 FD 96 90 00 94 [15:29:34]RAPDU: F9 95 9F 80 77 A3 FD 96 90 00 [15:29:34]wFMCommunicate OK [15:29:34]SAM_PROTO_SignData done [15:29:34]FM_MakeSignedData done [15:29:34]CreateOFDProtocolMessage [15:29:34]wFMCommunicate request_size=4 [15:29:34]MH_SAM_APDU [15:29:34]CAPDU: 80 11 00 00 [15:29:34]Write to MH i2c: E2 08 00 88 37 80 11 00 00 00 00 00 00 39 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 17 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 17 00 88 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [15:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:29:34]wFMCommunicate OK [15:29:34]CreateOFDProtocolMessage done [15:29:34]OFDSenderStorePacket 73895 [15:29:34]StoreOFDPacket docnum=73895 [15:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 84 84 00 01 3D C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BA 1D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 54 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 20 01 00 35 04 06 00 66 61 6F 58 B5 79 F9 95 9F 80 77 A3 FD 96 [15:29:34]CheckFolder [15:29:34]dirname=/storage/ofd_packets [15:29:34]CheckFolder done [15:29:34]ProducePacketName [15:29:34]name=ofd_packets/00073895 [15:29:34]NVStorageSaveData ofd_packets/00073895 [15:29:34]File name is /storage/ofd_packets/00073895 [15:29:34]Write 294 bytes [15:29:34]NVStorageSaveData done [15:29:34]OFDSenderStorePacket done [15:29:34]KKMCreateOFDPacket done [15:29:34]NVStorageSaveData kkm_last_timestamp [15:29:34]File name is /storage/kkm_last_timestamp [15:29:34]Write 4 bytes [15:29:34]NVStorageSaveData done [15:29:34]ExternCall_PrintAddStr [15:29:34]wPrintStart [15:29:34]Write to MH i2c: 01 00 00 89 37 C0 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 07 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 07 00 89 37 00 00 00 00 00 FF 0F D5 [15:29:34]RasterBufferAndPrint [15:29:34]line Счет N : (1)1963097 [15:29:34]line ИНН: 02508201610067 [15:29:34]line Контрольно-Кассовый Чек [15:29:34]line ПРОДАЖА [15:29:34]line ТРК (МРК, ГНК) : 42 [15:29:34]line Товар: 2710124130 [15:29:34]line SU-92 [15:29:34]line 7.610 * 68.40 [15:29:34]line = 520.52 [15:29:34]line НДС 12% НСП 1% [15:29:34]line > о реализуемом товаре [15:29:34]line ИТОГО: 520.52 [15:29:34]line НСП 1% : 4.61 [15:29:34]line НДС 12% : 55.28 [15:29:34]line Наличными: 0.00 [15:29:34]line Безнал.: 520.52 [15:29:34]line Место: АЗС № 133 "Партнер Нефть" [15:29:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:29:34]line СНО: Общий режим [15:29:34]line Чек 221 20.10.2024 15:29 [15:29:34]line Смена: 170 ФФД: 1.0 [15:29:34]line ЗНМ: 0300000020 [15:29:34]line РНМ: 0000000000161154 [15:29:34]line Версия ККМ: v1.0 [15:29:34]line Платежная система: Mbank [15:29:34]line ФМ: 0000000000963323 [15:29:34]line ФД: 73895 [15:29:34]line ФПД: 112568665945465 [15:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152934&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73895&fm=112568665945465&tin=02508201610067®Number=0000000000161154&sum=52052 [15:29:34]OFD Sender: Processing packet 73895 [packets to send 15, broken 14] [15:29:34]ProducePacketName [15:29:34]name=ofd_packets/00073895 [15:29:34]OFD Sender: To server: pG, [15:29:34]CommunicateWithHost lk.salyk.kg:30040 [15:29:34]ConnectInit lk.salyk.kg [15:29:34]written 0, free lines is 4095 [15:29:34]Connected sock=10 [15:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 84 84 00 01 3D C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BA 1D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 54 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 20 01 00 35 04 06 00 66 61 6F 58 B5 79 F9 95 9F 80 77 A3 FD 96 [15:29:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF 72 47 00 7E 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 39 36 33 33 32 33 10 04 04 00 A7 20 01 00 F4 03 04 00 C3 CA 14 67 B6 04 01 00 00 9E EE D9 5B B6 10 DD 69 [15:29:34]CommunicateWithHost err = 0 [15:29:34]CheckOFDResponse [15:29:34]1017 (14) - 77093643461234 [15:29:34]1041 (16) - 0000000000963323 [15:29:34]1040 (4) - 73895 [15:29:34]1012 (4) - 20.10.2024 09:17 [15:29:34]1206 (1) - 0 [15:29:34]OFD Sender: Remove packet 73895 [15:29:34]ProducePacketName [15:29:34]name=ofd_packets/00073895 [15:29:34]NVStorageDeleteData [15:29:34]Write to MH i2c: 01 00 00 B1 37 E8 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 07 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 07 00 B1 37 00 00 00 00 00 EC 0C E7 [15:29:34]RasterBufferAndPrint [15:29:34]line [15:29:34]line [15:29:34]line [15:29:34]line [15:29:34]line [15:29:34]written 0, free lines is 3315 [15:29:34]MH_Cut [15:29:34]Write to MH i2c: D1 01 00 B8 37 01 C1 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: D1 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: D1 01 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: D1 01 00 B8 37 00 C0 [15:29:34]Write to MH i2c: 01 00 00 B9 37 F0 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:35]OFD Sender: No OFD packet to send [15:29:35]*** Cut start [15:29:35]*** Partial cut [15:29:35]*** CUTSNS_PIN = 1 [15:29:35]*** CUTSNS_PIN = 0 [15:29:35]*** Brake cut motor [15:29:36]Read from MH i2c: 01 [15:29:36]MH_I2C_Read... [15:29:36]*** Stop cut motor [15:29:36]*** Cut end [15:29:36]Read from MH i2c: 01 07 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 B9 37 00 00 00 00 00 FF 0F 05 [15:29:36]process_action close_receipt done [15:29:36]requested_data is exist [15:29:36]produce_requested_data [15:29:36]requested_item fm.sn is exist - process it [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 11 00 00 [15:29:36]Write to MH i2c: E2 08 00 BA 37 80 11 00 00 00 00 00 00 6B [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 17 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 17 00 BA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [15:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:29:36]wFMCommunicate OK [15:29:36]requested_item fd.num is exist - process it [15:29:36]SAM_PROTO_GetFieldsCounters [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 13 00 00 [15:29:36]Write to MH i2c: E2 08 00 BB 37 80 13 00 00 00 00 00 00 6E [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 62 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 62 00 BB 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [15:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:36]wFMCommunicate OK [15:29:36]SAM_PROTO_GetFieldsCounters done [15:29:36]requested_item shift.num is exist - process it [15:29:36]requested_item shift.opened is exist - process it [15:29:36]req_shift_opened [15:29:36]FM_GetShiftState [15:29:36]SAM_PROTO_GetShiftState [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 13 01 00 [15:29:36]Write to MH i2c: E2 08 00 BC 37 80 13 01 00 00 00 00 00 70 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 0E 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 0E 00 BC 37 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B5 [15:29:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:29:36]wFMCommunicate OK [15:29:36]SAM_PROTO_GetShiftState done [15:29:36]FM_GetShiftState done [15:29:36]req_shift_opened done [15:29:36]requested_item shift.open_date is exist - process it [15:29:36]req_shift_open_date [15:29:36]req_shift_open_date done [15:29:36]produce_requested_data done [15:29:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73895,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:29:36]process_action_free close_receipt [15:29:36]json_value_free [15:29:36]json_value_free done [15:29:36]process_json_proto returns [15:29:36]Send response to host [15:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73895,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:29:36]free response buf [15:29:36]execute_script done [15:29:36]execute_script returns [15:29:36]free content buf [15:29:36]Sock 9.Close socket [15:29:36]Sock 9.Thread stoped [15:29:40]OFD Sender: No OFD packet to send [15:29:40]accept exits with 8 [15:29:40]New connection [15:29:40]New thread 3067575652 created [15:29:40]Thread 3067432292 joined [15:29:40]Waiting for new connection... [15:29:40] Sock 8.Parse request [15:29:40]Sock 8.Check first char [15:29:40]Sock 8.First char is OK [15:29:40]request: POST /json_proto HTTP/1.0 [15:29:40]Method: POST [15:29:40]URL: /json_proto [15:29:40]Method is POST - this is cgi request [15:29:40]url: /json_proto [15:29:40]query_string will be loaded in cgi processing [15:29:40]execute_cgi json_proto POST (null) [15:29:40]execute_cgi path=json_proto method=POST [15:29:40]POST find Content-Length [15:29:40]Host: 172.17.44.196:8080 [15:29:40]Content-Length: 621 [15:29:40]Content-Type: application/json [15:29:40] [15:29:40]POST finish read [15:29:40]Found Content-Length = 621 [15:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:40]execute_script... [15:29: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 : (1)1963098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:40]POST & json_proto [15:29:40]process_json_proto [15:29:40]json parsed OK: [15:29:40]protocol is kg_v1.0 [15:29:40]action value=close_receipt [15:29:40]process_action close_receipt [15:29:40]cmd_close_receipt [15:29:40]MH_GetDate [15:29:40]Write to MH i2c: F0 00 00 BD 37 E3 [15:29:40]Write i2c OK [15:29:40]MH_I2C_Read... [15:29:40]Read from MH i2c: F0 [15:29:40]MH_I2C_Read... [15:29:40]Read from MH i2c: F0 09 00 [15:29:40]MH_I2C_Read... [15:29:40]Read from MH i2c: F0 09 00 BD 37 00 E7 21 15 67 E7 19 F8 65 CD [15:29:40]GetLastDocTimeStamp 1729438174 [15:29:40]current date 1729438183 [15:29:40]FM_GetShiftState [15:29:40]SAM_PROTO_GetShiftState [15:29:40]wFMCommunicate request_size=4 [15:29:40]MH_SAM_APDU [15:29:40]CAPDU: 80 13 01 00 [15:29:40]Write to MH i2c: E2 08 00 BE 37 80 13 01 00 00 00 00 00 72 [15:29:40]Write i2c OK [15:29:40]MH_I2C_Read... [15:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:40]Read from MH i2c: E2 [15:29:40]MH_I2C_Read... [15:29:40]Read from MH i2c: E2 0E 00 [15:29:40]MH_I2C_Read... [15:29:40]Read from MH i2c: E2 0E 00 BE 37 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [15:29:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:29:40]wFMCommunicate OK [15:29:40]SAM_PROTO_GetShiftState done [15:29:40]FM_GetShiftState done [15:29:40]opened in 1729384303 [15:29:40]opened+sec_in_day 1729470703 [15:29:40]quantity*price = 50000 [15:29:40]sum+1 = 50001 [15:29:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 222 20.10.2024 15:29 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73896 ФПД: 237904828529382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152943&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73896&fm=237904828529382&tin=02508201610067®Number=0000000000161154&sum=50000 [15:29:42]StoreToDocumentArchive [15:29:42]shift 170 fd 73896 [15:29:42]save to /storage/0170/doc_00073896 [15:29:42]save last doc name /storage/0170/doc_00073896 to /storage/kkm_last_doc_name [15:29:42]save OK [15:29:42]Clear old archive folders... [15:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:29:42]tlvbuf is 003E6730 [15:29:42]SAM_PROTO_ClearQueue [15:29:42]wFMCommunicate request_size=4 [15:29:42]MH_SAM_APDU [15:29:42]CAPDU: 80 09 00 00 [15:29:42]Write to MH i2c: E2 08 00 CB 37 80 09 00 00 00 00 00 00 74 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:42]Read from MH i2c: E2 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 03 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 03 00 CB 37 00 90 00 76 [15:29:42]RAPDU: 90 00 [15:29:42]wFMCommunicate OK [15:29:42]SAM_PROTO_ClearQueue done [15:29:42]KKMCreateOFDPacket [15:29:42]OFDProtocolAddRootSTLVToBuf [15:29:42]FM_MakeSignedData [15:29:42]FM_MakeSignedData [15:29:42]SAM_PROTO_SignData [15:29:42]wFMCommunicate request_size=4 [15:29:42]MH_SAM_APDU [15:29:42]CAPDU: 80 0D 01 02 [15:29:42]Write to MH i2c: E2 08 00 CC 37 80 0D 01 02 00 00 00 00 7C [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:42]Read from MH i2c: E2 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 03 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 03 00 CC 37 00 90 00 77 [15:29:42]RAPDU: 90 00 [15:29:42]wFMCommunicate OK [15:29:42]wFMCommunicate request_size=253 [15:29:42]MH_SAM_APDU [15:29:42]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 DE 00 00 00 F4 03 04 00 E7 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 20 01 00 35 04 06 00 D8 5F 88 CB 7A E6 [15:29:42]Write to MH i2c: E2 00 01 CD 37 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 DE 00 00 00 F4 03 04 00 E7 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 20 01 00 35 04 06 00 D8 5F 88 CB 7A E6 00 00 28 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:42]Read from MH i2c: E2 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 03 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 03 00 CD 37 00 90 00 78 [15:29:42]RAPDU: 90 00 [15:29:42]wFMCommunicate OK [15:29:42]wFMCommunicate request_size=4 [15:29:42]MH_SAM_APDU [15:29:42]CAPDU: 80 0D 03 02 [15:29:42]Write to MH i2c: E2 08 00 CE 37 80 0D 03 02 00 00 00 00 80 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:42]Read from MH i2c: E2 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 0B 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 0B 00 CE 37 00 16 6C BB AD 65 55 B2 2A 90 00 01 [15:29:42]RAPDU: 16 6C BB AD 65 55 B2 2A 90 00 [15:29:42]wFMCommunicate OK [15:29:42]SAM_PROTO_SignData done [15:29:42]FM_MakeSignedData done [15:29:42]CreateOFDProtocolMessage [15:29:42]wFMCommunicate request_size=4 [15:29:42]MH_SAM_APDU [15:29:42]CAPDU: 80 11 00 00 [15:29:42]Write to MH i2c: E2 08 00 CF 37 80 11 00 00 00 00 00 00 80 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:42]Read from MH i2c: E2 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 17 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: E2 17 00 CF 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CD [15:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:29:42]wFMCommunicate OK [15:29:42]CreateOFDProtocolMessage done [15:29:42]OFDSenderStorePacket 73896 [15:29:42]StoreOFDPacket docnum=73896 [15:29:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 90 35 00 01 93 F8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 DE 00 00 00 F4 03 04 00 E7 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 20 01 00 35 04 06 00 D8 5F 88 CB 7A E6 16 6C BB AD 65 55 B2 2A [15:29:42]CheckFolder [15:29:42]dirname=/storage/ofd_packets [15:29:42]CheckFolder done [15:29:42]ProducePacketName [15:29:42]name=ofd_packets/00073896 [15:29:42]NVStorageSaveData ofd_packets/00073896 [15:29:42]File name is /storage/ofd_packets/00073896 [15:29:42]Write 294 bytes [15:29:42]NVStorageSaveData done [15:29:42]OFDSenderStorePacket done [15:29:42]KKMCreateOFDPacket done [15:29:42]NVStorageSaveData kkm_last_timestamp [15:29:42]File name is /storage/kkm_last_timestamp [15:29:42]Write 4 bytes [15:29:42]NVStorageSaveData done [15:29:42]ExternCall_PrintAddStr [15:29:42]wPrintStart [15:29:42]Write to MH i2c: 01 00 00 D0 37 07 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: 01 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: 01 07 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: 01 07 00 D0 37 00 00 00 00 00 FF 0F 1C [15:29:42]RasterBufferAndPrint [15:29:42]line Счет N : (1)1963098 [15:29:42]line ИНН: 02508201610067 [15:29:42]line Контрольно-Кассовый Чек [15:29:42]line ПРОДАЖА [15:29:42]line ТРК (МРК, ГНК) : 62 [15:29:42]line Товар: 2710124130 [15:29:42]line SU-92 [15:29:42]line 7.310 * 68.40 [15:29:42]line = 500.00 [15:29:42]line НДС 12% НСП 1% [15:29:42]line > о реализуемом товаре [15:29:42]line ИТОГО: 500.00 [15:29:42]line НСП 1% : 4.42 [15:29:42]line НДС 12% : 53.10 [15:29:42]line Наличными: 500.00 [15:29:42]line Безнал.: 0.00 [15:29:42]line Место: АЗС № 133 "Партнер Нефть" [15:29:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:29:42]line СНО: Общий режим [15:29:42]line Чек 222 20.10.2024 15:29 [15:29:42]line Смена: 170 ФФД: 1.0 [15:29:42]line ЗНМ: 0300000020 [15:29:42]line РНМ: 0000000000161154 [15:29:42]line Версия ККМ: v1.0 [15:29:42]line ФМ: 0000000000963323 [15:29:42]line ФД: 73896 [15:29:42]line ФПД: 237904828529382 [15:29:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152943&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73896&fm=237904828529382&tin=02508201610067®Number=0000000000161154&sum=50000 [15:29:42]written 0, free lines is 4095 [15:29:42]OFD Sender: Processing packet 73896 [packets to send 15, broken 14] [15:29:42]ProducePacketName [15:29:42]name=ofd_packets/00073896 [15:29:42]OFD Sender: To server: pG, [15:29:42]CommunicateWithHost lk.salyk.kg:30040 [15:29:42]ConnectInit lk.salyk.kg [15:29:42]Connected sock=10 [15:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 90 35 00 01 93 F8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 DE 00 00 00 F4 03 04 00 E7 21 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 20 01 00 35 04 06 00 D8 5F 88 CB 7A E6 16 6C BB AD 65 55 B2 2A [15:29:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 7C 47 00 6B 62 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 39 36 33 33 32 33 10 04 04 00 A8 20 01 00 F4 03 04 00 CB CA 14 67 B6 04 01 00 00 E2 4F 7D 0C 37 E4 4E 7E [15:29:42]CommunicateWithHost err = 0 [15:29:42]CheckOFDResponse [15:29:42]1017 (14) - 77093643461234 [15:29:42]1041 (16) - 0000000000963323 [15:29:42]1040 (4) - 73896 [15:29:42]1012 (4) - 20.10.2024 09:18 [15:29:42]1206 (1) - 0 [15:29:42]OFD Sender: Remove packet 73896 [15:29:42]ProducePacketName [15:29:42]name=ofd_packets/00073896 [15:29:42]NVStorageDeleteData [15:29:42]Write to MH i2c: 01 00 00 F7 37 2E [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: 01 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: 01 07 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: 01 07 00 F7 37 00 00 00 00 00 F8 0C 39 [15:29:42]RasterBufferAndPrint [15:29:42]line [15:29:42]line [15:29:42]line [15:29:42]line [15:29:42]line [15:29:42]written 0, free lines is 3329 [15:29:42]MH_Cut [15:29:42]Write to MH i2c: D1 01 00 FE 37 01 07 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: D1 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: D1 01 00 [15:29:42]MH_I2C_Read... [15:29:42]Read from MH i2c: D1 01 00 FE 37 00 06 [15:29:42]Write to MH i2c: 01 00 00 FF 37 36 [15:29:42]Write i2c OK [15:29:42]MH_I2C_Read... [15:29:43]OFD Sender: No OFD packet to send [15:29:43]*** Cut start [15:29:43]*** Partial cut [15:29:43]*** CUTSNS_PIN = 1 [15:29:43]*** CUTSNS_PIN = 0 [15:29:44]*** Brake cut motor [15:29:44]Read from MH i2c: 01 [15:29:44]MH_I2C_Read... [15:29:44]*** Stop cut motor [15:29:44]*** Cut end [15:29:44]Read from MH i2c: 01 07 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: 01 07 00 FF 37 00 00 00 00 00 FF 0F 4B [15:29:44]process_action close_receipt done [15:29:44]requested_data is exist [15:29:44]produce_requested_data [15:29:44]requested_item fm.sn is exist - process it [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 11 00 00 [15:29:44]Write to MH i2c: E2 08 00 00 38 80 11 00 00 00 00 00 00 B2 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 17 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 17 00 00 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FF [15:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:29:44]wFMCommunicate OK [15:29:44]requested_item fd.num is exist - process it [15:29:44]SAM_PROTO_GetFieldsCounters [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 13 00 00 [15:29:44]Write to MH i2c: E2 08 00 01 38 80 13 00 00 00 00 00 00 B5 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 62 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 62 00 01 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15:29:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:44]wFMCommunicate OK [15:29:44]SAM_PROTO_GetFieldsCounters done [15:29:44]requested_item shift.num is exist - process it [15:29:44]requested_item shift.opened is exist - process it [15:29:44]req_shift_opened [15:29:44]FM_GetShiftState [15:29:44]SAM_PROTO_GetShiftState [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 13 01 00 [15:29:44]Write to MH i2c: E2 08 00 02 38 80 13 01 00 00 00 00 00 B7 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 0E 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 0E 00 02 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FC [15:29:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:29:44]wFMCommunicate OK [15:29:44]SAM_PROTO_GetShiftState done [15:29:44]FM_GetShiftState done [15:29:44]req_shift_opened done [15:29:44]requested_item shift.open_date is exist - process it [15:29:44]req_shift_open_date [15:29:44]req_shift_open_date done [15:29:44]produce_requested_data done [15:29:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73896,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:29:44]process_action_free close_receipt [15:29:44]json_value_free [15:29:44]json_value_free done [15:29:44]process_json_proto returns [15:29:44]Send response to host [15:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73896,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:29:44]free response buf [15:29:44]execute_script done [15:29:44]execute_script returns [15:29:44]free content buf [15:29:44]Sock 8.Close socket [15:29:44]Sock 8.Thread stoped [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:15]accept exits with 9 [15:31:15]New connection [15:31:15]New thread 3067432292 created [15:31:15]Thread 3067575652 joined [15:31:15]Waiting for new connection... [15:31:15] Sock 9.Parse request [15:31:15]Sock 9.Check first char [15:31:15]Sock 9.First char is OK [15:31:15]request: POST /json_proto HTTP/1.0 [15:31:15]Method: POST [15:31:15]URL: /json_proto [15:31:15]Method is POST - this is cgi request [15:31:15]url: /json_proto [15:31:15]query_string will be loaded in cgi processing [15:31:15]execute_cgi json_proto POST (null) [15:31:15]execute_cgi path=json_proto method=POST [15:31:15]POST find Content-Length [15:31:15]Host: 172.17.44.196:8080 [15:31:15]Content-Length: 675 [15:31:15]Content-Type: application/json [15:31:15] [15:31:15]POST finish read [15:31:15]Found Content-Length = 675 [15:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.490, "sum" : 570.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:15]execute_script... [15:31:15]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)1963100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.490, "sum" : 570.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:15]POST & json_proto [15:31:15]process_json_proto [15:31:15]json parsed OK: [15:31:15]protocol is kg_v1.0 [15:31:15]action value=close_receipt [15:31:15]process_action close_receipt [15:31:15]cmd_close_receipt [15:31:15]MH_GetDate [15:31:15]Write to MH i2c: F0 00 00 03 38 2A [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: F0 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: F0 09 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: F0 09 00 03 38 00 45 22 15 67 E7 19 F8 65 73 [15:31:15]GetLastDocTimeStamp 1729438183 [15:31:15]current date 1729438277 [15:31:15]FM_GetShiftState [15:31:15]SAM_PROTO_GetShiftState [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 13 01 00 [15:31:15]Write to MH i2c: E2 08 00 04 38 80 13 01 00 00 00 00 00 B9 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 0E 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 0E 00 04 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FE [15:31:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:31:15]wFMCommunicate OK [15:31:15]SAM_PROTO_GetShiftState done [15:31:15]FM_GetShiftState done [15:31:15]opened in 1729384303 [15:31:15]opened+sec_in_day 1729470703 [15:31:15]quantity*price = 57073 [15:31:15]sum+1 = 57075 [15:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.61 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 223 20.10.2024 15:31 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73897 ФПД: 197873379186362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153117&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73897&fm=197873379186362&tin=02508201610067®Number=0000000000161154&sum=57000 [15:31:16]StoreToDocumentArchive [15:31:16]shift 170 fd 73897 [15:31:16]save to /storage/0170/doc_00073897 [15:31:16]save last doc name /storage/0170/doc_00073897 to /storage/kkm_last_doc_name [15:31:16]save OK [15:31:16]Clear old archive folders... [15:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:16]tlvbuf is 00329DE0 [15:31:16]SAM_PROTO_ClearQueue [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 09 00 00 [15:31:16]Write to MH i2c: E2 08 00 11 38 80 09 00 00 00 00 00 00 BB [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 11 38 00 90 00 BD [15:31:16]RAPDU: 90 00 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_ClearQueue done [15:31:16]KKMCreateOFDPacket [15:31:16]OFDProtocolAddRootSTLVToBuf [15:31:16]FM_MakeSignedData [15:31:16]FM_MakeSignedData [15:31:16]SAM_PROTO_SignData [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 0D 01 02 [15:31:16]Write to MH i2c: E2 08 00 12 38 80 0D 01 02 00 00 00 00 C3 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 12 38 00 90 00 BE [15:31:16]RAPDU: 90 00 [15:31:16]wFMCommunicate OK [15:31:16]wFMCommunicate request_size=255 [15:31:16]MH_SAM_APDU [15:31:16]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 42 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 45 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 20 01 00 35 04 06 00 B3 F6 FC 7A [15:31:16]Write to MH i2c: E2 02 01 13 38 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 42 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 45 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 20 01 00 35 04 06 00 B3 F6 FC 7A 00 00 42 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:17]Read from MH i2c: E2 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 03 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 03 00 13 38 00 90 00 BF [15:31:17]RAPDU: 90 00 [15:31:17]wFMCommunicate OK [15:31:17]wFMCommunicate request_size=7 [15:31:17]MH_SAM_APDU [15:31:17]CAPDU: 80 0D 02 02 02 16 BA [15:31:17]Write to MH i2c: E2 0A 00 14 38 80 0D 02 02 02 00 16 BA 00 00 9A [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:17]Read from MH i2c: E2 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 03 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 03 00 14 38 00 90 00 C0 [15:31:17]RAPDU: 90 00 [15:31:17]wFMCommunicate OK [15:31:17]wFMCommunicate request_size=4 [15:31:17]MH_SAM_APDU [15:31:17]CAPDU: 80 0D 03 02 [15:31:17]Write to MH i2c: E2 08 00 15 38 80 0D 03 02 00 00 00 00 C8 [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:17]Read from MH i2c: E2 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 0B 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 0B 00 15 38 00 21 40 9B A0 F7 9C 4F 91 90 00 D8 [15:31:17]RAPDU: 21 40 9B A0 F7 9C 4F 91 90 00 [15:31:17]wFMCommunicate OK [15:31:17]SAM_PROTO_SignData done [15:31:17]FM_MakeSignedData done [15:31:17]CreateOFDProtocolMessage [15:31:17]wFMCommunicate request_size=4 [15:31:17]MH_SAM_APDU [15:31:17]CAPDU: 80 11 00 00 [15:31:17]Write to MH i2c: E2 08 00 16 38 80 11 00 00 00 00 00 00 C8 [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:17]Read from MH i2c: E2 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 17 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: E2 17 00 16 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [15:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:31:17]wFMCommunicate OK [15:31:17]CreateOFDProtocolMessage done [15:31:17]OFDSenderStorePacket 73897 [15:31:17]StoreOFDPacket docnum=73897 [15:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 5F 79 04 01 78 05 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 42 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 45 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 20 01 00 35 04 06 00 B3 F6 FC 7A 16 BA 21 40 9B A0 F7 9C 4F 91 [15:31:17]CheckFolder [15:31:17]dirname=/storage/ofd_packets [15:31:17]CheckFolder done [15:31:17]ProducePacketName [15:31:17]name=ofd_packets/00073897 [15:31:17]NVStorageSaveData ofd_packets/00073897 [15:31:17]File name is /storage/ofd_packets/00073897 [15:31:17]Write 298 bytes [15:31:17]NVStorageSaveData done [15:31:17]OFDSenderStorePacket done [15:31:17]KKMCreateOFDPacket done [15:31:17]NVStorageSaveData kkm_last_timestamp [15:31:17]File name is /storage/kkm_last_timestamp [15:31:17]Write 4 bytes [15:31:17]NVStorageSaveData done [15:31:17]ExternCall_PrintAddStr [15:31:17]wPrintStart [15:31:17]Write to MH i2c: 01 00 00 17 38 4F [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: 01 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: 01 07 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: 01 07 00 17 38 00 00 00 00 00 FF 0F 64 [15:31:17]RasterBufferAndPrint [15:31:17]line Счет N : (1)1963100 [15:31:17]line ИНН: 02508201610067 [15:31:17]line Контрольно-Кассовый Чек [15:31:17]line ПРОДАЖА [15:31:17]line ТРК (МРК, ГНК) : 21 [15:31:17]line Товар: 2710194210 [15:31:17]line ДТ-К-5 [15:31:17]line 7.490 * 76.20 [15:31:17]line = 570.74 [15:31:17]line НДС 12% НСП 1% [15:31:17]line > о реализуемом товаре [15:31:17]line ОКРУГЛЕНИЕ: -0.74 [15:31:17]line ИТОГО: 570.00 [15:31:17]line Внесено: 570.00 [15:31:17]line СДАЧА: 0.00 [15:31:17]line НСП 1% : 5.05 [15:31:17]line НДС 12% : 60.61 [15:31:17]line Наличными: 570.00 [15:31:17]line Безнал.: 0.00 [15:31:17]line Место: АЗС № 133 "Партнер Нефть" [15:31:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:31:17]line СНО: Общий режим [15:31:17]line Чек 223 20.10.2024 15:31 [15:31:17]line Смена: 170 ФФД: 1.0 [15:31:17]line ЗНМ: 0300000020 [15:31:17]line РНМ: 0000000000161154 [15:31:17]line Версия ККМ: v1.0 [15:31:17]line ФМ: 0000000000963323 [15:31:17]line ФД: 73897 [15:31:17]line ФПД: 197873379186362 [15:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153117&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73897&fm=197873379186362&tin=02508201610067®Number=0000000000161154&sum=57000 [15:31:17]OFD Sender: Processing packet 73897 [packets to send 15, broken 14] [15:31:17]ProducePacketName [15:31:17]name=ofd_packets/00073897 [15:31:17]OFD Sender: To server: pG, [15:31:17]CommunicateWithHost lk.salyk.kg:30040 [15:31:17]ConnectInit lk.salyk.kg [15:31:17]written 0, free lines is 4095 [15:31:17]Connected sock=8 [15:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 5F 79 04 01 78 05 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 42 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 45 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 20 01 00 35 04 06 00 B3 F6 FC 7A 16 BA 21 40 9B A0 F7 9C 4F 91 [15:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 E1 47 00 3B 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 39 36 33 33 32 33 10 04 04 00 A9 20 01 00 F4 03 04 00 2A CB 14 67 B6 04 01 00 00 2C E7 41 A8 D1 33 29 55 [15:31:17]CommunicateWithHost err = 0 [15:31:17]CheckOFDResponse [15:31:17]1017 (14) - 77093643461234 [15:31:17]1041 (16) - 0000000000963323 [15:31:17]1040 (4) - 73897 [15:31:17]1012 (4) - 20.10.2024 09:19 [15:31:17]1206 (1) - 0 [15:31:17]OFD Sender: Remove packet 73897 [15:31:17]ProducePacketName [15:31:17]name=ofd_packets/00073897 [15:31:17]NVStorageDeleteData [15:31:18]Write to MH i2c: 01 00 00 41 38 79 [15:31:18]Write i2c OK [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: 01 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: 01 07 00 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: 01 07 00 41 38 00 00 00 00 00 BA 0C 46 [15:31:18]RasterBufferAndPrint [15:31:18]line [15:31:18]line [15:31:18]line [15:31:18]line [15:31:18]line [15:31:18]written 0, free lines is 3263 [15:31:18]MH_Cut [15:31:18]Write to MH i2c: D1 01 00 48 38 01 52 [15:31:18]Write i2c OK [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: D1 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: D1 01 00 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: D1 01 00 48 38 00 51 [15:31:18]Write to MH i2c: 01 00 00 49 38 81 [15:31:18]Write i2c OK [15:31:18]MH_I2C_Read... [15:31:18]OFD Sender: No OFD packet to send [15:31:18]*** Cut start [15:31:18]*** Partial cut [15:31:18]*** CUTSNS_PIN = 1 [15:31:18]*** CUTSNS_PIN = 0 [15:31:19]*** Brake cut motor [15:31:19]Read from MH i2c: 01 [15:31:19]MH_I2C_Read... [15:31:19]*** Stop cut motor [15:31:19]*** Cut end [15:31:19]Read from MH i2c: 01 07 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: 01 07 00 49 38 00 00 00 00 00 FF 0F 96 [15:31:19]process_action close_receipt done [15:31:19]requested_data is exist [15:31:19]produce_requested_data [15:31:19]requested_item fm.sn is exist - process it [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 11 00 00 [15:31:19]Write to MH i2c: E2 08 00 4A 38 80 11 00 00 00 00 00 00 FC [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 17 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 17 00 4A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 49 [15:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:31:19]wFMCommunicate OK [15:31:19]requested_item fd.num is exist - process it [15:31:19]SAM_PROTO_GetFieldsCounters [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 13 00 00 [15:31:19]Write to MH i2c: E2 08 00 4B 38 80 13 00 00 00 00 00 00 FF [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 62 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 62 00 4B 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [15:31:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:19]wFMCommunicate OK [15:31:19]SAM_PROTO_GetFieldsCounters done [15:31:19]requested_item shift.num is exist - process it [15:31:19]requested_item shift.opened is exist - process it [15:31:19]req_shift_opened [15:31:19]FM_GetShiftState [15:31:19]SAM_PROTO_GetShiftState [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 13 01 00 [15:31:19]Write to MH i2c: E2 08 00 4C 38 80 13 01 00 00 00 00 00 01 [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 4C 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 46 [15:31:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:31:19]wFMCommunicate OK [15:31:19]SAM_PROTO_GetShiftState done [15:31:19]FM_GetShiftState done [15:31:19]req_shift_opened done [15:31:19]requested_item shift.open_date is exist - process it [15:31:19]req_shift_open_date [15:31:19]req_shift_open_date done [15:31:19]produce_requested_data done [15:31:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73897,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:31:19]process_action_free close_receipt [15:31:19]json_value_free [15:31:19]json_value_free done [15:31:19]process_json_proto returns [15:31:19]Send response to host [15:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73897,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:31:19]free response buf [15:31:19]execute_script done [15:31:19]execute_script returns [15:31:19]free content buf [15:31:19]Sock 9.Close socket [15:31:19]Sock 9.Thread stoped [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:23]accept exits with 10 [15:32:23]New connection [15:32:23]New thread 3067575652 created [15:32:23]Thread 3067432292 joined [15:32:23]Waiting for new connection... [15:32:23] Sock 10.Parse request [15:32:23]Sock 10.Check first char [15:32:23]Sock 10.First char is OK [15:32:23]request: POST /json_proto HTTP/1.0 [15:32:23]Method: POST [15:32:23]URL: /json_proto [15:32:23]Method is POST - this is cgi request [15:32:23]url: /json_proto [15:32:23]query_string will be loaded in cgi processing [15:32:23]execute_cgi json_proto POST (null) [15:32:23]execute_cgi path=json_proto method=POST [15:32:23]POST find Content-Length [15:32:23]Host: 172.17.44.196:8080 [15:32:23]Content-Length: 899 [15:32:23]Content-Type: application/json [15:32:23] [15:32:23]POST finish read [15:32:23]Found Content-Length = 899 [15:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272812", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "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" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:23]execute_script... [15:32: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)272812", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "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" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:23]POST & json_proto [15:32:23]process_json_proto [15:32:23]json parsed OK: [15:32:23]protocol is kg_v1.0 [15:32:23]action value=close_receipt [15:32:23]process_action close_receipt [15:32:23]cmd_close_receipt [15:32:23]MH_GetDate [15:32:23]Write to MH i2c: F0 00 00 4D 38 74 [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: F0 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: F0 09 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: F0 09 00 4D 38 00 89 22 15 67 E7 19 F8 65 01 [15:32:23]GetLastDocTimeStamp 1729438277 [15:32:23]current date 1729438345 [15:32:23]FM_GetShiftState [15:32:23]SAM_PROTO_GetShiftState [15:32:23]wFMCommunicate request_size=4 [15:32:23]MH_SAM_APDU [15:32:23]CAPDU: 80 13 01 00 [15:32:23]Write to MH i2c: E2 08 00 4E 38 80 13 01 00 00 00 00 00 03 [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:23]Read from MH i2c: E2 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 0E 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 0E 00 4E 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 48 [15:32:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:32:23]wFMCommunicate OK [15:32:23]SAM_PROTO_GetShiftState done [15:32:23]FM_GetShiftState done [15:32:23]opened in 1729384303 [15:32:23]opened+sec_in_day 1729470703 [15:32:23]quantity*price = 14000 [15:32:23]sum+1 = 14001 [15:32:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 207.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 224 20.10.2024 15:32 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73898 ФПД: 201522347028186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153225&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73898&fm=201522347028186&tin=02508201610067®Number=0000000000161154&sum=20700 0 [15:32:24]StoreToDocumentArchive [15:32:24]shift 170 fd 73898 [15:32:24]save to /storage/0170/doc_00073898 [15:32:24]save last doc name /storage/0170/doc_00073898 to /storage/kkm_last_doc_name [15:32:24]save OK [15:32:24]Clear old archive folders... [15:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=387 [15:32:24]tlvbuf is 0043BBD0 [15:32:24]SAM_PROTO_ClearQueue [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 09 00 00 [15:32:24]Write to MH i2c: E2 08 00 5B 38 80 09 00 00 00 00 00 00 05 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 03 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [15:32:24]RAPDU: 90 00 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_ClearQueue done [15:32:24]KKMCreateOFDPacket [15:32:24]OFDProtocolAddRootSTLVToBuf [15:32:24]FM_MakeSignedData [15:32:24]FM_MakeSignedData [15:32:24]SAM_PROTO_SignData [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 0D 01 02 [15:32:24]Write to MH i2c: E2 08 00 5C 38 80 0D 01 02 00 00 00 00 0D [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 03 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [15:32:24]RAPDU: 90 00 [15:32:24]wFMCommunicate OK [15:32:24]wFMCommunicate request_size=255 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 0D 02 02 FA 03 00 83 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 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 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [15:32:24]Write to MH i2c: E2 02 01 5D 38 80 0D 02 02 FA 00 03 00 83 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 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 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 25 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 5D 38 00 90 00 09 [15:32:25]RAPDU: 90 00 [15:32:25]wFMCommunicate OK [15:32:25]wFMCommunicate request_size=146 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 0D 02 02 8D 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 E0 00 00 00 F4 03 04 00 89 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 20 01 00 35 04 06 00 B7 48 93 E8 AE DA [15:32:25]Write to MH i2c: E2 95 00 5E 38 80 0D 02 02 8D 00 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 E0 00 00 00 F4 03 04 00 89 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 20 01 00 35 04 06 00 B7 48 93 E8 AE DA 00 00 52 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 5E 38 00 90 00 0A [15:32:25]RAPDU: 90 00 [15:32:25]wFMCommunicate OK [15:32:25]wFMCommunicate request_size=4 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 0D 03 02 [15:32:25]Write to MH i2c: E2 08 00 5F 38 80 0D 03 02 00 00 00 00 12 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 0B 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 0B 00 5F 38 00 70 4A C3 67 8D 27 3C 10 90 00 F7 [15:32:25]RAPDU: 70 4A C3 67 8D 27 3C 10 90 00 [15:32:25]wFMCommunicate OK [15:32:25]SAM_PROTO_SignData done [15:32:25]FM_MakeSignedData done [15:32:25]CreateOFDProtocolMessage [15:32:25]wFMCommunicate request_size=4 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 11 00 00 [15:32:25]Write to MH i2c: E2 08 00 60 38 80 11 00 00 00 00 00 00 12 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 17 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 17 00 60 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5F [15:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:32:25]wFMCommunicate OK [15:32:25]CreateOFDProtocolMessage done [15:32:25]OFDSenderStorePacket 73898 [15:32:25]StoreOFDPacket docnum=73898 [15:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 97 01 00 00 CC 84 8F 01 5A 1F 5A 03 01 00 03 00 83 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 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 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 E0 00 00 00 F4 03 04 00 89 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 20 01 00 35 04 06 00 B7 48 93 E8 AE DA 70 4A C3 67 8D 27 3C 10 [15:32:25]CheckFolder [15:32:25]dirname=/storage/ofd_packets [15:32:25]CheckFolder done [15:32:25]ProducePacketName [15:32:25]name=ofd_packets/00073898 [15:32:25]NVStorageSaveData ofd_packets/00073898 [15:32:25]File name is /storage/ofd_packets/00073898 [15:32:25]Write 437 bytes [15:32:25]NVStorageSaveData done [15:32:25]OFDSenderStorePacket done [15:32:25]KKMCreateOFDPacket done [15:32:25]NVStorageSaveData kkm_last_timestamp [15:32:25]File name is /storage/kkm_last_timestamp [15:32:25]Write 4 bytes [15:32:25]NVStorageSaveData done [15:32:25]ExternCall_PrintAddStr [15:32:25]wPrintStart [15:32:25]Write to MH i2c: 01 00 00 61 38 99 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: 01 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: 01 07 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: 01 07 00 61 38 00 00 00 00 00 FF 0F AE [15:32:25]RasterBufferAndPrint [15:32:25]line Счет N : (3)272812 [15:32:25]line ИНН: 02508201610067 [15:32:25]line Контрольно-Кассовый Чек [15:32:25]line ПРОДАЖА [15:32:25]line Товар: 48743570 [15:32:25]line Сигареты Winston XStyle Blue [15:32:25]line 1.000 * 140.00 [15:32:25]line = 140.00 [15:32:25]line НДС 12% НСП 1% [15:32:25]line > о реализуемом товаре [15:32:25]line Товар: 6931280300549 [15:32:25]line Зажигалка Cricket ПН пьезо [15:32:25]line 1.000 * 67.00 [15:32:25]line = 67.00 [15:32:25]line НДС 12% НСП 1% [15:32:25]line > о реализуемом товаре [15:32:25]line ИТОГО: 207.00 [15:32:25]line НСП 1% : 1.83 [15:32:25]line НДС 12% : 21.98 [15:32:25]line Наличными: 207.00 [15:32:25]line Безнал.: 0.00 [15:32:25]line Место: АЗС № 133 "Партнер Нефть" [15:32:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:32:25]line СНО: Общий режим [15:32:25]line Чек 224 20.10.2024 15:32 [15:32:25]line Смена: 170 ФФД: 1.0 [15:32:25]line ЗНМ: 0300000020 [15:32:25]line РНМ: 0000000000161154 [15:32:25]line Версия ККМ: v1.0 [15:32:25]line ФМ: 0000000000963323 [15:32:25]line ФД: 73898 [15:32:25]line ФПД: 201522347028186 [15:32:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153225&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73898&fm=201522347028186&tin=02508201610067®Number=0000000000161154&sum=20700 [15:32:25]line 0 [15:32:25]OFD Sender: Processing packet 73898 [packets to send 15, broken 14] [15:32:25]ProducePacketName [15:32:25]name=ofd_packets/00073898 [15:32:25]OFD Sender: To server: pG, [15:32:25]CommunicateWithHost lk.salyk.kg:30040 [15:32:25]ConnectInit lk.salyk.kg [15:32:25]written 0, free lines is 4095 [15:32:25]Connected sock=9 [15:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 97 01 00 00 CC 84 8F 01 5A 1F 5A 03 01 00 03 00 83 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 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 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 E0 00 00 00 F4 03 04 00 89 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 20 01 00 35 04 06 00 B7 48 93 E8 AE DA 70 4A C3 67 8D 27 3C 10 [15:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 41 1C 47 00 4A 91 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 39 36 33 33 32 33 10 04 04 00 AA 20 01 00 F4 03 04 00 6E CB 14 67 B6 04 01 00 00 FF C7 6F 00 F3 94 DB F3 [15:32:26]CommunicateWithHost err = 0 [15:32:26]CheckOFDResponse [15:32:26]1017 (14) - 77093643461234 [15:32:26]1041 (16) - 0000000000963323 [15:32:26]1040 (4) - 73898 [15:32:26]1012 (4) - 20.10.2024 09:20 [15:32:26]1206 (1) - 0 [15:32:26]OFD Sender: Remove packet 73898 [15:32:26]ProducePacketName [15:32:26]name=ofd_packets/00073898 [15:32:26]NVStorageDeleteData [15:32:26]Write to MH i2c: 01 00 00 8E 38 C6 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 8E 38 00 00 00 00 00 96 0C 6F [15:32:26]RasterBufferAndPrint [15:32:26]line [15:32:26]line [15:32:26]line [15:32:26]line [15:32:26]line [15:32:26]written 0, free lines is 3228 [15:32:26]MH_Cut [15:32:26]Write to MH i2c: D1 01 00 95 38 01 9F [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: D1 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: D1 01 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: D1 01 00 95 38 00 9E [15:32:26]Write to MH i2c: 01 00 00 96 38 CE [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]OFD Sender: No OFD packet to send [15:32:27]*** Cut start [15:32:27]*** Partial cut [15:32:27]*** CUTSNS_PIN = 1 [15:32:27]*** CUTSNS_PIN = 0 [15:32:27]*** Brake cut motor [15:32:27]Read from MH i2c: 01 [15:32:27]MH_I2C_Read... [15:32:27]*** Stop cut motor [15:32:27]*** Cut end [15:32:27]Read from MH i2c: 01 07 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: 01 07 00 96 38 00 00 00 00 00 FF 0F E3 [15:32:27]process_action close_receipt done [15:32:27]requested_data is exist [15:32:27]produce_requested_data [15:32:27]requested_item fm.sn is exist - process it [15:32:27]wFMCommunicate request_size=4 [15:32:27]MH_SAM_APDU [15:32:27]CAPDU: 80 11 00 00 [15:32:27]Write to MH i2c: E2 08 00 97 38 80 11 00 00 00 00 00 00 49 [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:27]Read from MH i2c: E2 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 17 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 17 00 97 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 96 [15:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:32:27]wFMCommunicate OK [15:32:27]requested_item fd.num is exist - process it [15:32:27]SAM_PROTO_GetFieldsCounters [15:32:27]wFMCommunicate request_size=4 [15:32:27]MH_SAM_APDU [15:32:27]CAPDU: 80 13 00 00 [15:32:27]Write to MH i2c: E2 08 00 98 38 80 13 00 00 00 00 00 00 4C [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:27]Read from MH i2c: E2 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 62 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 62 00 98 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:32:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:27]wFMCommunicate OK [15:32:27]SAM_PROTO_GetFieldsCounters done [15:32:27]requested_item shift.num is exist - process it [15:32:27]requested_item shift.opened is exist - process it [15:32:27]req_shift_opened [15:32:27]FM_GetShiftState [15:32:27]SAM_PROTO_GetShiftState [15:32:27]wFMCommunicate request_size=4 [15:32:27]MH_SAM_APDU [15:32:27]CAPDU: 80 13 01 00 [15:32:27]Write to MH i2c: E2 08 00 99 38 80 13 01 00 00 00 00 00 4E [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:27]Read from MH i2c: E2 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 0E 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 0E 00 99 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 93 [15:32:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:32:27]wFMCommunicate OK [15:32:27]SAM_PROTO_GetShiftState done [15:32:27]FM_GetShiftState done [15:32:27]req_shift_opened done [15:32:27]requested_item shift.open_date is exist - process it [15:32:27]req_shift_open_date [15:32:27]req_shift_open_date done [15:32:27]produce_requested_data done [15:32:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73898,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:32:27]process_action_free close_receipt [15:32:27]json_value_free [15:32:27]json_value_free done [15:32:27]process_json_proto returns [15:32:27]Send response to host [15:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73898,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:32:27]free response buf [15:32:27]execute_script done [15:32:27]execute_script returns [15:32:27]free content buf [15:32:27]Sock 10.Close socket [15:32:27]Sock 10.Thread stoped [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:09]accept exits with 8 [15:33:09]New connection [15:33:09]New thread 3067432292 created [15:33:09]Thread 3067575652 joined [15:33:09]Waiting for new connection... [15:33:09] Sock 8.Parse request [15:33:09]Sock 8.Check first char [15:33:09]Sock 8.First char is OK [15:33:09]request: POST /json_proto HTTP/1.0 [15:33:09]Method: POST [15:33:09]URL: /json_proto [15:33:09]Method is POST - this is cgi request [15:33:09]url: /json_proto [15:33:09]query_string will be loaded in cgi processing [15:33:09]execute_cgi json_proto POST (null) [15:33:09]execute_cgi path=json_proto method=POST [15:33:09]POST find Content-Length [15:33:09]Host: 172.17.44.196:8080 [15:33:09]Content-Length: 767 [15:33:09]Content-Type: application/json [15:33:09] [15:33:09]POST finish read [15:33:09]Found Content-Length = 767 [15:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272813", "tax_sys" : 0, "items" : [ { "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "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: Mbank", "payments": [ { "type": 1, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:09]execute_script... [15:33: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)272813", "tax_sys" : 0, "items" : [ { "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "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: Mbank", "payments": [ { "type": 1, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:09]POST & json_proto [15:33:09]process_json_proto [15:33:09]json parsed OK: [15:33:09]protocol is kg_v1.0 [15:33:09]action value=close_receipt [15:33:09]process_action close_receipt [15:33:09]cmd_close_receipt [15:33:09]MH_GetDate [15:33:09]Write to MH i2c: F0 00 00 9A 38 C1 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: F0 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: F0 09 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: F0 09 00 9A 38 00 B7 22 15 67 E7 19 F8 65 7C [15:33:09]GetLastDocTimeStamp 1729438345 [15:33:09]current date 1729438391 [15:33:09]FM_GetShiftState [15:33:09]SAM_PROTO_GetShiftState [15:33:09]wFMCommunicate request_size=4 [15:33:09]MH_SAM_APDU [15:33:09]CAPDU: 80 13 01 00 [15:33:09]Write to MH i2c: E2 08 00 9B 38 80 13 01 00 00 00 00 00 50 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:09]Read from MH i2c: E2 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 0E 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 0E 00 9B 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 95 [15:33:09]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:33:09]wFMCommunicate OK [15:33:09]SAM_PROTO_GetShiftState done [15:33:09]FM_GetShiftState done [15:33:09]opened in 1729384303 [15:33:09]opened+sec_in_day 1729470703 [15:33:09]quantity*price = 4900 [15:33:09]sum+1 = 4901 [15:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 0.00 Безнал.: 49.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 225 20.10.2024 15:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73899 ФПД: 230858243372188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153311&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73899&fm=230858243372188&tin=02508201610067®Number=0000000000161154&sum=4900 0 [15:33:10]StoreToDocumentArchive [15:33:10]shift 170 fd 73899 [15:33:10]save to /storage/0170/doc_00073899 [15:33:10]save last doc name /storage/0170/doc_00073899 to /storage/kkm_last_doc_name [15:33:10]save OK [15:33:10]Clear old archive folders... [15:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:33:10]tlvbuf is B6F72D50 [15:33:10]SAM_PROTO_ClearQueue [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 09 00 00 [15:33:10]Write to MH i2c: E2 08 00 A8 38 80 09 00 00 00 00 00 00 52 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 A8 38 00 90 00 54 [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]SAM_PROTO_ClearQueue done [15:33:10]KKMCreateOFDPacket [15:33:10]OFDProtocolAddRootSTLVToBuf [15:33:10]FM_MakeSignedData [15:33:10]FM_MakeSignedData [15:33:10]SAM_PROTO_SignData [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 0D 01 02 [15:33:10]Write to MH i2c: E2 08 00 A9 38 80 0D 01 02 00 00 00 00 5A [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 A9 38 00 90 00 55 [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=255 [15:33:10]MH_SAM_APDU [15:33:10]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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 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 E1 00 00 00 F4 03 04 00 B7 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:33:10]Write to MH i2c: E2 02 01 AA 38 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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 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 E1 00 00 00 F4 03 04 00 B7 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 26 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 03 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 03 00 AA 38 00 90 00 56 [15:33:11]RAPDU: 90 00 [15:33:11]wFMCommunicate OK [15:33:11]wFMCommunicate request_size=30 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 AB 20 01 00 35 04 06 00 D1 F6 DF 96 F4 9C [15:33:11]Write to MH i2c: E2 21 00 AB 38 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 AB 20 01 00 35 04 06 00 D1 F6 DF 96 F4 9C 00 00 E8 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 03 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 03 00 AB 38 00 90 00 57 [15:33:11]RAPDU: 90 00 [15:33:11]wFMCommunicate OK [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 0D 03 02 [15:33:11]Write to MH i2c: E2 08 00 AC 38 80 0D 03 02 00 00 00 00 5F [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0B 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0B 00 AC 38 00 50 BD AF 94 6B 9D B2 4A 90 00 B4 [15:33:11]RAPDU: 50 BD AF 94 6B 9D B2 4A 90 00 [15:33:11]wFMCommunicate OK [15:33:11]SAM_PROTO_SignData done [15:33:11]FM_MakeSignedData done [15:33:11]CreateOFDProtocolMessage [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 11 00 00 [15:33:11]Write to MH i2c: E2 08 00 AD 38 80 11 00 00 00 00 00 00 5F [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 17 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 17 00 AD 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [15:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:33:11]wFMCommunicate OK [15:33:11]CreateOFDProtocolMessage done [15:33:11]OFDSenderStorePacket 73899 [15:33:11]StoreOFDPacket docnum=73899 [15:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 15 CD 1B 01 08 2D 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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 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 E1 00 00 00 F4 03 04 00 B7 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AB 20 01 00 35 04 06 00 D1 F6 DF 96 F4 9C 50 BD AF 94 6B 9D B2 4A [15:33:11]CheckFolder [15:33:11]dirname=/storage/ofd_packets [15:33:11]CheckFolder done [15:33:11]ProducePacketName [15:33:11]name=ofd_packets/00073899 [15:33:11]NVStorageSaveData ofd_packets/00073899 [15:33:11]File name is /storage/ofd_packets/00073899 [15:33:11]Write 321 bytes [15:33:11]NVStorageSaveData done [15:33:11]OFDSenderStorePacket done [15:33:11]KKMCreateOFDPacket done [15:33:11]NVStorageSaveData kkm_last_timestamp [15:33:11]File name is /storage/kkm_last_timestamp [15:33:11]Write 4 bytes [15:33:11]NVStorageSaveData done [15:33:11]ExternCall_PrintAddStr [15:33:11]wPrintStart [15:33:11]Write to MH i2c: 01 00 00 AE 38 E6 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 AE 38 00 00 00 00 00 FF 0F FB [15:33:11]RasterBufferAndPrint [15:33:11]line Счет N : (3)272813 [15:33:11]line ИНН: 02508201610067 [15:33:11]line Контрольно-Кассовый Чек [15:33:11]line ПРОДАЖА [15:33:11]line Товар: 4700026030024 [15:33:11]line Курут копченный [15:33:11]line 1.000 * 49.00 [15:33:11]line = 49.00 [15:33:11]line НДС 12% НСП 1% [15:33:11]line > о реализуемом товаре [15:33:11]line ИТОГО: 49.00 [15:33:11]line НСП 1% : 0.43 [15:33:11]line НДС 12% : 5.20 [15:33:11]line Наличными: 0.00 [15:33:11]line Безнал.: 49.00 [15:33:11]line Место: АЗС № 133 "Партнер Нефть" [15:33:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:33:11]line СНО: Общий режим [15:33:11]line Чек 225 20.10.2024 15:33 [15:33:11]line Смена: 170 ФФД: 1.0 [15:33:11]line ЗНМ: 0300000020 [15:33:11]line РНМ: 0000000000161154 [15:33:11]line Версия ККМ: v1.0 [15:33:11]line Платежная система: Mbank [15:33:11]line ФМ: 0000000000963323 [15:33:11]line ФД: 73899 [15:33:11]line ФПД: 230858243372188 [15:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153311&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73899&fm=230858243372188&tin=02508201610067®Number=0000000000161154&sum=4900 [15:33:11]line 0 [15:33:11]OFD Sender: Processing packet 73899 [packets to send 15, broken 14] [15:33:11]ProducePacketName [15:33:11]name=ofd_packets/00073899 [15:33:11]OFD Sender: To server: pG, [15:33:11]CommunicateWithHost lk.salyk.kg:30040 [15:33:11]ConnectInit lk.salyk.kg [15:33:11]written 0, free lines is 4095 [15:33:11]Connected sock=11 [15:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 15 CD 1B 01 08 2D 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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 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 E1 00 00 00 F4 03 04 00 B7 22 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AB 20 01 00 35 04 06 00 D1 F6 DF 96 F4 9C 50 BD AF 94 6B 9D B2 4A [15:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 68 77 47 00 C5 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 39 36 33 33 32 33 10 04 04 00 AB 20 01 00 F4 03 04 00 9C CB 14 67 B6 04 01 00 00 30 4A BE 7B 8E 11 7F 20 [15:33:11]CommunicateWithHost err = 0 [15:33:11]CheckOFDResponse [15:33:11]1017 (14) - 77093643461234 [15:33:11]1041 (16) - 0000000000963323 [15:33:11]1040 (4) - 73899 [15:33:11]1012 (4) - 20.10.2024 09:21 [15:33:11]1206 (1) - 0 [15:33:11]OFD Sender: Remove packet 73899 [15:33:11]ProducePacketName [15:33:11]name=ofd_packets/00073899 [15:33:11]NVStorageDeleteData [15:33:12]Write to MH i2c: 01 00 00 D6 38 0E [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: 01 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: 01 07 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: 01 07 00 D6 38 00 00 00 00 00 DF 0C 00 [15:33:12]RasterBufferAndPrint [15:33:12]line [15:33:12]line [15:33:12]line [15:33:12]line [15:33:12]line [15:33:12]written 0, free lines is 3301 [15:33:12]MH_Cut [15:33:12]Write to MH i2c: D1 01 00 DD 38 01 E7 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: D1 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: D1 01 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: D1 01 00 DD 38 00 E6 [15:33:12]Write to MH i2c: 01 00 00 DE 38 16 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]OFD Sender: No OFD packet to send [15:33:12]*** Cut start [15:33:12]*** Partial cut [15:33:12]*** CUTSNS_PIN = 1 [15:33:12]*** CUTSNS_PIN = 0 [15:33:13]*** Brake cut motor [15:33:13]Read from MH i2c: 01 [15:33:13]MH_I2C_Read... [15:33:13]*** Stop cut motor [15:33:13]*** Cut end [15:33:13]Read from MH i2c: 01 07 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 DE 38 00 00 00 00 00 FF 0F 2B [15:33:13]process_action close_receipt done [15:33:13]requested_data is exist [15:33:13]produce_requested_data [15:33:13]requested_item fm.sn is exist - process it [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 11 00 00 [15:33:13]Write to MH i2c: E2 08 00 DF 38 80 11 00 00 00 00 00 00 91 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 DF 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DE [15:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:33:13]wFMCommunicate OK [15:33:13]requested_item fd.num is exist - process it [15:33:13]SAM_PROTO_GetFieldsCounters [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 13 00 00 [15:33:13]Write to MH i2c: E2 08 00 E0 38 80 13 00 00 00 00 00 00 94 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 62 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 62 00 E0 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [15:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_GetFieldsCounters done [15:33:13]requested_item shift.num is exist - process it [15:33:13]requested_item shift.opened is exist - process it [15:33:13]req_shift_opened [15:33:13]FM_GetShiftState [15:33:13]SAM_PROTO_GetShiftState [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 13 01 00 [15:33:13]Write to MH i2c: E2 08 00 E1 38 80 13 01 00 00 00 00 00 96 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0E 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0E 00 E1 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [15:33:13]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_GetShiftState done [15:33:13]FM_GetShiftState done [15:33:13]req_shift_opened done [15:33:13]requested_item shift.open_date is exist - process it [15:33:13]req_shift_open_date [15:33:13]req_shift_open_date done [15:33:13]produce_requested_data done [15:33:13]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73899,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:33:13]process_action_free close_receipt [15:33:13]json_value_free [15:33:13]json_value_free done [15:33:13]process_json_proto returns [15:33:13]Send response to host [15:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73899,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:33:13]free response buf [15:33:13]execute_script done [15:33:13]execute_script returns [15:33:13]free content buf [15:33:13]Sock 8.Close socket [15:33:13]Sock 8.Thread stoped [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:43]accept exits with 9 [15:36:43]New connection [15:36:43]New thread 3067575652 created [15:36:43]Thread 3067432292 joined [15:36:43]Waiting for new connection... [15:36:43] Sock 9.Parse request [15:36:43]Sock 9.Check first char [15:36:43]Sock 9.First char is OK [15:36:43]request: POST /json_proto HTTP/1.0 [15:36:43]Method: POST [15:36:43]URL: /json_proto [15:36:43]Method is POST - this is cgi request [15:36:43]url: /json_proto [15:36:43]query_string will be loaded in cgi processing [15:36:43]execute_cgi json_proto POST (null) [15:36:43]execute_cgi path=json_proto method=POST [15:36:43]POST find Content-Length [15:36:43]Host: 172.17.44.196:8080 [15:36:43]Content-Length: 575 [15:36:43]Content-Type: application/json [15:36:43] [15:36:43]POST finish read [15:36:43]Found Content-Length = 575 [15:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272814", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "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" ] } } [15:36:43]execute_script... [15:36: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)272814", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "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" ] } } [15:36:43]POST & json_proto [15:36:43]process_json_proto [15:36:43]json parsed OK: [15:36:43]protocol is kg_v1.0 [15:36:43]action value=close_receipt [15:36:43]process_action close_receipt [15:36:43]cmd_close_receipt [15:36:43]MH_GetDate [15:36:43]Write to MH i2c: F0 00 00 E2 38 09 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: F0 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: F0 09 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: F0 09 00 E2 38 00 8D 23 15 67 E7 19 F8 65 9B [15:36:43]GetLastDocTimeStamp 1729438391 [15:36:43]current date 1729438605 [15:36:43]FM_GetShiftState [15:36:43]SAM_PROTO_GetShiftState [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 13 01 00 [15:36:43]Write to MH i2c: E2 08 00 E3 38 80 13 01 00 00 00 00 00 98 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0E 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0E 00 E3 38 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DD [15:36:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:36:43]wFMCommunicate OK [15:36:43]SAM_PROTO_GetShiftState done [15:36:43]FM_GetShiftState done [15:36:43]opened in 1729384303 [15:36:43]opened+sec_in_day 1729470703 [15:36:43]quantity*price = 13000 [15:36:43]sum+1 = 13001 [15:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 226 20.10.2024 15:36 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73900 ФПД: 54373137105374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153645&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73900&fm=54373137105374&tin=02508201610067®Number=0000000000161154&sum=13000 0 [15:36:44]StoreToDocumentArchive [15:36:44]shift 170 fd 73900 [15:36:44]save to /storage/0170/doc_00073900 [15:36:44]save last doc name /storage/0170/doc_00073900 to /storage/kkm_last_doc_name [15:36:44]save OK [15:36:44]Clear old archive folders... [15:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=259 [15:36:44]tlvbuf is 00331480 [15:36:44]SAM_PROTO_ClearQueue [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 09 00 00 [15:36:44]Write to MH i2c: E2 08 00 F0 38 80 09 00 00 00 00 00 00 9A [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 F0 38 00 90 00 9C [15:36:44]RAPDU: 90 00 [15:36:44]wFMCommunicate OK [15:36:44]SAM_PROTO_ClearQueue done [15:36:44]KKMCreateOFDPacket [15:36:44]OFDProtocolAddRootSTLVToBuf [15:36:44]FM_MakeSignedData [15:36:44]FM_MakeSignedData [15:36:44]SAM_PROTO_SignData [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 0D 01 02 [15:36:44]Write to MH i2c: E2 08 00 F1 38 80 0D 01 02 00 00 00 00 A2 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 F1 38 00 90 00 9D [15:36:44]RAPDU: 90 00 [15:36:44]wFMCommunicate OK [15:36:44]wFMCommunicate request_size=255 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 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 E2 00 00 00 F4 03 04 00 8D 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC [15:36:44]Write to MH i2c: E2 02 01 F2 38 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 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 E2 00 00 00 F4 03 04 00 8D 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC 00 00 EA [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 03 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 03 00 F2 38 00 90 00 9E [15:36:45]RAPDU: 90 00 [15:36:45]wFMCommunicate OK [15:36:45]wFMCommunicate request_size=18 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 0D 02 02 0D 20 01 00 35 04 06 00 31 73 BB 85 C1 DE [15:36:45]Write to MH i2c: E2 15 00 F3 38 80 0D 02 02 0D 00 20 01 00 35 04 06 00 31 73 BB 85 C1 DE 00 00 A2 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 03 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 03 00 F3 38 00 90 00 9F [15:36:45]RAPDU: 90 00 [15:36:45]wFMCommunicate OK [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 0D 03 02 [15:36:45]Write to MH i2c: E2 08 00 F4 38 80 0D 03 02 00 00 00 00 A7 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0B 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0B 00 F4 38 00 7B 91 CA C9 ED C7 37 A9 90 00 DB [15:36:45]RAPDU: 7B 91 CA C9 ED C7 37 A9 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_SignData done [15:36:45]FM_MakeSignedData done [15:36:45]CreateOFDProtocolMessage [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 11 00 00 [15:36:45]Write to MH i2c: E2 08 00 F5 38 80 11 00 00 00 00 00 00 A7 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 17 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 17 00 F5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F4 [15:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:36:45]wFMCommunicate OK [15:36:45]CreateOFDProtocolMessage done [15:36:45]OFDSenderStorePacket 73900 [15:36:45]StoreOFDPacket docnum=73900 [15:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 17 01 00 00 A6 45 0F 01 9B BC 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 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 E2 00 00 00 F4 03 04 00 8D 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC 20 01 00 35 04 06 00 31 73 BB 85 C1 DE 7B 91 CA C9 ED C7 37 A9 [15:36:45]CheckFolder [15:36:45]dirname=/storage/ofd_packets [15:36:45]CheckFolder done [15:36:45]ProducePacketName [15:36:45]name=ofd_packets/00073900 [15:36:45]NVStorageSaveData ofd_packets/00073900 [15:36:45]File name is /storage/ofd_packets/00073900 [15:36:45]Write 309 bytes [15:36:45]NVStorageSaveData done [15:36:45]OFDSenderStorePacket done [15:36:45]KKMCreateOFDPacket done [15:36:45]NVStorageSaveData kkm_last_timestamp [15:36:45]File name is /storage/kkm_last_timestamp [15:36:45]Write 4 bytes [15:36:45]NVStorageSaveData done [15:36:45]ExternCall_PrintAddStr [15:36:45]wPrintStart [15:36:45]Write to MH i2c: 01 00 00 F6 38 2E [15:36:45]OFD Sender: Processing packet 73900 [packets to send 15, broken 14] [15:36:45]ProducePacketName [15:36:45]name=ofd_packets/00073900 [15:36:45]OFD Sender: To server: pG, [15:36:45]CommunicateWithHost lk.salyk.kg:30040 [15:36:45]ConnectInit lk.salyk.kg [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 07 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 07 00 F6 38 00 00 00 00 00 FF 0F 43 [15:36:45]RasterBufferAndPrint [15:36:45]line Счет N : (3)272814 [15:36:45]line ИНН: 02508201610067 [15:36:45]line Контрольно-Кассовый Чек [15:36:45]line ПРОДАЖА [15:36:45]line Товар: 46233820 [15:36:45]line LD Compact 100s Silver [15:36:45]line 1.000 * 130.00 [15:36:45]line = 130.00 [15:36:45]line НДС 12% НСП 1% [15:36:45]line > о реализуемом товаре [15:36:45]line ИТОГО: 130.00 [15:36:45]line НСП 1% : 1.15 [15:36:45]line НДС 12% : 13.80 [15:36:45]line Наличными: 130.00 [15:36:45]line Безнал.: 0.00 [15:36:45]line Место: АЗС № 133 "Партнер Нефть" [15:36:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:36:45]line СНО: Общий режим [15:36:45]line Чек 226 20.10.2024 15:36 [15:36:45]line Смена: 170 ФФД: 1.0 [15:36:45]line ЗНМ: 0300000020 [15:36:45]line РНМ: 0000000000161154 [15:36:45]line Версия ККМ: v1.0 [15:36:45]line ФМ: 0000000000963323 [15:36:45]line ФД: 73900 [15:36:45]line ФПД: 54373137105374 [15:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153645&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73900&fm=54373137105374&tin=02508201610067®Number=0000000000161154&sum=13000 [15:36:45]line 0 [15:36:45]Connected sock=10 [15:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 17 01 00 00 A6 45 0F 01 9B BC 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 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 E2 00 00 00 F4 03 04 00 8D 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC 20 01 00 35 04 06 00 31 73 BB 85 C1 DE 7B 91 CA C9 ED C7 37 A9 [15:36:45]written 0, free lines is 4095 [15:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3F 91 47 00 5B 48 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 39 36 33 33 32 33 10 04 04 00 AC 20 01 00 F4 03 04 00 72 CC 14 67 B6 04 01 00 00 D9 4A 55 B1 51 48 7D 77 [15:36:45]CommunicateWithHost err = 0 [15:36:45]CheckOFDResponse [15:36:45]1017 (14) - 77093643461234 [15:36:45]1041 (16) - 0000000000963323 [15:36:45]1040 (4) - 73900 [15:36:45]1012 (4) - 20.10.2024 09:25 [15:36:45]1206 (1) - 0 [15:36:45]OFD Sender: Remove packet 73900 [15:36:45]ProducePacketName [15:36:45]name=ofd_packets/00073900 [15:36:45]NVStorageDeleteData [15:36:46]Write to MH i2c: 01 00 00 1D 39 56 [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: 01 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: 01 07 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: 01 07 00 1D 39 00 00 00 00 00 E0 0C 49 [15:36:46]RasterBufferAndPrint [15:36:46]line [15:36:46]line [15:36:46]line [15:36:46]line [15:36:46]line [15:36:46]written 0, free lines is 3302 [15:36:46]MH_Cut [15:36:46]Write to MH i2c: D1 01 00 24 39 01 2F [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: D1 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: D1 01 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: D1 01 00 24 39 00 2E [15:36:46]Write to MH i2c: 01 00 00 25 39 5E [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]OFD Sender: No OFD packet to send [15:36:46]*** Cut start [15:36:46]*** Partial cut [15:36:46]*** CUTSNS_PIN = 1 [15:36:46]*** CUTSNS_PIN = 0 [15:36:47]*** Brake cut motor [15:36:47]Read from MH i2c: 01 [15:36:47]MH_I2C_Read... [15:36:47]*** Stop cut motor [15:36:47]*** Cut end [15:36:47]Read from MH i2c: 01 07 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: 01 07 00 25 39 00 00 00 00 00 FF 0F 73 [15:36:47]process_action close_receipt done [15:36:47]requested_data is exist [15:36:47]produce_requested_data [15:36:47]requested_item fm.sn is exist - process it [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 11 00 00 [15:36:47]Write to MH i2c: E2 08 00 26 39 80 11 00 00 00 00 00 00 D9 [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 17 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 17 00 26 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 26 [15:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:36:47]wFMCommunicate OK [15:36:47]requested_item fd.num is exist - process it [15:36:47]SAM_PROTO_GetFieldsCounters [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 13 00 00 [15:36:47]Write to MH i2c: E2 08 00 27 39 80 13 00 00 00 00 00 00 DC [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 62 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 62 00 27 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:47]wFMCommunicate OK [15:36:47]SAM_PROTO_GetFieldsCounters done [15:36:47]requested_item shift.num is exist - process it [15:36:47]requested_item shift.opened is exist - process it [15:36:47]req_shift_opened [15:36:47]FM_GetShiftState [15:36:47]SAM_PROTO_GetShiftState [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 13 01 00 [15:36:47]Write to MH i2c: E2 08 00 28 39 80 13 01 00 00 00 00 00 DE [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 0E 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 0E 00 28 39 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 23 [15:36:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:36:47]wFMCommunicate OK [15:36:47]SAM_PROTO_GetShiftState done [15:36:47]FM_GetShiftState done [15:36:47]req_shift_opened done [15:36:47]requested_item shift.open_date is exist - process it [15:36:47]req_shift_open_date [15:36:47]req_shift_open_date done [15:36:47]produce_requested_data done [15:36:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73900,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:36:47]process_action_free close_receipt [15:36:47]json_value_free [15:36:47]json_value_free done [15:36:47]process_json_proto returns [15:36:47]Send response to host [15:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73900,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:36:47]free response buf [15:36:47]execute_script done [15:36:47]execute_script returns [15:36:47]free content buf [15:36:47]Sock 9.Close socket [15:36:47]Sock 9.Thread stoped [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:36]accept exits with 8 [15:38:36]New connection [15:38:36]New thread 3067432292 created [15:38:36]Thread 3067575652 joined [15:38:36]Waiting for new connection... [15:38:36] Sock 8.Parse request [15:38:36]Sock 8.Check first char [15:38:36]Sock 8.First char is OK [15:38:36]request: POST /json_proto HTTP/1.0 [15:38:36]Method: POST [15:38:36]URL: /json_proto [15:38:36]Method is POST - this is cgi request [15:38:36]url: /json_proto [15:38:36]query_string will be loaded in cgi processing [15:38:36]execute_cgi json_proto POST (null) [15:38:36]execute_cgi path=json_proto method=POST [15:38:36]POST find Content-Length [15:38:36]Host: 172.17.44.196:8080 [15:38:36]Content-Length: 683 [15:38:36]Content-Type: application/json [15:38:36] [15:38:36]POST finish read [15:38:36]Found Content-Length = 683 [15:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963101", "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" : 22.430, "sum" : 1500.57, "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" ] } } [15:38:36]execute_script... [15:38: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 : (1)1963101", "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" : 22.430, "sum" : 1500.57, "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" ] } } [15:38:36]POST & json_proto [15:38:36]process_json_proto [15:38:36]json parsed OK: [15:38:36]protocol is kg_v1.0 [15:38:36]action value=close_receipt [15:38:36]process_action close_receipt [15:38:36]cmd_close_receipt [15:38:36]MH_GetDate [15:38:36]Write to MH i2c: F0 00 00 29 39 51 [15:38:36]Write i2c OK [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: F0 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: F0 09 00 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: F0 09 00 29 39 00 FF 23 15 67 E7 19 F8 65 55 [15:38:36]GetLastDocTimeStamp 1729438605 [15:38:36]current date 1729438719 [15:38:36]FM_GetShiftState [15:38:36]SAM_PROTO_GetShiftState [15:38:36]wFMCommunicate request_size=4 [15:38:36]MH_SAM_APDU [15:38:36]CAPDU: 80 13 01 00 [15:38:36]Write to MH i2c: E2 08 00 2A 39 80 13 01 00 00 00 00 00 E0 [15:38:36]Write i2c OK [15:38:36]MH_I2C_Read... [15:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:36]Read from MH i2c: E2 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 0E 00 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 0E 00 2A 39 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 25 [15:38:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:38:36]wFMCommunicate OK [15:38:36]SAM_PROTO_GetShiftState done [15:38:36]FM_GetShiftState done [15:38:36]opened in 1729384303 [15:38:36]opened+sec_in_day 1729470703 [15:38:36]quantity*price = 150056 [15:38:36]sum+1 = 150058 [15:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 227 20.10.2024 15:38 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73901 ФПД: 144773244023065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153839&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73901&fm=144773244023065&tin=02508201610067®Number=0000000000161154&sum=150000 [15:38:38]StoreToDocumentArchive [15:38:38]shift 170 fd 73901 [15:38:38]save to /storage/0170/doc_00073901 [15:38:38]save last doc name /storage/0170/doc_00073901 to /storage/kkm_last_doc_name [15:38:38]save OK [15:38:38]Clear old archive folders... [15:38:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:38]tlvbuf is 00341E20 [15:38:38]SAM_PROTO_ClearQueue [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 09 00 00 [15:38:38]Write to MH i2c: E2 08 00 37 39 80 09 00 00 00 00 00 00 E2 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 37 39 00 90 00 E4 [15:38:38]RAPDU: 90 00 [15:38:38]wFMCommunicate OK [15:38:38]SAM_PROTO_ClearQueue done [15:38:38]KKMCreateOFDPacket [15:38:38]OFDProtocolAddRootSTLVToBuf [15:38:38]FM_MakeSignedData [15:38:38]FM_MakeSignedData [15:38:38]SAM_PROTO_SignData [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 0D 01 02 [15:38:38]Write to MH i2c: E2 08 00 38 39 80 0D 01 02 00 00 00 00 EA [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 38 39 00 90 00 E5 [15:38:38]RAPDU: 90 00 [15:38:38]wFMCommunicate OK [15:38:38]wFMCommunicate request_size=255 [15:38:38]MH_SAM_APDU [15:38: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 E3 00 00 00 F4 03 04 00 FF 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 20 01 00 35 04 06 00 83 [15:38:38]Write to MH i2c: E2 02 01 39 39 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 E3 00 00 00 F4 03 04 00 FF 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 20 01 00 35 04 06 00 83 00 00 31 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 39 39 00 90 00 E6 [15:38:38]RAPDU: 90 00 [15:38:38]wFMCommunicate OK [15:38:38]wFMCommunicate request_size=10 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 0D 02 02 05 AB A5 C8 71 19 [15:38:38]Write to MH i2c: E2 0D 00 3A 39 80 0D 02 02 05 00 AB A5 C8 71 19 00 00 99 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 3A 39 00 90 00 E7 [15:38:38]RAPDU: 90 00 [15:38:38]wFMCommunicate OK [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 0D 03 02 [15:38:38]Write to MH i2c: E2 08 00 3B 39 80 0D 03 02 00 00 00 00 EF [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 0B 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 0B 00 3B 39 00 59 F5 F7 8C 5A AB F6 03 90 00 BF [15:38:38]RAPDU: 59 F5 F7 8C 5A AB F6 03 90 00 [15:38:38]wFMCommunicate OK [15:38:38]SAM_PROTO_SignData done [15:38:38]FM_MakeSignedData done [15:38:38]CreateOFDProtocolMessage [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 11 00 00 [15:38:38]Write to MH i2c: E2 08 00 3C 39 80 11 00 00 00 00 00 00 EF [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 17 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 17 00 3C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [15:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:38:38]wFMCommunicate OK [15:38:38]CreateOFDProtocolMessage done [15:38:38]OFDSenderStorePacket 73901 [15:38:38]StoreOFDPacket docnum=73901 [15:38:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 96 07 07 01 3E F8 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 E3 00 00 00 F4 03 04 00 FF 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 20 01 00 35 04 06 00 83 AB A5 C8 71 19 59 F5 F7 8C 5A AB F6 03 [15:38:38]CheckFolder [15:38:38]dirname=/storage/ofd_packets [15:38:38]CheckFolder done [15:38:38]ProducePacketName [15:38:38]name=ofd_packets/00073901 [15:38:38]NVStorageSaveData ofd_packets/00073901 [15:38:38]File name is /storage/ofd_packets/00073901 [15:38:38]Write 301 bytes [15:38:38]NVStorageSaveData done [15:38:38]OFDSenderStorePacket done [15:38:38]KKMCreateOFDPacket done [15:38:38]NVStorageSaveData kkm_last_timestamp [15:38:38]File name is /storage/kkm_last_timestamp [15:38:38]Write 4 bytes [15:38:38]NVStorageSaveData done [15:38:38]ExternCall_PrintAddStr [15:38:38]wPrintStart [15:38:38]Write to MH i2c: 01 00 00 3D 39 76 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: 01 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: 01 07 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: 01 07 00 3D 39 00 00 00 00 00 FF 0F 8B [15:38:38]RasterBufferAndPrint [15:38:38]line Счет N : (1)1963101 [15:38:38]line ИНН: 02508201610067 [15:38:38]line Контрольно-Кассовый Чек [15:38:38]line ПРОДАЖА [15:38:38]line ТРК (МРК, ГНК) : 43 [15:38:38]line Товар: 2710124130 [15:38:38]line Аи-92-К-5 [15:38:38]line 22.430 * 66.90 [15:38:38]line = 1500.57 [15:38:38]line НДС 12% НСП 1% [15:38:38]line > о реализуемом товаре [15:38:38]line ОКРУГЛЕНИЕ: -0.57 [15:38:38]line ИТОГО: 1500.00 [15:38:38]line Внесено: 1500.00 [15:38:38]line СДАЧА: 0.00 [15:38:38]line НСП 1% : 13.28 [15:38:38]line НДС 12% : 159.35 [15:38:38]line Наличными: 1500.00 [15:38:38]line Безнал.: 0.00 [15:38:38]line Место: АЗС № 133 "Партнер Нефть" [15:38:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:38:38]line СНО: Общий режим [15:38:38]line Чек 227 20.10.2024 15:38 [15:38:38]line Смена: 170 ФФД: 1.0 [15:38:38]line ЗНМ: 0300000020 [15:38:38]line РНМ: 0000000000161154 [15:38:38]line Версия ККМ: v1.0 [15:38:38]line ФМ: 0000000000963323 [15:38:38]line ФД: 73901 [15:38:38]line ФПД: 144773244023065 [15:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153839&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73901&fm=144773244023065&tin=02508201610067®Number=0000000000161154&sum=150000 [15:38:38]OFD Sender: Processing packet 73901 [packets to send 15, broken 14] [15:38:38]ProducePacketName [15:38:38]name=ofd_packets/00073901 [15:38:38]OFD Sender: To server: pG, [15:38:38]CommunicateWithHost lk.salyk.kg:30040 [15:38:38]ConnectInit lk.salyk.kg [15:38:38]written 0, free lines is 4095 [15:38:39]Connected sock=10 [15:38:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 96 07 07 01 3E F8 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 E3 00 00 00 F4 03 04 00 FF 23 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 20 01 00 35 04 06 00 83 AB A5 C8 71 19 59 F5 F7 8C 5A AB F6 03 [15:38:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1C 03 47 00 90 CA 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 39 36 33 33 32 33 10 04 04 00 AD 20 01 00 F4 03 04 00 E3 CC 14 67 B6 04 01 00 00 7C 73 FC 05 38 7B ED D6 [15:38:39]CommunicateWithHost err = 0 [15:38:39]CheckOFDResponse [15:38:39]1017 (14) - 77093643461234 [15:38:39]1041 (16) - 0000000000963323 [15:38:39]1040 (4) - 73901 [15:38:39]1012 (4) - 20.10.2024 09:26 [15:38:39]1206 (1) - 0 [15:38:39]OFD Sender: Remove packet 73901 [15:38:39]ProducePacketName [15:38:39]name=ofd_packets/00073901 [15:38:39]NVStorageDeleteData [15:38:39]Write to MH i2c: 01 00 00 67 39 A0 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: 01 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: 01 07 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: 01 07 00 67 39 00 00 00 00 00 B9 0C 6C [15:38:39]RasterBufferAndPrint [15:38:39]line [15:38:39]line [15:38:39]line [15:38:39]line [15:38:39]line [15:38:39]written 0, free lines is 3262 [15:38:39]MH_Cut [15:38:39]Write to MH i2c: D1 01 00 6E 39 01 79 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: D1 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: D1 01 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: D1 01 00 6E 39 00 78 [15:38:39]Write to MH i2c: 01 00 00 6F 39 A8 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]OFD Sender: No OFD packet to send [15:38:40]*** Cut start [15:38:40]*** Partial cut [15:38:40]*** CUTSNS_PIN = 1 [15:38:40]*** CUTSNS_PIN = 0 [15:38:40]*** Brake cut motor [15:38:40]Read from MH i2c: 01 [15:38:40]MH_I2C_Read... [15:38:40]*** Stop cut motor [15:38:40]*** Cut end [15:38:40]Read from MH i2c: 01 07 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 07 00 6F 39 00 00 00 00 00 FF 0F BD [15:38:40]process_action close_receipt done [15:38:40]requested_data is exist [15:38:40]produce_requested_data [15:38:40]requested_item fm.sn is exist - process it [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 11 00 00 [15:38:40]Write to MH i2c: E2 08 00 70 39 80 11 00 00 00 00 00 00 23 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 17 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 17 00 70 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 70 [15:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:38:40]wFMCommunicate OK [15:38:40]requested_item fd.num is exist - process it [15:38:40]SAM_PROTO_GetFieldsCounters [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 13 00 00 [15:38:40]Write to MH i2c: E2 08 00 71 39 80 13 00 00 00 00 00 00 26 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 62 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 62 00 71 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [15:38:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:41]wFMCommunicate OK [15:38:41]SAM_PROTO_GetFieldsCounters done [15:38:41]requested_item shift.num is exist - process it [15:38:41]requested_item shift.opened is exist - process it [15:38:41]req_shift_opened [15:38:41]FM_GetShiftState [15:38:41]SAM_PROTO_GetShiftState [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 13 01 00 [15:38:41]Write to MH i2c: E2 08 00 72 39 80 13 01 00 00 00 00 00 28 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 0E 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 0E 00 72 39 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [15:38:41]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:38:41]wFMCommunicate OK [15:38:41]SAM_PROTO_GetShiftState done [15:38:41]FM_GetShiftState done [15:38:41]req_shift_opened done [15:38:41]requested_item shift.open_date is exist - process it [15:38:41]req_shift_open_date [15:38:41]req_shift_open_date done [15:38:41]produce_requested_data done [15:38:41]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73901,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:38:41]process_action_free close_receipt [15:38:41]json_value_free [15:38:41]json_value_free done [15:38:41]process_json_proto returns [15:38:41]Send response to host [15:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73901,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:38:41]free response buf [15:38:41]execute_script done [15:38:41]execute_script returns [15:38:41]free content buf [15:38:41]Sock 8.Close socket [15:38:41]Sock 8.Thread stoped [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]accept exits with 9 [15:41:14]New connection [15:41:14]New thread 3067575652 created [15:41:14]Thread 3067432292 joined [15:41:14]Waiting for new connection... [15:41:14] Sock 9.Parse request [15:41:14]Sock 9.Check first char [15:41:14]Sock 9.First char is OK [15:41:14]request: POST /json_proto HTTP/1.0 [15:41:14]Method: POST [15:41:14]URL: /json_proto [15:41:14]Method is POST - this is cgi request [15:41:14]url: /json_proto [15:41:14]query_string will be loaded in cgi processing [15:41:14]execute_cgi json_proto POST (null) [15:41:14]execute_cgi path=json_proto method=POST [15:41:14]POST find Content-Length [15:41:14]Host: 172.17.44.196:8080 [15:41:14]Content-Length: 679 [15:41:14]Content-Type: application/json [15:41:14] [15:41:14]POST finish read [15:41:14]Found Content-Length = 679 [15:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963102", "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" : 66.90, "quantity" : 12.680, "sum" : 848.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 848.00, "payments": [ { "type": 0, "sum" : 848.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:14]execute_script... [15:41: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 : (1)1963102", "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" : 66.90, "quantity" : 12.680, "sum" : 848.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 848.00, "payments": [ { "type": 0, "sum" : 848.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:14]POST & json_proto [15:41:14]process_json_proto [15:41:14]json parsed OK: [15:41:14]protocol is kg_v1.0 [15:41:14]action value=close_receipt [15:41:14]process_action close_receipt [15:41:14]cmd_close_receipt [15:41:14]MH_GetDate [15:41:14]Write to MH i2c: F0 00 00 73 39 9B [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: F0 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: F0 09 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: F0 09 00 73 39 00 9C 24 15 67 E7 19 F8 65 3D [15:41:14]GetLastDocTimeStamp 1729438719 [15:41:14]current date 1729438876 [15:41:14]FM_GetShiftState [15:41:14]SAM_PROTO_GetShiftState [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 13 01 00 [15:41:14]Write to MH i2c: E2 08 00 74 39 80 13 01 00 00 00 00 00 2A [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 0E 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 0E 00 74 39 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [15:41:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:41:14]wFMCommunicate OK [15:41:14]SAM_PROTO_GetShiftState done [15:41:14]FM_GetShiftState done [15:41:14]opened in 1729384303 [15:41:14]opened+sec_in_day 1729470703 [15:41:14]quantity*price = 84829 [15:41:14]sum+1 = 84830 [15:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 848.00 Внесено: 900.00 СДАЧА: 52.00 НСП 1% : 7.51 НДС 12% : 90.08 Наличными: 848.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 228 20.10.2024 15:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73902 ФПД: 112646921082681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154116&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73902&fm=112646921082681&tin=02508201610067®Number=0000000000161154&sum=84800 [15:41:15]StoreToDocumentArchive [15:41:15]shift 170 fd 73902 [15:41:15]save to /storage/0170/doc_00073902 [15:41:15]save last doc name /storage/0170/doc_00073902 to /storage/kkm_last_doc_name [15:41:15]save OK [15:41:15]Clear old archive folders... [15:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:15]tlvbuf is 0037ABC0 [15:41:15]SAM_PROTO_ClearQueue [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 09 00 00 [15:41:15]Write to MH i2c: E2 08 00 81 39 80 09 00 00 00 00 00 00 2C [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 81 39 00 90 00 2E [15:41:15]RAPDU: 90 00 [15:41:15]wFMCommunicate OK [15:41:15]SAM_PROTO_ClearQueue done [15:41:15]KKMCreateOFDPacket [15:41:15]OFDProtocolAddRootSTLVToBuf [15:41:15]FM_MakeSignedData [15:41:15]FM_MakeSignedData [15:41:15]SAM_PROTO_SignData [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 0D 01 02 [15:41:15]Write to MH i2c: E2 08 00 82 39 80 0D 01 02 00 00 00 00 34 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 82 39 00 90 00 2F [15:41:15]RAPDU: 90 00 [15:41:15]wFMCommunicate OK [15:41:15]wFMCommunicate request_size=255 [15:41:15]MH_SAM_APDU [15:41:15]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 88 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 23 00 00 00 00 07 04 06 00 40 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9C 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 20 01 00 35 04 06 00 66 [15:41:15]Write to MH i2c: E2 02 01 83 39 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 88 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 23 00 00 00 00 07 04 06 00 40 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9C 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 20 01 00 35 04 06 00 66 00 00 2A [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 83 39 00 90 00 30 [15:41:16]RAPDU: 90 00 [15:41:16]wFMCommunicate OK [15:41:16]wFMCommunicate request_size=10 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 0D 02 02 05 73 A7 B7 57 39 [15:41:16]Write to MH i2c: E2 0D 00 84 39 80 0D 02 02 05 00 73 A7 B7 57 39 00 00 A2 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 84 39 00 90 00 31 [15:41:16]RAPDU: 90 00 [15:41:16]wFMCommunicate OK [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 0D 03 02 [15:41:16]Write to MH i2c: E2 08 00 85 39 80 0D 03 02 00 00 00 00 39 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 0B 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 0B 00 85 39 00 A5 8E 9C 83 73 DF 13 34 90 00 25 [15:41:16]RAPDU: A5 8E 9C 83 73 DF 13 34 90 00 [15:41:16]wFMCommunicate OK [15:41:16]SAM_PROTO_SignData done [15:41:16]FM_MakeSignedData done [15:41:16]CreateOFDProtocolMessage [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 11 00 00 [15:41:16]Write to MH i2c: E2 08 00 86 39 80 11 00 00 00 00 00 00 39 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 17 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 17 00 86 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [15:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:41:16]wFMCommunicate OK [15:41:16]CreateOFDProtocolMessage done [15:41:16]OFDSenderStorePacket 73902 [15:41:16]StoreOFDPacket docnum=73902 [15:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 22 C2 07 01 5E 88 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 88 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 23 00 00 00 00 07 04 06 00 40 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9C 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 20 01 00 35 04 06 00 66 73 A7 B7 57 39 A5 8E 9C 83 73 DF 13 34 [15:41:16]CheckFolder [15:41:16]dirname=/storage/ofd_packets [15:41:16]CheckFolder done [15:41:16]ProducePacketName [15:41:16]name=ofd_packets/00073902 [15:41:16]NVStorageSaveData ofd_packets/00073902 [15:41:16]File name is /storage/ofd_packets/00073902 [15:41:16]Write 301 bytes [15:41:16]NVStorageSaveData done [15:41:16]OFDSenderStorePacket done [15:41:16]KKMCreateOFDPacket done [15:41:16]NVStorageSaveData kkm_last_timestamp [15:41:16]File name is /storage/kkm_last_timestamp [15:41:16]Write 4 bytes [15:41:16]NVStorageSaveData done [15:41:16]ExternCall_PrintAddStr [15:41:16]wPrintStart [15:41:16]Write to MH i2c: 01 00 00 87 39 C0 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 07 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 07 00 87 39 00 00 00 00 00 FF 0F D5 [15:41:16]RasterBufferAndPrint [15:41:16]line Счет N : (1)1963102 [15:41:16]line ИНН: 02508201610067 [15:41:16]line Контрольно-Кассовый Чек [15:41:16]line ПРОДАЖА [15:41:16]line ТРК (МРК, ГНК) : 33 [15:41:16]line Товар: 2710124130 [15:41:16]line Аи-92-К-5 [15:41:16]line 12.680 * 66.90 [15:41:16]line = 848.29 [15:41:16]line НДС 12% НСП 1% [15:41:16]line > о реализуемом товаре [15:41:16]line ОКРУГЛЕНИЕ: -0.29 [15:41:16]line ИТОГО: 848.00 [15:41:16]line Внесено: 900.00 [15:41:16]line СДАЧА: 52.00 [15:41:16]line НСП 1% : 7.51 [15:41:16]line НДС 12% : 90.08 [15:41:16]line Наличными: 848.00 [15:41:16]line Безнал.: 0.00 [15:41:16]line Место: АЗС № 133 "Партнер Нефть" [15:41:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:41:16]line СНО: Общий режим [15:41:16]line Чек 228 20.10.2024 15:41 [15:41:16]line Смена: 170 ФФД: 1.0 [15:41:16]line ЗНМ: 0300000020 [15:41:16]line РНМ: 0000000000161154 [15:41:16]line Версия ККМ: v1.0 [15:41:16]line ФМ: 0000000000963323 [15:41:16]line ФД: 73902 [15:41:16]line ФПД: 112646921082681 [15:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154116&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73902&fm=112646921082681&tin=02508201610067®Number=0000000000161154&sum=84800 [15:41:16]OFD Sender: Processing packet 73902 [packets to send 15, broken 14] [15:41:16]ProducePacketName [15:41:16]name=ofd_packets/00073902 [15:41:16]OFD Sender: To server: pG, [15:41:16]CommunicateWithHost lk.salyk.kg:30040 [15:41:16]ConnectInit lk.salyk.kg [15:41:16]written 0, free lines is 4095 [15:41:16]Connected sock=10 [15:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 22 C2 07 01 5E 88 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 88 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 23 00 00 00 00 07 04 06 00 40 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9C 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 20 01 00 35 04 06 00 66 73 A7 B7 57 39 A5 8E 9C 83 73 DF 13 34 [15:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 D9 47 00 0F 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 39 36 33 33 32 33 10 04 04 00 AE 20 01 00 F4 03 04 00 81 CD 14 67 B6 04 01 00 00 59 3E 45 05 AE 46 E1 1E [15:41:16]CommunicateWithHost err = 0 [15:41:16]CheckOFDResponse [15:41:16]1017 (14) - 77093643461234 [15:41:16]1041 (16) - 0000000000963323 [15:41:16]1040 (4) - 73902 [15:41:16]1012 (4) - 20.10.2024 09:29 [15:41:16]1206 (1) - 0 [15:41:16]OFD Sender: Remove packet 73902 [15:41:16]ProducePacketName [15:41:16]name=ofd_packets/00073902 [15:41:16]NVStorageDeleteData [15:41:17]Write to MH i2c: 01 00 00 B1 39 EA [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: 01 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: 01 07 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: 01 07 00 B1 39 00 00 00 00 00 C4 0C C1 [15:41:17]RasterBufferAndPrint [15:41:17]line [15:41:17]line [15:41:17]line [15:41:17]line [15:41:17]line [15:41:17]written 0, free lines is 3274 [15:41:17]MH_Cut [15:41:17]Write to MH i2c: D1 01 00 B8 39 01 C3 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: D1 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: D1 01 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: D1 01 00 B8 39 00 C2 [15:41:17]Write to MH i2c: 01 00 00 B9 39 F2 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]OFD Sender: No OFD packet to send [15:41:17]*** Cut start [15:41:17]*** Partial cut [15:41:17]*** CUTSNS_PIN = 1 [15:41:17]*** CUTSNS_PIN = 0 [15:41:18]*** Brake cut motor [15:41:18]Read from MH i2c: 01 [15:41:18]MH_I2C_Read... [15:41:18]*** Stop cut motor [15:41:18]*** Cut end [15:41:18]Read from MH i2c: 01 07 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: 01 07 00 B9 39 00 00 00 00 00 FF 0F 07 [15:41:18]process_action close_receipt done [15:41:18]requested_data is exist [15:41:18]produce_requested_data [15:41:18]requested_item fm.sn is exist - process it [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 11 00 00 [15:41:18]Write to MH i2c: E2 08 00 BA 39 80 11 00 00 00 00 00 00 6D [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 17 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 17 00 BA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BA [15:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:41:18]wFMCommunicate OK [15:41:18]requested_item fd.num is exist - process it [15:41:18]SAM_PROTO_GetFieldsCounters [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 13 00 00 [15:41:18]Write to MH i2c: E2 08 00 BB 39 80 13 00 00 00 00 00 00 70 [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 62 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 62 00 BB 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [15:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:18]wFMCommunicate OK [15:41:18]SAM_PROTO_GetFieldsCounters done [15:41:18]requested_item shift.num is exist - process it [15:41:18]requested_item shift.opened is exist - process it [15:41:18]req_shift_opened [15:41:18]FM_GetShiftState [15:41:18]SAM_PROTO_GetShiftState [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 13 01 00 [15:41:18]Write to MH i2c: E2 08 00 BC 39 80 13 01 00 00 00 00 00 72 [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 0E 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 0E 00 BC 39 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [15:41:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:41:18]wFMCommunicate OK [15:41:18]SAM_PROTO_GetShiftState done [15:41:18]FM_GetShiftState done [15:41:18]req_shift_opened done [15:41:18]requested_item shift.open_date is exist - process it [15:41:18]req_shift_open_date [15:41:18]req_shift_open_date done [15:41:18]produce_requested_data done [15:41:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73902,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:41:18]process_action_free close_receipt [15:41:18]json_value_free [15:41:18]json_value_free done [15:41:18]process_json_proto returns [15:41:18]Send response to host [15:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73902,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:41:18]free response buf [15:41:18]execute_script done [15:41:18]execute_script returns [15:41:18]free content buf [15:41:18]Sock 9.Close socket [15:41:18]Sock 9.Thread stoped [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:05]int [15:42:05]Write to MH i2c: 01 00 00 BD 39 F6 [15:42:05]*** FLAG_PRN_PAP1 set [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 BD 39 00 01 00 00 00 FF 0F 0C [15:42:05]state=0 [15:42:05]No paper [15:42:05]int [15:42:05]Write to MH i2c: 01 00 00 BE 39 F7 [15:42:05]*** FLAG_PRN_PAP2 set [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 BE 39 00 03 00 00 00 FF 0F 0F [15:42:05]state=0 [15:42:05]No paper [15:42:05]Cover opened [15:42:07]OFD Sender: No OFD packet to send [15:42:10]Write to MH i2c: 01 00 00 BF 39 F8 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 BF 39 00 03 00 00 00 FF 0F 10 [15:42:10]state=3 [15:42:10]No paper [15:42:10]Cover opened [15:42:12]OFD Sender: No OFD packet to send [15:42:15]Write to MH i2c: 01 00 00 C0 39 F9 [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: 01 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: 01 07 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: 01 07 00 C0 39 00 03 00 00 00 FF 0F 11 [15:42:15]state=3 [15:42:15]No paper [15:42:15]Cover opened [15:42:17]OFD Sender: No OFD packet to send [15:42:17]int [15:42:17]Write to MH i2c: 01 00 00 C1 39 FA [15:42:17]*** FLAG_PRN_PAP1 reset [15:42:17]*** FLAG_PRN_PAP2 reset [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 07 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 07 00 C1 39 00 00 00 00 00 FF 0F 0F [15:42:17]state=3 [15:42:17]Cover closed [15:42:22]accept exits with 8 [15:42:22]New connection [15:42:22]New thread 3067432292 created [15:42:22]Thread 3067575652 joined [15:42:22]Waiting for new connection... [15:42:22] Sock 8.Parse request [15:42:22]Sock 8.Check first char [15:42:22]Sock 8.First char is OK [15:42:22]request: POST /json_proto HTTP/1.0 [15:42:22]Method: POST [15:42:22]URL: /json_proto [15:42:22]Method is POST - this is cgi request [15:42:22]url: /json_proto [15:42:22]query_string will be loaded in cgi processing [15:42:22]execute_cgi json_proto POST (null) [15:42:22]execute_cgi path=json_proto method=POST [15:42:22]POST find Content-Length [15:42:22]Host: 172.17.44.196:8080 [15:42:22]Content-Length: 683 [15:42:22]Content-Type: application/json [15:42:22] [15:42:22]POST finish read [15:42:22]Found Content-Length = 683 [15:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [15:42:22]execute_script... [15:42: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 : (1)1963103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [15:42:22]POST & json_proto [15:42:22]process_json_proto [15:42:22]json parsed OK: [15:42:22]protocol is kg_v1.0 [15:42:22]action value=close_receipt [15:42:22]process_action close_receipt [15:42:22]cmd_close_receipt [15:42:22]MH_GetDate [15:42:22]Write to MH i2c: F0 00 00 C2 39 EA [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: F0 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: F0 09 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: F0 09 00 C2 39 00 E0 24 15 67 E7 19 F8 65 D0 [15:42:22]GetLastDocTimeStamp 1729438876 [15:42:22]current date 1729438944 [15:42:22]FM_GetShiftState [15:42:22]SAM_PROTO_GetShiftState [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 13 01 00 [15:42:22]Write to MH i2c: E2 08 00 C3 39 80 13 01 00 00 00 00 00 79 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0E 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0E 00 C3 39 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BE [15:42:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_GetShiftState done [15:42:22]FM_GetShiftState done [15:42:22]opened in 1729384303 [15:42:22]opened+sec_in_day 1729470703 [15:42:22]quantity*price = 100015 [15:42:22]sum+1 = 100017 [15:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 229 20.10.2024 15:42 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73903 ФПД: 85805174164555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154224&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73903&fm=85805174164555&tin=02508201610067®Number=0000000000161154&sum=100000 [15:42:23]StoreToDocumentArchive [15:42:23]shift 170 fd 73903 [15:42:23]save to /storage/0170/doc_00073903 [15:42:23]save last doc name /storage/0170/doc_00073903 to /storage/kkm_last_doc_name [15:42:23]save OK [15:42:23]Clear old archive folders... [15:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:23]tlvbuf is 003ED8D0 [15:42:23]SAM_PROTO_ClearQueue [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 09 00 00 [15:42:23]Write to MH i2c: E2 08 00 D0 39 80 09 00 00 00 00 00 00 7B [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 D0 39 00 90 00 7D [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]SAM_PROTO_ClearQueue done [15:42:23]KKMCreateOFDPacket [15:42:23]OFDProtocolAddRootSTLVToBuf [15:42:23]FM_MakeSignedData [15:42:23]FM_MakeSignedData [15:42:23]SAM_PROTO_SignData [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 01 02 [15:42:23]Write to MH i2c: E2 08 00 D1 39 80 0D 01 02 00 00 00 00 83 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 D1 39 00 90 00 7E [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]wFMCommunicate request_size=255 [15:42:23]MH_SAM_APDU [15:42:23]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 E5 00 00 00 F4 03 04 00 E0 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 20 01 00 35 04 06 00 4E [15:42:23]Write to MH i2c: E2 02 01 D2 39 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 E5 00 00 00 F4 03 04 00 E0 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 20 01 00 35 04 06 00 4E 00 00 2C [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 D2 39 00 90 00 7F [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]wFMCommunicate request_size=10 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 02 02 05 0A 12 ED 0C 4B [15:42:23]Write to MH i2c: E2 0D 00 D3 39 80 0D 02 02 05 00 0A 12 ED 0C 4B 00 00 F0 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 D3 39 00 90 00 80 [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 03 02 [15:42:23]Write to MH i2c: E2 08 00 D4 39 80 0D 03 02 00 00 00 00 88 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 0B 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 0B 00 D4 39 00 CE F2 39 34 27 30 79 FE 90 00 84 [15:42:23]RAPDU: CE F2 39 34 27 30 79 FE 90 00 [15:42:23]wFMCommunicate OK [15:42:23]SAM_PROTO_SignData done [15:42:23]FM_MakeSignedData done [15:42:23]CreateOFDProtocolMessage [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 11 00 00 [15:42:23]Write to MH i2c: E2 08 00 D5 39 80 11 00 00 00 00 00 00 88 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 17 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 17 00 D5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D5 [15:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:42:23]wFMCommunicate OK [15:42:23]CreateOFDProtocolMessage done [15:42:23]OFDSenderStorePacket 73903 [15:42:23]StoreOFDPacket docnum=73903 [15:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D6 24 07 01 D1 C5 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 E5 00 00 00 F4 03 04 00 E0 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 20 01 00 35 04 06 00 4E 0A 12 ED 0C 4B CE F2 39 34 27 30 79 FE [15:42:23]CheckFolder [15:42:23]dirname=/storage/ofd_packets [15:42:23]CheckFolder done [15:42:23]ProducePacketName [15:42:23]name=ofd_packets/00073903 [15:42:23]NVStorageSaveData ofd_packets/00073903 [15:42:23]File name is /storage/ofd_packets/00073903 [15:42:23]Write 301 bytes [15:42:23]NVStorageSaveData done [15:42:23]OFDSenderStorePacket done [15:42:23]KKMCreateOFDPacket done [15:42:23]NVStorageSaveData kkm_last_timestamp [15:42:23]File name is /storage/kkm_last_timestamp [15:42:23]Write 4 bytes [15:42:23]NVStorageSaveData done [15:42:23]ExternCall_PrintAddStr [15:42:23]wPrintStart [15:42:23]Write to MH i2c: 01 00 00 D6 39 0F [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 FF 0F 24 [15:42:23]RasterBufferAndPrint [15:42:23]line Счет N : (1)1963103 [15:42:23]line ИНН: 02508201610067 [15:42:23]line Контрольно-Кассовый Чек [15:42:23]line ПРОДАЖА [15:42:23]line ТРК (МРК, ГНК) : 63 [15:42:23]line Товар: 2710124130 [15:42:23]line Аи-92-К-5 [15:42:23]line 14.950 * 66.90 [15:42:23]line = 1000.16 [15:42:23]line НДС 12% НСП 1% [15:42:23]line > о реализуемом товаре [15:42:23]line ОКРУГЛЕНИЕ: -0.16 [15:42:23]line ИТОГО: 1000.00 [15:42:23]line Внесено: 1000.00 [15:42:23]line СДАЧА: 0.00 [15:42:23]line НСП 1% : 8.85 [15:42:23]line НДС 12% : 106.21 [15:42:23]line Наличными: 1000.00 [15:42:23]line Безнал.: 0.00 [15:42:23]line Место: АЗС № 133 "Партнер Нефть" [15:42:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:42:23]line СНО: Общий режим [15:42:23]line Чек 229 20.10.2024 15:42 [15:42:23]line Смена: 170 ФФД: 1.0 [15:42:23]line ЗНМ: 0300000020 [15:42:23]line РНМ: 0000000000161154 [15:42:23]line Версия ККМ: v1.0 [15:42:23]line ФМ: 0000000000963323 [15:42:23]line ФД: 73903 [15:42:23]line ФПД: 85805174164555 [15:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154224&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73903&fm=85805174164555&tin=02508201610067®Number=0000000000161154&sum=100000 [15:42:24]OFD Sender: Processing packet 73903 [packets to send 15, broken 14] [15:42:24]ProducePacketName [15:42:24]name=ofd_packets/00073903 [15:42:24]OFD Sender: To server: pG, [15:42:24]CommunicateWithHost lk.salyk.kg:30040 [15:42:24]ConnectInit lk.salyk.kg [15:42:24]written 0, free lines is 4095 [15:42:24]Connected sock=10 [15:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D6 24 07 01 D1 C5 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 E5 00 00 00 F4 03 04 00 E0 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 20 01 00 35 04 06 00 4E 0A 12 ED 0C 4B CE F2 39 34 27 30 79 FE [15:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0B 0A 47 00 2E 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 39 36 33 33 32 33 10 04 04 00 AF 20 01 00 F4 03 04 00 C4 CD 14 67 B6 04 01 00 00 C0 BF 6A C5 D4 D3 DA 0B [15:42:24]CommunicateWithHost err = 0 [15:42:24]CheckOFDResponse [15:42:24]1017 (14) - 77093643461234 [15:42:24]1041 (16) - 0000000000963323 [15:42:24]1040 (4) - 73903 [15:42:24]1012 (4) - 20.10.2024 09:30 [15:42:24]1206 (1) - 0 [15:42:24]OFD Sender: Remove packet 73903 [15:42:24]ProducePacketName [15:42:24]name=ofd_packets/00073903 [15:42:24]NVStorageDeleteData [15:42:24]Write to MH i2c: 01 00 00 00 3A 3A [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: 01 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: 01 07 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: 01 07 00 00 3A 00 00 00 00 00 B2 0C FF [15:42:24]RasterBufferAndPrint [15:42:24]line [15:42:24]line [15:42:24]line [15:42:24]line [15:42:24]line [15:42:24]written 0, free lines is 3256 [15:42:24]MH_Cut [15:42:24]Write to MH i2c: D1 01 00 07 3A 01 13 [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: D1 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: D1 01 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: D1 01 00 07 3A 00 12 [15:42:24]Write to MH i2c: 01 00 00 08 3A 42 [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:25]OFD Sender: No OFD packet to send [15:42:25]*** Cut start [15:42:25]*** Partial cut [15:42:25]*** CUTSNS_PIN = 1 [15:42:25]*** CUTSNS_PIN = 0 [15:42:25]*** Brake cut motor [15:42:26]Read from MH i2c: 01 [15:42:26]MH_I2C_Read... [15:42:26]*** Stop cut motor [15:42:26]*** Cut end [15:42:26]Read from MH i2c: 01 07 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 07 00 08 3A 00 00 00 00 00 FF 0F 57 [15:42:26]process_action close_receipt done [15:42:26]requested_data is exist [15:42:26]produce_requested_data [15:42:26]requested_item fm.sn is exist - process it [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 11 00 00 [15:42:26]Write to MH i2c: E2 08 00 09 3A 80 11 00 00 00 00 00 00 BD [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 17 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 17 00 09 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0A [15:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:42:26]wFMCommunicate OK [15:42:26]requested_item fd.num is exist - process it [15:42:26]SAM_PROTO_GetFieldsCounters [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 13 00 00 [15:42:26]Write to MH i2c: E2 08 00 0A 3A 80 13 00 00 00 00 00 00 C0 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 62 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 62 00 0A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [15:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:26]wFMCommunicate OK [15:42:26]SAM_PROTO_GetFieldsCounters done [15:42:26]requested_item shift.num is exist - process it [15:42:26]requested_item shift.opened is exist - process it [15:42:26]req_shift_opened [15:42:26]FM_GetShiftState [15:42:26]SAM_PROTO_GetShiftState [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 13 01 00 [15:42:26]Write to MH i2c: E2 08 00 0B 3A 80 13 01 00 00 00 00 00 C2 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 0E 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 0E 00 0B 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 07 [15:42:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:42:26]wFMCommunicate OK [15:42:26]SAM_PROTO_GetShiftState done [15:42:26]FM_GetShiftState done [15:42:26]req_shift_opened done [15:42:26]requested_item shift.open_date is exist - process it [15:42:26]req_shift_open_date [15:42:26]req_shift_open_date done [15:42:26]produce_requested_data done [15:42:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73903,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:42:26]process_action_free close_receipt [15:42:26]json_value_free [15:42:26]json_value_free done [15:42:26]process_json_proto returns [15:42:26]Send response to host [15:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73903,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:42:26]free response buf [15:42:26]execute_script done [15:42:26]execute_script returns [15:42:26]free content buf [15:42:26]Sock 8.Close socket [15:42:26]Sock 8.Thread stoped [15:42:26]accept exits with 9 [15:42:26]New connection [15:42:26]New thread 3067575652 created [15:42:26]Thread 3067432292 joined [15:42:26]Waiting for new connection... [15:42:26] Sock 9.Parse request [15:42:26]Sock 9.Check first char [15:42:26]Sock 9.First char is OK [15:42:26]request: POST /json_proto HTTP/1.0 [15:42:26]Method: POST [15:42:26]URL: /json_proto [15:42:26]Method is POST - this is cgi request [15:42:26]url: /json_proto [15:42:26]query_string will be loaded in cgi processing [15:42:26]execute_cgi json_proto POST (null) [15:42:26]execute_cgi path=json_proto method=POST [15:42:26]POST find Content-Length [15:42:26]Host: 172.17.44.196:8080 [15:42:26]Content-Length: 680 [15:42:26]Content-Type: application/json [15:42:26] [15:42:26]POST finish read [15:42:26]Found Content-Length = 680 [15:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:26]execute_script... [15:42: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)1963104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:26]POST & json_proto [15:42:26]process_json_proto [15:42:26]json parsed OK: [15:42:26]protocol is kg_v1.0 [15:42:26]action value=close_receipt [15:42:26]process_action close_receipt [15:42:26]cmd_close_receipt [15:42:26]MH_GetDate [15:42:26]Write to MH i2c: F0 00 00 0C 3A 35 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: F0 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: F0 09 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: F0 09 00 0C 3A 00 E5 24 15 67 E7 19 F8 65 20 [15:42:26]GetLastDocTimeStamp 1729438944 [15:42:26]current date 1729438949 [15:42:26]FM_GetShiftState [15:42:26]SAM_PROTO_GetShiftState [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 13 01 00 [15:42:26]Write to MH i2c: E2 08 00 0D 3A 80 13 01 00 00 00 00 00 C4 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 0E 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 0E 00 0D 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 09 [15:42:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:42:26]wFMCommunicate OK [15:42:26]SAM_PROTO_GetShiftState done [15:42:26]FM_GetShiftState done [15:42:26]opened in 1729384303 [15:42:26]opened+sec_in_day 1729470703 [15:42:26]quantity*price = 160020 [15:42:26]sum+1 = 160021 [15:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 230 20.10.2024 15:42 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73904 ФПД: 259177535034748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154229&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73904&fm=259177535034748&tin=02508201610067®Number=0000000000161154&sum=160000 [15:42:28]StoreToDocumentArchive [15:42:28]shift 170 fd 73904 [15:42:28]save to /storage/0170/doc_00073904 [15:42:28]save last doc name /storage/0170/doc_00073904 to /storage/kkm_last_doc_name [15:42:28]save OK [15:42:28]Clear old archive folders... [15:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:42:28]tlvbuf is 002F44B0 [15:42:28]SAM_PROTO_ClearQueue [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 09 00 00 [15:42:28]Write to MH i2c: E2 08 00 1A 3A 80 09 00 00 00 00 00 00 C6 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 1A 3A 00 90 00 C8 [15:42:28]RAPDU: 90 00 [15:42:28]wFMCommunicate OK [15:42:28]SAM_PROTO_ClearQueue done [15:42:28]KKMCreateOFDPacket [15:42:28]OFDProtocolAddRootSTLVToBuf [15:42:28]FM_MakeSignedData [15:42:28]FM_MakeSignedData [15:42:28]SAM_PROTO_SignData [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 0D 01 02 [15:42:28]Write to MH i2c: E2 08 00 1B 3A 80 0D 01 02 00 00 00 00 CE [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 1B 3A 00 90 00 C9 [15:42:28]RAPDU: 90 00 [15:42:28]wFMCommunicate OK [15:42:28]wFMCommunicate request_size=255 [15:42:28]MH_SAM_APDU [15:42:28]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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 E5 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 20 01 00 35 04 06 00 EB B8 78 E8 [15:42:28]Write to MH i2c: E2 02 01 1C 3A 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 E5 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 20 01 00 35 04 06 00 EB B8 78 E8 00 00 DF [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 1C 3A 00 90 00 CA [15:42:28]RAPDU: 90 00 [15:42:28]wFMCommunicate OK [15:42:28]wFMCommunicate request_size=7 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 0D 02 02 02 D5 7C [15:42:28]Write to MH i2c: E2 0A 00 1D 3A 80 0D 02 02 02 00 D5 7C 00 00 26 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 03 00 1D 3A 00 90 00 CB [15:42:28]RAPDU: 90 00 [15:42:28]wFMCommunicate OK [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 0D 03 02 [15:42:28]Write to MH i2c: E2 08 00 1E 3A 80 0D 03 02 00 00 00 00 D3 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 0B 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 0B 00 1E 3A 00 D7 11 F4 C0 79 7C 12 C5 90 00 3C [15:42:28]RAPDU: D7 11 F4 C0 79 7C 12 C5 90 00 [15:42:28]wFMCommunicate OK [15:42:28]SAM_PROTO_SignData done [15:42:28]FM_MakeSignedData done [15:42:28]CreateOFDProtocolMessage [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 11 00 00 [15:42:28]Write to MH i2c: E2 08 00 1F 3A 80 11 00 00 00 00 00 00 D3 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 17 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 17 00 1F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 20 [15:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:42:28]wFMCommunicate OK [15:42:28]CreateOFDProtocolMessage done [15:42:28]OFDSenderStorePacket 73904 [15:42:28]StoreOFDPacket docnum=73904 [15:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 45 A9 04 01 FD CE 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 E5 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 20 01 00 35 04 06 00 EB B8 78 E8 D5 7C D7 11 F4 C0 79 7C 12 C5 [15:42:28]CheckFolder [15:42:28]dirname=/storage/ofd_packets [15:42:28]CheckFolder done [15:42:28]ProducePacketName [15:42:28]name=ofd_packets/00073904 [15:42:28]NVStorageSaveData ofd_packets/00073904 [15:42:28]File name is /storage/ofd_packets/00073904 [15:42:28]Write 298 bytes [15:42:28]NVStorageSaveData done [15:42:28]OFDSenderStorePacket done [15:42:28]KKMCreateOFDPacket done [15:42:28]NVStorageSaveData kkm_last_timestamp [15:42:28]File name is /storage/kkm_last_timestamp [15:42:29]Write 4 bytes [15:42:29]NVStorageSaveData done [15:42:29]ExternCall_PrintAddStr [15:42:29]wPrintStart [15:42:29]Write to MH i2c: 01 00 00 20 3A 5A [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 07 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 07 00 20 3A 00 00 00 00 00 FF 0F 6F [15:42:29]RasterBufferAndPrint [15:42:29]line Счет N : (1)1963104 [15:42:29]line ИНН: 02508201610067 [15:42:29]line Контрольно-Кассовый Чек [15:42:29]line ПРОДАЖА [15:42:29]line ТРК (МРК, ГНК) : 21 [15:42:29]line Товар: 2710194210 [15:42:29]line ДТ-К-5 [15:42:29]line 21.000 * 76.20 [15:42:29]line = 1600.20 [15:42:29]line НДС 12% НСП 1% [15:42:29]line > о реализуемом товаре [15:42:29]line ОКРУГЛЕНИЕ: -0.20 [15:42:29]line ИТОГО: 1600.00 [15:42:29]line Внесено: 1600.00 [15:42:29]line СДАЧА: 0.00 [15:42:29]line НСП 1% : 14.16 [15:42:29]line НДС 12% : 169.93 [15:42:29]line Наличными: 1600.00 [15:42:29]line Безнал.: 0.00 [15:42:29]line Место: АЗС № 133 "Партнер Нефть" [15:42:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:42:29]line СНО: Общий режим [15:42:29]line Чек 230 20.10.2024 15:42 [15:42:29]line Смена: 170 ФФД: 1.0 [15:42:29]line ЗНМ: 0300000020 [15:42:29]line РНМ: 0000000000161154 [15:42:29]line Версия ККМ: v1.0 [15:42:29]line ФМ: 0000000000963323 [15:42:29]line ФД: 73904 [15:42:29]line ФПД: 259177535034748 [15:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154229&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73904&fm=259177535034748&tin=02508201610067®Number=0000000000161154&sum=160000 [15:42:29]written 0, free lines is 4095 [15:42:29]OFD Sender: Processing packet 73904 [packets to send 15, broken 14] [15:42:29]ProducePacketName [15:42:29]name=ofd_packets/00073904 [15:42:29]OFD Sender: To server: pG, [15:42:29]CommunicateWithHost lk.salyk.kg:30040 [15:42:29]ConnectInit lk.salyk.kg [15:42:29]Connected sock=10 [15:42:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 45 A9 04 01 FD CE 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 E5 24 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 20 01 00 35 04 06 00 EB B8 78 E8 D5 7C D7 11 F4 C0 79 7C 12 C5 [15:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4C A6 47 00 24 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 39 36 33 33 32 33 10 04 04 00 B0 20 01 00 F4 03 04 00 C9 CD 14 67 B6 04 01 00 00 52 DA 9F 8F C4 D9 AF 69 [15:42:29]CommunicateWithHost err = 0 [15:42:29]CheckOFDResponse [15:42:29]1017 (14) - 77093643461234 [15:42:29]1041 (16) - 0000000000963323 [15:42:29]1040 (4) - 73904 [15:42:29]1012 (4) - 20.10.2024 09:30 [15:42:29]1206 (1) - 0 [15:42:29]OFD Sender: Remove packet 73904 [15:42:29]ProducePacketName [15:42:29]name=ofd_packets/00073904 [15:42:29]NVStorageDeleteData [15:42:29]Write to MH i2c: 01 00 00 4A 3A 84 [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 07 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 07 00 4A 3A 00 00 00 00 00 C3 0C 5A [15:42:29]RasterBufferAndPrint [15:42:29]line [15:42:29]line [15:42:29]line [15:42:29]line [15:42:29]line [15:42:29]written 0, free lines is 3277 [15:42:29]MH_Cut [15:42:29]Write to MH i2c: D1 01 00 51 3A 01 5D [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: D1 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: D1 01 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: D1 01 00 51 3A 00 5C [15:42:29]Write to MH i2c: 01 00 00 52 3A 8C [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]OFD Sender: No OFD packet to send [15:42:30]*** Cut start [15:42:30]*** Partial cut [15:42:30]*** CUTSNS_PIN = 1 [15:42:30]*** CUTSNS_PIN = 0 [15:42:30]*** Brake cut motor [15:42:30]Read from MH i2c: 01 [15:42:30]MH_I2C_Read... [15:42:30]*** Stop cut motor [15:42:30]*** Cut end [15:42:30]Read from MH i2c: 01 07 00 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: 01 07 00 52 3A 00 00 00 00 00 FF 0F A1 [15:42:30]process_action close_receipt done [15:42:30]requested_data is exist [15:42:30]produce_requested_data [15:42:30]requested_item fm.sn is exist - process it [15:42:30]wFMCommunicate request_size=4 [15:42:30]MH_SAM_APDU [15:42:30]CAPDU: 80 11 00 00 [15:42:30]Write to MH i2c: E2 08 00 53 3A 80 11 00 00 00 00 00 00 07 [15:42:30]Write i2c OK [15:42:30]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 17 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 17 00 53 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 54 [15:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:42:31]wFMCommunicate OK [15:42:31]requested_item fd.num is exist - process it [15:42:31]SAM_PROTO_GetFieldsCounters [15:42:31]wFMCommunicate request_size=4 [15:42:31]MH_SAM_APDU [15:42:31]CAPDU: 80 13 00 00 [15:42:31]Write to MH i2c: E2 08 00 54 3A 80 13 00 00 00 00 00 00 0A [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 62 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 62 00 54 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [15:42:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:31]wFMCommunicate OK [15:42:31]SAM_PROTO_GetFieldsCounters done [15:42:31]requested_item shift.num is exist - process it [15:42:31]requested_item shift.opened is exist - process it [15:42:31]req_shift_opened [15:42:31]FM_GetShiftState [15:42:31]SAM_PROTO_GetShiftState [15:42:31]wFMCommunicate request_size=4 [15:42:31]MH_SAM_APDU [15:42:31]CAPDU: 80 13 01 00 [15:42:31]Write to MH i2c: E2 08 00 55 3A 80 13 01 00 00 00 00 00 0C [15:42:31]Write i2c OK [15:42:31]MH_I2C_Read... [15:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:31]Read from MH i2c: E2 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 0E 00 [15:42:31]MH_I2C_Read... [15:42:31]Read from MH i2c: E2 0E 00 55 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 51 [15:42:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:42:31]wFMCommunicate OK [15:42:31]SAM_PROTO_GetShiftState done [15:42:31]FM_GetShiftState done [15:42:31]req_shift_opened done [15:42:31]requested_item shift.open_date is exist - process it [15:42:31]req_shift_open_date [15:42:31]req_shift_open_date done [15:42:31]produce_requested_data done [15:42:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73904,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:42:31]process_action_free close_receipt [15:42:31]json_value_free [15:42:31]json_value_free done [15:42:31]process_json_proto returns [15:42:31]Send response to host [15:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73904,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:42:31]free response buf [15:42:31]execute_script done [15:42:31]execute_script returns [15:42:31]free content buf [15:42:31]Sock 9.Close socket [15:42:31]Sock 9.Thread stoped [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]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:14]accept exits with 8 [15:45:14]New connection [15:45:14]New thread 3067432292 created [15:45:14]Thread 3067575652 joined [15:45:14]Waiting for new connection... [15:45:14] Sock 8.Parse request [15:45:14]Sock 8.Check first char [15:45:14]Sock 8.First char is OK [15:45:14]request: POST /json_proto HTTP/1.0 [15:45:14]Method: POST [15:45:14]URL: /json_proto [15:45:14]Method is POST - this is cgi request [15:45:14]url: /json_proto [15:45:14]query_string will be loaded in cgi processing [15:45:14]execute_cgi json_proto POST (null) [15:45:14]execute_cgi path=json_proto method=POST [15:45:14]POST find Content-Length [15:45:14]Host: 172.17.44.196:8080 [15:45:14]Content-Length: 621 [15:45:14]Content-Type: application/json [15:45:14] [15:45:14]POST finish read [15:45:14]Found Content-Length = 621 [15:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:14]execute_script... [15:45: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 : (1)1963107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:14]POST & json_proto [15:45:14]process_json_proto [15:45:14]json parsed OK: [15:45:14]protocol is kg_v1.0 [15:45:14]action value=close_receipt [15:45:14]process_action close_receipt [15:45:14]cmd_close_receipt [15:45:14]MH_GetDate [15:45:14]Write to MH i2c: F0 00 00 56 3A 7F [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: F0 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: F0 09 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: F0 09 00 56 3A 00 8C 25 15 67 E7 19 F8 65 12 [15:45:14]GetLastDocTimeStamp 1729438949 [15:45:14]current date 1729439116 [15:45:14]FM_GetShiftState [15:45:14]SAM_PROTO_GetShiftState [15:45:14]wFMCommunicate request_size=4 [15:45:14]MH_SAM_APDU [15:45:14]CAPDU: 80 13 01 00 [15:45:14]Write to MH i2c: E2 08 00 57 3A 80 13 01 00 00 00 00 00 0E [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:14]Read from MH i2c: E2 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 0E 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 0E 00 57 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 53 [15:45:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:45:14]wFMCommunicate OK [15:45:14]SAM_PROTO_GetShiftState done [15:45:14]FM_GetShiftState done [15:45:14]opened in 1729384303 [15:45:14]opened+sec_in_day 1729470703 [15:45:14]quantity*price = 50000 [15:45:14]sum+1 = 50001 [15:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 231 20.10.2024 15:45 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73905 ФПД: 227635724632833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154516&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73905&fm=227635724632833&tin=02508201610067®Number=0000000000161154&sum=50000 [15:45:15]StoreToDocumentArchive [15:45:15]shift 170 fd 73905 [15:45:15]save to /storage/0170/doc_00073905 [15:45:15]save last doc name /storage/0170/doc_00073905 to /storage/kkm_last_doc_name [15:45:15]save OK [15:45:15]Clear old archive folders... [15:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:45:15]tlvbuf is 00417F30 [15:45:15]SAM_PROTO_ClearQueue [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 09 00 00 [15:45:15]Write to MH i2c: E2 08 00 64 3A 80 09 00 00 00 00 00 00 10 [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 03 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 03 00 64 3A 00 90 00 12 [15:45:15]RAPDU: 90 00 [15:45:15]wFMCommunicate OK [15:45:15]SAM_PROTO_ClearQueue done [15:45:15]KKMCreateOFDPacket [15:45:15]OFDProtocolAddRootSTLVToBuf [15:45:15]FM_MakeSignedData [15:45:15]FM_MakeSignedData [15:45:15]SAM_PROTO_SignData [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 0D 01 02 [15:45:15]Write to MH i2c: E2 08 00 65 3A 80 0D 01 02 00 00 00 00 18 [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 03 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 03 00 65 3A 00 90 00 13 [15:45:15]RAPDU: 90 00 [15:45:15]wFMCommunicate OK [15:45:15]wFMCommunicate request_size=253 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 E7 00 00 00 F4 03 04 00 8C 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 20 01 00 35 04 06 00 CF 08 92 81 43 01 [15:45:15]Write to MH i2c: E2 00 01 66 3A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 E7 00 00 00 F4 03 04 00 8C 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 20 01 00 35 04 06 00 CF 08 92 81 43 01 00 00 C3 [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 03 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 03 00 66 3A 00 90 00 14 [15:45:15]RAPDU: 90 00 [15:45:15]wFMCommunicate OK [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 0D 03 02 [15:45:15]Write to MH i2c: E2 08 00 67 3A 80 0D 03 02 00 00 00 00 1C [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:15]Read from MH i2c: E2 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 0B 00 [15:45:15]MH_I2C_Read... [15:45:15]Read from MH i2c: E2 0B 00 67 3A 00 E8 3F AB 6B 12 C7 73 C5 90 00 6B [15:45:15]RAPDU: E8 3F AB 6B 12 C7 73 C5 90 00 [15:45:15]wFMCommunicate OK [15:45:15]SAM_PROTO_SignData done [15:45:15]FM_MakeSignedData done [15:45:15]CreateOFDProtocolMessage [15:45:15]wFMCommunicate request_size=4 [15:45:15]MH_SAM_APDU [15:45:15]CAPDU: 80 11 00 00 [15:45:15]Write to MH i2c: E2 08 00 68 3A 80 11 00 00 00 00 00 00 1C [15:45:15]Write i2c OK [15:45:15]MH_I2C_Read... [15:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:16]Read from MH i2c: E2 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: E2 17 00 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: E2 17 00 68 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [15:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:45:16]wFMCommunicate OK [15:45:16]CreateOFDProtocolMessage done [15:45:16]OFDSenderStorePacket 73905 [15:45:16]StoreOFDPacket docnum=73905 [15:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 BB 93 00 01 21 D7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 E7 00 00 00 F4 03 04 00 8C 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 20 01 00 35 04 06 00 CF 08 92 81 43 01 E8 3F AB 6B 12 C7 73 C5 [15:45:16]CheckFolder [15:45:16]dirname=/storage/ofd_packets [15:45:16]CheckFolder done [15:45:16]ProducePacketName [15:45:16]name=ofd_packets/00073905 [15:45:16]NVStorageSaveData ofd_packets/00073905 [15:45:16]File name is /storage/ofd_packets/00073905 [15:45:16]Write 294 bytes [15:45:16]NVStorageSaveData done [15:45:16]OFDSenderStorePacket done [15:45:16]KKMCreateOFDPacket done [15:45:16]NVStorageSaveData kkm_last_timestamp [15:45:16]File name is /storage/kkm_last_timestamp [15:45:16]Write 4 bytes [15:45:16]NVStorageSaveData done [15:45:16]ExternCall_PrintAddStr [15:45:16]wPrintStart [15:45:16]Write to MH i2c: 01 00 00 69 3A A3 [15:45:16]Write i2c OK [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: 01 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: 01 07 00 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: 01 07 00 69 3A 00 00 00 00 00 FF 0F B8 [15:45:16]RasterBufferAndPrint [15:45:16]line Счет N : (1)1963107 [15:45:16]line ИНН: 02508201610067 [15:45:16]line Контрольно-Кассовый Чек [15:45:16]line ПРОДАЖА [15:45:16]line ТРК (МРК, ГНК) : 52 [15:45:16]line Товар: 2710124130 [15:45:16]line SU-92 [15:45:16]line 7.310 * 68.40 [15:45:16]line = 500.00 [15:45:16]line НДС 12% НСП 1% [15:45:16]line > о реализуемом товаре [15:45:16]line ИТОГО: 500.00 [15:45:16]line НСП 1% : 4.42 [15:45:16]line НДС 12% : 53.10 [15:45:16]line Наличными: 500.00 [15:45:16]line Безнал.: 0.00 [15:45:16]line Место: АЗС № 133 "Партнер Нефть" [15:45:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:45:16]line СНО: Общий режим [15:45:16]line Чек 231 20.10.2024 15:45 [15:45:16]line Смена: 170 ФФД: 1.0 [15:45:16]line ЗНМ: 0300000020 [15:45:16]line РНМ: 0000000000161154 [15:45:16]line Версия ККМ: v1.0 [15:45:16]line ФМ: 0000000000963323 [15:45:16]line ФД: 73905 [15:45:16]line ФПД: 227635724632833 [15:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154516&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73905&fm=227635724632833&tin=02508201610067®Number=0000000000161154&sum=50000 [15:45:16]OFD Sender: Processing packet 73905 [packets to send 15, broken 14] [15:45:16]ProducePacketName [15:45:16]name=ofd_packets/00073905 [15:45:16]OFD Sender: To server: pG, [15:45:16]CommunicateWithHost lk.salyk.kg:30040 [15:45:16]ConnectInit lk.salyk.kg [15:45:16]written 0, free lines is 4095 [15:45:16]Connected sock=10 [15:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 BB 93 00 01 21 D7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 E7 00 00 00 F4 03 04 00 8C 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 20 01 00 35 04 06 00 CF 08 92 81 43 01 E8 3F AB 6B 12 C7 73 C5 [15:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 6A 47 00 9E 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 39 36 33 33 32 33 10 04 04 00 B1 20 01 00 F4 03 04 00 71 CE 14 67 B6 04 01 00 00 B9 3F 2A ED 53 74 C5 4D [15:45:16]CommunicateWithHost err = 0 [15:45:16]CheckOFDResponse [15:45:16]1017 (14) - 77093643461234 [15:45:16]1041 (16) - 0000000000963323 [15:45:16]1040 (4) - 73905 [15:45:16]1012 (4) - 20.10.2024 09:33 [15:45:16]1206 (1) - 0 [15:45:16]OFD Sender: Remove packet 73905 [15:45:16]ProducePacketName [15:45:16]name=ofd_packets/00073905 [15:45:16]NVStorageDeleteData [15:45:16]Write to MH i2c: 01 00 00 90 3A CA [15:45:16]Write i2c OK [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: 01 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: 01 07 00 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: 01 07 00 90 3A 00 00 00 00 00 F1 0C CE [15:45:16]RasterBufferAndPrint [15:45:16]line [15:45:16]line [15:45:16]line [15:45:16]line [15:45:16]line [15:45:16]written 0, free lines is 3317 [15:45:16]MH_Cut [15:45:16]Write to MH i2c: D1 01 00 97 3A 01 A3 [15:45:16]Write i2c OK [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: D1 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: D1 01 00 [15:45:16]MH_I2C_Read... [15:45:16]Read from MH i2c: D1 01 00 97 3A 00 A2 [15:45:16]Write to MH i2c: 01 00 00 98 3A D2 [15:45:16]Write i2c OK [15:45:16]MH_I2C_Read... [15:45:17]OFD Sender: No OFD packet to send [15:45:17]*** Cut start [15:45:17]*** Partial cut [15:45:17]*** CUTSNS_PIN = 1 [15:45:17]*** CUTSNS_PIN = 0 [15:45:17]*** Brake cut motor [15:45:18]Read from MH i2c: 01 [15:45:18]MH_I2C_Read... [15:45:18]*** Stop cut motor [15:45:18]*** Cut end [15:45:18]Read from MH i2c: 01 07 00 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: 01 07 00 98 3A 00 00 00 00 00 FF 0F E7 [15:45:18]process_action close_receipt done [15:45:18]requested_data is exist [15:45:18]produce_requested_data [15:45:18]requested_item fm.sn is exist - process it [15:45:18]wFMCommunicate request_size=4 [15:45:18]MH_SAM_APDU [15:45:18]CAPDU: 80 11 00 00 [15:45:18]Write to MH i2c: E2 08 00 99 3A 80 11 00 00 00 00 00 00 4D [15:45:18]Write i2c OK [15:45:18]MH_I2C_Read... [15:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:18]Read from MH i2c: E2 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 17 00 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 17 00 99 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [15:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:45:18]wFMCommunicate OK [15:45:18]requested_item fd.num is exist - process it [15:45:18]SAM_PROTO_GetFieldsCounters [15:45:18]wFMCommunicate request_size=4 [15:45:18]MH_SAM_APDU [15:45:18]CAPDU: 80 13 00 00 [15:45:18]Write to MH i2c: E2 08 00 9A 3A 80 13 00 00 00 00 00 00 50 [15:45:18]Write i2c OK [15:45:18]MH_I2C_Read... [15:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:18]Read from MH i2c: E2 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 62 00 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 62 00 9A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [15:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:18]wFMCommunicate OK [15:45:18]SAM_PROTO_GetFieldsCounters done [15:45:18]requested_item shift.num is exist - process it [15:45:18]requested_item shift.opened is exist - process it [15:45:18]req_shift_opened [15:45:18]FM_GetShiftState [15:45:18]SAM_PROTO_GetShiftState [15:45:18]wFMCommunicate request_size=4 [15:45:18]MH_SAM_APDU [15:45:18]CAPDU: 80 13 01 00 [15:45:18]Write to MH i2c: E2 08 00 9B 3A 80 13 01 00 00 00 00 00 52 [15:45:18]Write i2c OK [15:45:18]MH_I2C_Read... [15:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:18]Read from MH i2c: E2 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 0E 00 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 0E 00 9B 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 97 [15:45:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:45:18]wFMCommunicate OK [15:45:18]SAM_PROTO_GetShiftState done [15:45:18]FM_GetShiftState done [15:45:18]req_shift_opened done [15:45:18]requested_item shift.open_date is exist - process it [15:45:18]req_shift_open_date [15:45:18]req_shift_open_date done [15:45:18]produce_requested_data done [15:45:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73905,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:45:18]process_action_free close_receipt [15:45:18]json_value_free [15:45:18]json_value_free done [15:45:18]process_json_proto returns [15:45:18]Send response to host [15:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73905,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:45:18]free response buf [15:45:18]execute_script done [15:45:18]execute_script returns [15:45:18]free content buf [15:45:18]Sock 8.Close socket [15:45:18]Sock 8.Thread stoped [15:45:22]OFD Sender: No OFD packet to send [15:45:24]accept exits with 9 [15:45:24]New connection [15:45:24]New thread 3067575652 created [15:45:24]Thread 3067432292 joined [15:45:24]Waiting for new connection... [15:45:24] Sock 9.Parse request [15:45:24]Sock 9.Check first char [15:45:24]Sock 9.First char is OK [15:45:24]request: POST /json_proto HTTP/1.0 [15:45:24]Method: POST [15:45:24]URL: /json_proto [15:45:24]Method is POST - this is cgi request [15:45:24]url: /json_proto [15:45:24]query_string will be loaded in cgi processing [15:45:24]execute_cgi json_proto POST (null) [15:45:24]execute_cgi path=json_proto method=POST [15:45:24]POST find Content-Length [15:45:24]Host: 172.17.44.196:8080 [15:45:24]Content-Length: 683 [15:45:24]Content-Type: application/json [15:45:24] [15:45:24]POST finish read [15:45:24]Found Content-Length = 683 [15:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [15:45:24]execute_script... [15:45: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 : (1)1963108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [15:45:24]POST & json_proto [15:45:24]process_json_proto [15:45:24]json parsed OK: [15:45:24]protocol is kg_v1.0 [15:45:24]action value=close_receipt [15:45:24]process_action close_receipt [15:45:24]cmd_close_receipt [15:45:24]MH_GetDate [15:45:24]Write to MH i2c: F0 00 00 9C 3A C5 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: F0 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: F0 09 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: F0 09 00 9C 3A 00 97 25 15 67 E7 19 F8 65 63 [15:45:24]GetLastDocTimeStamp 1729439116 [15:45:24]current date 1729439127 [15:45:24]FM_GetShiftState [15:45:24]SAM_PROTO_GetShiftState [15:45:24]wFMCommunicate request_size=4 [15:45:24]MH_SAM_APDU [15:45:24]CAPDU: 80 13 01 00 [15:45:24]Write to MH i2c: E2 08 00 9D 3A 80 13 01 00 00 00 00 00 54 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:24]Read from MH i2c: E2 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: E2 0E 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: E2 0E 00 9D 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 99 [15:45:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:45:24]wFMCommunicate OK [15:45:24]SAM_PROTO_GetShiftState done [15:45:24]FM_GetShiftState done [15:45:24]opened in 1729384303 [15:45:24]opened+sec_in_day 1729470703 [15:45:24]quantity*price = 100021 [15:45:24]sum+1 = 100023 [15:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 232 20.10.2024 15:45 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73906 ФПД: 214911478578721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154527&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73906&fm=214911478578721&tin=02508201610067®Number=0000000000161154&sum=100000 [15:45:25]StoreToDocumentArchive [15:45:25]shift 170 fd 73906 [15:45:25]save to /storage/0170/doc_00073906 [15:45:25]save last doc name /storage/0170/doc_00073906 to /storage/kkm_last_doc_name [15:45:25]save OK [15:45:25]Clear old archive folders... [15:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:25]tlvbuf is 00417D50 [15:45:25]SAM_PROTO_ClearQueue [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 09 00 00 [15:45:25]Write to MH i2c: E2 08 00 AA 3A 80 09 00 00 00 00 00 00 56 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 03 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 03 00 AA 3A 00 90 00 58 [15:45:25]RAPDU: 90 00 [15:45:25]wFMCommunicate OK [15:45:25]SAM_PROTO_ClearQueue done [15:45:25]KKMCreateOFDPacket [15:45:25]OFDProtocolAddRootSTLVToBuf [15:45:25]FM_MakeSignedData [15:45:25]FM_MakeSignedData [15:45:25]SAM_PROTO_SignData [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 0D 01 02 [15:45:25]Write to MH i2c: E2 08 00 AB 3A 80 0D 01 02 00 00 00 00 5E [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 03 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 03 00 AB 3A 00 90 00 59 [15:45:25]RAPDU: 90 00 [15:45:25]wFMCommunicate OK [15:45:25]wFMCommunicate request_size=255 [15:45:25]MH_SAM_APDU [15:45:25]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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 E8 00 00 00 F4 03 04 00 97 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 20 01 00 35 04 06 00 C3 [15:45:25]Write to MH i2c: E2 02 01 AC 3A 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 E8 00 00 00 F4 03 04 00 97 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 20 01 00 35 04 06 00 C3 00 00 5D [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 AC 3A 00 90 00 5A [15:45:26]RAPDU: 90 00 [15:45:26]wFMCommunicate OK [15:45:26]wFMCommunicate request_size=10 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 0D 02 02 05 75 FA 56 BE 21 [15:45:26]Write to MH i2c: E2 0D 00 AD 3A 80 0D 02 02 05 00 75 FA 56 BE 21 00 00 0F [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 AD 3A 00 90 00 5B [15:45:26]RAPDU: 90 00 [15:45:26]wFMCommunicate OK [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 0D 03 02 [15:45:26]Write to MH i2c: E2 08 00 AE 3A 80 0D 03 02 00 00 00 00 63 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0B 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0B 00 AE 3A 00 EA 1B 84 6B 7D 08 6B 97 90 00 DF [15:45:26]RAPDU: EA 1B 84 6B 7D 08 6B 97 90 00 [15:45:26]wFMCommunicate OK [15:45:26]SAM_PROTO_SignData done [15:45:26]FM_MakeSignedData done [15:45:26]CreateOFDProtocolMessage [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 11 00 00 [15:45:26]Write to MH i2c: E2 08 00 AF 3A 80 11 00 00 00 00 00 00 63 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 17 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 17 00 AF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B0 [15:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:45:26]wFMCommunicate OK [15:45:26]CreateOFDProtocolMessage done [15:45:26]OFDSenderStorePacket 73906 [15:45:26]StoreOFDPacket docnum=73906 [15:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0D DD 07 01 3C 3B 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 E8 00 00 00 F4 03 04 00 97 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 20 01 00 35 04 06 00 C3 75 FA 56 BE 21 EA 1B 84 6B 7D 08 6B 97 [15:45:26]CheckFolder [15:45:26]dirname=/storage/ofd_packets [15:45:26]CheckFolder done [15:45:26]ProducePacketName [15:45:26]name=ofd_packets/00073906 [15:45:26]NVStorageSaveData ofd_packets/00073906 [15:45:26]File name is /storage/ofd_packets/00073906 [15:45:26]Write 301 bytes [15:45:26]NVStorageSaveData done [15:45:26]OFDSenderStorePacket done [15:45:26]KKMCreateOFDPacket done [15:45:26]NVStorageSaveData kkm_last_timestamp [15:45:26]File name is /storage/kkm_last_timestamp [15:45:26]Write 4 bytes [15:45:26]NVStorageSaveData done [15:45:26]ExternCall_PrintAddStr [15:45:26]wPrintStart [15:45:26]Write to MH i2c: 01 00 00 B0 3A EA [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: 01 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: 01 07 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: 01 07 00 B0 3A 00 00 00 00 00 FF 0F FF [15:45:26]RasterBufferAndPrint [15:45:26]line Счет N : (1)1963108 [15:45:26]line ИНН: 02508201610067 [15:45:26]line Контрольно-Кассовый Чек [15:45:26]line ПРОДАЖА [15:45:26]line ТРК (МРК, ГНК) : 44 [15:45:26]line Товар: 2710124500 [15:45:26]line Аи-95-К-5 [15:45:26]line 13.480 * 74.20 [15:45:26]line = 1000.22 [15:45:26]line НДС 12% НСП 1% [15:45:26]line > о реализуемом товаре [15:45:26]line ОКРУГЛЕНИЕ: -0.22 [15:45:26]line ИТОГО: 1000.00 [15:45:26]line Внесено: 1000.00 [15:45:26]line СДАЧА: 0.00 [15:45:26]line НСП 1% : 8.85 [15:45:26]line НДС 12% : 106.22 [15:45:26]line Наличными: 1000.00 [15:45:26]line Безнал.: 0.00 [15:45:26]line Место: АЗС № 133 "Партнер Нефть" [15:45:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:45:26]line СНО: Общий режим [15:45:26]line Чек 232 20.10.2024 15:45 [15:45:26]line Смена: 170 ФФД: 1.0 [15:45:26]line ЗНМ: 0300000020 [15:45:26]line РНМ: 0000000000161154 [15:45:26]line Версия ККМ: v1.0 [15:45:26]line ФМ: 0000000000963323 [15:45:26]line ФД: 73906 [15:45:26]line ФПД: 214911478578721 [15:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154527&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73906&fm=214911478578721&tin=02508201610067®Number=0000000000161154&sum=100000 [15:45:26]written 0, free lines is 4095 [15:45:26]OFD Sender: Processing packet 73906 [packets to send 15, broken 14] [15:45:26]ProducePacketName [15:45:26]name=ofd_packets/00073906 [15:45:26]OFD Sender: To server: pG, [15:45:26]CommunicateWithHost lk.salyk.kg:30040 [15:45:26]ConnectInit lk.salyk.kg [15:45:26]Connected sock=10 [15:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0D DD 07 01 3C 3B 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 E8 00 00 00 F4 03 04 00 97 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 20 01 00 35 04 06 00 C3 75 FA 56 BE 21 EA 1B 84 6B 7D 08 6B 97 [15:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A0 FB 47 00 B8 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 39 36 33 33 32 33 10 04 04 00 B2 20 01 00 F4 03 04 00 7B CE 14 67 B6 04 01 00 00 01 48 01 DC E7 17 E7 87 [15:45:27]CommunicateWithHost err = 0 [15:45:27]CheckOFDResponse [15:45:27]1017 (14) - 77093643461234 [15:45:27]1041 (16) - 0000000000963323 [15:45:27]1040 (4) - 73906 [15:45:27]1012 (4) - 20.10.2024 09:33 [15:45:27]1206 (1) - 0 [15:45:27]OFD Sender: Remove packet 73906 [15:45:27]ProducePacketName [15:45:27]name=ofd_packets/00073906 [15:45:27]NVStorageDeleteData [15:45:27]Write to MH i2c: 01 00 00 DA 3A 14 [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 07 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 07 00 DA 3A 00 00 00 00 00 B5 0C DC [15:45:27]RasterBufferAndPrint [15:45:27]line [15:45:27]line [15:45:27]line [15:45:27]line [15:45:27]line [15:45:27]written 0, free lines is 3257 [15:45:27]MH_Cut [15:45:27]Write to MH i2c: D1 01 00 E1 3A 01 ED [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: D1 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: D1 01 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: D1 01 00 E1 3A 00 EC [15:45:27]Write to MH i2c: 01 00 00 E2 3A 1C [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]OFD Sender: No OFD packet to send [15:45:28]*** Cut start [15:45:28]*** Partial cut [15:45:28]*** CUTSNS_PIN = 1 [15:45:28]*** CUTSNS_PIN = 0 [15:45:28]*** Brake cut motor [15:45:28]Read from MH i2c: 01 [15:45:28]MH_I2C_Read... [15:45:28]*** Stop cut motor [15:45:28]*** Cut end [15:45:28]Read from MH i2c: 01 07 00 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: 01 07 00 E2 3A 00 00 00 00 00 FF 0F 31 [15:45:28]process_action close_receipt done [15:45:28]requested_data is exist [15:45:28]produce_requested_data [15:45:28]requested_item fm.sn is exist - process it [15:45:28]wFMCommunicate request_size=4 [15:45:28]MH_SAM_APDU [15:45:28]CAPDU: 80 11 00 00 [15:45:28]Write to MH i2c: E2 08 00 E3 3A 80 11 00 00 00 00 00 00 97 [15:45:28]Write i2c OK [15:45:28]MH_I2C_Read... [15:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:28]Read from MH i2c: E2 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 17 00 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 17 00 E3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E4 [15:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:45:28]wFMCommunicate OK [15:45:28]requested_item fd.num is exist - process it [15:45:28]SAM_PROTO_GetFieldsCounters [15:45:28]wFMCommunicate request_size=4 [15:45:28]MH_SAM_APDU [15:45:28]CAPDU: 80 13 00 00 [15:45:28]Write to MH i2c: E2 08 00 E4 3A 80 13 00 00 00 00 00 00 9A [15:45:28]Write i2c OK [15:45:28]MH_I2C_Read... [15:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:28]Read from MH i2c: E2 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 62 00 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 62 00 E4 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:28]wFMCommunicate OK [15:45:28]SAM_PROTO_GetFieldsCounters done [15:45:28]requested_item shift.num is exist - process it [15:45:28]requested_item shift.opened is exist - process it [15:45:28]req_shift_opened [15:45:28]FM_GetShiftState [15:45:28]SAM_PROTO_GetShiftState [15:45:28]wFMCommunicate request_size=4 [15:45:28]MH_SAM_APDU [15:45:28]CAPDU: 80 13 01 00 [15:45:28]Write to MH i2c: E2 08 00 E5 3A 80 13 01 00 00 00 00 00 9C [15:45:28]Write i2c OK [15:45:28]MH_I2C_Read... [15:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:28]Read from MH i2c: E2 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 0E 00 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 0E 00 E5 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E1 [15:45:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:45:28]wFMCommunicate OK [15:45:28]SAM_PROTO_GetShiftState done [15:45:28]FM_GetShiftState done [15:45:28]req_shift_opened done [15:45:28]requested_item shift.open_date is exist - process it [15:45:28]req_shift_open_date [15:45:28]req_shift_open_date done [15:45:28]produce_requested_data done [15:45:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73906,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:45:28]process_action_free close_receipt [15:45:28]json_value_free [15:45:28]json_value_free done [15:45:28]process_json_proto returns [15:45:28]Send response to host [15:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73906,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:45:28]free response buf [15:45:28]execute_script done [15:45:28]execute_script returns [15:45:28]free content buf [15:45:28]Sock 9.Close socket [15:45:28]Sock 9.Thread stoped [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:55]accept exits with 8 [15:45:55]New connection [15:45:55]New thread 3067432292 created [15:45:55]Thread 3067575652 joined [15:45:55]Waiting for new connection... [15:45:55] Sock 8.Parse request [15:45:55]Sock 8.Check first char [15:45:55]Sock 8.First char is OK [15:45:55]request: POST /json_proto HTTP/1.0 [15:45:55]Method: POST [15:45:55]URL: /json_proto [15:45:55]Method is POST - this is cgi request [15:45:55]url: /json_proto [15:45:55]query_string will be loaded in cgi processing [15:45:55]execute_cgi json_proto POST (null) [15:45:55]execute_cgi path=json_proto method=POST [15:45:55]POST find Content-Length [15:45:55]Host: 172.17.44.196:8080 [15:45:55]Content-Length: 680 [15:45:55]Content-Type: application/json [15:45:55] [15:45:55]POST finish read [15:45:55]Found Content-Length = 680 [15:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:45:55]execute_script... [15:45: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)1963109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:45:55]POST & json_proto [15:45:55]process_json_proto [15:45:55]json parsed OK: [15:45:55]protocol is kg_v1.0 [15:45:55]action value=close_receipt [15:45:55]process_action close_receipt [15:45:55]cmd_close_receipt [15:45:55]MH_GetDate [15:45:55]Write to MH i2c: F0 00 00 E6 3A 0F [15:45:55]Write i2c OK [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: F0 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: F0 09 00 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: F0 09 00 E6 3A 00 B5 25 15 67 E7 19 F8 65 CB [15:45:55]GetLastDocTimeStamp 1729439127 [15:45:55]current date 1729439157 [15:45:55]FM_GetShiftState [15:45:55]SAM_PROTO_GetShiftState [15:45:55]wFMCommunicate request_size=4 [15:45:55]MH_SAM_APDU [15:45:55]CAPDU: 80 13 01 00 [15:45:55]Write to MH i2c: E2 08 00 E7 3A 80 13 01 00 00 00 00 00 9E [15:45:55]Write i2c OK [15:45:55]MH_I2C_Read... [15:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:55]Read from MH i2c: E2 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: E2 0E 00 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: E2 0E 00 E7 3A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E3 [15:45:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:45:55]wFMCommunicate OK [15:45:55]SAM_PROTO_GetShiftState done [15:45:55]FM_GetShiftState done [15:45:55]opened in 1729384303 [15:45:55]opened+sec_in_day 1729470703 [15:45:55]quantity*price = 100050 [15:45:55]sum+1 = 100052 [15:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 233 20.10.2024 15:45 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73907 ФПД: 106061289649084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73907&fm=106061289649084&tin=02508201610067®Number=0000000000161154&sum=100000 [15:45:56]StoreToDocumentArchive [15:45:56]shift 170 fd 73907 [15:45:56]save to /storage/0170/doc_00073907 [15:45:56]save last doc name /storage/0170/doc_00073907 to /storage/kkm_last_doc_name [15:45:56]save OK [15:45:56]Clear old archive folders... [15:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:45:56]tlvbuf is 0047D420 [15:45:56]SAM_PROTO_ClearQueue [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 09 00 00 [15:45:56]Write to MH i2c: E2 08 00 F4 3A 80 09 00 00 00 00 00 00 A0 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 F4 3A 00 90 00 A2 [15:45:56]RAPDU: 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_ClearQueue done [15:45:56]KKMCreateOFDPacket [15:45:56]OFDProtocolAddRootSTLVToBuf [15:45:56]FM_MakeSignedData [15:45:56]FM_MakeSignedData [15:45:56]SAM_PROTO_SignData [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 0D 01 02 [15:45:56]Write to MH i2c: E2 08 00 F5 3A 80 0D 01 02 00 00 00 00 A8 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 F5 3A 00 90 00 A3 [15:45:56]RAPDU: 90 00 [15:45:56]wFMCommunicate OK [15:45:56]wFMCommunicate request_size=255 [15:45:56]MH_SAM_APDU [15:45:56]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 E9 00 00 00 F4 03 04 00 B5 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 20 01 00 35 04 06 00 60 76 51 7E [15:45:56]Write to MH i2c: E2 02 01 F6 3A 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 E9 00 00 00 F4 03 04 00 B5 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 20 01 00 35 04 06 00 60 76 51 7E 00 00 82 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 F6 3A 00 90 00 A4 [15:45:56]RAPDU: 90 00 [15:45:56]wFMCommunicate OK [15:45:56]wFMCommunicate request_size=7 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 0D 02 02 02 73 BC [15:45:56]Write to MH i2c: E2 0A 00 F7 3A 80 0D 02 02 02 00 73 BC 00 00 DE [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 03 00 F7 3A 00 90 00 A5 [15:45:56]RAPDU: 90 00 [15:45:56]wFMCommunicate OK [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 0D 03 02 [15:45:56]Write to MH i2c: E2 08 00 F8 3A 80 0D 03 02 00 00 00 00 AD [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0B 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0B 00 F8 3A 00 BB 0B CA 78 C6 1C EE BF 90 00 45 [15:45:56]RAPDU: BB 0B CA 78 C6 1C EE BF 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_SignData done [15:45:56]FM_MakeSignedData done [15:45:56]CreateOFDProtocolMessage [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 11 00 00 [15:45:56]Write to MH i2c: E2 08 00 F9 3A 80 11 00 00 00 00 00 00 AD [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 17 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 17 00 F9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FA [15:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:45:56]wFMCommunicate OK [15:45:56]CreateOFDProtocolMessage done [15:45:56]OFDSenderStorePacket 73907 [15:45:56]StoreOFDPacket docnum=73907 [15:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 EA 03 04 01 25 65 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 E9 00 00 00 F4 03 04 00 B5 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 20 01 00 35 04 06 00 60 76 51 7E 73 BC BB 0B CA 78 C6 1C EE BF [15:45:56]CheckFolder [15:45:56]dirname=/storage/ofd_packets [15:45:56]CheckFolder done [15:45:56]ProducePacketName [15:45:56]name=ofd_packets/00073907 [15:45:56]NVStorageSaveData ofd_packets/00073907 [15:45:56]File name is /storage/ofd_packets/00073907 [15:45:56]Write 298 bytes [15:45:56]NVStorageSaveData done [15:45:56]OFDSenderStorePacket done [15:45:56]KKMCreateOFDPacket done [15:45:56]NVStorageSaveData kkm_last_timestamp [15:45:56]File name is /storage/kkm_last_timestamp [15:45:56]Write 4 bytes [15:45:56]NVStorageSaveData done [15:45:56]ExternCall_PrintAddStr [15:45:56]wPrintStart [15:45:56]Write to MH i2c: 01 00 00 FA 3A 34 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: 01 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: 01 07 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: 01 07 00 FA 3A 00 00 00 00 00 FF 0F 49 [15:45:56]RasterBufferAndPrint [15:45:56]line Счет N : (1)1963109 [15:45:56]line ИНН: 02508201610067 [15:45:56]line Контрольно-Кассовый Чек [15:45:56]line ПРОДАЖА [15:45:56]line ТРК (МРК, ГНК) : 11 [15:45:56]line Товар: 2710194210 [15:45:56]line ДТ-К-5 [15:45:56]line 13.130 * 76.20 [15:45:56]line = 1000.51 [15:45:56]line НДС 12% НСП 1% [15:45:56]line > о реализуемом товаре [15:45:56]line ОКРУГЛЕНИЕ: -0.51 [15:45:56]line ИТОГО: 1000.00 [15:45:56]line Внесено: 1000.00 [15:45:56]line СДАЧА: 0.00 [15:45:56]line НСП 1% : 8.85 [15:45:56]line НДС 12% : 106.25 [15:45:56]line Наличными: 1000.00 [15:45:56]line Безнал.: 0.00 [15:45:56]line Место: АЗС № 133 "Партнер Нефть" [15:45:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:45:56]line СНО: Общий режим [15:45:56]line Чек 233 20.10.2024 15:45 [15:45:56]line Смена: 170 ФФД: 1.0 [15:45:56]line ЗНМ: 0300000020 [15:45:56]line РНМ: 0000000000161154 [15:45:56]line Версия ККМ: v1.0 [15:45:56]line ФМ: 0000000000963323 [15:45:56]line ФД: 73907 [15:45:56]line ФПД: 106061289649084 [15:45:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73907&fm=106061289649084&tin=02508201610067®Number=0000000000161154&sum=100000 [15:45:57]OFD Sender: Processing packet 73907 [packets to send 15, broken 14] [15:45:57]ProducePacketName [15:45:57]name=ofd_packets/00073907 [15:45:57]OFD Sender: To server: pG, [15:45:57]CommunicateWithHost lk.salyk.kg:30040 [15:45:57]ConnectInit lk.salyk.kg [15:45:57]written 0, free lines is 4095 [15:45:57]Connected sock=10 [15:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 EA 03 04 01 25 65 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 E9 00 00 00 F4 03 04 00 B5 25 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 20 01 00 35 04 06 00 60 76 51 7E 73 BC BB 0B CA 78 C6 1C EE BF [15:45:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A9 98 47 00 E9 21 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 39 36 33 33 32 33 10 04 04 00 B3 20 01 00 F4 03 04 00 99 CE 14 67 B6 04 01 00 00 A6 B2 48 92 E8 CD 36 F7 [15:45:57]CommunicateWithHost err = 0 [15:45:57]CheckOFDResponse [15:45:57]1017 (14) - 77093643461234 [15:45:57]1041 (16) - 0000000000963323 [15:45:57]1040 (4) - 73907 [15:45:57]1012 (4) - 20.10.2024 09:34 [15:45:57]1206 (1) - 0 [15:45:57]OFD Sender: Remove packet 73907 [15:45:57]ProducePacketName [15:45:57]name=ofd_packets/00073907 [15:45:57]NVStorageDeleteData [15:45:57]Write to MH i2c: 01 00 00 24 3B 5F [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: 01 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: 01 07 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: 01 07 00 24 3B 00 00 00 00 00 BA 0C 2C [15:45:57]RasterBufferAndPrint [15:45:57]line [15:45:57]line [15:45:57]line [15:45:57]line [15:45:57]line [15:45:57]written 0, free lines is 3263 [15:45:57]MH_Cut [15:45:57]Write to MH i2c: D1 01 00 2B 3B 01 38 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: D1 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: D1 01 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: D1 01 00 2B 3B 00 37 [15:45:57]Write to MH i2c: 01 00 00 2C 3B 67 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]OFD Sender: No OFD packet to send [15:45:58]*** Cut start [15:45:58]*** Partial cut [15:45:58]*** CUTSNS_PIN = 1 [15:45:58]*** CUTSNS_PIN = 0 [15:45:58]*** Brake cut motor [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [15:45:59]*** Stop cut motor [15:45:59]*** Cut end [15:45:59]Read from MH i2c: 01 07 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 2C 3B 00 00 00 00 00 FF 0F 7C [15:45:59]process_action close_receipt done [15:45:59]requested_data is exist [15:45:59]produce_requested_data [15:45:59]requested_item fm.sn is exist - process it [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 11 00 00 [15:45:59]Write to MH i2c: E2 08 00 2D 3B 80 11 00 00 00 00 00 00 E2 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:59]Read from MH i2c: E2 17 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 2D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [15:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:45:59]wFMCommunicate OK [15:45:59]requested_item fd.num is exist - process it [15:45:59]SAM_PROTO_GetFieldsCounters [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 13 00 00 [15:45:59]Write to MH i2c: E2 08 00 2E 3B 80 13 00 00 00 00 00 00 E5 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 62 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 62 00 2E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [15:45:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_GetFieldsCounters done [15:45:59]requested_item shift.num is exist - process it [15:45:59]requested_item shift.opened is exist - process it [15:45:59]req_shift_opened [15:45:59]FM_GetShiftState [15:45:59]SAM_PROTO_GetShiftState [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 13 01 00 [15:45:59]Write to MH i2c: E2 08 00 2F 3B 80 13 01 00 00 00 00 00 E7 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0E 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0E 00 2F 3B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2C [15:45:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_GetShiftState done [15:45:59]FM_GetShiftState done [15:45:59]req_shift_opened done [15:45:59]requested_item shift.open_date is exist - process it [15:45:59]req_shift_open_date [15:45:59]req_shift_open_date done [15:45:59]produce_requested_data done [15:45:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73907,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:45:59]process_action_free close_receipt [15:45:59]json_value_free [15:45:59]json_value_free done [15:45:59]process_json_proto returns [15:45:59]Send response to host [15:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73907,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:45:59]free response buf [15:45:59]execute_script done [15:45:59]execute_script returns [15:45:59]free content buf [15:45:59]Sock 8.Close socket [15:45:59]Sock 8.Thread stoped [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:39]accept exits with 9 [15:48:39]New connection [15:48:39]New thread 3067575652 created [15:48:39]Thread 3067432292 joined [15:48:39]Waiting for new connection... [15:48:39] Sock 9.Parse request [15:48:39]Sock 9.Check first char [15:48:39]Sock 9.First char is OK [15:48:39]request: POST /json_proto HTTP/1.0 [15:48:39]Method: POST [15:48:39]URL: /json_proto [15:48:39]Method is POST - this is cgi request [15:48:39]url: /json_proto [15:48:39]query_string will be loaded in cgi processing [15:48:39]execute_cgi json_proto POST (null) [15:48:39]execute_cgi path=json_proto method=POST [15:48:39]POST find Content-Length [15:48:39]Host: 172.17.44.196:8080 [15:48:39]Content-Length: 621 [15:48:39]Content-Type: application/json [15:48:39] [15:48:39]POST finish read [15:48:39]Found Content-Length = 621 [15:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:39]execute_script... [15:48:39]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)1963110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:39]POST & json_proto [15:48:39]process_json_proto [15:48:39]json parsed OK: [15:48:39]protocol is kg_v1.0 [15:48:39]action value=close_receipt [15:48:39]process_action close_receipt [15:48:39]cmd_close_receipt [15:48:39]MH_GetDate [15:48:39]Write to MH i2c: F0 00 00 30 3B 5A [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: F0 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: F0 09 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: F0 09 00 30 3B 00 5A 26 15 67 E7 19 F8 65 BC [15:48:39]GetLastDocTimeStamp 1729439157 [15:48:39]current date 1729439322 [15:48:39]FM_GetShiftState [15:48:39]SAM_PROTO_GetShiftState [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 13 01 00 [15:48:39]Write to MH i2c: E2 08 00 31 3B 80 13 01 00 00 00 00 00 E9 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0E 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0E 00 31 3B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2E [15:48:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:48:40]wFMCommunicate OK [15:48:40]SAM_PROTO_GetShiftState done [15:48:40]FM_GetShiftState done [15:48:40]opened in 1729384303 [15:48:40]opened+sec_in_day 1729470703 [15:48:40]quantity*price = 50000 [15:48:40]sum+1 = 50001 [15:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 234 20.10.2024 15:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73908 ФПД: 192324608146918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154842&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73908&fm=192324608146918&tin=02508201610067®Number=0000000000161154&sum=50000 [15:48:41]StoreToDocumentArchive [15:48:41]shift 170 fd 73908 [15:48:41]save to /storage/0170/doc_00073908 [15:48:41]save last doc name /storage/0170/doc_00073908 to /storage/kkm_last_doc_name [15:48:41]save OK [15:48:41]Clear old archive folders... [15:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:48:41]tlvbuf is 00320B10 [15:48:41]SAM_PROTO_ClearQueue [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 09 00 00 [15:48:41]Write to MH i2c: E2 08 00 3E 3B 80 09 00 00 00 00 00 00 EB [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 03 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 03 00 3E 3B 00 90 00 ED [15:48:41]RAPDU: 90 00 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_ClearQueue done [15:48:41]KKMCreateOFDPacket [15:48:41]OFDProtocolAddRootSTLVToBuf [15:48:41]FM_MakeSignedData [15:48:41]FM_MakeSignedData [15:48:41]SAM_PROTO_SignData [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 0D 01 02 [15:48:41]Write to MH i2c: E2 08 00 3F 3B 80 0D 01 02 00 00 00 00 F3 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 03 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 03 00 3F 3B 00 90 00 EE [15:48:41]RAPDU: 90 00 [15:48:41]wFMCommunicate OK [15:48:41]wFMCommunicate request_size=253 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 EA 00 00 00 F4 03 04 00 5A 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 20 01 00 35 04 06 00 AE EB 0F F3 3D E6 [15:48:41]Write to MH i2c: E2 00 01 40 3B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 EA 00 00 00 F4 03 04 00 5A 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 20 01 00 35 04 06 00 AE EB 0F F3 3D E6 00 00 03 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 03 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 03 00 40 3B 00 90 00 EF [15:48:41]RAPDU: 90 00 [15:48:41]wFMCommunicate OK [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 0D 03 02 [15:48:41]Write to MH i2c: E2 08 00 41 3B 80 0D 03 02 00 00 00 00 F7 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0B 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0B 00 41 3B 00 9E C0 95 81 87 9C 82 C1 90 00 D2 [15:48:41]RAPDU: 9E C0 95 81 87 9C 82 C1 90 00 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_SignData done [15:48:41]FM_MakeSignedData done [15:48:41]CreateOFDProtocolMessage [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 11 00 00 [15:48:41]Write to MH i2c: E2 08 00 42 3B 80 11 00 00 00 00 00 00 F7 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 42 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 44 [15:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:48:41]wFMCommunicate OK [15:48:41]CreateOFDProtocolMessage done [15:48:41]OFDSenderStorePacket 73908 [15:48:41]StoreOFDPacket docnum=73908 [15:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 2E 2D 00 01 08 8D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 EA 00 00 00 F4 03 04 00 5A 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 20 01 00 35 04 06 00 AE EB 0F F3 3D E6 9E C0 95 81 87 9C 82 C1 [15:48:41]CheckFolder [15:48:41]dirname=/storage/ofd_packets [15:48:41]CheckFolder done [15:48:41]ProducePacketName [15:48:41]name=ofd_packets/00073908 [15:48:41]NVStorageSaveData ofd_packets/00073908 [15:48:41]File name is /storage/ofd_packets/00073908 [15:48:41]Write 294 bytes [15:48:41]NVStorageSaveData done [15:48:41]OFDSenderStorePacket done [15:48:41]KKMCreateOFDPacket done [15:48:41]NVStorageSaveData kkm_last_timestamp [15:48:41]File name is /storage/kkm_last_timestamp [15:48:41]Write 4 bytes [15:48:41]NVStorageSaveData done [15:48:41]ExternCall_PrintAddStr [15:48:41]wPrintStart [15:48:41]Write to MH i2c: 01 00 00 43 3B 7E [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 43 3B 00 00 00 00 00 FF 0F 93 [15:48:41]RasterBufferAndPrint [15:48:41]line Счет N : (1)1963110 [15:48:41]line ИНН: 02508201610067 [15:48:41]line Контрольно-Кассовый Чек [15:48:41]line ПРОДАЖА [15:48:41]line ТРК (МРК, ГНК) : 42 [15:48:41]line Товар: 2710124130 [15:48:41]line SU-92 [15:48:41]line 7.310 * 68.40 [15:48:41]line = 500.00 [15:48:41]line НДС 12% НСП 1% [15:48:41]line > о реализуемом товаре [15:48:41]line ИТОГО: 500.00 [15:48:41]line НСП 1% : 4.42 [15:48:41]line НДС 12% : 53.10 [15:48:41]line Наличными: 500.00 [15:48:41]line Безнал.: 0.00 [15:48:41]line Место: АЗС № 133 "Партнер Нефть" [15:48:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:48:41]line СНО: Общий режим [15:48:41]line Чек 234 20.10.2024 15:48 [15:48:41]line Смена: 170 ФФД: 1.0 [15:48:41]line ЗНМ: 0300000020 [15:48:41]line РНМ: 0000000000161154 [15:48:41]line Версия ККМ: v1.0 [15:48:41]line ФМ: 0000000000963323 [15:48:41]line ФД: 73908 [15:48:41]line ФПД: 192324608146918 [15:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154842&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73908&fm=192324608146918&tin=02508201610067®Number=0000000000161154&sum=50000 [15:48:41]OFD Sender: Processing packet 73908 [packets to send 15, broken 14] [15:48:41]ProducePacketName [15:48:41]name=ofd_packets/00073908 [15:48:41]OFD Sender: To server: pG, [15:48:41]CommunicateWithHost lk.salyk.kg:30040 [15:48:41]ConnectInit lk.salyk.kg [15:48:41]written 0, free lines is 4095 [15:48:42]Connected sock=11 [15:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 2E 2D 00 01 08 8D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 EA 00 00 00 F4 03 04 00 5A 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 20 01 00 35 04 06 00 AE EB 0F F3 3D E6 9E C0 95 81 87 9C 82 C1 [15:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A1 F5 47 00 44 7A 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 39 36 33 33 32 33 10 04 04 00 B4 20 01 00 F4 03 04 00 3E CF 14 67 B6 04 01 00 00 9B C7 AC 2F 99 B8 A9 52 [15:48:42]CommunicateWithHost err = 0 [15:48:42]CheckOFDResponse [15:48:42]1017 (14) - 77093643461234 [15:48:42]1041 (16) - 0000000000963323 [15:48:42]1040 (4) - 73908 [15:48:42]1012 (4) - 20.10.2024 09:37 [15:48:42]1206 (1) - 0 [15:48:42]OFD Sender: Remove packet 73908 [15:48:42]ProducePacketName [15:48:42]name=ofd_packets/00073908 [15:48:42]NVStorageDeleteData [15:48:42]Write to MH i2c: 01 00 00 6A 3B A5 [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: 01 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: 01 07 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: 01 07 00 6A 3B 00 00 00 00 00 F0 0C A8 [15:48:42]RasterBufferAndPrint [15:48:42]line [15:48:42]line [15:48:42]line [15:48:42]line [15:48:42]line [15:48:42]written 0, free lines is 3316 [15:48:42]MH_Cut [15:48:42]Write to MH i2c: D1 01 00 71 3B 01 7E [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: D1 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: D1 01 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: D1 01 00 71 3B 00 7D [15:48:42]Write to MH i2c: 01 00 00 72 3B AD [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]OFD Sender: No OFD packet to send [15:48:43]*** Cut start [15:48:43]*** Partial cut [15:48:43]*** CUTSNS_PIN = 1 [15:48:43]*** CUTSNS_PIN = 0 [15:48:43]*** Brake cut motor [15:48:43]Read from MH i2c: 01 [15:48:43]MH_I2C_Read... [15:48:43]*** Stop cut motor [15:48:43]*** Cut end [15:48:43]Read from MH i2c: 01 07 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: 01 07 00 72 3B 00 00 00 00 00 FF 0F C2 [15:48:43]process_action close_receipt done [15:48:43]requested_data is exist [15:48:43]produce_requested_data [15:48:43]requested_item fm.sn is exist - process it [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 11 00 00 [15:48:43]Write to MH i2c: E2 08 00 73 3B 80 11 00 00 00 00 00 00 28 [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 17 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 17 00 73 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 75 [15:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:48:43]wFMCommunicate OK [15:48:43]requested_item fd.num is exist - process it [15:48:43]SAM_PROTO_GetFieldsCounters [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 13 00 00 [15:48:43]Write to MH i2c: E2 08 00 74 3B 80 13 00 00 00 00 00 00 2B [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 62 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 62 00 74 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [15:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:43]wFMCommunicate OK [15:48:43]SAM_PROTO_GetFieldsCounters done [15:48:43]requested_item shift.num is exist - process it [15:48:43]requested_item shift.opened is exist - process it [15:48:43]req_shift_opened [15:48:43]FM_GetShiftState [15:48:43]SAM_PROTO_GetShiftState [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 13 01 00 [15:48:43]Write to MH i2c: E2 08 00 75 3B 80 13 01 00 00 00 00 00 2D [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0E 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0E 00 75 3B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 72 [15:48:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:48:44]wFMCommunicate OK [15:48:44]SAM_PROTO_GetShiftState done [15:48:44]FM_GetShiftState done [15:48:44]req_shift_opened done [15:48:44]requested_item shift.open_date is exist - process it [15:48:44]req_shift_open_date [15:48:44]req_shift_open_date done [15:48:44]produce_requested_data done [15:48:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73908,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:48:44]process_action_free close_receipt [15:48:44]json_value_free [15:48:44]json_value_free done [15:48:44]process_json_proto returns [15:48:44]Send response to host [15:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73908,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:48:44]free response buf [15:48:44]execute_script done [15:48:44]execute_script returns [15:48:44]free content buf [15:48:44]Sock 9.Close socket [15:48:44]Sock 9.Thread stoped [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:36]accept exits with 8 [15:49:36]New connection [15:49:36]New thread 3067432292 created [15:49:36]Thread 3067575652 joined [15:49:36]Waiting for new connection... [15:49:36] Sock 8.Parse request [15:49:36]Sock 8.Check first char [15:49:36]Sock 8.First char is OK [15:49:36]request: POST /json_proto HTTP/1.0 [15:49:36]Method: POST [15:49:36]URL: /json_proto [15:49:36]Method is POST - this is cgi request [15:49:36]url: /json_proto [15:49:36]query_string will be loaded in cgi processing [15:49:36]execute_cgi json_proto POST (null) [15:49:36]execute_cgi path=json_proto method=POST [15:49:36]POST find Content-Length [15:49:36]Host: 172.17.44.196:8080 [15:49:36]Content-Length: 664 [15:49:36]Content-Type: application/json [15:49:36] [15:49:36]POST finish read [15:49:36]Found Content-Length = 664 [15:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [15:49:36]execute_script... [15:49: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 : (1)1963111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [15:49:36]POST & json_proto [15:49:36]process_json_proto [15:49:36]json parsed OK: [15:49:36]protocol is kg_v1.0 [15:49:36]action value=close_receipt [15:49:36]process_action close_receipt [15:49:36]cmd_close_receipt [15:49:36]MH_GetDate [15:49:36]Write to MH i2c: F0 00 00 76 3B A0 [15:49:36]Write i2c OK [15:49:36]MH_I2C_Read... [15:49:36]Read from MH i2c: F0 [15:49:36]MH_I2C_Read... [15:49:36]Read from MH i2c: F0 09 00 [15:49:36]MH_I2C_Read... [15:49:36]Read from MH i2c: F0 09 00 76 3B 00 93 26 15 67 E7 19 F8 65 3B [15:49:36]GetLastDocTimeStamp 1729439322 [15:49:36]current date 1729439379 [15:49:36]FM_GetShiftState [15:49:36]SAM_PROTO_GetShiftState [15:49:36]wFMCommunicate request_size=4 [15:49:36]MH_SAM_APDU [15:49:36]CAPDU: 80 13 01 00 [15:49:36]Write to MH i2c: E2 08 00 77 3B 80 13 01 00 00 00 00 00 2F [15:49:36]Write i2c OK [15:49:36]MH_I2C_Read... [15:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:36]Read from MH i2c: E2 [15:49:36]MH_I2C_Read... [15:49:36]Read from MH i2c: E2 0E 00 [15:49:36]MH_I2C_Read... [15:49:36]Read from MH i2c: E2 0E 00 77 3B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 74 [15:49:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:49:36]wFMCommunicate OK [15:49:36]SAM_PROTO_GetShiftState done [15:49:36]FM_GetShiftState done [15:49:36]opened in 1729384303 [15:49:36]opened+sec_in_day 1729470703 [15:49:36]quantity*price = 100000 [15:49:36]sum+1 = 100002 [15:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 235 20.10.2024 15:49 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73909 ФПД: 44053961467097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154939&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73909&fm=44053961467097&tin=02508201610067®Number=0000000000161154&sum=100000 [15:49:37]StoreToDocumentArchive [15:49:37]shift 170 fd 73909 [15:49:37]save to /storage/0170/doc_00073909 [15:49:37]save last doc name /storage/0170/doc_00073909 to /storage/kkm_last_doc_name [15:49:37]save OK [15:49:37]Clear old archive folders... [15:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:49:37]tlvbuf is 00451D90 [15:49:37]SAM_PROTO_ClearQueue [15:49:37]wFMCommunicate request_size=4 [15:49:37]MH_SAM_APDU [15:49:37]CAPDU: 80 09 00 00 [15:49:37]Write to MH i2c: E2 08 00 84 3B 80 09 00 00 00 00 00 00 31 [15:49:37]Write i2c OK [15:49:37]MH_I2C_Read... [15:49:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:37]Read from MH i2c: E2 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 03 00 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 03 00 84 3B 00 90 00 33 [15:49:37]RAPDU: 90 00 [15:49:37]wFMCommunicate OK [15:49:37]SAM_PROTO_ClearQueue done [15:49:37]KKMCreateOFDPacket [15:49:37]OFDProtocolAddRootSTLVToBuf [15:49:37]FM_MakeSignedData [15:49:37]FM_MakeSignedData [15:49:37]SAM_PROTO_SignData [15:49:37]wFMCommunicate request_size=4 [15:49:37]MH_SAM_APDU [15:49:37]CAPDU: 80 0D 01 02 [15:49:37]Write to MH i2c: E2 08 00 85 3B 80 0D 01 02 00 00 00 00 39 [15:49:37]Write i2c OK [15:49:37]MH_I2C_Read... [15:49:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:37]Read from MH i2c: E2 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 03 00 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 03 00 85 3B 00 90 00 34 [15:49:37]RAPDU: 90 00 [15:49:37]wFMCommunicate OK [15:49:37]wFMCommunicate request_size=253 [15:49:37]MH_SAM_APDU [15:49:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 EB 00 00 00 F4 03 04 00 93 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 20 01 00 35 04 06 00 28 11 1C B9 64 D9 [15:49:37]Write to MH i2c: E2 00 01 86 3B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 EB 00 00 00 F4 03 04 00 93 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 20 01 00 35 04 06 00 28 11 1C B9 64 D9 00 00 89 [15:49:37]Write i2c OK [15:49:37]MH_I2C_Read... [15:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:38]Read from MH i2c: E2 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: E2 03 00 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: E2 03 00 86 3B 00 90 00 35 [15:49:38]RAPDU: 90 00 [15:49:38]wFMCommunicate OK [15:49:38]wFMCommunicate request_size=4 [15:49:38]MH_SAM_APDU [15:49:38]CAPDU: 80 0D 03 02 [15:49:38]Write to MH i2c: E2 08 00 87 3B 80 0D 03 02 00 00 00 00 3D [15:49:38]Write i2c OK [15:49:38]MH_I2C_Read... [15:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:38]Read from MH i2c: E2 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: E2 0B 00 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: E2 0B 00 87 3B 00 E4 1B 30 70 4C 04 DA 21 90 00 28 [15:49:38]RAPDU: E4 1B 30 70 4C 04 DA 21 90 00 [15:49:38]wFMCommunicate OK [15:49:38]SAM_PROTO_SignData done [15:49:38]FM_MakeSignedData done [15:49:38]CreateOFDProtocolMessage [15:49:38]wFMCommunicate request_size=4 [15:49:38]MH_SAM_APDU [15:49:38]CAPDU: 80 11 00 00 [15:49:38]Write to MH i2c: E2 08 00 88 3B 80 11 00 00 00 00 00 00 3D [15:49:38]Write i2c OK [15:49:38]MH_I2C_Read... [15:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:38]Read from MH i2c: E2 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: E2 17 00 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: E2 17 00 88 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [15:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:49:38]wFMCommunicate OK [15:49:38]CreateOFDProtocolMessage done [15:49:38]OFDSenderStorePacket 73909 [15:49:38]StoreOFDPacket docnum=73909 [15:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 FA BE 00 01 7B C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 EB 00 00 00 F4 03 04 00 93 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 20 01 00 35 04 06 00 28 11 1C B9 64 D9 E4 1B 30 70 4C 04 DA 21 [15:49:38]CheckFolder [15:49:38]dirname=/storage/ofd_packets [15:49:38]CheckFolder done [15:49:38]ProducePacketName [15:49:38]name=ofd_packets/00073909 [15:49:38]NVStorageSaveData ofd_packets/00073909 [15:49:38]File name is /storage/ofd_packets/00073909 [15:49:38]Write 294 bytes [15:49:38]NVStorageSaveData done [15:49:38]OFDSenderStorePacket done [15:49:38]KKMCreateOFDPacket done [15:49:38]NVStorageSaveData kkm_last_timestamp [15:49:38]File name is /storage/kkm_last_timestamp [15:49:38]Write 4 bytes [15:49:38]NVStorageSaveData done [15:49:38]ExternCall_PrintAddStr [15:49:38]wPrintStart [15:49:38]Write to MH i2c: 01 00 00 89 3B C4 [15:49:38]Write i2c OK [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: 01 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: 01 07 00 [15:49:38]MH_I2C_Read... [15:49:38]Read from MH i2c: 01 07 00 89 3B 00 00 00 00 00 FF 0F D9 [15:49:38]RasterBufferAndPrint [15:49:38]line Счет N : (1)1963111 [15:49:38]line ИНН: 02508201610067 [15:49:38]line Контрольно-Кассовый Чек [15:49:38]line ПРОДАЖА [15:49:38]line ТРК (МРК, ГНК) : 32 [15:49:38]line Товар: 2710124130 [15:49:38]line SU-92 [15:49:38]line 14.620 * 68.40 [15:49:38]line = 1000.01 [15:49:38]line НДС 12% НСП 1% [15:49:38]line > о реализуемом товаре [15:49:38]line ОКРУГЛЕНИЕ: -0.01 [15:49:38]line ИТОГО: 1000.00 [15:49:38]line Внесено: 1000.00 [15:49:38]line СДАЧА: 0.00 [15:49:38]line НСП 1% : 8.85 [15:49:38]line НДС 12% : 106.20 [15:49:38]line Наличными: 1000.00 [15:49:38]line Безнал.: 0.00 [15:49:38]line Место: АЗС № 133 "Партнер Нефть" [15:49:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:49:38]line СНО: Общий режим [15:49:38]line Чек 235 20.10.2024 15:49 [15:49:38]line Смена: 170 ФФД: 1.0 [15:49:38]line ЗНМ: 0300000020 [15:49:38]line РНМ: 0000000000161154 [15:49:38]line Версия ККМ: v1.0 [15:49:38]line ФМ: 0000000000963323 [15:49:38]line ФД: 73909 [15:49:38]line ФПД: 44053961467097 [15:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154939&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73909&fm=44053961467097&tin=02508201610067®Number=0000000000161154&sum=100000 [15:49:38]OFD Sender: Processing packet 73909 [packets to send 15, broken 14] [15:49:38]ProducePacketName [15:49:38]name=ofd_packets/00073909 [15:49:38]OFD Sender: To server: pG, [15:49:38]CommunicateWithHost lk.salyk.kg:30040 [15:49:38]ConnectInit lk.salyk.kg [15:49:38]written 0, free lines is 4095 [15:49:38]Connected sock=10 [15:49:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 FA BE 00 01 7B C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 EB 00 00 00 F4 03 04 00 93 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 20 01 00 35 04 06 00 28 11 1C B9 64 D9 E4 1B 30 70 4C 04 DA 21 [15:49:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F1 81 47 00 14 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 39 36 33 33 32 33 10 04 04 00 B5 20 01 00 F4 03 04 00 77 CF 14 67 B6 04 01 00 00 F5 8C 5C 0C EA F5 78 9F [15:49:38]CommunicateWithHost err = 0 [15:49:38]CheckOFDResponse [15:49:38]1017 (14) - 77093643461234 [15:49:38]1041 (16) - 0000000000963323 [15:49:38]1040 (4) - 73909 [15:49:38]1012 (4) - 20.10.2024 09:37 [15:49:38]1206 (1) - 0 [15:49:38]OFD Sender: Remove packet 73909 [15:49:38]ProducePacketName [15:49:38]name=ofd_packets/00073909 [15:49:38]NVStorageDeleteData [15:49:39]Write to MH i2c: 01 00 00 B3 3B EE [15:49:39]Write i2c OK [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: 01 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: 01 07 00 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: 01 07 00 B3 3B 00 00 00 00 00 BA 0C BB [15:49:39]RasterBufferAndPrint [15:49:39]line [15:49:39]line [15:49:39]line [15:49:39]line [15:49:39]line [15:49:39]written 0, free lines is 3265 [15:49:39]MH_Cut [15:49:39]Write to MH i2c: D1 01 00 BA 3B 01 C7 [15:49:39]Write i2c OK [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: D1 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: D1 01 00 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: D1 01 00 BA 3B 00 C6 [15:49:39]Write to MH i2c: 01 00 00 BB 3B F6 [15:49:39]Write i2c OK [15:49:39]MH_I2C_Read... [15:49:39]OFD Sender: No OFD packet to send [15:49:39]*** Cut start [15:49:39]*** Partial cut [15:49:39]*** CUTSNS_PIN = 1 [15:49:39]*** CUTSNS_PIN = 0 [15:49:40]*** Brake cut motor [15:49:40]Read from MH i2c: 01 [15:49:40]MH_I2C_Read... [15:49:40]*** Stop cut motor [15:49:40]*** Cut end [15:49:40]Read from MH i2c: 01 07 00 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: 01 07 00 BB 3B 00 00 00 00 00 FF 0F 0B [15:49:40]process_action close_receipt done [15:49:40]requested_data is exist [15:49:40]produce_requested_data [15:49:40]requested_item fm.sn is exist - process it [15:49:40]wFMCommunicate request_size=4 [15:49:40]MH_SAM_APDU [15:49:40]CAPDU: 80 11 00 00 [15:49:40]Write to MH i2c: E2 08 00 BC 3B 80 11 00 00 00 00 00 00 71 [15:49:40]Write i2c OK [15:49:40]MH_I2C_Read... [15:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:40]Read from MH i2c: E2 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: E2 17 00 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: E2 17 00 BC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BE [15:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:49:40]wFMCommunicate OK [15:49:40]requested_item fd.num is exist - process it [15:49:40]SAM_PROTO_GetFieldsCounters [15:49:40]wFMCommunicate request_size=4 [15:49:40]MH_SAM_APDU [15:49:40]CAPDU: 80 13 00 00 [15:49:40]Write to MH i2c: E2 08 00 BD 3B 80 13 00 00 00 00 00 00 74 [15:49:40]Write i2c OK [15:49:40]MH_I2C_Read... [15:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:40]Read from MH i2c: E2 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: E2 62 00 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: E2 62 00 BD 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:49:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:40]wFMCommunicate OK [15:49:40]SAM_PROTO_GetFieldsCounters done [15:49:40]requested_item shift.num is exist - process it [15:49:40]requested_item shift.opened is exist - process it [15:49:40]req_shift_opened [15:49:40]FM_GetShiftState [15:49:40]SAM_PROTO_GetShiftState [15:49:40]wFMCommunicate request_size=4 [15:49:40]MH_SAM_APDU [15:49:40]CAPDU: 80 13 01 00 [15:49:40]Write to MH i2c: E2 08 00 BE 3B 80 13 01 00 00 00 00 00 76 [15:49:40]Write i2c OK [15:49:40]MH_I2C_Read... [15:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:40]Read from MH i2c: E2 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: E2 0E 00 [15:49:40]MH_I2C_Read... [15:49:40]Read from MH i2c: E2 0E 00 BE 3B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [15:49:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:49:40]wFMCommunicate OK [15:49:40]SAM_PROTO_GetShiftState done [15:49:40]FM_GetShiftState done [15:49:40]req_shift_opened done [15:49:40]requested_item shift.open_date is exist - process it [15:49:40]req_shift_open_date [15:49:40]req_shift_open_date done [15:49:40]produce_requested_data done [15:49:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73909,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:49:40]process_action_free close_receipt [15:49:40]json_value_free [15:49:40]json_value_free done [15:49:40]process_json_proto returns [15:49:40]Send response to host [15:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73909,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:49:40]free response buf [15:49:40]execute_script done [15:49:40]execute_script returns [15:49:40]free content buf [15:49:40]Sock 8.Close socket [15:49:40]Sock 8.Thread stoped [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:06]accept exits with 9 [15:51:06]New connection [15:51:06]New thread 3067575652 created [15:51:06]Thread 3067432292 joined [15:51:06]Waiting for new connection... [15:51:06] Sock 9.Parse request [15:51:06]Sock 9.Check first char [15:51:06]Sock 9.First char is OK [15:51:06]request: POST /json_proto HTTP/1.0 [15:51:06]Method: POST [15:51:06]URL: /json_proto [15:51:06]Method is POST - this is cgi request [15:51:06]url: /json_proto [15:51:06]query_string will be loaded in cgi processing [15:51:06]execute_cgi json_proto POST (null) [15:51:06]execute_cgi path=json_proto method=POST [15:51:06]POST find Content-Length [15:51:06]Host: 172.17.44.196:8080 [15:51:06]Content-Length: 675 [15:51:06]Content-Type: application/json [15:51:06] [15:51:06]POST finish read [15:51:06]Found Content-Length = 675 [15:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "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" ] } } [15:51:06]execute_script... [15:51: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 : (1)1963112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "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" ] } } [15:51:06]POST & json_proto [15:51:06]process_json_proto [15:51:06]json parsed OK: [15:51:06]protocol is kg_v1.0 [15:51:06]action value=close_receipt [15:51:06]process_action close_receipt [15:51:06]cmd_close_receipt [15:51:06]MH_GetDate [15:51:06]Write to MH i2c: F0 00 00 BF 3B E9 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: F0 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: F0 09 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: F0 09 00 BF 3B 00 ED 26 15 67 E7 19 F8 65 DE [15:51:06]GetLastDocTimeStamp 1729439379 [15:51:06]current date 1729439469 [15:51:06]FM_GetShiftState [15:51:06]SAM_PROTO_GetShiftState [15:51:06]wFMCommunicate request_size=4 [15:51:06]MH_SAM_APDU [15:51:06]CAPDU: 80 13 01 00 [15:51:06]Write to MH i2c: E2 08 00 C0 3B 80 13 01 00 00 00 00 00 78 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 C0 3B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BD [15:51:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetShiftState done [15:51:07]FM_GetShiftState done [15:51:07]opened in 1729384303 [15:51:07]opened+sec_in_day 1729470703 [15:51:07]quantity*price = 35052 [15:51:07]sum+1 = 35053 [15:51:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 236 20.10.2024 15:51 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73910 ФПД: 130672532726644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155109&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73910&fm=130672532726644&tin=02508201610067®Number=0000000000161154&sum=35000 [15:51:08]StoreToDocumentArchive [15:51:08]shift 170 fd 73910 [15:51:08]save to /storage/0170/doc_00073910 [15:51:08]save last doc name /storage/0170/doc_00073910 to /storage/kkm_last_doc_name [15:51:08]save OK [15:51:08]Clear old archive folders... [15:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:08]tlvbuf is 0037D3F0 [15:51:08]SAM_PROTO_ClearQueue [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 09 00 00 [15:51:08]Write to MH i2c: E2 08 00 CD 3B 80 09 00 00 00 00 00 00 7A [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 CD 3B 00 90 00 7C [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_ClearQueue done [15:51:08]KKMCreateOFDPacket [15:51:08]OFDProtocolAddRootSTLVToBuf [15:51:08]FM_MakeSignedData [15:51:08]FM_MakeSignedData [15:51:08]SAM_PROTO_SignData [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 01 02 [15:51:08]Write to MH i2c: E2 08 00 CE 3B 80 0D 01 02 00 00 00 00 82 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 CE 3B 00 90 00 7D [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=255 [15:51:08]MH_SAM_APDU [15:51:08]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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 EC 00 00 00 F4 03 04 00 ED 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 20 01 00 35 04 06 00 76 D8 91 E5 [15:51:08]Write to MH i2c: E2 02 01 CF 3B 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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 EC 00 00 00 F4 03 04 00 ED 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 20 01 00 35 04 06 00 76 D8 91 E5 00 00 3F [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 CF 3B 00 90 00 7E [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=7 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 02 02 02 23 74 [15:51:08]Write to MH i2c: E2 0A 00 D0 3B 80 0D 02 02 02 00 23 74 00 00 20 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 D0 3B 00 90 00 7F [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 03 02 [15:51:08]Write to MH i2c: E2 08 00 D1 3B 80 0D 03 02 00 00 00 00 87 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0B 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0B 00 D1 3B 00 BD 0B F5 4D E6 3D FC 24 90 00 D5 [15:51:08]RAPDU: BD 0B F5 4D E6 3D FC 24 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_SignData done [15:51:08]FM_MakeSignedData done [15:51:08]CreateOFDProtocolMessage [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 11 00 00 [15:51:08]Write to MH i2c: E2 08 00 D2 3B 80 11 00 00 00 00 00 00 87 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 D2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [15:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:51:08]wFMCommunicate OK [15:51:08]CreateOFDProtocolMessage done [15:51:08]OFDSenderStorePacket 73910 [15:51:08]StoreOFDPacket docnum=73910 [15:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 50 31 04 01 78 83 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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 EC 00 00 00 F4 03 04 00 ED 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 20 01 00 35 04 06 00 76 D8 91 E5 23 74 BD 0B F5 4D E6 3D FC 24 [15:51:08]CheckFolder [15:51:08]dirname=/storage/ofd_packets [15:51:08]CheckFolder done [15:51:08]ProducePacketName [15:51:08]name=ofd_packets/00073910 [15:51:08]NVStorageSaveData ofd_packets/00073910 [15:51:08]File name is /storage/ofd_packets/00073910 [15:51:08]Write 298 bytes [15:51:08]NVStorageSaveData done [15:51:08]OFDSenderStorePacket done [15:51:08]KKMCreateOFDPacket done [15:51:08]NVStorageSaveData kkm_last_timestamp [15:51:08]File name is /storage/kkm_last_timestamp [15:51:08]Write 4 bytes [15:51:08]NVStorageSaveData done [15:51:08]ExternCall_PrintAddStr [15:51:08]wPrintStart [15:51:08]Write to MH i2c: 01 00 00 D3 3B 0E [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 D3 3B 00 00 00 00 00 FF 0F 23 [15:51:08]RasterBufferAndPrint [15:51:08]line Счет N : (1)1963112 [15:51:08]line ИНН: 02508201610067 [15:51:08]line Контрольно-Кассовый Чек [15:51:08]line ПРОДАЖА [15:51:08]line ТРК (МРК, ГНК) : 11 [15:51:08]line Товар: 2710194210 [15:51:08]line ДТ-К-5 [15:51:08]line 4.600 * 76.20 [15:51:08]line = 350.52 [15:51:08]line НДС 12% НСП 1% [15:51:08]line > о реализуемом товаре [15:51:08]line ОКРУГЛЕНИЕ: -0.52 [15:51:08]line ИТОГО: 350.00 [15:51:08]line Внесено: 350.00 [15:51:08]line СДАЧА: 0.00 [15:51:08]line НСП 1% : 3.10 [15:51:08]line НДС 12% : 37.22 [15:51:08]line Наличными: 350.00 [15:51:08]line Безнал.: 0.00 [15:51:08]line Место: АЗС № 133 "Партнер Нефть" [15:51:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:51:08]line СНО: Общий режим [15:51:08]line Чек 236 20.10.2024 15:51 [15:51:08]line Смена: 170 ФФД: 1.0 [15:51:08]line ЗНМ: 0300000020 [15:51:08]line РНМ: 0000000000161154 [15:51:08]line Версия ККМ: v1.0 [15:51:08]line ФМ: 0000000000963323 [15:51:08]line ФД: 73910 [15:51:08]line ФПД: 130672532726644 [15:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155109&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73910&fm=130672532726644&tin=02508201610067®Number=0000000000161154&sum=35000 [15:51:08]OFD Sender: Processing packet 73910 [packets to send 15, broken 14] [15:51:08]ProducePacketName [15:51:08]name=ofd_packets/00073910 [15:51:08]OFD Sender: To server: pG, [15:51:08]CommunicateWithHost lk.salyk.kg:30040 [15:51:08]ConnectInit lk.salyk.kg [15:51:08]written 0, free lines is 4095 [15:51:09]Connected sock=10 [15:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 50 31 04 01 78 83 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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 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 8A 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 EC 00 00 00 F4 03 04 00 ED 26 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 20 01 00 35 04 06 00 76 D8 91 E5 23 74 BD 0B F5 4D E6 3D FC 24 [15:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 33 8F 47 00 37 27 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 39 36 33 33 32 33 10 04 04 00 B6 20 01 00 F4 03 04 00 D1 CF 14 67 B6 04 01 00 00 8C D4 DC A3 37 A9 50 08 [15:51:09]CommunicateWithHost err = 0 [15:51:09]CheckOFDResponse [15:51:09]1017 (14) - 77093643461234 [15:51:09]1041 (16) - 0000000000963323 [15:51:09]1040 (4) - 73910 [15:51:09]1012 (4) - 20.10.2024 09:39 [15:51:09]1206 (1) - 0 [15:51:09]OFD Sender: Remove packet 73910 [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00073910 [15:51:09]NVStorageDeleteData [15:51:09]Write to MH i2c: 01 00 00 FD 3B 38 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 07 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 07 00 FD 3B 00 00 00 00 00 BD 0C 08 [15:51:09]RasterBufferAndPrint [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]written 0, free lines is 3267 [15:51:09]MH_Cut [15:51:09]Write to MH i2c: D1 01 00 04 3C 01 12 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 01 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 01 00 04 3C 00 11 [15:51:09]Write to MH i2c: 01 00 00 05 3C 41 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]OFD Sender: No OFD packet to send [15:51:10]*** Cut start [15:51:10]*** Partial cut [15:51:10]*** CUTSNS_PIN = 1 [15:51:10]*** CUTSNS_PIN = 0 [15:51:10]*** Brake cut motor [15:51:10]Read from MH i2c: 01 [15:51:10]MH_I2C_Read... [15:51:10]*** Stop cut motor [15:51:10]*** Cut end [15:51:10]Read from MH i2c: 01 07 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: 01 07 00 05 3C 00 00 00 00 00 FF 0F 56 [15:51:10]process_action close_receipt done [15:51:10]requested_data is exist [15:51:10]produce_requested_data [15:51:10]requested_item fm.sn is exist - process it [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 11 00 00 [15:51:10]Write to MH i2c: E2 08 00 06 3C 80 11 00 00 00 00 00 00 BC [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:10]Read from MH i2c: E2 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 17 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 17 00 06 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 09 [15:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:51:10]wFMCommunicate OK [15:51:10]requested_item fd.num is exist - process it [15:51:10]SAM_PROTO_GetFieldsCounters [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 13 00 00 [15:51:10]Write to MH i2c: E2 08 00 07 3C 80 13 00 00 00 00 00 00 BF [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 07 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [15:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetFieldsCounters done [15:51:11]requested_item shift.num is exist - process it [15:51:11]requested_item shift.opened is exist - process it [15:51:11]req_shift_opened [15:51:11]FM_GetShiftState [15:51:11]SAM_PROTO_GetShiftState [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 01 00 [15:51:11]Write to MH i2c: E2 08 00 08 3C 80 13 01 00 00 00 00 00 C1 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 08 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 06 [15:51:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetShiftState done [15:51:11]FM_GetShiftState done [15:51:11]req_shift_opened done [15:51:11]requested_item shift.open_date is exist - process it [15:51:11]req_shift_open_date [15:51:11]req_shift_open_date done [15:51:11]produce_requested_data done [15:51:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73910,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:51:11]process_action_free close_receipt [15:51:11]json_value_free [15:51:11]json_value_free done [15:51:11]process_json_proto returns [15:51:11]Send response to host [15:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73910,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:51:11]free response buf [15:51:11]execute_script done [15:51:11]execute_script returns [15:51:11]free content buf [15:51:11]Sock 9.Close socket [15:51:11]Sock 9.Thread stoped [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:26]accept exits with 8 [15:57:26]New connection [15:57:26]New thread 3067432292 created [15:57:26]Thread 3067575652 joined [15:57:26]Waiting for new connection... [15:57:26] Sock 8.Parse request [15:57:26]Sock 8.Check first char [15:57:26]Sock 8.First char is OK [15:57:26]request: POST /json_proto HTTP/1.0 [15:57:26]Method: POST [15:57:26]URL: /json_proto [15:57:26]Method is POST - this is cgi request [15:57:26]url: /json_proto [15:57:26]query_string will be loaded in cgi processing [15:57:26]execute_cgi json_proto POST (null) [15:57:26]execute_cgi path=json_proto method=POST [15:57:26]POST find Content-Length [15:57:26]Host: 172.17.44.196:8080 [15:57:26]Content-Length: 678 [15:57:26]Content-Type: application/json [15:57:26] [15:57:26]POST finish read [15:57:26]Found Content-Length = 678 [15:57:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963113", "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.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:26]execute_script... [15:57: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)1963113", "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.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:26]POST & json_proto [15:57:26]process_json_proto [15:57:26]json parsed OK: [15:57:26]protocol is kg_v1.0 [15:57:26]action value=close_receipt [15:57:26]process_action close_receipt [15:57:26]cmd_close_receipt [15:57:26]MH_GetDate [15:57:26]Write to MH i2c: F0 00 00 09 3C 34 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: F0 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: F0 09 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: F0 09 00 09 3C 00 68 28 15 67 E7 19 F8 65 A6 [15:57:26]GetLastDocTimeStamp 1729439469 [15:57:26]current date 1729439848 [15:57:26]FM_GetShiftState [15:57:26]SAM_PROTO_GetShiftState [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 13 01 00 [15:57:26]Write to MH i2c: E2 08 00 0A 3C 80 13 01 00 00 00 00 00 C3 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 0E 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 0E 00 0A 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 08 [15:57:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_GetShiftState done [15:57:26]FM_GetShiftState done [15:57:26]opened in 1729384303 [15:57:26]opened+sec_in_day 1729470703 [15:57:26]quantity*price = 19066 [15:57:26]sum+1 = 19068 [15:57:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 237 20.10.2024 15:57 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73911 ФПД: 138946711292648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155729&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73911&fm=138946711292648&tin=02508201610067®Number=0000000000161154&sum=19000 [15:57:27]StoreToDocumentArchive [15:57:27]shift 170 fd 73911 [15:57:27]save to /storage/0170/doc_00073911 [15:57:27]save last doc name /storage/0170/doc_00073911 to /storage/kkm_last_doc_name [15:57:27]save OK [15:57:27]Clear old archive folders... [15:57:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:27]tlvbuf is 00382F80 [15:57:27]SAM_PROTO_ClearQueue [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 09 00 00 [15:57:27]Write to MH i2c: E2 08 00 17 3C 80 09 00 00 00 00 00 00 C5 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 17 3C 00 90 00 C7 [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_ClearQueue done [15:57:27]KKMCreateOFDPacket [15:57:27]OFDProtocolAddRootSTLVToBuf [15:57:27]FM_MakeSignedData [15:57:27]FM_MakeSignedData [15:57:27]SAM_PROTO_SignData [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 01 02 [15:57:27]Write to MH i2c: E2 08 00 18 3C 80 0D 01 02 00 00 00 00 CD [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 18 3C 00 90 00 C8 [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=255 [15:57:27]MH_SAM_APDU [15:57: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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 ED 00 00 00 F4 03 04 00 69 28 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 20 01 00 35 04 06 00 7E [15:57:27]Write to MH i2c: E2 02 01 19 3C 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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 ED 00 00 00 F4 03 04 00 69 28 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 20 01 00 35 04 06 00 7E 00 00 8F [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 19 3C 00 90 00 C9 [15:57:28]RAPDU: 90 00 [15:57:28]wFMCommunicate OK [15:57:28]wFMCommunicate request_size=10 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 0D 02 02 05 5F 0D 5E 8A E8 [15:57:28]Write to MH i2c: E2 0D 00 1A 3C 80 0D 02 02 05 00 5F 0D 5E 8A E8 00 00 16 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 1A 3C 00 90 00 CA [15:57:28]RAPDU: 90 00 [15:57:28]wFMCommunicate OK [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 0D 03 02 [15:57:28]Write to MH i2c: E2 08 00 1B 3C 80 0D 03 02 00 00 00 00 D2 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 0B 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 0B 00 1B 3C 00 04 3F F8 8F BA BE 10 55 90 00 7A [15:57:28]RAPDU: 04 3F F8 8F BA BE 10 55 90 00 [15:57:28]wFMCommunicate OK [15:57:28]SAM_PROTO_SignData done [15:57:28]FM_MakeSignedData done [15:57:28]CreateOFDProtocolMessage [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 11 00 00 [15:57:28]Write to MH i2c: E2 08 00 1C 3C 80 11 00 00 00 00 00 00 D2 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 17 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 17 00 1C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1F [15:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:57:28]wFMCommunicate OK [15:57:28]CreateOFDProtocolMessage done [15:57:28]OFDSenderStorePacket 73911 [15:57:28]StoreOFDPacket docnum=73911 [15:57:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9A 08 07 01 8A C7 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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 ED 00 00 00 F4 03 04 00 69 28 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 20 01 00 35 04 06 00 7E 5F 0D 5E 8A E8 04 3F F8 8F BA BE 10 55 [15:57:28]CheckFolder [15:57:28]dirname=/storage/ofd_packets [15:57:28]CheckFolder done [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00073911 [15:57:28]NVStorageSaveData ofd_packets/00073911 [15:57:28]File name is /storage/ofd_packets/00073911 [15:57:28]Write 301 bytes [15:57:28]NVStorageSaveData done [15:57:28]OFDSenderStorePacket done [15:57:28]KKMCreateOFDPacket done [15:57:28]NVStorageSaveData kkm_last_timestamp [15:57:28]File name is /storage/kkm_last_timestamp [15:57:28]Write 4 bytes [15:57:28]NVStorageSaveData done [15:57:28]ExternCall_PrintAddStr [15:57:28]wPrintStart [15:57:28]Write to MH i2c: 01 00 00 1D 3C 59 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 1D 3C 00 00 00 00 00 FF 0F 6E [15:57:28]RasterBufferAndPrint [15:57:28]line Счет N : (1)1963113 [15:57:28]line ИНН: 02508201610067 [15:57:28]line Контрольно-Кассовый Чек [15:57:28]line ПРОДАЖА [15:57:28]line ТРК (МРК, ГНК) : 53 [15:57:28]line Товар: 2710124130 [15:57:28]line Аи-92-К-5 [15:57:28]line 2.850 * 66.90 [15:57:28]line = 190.67 [15:57:28]line НДС 12% НСП 1% [15:57:28]line > о реализуемом товаре [15:57:28]line ОКРУГЛЕНИЕ: -0.67 [15:57:28]line ИТОГО: 190.00 [15:57:28]line Внесено: 190.00 [15:57:28]line СДАЧА: 0.00 [15:57:28]line НСП 1% : 1.69 [15:57:28]line НДС 12% : 20.25 [15:57:28]line Наличными: 190.00 [15:57:28]line Безнал.: 0.00 [15:57:28]line Место: АЗС № 133 "Партнер Нефть" [15:57:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:57:28]line СНО: Общий режим [15:57:28]line Чек 237 20.10.2024 15:57 [15:57:28]line Смена: 170 ФФД: 1.0 [15:57:28]line ЗНМ: 0300000020 [15:57:28]line РНМ: 0000000000161154 [15:57:28]line Версия ККМ: v1.0 [15:57:28]line ФМ: 0000000000963323 [15:57:28]line ФД: 73911 [15:57:28]line ФПД: 138946711292648 [15:57:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155729&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73911&fm=138946711292648&tin=02508201610067®Number=0000000000161154&sum=19000 [15:57:28]OFD Sender: Processing packet 73911 [packets to send 15, broken 14] [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00073911 [15:57:28]OFD Sender: To server: pG, [15:57:28]CommunicateWithHost lk.salyk.kg:30040 [15:57:28]ConnectInit lk.salyk.kg [15:57:28]written 0, free lines is 4095 [15:57:28]Connected sock=10 [15:57:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9A 08 07 01 8A C7 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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 ED 00 00 00 F4 03 04 00 69 28 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 20 01 00 35 04 06 00 7E 5F 0D 5E 8A E8 04 3F F8 8F BA BE 10 55 [15:57:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 86 E2 47 00 7A CC 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 39 36 33 33 32 33 10 04 04 00 B7 20 01 00 F4 03 04 00 4D D1 14 67 B6 04 01 00 00 3E 95 90 11 AA 2D 98 57 [15:57:28]CommunicateWithHost err = 0 [15:57:28]CheckOFDResponse [15:57:28]1017 (14) - 77093643461234 [15:57:28]1041 (16) - 0000000000963323 [15:57:28]1040 (4) - 73911 [15:57:28]1012 (4) - 20.10.2024 09:45 [15:57:28]1206 (1) - 0 [15:57:28]OFD Sender: Remove packet 73911 [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00073911 [15:57:28]NVStorageDeleteData [15:57:29]Write to MH i2c: 01 00 00 47 3C 83 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 47 3C 00 00 00 00 00 B5 0C 4B [15:57:29]RasterBufferAndPrint [15:57:29]line [15:57:29]line [15:57:29]line [15:57:29]line [15:57:29]line [15:57:29]written 0, free lines is 3256 [15:57:29]MH_Cut [15:57:29]Write to MH i2c: D1 01 00 4E 3C 01 5C [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: D1 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: D1 01 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: D1 01 00 4E 3C 00 5B [15:57:29]Write to MH i2c: 01 00 00 4F 3C 8B [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]OFD Sender: No OFD packet to send [15:57:29]*** Cut start [15:57:29]*** Partial cut [15:57:29]*** CUTSNS_PIN = 1 [15:57:30]*** CUTSNS_PIN = 0 [15:57:30]*** Brake cut motor [15:57:30]Read from MH i2c: 01 [15:57:30]MH_I2C_Read... [15:57:30]*** Stop cut motor [15:57:30]*** Cut end [15:57:30]Read from MH i2c: 01 07 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: 01 07 00 4F 3C 00 00 00 00 00 FF 0F A0 [15:57:30]process_action close_receipt done [15:57:30]requested_data is exist [15:57:30]produce_requested_data [15:57:30]requested_item fm.sn is exist - process it [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 11 00 00 [15:57:30]Write to MH i2c: E2 08 00 50 3C 80 11 00 00 00 00 00 00 06 [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 17 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 17 00 50 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 53 [15:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:57:30]wFMCommunicate OK [15:57:30]requested_item fd.num is exist - process it [15:57:30]SAM_PROTO_GetFieldsCounters [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 13 00 00 [15:57:30]Write to MH i2c: E2 08 00 51 3C 80 13 00 00 00 00 00 00 09 [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 62 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 62 00 51 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:57:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:30]wFMCommunicate OK [15:57:30]SAM_PROTO_GetFieldsCounters done [15:57:30]requested_item shift.num is exist - process it [15:57:30]requested_item shift.opened is exist - process it [15:57:30]req_shift_opened [15:57:30]FM_GetShiftState [15:57:30]SAM_PROTO_GetShiftState [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 13 01 00 [15:57:30]Write to MH i2c: E2 08 00 52 3C 80 13 01 00 00 00 00 00 0B [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 0E 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 0E 00 52 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 50 [15:57:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [15:57:30]wFMCommunicate OK [15:57:30]SAM_PROTO_GetShiftState done [15:57:30]FM_GetShiftState done [15:57:30]req_shift_opened done [15:57:30]requested_item shift.open_date is exist - process it [15:57:30]req_shift_open_date [15:57:30]req_shift_open_date done [15:57:30]produce_requested_data done [15:57:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73911,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [15:57:30]process_action_free close_receipt [15:57:30]json_value_free [15:57:30]json_value_free done [15:57:30]process_json_proto returns [15:57:30]Send response to host [15:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73911,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [15:57:30]free response buf [15:57:30]execute_script done [15:57:30]execute_script returns [15:57:30]free content buf [15:57:30]Sock 8.Close socket [15:57:30]Sock 8.Thread stoped [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:26]accept exits with 9 [16:02:26]New connection [16:02:26]New thread 3067575652 created [16:02:26]Thread 3067432292 joined [16:02:26]Waiting for new connection... [16:02:26] Sock 9.Parse request [16:02:26]Sock 9.Check first char [16:02:26]Sock 9.First char is OK [16:02:26]request: POST /json_proto HTTP/1.0 [16:02:26]Method: POST [16:02:26]URL: /json_proto [16:02:26]Method is POST - this is cgi request [16:02:26]url: /json_proto [16:02:26]query_string will be loaded in cgi processing [16:02:26]execute_cgi json_proto POST (null) [16:02:26]execute_cgi path=json_proto method=POST [16:02:26]POST find Content-Length [16:02:26]Host: 172.17.44.196:8080 [16:02:26]Content-Length: 675 [16:02:26]Content-Type: application/json [16:02:26] [16:02:26]POST finish read [16:02:26]Found Content-Length = 675 [16:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [16:02:26]execute_script... [16:02: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)1963114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [16:02:26]POST & json_proto [16:02:26]process_json_proto [16:02:26]json parsed OK: [16:02:26]protocol is kg_v1.0 [16:02:26]action value=close_receipt [16:02:26]process_action close_receipt [16:02:26]cmd_close_receipt [16:02:26]MH_GetDate [16:02:26]Write to MH i2c: F0 00 00 53 3C 7E [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: F0 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: F0 09 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: F0 09 00 53 3C 00 94 29 15 67 E7 19 F8 65 1D [16:02:26]GetLastDocTimeStamp 1729439849 [16:02:26]current date 1729440148 [16:02:26]FM_GetShiftState [16:02:26]SAM_PROTO_GetShiftState [16:02:26]wFMCommunicate request_size=4 [16:02:26]MH_SAM_APDU [16:02:26]CAPDU: 80 13 01 00 [16:02:26]Write to MH i2c: E2 08 00 54 3C 80 13 01 00 00 00 00 00 0D [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:26]Read from MH i2c: E2 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 0E 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 0E 00 54 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 52 [16:02:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:02:26]wFMCommunicate OK [16:02:26]SAM_PROTO_GetShiftState done [16:02:26]FM_GetShiftState done [16:02:26]opened in 1729384303 [16:02:26]opened+sec_in_day 1729470703 [16:02:26]quantity*price = 50063 [16:02:26]sum+1 = 50064 [16:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 238 20.10.2024 16:02 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73912 ФПД: 273902181874235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160228&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73912&fm=273902181874235&tin=02508201610067®Number=0000000000161154&sum=50000 [16:02:27]StoreToDocumentArchive [16:02:27]shift 170 fd 73912 [16:02:27]save to /storage/0170/doc_00073912 [16:02:27]save last doc name /storage/0170/doc_00073912 to /storage/kkm_last_doc_name [16:02:27]save OK [16:02:27]Clear old archive folders... [16:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:27]tlvbuf is 0033C420 [16:02:27]SAM_PROTO_ClearQueue [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 09 00 00 [16:02:27]Write to MH i2c: E2 08 00 61 3C 80 09 00 00 00 00 00 00 0F [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 61 3C 00 90 00 11 [16:02:27]RAPDU: 90 00 [16:02:27]wFMCommunicate OK [16:02:27]SAM_PROTO_ClearQueue done [16:02:27]KKMCreateOFDPacket [16:02:27]OFDProtocolAddRootSTLVToBuf [16:02:27]FM_MakeSignedData [16:02:27]FM_MakeSignedData [16:02:27]SAM_PROTO_SignData [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 0D 01 02 [16:02:27]Write to MH i2c: E2 08 00 62 3C 80 0D 01 02 00 00 00 00 17 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 62 3C 00 90 00 12 [16:02:27]RAPDU: 90 00 [16:02:27]wFMCommunicate OK [16:02:27]wFMCommunicate request_size=255 [16:02:27]MH_SAM_APDU [16:02:27]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EE 00 00 00 F4 03 04 00 94 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 20 01 00 35 04 06 00 F9 1C D2 40 [16:02:27]Write to MH i2c: E2 02 01 63 3C 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EE 00 00 00 F4 03 04 00 94 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 20 01 00 35 04 06 00 F9 1C D2 40 00 00 E8 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 63 3C 00 90 00 13 [16:02:27]RAPDU: 90 00 [16:02:27]wFMCommunicate OK [16:02:27]wFMCommunicate request_size=7 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 0D 02 02 02 FA 3B [16:02:27]Write to MH i2c: E2 0A 00 64 3C 80 0D 02 02 02 00 FA 3B 00 00 53 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 64 3C 00 90 00 14 [16:02:27]RAPDU: 90 00 [16:02:27]wFMCommunicate OK [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 0D 03 02 [16:02:27]Write to MH i2c: E2 08 00 65 3C 80 0D 03 02 00 00 00 00 1C [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0B 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0B 00 65 3C 00 3C 08 DC CC 34 31 CA 9D 90 00 D5 [16:02:27]RAPDU: 3C 08 DC CC 34 31 CA 9D 90 00 [16:02:27]wFMCommunicate OK [16:02:27]SAM_PROTO_SignData done [16:02:27]FM_MakeSignedData done [16:02:27]CreateOFDProtocolMessage [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 11 00 00 [16:02:27]Write to MH i2c: E2 08 00 66 3C 80 11 00 00 00 00 00 00 1C [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 17 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 17 00 66 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [16:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:02:27]wFMCommunicate OK [16:02:27]CreateOFDProtocolMessage done [16:02:27]OFDSenderStorePacket 73912 [16:02:27]StoreOFDPacket docnum=73912 [16:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 95 02 04 01 F3 E8 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EE 00 00 00 F4 03 04 00 94 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 20 01 00 35 04 06 00 F9 1C D2 40 FA 3B 3C 08 DC CC 34 31 CA 9D [16:02:27]CheckFolder [16:02:27]dirname=/storage/ofd_packets [16:02:27]CheckFolder done [16:02:27]ProducePacketName [16:02:27]name=ofd_packets/00073912 [16:02:27]NVStorageSaveData ofd_packets/00073912 [16:02:27]File name is /storage/ofd_packets/00073912 [16:02:27]Write 298 bytes [16:02:27]NVStorageSaveData done [16:02:27]OFDSenderStorePacket done [16:02:27]KKMCreateOFDPacket done [16:02:27]NVStorageSaveData kkm_last_timestamp [16:02:27]File name is /storage/kkm_last_timestamp [16:02:27]Write 4 bytes [16:02:27]NVStorageSaveData done [16:02:27]ExternCall_PrintAddStr [16:02:27]wPrintStart [16:02:27]Write to MH i2c: 01 00 00 67 3C A3 [16:02:27]OFD Sender: Processing packet 73912 [packets to send 15, broken 14] [16:02:27]ProducePacketName [16:02:27]name=ofd_packets/00073912 [16:02:27]OFD Sender: To server: pG, [16:02:27]CommunicateWithHost lk.salyk.kg:30040 [16:02:27]ConnectInit lk.salyk.kg [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 67 3C 00 00 00 00 00 FF 0F B8 [16:02:27]RasterBufferAndPrint [16:02:27]line Счет N : (1)1963114 [16:02:27]line ИНН: 02508201610067 [16:02:27]line Контрольно-Кассовый Чек [16:02:27]line ПРОДАЖА [16:02:27]line ТРК (МРК, ГНК) : 11 [16:02:27]line Товар: 2710194210 [16:02:27]line ДТ-К-5 [16:02:27]line 6.570 * 76.20 [16:02:27]line = 500.63 [16:02:27]line НДС 12% НСП 1% [16:02:27]line > о реализуемом товаре [16:02:27]line ОКРУГЛЕНИЕ: -0.63 [16:02:27]line ИТОГО: 500.00 [16:02:27]line Внесено: 500.00 [16:02:27]line СДАЧА: 0.00 [16:02:27]line НСП 1% : 4.43 [16:02:27]line НДС 12% : 53.16 [16:02:27]line Наличными: 500.00 [16:02:27]line Безнал.: 0.00 [16:02:27]line Место: АЗС № 133 "Партнер Нефть" [16:02:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:02:27]line СНО: Общий режим [16:02:27]line Чек 238 20.10.2024 16:02 [16:02:27]line Смена: 170 ФФД: 1.0 [16:02:27]line ЗНМ: 0300000020 [16:02:27]line РНМ: 0000000000161154 [16:02:27]line Версия ККМ: v1.0 [16:02:27]line ФМ: 0000000000963323 [16:02:27]line ФД: 73912 [16:02:27]line ФПД: 273902181874235 [16:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160228&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73912&fm=273902181874235&tin=02508201610067®Number=0000000000161154&sum=50000 [16:02:28]Connected sock=10 [16:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 95 02 04 01 F3 E8 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EE 00 00 00 F4 03 04 00 94 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 20 01 00 35 04 06 00 F9 1C D2 40 FA 3B 3C 08 DC CC 34 31 CA 9D [16:02:28]written 0, free lines is 4095 [16:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F6 73 47 00 67 68 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 39 36 33 33 32 33 10 04 04 00 B8 20 01 00 F4 03 04 00 78 D2 14 67 B6 04 01 00 00 CF 4A 48 27 07 F6 0E 7F [16:02:28]CommunicateWithHost err = 0 [16:02:28]CheckOFDResponse [16:02:28]1017 (14) - 77093643461234 [16:02:28]1041 (16) - 0000000000963323 [16:02:28]1040 (4) - 73912 [16:02:28]1012 (4) - 20.10.2024 09:50 [16:02:28]1206 (1) - 0 [16:02:28]OFD Sender: Remove packet 73912 [16:02:28]ProducePacketName [16:02:28]name=ofd_packets/00073912 [16:02:28]NVStorageDeleteData [16:02:28]Write to MH i2c: 01 00 00 91 3C CD [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 07 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: 01 07 00 91 3C 00 00 00 00 00 AD 0C 8D [16:02:28]RasterBufferAndPrint [16:02:28]line [16:02:28]line [16:02:28]line [16:02:28]line [16:02:28]line [16:02:28]written 0, free lines is 3249 [16:02:28]MH_Cut [16:02:28]Write to MH i2c: D1 01 00 98 3C 01 A6 [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: D1 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: D1 01 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: D1 01 00 98 3C 00 A5 [16:02:28]Write to MH i2c: 01 00 00 99 3C D5 [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]OFD Sender: No OFD packet to send [16:02:29]*** Cut start [16:02:29]*** Partial cut [16:02:29]*** CUTSNS_PIN = 1 [16:02:29]*** CUTSNS_PIN = 0 [16:02:29]*** Brake cut motor [16:02:30]Read from MH i2c: 01 [16:02:30]MH_I2C_Read... [16:02:30]*** Stop cut motor [16:02:30]*** Cut end [16:02:30]Read from MH i2c: 01 07 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: 01 07 00 99 3C 00 00 00 00 00 FF 0F EA [16:02:30]process_action close_receipt done [16:02:30]requested_data is exist [16:02:30]produce_requested_data [16:02:30]requested_item fm.sn is exist - process it [16:02:30]wFMCommunicate request_size=4 [16:02:30]MH_SAM_APDU [16:02:30]CAPDU: 80 11 00 00 [16:02:30]Write to MH i2c: E2 08 00 9A 3C 80 11 00 00 00 00 00 00 50 [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:30]Read from MH i2c: E2 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: E2 17 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: E2 17 00 9A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9D [16:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:02:30]wFMCommunicate OK [16:02:30]requested_item fd.num is exist - process it [16:02:30]SAM_PROTO_GetFieldsCounters [16:02:30]wFMCommunicate request_size=4 [16:02:30]MH_SAM_APDU [16:02:30]CAPDU: 80 13 00 00 [16:02:30]Write to MH i2c: E2 08 00 9B 3C 80 13 00 00 00 00 00 00 53 [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:30]Read from MH i2c: E2 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: E2 62 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: E2 62 00 9B 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [16:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:30]wFMCommunicate OK [16:02:30]SAM_PROTO_GetFieldsCounters done [16:02:30]requested_item shift.num is exist - process it [16:02:30]requested_item shift.opened is exist - process it [16:02:30]req_shift_opened [16:02:30]FM_GetShiftState [16:02:30]SAM_PROTO_GetShiftState [16:02:30]wFMCommunicate request_size=4 [16:02:30]MH_SAM_APDU [16:02:30]CAPDU: 80 13 01 00 [16:02:30]Write to MH i2c: E2 08 00 9C 3C 80 13 01 00 00 00 00 00 55 [16:02:30]Write i2c OK [16:02:30]MH_I2C_Read... [16:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:30]Read from MH i2c: E2 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: E2 0E 00 [16:02:30]MH_I2C_Read... [16:02:30]Read from MH i2c: E2 0E 00 9C 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9A [16:02:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:02:30]wFMCommunicate OK [16:02:30]SAM_PROTO_GetShiftState done [16:02:30]FM_GetShiftState done [16:02:30]req_shift_opened done [16:02:30]requested_item shift.open_date is exist - process it [16:02:30]req_shift_open_date [16:02:30]req_shift_open_date done [16:02:30]produce_requested_data done [16:02:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73912,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:02:30]process_action_free close_receipt [16:02:30]json_value_free [16:02:30]json_value_free done [16:02:30]process_json_proto returns [16:02:30]Send response to host [16:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73912,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:02:30]free response buf [16:02:30]execute_script done [16:02:30]execute_script returns [16:02:30]free content buf [16:02:30]Sock 9.Close socket [16:02:30]Sock 9.Thread stoped [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:50]accept exits with 8 [16:03:50]New connection [16:03:50]New thread 3067432292 created [16:03:50]Thread 3067575652 joined [16:03:50]Waiting for new connection... [16:03:50] Sock 8.Parse request [16:03:50]Sock 8.Check first char [16:03:50]Sock 8.First char is OK [16:03:50]request: POST /json_proto HTTP/1.0 [16:03:50]Method: POST [16:03:50]URL: /json_proto [16:03:50]Method is POST - this is cgi request [16:03:50]url: /json_proto [16:03:50]query_string will be loaded in cgi processing [16:03:50]execute_cgi json_proto POST (null) [16:03:50]execute_cgi path=json_proto method=POST [16:03:50]POST find Content-Length [16:03:50]Host: 172.17.44.196:8080 [16:03:50]Content-Length: 751 [16:03:50]Content-Type: application/json [16:03:50] [16:03:50]POST finish read [16:03:50]Found Content-Length = 751 [16:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.42, "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: Mbank", "payments": [ { "type": 1, "sum" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:50]execute_script... [16:03: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 : (1)1963115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.42, "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: Mbank", "payments": [ { "type": 1, "sum" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:50]POST & json_proto [16:03:50]process_json_proto [16:03:50]json parsed OK: [16:03:50]protocol is kg_v1.0 [16:03:50]action value=close_receipt [16:03:50]process_action close_receipt [16:03:50]cmd_close_receipt [16:03:50]MH_GetDate [16:03:50]Write to MH i2c: F0 00 00 9D 3C C8 [16:03:50]Write i2c OK [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: F0 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: F0 09 00 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: F0 09 00 9D 3C 00 E8 29 15 67 E7 19 F8 65 BB [16:03:50]GetLastDocTimeStamp 1729440148 [16:03:50]current date 1729440232 [16:03:50]FM_GetShiftState [16:03:50]SAM_PROTO_GetShiftState [16:03:50]wFMCommunicate request_size=4 [16:03:50]MH_SAM_APDU [16:03:50]CAPDU: 80 13 01 00 [16:03:50]Write to MH i2c: E2 08 00 9E 3C 80 13 01 00 00 00 00 00 57 [16:03:50]Write i2c OK [16:03:50]MH_I2C_Read... [16:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:50]Read from MH i2c: E2 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: E2 0E 00 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: E2 0E 00 9E 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9C [16:03:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:03:50]wFMCommunicate OK [16:03:50]SAM_PROTO_GetShiftState done [16:03:50]FM_GetShiftState done [16:03:50]opened in 1729384303 [16:03:50]opened+sec_in_day 1729470703 [16:03:50]quantity*price = 120042 [16:03:50]sum+1 = 120043 [16:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.42 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.42 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 239 20.10.2024 16:03 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73913 ФПД: 254712456916372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160352&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73913&fm=254712456916372&tin=02508201610067®Number=0000000000161154&sum=120042 [16:03:51]StoreToDocumentArchive [16:03:51]shift 170 fd 73913 [16:03:51]save to /storage/0170/doc_00073913 [16:03:51]save last doc name /storage/0170/doc_00073913 to /storage/kkm_last_doc_name [16:03:51]save OK [16:03:51]Clear old archive folders... [16:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:03:51]tlvbuf is B6F72350 [16:03:51]SAM_PROTO_ClearQueue [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 09 00 00 [16:03:51]Write to MH i2c: E2 08 00 AB 3C 80 09 00 00 00 00 00 00 59 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 AB 3C 00 90 00 5B [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]SAM_PROTO_ClearQueue done [16:03:51]KKMCreateOFDPacket [16:03:51]OFDProtocolAddRootSTLVToBuf [16:03:51]FM_MakeSignedData [16:03:51]FM_MakeSignedData [16:03:51]SAM_PROTO_SignData [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 01 02 [16:03:51]Write to MH i2c: E2 08 00 AC 3C 80 0D 01 02 00 00 00 00 61 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 AC 3C 00 90 00 5C [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]wFMCommunicate request_size=253 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E8 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 20 01 00 35 04 06 00 E7 A8 DD 83 AD 94 [16:03:51]Write to MH i2c: E2 00 01 AD 3C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E8 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 20 01 00 35 04 06 00 E7 A8 DD 83 AD 94 00 00 44 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 AD 3C 00 90 00 5D [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 03 02 [16:03:51]Write to MH i2c: E2 08 00 AE 3C 80 0D 03 02 00 00 00 00 65 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 0B 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 0B 00 AE 3C 00 66 B5 45 94 57 1B C8 BA 90 00 4E [16:03:52]RAPDU: 66 B5 45 94 57 1B C8 BA 90 00 [16:03:52]wFMCommunicate OK [16:03:52]SAM_PROTO_SignData done [16:03:52]FM_MakeSignedData done [16:03:52]CreateOFDProtocolMessage [16:03:52]wFMCommunicate request_size=4 [16:03:52]MH_SAM_APDU [16:03:52]CAPDU: 80 11 00 00 [16:03:52]Write to MH i2c: E2 08 00 AF 3C 80 11 00 00 00 00 00 00 65 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 17 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 17 00 AF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B2 [16:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:03:52]wFMCommunicate OK [16:03:52]CreateOFDProtocolMessage done [16:03:52]OFDSenderStorePacket 73913 [16:03:52]StoreOFDPacket docnum=73913 [16:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 8C 62 00 01 35 6D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E8 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 20 01 00 35 04 06 00 E7 A8 DD 83 AD 94 66 B5 45 94 57 1B C8 BA [16:03:52]CheckFolder [16:03:52]dirname=/storage/ofd_packets [16:03:52]CheckFolder done [16:03:52]ProducePacketName [16:03:52]name=ofd_packets/00073913 [16:03:52]NVStorageSaveData ofd_packets/00073913 [16:03:52]File name is /storage/ofd_packets/00073913 [16:03:52]Write 294 bytes [16:03:52]NVStorageSaveData done [16:03:52]OFDSenderStorePacket done [16:03:52]KKMCreateOFDPacket done [16:03:52]NVStorageSaveData kkm_last_timestamp [16:03:52]File name is /storage/kkm_last_timestamp [16:03:52]Write 4 bytes [16:03:52]NVStorageSaveData done [16:03:52]ExternCall_PrintAddStr [16:03:52]wPrintStart [16:03:52]Write to MH i2c: 01 00 00 B0 3C EC [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 B0 3C 00 00 00 00 00 FF 0F 01 [16:03:52]RasterBufferAndPrint [16:03:52]line Счет N : (1)1963115 [16:03:52]line ИНН: 02508201610067 [16:03:52]line Контрольно-Кассовый Чек [16:03:52]line ПРОДАЖА [16:03:52]line ТРК (МРК, ГНК) : 32 [16:03:52]line Товар: 2710124130 [16:03:52]line SU-92 [16:03:52]line 17.550 * 68.40 [16:03:52]line = 1200.42 [16:03:52]line НДС 12% НСП 1% [16:03:52]line > о реализуемом товаре [16:03:52]line ИТОГО: 1200.42 [16:03:52]line НСП 1% : 10.62 [16:03:52]line НДС 12% : 127.48 [16:03:52]line Наличными: 0.00 [16:03:52]line Безнал.: 1200.42 [16:03:52]line Место: АЗС № 133 "Партнер Нефть" [16:03:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:03:52]line СНО: Общий режим [16:03:52]line Чек 239 20.10.2024 16:03 [16:03:52]line Смена: 170 ФФД: 1.0 [16:03:52]line ЗНМ: 0300000020 [16:03:52]line РНМ: 0000000000161154 [16:03:52]line Версия ККМ: v1.0 [16:03:52]line Платежная система: Mbank [16:03:52]line ФМ: 0000000000963323 [16:03:52]line ФД: 73913 [16:03:52]line ФПД: 254712456916372 [16:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160352&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73913&fm=254712456916372&tin=02508201610067®Number=0000000000161154&sum=120042 [16:03:52]OFD Sender: Processing packet 73913 [packets to send 15, broken 14] [16:03:52]ProducePacketName [16:03:52]name=ofd_packets/00073913 [16:03:52]OFD Sender: To server: pG, [16:03:52]CommunicateWithHost lk.salyk.kg:30040 [16:03:52]ConnectInit lk.salyk.kg [16:03:52]written 0, free lines is 4095 [16:03:52]Connected sock=9 [16:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 8C 62 00 01 35 6D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E8 29 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 20 01 00 35 04 06 00 E7 A8 DD 83 AD 94 66 B5 45 94 57 1B C8 BA [16:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1F A5 47 00 D1 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 39 36 33 33 32 33 10 04 04 00 B9 20 01 00 F4 03 04 00 CD D2 14 67 B6 04 01 00 00 0A 05 B8 FA EE FB A0 6E [16:03:52]CommunicateWithHost err = 0 [16:03:52]CheckOFDResponse [16:03:52]1017 (14) - 77093643461234 [16:03:52]1041 (16) - 0000000000963323 [16:03:52]1040 (4) - 73913 [16:03:52]1012 (4) - 20.10.2024 09:52 [16:03:52]1206 (1) - 0 [16:03:52]OFD Sender: Remove packet 73913 [16:03:52]ProducePacketName [16:03:52]name=ofd_packets/00073913 [16:03:52]NVStorageDeleteData [16:03:52]Write to MH i2c: 01 00 00 D8 3C 14 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 D8 3C 00 00 00 00 00 E5 0C 0C [16:03:52]RasterBufferAndPrint [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]written 0, free lines is 3306 [16:03:52]MH_Cut [16:03:52]Write to MH i2c: D1 01 00 DF 3C 01 ED [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 01 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 01 00 DF 3C 00 EC [16:03:52]Write to MH i2c: 01 00 00 E0 3C 1C [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:53]OFD Sender: No OFD packet to send [16:03:53]*** Cut start [16:03:53]*** Partial cut [16:03:53]*** CUTSNS_PIN = 1 [16:03:53]*** CUTSNS_PIN = 0 [16:03:53]*** Brake cut motor [16:03:54]Read from MH i2c: 01 [16:03:54]MH_I2C_Read... [16:03:54]*** Stop cut motor [16:03:54]*** Cut end [16:03:54]Read from MH i2c: 01 07 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 E0 3C 00 00 00 00 00 FF 0F 31 [16:03:54]process_action close_receipt done [16:03:54]requested_data is exist [16:03:54]produce_requested_data [16:03:54]requested_item fm.sn is exist - process it [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 11 00 00 [16:03:54]Write to MH i2c: E2 08 00 E1 3C 80 11 00 00 00 00 00 00 97 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 17 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 17 00 E1 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E4 [16:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:03:54]wFMCommunicate OK [16:03:54]requested_item fd.num is exist - process it [16:03:54]SAM_PROTO_GetFieldsCounters [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 13 00 00 [16:03:54]Write to MH i2c: E2 08 00 E2 3C 80 13 00 00 00 00 00 00 9A [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 62 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 62 00 E2 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:54]wFMCommunicate OK [16:03:54]SAM_PROTO_GetFieldsCounters done [16:03:54]requested_item shift.num is exist - process it [16:03:54]requested_item shift.opened is exist - process it [16:03:54]req_shift_opened [16:03:54]FM_GetShiftState [16:03:54]SAM_PROTO_GetShiftState [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 13 01 00 [16:03:54]Write to MH i2c: E2 08 00 E3 3C 80 13 01 00 00 00 00 00 9C [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 0E 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 0E 00 E3 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E1 [16:03:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:03:54]wFMCommunicate OK [16:03:54]SAM_PROTO_GetShiftState done [16:03:54]FM_GetShiftState done [16:03:54]req_shift_opened done [16:03:54]requested_item shift.open_date is exist - process it [16:03:54]req_shift_open_date [16:03:54]req_shift_open_date done [16:03:54]produce_requested_data done [16:03:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73913,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:03:54]process_action_free close_receipt [16:03:54]json_value_free [16:03:54]json_value_free done [16:03:54]process_json_proto returns [16:03:54]Send response to host [16:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73913,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:03:54]free response buf [16:03:54]execute_script done [16:03:54]execute_script returns [16:03:54]free content buf [16:03:54]Sock 8.Close socket [16:03:54]Sock 8.Thread stoped [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:43]accept exits with 10 [16:05:43]New connection [16:05:43]New thread 3067575652 created [16:05:43]Thread 3067432292 joined [16:05:43]Waiting for new connection... [16:05:43] Sock 10.Parse request [16:05:43]Sock 10.Check first char [16:05:43]Sock 10.First char is OK [16:05:43]request: POST /json_proto HTTP/1.0 [16:05:43]Method: POST [16:05:43]URL: /json_proto [16:05:43]Method is POST - this is cgi request [16:05:43]url: /json_proto [16:05:43]query_string will be loaded in cgi processing [16:05:43]execute_cgi json_proto POST (null) [16:05:43]execute_cgi path=json_proto method=POST [16:05:43]POST find Content-Length [16:05:43]Host: 172.17.44.196:8080 [16:05:43]Content-Length: 678 [16:05:43]Content-Type: application/json [16:05:43] [16:05:43]POST finish read [16:05:43]Found Content-Length = 678 [16:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:43]execute_script... [16:05: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 : (1)1963117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:43]POST & json_proto [16:05:43]process_json_proto [16:05:43]json parsed OK: [16:05:43]protocol is kg_v1.0 [16:05:43]action value=close_receipt [16:05:43]process_action close_receipt [16:05:43]cmd_close_receipt [16:05:43]MH_GetDate [16:05:43]Write to MH i2c: F0 00 00 E4 3C 0F [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: F0 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: F0 09 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: F0 09 00 E4 3C 00 5A 2A 15 67 E7 19 F8 65 75 [16:05:43]GetLastDocTimeStamp 1729440232 [16:05:43]current date 1729440346 [16:05:43]FM_GetShiftState [16:05:43]SAM_PROTO_GetShiftState [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 13 01 00 [16:05:43]Write to MH i2c: E2 08 00 E5 3C 80 13 01 00 00 00 00 00 9E [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 E5 3C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E3 [16:05:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_GetShiftState done [16:05:43]FM_GetShiftState done [16:05:43]opened in 1729384303 [16:05:43]opened+sec_in_day 1729470703 [16:05:43]quantity*price = 30051 [16:05:43]sum+1 = 30052 [16:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 240 20.10.2024 16:05 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73914 ФПД: 90607528713886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160546&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73914&fm=90607528713886&tin=02508201610067®Number=0000000000161154&sum=30000 [16:05:44]StoreToDocumentArchive [16:05:44]shift 170 fd 73914 [16:05:44]save to /storage/0170/doc_00073914 [16:05:44]save last doc name /storage/0170/doc_00073914 to /storage/kkm_last_doc_name [16:05:44]save OK [16:05:44]Clear old archive folders... [16:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:44]tlvbuf is B6E40010 [16:05:44]SAM_PROTO_ClearQueue [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 09 00 00 [16:05:44]Write to MH i2c: E2 08 00 F2 3C 80 09 00 00 00 00 00 00 A0 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 F2 3C 00 90 00 A2 [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]SAM_PROTO_ClearQueue done [16:05:44]KKMCreateOFDPacket [16:05:44]OFDProtocolAddRootSTLVToBuf [16:05:44]FM_MakeSignedData [16:05:44]FM_MakeSignedData [16:05:44]SAM_PROTO_SignData [16:05:44]wFMCommunicate request_size=4 [16:05:44]MH_SAM_APDU [16:05:44]CAPDU: 80 0D 01 02 [16:05:44]Write to MH i2c: E2 08 00 F3 3C 80 0D 01 02 00 00 00 00 A8 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:44]Read from MH i2c: E2 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: E2 03 00 F3 3C 00 90 00 A3 [16:05:44]RAPDU: 90 00 [16:05:44]wFMCommunicate OK [16:05:44]wFMCommunicate request_size=255 [16:05:44]MH_SAM_APDU [16:05:44]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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 F0 00 00 00 F4 03 04 00 5A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 20 01 00 35 04 06 00 52 [16:05:44]Write to MH i2c: E2 02 01 F4 3C 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 F0 00 00 00 F4 03 04 00 5A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 20 01 00 35 04 06 00 52 00 00 19 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 03 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 03 00 F4 3C 00 90 00 A4 [16:05:45]RAPDU: 90 00 [16:05:45]wFMCommunicate OK [16:05:45]wFMCommunicate request_size=10 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 0D 02 02 05 68 35 90 1E 9E [16:05:45]Write to MH i2c: E2 0D 00 F5 3C 80 0D 02 02 05 00 68 35 90 1E 9E 00 00 9E [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 03 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 03 00 F5 3C 00 90 00 A5 [16:05:45]RAPDU: 90 00 [16:05:45]wFMCommunicate OK [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 0D 03 02 [16:05:45]Write to MH i2c: E2 08 00 F6 3C 80 0D 03 02 00 00 00 00 AD [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0B 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0B 00 F6 3C 00 23 2B D4 DA 20 0F 14 1C 90 00 09 [16:05:45]RAPDU: 23 2B D4 DA 20 0F 14 1C 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_SignData done [16:05:45]FM_MakeSignedData done [16:05:45]CreateOFDProtocolMessage [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 11 00 00 [16:05:45]Write to MH i2c: E2 08 00 F7 3C 80 11 00 00 00 00 00 00 AD [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 F7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FA [16:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:05:45]wFMCommunicate OK [16:05:45]CreateOFDProtocolMessage done [16:05:45]OFDSenderStorePacket 73914 [16:05:45]StoreOFDPacket docnum=73914 [16:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EE 31 07 01 2C 6A 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 F0 00 00 00 F4 03 04 00 5A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 20 01 00 35 04 06 00 52 68 35 90 1E 9E 23 2B D4 DA 20 0F 14 1C [16:05:45]CheckFolder [16:05:45]dirname=/storage/ofd_packets [16:05:45]CheckFolder done [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00073914 [16:05:45]NVStorageSaveData ofd_packets/00073914 [16:05:45]File name is /storage/ofd_packets/00073914 [16:05:45]Write 301 bytes [16:05:45]NVStorageSaveData done [16:05:45]OFDSenderStorePacket done [16:05:45]KKMCreateOFDPacket done [16:05:45]NVStorageSaveData kkm_last_timestamp [16:05:45]File name is /storage/kkm_last_timestamp [16:05:45]Write 4 bytes [16:05:45]NVStorageSaveData done [16:05:45]ExternCall_PrintAddStr [16:05:45]wPrintStart [16:05:45]Write to MH i2c: 01 00 00 F8 3C 34 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 F8 3C 00 00 00 00 00 FF 0F 49 [16:05:45]RasterBufferAndPrint [16:05:45]line Счет N : (1)1963117 [16:05:45]line ИНН: 02508201610067 [16:05:45]line Контрольно-Кассовый Чек [16:05:45]line ПРОДАЖА [16:05:45]line ТРК (МРК, ГНК) : 54 [16:05:45]line Товар: 2710124500 [16:05:45]line Аи-95-К-5 [16:05:45]line 4.050 * 74.20 [16:05:45]line = 300.51 [16:05:45]line НДС 12% НСП 1% [16:05:45]line > о реализуемом товаре [16:05:45]line ОКРУГЛЕНИЕ: -0.51 [16:05:45]line ИТОГО: 300.00 [16:05:45]line Внесено: 300.00 [16:05:45]line СДАЧА: 0.00 [16:05:45]line НСП 1% : 2.66 [16:05:45]line НДС 12% : 31.91 [16:05:45]line Наличными: 300.00 [16:05:45]line Безнал.: 0.00 [16:05:45]line Место: АЗС № 133 "Партнер Нефть" [16:05:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:05:45]line СНО: Общий режим [16:05:45]line Чек 240 20.10.2024 16:05 [16:05:45]line Смена: 170 ФФД: 1.0 [16:05:45]line ЗНМ: 0300000020 [16:05:45]line РНМ: 0000000000161154 [16:05:45]line Версия ККМ: v1.0 [16:05:45]line ФМ: 0000000000963323 [16:05:45]line ФД: 73914 [16:05:45]line ФПД: 90607528713886 [16:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160546&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73914&fm=90607528713886&tin=02508201610067®Number=0000000000161154&sum=30000 [16:05:45]OFD Sender: Processing packet 73914 [packets to send 15, broken 14] [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00073914 [16:05:45]OFD Sender: To server: pG, [16:05:45]CommunicateWithHost lk.salyk.kg:30040 [16:05:45]ConnectInit lk.salyk.kg [16:05:45]written 0, free lines is 4095 [16:05:45]Connected sock=9 [16:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EE 31 07 01 2C 6A 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 F0 00 00 00 F4 03 04 00 5A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 20 01 00 35 04 06 00 52 68 35 90 1E 9E 23 2B D4 DA 20 0F 14 1C [16:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F3 BC 47 00 F7 68 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 39 36 33 33 32 33 10 04 04 00 BA 20 01 00 F4 03 04 00 3E D3 14 67 B6 04 01 00 00 3A F8 46 E2 79 1D A4 97 [16:05:45]CommunicateWithHost err = 0 [16:05:45]CheckOFDResponse [16:05:45]1017 (14) - 77093643461234 [16:05:45]1041 (16) - 0000000000963323 [16:05:45]1040 (4) - 73914 [16:05:45]1012 (4) - 20.10.2024 09:54 [16:05:45]1206 (1) - 0 [16:05:45]OFD Sender: Remove packet 73914 [16:05:45]ProducePacketName [16:05:45]name=ofd_packets/00073914 [16:05:45]NVStorageDeleteData [16:05:46]Write to MH i2c: 01 00 00 22 3D 5F [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: 01 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: 01 07 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: 01 07 00 22 3D 00 00 00 00 00 B7 0C 29 [16:05:46]RasterBufferAndPrint [16:05:46]line [16:05:46]line [16:05:46]line [16:05:46]line [16:05:46]line [16:05:46]written 0, free lines is 3261 [16:05:46]MH_Cut [16:05:46]Write to MH i2c: D1 01 00 29 3D 01 38 [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: D1 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: D1 01 00 [16:05:46]MH_I2C_Read... [16:05:46]Read from MH i2c: D1 01 00 29 3D 00 37 [16:05:46]Write to MH i2c: 01 00 00 2A 3D 67 [16:05:46]Write i2c OK [16:05:46]MH_I2C_Read... [16:05:46]OFD Sender: No OFD packet to send [16:05:46]*** Cut start [16:05:46]*** Partial cut [16:05:46]*** CUTSNS_PIN = 1 [16:05:47]*** CUTSNS_PIN = 0 [16:05:47]*** Brake cut motor [16:05:47]Read from MH i2c: 01 [16:05:47]MH_I2C_Read... [16:05:47]*** Stop cut motor [16:05:47]*** Cut end [16:05:47]Read from MH i2c: 01 07 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: 01 07 00 2A 3D 00 00 00 00 00 FF 0F 7C [16:05:47]process_action close_receipt done [16:05:47]requested_data is exist [16:05:47]produce_requested_data [16:05:47]requested_item fm.sn is exist - process it [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 11 00 00 [16:05:47]Write to MH i2c: E2 08 00 2B 3D 80 11 00 00 00 00 00 00 E2 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 17 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 17 00 2B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [16:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:05:47]wFMCommunicate OK [16:05:47]requested_item fd.num is exist - process it [16:05:47]SAM_PROTO_GetFieldsCounters [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 13 00 00 [16:05:47]Write to MH i2c: E2 08 00 2C 3D 80 13 00 00 00 00 00 00 E5 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 62 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 62 00 2C 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [16:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:47]wFMCommunicate OK [16:05:47]SAM_PROTO_GetFieldsCounters done [16:05:47]requested_item shift.num is exist - process it [16:05:47]requested_item shift.opened is exist - process it [16:05:47]req_shift_opened [16:05:47]FM_GetShiftState [16:05:47]SAM_PROTO_GetShiftState [16:05:47]wFMCommunicate request_size=4 [16:05:47]MH_SAM_APDU [16:05:47]CAPDU: 80 13 01 00 [16:05:47]Write to MH i2c: E2 08 00 2D 3D 80 13 01 00 00 00 00 00 E7 [16:05:47]Write i2c OK [16:05:47]MH_I2C_Read... [16:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:47]Read from MH i2c: E2 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 0E 00 [16:05:47]MH_I2C_Read... [16:05:47]Read from MH i2c: E2 0E 00 2D 3D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2C [16:05:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:05:47]wFMCommunicate OK [16:05:47]SAM_PROTO_GetShiftState done [16:05:47]FM_GetShiftState done [16:05:47]req_shift_opened done [16:05:47]requested_item shift.open_date is exist - process it [16:05:47]req_shift_open_date [16:05:47]req_shift_open_date done [16:05:47]produce_requested_data done [16:05:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73914,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:05:47]process_action_free close_receipt [16:05:47]json_value_free [16:05:47]json_value_free done [16:05:47]process_json_proto returns [16:05:47]Send response to host [16:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73914,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:05:47]free response buf [16:05:47]execute_script done [16:05:47]execute_script returns [16:05:47]free content buf [16:05:47]Sock 10.Close socket [16:05:47]Sock 10.Thread stoped [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 3067432292 created [16:06:00]Thread 3067575652 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.44.196:8080 [16:06:00]Content-Length: 680 [16:06:00]Content-Type: application/json [16:06:00] [16:06:00]POST finish read [16:06:00]Found Content-Length = 680 [16:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [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 : (1)1963116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [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 2E 3D 5A [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 2E 3D 00 6A 2A 15 67 E7 19 F8 65 D0 [16:06:00]GetLastDocTimeStamp 1729440346 [16:06:00]current date 1729440362 [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 2F 3D 80 13 01 00 00 00 00 00 E9 [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 2F 3D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2E [16:06:00]RAPDU: 09 00 01 6F 4F 14 67 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 1729384303 [16:06:00]opened+sec_in_day 1729470703 [16:06:00]quantity*price = 150037 [16:06:00]sum+1 = 150039 [16:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 241 20.10.2024 16:06 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73915 ФПД: 227164270335700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160602&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73915&fm=227164270335700&tin=02508201610067®Number=0000000000161154&sum=150000 [16:06:01]StoreToDocumentArchive [16:06:01]shift 170 fd 73915 [16:06:01]save to /storage/0170/doc_00073915 [16:06:01]save last doc name /storage/0170/doc_00073915 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=248 [16:06:01]tlvbuf is 0033C690 [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 3C 3D 80 09 00 00 00 00 00 00 EB [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 3C 3D 00 90 00 ED [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 3D 3D 80 0D 01 02 00 00 00 00 F3 [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 3D 3D 00 90 00 EE [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 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F1 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 20 01 00 35 04 06 00 CE 9A CD A3 [16:06:01]Write to MH i2c: E2 02 01 3E 3D 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F1 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 20 01 00 35 04 06 00 CE 9A CD A3 00 00 41 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 0D 02 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 3E 3D 00 90 00 EF [16:06:01]RAPDU: 90 00 [16:06:01]wFMCommunicate OK [16:06:01]wFMCommunicate request_size=7 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 0D 02 02 02 96 D4 [16:06:01]Write to MH i2c: E2 0A 00 3F 3D 80 0D 02 02 02 00 96 D4 00 00 64 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 0D 02 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 3F 3D 00 90 00 F0 [16:06:01]RAPDU: 90 00 [16:06:01]wFMCommunicate OK [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 0D 03 02 [16:06:01]Write to MH i2c: E2 08 00 40 3D 80 0D 03 02 00 00 00 00 F8 [16:06:01]Write i2c OK [16:06:01]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 40 3D 00 EC 34 DD F5 94 02 5C 25 90 00 02 [16:06:02]RAPDU: EC 34 DD F5 94 02 5C 25 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 41 3D 80 11 00 00 00 00 00 00 F8 [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 41 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 45 [16:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:06:02]wFMCommunicate OK [16:06:02]CreateOFDProtocolMessage done [16:06:02]OFDSenderStorePacket 73915 [16:06:02]StoreOFDPacket docnum=73915 [16:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 DD 32 04 01 B7 05 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F1 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 20 01 00 35 04 06 00 CE 9A CD A3 96 D4 EC 34 DD F5 94 02 5C 25 [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/00073915 [16:06:02]NVStorageSaveData ofd_packets/00073915 [16:06:02]File name is /storage/ofd_packets/00073915 [16:06:02]Write 298 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]OFD Sender: Processing packet 73915 [packets to send 15, broken 14] [16:06:02]ProducePacketName [16:06:02]name=ofd_packets/00073915 [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]ExternCall_PrintAddStr [16:06:02]wPrintStart [16:06:02]Write to MH i2c: 01 00 00 42 3D 7F [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 42 3D 00 00 00 00 00 FF 0F 94 [16:06:02]RasterBufferAndPrint [16:06:02]line Счет N : (1)1963116 [16:06:02]line ИНН: 02508201610067 [16:06:02]line Контрольно-Кассовый Чек [16:06:02]line ПРОДАЖА [16:06:02]line ТРК (МРК, ГНК) : 11 [16:06:02]line Товар: 2710194210 [16:06:02]line ДТ-К-5 [16:06:02]line 19.690 * 76.20 [16:06:02]line = 1500.38 [16:06:02]line НДС 12% НСП 1% [16:06:02]line > о реализуемом товаре [16:06:02]line ОКРУГЛЕНИЕ: -0.38 [16:06:02]line ИТОГО: 1500.00 [16:06:02]line Внесено: 1500.00 [16:06:02]line СДАЧА: 0.00 [16:06:02]line НСП 1% : 13.28 [16:06:02]line НДС 12% : 159.33 [16:06:02]line Наличными: 1500.00 [16:06:02]line Безнал.: 0.00 [16:06:02]line Место: АЗС № 133 "Партнер Нефть" [16:06:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:06:02]line СНО: Общий режим [16:06:02]line Чек 241 20.10.2024 16:06 [16:06:02]line Смена: 170 ФФД: 1.0 [16:06:02]line ЗНМ: 0300000020 [16:06:02]line РНМ: 0000000000161154 [16:06:02]line Версия ККМ: v1.0 [16:06:02]line ФМ: 0000000000963323 [16:06:02]line ФД: 73915 [16:06:02]line ФПД: 227164270335700 [16:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160602&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73915&fm=227164270335700&tin=02508201610067®Number=0000000000161154&sum=150000 [16:06:02]Connected sock=11 [16:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 DD 32 04 01 B7 05 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 3D 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 F1 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 20 01 00 35 04 06 00 CE 9A CD A3 96 D4 EC 34 DD F5 94 02 5C 25 [16:06:02]written 0, free lines is 4095 [16:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8F 28 47 00 02 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 39 36 33 33 32 33 10 04 04 00 BB 20 01 00 F4 03 04 00 4F D3 14 67 B6 04 01 00 00 82 9C 36 2A D8 DC 59 33 [16:06:02]CommunicateWithHost err = 0 [16:06:02]CheckOFDResponse [16:06:02]1017 (14) - 77093643461234 [16:06:02]1041 (16) - 0000000000963323 [16:06:02]1040 (4) - 73915 [16:06:02]1012 (4) - 20.10.2024 09:54 [16:06:02]1206 (1) - 0 [16:06:02]OFD Sender: Remove packet 73915 [16:06:02]ProducePacketName [16:06:02]name=ofd_packets/00073915 [16:06:02]NVStorageDeleteData [16:06:02]Write to MH i2c: 01 00 00 6C 3D A9 [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 6C 3D 00 00 00 00 00 B0 0C 6C [16:06:02]RasterBufferAndPrint [16:06:02]line [16:06:02]line [16:06:02]line [16:06:02]line [16:06:02]line [16:06:02]written 0, free lines is 3253 [16:06:02]MH_Cut [16:06:02]Write to MH i2c: D1 01 00 73 3D 01 82 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: D1 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: D1 01 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: D1 01 00 73 3D 00 81 [16:06:02]Write to MH i2c: 01 00 00 74 3D B1 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:03]OFD Sender: No OFD packet to send [16:06:03]*** Cut start [16:06:03]*** Partial cut [16:06:03]*** CUTSNS_PIN = 1 [16:06:03]*** CUTSNS_PIN = 0 [16:06:04]*** Brake cut motor [16:06:04]Read from MH i2c: 01 [16:06:04]MH_I2C_Read... [16:06:04]*** Stop cut motor [16:06:04]*** Cut end [16:06:04]Read from MH i2c: 01 07 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: 01 07 00 74 3D 00 00 00 00 00 FF 0F C6 [16:06:04]process_action close_receipt done [16:06:04]requested_data is exist [16:06:04]produce_requested_data [16:06:04]requested_item fm.sn is exist - process it [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 11 00 00 [16:06:04]Write to MH i2c: E2 08 00 75 3D 80 11 00 00 00 00 00 00 2C [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 17 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 17 00 75 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [16:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:06:04]wFMCommunicate OK [16:06:04]requested_item fd.num is exist - process it [16:06:04]SAM_PROTO_GetFieldsCounters [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 13 00 00 [16:06:04]Write to MH i2c: E2 08 00 76 3D 80 13 00 00 00 00 00 00 2F [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 62 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 62 00 76 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [16:06:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:04]wFMCommunicate OK [16:06:04]SAM_PROTO_GetFieldsCounters done [16:06:04]requested_item shift.num is exist - process it [16:06:04]requested_item shift.opened is exist - process it [16:06:04]req_shift_opened [16:06:04]FM_GetShiftState [16:06:04]SAM_PROTO_GetShiftState [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 13 01 00 [16:06:04]Write to MH i2c: E2 08 00 77 3D 80 13 01 00 00 00 00 00 31 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 0E 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 0E 00 77 3D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 76 [16:06:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:06:04]wFMCommunicate OK [16:06:04]SAM_PROTO_GetShiftState done [16:06:04]FM_GetShiftState done [16:06:04]req_shift_opened done [16:06:04]requested_item shift.open_date is exist - process it [16:06:04]req_shift_open_date [16:06:04]req_shift_open_date done [16:06:04]produce_requested_data done [16:06:04]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73915,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:06:04]process_action_free close_receipt [16:06:04]json_value_free [16:06:04]json_value_free done [16:06:04]process_json_proto returns [16:06:04]Send response to host [16:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73915,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:06:04]free response buf [16:06:04]execute_script done [16:06:04]execute_script returns [16:06:04]free content buf [16:06:04]Sock 8.Close socket [16:06:04]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:17]accept exits with 9 [16:06:17]New connection [16:06:17]New thread 3067575652 created [16:06:17]Thread 3067432292 joined [16:06:17]Waiting for new connection... [16:06:17] Sock 9.Parse request [16:06:17]Sock 9.Check first char [16:06:17]Sock 9.First char is OK [16:06:17]request: POST /json_proto HTTP/1.0 [16:06:17]Method: POST [16:06:17]URL: /json_proto [16:06:17]Method is POST - this is cgi request [16:06:17]url: /json_proto [16:06:17]query_string will be loaded in cgi processing [16:06:17]execute_cgi json_proto POST (null) [16:06:17]execute_cgi path=json_proto method=POST [16:06:17]POST find Content-Length [16:06:17]Host: 172.17.44.196:8080 [16:06:17]Content-Length: 678 [16:06:17]Content-Type: application/json [16:06:17] [16:06:17]POST finish read [16:06:17]Found Content-Length = 678 [16:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963118", "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" : 7.480, "sum" : 500.41, "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" ] } } [16:06:17]execute_script... [16:06: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 : (1)1963118", "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" : 7.480, "sum" : 500.41, "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" ] } } [16:06:17]POST & json_proto [16:06:17]process_json_proto [16:06:17]json parsed OK: [16:06:17]protocol is kg_v1.0 [16:06:17]action value=close_receipt [16:06:17]process_action close_receipt [16:06:17]cmd_close_receipt [16:06:17]MH_GetDate [16:06:17]Write to MH i2c: F0 00 00 78 3D A4 [16:06:17]Write i2c OK [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: F0 [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: F0 09 00 [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: F0 09 00 78 3D 00 7C 2A 15 67 E7 19 F8 65 2C [16:06:17]GetLastDocTimeStamp 1729440362 [16:06:17]current date 1729440380 [16:06:17]FM_GetShiftState [16:06:17]SAM_PROTO_GetShiftState [16:06:17]wFMCommunicate request_size=4 [16:06:17]MH_SAM_APDU [16:06:17]CAPDU: 80 13 01 00 [16:06:17]Write to MH i2c: E2 08 00 79 3D 80 13 01 00 00 00 00 00 33 [16:06:17]Write i2c OK [16:06:17]MH_I2C_Read... [16:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:17]Read from MH i2c: E2 [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: E2 0E 00 [16:06:17]MH_I2C_Read... [16:06:17]Read from MH i2c: E2 0E 00 79 3D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 78 [16:06:17]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:06:17]wFMCommunicate OK [16:06:17]SAM_PROTO_GetShiftState done [16:06:17]FM_GetShiftState done [16:06:17]opened in 1729384303 [16:06:17]opened+sec_in_day 1729470703 [16:06:17]quantity*price = 50041 [16:06:17]sum+1 = 50042 [16:06:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 242 20.10.2024 16:06 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73916 ФПД: 44241010605557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160620&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73916&fm=44241010605557&tin=02508201610067®Number=0000000000161154&sum=50000 [16:06:19]StoreToDocumentArchive [16:06:19]shift 170 fd 73916 [16:06:19]save to /storage/0170/doc_00073916 [16:06:19]save last doc name /storage/0170/doc_00073916 to /storage/kkm_last_doc_name [16:06:19]save OK [16:06:19]Clear old archive folders... [16:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:19]tlvbuf is 00313400 [16:06:19]SAM_PROTO_ClearQueue [16:06:19]wFMCommunicate request_size=4 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 09 00 00 [16:06:19]Write to MH i2c: E2 08 00 86 3D 80 09 00 00 00 00 00 00 35 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 86 3D 00 90 00 37 [16:06:19]RAPDU: 90 00 [16:06:19]wFMCommunicate OK [16:06:19]SAM_PROTO_ClearQueue done [16:06:19]KKMCreateOFDPacket [16:06:19]OFDProtocolAddRootSTLVToBuf [16:06:19]FM_MakeSignedData [16:06:19]FM_MakeSignedData [16:06:19]SAM_PROTO_SignData [16:06:19]wFMCommunicate request_size=4 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 0D 01 02 [16:06:19]Write to MH i2c: E2 08 00 87 3D 80 0D 01 02 00 00 00 00 3D [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 87 3D 00 90 00 38 [16:06:19]RAPDU: 90 00 [16:06:19]wFMCommunicate OK [16:06:19]wFMCommunicate request_size=255 [16:06:19]MH_SAM_APDU [16:06:19]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F2 00 00 00 F4 03 04 00 7C 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 20 01 00 35 04 06 00 28 [16:06:19]Write to MH i2c: E2 02 01 88 3D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F2 00 00 00 F4 03 04 00 7C 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 20 01 00 35 04 06 00 28 00 00 82 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 88 3D 00 90 00 39 [16:06:19]RAPDU: 90 00 [16:06:19]wFMCommunicate OK [16:06:19]wFMCommunicate request_size=10 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 0D 02 02 05 3C A9 B8 BD F5 [16:06:19]Write to MH i2c: E2 0D 00 89 3D 80 0D 02 02 05 00 3C A9 B8 BD F5 00 00 99 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 03 00 89 3D 00 90 00 3A [16:06:19]RAPDU: 90 00 [16:06:19]wFMCommunicate OK [16:06:19]wFMCommunicate request_size=4 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 0D 03 02 [16:06:19]Write to MH i2c: E2 08 00 8A 3D 80 0D 03 02 00 00 00 00 42 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 0B 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 0B 00 8A 3D 00 2C FA 02 91 5C 56 D9 0E 90 00 95 [16:06:19]RAPDU: 2C FA 02 91 5C 56 D9 0E 90 00 [16:06:19]wFMCommunicate OK [16:06:19]SAM_PROTO_SignData done [16:06:19]FM_MakeSignedData done [16:06:19]CreateOFDProtocolMessage [16:06:19]wFMCommunicate request_size=4 [16:06:19]MH_SAM_APDU [16:06:19]CAPDU: 80 11 00 00 [16:06:19]Write to MH i2c: E2 08 00 8B 3D 80 11 00 00 00 00 00 00 42 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:19]Read from MH i2c: E2 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 17 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: E2 17 00 8B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [16:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:06:19]wFMCommunicate OK [16:06:19]CreateOFDProtocolMessage done [16:06:19]OFDSenderStorePacket 73916 [16:06:19]StoreOFDPacket docnum=73916 [16:06:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F2 BD 07 01 65 CE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F2 00 00 00 F4 03 04 00 7C 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 20 01 00 35 04 06 00 28 3C A9 B8 BD F5 2C FA 02 91 5C 56 D9 0E [16:06:19]CheckFolder [16:06:19]dirname=/storage/ofd_packets [16:06:19]CheckFolder done [16:06:19]ProducePacketName [16:06:19]name=ofd_packets/00073916 [16:06:19]NVStorageSaveData ofd_packets/00073916 [16:06:19]File name is /storage/ofd_packets/00073916 [16:06:19]Write 301 bytes [16:06:19]NVStorageSaveData done [16:06:19]OFDSenderStorePacket done [16:06:19]KKMCreateOFDPacket done [16:06:19]NVStorageSaveData kkm_last_timestamp [16:06:19]File name is /storage/kkm_last_timestamp [16:06:19]Write 4 bytes [16:06:19]NVStorageSaveData done [16:06:19]ExternCall_PrintAddStr [16:06:19]wPrintStart [16:06:19]Write to MH i2c: 01 00 00 8C 3D C9 [16:06:19]Write i2c OK [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: 01 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: 01 07 00 [16:06:19]MH_I2C_Read... [16:06:19]Read from MH i2c: 01 07 00 8C 3D 00 00 00 00 00 FF 0F DE [16:06:19]RasterBufferAndPrint [16:06:19]line Счет N : (1)1963118 [16:06:19]line ИНН: 02508201610067 [16:06:19]line Контрольно-Кассовый Чек [16:06:19]line ПРОДАЖА [16:06:19]line ТРК (МРК, ГНК) : 43 [16:06:19]line Товар: 2710124130 [16:06:19]line Аи-92-К-5 [16:06:19]line 7.480 * 66.90 [16:06:19]line = 500.41 [16:06:19]line НДС 12% НСП 1% [16:06:19]line > о реализуемом товаре [16:06:19]line ОКРУГЛЕНИЕ: -0.41 [16:06:19]line ИТОГО: 500.00 [16:06:19]line Внесено: 500.00 [16:06:19]line СДАЧА: 0.00 [16:06:19]line НСП 1% : 4.43 [16:06:19]line НДС 12% : 53.14 [16:06:19]line Наличными: 500.00 [16:06:19]line Безнал.: 0.00 [16:06:19]line Место: АЗС № 133 "Партнер Нефть" [16:06:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:06:19]line СНО: Общий режим [16:06:19]line Чек 242 20.10.2024 16:06 [16:06:19]line Смена: 170 ФФД: 1.0 [16:06:19]line ЗНМ: 0300000020 [16:06:19]line РНМ: 0000000000161154 [16:06:19]line Версия ККМ: v1.0 [16:06:19]line ФМ: 0000000000963323 [16:06:19]line ФД: 73916 [16:06:19]line ФПД: 44241010605557 [16:06:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160620&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73916&fm=44241010605557&tin=02508201610067®Number=0000000000161154&sum=50000 [16:06:19]OFD Sender: Processing packet 73916 [packets to send 15, broken 14] [16:06:19]ProducePacketName [16:06:19]name=ofd_packets/00073916 [16:06:19]OFD Sender: To server: pG, [16:06:19]CommunicateWithHost lk.salyk.kg:30040 [16:06:19]ConnectInit lk.salyk.kg [16:06:19]written 0, free lines is 4095 [16:06:19]Connected sock=10 [16:06:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F2 BD 07 01 65 CE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F2 00 00 00 F4 03 04 00 7C 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 20 01 00 35 04 06 00 28 3C A9 B8 BD F5 2C FA 02 91 5C 56 D9 0E [16:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9A D6 47 00 5A 5B 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 39 36 33 33 32 33 10 04 04 00 BC 20 01 00 F4 03 04 00 60 D3 14 67 B6 04 01 00 00 1B D4 10 ED 46 3C 7B 54 [16:06:20]CommunicateWithHost err = 0 [16:06:20]CheckOFDResponse [16:06:20]1017 (14) - 77093643461234 [16:06:20]1041 (16) - 0000000000963323 [16:06:20]1040 (4) - 73916 [16:06:20]1012 (4) - 20.10.2024 09:54 [16:06:20]1206 (1) - 0 [16:06:20]OFD Sender: Remove packet 73916 [16:06:20]ProducePacketName [16:06:20]name=ofd_packets/00073916 [16:06:20]NVStorageDeleteData [16:06:20]Write to MH i2c: 01 00 00 B6 3D F3 [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: 01 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: 01 07 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: 01 07 00 B6 3D 00 00 00 00 00 AF 0C B5 [16:06:20]RasterBufferAndPrint [16:06:20]line [16:06:20]line [16:06:20]line [16:06:20]line [16:06:20]line [16:06:20]written 0, free lines is 3251 [16:06:20]MH_Cut [16:06:20]Write to MH i2c: D1 01 00 BD 3D 01 CC [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: D1 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: D1 01 00 [16:06:20]MH_I2C_Read... [16:06:20]Read from MH i2c: D1 01 00 BD 3D 00 CB [16:06:20]Write to MH i2c: 01 00 00 BE 3D FB [16:06:20]Write i2c OK [16:06:20]MH_I2C_Read... [16:06:20]OFD Sender: No OFD packet to send [16:06:21]*** Cut start [16:06:21]*** Partial cut [16:06:21]*** CUTSNS_PIN = 1 [16:06:21]*** CUTSNS_PIN = 0 [16:06:21]*** Brake cut motor [16:06:21]Read from MH i2c: 01 [16:06:21]MH_I2C_Read... [16:06:21]*** Stop cut motor [16:06:21]*** Cut end [16:06:21]Read from MH i2c: 01 07 00 [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: 01 07 00 BE 3D 00 00 00 00 00 FF 0F 10 [16:06:21]process_action close_receipt done [16:06:21]requested_data is exist [16:06:21]produce_requested_data [16:06:21]requested_item fm.sn is exist - process it [16:06:21]wFMCommunicate request_size=4 [16:06:21]MH_SAM_APDU [16:06:21]CAPDU: 80 11 00 00 [16:06:21]Write to MH i2c: E2 08 00 BF 3D 80 11 00 00 00 00 00 00 76 [16:06:21]Write i2c OK [16:06:21]MH_I2C_Read... [16:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:21]Read from MH i2c: E2 [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: E2 17 00 [16:06:21]MH_I2C_Read... [16:06:21]Read from MH i2c: E2 17 00 BF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C3 [16:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:06:21]wFMCommunicate OK [16:06:21]requested_item fd.num is exist - process it [16:06:21]SAM_PROTO_GetFieldsCounters [16:06:21]wFMCommunicate request_size=4 [16:06:21]MH_SAM_APDU [16:06:21]CAPDU: 80 13 00 00 [16:06:21]Write to MH i2c: E2 08 00 C0 3D 80 13 00 00 00 00 00 00 79 [16:06:21]Write i2c OK [16:06:21]MH_I2C_Read... [16:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:22]Read from MH i2c: E2 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 62 00 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 62 00 C0 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:22]wFMCommunicate OK [16:06:22]SAM_PROTO_GetFieldsCounters done [16:06:22]requested_item shift.num is exist - process it [16:06:22]requested_item shift.opened is exist - process it [16:06:22]req_shift_opened [16:06:22]FM_GetShiftState [16:06:22]SAM_PROTO_GetShiftState [16:06:22]wFMCommunicate request_size=4 [16:06:22]MH_SAM_APDU [16:06:22]CAPDU: 80 13 01 00 [16:06:22]Write to MH i2c: E2 08 00 C1 3D 80 13 01 00 00 00 00 00 7B [16:06:22]Write i2c OK [16:06:22]MH_I2C_Read... [16:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:22]Read from MH i2c: E2 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 0E 00 [16:06:22]MH_I2C_Read... [16:06:22]Read from MH i2c: E2 0E 00 C1 3D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C0 [16:06:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:06:22]wFMCommunicate OK [16:06:22]SAM_PROTO_GetShiftState done [16:06:22]FM_GetShiftState done [16:06:22]req_shift_opened done [16:06:22]requested_item shift.open_date is exist - process it [16:06:22]req_shift_open_date [16:06:22]req_shift_open_date done [16:06:22]produce_requested_data done [16:06:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73916,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:06:22]process_action_free close_receipt [16:06:22]json_value_free [16:06:22]json_value_free done [16:06:22]process_json_proto returns [16:06:22]Send response to host [16:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73916,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:06:22]free response buf [16:06:22]execute_script done [16:06:22]execute_script returns [16:06:22]free content buf [16:06:22]Sock 9.Close socket [16:06:22]Sock 9.Thread stoped [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:39]accept exits with 8 [16:07:39]New connection [16:07:39]New thread 3067432292 created [16:07:39]Thread 3067575652 joined [16:07:39]Waiting for new connection... [16:07:39] Sock 8.Parse request [16:07:39]Sock 8.Check first char [16:07:39]Sock 8.First char is OK [16:07:39]request: POST /json_proto HTTP/1.0 [16:07:39]Method: POST [16:07:39]URL: /json_proto [16:07:39]Method is POST - this is cgi request [16:07:39]url: /json_proto [16:07:39]query_string will be loaded in cgi processing [16:07:39]execute_cgi json_proto POST (null) [16:07:39]execute_cgi path=json_proto method=POST [16:07:39]POST find Content-Length [16:07:39]Host: 172.17.44.196:8080 [16:07:39]Content-Length: 678 [16:07:39]Content-Type: application/json [16:07:39] [16:07:39]POST finish read [16:07:39]Found Content-Length = 678 [16:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963119", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:39]execute_script... [16:07:39]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)1963119", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:39]POST & json_proto [16:07:39]process_json_proto [16:07:39]json parsed OK: [16:07:39]protocol is kg_v1.0 [16:07:39]action value=close_receipt [16:07:39]process_action close_receipt [16:07:39]cmd_close_receipt [16:07:39]MH_GetDate [16:07:39]Write to MH i2c: F0 00 00 C2 3D EE [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: F0 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: F0 09 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: F0 09 00 C2 3D 00 CD 2A 15 67 E7 19 F8 65 C7 [16:07:39]GetLastDocTimeStamp 1729440380 [16:07:39]current date 1729440461 [16:07:39]FM_GetShiftState [16:07:39]SAM_PROTO_GetShiftState [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 01 00 [16:07:39]Write to MH i2c: E2 08 00 C3 3D 80 13 01 00 00 00 00 00 7D [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 C3 3D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C2 [16:07:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetShiftState done [16:07:39]FM_GetShiftState done [16:07:39]opened in 1729384303 [16:07:39]opened+sec_in_day 1729470703 [16:07:39]quantity*price = 30038 [16:07:39]sum+1 = 30039 [16:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 243 20.10.2024 16:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73917 ФПД: 141838386375609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160742&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73917&fm=141838386375609&tin=02508201610067®Number=0000000000161154&sum=30000 [16:07:40]StoreToDocumentArchive [16:07:40]shift 170 fd 73917 [16:07:40]save to /storage/0170/doc_00073917 [16:07:40]save last doc name /storage/0170/doc_00073917 to /storage/kkm_last_doc_name [16:07:40]save OK [16:07:40]Clear old archive folders... [16:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:40]tlvbuf is 0040F4A0 [16:07:40]SAM_PROTO_ClearQueue [16:07:40]wFMCommunicate request_size=4 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 09 00 00 [16:07:40]Write to MH i2c: E2 08 00 D0 3D 80 09 00 00 00 00 00 00 7F [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 D0 3D 00 90 00 81 [16:07:40]RAPDU: 90 00 [16:07:40]wFMCommunicate OK [16:07:40]SAM_PROTO_ClearQueue done [16:07:40]KKMCreateOFDPacket [16:07:40]OFDProtocolAddRootSTLVToBuf [16:07:40]FM_MakeSignedData [16:07:40]FM_MakeSignedData [16:07:40]SAM_PROTO_SignData [16:07:40]wFMCommunicate request_size=4 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 0D 01 02 [16:07:40]Write to MH i2c: E2 08 00 D1 3D 80 0D 01 02 00 00 00 00 87 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]OFD Sender: No OFD packet to send [16:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 D1 3D 00 90 00 82 [16:07:40]RAPDU: 90 00 [16:07:40]wFMCommunicate OK [16:07:40]wFMCommunicate request_size=255 [16:07:40]MH_SAM_APDU [16:07:40]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 F3 00 00 00 F4 03 04 00 CE 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 20 01 00 35 04 06 00 81 [16:07:40]Write to MH i2c: E2 02 01 D2 3D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 F3 00 00 00 F4 03 04 00 CE 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 20 01 00 35 04 06 00 81 00 00 6D [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:41]Read from MH i2c: E2 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 03 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 03 00 D2 3D 00 90 00 83 [16:07:41]RAPDU: 90 00 [16:07:41]wFMCommunicate OK [16:07:41]wFMCommunicate request_size=10 [16:07:41]MH_SAM_APDU [16:07:41]CAPDU: 80 0D 02 02 05 00 52 A2 AB B9 [16:07:41]Write to MH i2c: E2 0D 00 D3 3D 80 0D 02 02 05 00 00 52 A2 AB B9 00 00 EC [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:41]Read from MH i2c: E2 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 03 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 03 00 D3 3D 00 90 00 84 [16:07:41]RAPDU: 90 00 [16:07:41]wFMCommunicate OK [16:07:41]wFMCommunicate request_size=4 [16:07:41]MH_SAM_APDU [16:07:41]CAPDU: 80 0D 03 02 [16:07:41]Write to MH i2c: E2 08 00 D4 3D 80 0D 03 02 00 00 00 00 8C [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:41]Read from MH i2c: E2 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 0B 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 0B 00 D4 3D 00 B2 83 F3 3C 59 AF 47 FA 90 00 3A [16:07:41]RAPDU: B2 83 F3 3C 59 AF 47 FA 90 00 [16:07:41]wFMCommunicate OK [16:07:41]SAM_PROTO_SignData done [16:07:41]FM_MakeSignedData done [16:07:41]CreateOFDProtocolMessage [16:07:41]wFMCommunicate request_size=4 [16:07:41]MH_SAM_APDU [16:07:41]CAPDU: 80 11 00 00 [16:07:41]Write to MH i2c: E2 08 00 D5 3D 80 11 00 00 00 00 00 00 8C [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:41]Read from MH i2c: E2 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 17 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: E2 17 00 D5 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [16:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:07:41]wFMCommunicate OK [16:07:41]CreateOFDProtocolMessage done [16:07:41]OFDSenderStorePacket 73917 [16:07:41]StoreOFDPacket docnum=73917 [16:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 18 E3 07 01 B5 A3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 F3 00 00 00 F4 03 04 00 CE 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 20 01 00 35 04 06 00 81 00 52 A2 AB B9 B2 83 F3 3C 59 AF 47 FA [16:07:41]CheckFolder [16:07:41]dirname=/storage/ofd_packets [16:07:41]CheckFolder done [16:07:41]ProducePacketName [16:07:41]name=ofd_packets/00073917 [16:07:41]NVStorageSaveData ofd_packets/00073917 [16:07:41]File name is /storage/ofd_packets/00073917 [16:07:41]Write 301 bytes [16:07:41]NVStorageSaveData done [16:07:41]OFDSenderStorePacket done [16:07:41]KKMCreateOFDPacket done [16:07:41]NVStorageSaveData kkm_last_timestamp [16:07:41]File name is /storage/kkm_last_timestamp [16:07:41]Write 4 bytes [16:07:41]NVStorageSaveData done [16:07:41]ExternCall_PrintAddStr [16:07:41]wPrintStart [16:07:41]Write to MH i2c: 01 00 00 D6 3D 13 [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: 01 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: 01 07 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: 01 07 00 D6 3D 00 00 00 00 00 FF 0F 28 [16:07:41]RasterBufferAndPrint [16:07:41]line Счет N : (1)1963119 [16:07:41]line ИНН: 02508201610067 [16:07:41]line Контрольно-Кассовый Чек [16:07:41]line ПРОДАЖА [16:07:41]line ТРК (МРК, ГНК) : 53 [16:07:41]line Товар: 2710124130 [16:07:41]line Аи-92-К-5 [16:07:41]line 4.490 * 66.90 [16:07:41]line = 300.38 [16:07:41]line НДС 12% НСП 1% [16:07:41]line > о реализуемом товаре [16:07:41]line ОКРУГЛЕНИЕ: -0.38 [16:07:41]line ИТОГО: 300.00 [16:07:41]line Внесено: 300.00 [16:07:41]line СДАЧА: 0.00 [16:07:41]line НСП 1% : 2.66 [16:07:41]line НДС 12% : 31.90 [16:07:41]line Наличными: 300.00 [16:07:41]line Безнал.: 0.00 [16:07:41]line Место: АЗС № 133 "Партнер Нефть" [16:07:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:07:41]line СНО: Общий режим [16:07:41]line Чек 243 20.10.2024 16:07 [16:07:41]line Смена: 170 ФФД: 1.0 [16:07:41]line ЗНМ: 0300000020 [16:07:41]line РНМ: 0000000000161154 [16:07:41]line Версия ККМ: v1.0 [16:07:41]line ФМ: 0000000000963323 [16:07:41]line ФД: 73917 [16:07:41]line ФПД: 141838386375609 [16:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160742&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73917&fm=141838386375609&tin=02508201610067®Number=0000000000161154&sum=30000 [16:07:41]OFD Sender: Processing packet 73917 [packets to send 15, broken 14] [16:07:41]ProducePacketName [16:07:41]name=ofd_packets/00073917 [16:07:41]OFD Sender: To server: pG, [16:07:41]CommunicateWithHost lk.salyk.kg:30040 [16:07:41]ConnectInit lk.salyk.kg [16:07:41]written 0, free lines is 4095 [16:07:41]Connected sock=10 [16:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 18 E3 07 01 B5 A3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 F3 00 00 00 F4 03 04 00 CE 2A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 20 01 00 35 04 06 00 81 00 52 A2 AB B9 B2 83 F3 3C 59 AF 47 FA [16:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EA F5 47 00 AC F5 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 39 36 33 33 32 33 10 04 04 00 BD 20 01 00 F4 03 04 00 B2 D3 14 67 B6 04 01 00 00 3A 52 73 98 0E 4C 33 42 [16:07:41]CommunicateWithHost err = 0 [16:07:41]CheckOFDResponse [16:07:41]1017 (14) - 77093643461234 [16:07:41]1041 (16) - 0000000000963323 [16:07:41]1040 (4) - 73917 [16:07:41]1012 (4) - 20.10.2024 09:56 [16:07:41]1206 (1) - 0 [16:07:41]OFD Sender: Remove packet 73917 [16:07:41]ProducePacketName [16:07:41]name=ofd_packets/00073917 [16:07:41]NVStorageDeleteData [16:07:42]Write to MH i2c: 01 00 00 00 3E 3E [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: 01 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: 01 07 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: 01 07 00 00 3E 00 00 00 00 00 B2 0C 03 [16:07:42]RasterBufferAndPrint [16:07:42]line [16:07:42]line [16:07:42]line [16:07:42]line [16:07:42]line [16:07:42]written 0, free lines is 3256 [16:07:42]MH_Cut [16:07:42]Write to MH i2c: D1 01 00 07 3E 01 17 [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: D1 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: D1 01 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: D1 01 00 07 3E 00 16 [16:07:42]Write to MH i2c: 01 00 00 08 3E 46 [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]OFD Sender: No OFD packet to send [16:07:42]*** Cut start [16:07:42]*** Partial cut [16:07:42]*** CUTSNS_PIN = 1 [16:07:42]*** CUTSNS_PIN = 0 [16:07:43]*** Brake cut motor [16:07:43]Read from MH i2c: 01 [16:07:43]MH_I2C_Read... [16:07:43]*** Stop cut motor [16:07:43]*** Cut end [16:07:43]Read from MH i2c: 01 07 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: 01 07 00 08 3E 00 00 00 00 00 FF 0F 5B [16:07:43]process_action close_receipt done [16:07:43]requested_data is exist [16:07:43]produce_requested_data [16:07:43]requested_item fm.sn is exist - process it [16:07:43]wFMCommunicate request_size=4 [16:07:43]MH_SAM_APDU [16:07:43]CAPDU: 80 11 00 00 [16:07:43]Write to MH i2c: E2 08 00 09 3E 80 11 00 00 00 00 00 00 C1 [16:07:43]Write i2c OK [16:07:43]MH_I2C_Read... [16:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:43]Read from MH i2c: E2 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 17 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 17 00 09 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0E [16:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:07:43]wFMCommunicate OK [16:07:43]requested_item fd.num is exist - process it [16:07:43]SAM_PROTO_GetFieldsCounters [16:07:43]wFMCommunicate request_size=4 [16:07:43]MH_SAM_APDU [16:07:43]CAPDU: 80 13 00 00 [16:07:43]Write to MH i2c: E2 08 00 0A 3E 80 13 00 00 00 00 00 00 C4 [16:07:43]Write i2c OK [16:07:43]MH_I2C_Read... [16:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:43]Read from MH i2c: E2 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 62 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 62 00 0A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [16:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:43]wFMCommunicate OK [16:07:43]SAM_PROTO_GetFieldsCounters done [16:07:43]requested_item shift.num is exist - process it [16:07:43]requested_item shift.opened is exist - process it [16:07:43]req_shift_opened [16:07:43]FM_GetShiftState [16:07:43]SAM_PROTO_GetShiftState [16:07:43]wFMCommunicate request_size=4 [16:07:43]MH_SAM_APDU [16:07:43]CAPDU: 80 13 01 00 [16:07:43]Write to MH i2c: E2 08 00 0B 3E 80 13 01 00 00 00 00 00 C6 [16:07:43]Write i2c OK [16:07:43]MH_I2C_Read... [16:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:43]Read from MH i2c: E2 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 0E 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 0E 00 0B 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0B [16:07:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:07:43]wFMCommunicate OK [16:07:43]SAM_PROTO_GetShiftState done [16:07:43]FM_GetShiftState done [16:07:43]req_shift_opened done [16:07:43]requested_item shift.open_date is exist - process it [16:07:43]req_shift_open_date [16:07:43]req_shift_open_date done [16:07:43]produce_requested_data done [16:07:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73917,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:07:43]process_action_free close_receipt [16:07:43]json_value_free [16:07:43]json_value_free done [16:07:43]process_json_proto returns [16:07:43]Send response to host [16:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73917,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:07:43]free response buf [16:07:43]execute_script done [16:07:43]execute_script returns [16:07:43]free content buf [16:07:43]Sock 8.Close socket [16:07:43]Sock 8.Thread stoped [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:14]accept exits with 9 [16:11:14]New connection [16:11:14]New thread 3067575652 created [16:11:14]Thread 3067432292 joined [16:11:14]Waiting for new connection... [16:11:14] Sock 9.Parse request [16:11:14]Sock 9.Check first char [16:11:14]Sock 9.First char is OK [16:11:14]request: POST /json_proto HTTP/1.0 [16:11:14]Method: POST [16:11:14]URL: /json_proto [16:11:14]Method is POST - this is cgi request [16:11:14]url: /json_proto [16:11:14]query_string will be loaded in cgi processing [16:11:14]execute_cgi json_proto POST (null) [16:11:14]execute_cgi path=json_proto method=POST [16:11:14]POST find Content-Length [16:11:14]Host: 172.17.44.196:8080 [16:11:14]Content-Length: 678 [16:11:14]Content-Type: application/json [16:11:14] [16:11:14]POST finish read [16:11:14]Found Content-Length = 678 [16:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963121", "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.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:14]execute_script... [16:11: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 : (1)1963121", "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.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:14]POST & json_proto [16:11:14]process_json_proto [16:11:14]json parsed OK: [16:11:14]protocol is kg_v1.0 [16:11:14]action value=close_receipt [16:11:14]process_action close_receipt [16:11:14]cmd_close_receipt [16:11:14]MH_GetDate [16:11:14]Write to MH i2c: F0 00 00 0C 3E 39 [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: F0 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: F0 09 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: F0 09 00 0C 3E 00 A5 2B 15 67 E7 19 F8 65 EB [16:11:14]GetLastDocTimeStamp 1729440462 [16:11:14]current date 1729440677 [16:11:14]FM_GetShiftState [16:11:14]SAM_PROTO_GetShiftState [16:11:14]wFMCommunicate request_size=4 [16:11:14]MH_SAM_APDU [16:11:14]CAPDU: 80 13 01 00 [16:11:14]Write to MH i2c: E2 08 00 0D 3E 80 13 01 00 00 00 00 00 C8 [16:11:14]Write i2c OK [16:11:14]MH_I2C_Read... [16:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:14]Read from MH i2c: E2 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 0E 00 [16:11:14]MH_I2C_Read... [16:11:14]Read from MH i2c: E2 0E 00 0D 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0D [16:11:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:11:14]wFMCommunicate OK [16:11:14]SAM_PROTO_GetShiftState done [16:11:14]FM_GetShiftState done [16:11:14]opened in 1729384303 [16:11:14]opened+sec_in_day 1729470703 [16:11:14]quantity*price = 40006 [16:11:14]sum+1 = 40007 [16:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 244 20.10.2024 16:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73918 ФПД: 64142209995049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161117&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73918&fm=64142209995049&tin=02508201610067®Number=0000000000161154&sum=40000 [16:11:15]StoreToDocumentArchive [16:11:15]shift 170 fd 73918 [16:11:15]save to /storage/0170/doc_00073918 [16:11:15]save last doc name /storage/0170/doc_00073918 to /storage/kkm_last_doc_name [16:11:15]save OK [16:11:15]Clear old archive folders... [16:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:15]tlvbuf is 004517F0 [16:11:15]SAM_PROTO_ClearQueue [16:11:15]wFMCommunicate request_size=4 [16:11:15]MH_SAM_APDU [16:11:15]CAPDU: 80 09 00 00 [16:11:15]Write to MH i2c: E2 08 00 1A 3E 80 09 00 00 00 00 00 00 CA [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:15]Read from MH i2c: E2 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 03 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 03 00 1A 3E 00 90 00 CC [16:11:15]RAPDU: 90 00 [16:11:15]wFMCommunicate OK [16:11:15]SAM_PROTO_ClearQueue done [16:11:15]KKMCreateOFDPacket [16:11:15]OFDProtocolAddRootSTLVToBuf [16:11:15]FM_MakeSignedData [16:11:15]FM_MakeSignedData [16:11:15]SAM_PROTO_SignData [16:11:15]wFMCommunicate request_size=4 [16:11:15]MH_SAM_APDU [16:11:15]CAPDU: 80 0D 01 02 [16:11:15]Write to MH i2c: E2 08 00 1B 3E 80 0D 01 02 00 00 00 00 D2 [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 1B 3E 00 90 00 CD [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]wFMCommunicate request_size=255 [16:11:16]MH_SAM_APDU [16:11:16]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A5 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 20 01 00 35 04 06 00 3A [16:11:16]Write to MH i2c: E2 02 01 1C 3E 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A5 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 20 01 00 35 04 06 00 3A 00 00 26 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]wFMCommunicate request_size=10 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 0D 02 02 05 56 45 A4 51 29 [16:11:16]Write to MH i2c: E2 0D 00 1D 3E 80 0D 02 02 05 00 56 45 A4 51 29 00 00 98 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 1D 3E 00 90 00 CF [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 0D 03 02 [16:11:16]Write to MH i2c: E2 08 00 1E 3E 80 0D 03 02 00 00 00 00 D7 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 0B 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 0B 00 1E 3E 00 00 86 D8 C4 55 A7 E3 AE 90 00 87 [16:11:16]RAPDU: 00 86 D8 C4 55 A7 E3 AE 90 00 [16:11:16]wFMCommunicate OK [16:11:16]SAM_PROTO_SignData done [16:11:16]FM_MakeSignedData done [16:11:16]CreateOFDProtocolMessage [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 11 00 00 [16:11:16]Write to MH i2c: E2 08 00 1F 3E 80 11 00 00 00 00 00 00 D7 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 17 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 17 00 1F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 24 [16:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:16]wFMCommunicate OK [16:11:16]CreateOFDProtocolMessage done [16:11:16]OFDSenderStorePacket 73918 [16:11:16]StoreOFDPacket docnum=73918 [16:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 64 27 07 01 40 90 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A5 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 20 01 00 35 04 06 00 3A 56 45 A4 51 29 00 86 D8 C4 55 A7 E3 AE [16:11:16]CheckFolder [16:11:16]dirname=/storage/ofd_packets [16:11:16]CheckFolder done [16:11:16]ProducePacketName [16:11:16]name=ofd_packets/00073918 [16:11:16]NVStorageSaveData ofd_packets/00073918 [16:11:16]File name is /storage/ofd_packets/00073918 [16:11:16]Write 301 bytes [16:11:16]NVStorageSaveData done [16:11:16]OFDSenderStorePacket done [16:11:16]KKMCreateOFDPacket done [16:11:16]NVStorageSaveData kkm_last_timestamp [16:11:16]File name is /storage/kkm_last_timestamp [16:11:16]Write 4 bytes [16:11:16]NVStorageSaveData done [16:11:16]ExternCall_PrintAddStr [16:11:16]wPrintStart [16:11:16]Write to MH i2c: 01 00 00 20 3E 5E [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: 01 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: 01 07 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: 01 07 00 20 3E 00 00 00 00 00 FF 0F 73 [16:11:16]RasterBufferAndPrint [16:11:16]line Счет N : (1)1963121 [16:11:16]line ИНН: 02508201610067 [16:11:16]line Контрольно-Кассовый Чек [16:11:16]line ПРОДАЖА [16:11:16]line ТРК (МРК, ГНК) : 43 [16:11:16]line Товар: 2710124130 [16:11:16]line Аи-92-К-5 [16:11:16]line 5.980 * 66.90 [16:11:16]line = 400.06 [16:11:16]line НДС 12% НСП 1% [16:11:16]line > о реализуемом товаре [16:11:16]line ОКРУГЛЕНИЕ: -0.06 [16:11:16]line ИТОГО: 400.00 [16:11:16]line Внесено: 400.00 [16:11:16]line СДАЧА: 0.00 [16:11:16]line НСП 1% : 3.54 [16:11:16]line НДС 12% : 42.48 [16:11:16]line Наличными: 400.00 [16:11:16]line Безнал.: 0.00 [16:11:16]line Место: АЗС № 133 "Партнер Нефть" [16:11:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:11:16]line СНО: Общий режим [16:11:16]line Чек 244 20.10.2024 16:11 [16:11:16]line Смена: 170 ФФД: 1.0 [16:11:16]line ЗНМ: 0300000020 [16:11:16]line РНМ: 0000000000161154 [16:11:16]line Версия ККМ: v1.0 [16:11:16]line ФМ: 0000000000963323 [16:11:16]line ФД: 73918 [16:11:16]line ФПД: 64142209995049 [16:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161117&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73918&fm=64142209995049&tin=02508201610067®Number=0000000000161154&sum=40000 [16:11:16]OFD Sender: Processing packet 73918 [packets to send 15, broken 14] [16:11:16]ProducePacketName [16:11:16]name=ofd_packets/00073918 [16:11:16]OFD Sender: To server: pG, [16:11:16]CommunicateWithHost lk.salyk.kg:30040 [16:11:16]ConnectInit lk.salyk.kg [16:11:16]written 0, free lines is 4095 [16:11:16]Connected sock=10 [16:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 64 27 07 01 40 90 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 A5 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 20 01 00 35 04 06 00 3A 56 45 A4 51 29 00 86 D8 C4 55 A7 E3 AE [16:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4B D6 47 00 F3 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 39 36 33 33 32 33 10 04 04 00 BE 20 01 00 F4 03 04 00 89 D4 14 67 B6 04 01 00 00 EC D8 52 51 D1 A9 03 8B [16:11:17]CommunicateWithHost err = 0 [16:11:17]CheckOFDResponse [16:11:17]1017 (14) - 77093643461234 [16:11:17]1041 (16) - 0000000000963323 [16:11:17]1040 (4) - 73918 [16:11:17]1012 (4) - 20.10.2024 09:59 [16:11:17]1206 (1) - 0 [16:11:17]OFD Sender: Remove packet 73918 [16:11:17]ProducePacketName [16:11:17]name=ofd_packets/00073918 [16:11:17]NVStorageDeleteData [16:11:17]Write to MH i2c: 01 00 00 4A 3E 88 [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 07 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 07 00 4A 3E 00 00 00 00 00 B3 0C 4E [16:11:17]RasterBufferAndPrint [16:11:17]line [16:11:17]line [16:11:17]line [16:11:17]line [16:11:17]line [16:11:17]written 0, free lines is 3256 [16:11:17]MH_Cut [16:11:17]Write to MH i2c: D1 01 00 51 3E 01 61 [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: D1 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: D1 01 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: D1 01 00 51 3E 00 60 [16:11:17]Write to MH i2c: 01 00 00 52 3E 90 [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]OFD Sender: No OFD packet to send [16:11:18]*** Cut start [16:11:18]*** Partial cut [16:11:18]*** CUTSNS_PIN = 1 [16:11:18]*** CUTSNS_PIN = 0 [16:11:18]*** Brake cut motor [16:11:18]Read from MH i2c: 01 [16:11:18]MH_I2C_Read... [16:11:18]*** Stop cut motor [16:11:18]*** Cut end [16:11:18]Read from MH i2c: 01 07 00 [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: 01 07 00 52 3E 00 00 00 00 00 FF 0F A5 [16:11:18]process_action close_receipt done [16:11:18]requested_data is exist [16:11:18]produce_requested_data [16:11:18]requested_item fm.sn is exist - process it [16:11:18]wFMCommunicate request_size=4 [16:11:18]MH_SAM_APDU [16:11:18]CAPDU: 80 11 00 00 [16:11:18]Write to MH i2c: E2 08 00 53 3E 80 11 00 00 00 00 00 00 0B [16:11:18]Write i2c OK [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: E2 [16:11:18]MH_I2C_Read... [16:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:18]Read from MH i2c: E2 17 00 [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: E2 17 00 53 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 58 [16:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:18]wFMCommunicate OK [16:11:18]requested_item fd.num is exist - process it [16:11:18]SAM_PROTO_GetFieldsCounters [16:11:18]wFMCommunicate request_size=4 [16:11:18]MH_SAM_APDU [16:11:18]CAPDU: 80 13 00 00 [16:11:18]Write to MH i2c: E2 08 00 54 3E 80 13 00 00 00 00 00 00 0E [16:11:18]Write i2c OK [16:11:18]MH_I2C_Read... [16:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:18]Read from MH i2c: E2 [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: E2 62 00 [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: E2 62 00 54 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:18]wFMCommunicate OK [16:11:18]SAM_PROTO_GetFieldsCounters done [16:11:18]requested_item shift.num is exist - process it [16:11:18]requested_item shift.opened is exist - process it [16:11:18]req_shift_opened [16:11:18]FM_GetShiftState [16:11:18]SAM_PROTO_GetShiftState [16:11:18]wFMCommunicate request_size=4 [16:11:18]MH_SAM_APDU [16:11:18]CAPDU: 80 13 01 00 [16:11:18]Write to MH i2c: E2 08 00 55 3E 80 13 01 00 00 00 00 00 10 [16:11:18]Write i2c OK [16:11:18]MH_I2C_Read... [16:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:19]Read from MH i2c: E2 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: E2 0E 00 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: E2 0E 00 55 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 55 [16:11:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:11:19]wFMCommunicate OK [16:11:19]SAM_PROTO_GetShiftState done [16:11:19]FM_GetShiftState done [16:11:19]req_shift_opened done [16:11:19]requested_item shift.open_date is exist - process it [16:11:19]req_shift_open_date [16:11:19]req_shift_open_date done [16:11:19]produce_requested_data done [16:11:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73918,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:11:19]process_action_free close_receipt [16:11:19]json_value_free [16:11:19]json_value_free done [16:11:19]process_json_proto returns [16:11:19]Send response to host [16:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73918,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:11:19]free response buf [16:11:19]execute_script done [16:11:19]execute_script returns [16:11:19]free content buf [16:11:19]Sock 9.Close socket [16:11:19]Sock 9.Thread stoped [16:11:21]accept exits with 8 [16:11:21]New connection [16:11:21]New thread 3067432292 created [16:11:21]Thread 3067575652 joined [16:11:21]Waiting for new connection... [16:11:21] Sock 8.Parse request [16:11:21]Sock 8.Check first char [16:11:21]Sock 8.First char is OK [16:11:21]request: POST /json_proto HTTP/1.0 [16:11:21]Method: POST [16:11:21]URL: /json_proto [16:11:21]Method is POST - this is cgi request [16:11:21]url: /json_proto [16:11:21]query_string will be loaded in cgi processing [16:11:21]execute_cgi json_proto POST (null) [16:11:21]execute_cgi path=json_proto method=POST [16:11:21]POST find Content-Length [16:11:21]Host: 172.17.44.196:8080 [16:11:21]Content-Length: 664 [16:11:21]Content-Type: application/json [16:11:21] [16:11:21]POST finish read [16:11:21]Found Content-Length = 664 [16:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [16:11:21]execute_script... [16:11: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 : (1)1963122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [16:11:21]POST & json_proto [16:11:21]process_json_proto [16:11:21]json parsed OK: [16:11:21]protocol is kg_v1.0 [16:11:21]action value=close_receipt [16:11:21]process_action close_receipt [16:11:21]cmd_close_receipt [16:11:21]MH_GetDate [16:11:21]Write to MH i2c: F0 00 00 56 3E 83 [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: F0 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: F0 09 00 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: F0 09 00 56 3E 00 AB 2B 15 67 E7 19 F8 65 3B [16:11:21]GetLastDocTimeStamp 1729440677 [16:11:21]current date 1729440683 [16:11:21]FM_GetShiftState [16:11:21]SAM_PROTO_GetShiftState [16:11:21]wFMCommunicate request_size=4 [16:11:21]MH_SAM_APDU [16:11:21]CAPDU: 80 13 01 00 [16:11:21]Write to MH i2c: E2 08 00 57 3E 80 13 01 00 00 00 00 00 12 [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:21]Read from MH i2c: E2 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: E2 0E 00 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: E2 0E 00 57 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 57 [16:11:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:11:21]wFMCommunicate OK [16:11:21]SAM_PROTO_GetShiftState done [16:11:21]FM_GetShiftState done [16:11:21]opened in 1729384303 [16:11:21]opened+sec_in_day 1729470703 [16:11:21]quantity*price = 100000 [16:11:21]sum+1 = 100002 [16:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 245 20.10.2024 16:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73919 ФПД: 31744571701035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161123&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73919&fm=31744571701035&tin=02508201610067®Number=0000000000161154&sum=100000 [16:11:22]StoreToDocumentArchive [16:11:22]shift 170 fd 73919 [16:11:22]save to /storage/0170/doc_00073919 [16:11:22]save last doc name /storage/0170/doc_00073919 to /storage/kkm_last_doc_name [16:11:22]save OK [16:11:22]Clear old archive folders... [16:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:11:22]tlvbuf is 0035E670 [16:11:22]SAM_PROTO_ClearQueue [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 09 00 00 [16:11:22]Write to MH i2c: E2 08 00 64 3E 80 09 00 00 00 00 00 00 14 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 64 3E 00 90 00 16 [16:11:22]RAPDU: 90 00 [16:11:22]wFMCommunicate OK [16:11:22]SAM_PROTO_ClearQueue done [16:11:22]KKMCreateOFDPacket [16:11:22]OFDProtocolAddRootSTLVToBuf [16:11:22]FM_MakeSignedData [16:11:22]FM_MakeSignedData [16:11:22]SAM_PROTO_SignData [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 0D 01 02 [16:11:22]Write to MH i2c: E2 08 00 65 3E 80 0D 01 02 00 00 00 00 1C [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 65 3E 00 90 00 17 [16:11:22]RAPDU: 90 00 [16:11:22]wFMCommunicate OK [16:11:22]wFMCommunicate request_size=253 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 F5 00 00 00 F4 03 04 00 AB 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 20 01 00 35 04 06 00 1C DF 1B EB 77 2B [16:11:22]Write to MH i2c: E2 00 01 66 3E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 F5 00 00 00 F4 03 04 00 AB 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 20 01 00 35 04 06 00 1C DF 1B EB 77 2B 00 00 F5 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:23]Read from MH i2c: E2 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 03 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 03 00 66 3E 00 90 00 18 [16:11:23]RAPDU: 90 00 [16:11:23]wFMCommunicate OK [16:11:23]wFMCommunicate request_size=4 [16:11:23]MH_SAM_APDU [16:11:23]CAPDU: 80 0D 03 02 [16:11:23]Write to MH i2c: E2 08 00 67 3E 80 0D 03 02 00 00 00 00 20 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:23]Read from MH i2c: E2 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 0B 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 0B 00 67 3E 00 72 6A 7A 24 8C 9C 91 65 90 00 B9 [16:11:23]RAPDU: 72 6A 7A 24 8C 9C 91 65 90 00 [16:11:23]wFMCommunicate OK [16:11:23]SAM_PROTO_SignData done [16:11:23]FM_MakeSignedData done [16:11:23]CreateOFDProtocolMessage [16:11:23]wFMCommunicate request_size=4 [16:11:23]MH_SAM_APDU [16:11:23]CAPDU: 80 11 00 00 [16:11:23]Write to MH i2c: E2 08 00 68 3E 80 11 00 00 00 00 00 00 20 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:23]Read from MH i2c: E2 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 17 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 17 00 68 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6D [16:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:23]wFMCommunicate OK [16:11:23]CreateOFDProtocolMessage done [16:11:23]OFDSenderStorePacket 73919 [16:11:23]StoreOFDPacket docnum=73919 [16:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 1B 3F 00 01 E9 87 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 F5 00 00 00 F4 03 04 00 AB 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 20 01 00 35 04 06 00 1C DF 1B EB 77 2B 72 6A 7A 24 8C 9C 91 65 [16:11:23]CheckFolder [16:11:23]dirname=/storage/ofd_packets [16:11:23]CheckFolder done [16:11:23]ProducePacketName [16:11:23]name=ofd_packets/00073919 [16:11:23]NVStorageSaveData ofd_packets/00073919 [16:11:23]File name is /storage/ofd_packets/00073919 [16:11:23]Write 294 bytes [16:11:23]NVStorageSaveData done [16:11:23]OFDSenderStorePacket done [16:11:23]KKMCreateOFDPacket done [16:11:23]NVStorageSaveData kkm_last_timestamp [16:11:23]File name is /storage/kkm_last_timestamp [16:11:23]Write 4 bytes [16:11:23]NVStorageSaveData done [16:11:23]ExternCall_PrintAddStr [16:11:23]wPrintStart [16:11:23]Write to MH i2c: 01 00 00 69 3E A7 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 07 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 07 00 69 3E 00 00 00 00 00 FF 0F BC [16:11:23]RasterBufferAndPrint [16:11:23]line Счет N : (1)1963122 [16:11:23]line ИНН: 02508201610067 [16:11:23]line Контрольно-Кассовый Чек [16:11:23]line ПРОДАЖА [16:11:23]line ТРК (МРК, ГНК) : 52 [16:11:23]line Товар: 2710124130 [16:11:23]line SU-92 [16:11:23]line 14.620 * 68.40 [16:11:23]line = 1000.01 [16:11:23]line НДС 12% НСП 1% [16:11:23]line > о реализуемом товаре [16:11:23]line ОКРУГЛЕНИЕ: -0.01 [16:11:23]line ИТОГО: 1000.00 [16:11:23]line Внесено: 1000.00 [16:11:23]line СДАЧА: 0.00 [16:11:23]line НСП 1% : 8.85 [16:11:23]line НДС 12% : 106.20 [16:11:23]line Наличными: 1000.00 [16:11:23]line Безнал.: 0.00 [16:11:23]line Место: АЗС № 133 "Партнер Нефть" [16:11:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:11:23]line СНО: Общий режим [16:11:23]line Чек 245 20.10.2024 16:11 [16:11:23]line Смена: 170 ФФД: 1.0 [16:11:23]line ЗНМ: 0300000020 [16:11:23]line РНМ: 0000000000161154 [16:11:23]line Версия ККМ: v1.0 [16:11:23]line ФМ: 0000000000963323 [16:11:23]line ФД: 73919 [16:11:23]line ФПД: 31744571701035 [16:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161123&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73919&fm=31744571701035&tin=02508201610067®Number=0000000000161154&sum=100000 [16:11:23]written 0, free lines is 4095 [16:11:23]OFD Sender: Processing packet 73919 [packets to send 15, broken 14] [16:11:23]ProducePacketName [16:11:23]name=ofd_packets/00073919 [16:11:23]OFD Sender: To server: pG, [16:11:23]CommunicateWithHost lk.salyk.kg:30040 [16:11:23]ConnectInit lk.salyk.kg [16:11:23]Connected sock=10 [16:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 1B 3F 00 01 E9 87 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 F5 00 00 00 F4 03 04 00 AB 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 20 01 00 35 04 06 00 1C DF 1B EB 77 2B 72 6A 7A 24 8C 9C 91 65 [16:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B8 52 47 00 78 40 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 39 36 33 33 32 33 10 04 04 00 BF 20 01 00 F4 03 04 00 90 D4 14 67 B6 04 01 00 00 95 31 54 30 9D 9A 00 45 [16:11:23]CommunicateWithHost err = 0 [16:11:23]CheckOFDResponse [16:11:23]1017 (14) - 77093643461234 [16:11:23]1041 (16) - 0000000000963323 [16:11:23]1040 (4) - 73919 [16:11:23]1012 (4) - 20.10.2024 09:59 [16:11:23]1206 (1) - 0 [16:11:23]OFD Sender: Remove packet 73919 [16:11:23]ProducePacketName [16:11:23]name=ofd_packets/00073919 [16:11:23]NVStorageDeleteData [16:11:23]Write to MH i2c: 01 00 00 93 3E D1 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 07 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 07 00 93 3E 00 00 00 00 00 C3 0C A7 [16:11:23]RasterBufferAndPrint [16:11:23]line [16:11:23]line [16:11:23]line [16:11:23]line [16:11:23]line [16:11:23]written 0, free lines is 3279 [16:11:23]MH_Cut [16:11:23]Write to MH i2c: D1 01 00 9A 3E 01 AA [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: D1 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: D1 01 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: D1 01 00 9A 3E 00 A9 [16:11:23]Write to MH i2c: 01 00 00 9B 3E D9 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:24]OFD Sender: No OFD packet to send [16:11:24]*** Cut start [16:11:24]*** Partial cut [16:11:24]*** CUTSNS_PIN = 1 [16:11:24]*** CUTSNS_PIN = 0 [16:11:24]*** Brake cut motor [16:11:25]Read from MH i2c: 01 [16:11:25]MH_I2C_Read... [16:11:25]*** Stop cut motor [16:11:25]*** Cut end [16:11:25]Read from MH i2c: 01 07 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: 01 07 00 9B 3E 00 00 00 00 00 FF 0F EE [16:11:25]process_action close_receipt done [16:11:25]requested_data is exist [16:11:25]produce_requested_data [16:11:25]requested_item fm.sn is exist - process it [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 11 00 00 [16:11:25]Write to MH i2c: E2 08 00 9C 3E 80 11 00 00 00 00 00 00 54 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 17 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 17 00 9C 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A1 [16:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:25]wFMCommunicate OK [16:11:25]requested_item fd.num is exist - process it [16:11:25]SAM_PROTO_GetFieldsCounters [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 13 00 00 [16:11:25]Write to MH i2c: E2 08 00 9D 3E 80 13 00 00 00 00 00 00 57 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 62 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 62 00 9D 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [16:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:25]wFMCommunicate OK [16:11:25]SAM_PROTO_GetFieldsCounters done [16:11:25]requested_item shift.num is exist - process it [16:11:25]requested_item shift.opened is exist - process it [16:11:25]req_shift_opened [16:11:25]FM_GetShiftState [16:11:25]SAM_PROTO_GetShiftState [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 13 01 00 [16:11:25]Write to MH i2c: E2 08 00 9E 3E 80 13 01 00 00 00 00 00 59 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 0E 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 0E 00 9E 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9E [16:11:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:11:25]wFMCommunicate OK [16:11:25]SAM_PROTO_GetShiftState done [16:11:25]FM_GetShiftState done [16:11:25]req_shift_opened done [16:11:25]requested_item shift.open_date is exist - process it [16:11:25]req_shift_open_date [16:11:25]req_shift_open_date done [16:11:25]produce_requested_data done [16:11:25]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73919,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:11:25]process_action_free close_receipt [16:11:25]json_value_free [16:11:25]json_value_free done [16:11:25]process_json_proto returns [16:11:25]Send response to host [16:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73919,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:11:25]free response buf [16:11:25]execute_script done [16:11:25]execute_script returns [16:11:25]free content buf [16:11:25]Sock 8.Close socket [16:11:25]Sock 8.Thread stoped [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:48]accept exits with 9 [16:11:48]New connection [16:11:48]New thread 3067575652 created [16:11:48]Thread 3067432292 joined [16:11:48]Waiting for new connection... [16:11:48] Sock 9.Parse request [16:11:48]Sock 9.Check first char [16:11:48]Sock 9.First char is OK [16:11:48]request: POST /json_proto HTTP/1.0 [16:11:48]Method: POST [16:11:48]URL: /json_proto [16:11:48]Method is POST - this is cgi request [16:11:48]url: /json_proto [16:11:48]query_string will be loaded in cgi processing [16:11:48]execute_cgi json_proto POST (null) [16:11:48]execute_cgi path=json_proto method=POST [16:11:48]POST find Content-Length [16:11:48]Host: 172.17.44.196:8080 [16:11:48]Content-Length: 979 [16:11:48]Content-Type: application/json [16:11:48] [16:11:48]POST finish read [16:11:48]Found Content-Length = 979 [16:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 93.090, "sum" : 7000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 93.09 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:48]execute_script... [16:11: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 : (1)1963120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 93.090, "sum" : 7000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 93.09 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:48]POST & json_proto [16:11:48]process_json_proto [16:11:48]json parsed OK: [16:11:48]protocol is kg_v1.0 [16:11:48]action value=close_receipt [16:11:48]process_action close_receipt [16:11:48]cmd_close_receipt [16:11:48]MH_GetDate [16:11:48]Write to MH i2c: F0 00 00 9F 3E CC [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: F0 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: F0 09 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: F0 09 00 9F 3E 00 C7 2B 15 67 E7 19 F8 65 A0 [16:11:48]GetLastDocTimeStamp 1729440683 [16:11:48]current date 1729440711 [16:11:48]FM_GetShiftState [16:11:48]SAM_PROTO_GetShiftState [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 13 01 00 [16:11:48]Write to MH i2c: E2 08 00 A0 3E 80 13 01 00 00 00 00 00 5B [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0E 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0E 00 A0 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A0 [16:11:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_GetShiftState done [16:11:48]FM_GetShiftState done [16:11:48]opened in 1729384303 [16:11:48]opened+sec_in_day 1729470703 [16:11:48]quantity*price = 700036 [16:11:48]sum+1 = 700038 [16:11:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 246 20.10.2024 16:11 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 93.09 сом ФМ: 0000000000963323 ФД: 73920 ФПД: 27656555774505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161151&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73920&fm=27656555774505&tin=02508201610067®Number=0000000000161154&sum=700000 [16:11:49]StoreToDocumentArchive [16:11:49]shift 170 fd 73920 [16:11:49]save to /storage/0170/doc_00073920 [16:11:49]save last doc name /storage/0170/doc_00073920 to /storage/kkm_last_doc_name [16:11:49]save OK [16:11:49]Clear old archive folders... [16:11:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:49]tlvbuf is 00373BE0 [16:11:49]SAM_PROTO_ClearQueue [16:11:49]wFMCommunicate request_size=4 [16:11:49]MH_SAM_APDU [16:11:49]CAPDU: 80 09 00 00 [16:11:49]Write to MH i2c: E2 08 00 AD 3E 80 09 00 00 00 00 00 00 5D [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:49]Read from MH i2c: E2 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: E2 03 00 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: E2 03 00 AD 3E 00 90 00 5F [16:11:49]RAPDU: 90 00 [16:11:49]wFMCommunicate OK [16:11:49]SAM_PROTO_ClearQueue done [16:11:49]KKMCreateOFDPacket [16:11:49]OFDProtocolAddRootSTLVToBuf [16:11:49]FM_MakeSignedData [16:11:49]FM_MakeSignedData [16:11:49]SAM_PROTO_SignData [16:11:49]wFMCommunicate request_size=4 [16:11:49]MH_SAM_APDU [16:11:49]CAPDU: 80 0D 01 02 [16:11:49]Write to MH i2c: E2 08 00 AE 3E 80 0D 01 02 00 00 00 00 65 [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:49]Read from MH i2c: E2 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: E2 03 00 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: E2 03 00 AE 3E 00 90 00 60 [16:11:49]RAPDU: 90 00 [16:11:49]wFMCommunicate OK [16:11:49]wFMCommunicate request_size=255 [16:11:49]MH_SAM_APDU [16:11:49]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 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C7 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 20 01 00 35 04 06 00 19 27 4B 2E [16:11:49]Write to MH i2c: E2 02 01 AF 3E 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 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C7 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 20 01 00 35 04 06 00 19 27 4B 2E 00 00 27 [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 AF 3E 00 90 00 61 [16:11:50]RAPDU: 90 00 [16:11:50]wFMCommunicate OK [16:11:50]wFMCommunicate request_size=7 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 0D 02 02 02 C2 29 [16:11:50]Write to MH i2c: E2 0A 00 B0 3E 80 0D 02 02 02 00 C2 29 00 00 57 [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 B0 3E 00 90 00 62 [16:11:50]RAPDU: 90 00 [16:11:50]wFMCommunicate OK [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 0D 03 02 [16:11:50]Write to MH i2c: E2 08 00 B1 3E 80 0D 03 02 00 00 00 00 6A [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0B 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0B 00 B1 3E 00 F7 00 37 96 5C EA 3E E9 90 00 9C [16:11:50]RAPDU: F7 00 37 96 5C EA 3E E9 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_SignData done [16:11:50]FM_MakeSignedData done [16:11:50]CreateOFDProtocolMessage [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 11 00 00 [16:11:50]Write to MH i2c: E2 08 00 B2 3E 80 11 00 00 00 00 00 00 6A [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 B2 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B7 [16:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:50]wFMCommunicate OK [16:11:50]CreateOFDProtocolMessage done [16:11:50]OFDSenderStorePacket 73920 [16:11:50]StoreOFDPacket docnum=73920 [16:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 09 51 04 01 AB 3F 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 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C7 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 20 01 00 35 04 06 00 19 27 4B 2E C2 29 F7 00 37 96 5C EA 3E E9 [16:11:50]CheckFolder [16:11:50]dirname=/storage/ofd_packets [16:11:50]CheckFolder done [16:11:50]ProducePacketName [16:11:50]name=ofd_packets/00073920 [16:11:50]NVStorageSaveData ofd_packets/00073920 [16:11:50]File name is /storage/ofd_packets/00073920 [16:11:50]Write 298 bytes [16:11:50]NVStorageSaveData done [16:11:50]OFDSenderStorePacket done [16:11:50]KKMCreateOFDPacket done [16:11:50]NVStorageSaveData kkm_last_timestamp [16:11:50]File name is /storage/kkm_last_timestamp [16:11:50]Write 4 bytes [16:11:50]NVStorageSaveData done [16:11:50]ExternCall_PrintAddStr [16:11:50]wPrintStart [16:11:50]Write to MH i2c: 01 00 00 B3 3E F1 [16:11:50]OFD Sender: Processing packet 73920 [packets to send 15, broken 14] [16:11:50]ProducePacketName [16:11:50]name=ofd_packets/00073920 [16:11:50]OFD Sender: To server: pG, [16:11:50]CommunicateWithHost lk.salyk.kg:30040 [16:11:50]ConnectInit lk.salyk.kg [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: 01 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: 01 07 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: 01 07 00 B3 3E 00 00 00 00 00 FF 0F 06 [16:11:50]RasterBufferAndPrint [16:11:50]line Счет N : (1)1963120 [16:11:50]line ИНН: 02508201610067 [16:11:50]line Контрольно-Кассовый Чек [16:11:50]line ПРОДАЖА [16:11:50]line ТРК (МРК, ГНК) : 21 [16:11:50]line Товар: 2710194210 [16:11:50]line ДТ-К-5 [16:11:50]line 93.090 * 75.20 [16:11:50]line = 7000.37 [16:11:50]line НДС 12% НСП 1% [16:11:50]line > о реализуемом товаре [16:11:50]line ОКРУГЛЕНИЕ: -0.37 [16:11:50]line ИТОГО: 7000.00 [16:11:50]line Внесено: 7000.00 [16:11:50]line СДАЧА: 0.00 [16:11:50]line НСП 1% : 61.95 [16:11:50]line НДС 12% : 743.40 [16:11:50]line Наличными: 7000.00 [16:11:50]line Безнал.: 0.00 [16:11:50]line Место: АЗС № 133 "Партнер Нефть" [16:11:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:11:50]line СНО: Общий режим [16:11:50]line Чек 246 20.10.2024 16:11 [16:11:50]line Смена: 170 ФФД: 1.0 [16:11:50]line ЗНМ: 0300000020 [16:11:50]line РНМ: 0000000000161154 [16:11:50]line Версия ККМ: v1.0 [16:11:50]line [16:11:50]line Дисконтная программа [16:11:50]line ДТ [16:11:50]line номер 133 [16:11:50]line сэкономлено 93.09 сом [16:11:50]line ФМ: 0000000000963323 [16:11:50]line ФД: 73920 [16:11:50]line ФПД: 27656555774505 [16:11:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161151&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73920&fm=27656555774505&tin=02508201610067®Number=0000000000161154&sum=700000 [16:11:50]Connected sock=10 [16:11:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 09 51 04 01 AB 3F 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 A2 6B 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 85 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C7 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 20 01 00 35 04 06 00 19 27 4B 2E C2 29 F7 00 37 96 5C EA 3E E9 [16:11:50]written 0, free lines is 4095 [16:11:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 86 53 47 00 65 66 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 39 36 33 33 32 33 10 04 04 00 C0 20 01 00 F4 03 04 00 AB D4 14 67 B6 04 01 00 00 11 77 8D 76 94 B2 9D 8B [16:11:50]CommunicateWithHost err = 0 [16:11:50]CheckOFDResponse [16:11:50]1017 (14) - 77093643461234 [16:11:50]1041 (16) - 0000000000963323 [16:11:50]1040 (4) - 73920 [16:11:50]1012 (4) - 20.10.2024 10:00 [16:11:50]1206 (1) - 0 [16:11:50]OFD Sender: Remove packet 73920 [16:11:50]ProducePacketName [16:11:50]name=ofd_packets/00073920 [16:11:50]NVStorageDeleteData [16:11:51]Write to MH i2c: 01 00 00 E2 3E 20 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 07 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 07 00 E2 3E 00 00 00 00 00 53 0C 86 [16:11:51]RasterBufferAndPrint [16:11:51]line [16:11:51]line [16:11:51]line [16:11:51]line [16:11:51]line [16:11:51]written 0, free lines is 3160 [16:11:51]MH_Cut [16:11:51]Write to MH i2c: D1 01 00 E9 3E 01 F9 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: D1 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: D1 01 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: D1 01 00 E9 3E 00 F8 [16:11:51]Write to MH i2c: 01 00 00 EA 3E 28 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]OFD Sender: No OFD packet to send [16:11:52]*** Cut start [16:11:52]*** Partial cut [16:11:52]*** CUTSNS_PIN = 1 [16:11:52]*** CUTSNS_PIN = 0 [16:11:52]*** Brake cut motor [16:11:52]Read from MH i2c: 01 [16:11:52]MH_I2C_Read... [16:11:52]*** Stop cut motor [16:11:52]*** Cut end [16:11:52]Read from MH i2c: 01 07 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 07 00 EA 3E 00 00 00 00 00 FF 0F 3D [16:11:52]process_action close_receipt done [16:11:52]requested_data is exist [16:11:52]produce_requested_data [16:11:52]requested_item fm.sn is exist - process it [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 11 00 00 [16:11:52]Write to MH i2c: E2 08 00 EB 3E 80 11 00 00 00 00 00 00 A3 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 17 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 17 00 EB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [16:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:52]wFMCommunicate OK [16:11:52]requested_item fd.num is exist - process it [16:11:52]SAM_PROTO_GetFieldsCounters [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 13 00 00 [16:11:52]Write to MH i2c: E2 08 00 EC 3E 80 13 00 00 00 00 00 00 A6 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 62 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 62 00 EC 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [16:11:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:52]wFMCommunicate OK [16:11:52]SAM_PROTO_GetFieldsCounters done [16:11:52]requested_item shift.num is exist - process it [16:11:52]requested_item shift.opened is exist - process it [16:11:52]req_shift_opened [16:11:52]FM_GetShiftState [16:11:52]SAM_PROTO_GetShiftState [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 13 01 00 [16:11:52]Write to MH i2c: E2 08 00 ED 3E 80 13 01 00 00 00 00 00 A8 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0E 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0E 00 ED 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 ED [16:11:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:11:52]wFMCommunicate OK [16:11:52]SAM_PROTO_GetShiftState done [16:11:52]FM_GetShiftState done [16:11:52]req_shift_opened done [16:11:52]requested_item shift.open_date is exist - process it [16:11:52]req_shift_open_date [16:11:52]req_shift_open_date done [16:11:52]produce_requested_data done [16:11:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73920,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:11:52]process_action_free close_receipt [16:11:52]json_value_free [16:11:52]json_value_free done [16:11:52]process_json_proto returns [16:11:52]Send response to host [16:11:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73920,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:11:52]free response buf [16:11:52]execute_script done [16:11:52]execute_script returns [16:11:52]free content buf [16:11:52]Sock 9.Close socket [16:11:52]Sock 9.Thread stoped [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:14]accept exits with 8 [16:12:14]New connection [16:12:14]New thread 3067432292 created [16:12:14]Thread 3067575652 joined [16:12:14]Waiting for new connection... [16:12:14] Sock 8.Parse request [16:12:14]Sock 8.Check first char [16:12:14]Sock 8.First char is OK [16:12:14]request: POST /json_proto HTTP/1.0 [16:12:14]Method: POST [16:12:14]URL: /json_proto [16:12:14]Method is POST - this is cgi request [16:12:14]url: /json_proto [16:12:14]query_string will be loaded in cgi processing [16:12:14]execute_cgi json_proto POST (null) [16:12:14]execute_cgi path=json_proto method=POST [16:12:14]POST find Content-Length [16:12:14]Host: 172.17.44.196:8080 [16:12:14]Content-Length: 679 [16:12:14]Content-Type: application/json [16:12:14] [16:12:14]POST finish read [16:12:14]Found Content-Length = 679 [16:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:14]execute_script... [16:12: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 : (1)1963123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:14]POST & json_proto [16:12:14]process_json_proto [16:12:14]json parsed OK: [16:12:14]protocol is kg_v1.0 [16:12:14]action value=close_receipt [16:12:14]process_action close_receipt [16:12:14]cmd_close_receipt [16:12:14]MH_GetDate [16:12:14]Write to MH i2c: F0 00 00 EE 3E 1B [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 09 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 09 00 EE 3E 00 E1 2B 15 67 E7 19 F8 65 09 [16:12:14]GetLastDocTimeStamp 1729440711 [16:12:14]current date 1729440737 [16:12:14]FM_GetShiftState [16:12:14]SAM_PROTO_GetShiftState [16:12:14]wFMCommunicate request_size=4 [16:12:14]MH_SAM_APDU [16:12:14]CAPDU: 80 13 01 00 [16:12:14]Write to MH i2c: E2 08 00 EF 3E 80 13 01 00 00 00 00 00 AA [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:14]Read from MH i2c: E2 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 EF 3E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EF [16:12:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:12:14]wFMCommunicate OK [16:12:14]SAM_PROTO_GetShiftState done [16:12:14]FM_GetShiftState done [16:12:14]opened in 1729384303 [16:12:14]opened+sec_in_day 1729470703 [16:12:14]quantity*price = 70044 [16:12:14]sum+1 = 70045 [16:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 247 20.10.2024 16:12 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73921 ФПД: 153423162808860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161217&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73921&fm=153423162808860&tin=02508201610067®Number=0000000000161154&sum=70000 [16:12:15]StoreToDocumentArchive [16:12:15]shift 170 fd 73921 [16:12:15]save to /storage/0170/doc_00073921 [16:12:15]save last doc name /storage/0170/doc_00073921 to /storage/kkm_last_doc_name [16:12:15]save OK [16:12:15]Clear old archive folders... [16:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:15]tlvbuf is 00390990 [16:12:15]SAM_PROTO_ClearQueue [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 09 00 00 [16:12:15]Write to MH i2c: E2 08 00 FC 3E 80 09 00 00 00 00 00 00 AC [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 FC 3E 00 90 00 AE [16:12:15]RAPDU: 90 00 [16:12:15]wFMCommunicate OK [16:12:15]SAM_PROTO_ClearQueue done [16:12:15]KKMCreateOFDPacket [16:12:15]OFDProtocolAddRootSTLVToBuf [16:12:15]FM_MakeSignedData [16:12:15]FM_MakeSignedData [16:12:15]SAM_PROTO_SignData [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 0D 01 02 [16:12:15]Write to MH i2c: E2 08 00 FD 3E 80 0D 01 02 00 00 00 00 B4 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 FD 3E 00 90 00 AF [16:12:15]RAPDU: 90 00 [16:12:15]wFMCommunicate OK [16:12:15]wFMCommunicate request_size=255 [16:12:15]MH_SAM_APDU [16:12:15]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 E1 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 20 01 00 35 04 06 00 8B [16:12:15]Write to MH i2c: E2 02 01 FE 3E 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 E1 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 20 01 00 35 04 06 00 8B 00 00 DC [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 FE 3E 00 90 00 B0 [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=10 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 02 02 05 89 9D 1E 9A 1C [16:12:16]Write to MH i2c: E2 0D 00 FF 3E 80 0D 02 02 05 00 89 9D 1E 9A 1C 00 00 BB [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 FF 3E 00 90 00 B1 [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 03 02 [16:12:16]Write to MH i2c: E2 08 00 00 3F 80 0D 03 02 00 00 00 00 BA [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 0B 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 0B 00 00 3F 00 5B AD 3D 16 4A 45 8D 08 90 00 3A [16:12:16]RAPDU: 5B AD 3D 16 4A 45 8D 08 90 00 [16:12:16]wFMCommunicate OK [16:12:16]SAM_PROTO_SignData done [16:12:16]FM_MakeSignedData done [16:12:16]CreateOFDProtocolMessage [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 11 00 00 [16:12:16]Write to MH i2c: E2 08 00 01 3F 80 11 00 00 00 00 00 00 BA [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 17 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 17 00 01 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [16:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:12:16]wFMCommunicate OK [16:12:16]CreateOFDProtocolMessage done [16:12:16]OFDSenderStorePacket 73921 [16:12:16]StoreOFDPacket docnum=73921 [16:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F9 6E 07 01 2B 96 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 E1 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 20 01 00 35 04 06 00 8B 89 9D 1E 9A 1C 5B AD 3D 16 4A 45 8D 08 [16:12:16]CheckFolder [16:12:16]dirname=/storage/ofd_packets [16:12:16]CheckFolder done [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00073921 [16:12:16]NVStorageSaveData ofd_packets/00073921 [16:12:16]File name is /storage/ofd_packets/00073921 [16:12:16]Write 301 bytes [16:12:16]NVStorageSaveData done [16:12:16]OFDSenderStorePacket done [16:12:16]KKMCreateOFDPacket done [16:12:16]NVStorageSaveData kkm_last_timestamp [16:12:16]File name is /storage/kkm_last_timestamp [16:12:16]Write 4 bytes [16:12:16]NVStorageSaveData done [16:12:16]ExternCall_PrintAddStr [16:12:16]wPrintStart [16:12:16]Write to MH i2c: 01 00 00 02 3F 41 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 02 3F 00 00 00 00 00 FF 0F 56 [16:12:16]RasterBufferAndPrint [16:12:16]line Счет N : (1)1963123 [16:12:16]line ИНН: 02508201610067 [16:12:16]line Контрольно-Кассовый Чек [16:12:16]line ПРОДАЖА [16:12:16]line ТРК (МРК, ГНК) : 63 [16:12:16]line Товар: 2710124130 [16:12:16]line Аи-92-К-5 [16:12:16]line 10.470 * 66.90 [16:12:16]line = 700.44 [16:12:16]line НДС 12% НСП 1% [16:12:16]line > о реализуемом товаре [16:12:16]line ОКРУГЛЕНИЕ: -0.44 [16:12:16]line ИТОГО: 700.00 [16:12:16]line Внесено: 700.00 [16:12:16]line СДАЧА: 0.00 [16:12:16]line НСП 1% : 6.20 [16:12:16]line НДС 12% : 74.38 [16:12:16]line Наличными: 700.00 [16:12:16]line Безнал.: 0.00 [16:12:16]line Место: АЗС № 133 "Партнер Нефть" [16:12:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:12:16]line СНО: Общий режим [16:12:16]line Чек 247 20.10.2024 16:12 [16:12:16]line Смена: 170 ФФД: 1.0 [16:12:16]line ЗНМ: 0300000020 [16:12:16]line РНМ: 0000000000161154 [16:12:16]line Версия ККМ: v1.0 [16:12:16]line ФМ: 0000000000963323 [16:12:16]line ФД: 73921 [16:12:16]line ФПД: 153423162808860 [16:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161217&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73921&fm=153423162808860&tin=02508201610067®Number=0000000000161154&sum=70000 [16:12:16]OFD Sender: Processing packet 73921 [packets to send 15, broken 14] [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00073921 [16:12:16]OFD Sender: To server: pG, [16:12:16]CommunicateWithHost lk.salyk.kg:30040 [16:12:16]ConnectInit lk.salyk.kg [16:12:16]written 0, free lines is 4095 [16:12:16]Connected sock=10 [16:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F9 6E 07 01 2B 96 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 E1 2B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 20 01 00 35 04 06 00 8B 89 9D 1E 9A 1C 5B AD 3D 16 4A 45 8D 08 [16:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 37 1E 47 00 EF 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 39 36 33 33 32 33 10 04 04 00 C1 20 01 00 F4 03 04 00 C5 D4 14 67 B6 04 01 00 00 9E FE 01 54 FC A2 B4 2B [16:12:16]CommunicateWithHost err = 0 [16:12:16]CheckOFDResponse [16:12:16]1017 (14) - 77093643461234 [16:12:16]1041 (16) - 0000000000963323 [16:12:16]1040 (4) - 73921 [16:12:16]1012 (4) - 20.10.2024 10:00 [16:12:16]1206 (1) - 0 [16:12:16]OFD Sender: Remove packet 73921 [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00073921 [16:12:16]NVStorageDeleteData [16:12:17]Write to MH i2c: 01 00 00 2C 3F 6B [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 2C 3F 00 00 00 00 00 BA 0C 38 [16:12:17]RasterBufferAndPrint [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]written 0, free lines is 3265 [16:12:17]MH_Cut [16:12:17]Write to MH i2c: D1 01 00 33 3F 01 44 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 01 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 01 00 33 3F 00 43 [16:12:17]Write to MH i2c: 01 00 00 34 3F 73 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]OFD Sender: No OFD packet to send [16:12:17]*** Cut start [16:12:17]*** Partial cut [16:12:17]*** CUTSNS_PIN = 1 [16:12:17]*** CUTSNS_PIN = 0 [16:12:18]*** Brake cut motor [16:12:18]Read from MH i2c: 01 [16:12:18]MH_I2C_Read... [16:12:18]*** Stop cut motor [16:12:18]*** Cut end [16:12:18]Read from MH i2c: 01 07 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: 01 07 00 34 3F 00 00 00 00 00 FF 0F 88 [16:12:18]process_action close_receipt done [16:12:18]requested_data is exist [16:12:18]produce_requested_data [16:12:18]requested_item fm.sn is exist - process it [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 11 00 00 [16:12:18]Write to MH i2c: E2 08 00 35 3F 80 11 00 00 00 00 00 00 EE [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 35 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [16:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:12:18]wFMCommunicate OK [16:12:18]requested_item fd.num is exist - process it [16:12:18]SAM_PROTO_GetFieldsCounters [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 13 00 00 [16:12:18]Write to MH i2c: E2 08 00 36 3F 80 13 00 00 00 00 00 00 F1 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 62 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 62 00 36 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_GetFieldsCounters done [16:12:18]requested_item shift.num is exist - process it [16:12:18]requested_item shift.opened is exist - process it [16:12:18]req_shift_opened [16:12:18]FM_GetShiftState [16:12:18]SAM_PROTO_GetShiftState [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 13 01 00 [16:12:18]Write to MH i2c: E2 08 00 37 3F 80 13 01 00 00 00 00 00 F3 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0E 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0E 00 37 3F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 38 [16:12:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_GetShiftState done [16:12:18]FM_GetShiftState done [16:12:18]req_shift_opened done [16:12:18]requested_item shift.open_date is exist - process it [16:12:18]req_shift_open_date [16:12:18]req_shift_open_date done [16:12:18]produce_requested_data done [16:12:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73921,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:12:18]process_action_free close_receipt [16:12:18]json_value_free [16:12:18]json_value_free done [16:12:18]process_json_proto returns [16:12:18]Send response to host [16:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73921,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:12:18]free response buf [16:12:18]execute_script done [16:12:18]execute_script returns [16:12:18]free content buf [16:12:18]Sock 8.Close socket [16:12:18]Sock 8.Thread stoped [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]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:28]accept exits with 9 [16:14:28]New connection [16:14:28]New thread 3067575652 created [16:14:28]Thread 3067432292 joined [16:14:28]Waiting for new connection... [16:14:28] Sock 9.Parse request [16:14:28]Sock 9.Check first char [16:14:28]Sock 9.First char is OK [16:14:28]request: POST /json_proto HTTP/1.0 [16:14:28]Method: POST [16:14:28]URL: /json_proto [16:14:28]Method is POST - this is cgi request [16:14:28]url: /json_proto [16:14:28]query_string will be loaded in cgi processing [16:14:28]execute_cgi json_proto POST (null) [16:14:28]execute_cgi path=json_proto method=POST [16:14:28]POST find Content-Length [16:14:28]Host: 172.17.44.196:8080 [16:14:28]Content-Length: 678 [16:14:28]Content-Type: application/json [16:14:28] [16:14:28]POST finish read [16:14:28]Found Content-Length = 678 [16:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:28]execute_script... [16:14: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 : (1)1963124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:28]POST & json_proto [16:14:28]process_json_proto [16:14:28]json parsed OK: [16:14:28]protocol is kg_v1.0 [16:14:28]action value=close_receipt [16:14:28]process_action close_receipt [16:14:28]cmd_close_receipt [16:14:28]MH_GetDate [16:14:28]Write to MH i2c: F0 00 00 38 3F 66 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: F0 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: F0 09 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: F0 09 00 38 3F 00 66 2C 15 67 E7 19 F8 65 DA [16:14:28]GetLastDocTimeStamp 1729440737 [16:14:28]current date 1729440870 [16:14:28]FM_GetShiftState [16:14:28]SAM_PROTO_GetShiftState [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 13 01 00 [16:14:28]Write to MH i2c: E2 08 00 39 3F 80 13 01 00 00 00 00 00 F5 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:28]Read from MH i2c: E2 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 0E 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 0E 00 39 3F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3A [16:14:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:14:28]wFMCommunicate OK [16:14:28]SAM_PROTO_GetShiftState done [16:14:28]FM_GetShiftState done [16:14:28]opened in 1729384303 [16:14:28]opened+sec_in_day 1729470703 [16:14:28]quantity*price = 22010 [16:14:28]sum+1 = 22011 [16:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 248 20.10.2024 16:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73922 ФПД: 193489771172487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73922&fm=193489771172487&tin=02508201610067®Number=0000000000161154&sum=22000 [16:14:29]StoreToDocumentArchive [16:14:29]shift 170 fd 73922 [16:14:29]save to /storage/0170/doc_00073922 [16:14:29]save last doc name /storage/0170/doc_00073922 to /storage/kkm_last_doc_name [16:14:29]save OK [16:14:29]Clear old archive folders... [16:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:29]tlvbuf is 00336620 [16:14:29]SAM_PROTO_ClearQueue [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 09 00 00 [16:14:29]Write to MH i2c: E2 08 00 46 3F 80 09 00 00 00 00 00 00 F7 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 46 3F 00 90 00 F9 [16:14:29]RAPDU: 90 00 [16:14:29]wFMCommunicate OK [16:14:29]SAM_PROTO_ClearQueue done [16:14:29]KKMCreateOFDPacket [16:14:29]OFDProtocolAddRootSTLVToBuf [16:14:29]FM_MakeSignedData [16:14:29]FM_MakeSignedData [16:14:29]SAM_PROTO_SignData [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 0D 01 02 [16:14:29]Write to MH i2c: E2 08 00 47 3F 80 0D 01 02 00 00 00 00 FF [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 47 3F 00 90 00 FA [16:14:29]RAPDU: 90 00 [16:14:29]wFMCommunicate OK [16:14:29]wFMCommunicate request_size=255 [16:14:29]MH_SAM_APDU [16:14:29]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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 66 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 20 01 00 35 04 06 00 AF [16:14:29]Write to MH i2c: E2 02 01 48 3F 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 66 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 20 01 00 35 04 06 00 AF 00 00 26 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 48 3F 00 90 00 FB [16:14:29]RAPDU: 90 00 [16:14:29]wFMCommunicate OK [16:14:29]wFMCommunicate request_size=10 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 0D 02 02 05 FA 59 14 12 87 [16:14:29]Write to MH i2c: E2 0D 00 49 3F 80 0D 02 02 05 00 FA 59 14 12 87 00 00 0C [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 03 00 49 3F 00 90 00 FC [16:14:29]RAPDU: 90 00 [16:14:29]wFMCommunicate OK [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 0D 03 02 [16:14:29]Write to MH i2c: E2 08 00 4A 3F 80 0D 03 02 00 00 00 00 04 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 0B 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 0B 00 4A 3F 00 4D B4 38 22 3A 8F 8B 0A 90 00 BE [16:14:29]RAPDU: 4D B4 38 22 3A 8F 8B 0A 90 00 [16:14:29]wFMCommunicate OK [16:14:29]SAM_PROTO_SignData done [16:14:29]FM_MakeSignedData done [16:14:29]CreateOFDProtocolMessage [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 11 00 00 [16:14:29]Write to MH i2c: E2 08 00 4B 3F 80 11 00 00 00 00 00 00 04 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:30]Read from MH i2c: E2 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: E2 17 00 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: E2 17 00 4B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [16:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:14:30]wFMCommunicate OK [16:14:30]CreateOFDProtocolMessage done [16:14:30]OFDSenderStorePacket 73922 [16:14:30]StoreOFDPacket docnum=73922 [16:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8C 63 07 01 60 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 66 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 20 01 00 35 04 06 00 AF FA 59 14 12 87 4D B4 38 22 3A 8F 8B 0A [16:14:30]CheckFolder [16:14:30]dirname=/storage/ofd_packets [16:14:30]CheckFolder done [16:14:30]ProducePacketName [16:14:30]name=ofd_packets/00073922 [16:14:30]NVStorageSaveData ofd_packets/00073922 [16:14:30]File name is /storage/ofd_packets/00073922 [16:14:30]Write 301 bytes [16:14:30]NVStorageSaveData done [16:14:30]OFDSenderStorePacket done [16:14:30]KKMCreateOFDPacket done [16:14:30]NVStorageSaveData kkm_last_timestamp [16:14:30]File name is /storage/kkm_last_timestamp [16:14:30]Write 4 bytes [16:14:30]NVStorageSaveData done [16:14:30]ExternCall_PrintAddStr [16:14:30]wPrintStart [16:14:30]Write to MH i2c: 01 00 00 4C 3F 8B [16:14:30]Write i2c OK [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: 01 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: 01 07 00 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: 01 07 00 4C 3F 00 00 00 00 00 FF 0F A0 [16:14:30]RasterBufferAndPrint [16:14:30]line Счет N : (1)1963124 [16:14:30]line ИНН: 02508201610067 [16:14:30]line Контрольно-Кассовый Чек [16:14:30]line ПРОДАЖА [16:14:30]line ТРК (МРК, ГНК) : 63 [16:14:30]line Товар: 2710124130 [16:14:30]line Аи-92-К-5 [16:14:30]line 3.290 * 66.90 [16:14:30]line = 220.10 [16:14:30]line НДС 12% НСП 1% [16:14:30]line > о реализуемом товаре [16:14:30]line ОКРУГЛЕНИЕ: -0.10 [16:14:30]line ИТОГО: 220.00 [16:14:30]line Внесено: 220.00 [16:14:30]line СДАЧА: 0.00 [16:14:30]line НСП 1% : 1.95 [16:14:30]line НДС 12% : 23.37 [16:14:30]line Наличными: 220.00 [16:14:30]line Безнал.: 0.00 [16:14:30]line Место: АЗС № 133 "Партнер Нефть" [16:14:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:14:30]line СНО: Общий режим [16:14:30]line Чек 248 20.10.2024 16:14 [16:14:30]line Смена: 170 ФФД: 1.0 [16:14:30]line ЗНМ: 0300000020 [16:14:30]line РНМ: 0000000000161154 [16:14:30]line Версия ККМ: v1.0 [16:14:30]line ФМ: 0000000000963323 [16:14:30]line ФД: 73922 [16:14:30]line ФПД: 193489771172487 [16:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73922&fm=193489771172487&tin=02508201610067®Number=0000000000161154&sum=22000 [16:14:30]OFD Sender: Processing packet 73922 [packets to send 15, broken 14] [16:14:30]ProducePacketName [16:14:30]name=ofd_packets/00073922 [16:14:30]OFD Sender: To server: pG, [16:14:30]CommunicateWithHost lk.salyk.kg:30040 [16:14:30]ConnectInit lk.salyk.kg [16:14:30]written 0, free lines is 4095 [16:14:30]Connected sock=10 [16:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8C 63 07 01 60 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 66 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 20 01 00 35 04 06 00 AF FA 59 14 12 87 4D B4 38 22 3A 8F 8B 0A [16:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 14 47 00 BD 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 39 36 33 33 32 33 10 04 04 00 C2 20 01 00 F4 03 04 00 4B D5 14 67 B6 04 01 00 00 63 27 4C 0B C6 AA BC A4 [16:14:30]CommunicateWithHost err = 0 [16:14:30]CheckOFDResponse [16:14:30]1017 (14) - 77093643461234 [16:14:30]1041 (16) - 0000000000963323 [16:14:30]1040 (4) - 73922 [16:14:30]1012 (4) - 20.10.2024 10:02 [16:14:30]1206 (1) - 0 [16:14:30]OFD Sender: Remove packet 73922 [16:14:30]ProducePacketName [16:14:30]name=ofd_packets/00073922 [16:14:30]NVStorageDeleteData [16:14:30]Write to MH i2c: 01 00 00 76 3F B5 [16:14:30]Write i2c OK [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: 01 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: 01 07 00 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: 01 07 00 76 3F 00 00 00 00 00 B5 0C 7D [16:14:30]RasterBufferAndPrint [16:14:30]line [16:14:30]line [16:14:30]line [16:14:30]line [16:14:30]line [16:14:30]written 0, free lines is 3256 [16:14:30]MH_Cut [16:14:30]Write to MH i2c: D1 01 00 7D 3F 01 8E [16:14:30]Write i2c OK [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: D1 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: D1 01 00 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: D1 01 00 7D 3F 00 8D [16:14:30]Write to MH i2c: 01 00 00 7E 3F BD [16:14:30]Write i2c OK [16:14:30]MH_I2C_Read... [16:14:31]OFD Sender: No OFD packet to send [16:14:31]*** Cut start [16:14:31]*** Partial cut [16:14:31]*** CUTSNS_PIN = 1 [16:14:31]*** CUTSNS_PIN = 0 [16:14:31]*** Brake cut motor [16:14:32]Read from MH i2c: 01 [16:14:32]MH_I2C_Read... [16:14:32]*** Stop cut motor [16:14:32]*** Cut end [16:14:32]Read from MH i2c: 01 07 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: 01 07 00 7E 3F 00 00 00 00 00 FF 0F D2 [16:14:32]process_action close_receipt done [16:14:32]requested_data is exist [16:14:32]produce_requested_data [16:14:32]requested_item fm.sn is exist - process it [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 11 00 00 [16:14:32]Write to MH i2c: E2 08 00 7F 3F 80 11 00 00 00 00 00 00 38 [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 17 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 17 00 7F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 85 [16:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:14:32]wFMCommunicate OK [16:14:32]requested_item fd.num is exist - process it [16:14:32]SAM_PROTO_GetFieldsCounters [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 13 00 00 [16:14:32]Write to MH i2c: E2 08 00 80 3F 80 13 00 00 00 00 00 00 3B [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 62 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 62 00 80 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:32]wFMCommunicate OK [16:14:32]SAM_PROTO_GetFieldsCounters done [16:14:32]requested_item shift.num is exist - process it [16:14:32]requested_item shift.opened is exist - process it [16:14:32]req_shift_opened [16:14:32]FM_GetShiftState [16:14:32]SAM_PROTO_GetShiftState [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 13 01 00 [16:14:32]Write to MH i2c: E2 08 00 81 3F 80 13 01 00 00 00 00 00 3D [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 0E 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 0E 00 81 3F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 82 [16:14:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:14:32]wFMCommunicate OK [16:14:32]SAM_PROTO_GetShiftState done [16:14:32]FM_GetShiftState done [16:14:32]req_shift_opened done [16:14:32]requested_item shift.open_date is exist - process it [16:14:32]req_shift_open_date [16:14:32]req_shift_open_date done [16:14:32]produce_requested_data done [16:14:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73922,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:14:32]process_action_free close_receipt [16:14:32]json_value_free [16:14:32]json_value_free done [16:14:32]process_json_proto returns [16:14:32]Send response to host [16:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73922,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:14:32]free response buf [16:14:32]execute_script done [16:14:32]execute_script returns [16:14:32]free content buf [16:14:32]Sock 9.Close socket [16:14:32]Sock 9.Thread stoped [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:55]accept exits with 8 [16:15:55]New connection [16:15:55]New thread 3067432292 created [16:15:55]Thread 3067575652 joined [16:15:55]Waiting for new connection... [16:15:55] Sock 8.Parse request [16:15:55]Sock 8.Check first char [16:15:55]Sock 8.First char is OK [16:15:55]request: POST /json_proto HTTP/1.0 [16:15:55]Method: POST [16:15:55]URL: /json_proto [16:15:55]Method is POST - this is cgi request [16:15:55]url: /json_proto [16:15:55]query_string will be loaded in cgi processing [16:15:55]execute_cgi json_proto POST (null) [16:15:55]execute_cgi path=json_proto method=POST [16:15:55]POST find Content-Length [16:15:55]Host: 172.17.44.196:8080 [16:15:55]Content-Length: 678 [16:15:55]Content-Type: application/json [16:15:55] [16:15:55]POST finish read [16:15:55]Found Content-Length = 678 [16:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963126", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [16:15:55]execute_script... [16:15: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)1963126", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [16:15:55]POST & json_proto [16:15:55]process_json_proto [16:15:55]json parsed OK: [16:15:55]protocol is kg_v1.0 [16:15:55]action value=close_receipt [16:15:55]process_action close_receipt [16:15:55]cmd_close_receipt [16:15:55]MH_GetDate [16:15:55]Write to MH i2c: F0 00 00 82 3F B0 [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: F0 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: F0 09 00 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: F0 09 00 82 3F 00 BD 2C 15 67 E7 19 F8 65 7B [16:15:55]GetLastDocTimeStamp 1729440870 [16:15:55]current date 1729440957 [16:15:55]FM_GetShiftState [16:15:55]SAM_PROTO_GetShiftState [16:15:55]wFMCommunicate request_size=4 [16:15:55]MH_SAM_APDU [16:15:55]CAPDU: 80 13 01 00 [16:15:55]Write to MH i2c: E2 08 00 83 3F 80 13 01 00 00 00 00 00 3F [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:55]Read from MH i2c: E2 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: E2 0E 00 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: E2 0E 00 83 3F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 84 [16:15:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:15:55]wFMCommunicate OK [16:15:55]SAM_PROTO_GetShiftState done [16:15:55]FM_GetShiftState done [16:15:55]opened in 1729384303 [16:15:55]opened+sec_in_day 1729470703 [16:15:55]quantity*price = 50041 [16:15:55]sum+1 = 50042 [16:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 249 20.10.2024 16:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73923 ФПД: 177502394012730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73923&fm=177502394012730&tin=02508201610067®Number=0000000000161154&sum=50000 [16:15:56]StoreToDocumentArchive [16:15:56]shift 170 fd 73923 [16:15:56]save to /storage/0170/doc_00073923 [16:15:56]save last doc name /storage/0170/doc_00073923 to /storage/kkm_last_doc_name [16:15:56]save OK [16:15:56]Clear old archive folders... [16:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:56]tlvbuf is 00322840 [16:15:56]SAM_PROTO_ClearQueue [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 09 00 00 [16:15:56]Write to MH i2c: E2 08 00 90 3F 80 09 00 00 00 00 00 00 41 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 90 3F 00 90 00 43 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_ClearQueue done [16:15:56]KKMCreateOFDPacket [16:15:56]OFDProtocolAddRootSTLVToBuf [16:15:56]FM_MakeSignedData [16:15:56]FM_MakeSignedData [16:15:56]SAM_PROTO_SignData [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 01 02 [16:15:56]Write to MH i2c: E2 08 00 91 3F 80 0D 01 02 00 00 00 00 49 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 91 3F 00 90 00 44 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]wFMCommunicate request_size=255 [16:15:56]MH_SAM_APDU [16:15:56]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F9 00 00 00 F4 03 04 00 BD 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 20 01 00 35 04 06 00 A1 [16:15:56]Write to MH i2c: E2 02 01 92 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F9 00 00 00 F4 03 04 00 BD 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 20 01 00 35 04 06 00 A1 00 00 58 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 92 3F 00 90 00 45 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]wFMCommunicate request_size=10 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 02 02 05 6F FF 24 54 3A [16:15:56]Write to MH i2c: E2 0D 00 93 3F 80 0D 02 02 05 00 6F FF 24 54 3A 00 00 76 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 03 00 93 3F 00 90 00 46 [16:15:56]RAPDU: 90 00 [16:15:56]wFMCommunicate OK [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 0D 03 02 [16:15:56]Write to MH i2c: E2 08 00 94 3F 80 0D 03 02 00 00 00 00 4E [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0B 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0B 00 94 3F 00 E6 08 4F 2F 21 AC 97 3D 90 00 5C [16:15:56]RAPDU: E6 08 4F 2F 21 AC 97 3D 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_SignData done [16:15:56]FM_MakeSignedData done [16:15:56]CreateOFDProtocolMessage [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 11 00 00 [16:15:56]Write to MH i2c: E2 08 00 95 3F 80 11 00 00 00 00 00 00 4E [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 17 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 17 00 95 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [16:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:15:56]wFMCommunicate OK [16:15:56]CreateOFDProtocolMessage done [16:15:56]OFDSenderStorePacket 73923 [16:15:56]StoreOFDPacket docnum=73923 [16:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A0 9B 07 01 5C CB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F9 00 00 00 F4 03 04 00 BD 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 20 01 00 35 04 06 00 A1 6F FF 24 54 3A E6 08 4F 2F 21 AC 97 3D [16:15:56]CheckFolder [16:15:56]dirname=/storage/ofd_packets [16:15:56]CheckFolder done [16:15:56]ProducePacketName [16:15:56]name=ofd_packets/00073923 [16:15:56]NVStorageSaveData ofd_packets/00073923 [16:15:56]File name is /storage/ofd_packets/00073923 [16:15:56]Write 301 bytes [16:15:56]NVStorageSaveData done [16:15:56]OFDSenderStorePacket done [16:15:56]KKMCreateOFDPacket done [16:15:56]NVStorageSaveData kkm_last_timestamp [16:15:56]File name is /storage/kkm_last_timestamp [16:15:56]Write 4 bytes [16:15:56]NVStorageSaveData done [16:15:56]OFD Sender: Processing packet 73923 [packets to send 15, broken 14] [16:15:56]ProducePacketName [16:15:56]name=ofd_packets/00073923 [16:15:56]OFD Sender: To server: pG, [16:15:56]CommunicateWithHost lk.salyk.kg:30040 [16:15:56]ConnectInit lk.salyk.kg [16:15:56]ExternCall_PrintAddStr [16:15:56]wPrintStart [16:15:56]Write to MH i2c: 01 00 00 96 3F D5 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 07 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 07 00 96 3F 00 00 00 00 00 FF 0F EA [16:15:56]RasterBufferAndPrint [16:15:56]line Счет N : (1)1963126 [16:15:56]line ИНН: 02508201610067 [16:15:56]line Контрольно-Кассовый Чек [16:15:56]line ПРОДАЖА [16:15:56]line ТРК (МРК, ГНК) : 33 [16:15:56]line Товар: 2710124130 [16:15:56]line Аи-92-К-5 [16:15:56]line 7.480 * 66.90 [16:15:56]line = 500.41 [16:15:56]line НДС 12% НСП 1% [16:15:56]line > о реализуемом товаре [16:15:56]line ОКРУГЛЕНИЕ: -0.41 [16:15:56]line ИТОГО: 500.00 [16:15:56]line Внесено: 500.00 [16:15:56]line СДАЧА: 0.00 [16:15:56]line НСП 1% : 4.43 [16:15:56]line НДС 12% : 53.14 [16:15:56]line Наличными: 500.00 [16:15:56]line Безнал.: 0.00 [16:15:56]line Место: АЗС № 133 "Партнер Нефть" [16:15:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:15:56]line СНО: Общий режим [16:15:56]line Чек 249 20.10.2024 16:15 [16:15:56]line Смена: 170 ФФД: 1.0 [16:15:56]line ЗНМ: 0300000020 [16:15:56]line РНМ: 0000000000161154 [16:15:56]line Версия ККМ: v1.0 [16:15:57]line ФМ: 0000000000963323 [16:15:57]line ФД: 73923 [16:15:57]line ФПД: 177502394012730 [16:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73923&fm=177502394012730&tin=02508201610067®Number=0000000000161154&sum=50000 [16:15:57]Connected sock=10 [16:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A0 9B 07 01 5C CB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 F9 00 00 00 F4 03 04 00 BD 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 20 01 00 35 04 06 00 A1 6F FF 24 54 3A E6 08 4F 2F 21 AC 97 3D [16:15:57]written 0, free lines is 4095 [16:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF 4D 47 00 98 A5 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 39 36 33 33 32 33 10 04 04 00 C3 20 01 00 F4 03 04 00 A1 D5 14 67 B6 04 01 00 00 DA C3 F9 52 28 B3 79 D9 [16:15:57]CommunicateWithHost err = 0 [16:15:57]CheckOFDResponse [16:15:57]1017 (14) - 77093643461234 [16:15:57]1041 (16) - 0000000000963323 [16:15:57]1040 (4) - 73923 [16:15:57]1012 (4) - 20.10.2024 10:04 [16:15:57]1206 (1) - 0 [16:15:57]OFD Sender: Remove packet 73923 [16:15:57]ProducePacketName [16:15:57]name=ofd_packets/00073923 [16:15:57]NVStorageDeleteData [16:15:57]Write to MH i2c: 01 00 00 C0 3F FF [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 C0 3F 00 00 00 00 00 B7 0C C9 [16:15:57]RasterBufferAndPrint [16:15:57]line [16:15:57]line [16:15:57]line [16:15:57]line [16:15:57]line [16:15:57]written 0, free lines is 3261 [16:15:57]MH_Cut [16:15:57]Write to MH i2c: D1 01 00 C7 3F 01 D8 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: D1 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: D1 01 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: D1 01 00 C7 3F 00 D7 [16:15:57]Write to MH i2c: 01 00 00 C8 3F 07 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:58]OFD Sender: No OFD packet to send [16:15:58]*** Cut start [16:15:58]*** Partial cut [16:15:58]*** CUTSNS_PIN = 1 [16:15:58]*** CUTSNS_PIN = 0 [16:15:58]*** Brake cut motor [16:15:59]Read from MH i2c: 01 [16:15:59]MH_I2C_Read... [16:15:59]*** Stop cut motor [16:15:59]*** Cut end [16:15:59]Read from MH i2c: 01 07 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: 01 07 00 C8 3F 00 00 00 00 00 FF 0F 1C [16:15:59]process_action close_receipt done [16:15:59]requested_data is exist [16:15:59]produce_requested_data [16:15:59]requested_item fm.sn is exist - process it [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 11 00 00 [16:15:59]Write to MH i2c: E2 08 00 C9 3F 80 11 00 00 00 00 00 00 82 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 17 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 17 00 C9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CF [16:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:15:59]wFMCommunicate OK [16:15:59]requested_item fd.num is exist - process it [16:15:59]SAM_PROTO_GetFieldsCounters [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 13 00 00 [16:15:59]Write to MH i2c: E2 08 00 CA 3F 80 13 00 00 00 00 00 00 85 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 62 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 62 00 CA 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:59]wFMCommunicate OK [16:15:59]SAM_PROTO_GetFieldsCounters done [16:15:59]requested_item shift.num is exist - process it [16:15:59]requested_item shift.opened is exist - process it [16:15:59]req_shift_opened [16:15:59]FM_GetShiftState [16:15:59]SAM_PROTO_GetShiftState [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 13 01 00 [16:15:59]Write to MH i2c: E2 08 00 CB 3F 80 13 01 00 00 00 00 00 87 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0E 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0E 00 CB 3F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CC [16:15:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:15:59]wFMCommunicate OK [16:15:59]SAM_PROTO_GetShiftState done [16:15:59]FM_GetShiftState done [16:15:59]req_shift_opened done [16:15:59]requested_item shift.open_date is exist - process it [16:15:59]req_shift_open_date [16:15:59]req_shift_open_date done [16:15:59]produce_requested_data done [16:15:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73923,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:15:59]process_action_free close_receipt [16:15:59]json_value_free [16:15:59]json_value_free done [16:15:59]process_json_proto returns [16:15:59]Send response to host [16:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73923,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:15:59]free response buf [16:15:59]execute_script done [16:15:59]execute_script returns [16:15:59]free content buf [16:15:59]Sock 8.Close socket [16:15:59]Sock 8.Thread stoped [16:16:00]accept exits with 9 [16:16:00]New connection [16:16:00]New thread 3067575652 created [16:16:00]Thread 3067432292 joined [16:16:00]Waiting for new connection... [16:16:00] Sock 9.Parse request [16:16:00]Sock 9.Check first char [16:16:00]Sock 9.First char is OK [16:16:00]request: POST /json_proto HTTP/1.0 [16:16:00]Method: POST [16:16:00]URL: /json_proto [16:16:00]Method is POST - this is cgi request [16:16:00]url: /json_proto [16:16:00]query_string will be loaded in cgi processing [16:16:00]execute_cgi json_proto POST (null) [16:16:00]execute_cgi path=json_proto method=POST [16:16:00]POST find Content-Length [16:16:00]Host: 172.17.44.196:8080 [16:16:00]Content-Length: 683 [16:16:00]Content-Type: application/json [16:16:00] [16:16:00]POST finish read [16:16:00]Found Content-Length = 683 [16:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [16:16:00]execute_script... [16:16: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 : (1)1963125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [16:16:00]POST & json_proto [16:16:00]process_json_proto [16:16:00]json parsed OK: [16:16:00]protocol is kg_v1.0 [16:16:00]action value=close_receipt [16:16:00]process_action close_receipt [16:16:00]cmd_close_receipt [16:16:00]MH_GetDate [16:16:00]Write to MH i2c: F0 00 00 CC 3F FA [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: F0 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: F0 09 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: F0 09 00 CC 3F 00 C2 2C 15 67 E7 19 F8 65 CA [16:16:00]GetLastDocTimeStamp 1729440957 [16:16:00]current date 1729440962 [16:16:00]FM_GetShiftState [16:16:00]SAM_PROTO_GetShiftState [16:16:00]wFMCommunicate request_size=4 [16:16:00]MH_SAM_APDU [16:16:00]CAPDU: 80 13 01 00 [16:16:00]Write to MH i2c: E2 08 00 CD 3F 80 13 01 00 00 00 00 00 89 [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:00]Read from MH i2c: E2 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 0E 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 0E 00 CD 3F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CE [16:16:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:16:00]wFMCommunicate OK [16:16:00]SAM_PROTO_GetShiftState done [16:16:00]FM_GetShiftState done [16:16:00]opened in 1729384303 [16:16:00]opened+sec_in_day 1729470703 [16:16:00]quantity*price = 100021 [16:16:00]sum+1 = 100023 [16:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 250 20.10.2024 16:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73924 ФПД: 75127466151569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161602&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73924&fm=75127466151569&tin=02508201610067®Number=0000000000161154&sum=100000 [16:16:01]StoreToDocumentArchive [16:16:01]shift 170 fd 73924 [16:16:01]save to /storage/0170/doc_00073924 [16:16:01]save last doc name /storage/0170/doc_00073924 to /storage/kkm_last_doc_name [16:16:01]save OK [16:16:01]Clear old archive folders... [16:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:01]tlvbuf is 003D1CD0 [16:16:01]SAM_PROTO_ClearQueue [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 09 00 00 [16:16:01]Write to MH i2c: E2 08 00 DA 3F 80 09 00 00 00 00 00 00 8B [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 DA 3F 00 90 00 8D [16:16:01]RAPDU: 90 00 [16:16:01]wFMCommunicate OK [16:16:01]SAM_PROTO_ClearQueue done [16:16:01]KKMCreateOFDPacket [16:16:01]OFDProtocolAddRootSTLVToBuf [16:16:01]FM_MakeSignedData [16:16:01]FM_MakeSignedData [16:16:01]SAM_PROTO_SignData [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 0D 01 02 [16:16:01]Write to MH i2c: E2 08 00 DB 3F 80 0D 01 02 00 00 00 00 93 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 03 00 DB 3F 00 90 00 8E [16:16:01]RAPDU: 90 00 [16:16:01]wFMCommunicate OK [16:16:01]wFMCommunicate request_size=255 [16:16:01]MH_SAM_APDU [16:16:01]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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 FA 00 00 00 F4 03 04 00 C2 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 20 01 00 35 04 06 00 44 [16:16:01]Write to MH i2c: E2 02 01 DC 3F 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 FA 00 00 00 F4 03 04 00 C2 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 20 01 00 35 04 06 00 44 00 00 69 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:02]Read from MH i2c: E2 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 03 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 03 00 DC 3F 00 90 00 8F [16:16:02]RAPDU: 90 00 [16:16:02]wFMCommunicate OK [16:16:02]wFMCommunicate request_size=10 [16:16:02]MH_SAM_APDU [16:16:02]CAPDU: 80 0D 02 02 05 53 F9 EE CE 91 [16:16:02]Write to MH i2c: E2 0D 00 DD 3F 80 0D 02 02 05 00 53 F9 EE CE 91 00 00 39 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:02]Read from MH i2c: E2 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 03 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 03 00 DD 3F 00 90 00 90 [16:16:02]RAPDU: 90 00 [16:16:02]wFMCommunicate OK [16:16:02]wFMCommunicate request_size=4 [16:16:02]MH_SAM_APDU [16:16:02]CAPDU: 80 0D 03 02 [16:16:02]Write to MH i2c: E2 08 00 DE 3F 80 0D 03 02 00 00 00 00 98 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:02]Read from MH i2c: E2 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 0B 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 0B 00 DE 3F 00 74 95 A4 BA EC 2D 0D 5E 90 00 84 [16:16:02]RAPDU: 74 95 A4 BA EC 2D 0D 5E 90 00 [16:16:02]wFMCommunicate OK [16:16:02]SAM_PROTO_SignData done [16:16:02]FM_MakeSignedData done [16:16:02]CreateOFDProtocolMessage [16:16:02]wFMCommunicate request_size=4 [16:16:02]MH_SAM_APDU [16:16:02]CAPDU: 80 11 00 00 [16:16:02]Write to MH i2c: E2 08 00 DF 3F 80 11 00 00 00 00 00 00 98 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:02]Read from MH i2c: E2 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 17 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: E2 17 00 DF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [16:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:16:02]wFMCommunicate OK [16:16:02]CreateOFDProtocolMessage done [16:16:02]OFDSenderStorePacket 73924 [16:16:02]StoreOFDPacket docnum=73924 [16:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D8 D3 07 01 95 F8 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 FA 00 00 00 F4 03 04 00 C2 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 20 01 00 35 04 06 00 44 53 F9 EE CE 91 74 95 A4 BA EC 2D 0D 5E [16:16:02]CheckFolder [16:16:02]dirname=/storage/ofd_packets [16:16:02]CheckFolder done [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00073924 [16:16:02]NVStorageSaveData ofd_packets/00073924 [16:16:02]File name is /storage/ofd_packets/00073924 [16:16:02]Write 301 bytes [16:16:02]NVStorageSaveData done [16:16:02]OFDSenderStorePacket done [16:16:02]KKMCreateOFDPacket done [16:16:02]NVStorageSaveData kkm_last_timestamp [16:16:02]File name is /storage/kkm_last_timestamp [16:16:02]Write 4 bytes [16:16:02]NVStorageSaveData done [16:16:02]ExternCall_PrintAddStr [16:16:02]wPrintStart [16:16:02]Write to MH i2c: 01 00 00 E0 3F 1F [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 E0 3F 00 00 00 00 00 FF 0F 34 [16:16:02]RasterBufferAndPrint [16:16:02]line Счет N : (1)1963125 [16:16:02]line ИНН: 02508201610067 [16:16:02]line Контрольно-Кассовый Чек [16:16:02]line ПРОДАЖА [16:16:02]line ТРК (МРК, ГНК) : 54 [16:16:02]line Товар: 2710124500 [16:16:02]line Аи-95-К-5 [16:16:02]line 13.480 * 74.20 [16:16:02]line = 1000.22 [16:16:02]line НДС 12% НСП 1% [16:16:02]line > о реализуемом товаре [16:16:02]line ОКРУГЛЕНИЕ: -0.22 [16:16:02]line ИТОГО: 1000.00 [16:16:02]line Внесено: 1000.00 [16:16:02]line СДАЧА: 0.00 [16:16:02]line НСП 1% : 8.85 [16:16:02]line НДС 12% : 106.22 [16:16:02]line Наличными: 1000.00 [16:16:02]line Безнал.: 0.00 [16:16:02]line Место: АЗС № 133 "Партнер Нефть" [16:16:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:16:02]line СНО: Общий режим [16:16:02]line Чек 250 20.10.2024 16:16 [16:16:02]line Смена: 170 ФФД: 1.0 [16:16:02]line ЗНМ: 0300000020 [16:16:02]line РНМ: 0000000000161154 [16:16:02]line Версия ККМ: v1.0 [16:16:02]line ФМ: 0000000000963323 [16:16:02]line ФД: 73924 [16:16:02]line ФПД: 75127466151569 [16:16:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161602&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73924&fm=75127466151569&tin=02508201610067®Number=0000000000161154&sum=100000 [16:16:02]OFD Sender: Processing packet 73924 [packets to send 15, broken 14] [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00073924 [16:16:02]OFD Sender: To server: pG, [16:16:02]CommunicateWithHost lk.salyk.kg:30040 [16:16:02]ConnectInit lk.salyk.kg [16:16:02]written 0, free lines is 4095 [16:16:02]Connected sock=10 [16:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D8 D3 07 01 95 F8 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 FA 00 00 00 F4 03 04 00 C2 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 20 01 00 35 04 06 00 44 53 F9 EE CE 91 74 95 A4 BA EC 2D 0D 5E [16:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 06 6D 47 00 9C C6 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 39 36 33 33 32 33 10 04 04 00 C4 20 01 00 F4 03 04 00 A7 D5 14 67 B6 04 01 00 00 01 7F 65 13 DE 98 9F 49 [16:16:02]CommunicateWithHost err = 0 [16:16:02]CheckOFDResponse [16:16:02]1017 (14) - 77093643461234 [16:16:02]1041 (16) - 0000000000963323 [16:16:02]1040 (4) - 73924 [16:16:02]1012 (4) - 20.10.2024 10:04 [16:16:02]1206 (1) - 0 [16:16:02]OFD Sender: Remove packet 73924 [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00073924 [16:16:02]NVStorageDeleteData [16:16:02]Write to MH i2c: 01 00 00 0A 40 4A [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 0A 40 00 00 00 00 00 BA 0C 17 [16:16:02]RasterBufferAndPrint [16:16:02]line [16:16:02]line [16:16:02]line [16:16:02]line [16:16:02]line [16:16:02]written 0, free lines is 3271 [16:16:02]MH_Cut [16:16:02]Write to MH i2c: D1 01 00 11 40 01 23 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: D1 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: D1 01 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: D1 01 00 11 40 00 22 [16:16:02]Write to MH i2c: 01 00 00 12 40 52 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:03]OFD Sender: No OFD packet to send [16:16:03]*** Cut start [16:16:03]*** Partial cut [16:16:03]*** CUTSNS_PIN = 1 [16:16:03]*** CUTSNS_PIN = 0 [16:16:03]*** Brake cut motor [16:16:04]Read from MH i2c: 01 [16:16:04]MH_I2C_Read... [16:16:04]*** Stop cut motor [16:16:04]*** Cut end [16:16:04]Read from MH i2c: 01 07 00 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: 01 07 00 12 40 00 00 00 00 00 FF 0F 67 [16:16:04]process_action close_receipt done [16:16:04]requested_data is exist [16:16:04]produce_requested_data [16:16:04]requested_item fm.sn is exist - process it [16:16:04]wFMCommunicate request_size=4 [16:16:04]MH_SAM_APDU [16:16:04]CAPDU: 80 11 00 00 [16:16:04]Write to MH i2c: E2 08 00 13 40 80 11 00 00 00 00 00 00 CD [16:16:04]Write i2c OK [16:16:04]MH_I2C_Read... [16:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:04]Read from MH i2c: E2 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 17 00 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 17 00 13 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [16:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:16:04]wFMCommunicate OK [16:16:04]requested_item fd.num is exist - process it [16:16:04]SAM_PROTO_GetFieldsCounters [16:16:04]wFMCommunicate request_size=4 [16:16:04]MH_SAM_APDU [16:16:04]CAPDU: 80 13 00 00 [16:16:04]Write to MH i2c: E2 08 00 14 40 80 13 00 00 00 00 00 00 D0 [16:16:04]Write i2c OK [16:16:04]MH_I2C_Read... [16:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:04]Read from MH i2c: E2 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 62 00 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 62 00 14 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [16:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:04]wFMCommunicate OK [16:16:04]SAM_PROTO_GetFieldsCounters done [16:16:04]requested_item shift.num is exist - process it [16:16:04]requested_item shift.opened is exist - process it [16:16:04]req_shift_opened [16:16:04]FM_GetShiftState [16:16:04]SAM_PROTO_GetShiftState [16:16:04]wFMCommunicate request_size=4 [16:16:04]MH_SAM_APDU [16:16:04]CAPDU: 80 13 01 00 [16:16:04]Write to MH i2c: E2 08 00 15 40 80 13 01 00 00 00 00 00 D2 [16:16:04]Write i2c OK [16:16:04]MH_I2C_Read... [16:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:04]Read from MH i2c: E2 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 0E 00 [16:16:04]MH_I2C_Read... [16:16:04]Read from MH i2c: E2 0E 00 15 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 17 [16:16:04]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:16:04]wFMCommunicate OK [16:16:04]SAM_PROTO_GetShiftState done [16:16:04]FM_GetShiftState done [16:16:04]req_shift_opened done [16:16:04]requested_item shift.open_date is exist - process it [16:16:04]req_shift_open_date [16:16:04]req_shift_open_date done [16:16:04]produce_requested_data done [16:16:04]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73924,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:16:04]process_action_free close_receipt [16:16:04]json_value_free [16:16:04]json_value_free done [16:16:04]process_json_proto returns [16:16:04]Send response to host [16:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73924,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:16:04]free response buf [16:16:04]execute_script done [16:16:04]execute_script returns [16:16:04]free content buf [16:16:04]Sock 9.Close socket [16:16:04]Sock 9.Thread stoped [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:22]accept exits with 8 [16:16:22]New connection [16:16:22]New thread 3067432292 created [16:16:22]Thread 3067575652 joined [16:16:22]Waiting for new connection... [16:16:22] Sock 8.Parse request [16:16:22]Sock 8.Check first char [16:16:22]Sock 8.First char is OK [16:16:22]request: POST /json_proto HTTP/1.0 [16:16:22]Method: POST [16:16:22]URL: /json_proto [16:16:22]Method is POST - this is cgi request [16:16:22]url: /json_proto [16:16:22]query_string will be loaded in cgi processing [16:16:22]execute_cgi json_proto POST (null) [16:16:22]execute_cgi path=json_proto method=POST [16:16:22]POST find Content-Length [16:16:22]Host: 172.17.44.196:8080 [16:16:22]Content-Length: 675 [16:16:22]Content-Type: application/json [16:16:22] [16:16:22]POST finish read [16:16:22]Found Content-Length = 675 [16:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [16:16:22]execute_script... [16:16: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 : (1)1963127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [16:16:22]POST & json_proto [16:16:22]process_json_proto [16:16:22]json parsed OK: [16:16:22]protocol is kg_v1.0 [16:16:22]action value=close_receipt [16:16:22]process_action close_receipt [16:16:22]cmd_close_receipt [16:16:22]MH_GetDate [16:16:22]Write to MH i2c: F0 00 00 16 40 45 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: F0 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: F0 09 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: F0 09 00 16 40 00 D8 2C 15 67 E7 19 F8 65 2B [16:16:22]GetLastDocTimeStamp 1729440962 [16:16:22]current date 1729440984 [16:16:22]FM_GetShiftState [16:16:22]SAM_PROTO_GetShiftState [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 13 01 00 [16:16:22]Write to MH i2c: E2 08 00 17 40 80 13 01 00 00 00 00 00 D4 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 0E 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 0E 00 17 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 19 [16:16:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:16:22]wFMCommunicate OK [16:16:22]SAM_PROTO_GetShiftState done [16:16:22]FM_GetShiftState done [16:16:22]opened in 1729384303 [16:16:22]opened+sec_in_day 1729470703 [16:16:22]quantity*price = 50063 [16:16:22]sum+1 = 50064 [16:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 251 20.10.2024 16:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73925 ФПД: 170751735772260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161624&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73925&fm=170751735772260&tin=02508201610067®Number=0000000000161154&sum=50000 [16:16:23]StoreToDocumentArchive [16:16:23]shift 170 fd 73925 [16:16:23]save to /storage/0170/doc_00073925 [16:16:23]save last doc name /storage/0170/doc_00073925 to /storage/kkm_last_doc_name [16:16:23]save OK [16:16:23]Clear old archive folders... [16:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:16:23]tlvbuf is 003E6A90 [16:16:23]SAM_PROTO_ClearQueue [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 09 00 00 [16:16:23]Write to MH i2c: E2 08 00 24 40 80 09 00 00 00 00 00 00 D6 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 24 40 00 90 00 D8 [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]SAM_PROTO_ClearQueue done [16:16:23]KKMCreateOFDPacket [16:16:23]OFDProtocolAddRootSTLVToBuf [16:16:23]FM_MakeSignedData [16:16:23]FM_MakeSignedData [16:16:23]SAM_PROTO_SignData [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 01 02 [16:16:23]Write to MH i2c: E2 08 00 25 40 80 0D 01 02 00 00 00 00 DE [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 25 40 00 90 00 D9 [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=255 [16:16:23]MH_SAM_APDU [16:16:23]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FB 00 00 00 F4 03 04 00 D8 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 20 01 00 35 04 06 00 9B 4C 3C 8E [16:16:23]Write to MH i2c: E2 02 01 26 40 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FB 00 00 00 F4 03 04 00 D8 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 20 01 00 35 04 06 00 9B 4C 3C 8E 00 00 9A [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 26 40 00 90 00 DA [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=7 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 02 02 02 34 64 [16:16:23]Write to MH i2c: E2 0A 00 27 40 80 0D 02 02 02 00 34 64 00 00 7D [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 03 02 [16:16:23]Write to MH i2c: E2 08 00 28 40 80 0D 03 02 00 00 00 00 E3 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0B 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0B 00 28 40 00 3A 1D 4E D8 6A 30 E9 DE 90 00 C2 [16:16:23]RAPDU: 3A 1D 4E D8 6A 30 E9 DE 90 00 [16:16:23]wFMCommunicate OK [16:16:23]SAM_PROTO_SignData done [16:16:23]FM_MakeSignedData done [16:16:23]CreateOFDProtocolMessage [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 11 00 00 [16:16:23]Write to MH i2c: E2 08 00 29 40 80 11 00 00 00 00 00 00 E3 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 17 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 17 00 29 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [16:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:16:23]wFMCommunicate OK [16:16:23]CreateOFDProtocolMessage done [16:16:23]OFDSenderStorePacket 73925 [16:16:23]StoreOFDPacket docnum=73925 [16:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 56 E5 04 01 A9 91 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FB 00 00 00 F4 03 04 00 D8 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 20 01 00 35 04 06 00 9B 4C 3C 8E 34 64 3A 1D 4E D8 6A 30 E9 DE [16:16:23]CheckFolder [16:16:23]dirname=/storage/ofd_packets [16:16:23]CheckFolder done [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00073925 [16:16:23]NVStorageSaveData ofd_packets/00073925 [16:16:23]File name is /storage/ofd_packets/00073925 [16:16:23]Write 298 bytes [16:16:23]NVStorageSaveData done [16:16:23]OFDSenderStorePacket done [16:16:23]KKMCreateOFDPacket done [16:16:23]NVStorageSaveData kkm_last_timestamp [16:16:23]File name is /storage/kkm_last_timestamp [16:16:23]Write 4 bytes [16:16:23]NVStorageSaveData done [16:16:23]ExternCall_PrintAddStr [16:16:23]wPrintStart [16:16:23]Write to MH i2c: 01 00 00 2A 40 6A [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 07 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 07 00 2A 40 00 00 00 00 00 FF 0F 7F [16:16:23]RasterBufferAndPrint [16:16:23]line Счет N : (1)1963127 [16:16:23]line ИНН: 02508201610067 [16:16:23]line Контрольно-Кассовый Чек [16:16:23]line ПРОДАЖА [16:16:23]line ТРК (МРК, ГНК) : 21 [16:16:23]line Товар: 2710194210 [16:16:23]line ДТ-К-5 [16:16:23]line 6.570 * 76.20 [16:16:23]line = 500.63 [16:16:23]line НДС 12% НСП 1% [16:16:23]line > о реализуемом товаре [16:16:23]line ОКРУГЛЕНИЕ: -0.63 [16:16:23]line ИТОГО: 500.00 [16:16:23]line Внесено: 500.00 [16:16:23]line СДАЧА: 0.00 [16:16:23]line НСП 1% : 4.43 [16:16:23]line НДС 12% : 53.16 [16:16:23]line Наличными: 500.00 [16:16:23]line Безнал.: 0.00 [16:16:23]line Место: АЗС № 133 "Партнер Нефть" [16:16:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:16:23]line СНО: Общий режим [16:16:23]line Чек 251 20.10.2024 16:16 [16:16:23]line Смена: 170 ФФД: 1.0 [16:16:23]line ЗНМ: 0300000020 [16:16:23]line РНМ: 0000000000161154 [16:16:23]line Версия ККМ: v1.0 [16:16:23]line ФМ: 0000000000963323 [16:16:23]line ФД: 73925 [16:16:23]line ФПД: 170751735772260 [16:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161624&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73925&fm=170751735772260&tin=02508201610067®Number=0000000000161154&sum=50000 [16:16:23]OFD Sender: Processing packet 73925 [packets to send 15, broken 14] [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00073925 [16:16:23]OFD Sender: To server: pG, [16:16:23]CommunicateWithHost lk.salyk.kg:30040 [16:16:23]ConnectInit lk.salyk.kg [16:16:23]written 0, free lines is 4095 [16:16:23]Connected sock=10 [16:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 56 E5 04 01 A9 91 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 FB 00 00 00 F4 03 04 00 D8 2C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 20 01 00 35 04 06 00 9B 4C 3C 8E 34 64 3A 1D 4E D8 6A 30 E9 DE [16:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3D A3 47 00 32 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 39 36 33 33 32 33 10 04 04 00 C5 20 01 00 F4 03 04 00 BC D5 14 67 B6 04 01 00 00 5E 57 28 A3 B7 D9 FE 12 [16:16:24]CommunicateWithHost err = 0 [16:16:24]CheckOFDResponse [16:16:24]1017 (14) - 77093643461234 [16:16:24]1041 (16) - 0000000000963323 [16:16:24]1040 (4) - 73925 [16:16:24]1012 (4) - 20.10.2024 10:04 [16:16:24]1206 (1) - 0 [16:16:24]OFD Sender: Remove packet 73925 [16:16:24]ProducePacketName [16:16:24]name=ofd_packets/00073925 [16:16:24]NVStorageDeleteData [16:16:24]Write to MH i2c: 01 00 00 54 40 94 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 07 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 07 00 54 40 00 00 00 00 00 C1 0C 68 [16:16:24]RasterBufferAndPrint [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]written 0, free lines is 3273 [16:16:24]MH_Cut [16:16:24]Write to MH i2c: D1 01 00 5B 40 01 6D [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 01 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 01 00 5B 40 00 6C [16:16:24]Write to MH i2c: 01 00 00 5C 40 9C [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]OFD Sender: No OFD packet to send [16:16:25]*** Cut start [16:16:25]*** Partial cut [16:16:25]*** CUTSNS_PIN = 1 [16:16:25]*** CUTSNS_PIN = 0 [16:16:25]*** Brake cut motor [16:16:25]Read from MH i2c: 01 [16:16:25]MH_I2C_Read... [16:16:25]*** Stop cut motor [16:16:25]*** Cut end [16:16:25]Read from MH i2c: 01 07 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: 01 07 00 5C 40 00 00 00 00 00 FF 0F B1 [16:16:25]process_action close_receipt done [16:16:25]requested_data is exist [16:16:25]produce_requested_data [16:16:25]requested_item fm.sn is exist - process it [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 11 00 00 [16:16:25]Write to MH i2c: E2 08 00 5D 40 80 11 00 00 00 00 00 00 17 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 5D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 64 [16:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:16:25]wFMCommunicate OK [16:16:25]requested_item fd.num is exist - process it [16:16:25]SAM_PROTO_GetFieldsCounters [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 00 00 [16:16:25]Write to MH i2c: E2 08 00 5E 40 80 13 00 00 00 00 00 00 1A [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 62 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 62 00 5E 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [16:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_GetFieldsCounters done [16:16:25]requested_item shift.num is exist - process it [16:16:25]requested_item shift.opened is exist - process it [16:16:25]req_shift_opened [16:16:25]FM_GetShiftState [16:16:25]SAM_PROTO_GetShiftState [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 01 00 [16:16:25]Write to MH i2c: E2 08 00 5F 40 80 13 01 00 00 00 00 00 1C [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 0E 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 0E 00 5F 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 61 [16:16:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:16:26]wFMCommunicate OK [16:16:26]SAM_PROTO_GetShiftState done [16:16:26]FM_GetShiftState done [16:16:26]req_shift_opened done [16:16:26]requested_item shift.open_date is exist - process it [16:16:26]req_shift_open_date [16:16:26]req_shift_open_date done [16:16:26]produce_requested_data done [16:16:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73925,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:16:26]process_action_free close_receipt [16:16:26]json_value_free [16:16:26]json_value_free done [16:16:26]process_json_proto returns [16:16:26]Send response to host [16:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73925,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:16:26]free response buf [16:16:26]execute_script done [16:16:26]execute_script returns [16:16:26]free content buf [16:16:26]Sock 8.Close socket [16:16:26]Sock 8.Thread stoped [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:26]accept exits with 9 [16:17:26]New connection [16:17:26]New thread 3067575652 created [16:17:26]Thread 3067432292 joined [16:17:26]Waiting for new connection... [16:17:26] Sock 9.Parse request [16:17:26]Sock 9.Check first char [16:17:26]Sock 9.First char is OK [16:17:26]request: POST /json_proto HTTP/1.0 [16:17:26]Method: POST [16:17:26]URL: /json_proto [16:17:26]Method is POST - this is cgi request [16:17:26]url: /json_proto [16:17:26]query_string will be loaded in cgi processing [16:17:26]execute_cgi json_proto POST (null) [16:17:26]execute_cgi path=json_proto method=POST [16:17:26]POST find Content-Length [16:17:26]Host: 172.17.44.196:8080 [16:17:26]Content-Length: 706 [16:17:26]Content-Type: application/json [16:17:26] [16:17:26]POST finish read [16:17:26]Found Content-Length = 706 [16:17:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272815", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:26]execute_script... [16:17: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)272815", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:26]POST & json_proto [16:17:26]process_json_proto [16:17:26]json parsed OK: [16:17:26]protocol is kg_v1.0 [16:17:26]action value=close_receipt [16:17:26]process_action close_receipt [16:17:26]cmd_close_receipt [16:17:26]MH_GetDate [16:17:26]Write to MH i2c: F0 00 00 60 40 8F [16:17:26]Write i2c OK [16:17:26]MH_I2C_Read... [16:17:26]Read from MH i2c: F0 [16:17:26]MH_I2C_Read... [16:17:26]Read from MH i2c: F0 09 00 [16:17:26]MH_I2C_Read... [16:17:26]Read from MH i2c: F0 09 00 60 40 00 18 2D 15 67 E7 19 F8 65 B6 [16:17:26]GetLastDocTimeStamp 1729440984 [16:17:26]current date 1729441048 [16:17:26]FM_GetShiftState [16:17:26]SAM_PROTO_GetShiftState [16:17:26]wFMCommunicate request_size=4 [16:17:26]MH_SAM_APDU [16:17:26]CAPDU: 80 13 01 00 [16:17:26]Write to MH i2c: E2 08 00 61 40 80 13 01 00 00 00 00 00 1E [16:17:26]Write i2c OK [16:17:26]MH_I2C_Read... [16:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:26]Read from MH i2c: E2 [16:17:26]MH_I2C_Read... [16:17:26]Read from MH i2c: E2 0E 00 [16:17:26]MH_I2C_Read... [16:17:26]Read from MH i2c: E2 0E 00 61 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 63 [16:17:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:17:26]wFMCommunicate OK [16:17:26]SAM_PROTO_GetShiftState done [16:17:26]FM_GetShiftState done [16:17:26]opened in 1729384303 [16:17:26]opened+sec_in_day 1729470703 [16:17:26]quantity*price = 6500 [16:17:26]sum+1 = 6501 [16:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 252 20.10.2024 16:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73926 ФПД: 280670136986695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161728&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73926&fm=280670136986695&tin=02508201610067®Number=0000000000161154&sum=6500 0 [16:17:27]StoreToDocumentArchive [16:17:27]shift 170 fd 73926 [16:17:27]save to /storage/0170/doc_00073926 [16:17:27]save last doc name /storage/0170/doc_00073926 to /storage/kkm_last_doc_name [16:17:27]save OK [16:17:27]Clear old archive folders... [16:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=297 [16:17:27]tlvbuf is 0033C920 [16:17:27]SAM_PROTO_ClearQueue [16:17:27]wFMCommunicate request_size=4 [16:17:27]MH_SAM_APDU [16:17:27]CAPDU: 80 09 00 00 [16:17:27]Write to MH i2c: E2 08 00 6E 40 80 09 00 00 00 00 00 00 20 [16:17:27]Write i2c OK [16:17:27]MH_I2C_Read... [16:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:27]Read from MH i2c: E2 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 6E 40 00 90 00 22 [16:17:27]RAPDU: 90 00 [16:17:27]wFMCommunicate OK [16:17:27]SAM_PROTO_ClearQueue done [16:17:27]KKMCreateOFDPacket [16:17:27]OFDProtocolAddRootSTLVToBuf [16:17:27]FM_MakeSignedData [16:17:27]FM_MakeSignedData [16:17:27]SAM_PROTO_SignData [16:17:27]wFMCommunicate request_size=4 [16:17:27]MH_SAM_APDU [16:17:27]CAPDU: 80 0D 01 02 [16:17:27]Write to MH i2c: E2 08 00 6F 40 80 0D 01 02 00 00 00 00 28 [16:17:27]Write i2c OK [16:17:27]MH_I2C_Read... [16:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:27]Read from MH i2c: E2 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 6F 40 00 90 00 23 [16:17:27]RAPDU: 90 00 [16:17:27]wFMCommunicate OK [16:17:27]wFMCommunicate request_size=255 [16:17:27]MH_SAM_APDU [16:17:27]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 30 30 33 33 38 30 30 37 35 36 34 06 04 37 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 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 18 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [16:17:27]Write to MH i2c: E2 02 01 70 40 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 30 30 33 33 38 30 30 37 35 36 34 06 04 37 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 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 18 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 69 [16:17:27]Write i2c OK [16:17:27]MH_I2C_Read... [16:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:27]Read from MH i2c: E2 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 70 40 00 90 00 24 [16:17:27]RAPDU: 90 00 [16:17:27]wFMCommunicate OK [16:17:27]wFMCommunicate request_size=56 [16:17:27]MH_SAM_APDU [16:17:27]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 20 01 00 35 04 06 00 FF 44 9B D0 6C 47 [16:17:27]Write to MH i2c: E2 3B 00 71 40 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 20 01 00 35 04 06 00 FF 44 9B D0 6C 47 00 00 F1 [16:17:27]Write i2c OK [16:17:27]MH_I2C_Read... [16:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:27]Read from MH i2c: E2 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: E2 03 00 71 40 00 90 00 25 [16:17:27]RAPDU: 90 00 [16:17:27]wFMCommunicate OK [16:17:27]wFMCommunicate request_size=4 [16:17:27]MH_SAM_APDU [16:17:27]CAPDU: 80 0D 03 02 [16:17:27]Write to MH i2c: E2 08 00 72 40 80 0D 03 02 00 00 00 00 2D [16:17:27]Write i2c OK [16:17:27]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0B 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0B 00 72 40 00 7A 1A BC 1C 07 32 46 D7 90 00 F0 [16:17:28]RAPDU: 7A 1A BC 1C 07 32 46 D7 90 00 [16:17:28]wFMCommunicate OK [16:17:28]SAM_PROTO_SignData done [16:17:28]FM_MakeSignedData done [16:17:28]CreateOFDProtocolMessage [16:17:28]wFMCommunicate request_size=4 [16:17:28]MH_SAM_APDU [16:17:28]CAPDU: 80 11 00 00 [16:17:28]Write to MH i2c: E2 08 00 73 40 80 11 00 00 00 00 00 00 2D [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 17 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 17 00 73 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7A [16:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:17:28]wFMCommunicate OK [16:17:28]CreateOFDProtocolMessage done [16:17:28]OFDSenderStorePacket 73926 [16:17:28]StoreOFDPacket docnum=73926 [16:17:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3D 01 00 00 BA B6 35 01 0E 71 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 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 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 18 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 20 01 00 35 04 06 00 FF 44 9B D0 6C 47 7A 1A BC 1C 07 32 46 D7 [16:17:28]CheckFolder [16:17:28]dirname=/storage/ofd_packets [16:17:28]CheckFolder done [16:17:28]ProducePacketName [16:17:28]name=ofd_packets/00073926 [16:17:28]NVStorageSaveData ofd_packets/00073926 [16:17:28]File name is /storage/ofd_packets/00073926 [16:17:28]Write 347 bytes [16:17:28]NVStorageSaveData done [16:17:28]OFDSenderStorePacket done [16:17:28]KKMCreateOFDPacket done [16:17:28]NVStorageSaveData kkm_last_timestamp [16:17:28]File name is /storage/kkm_last_timestamp [16:17:28]Write 4 bytes [16:17:28]NVStorageSaveData done [16:17:28]ExternCall_PrintAddStr [16:17:28]wPrintStart [16:17:28]Write to MH i2c: 01 00 00 74 40 B4 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: 01 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: 01 07 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: 01 07 00 74 40 00 00 00 00 00 FF 0F C9 [16:17:28]RasterBufferAndPrint [16:17:28]line Счет N : (3)272815 [16:17:28]line ИНН: 02508201610067 [16:17:28]line Контрольно-Кассовый Чек [16:17:28]line ПРОДАЖА [16:17:28]line Товар: 4600338007564 [16:17:28]line Сок Фруто НЯНЯ мультифрукт 0,2л [16:17:28]line 1.000 * 65.00 [16:17:28]line = 65.00 [16:17:28]line НДС 12% НСП 1% [16:17:28]line > о реализуемом товаре [16:17:28]line ИТОГО: 65.00 [16:17:28]line НСП 1% : 0.57 [16:17:28]line НДС 12% : 6.90 [16:17:28]line Наличными: 65.00 [16:17:28]line Безнал.: 0.00 [16:17:28]line Место: АЗС № 133 "Партнер Нефть" [16:17:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:17:28]line СНО: Общий режим [16:17:28]line Чек 252 20.10.2024 16:17 [16:17:28]line Смена: 170 ФФД: 1.0 [16:17:28]line ЗНМ: 0300000020 [16:17:28]line РНМ: 0000000000161154 [16:17:28]line Версия ККМ: v1.0 [16:17:28]line ФМ: 0000000000963323 [16:17:28]line ФД: 73926 [16:17:28]line ФПД: 280670136986695 [16:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161728&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73926&fm=280670136986695&tin=02508201610067®Number=0000000000161154&sum=6500 [16:17:28]line 0 [16:17:28]OFD Sender: Processing packet 73926 [packets to send 15, broken 14] [16:17:28]ProducePacketName [16:17:28]name=ofd_packets/00073926 [16:17:28]OFD Sender: To server: pG, [16:17:28]CommunicateWithHost lk.salyk.kg:30040 [16:17:28]ConnectInit lk.salyk.kg [16:17:28]written 0, free lines is 4095 [16:17:28]Connected sock=10 [16:17:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3D 01 00 00 BA B6 35 01 0E 71 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 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 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 18 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 20 01 00 35 04 06 00 FF 44 9B D0 6C 47 7A 1A BC 1C 07 32 46 D7 [16:17:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 92 D8 47 00 BE 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 39 36 33 33 32 33 10 04 04 00 C6 20 01 00 F4 03 04 00 FD D5 14 67 B6 04 01 00 00 DA 47 86 FE 7B FA 82 05 [16:17:28]CommunicateWithHost err = 0 [16:17:28]CheckOFDResponse [16:17:28]1017 (14) - 77093643461234 [16:17:28]1041 (16) - 0000000000963323 [16:17:28]1040 (4) - 73926 [16:17:28]1012 (4) - 20.10.2024 10:05 [16:17:28]1206 (1) - 0 [16:17:28]OFD Sender: Remove packet 73926 [16:17:28]ProducePacketName [16:17:28]name=ofd_packets/00073926 [16:17:28]NVStorageDeleteData [16:17:28]Write to MH i2c: 01 00 00 9C 40 DC [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: 01 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: 01 07 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: 01 07 00 9C 40 00 00 00 00 00 DE 0C CD [16:17:28]RasterBufferAndPrint [16:17:28]line [16:17:28]line [16:17:28]line [16:17:28]line [16:17:28]line [16:17:28]written 0, free lines is 3299 [16:17:28]MH_Cut [16:17:28]Write to MH i2c: D1 01 00 A3 40 01 B5 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: D1 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: D1 01 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: D1 01 00 A3 40 00 B4 [16:17:28]Write to MH i2c: 01 00 00 A4 40 E4 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:29]OFD Sender: No OFD packet to send [16:17:29]*** Cut start [16:17:29]*** Partial cut [16:17:29]*** CUTSNS_PIN = 1 [16:17:29]*** CUTSNS_PIN = 0 [16:17:29]*** Brake cut motor [16:17:30]Read from MH i2c: 01 [16:17:30]MH_I2C_Read... [16:17:30]*** Stop cut motor [16:17:30]*** Cut end [16:17:30]Read from MH i2c: 01 07 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: 01 07 00 A4 40 00 00 00 00 00 FF 0F F9 [16:17:30]process_action close_receipt done [16:17:30]requested_data is exist [16:17:30]produce_requested_data [16:17:30]requested_item fm.sn is exist - process it [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 11 00 00 [16:17:30]Write to MH i2c: E2 08 00 A5 40 80 11 00 00 00 00 00 00 5F [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 A5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [16:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:17:30]wFMCommunicate OK [16:17:30]requested_item fd.num is exist - process it [16:17:30]SAM_PROTO_GetFieldsCounters [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 13 00 00 [16:17:30]Write to MH i2c: E2 08 00 A6 40 80 13 00 00 00 00 00 00 62 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 62 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 62 00 A6 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:17:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_GetFieldsCounters done [16:17:30]requested_item shift.num is exist - process it [16:17:30]requested_item shift.opened is exist - process it [16:17:30]req_shift_opened [16:17:30]FM_GetShiftState [16:17:30]SAM_PROTO_GetShiftState [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 13 01 00 [16:17:30]Write to MH i2c: E2 08 00 A7 40 80 13 01 00 00 00 00 00 64 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0E 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0E 00 A7 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A9 [16:17:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_GetShiftState done [16:17:30]FM_GetShiftState done [16:17:30]req_shift_opened done [16:17:30]requested_item shift.open_date is exist - process it [16:17:30]req_shift_open_date [16:17:30]req_shift_open_date done [16:17:30]produce_requested_data done [16:17:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73926,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:17:30]process_action_free close_receipt [16:17:30]json_value_free [16:17:30]json_value_free done [16:17:30]process_json_proto returns [16:17:30]Send response to host [16:17:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73926,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:17:30]free response buf [16:17:30]execute_script done [16:17:30]execute_script returns [16:17:30]free content buf [16:17:30]Sock 9.Close socket [16:17:30]Sock 9.Thread stoped [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:16]accept exits with 8 [16:18:16]New connection [16:18:16]New thread 3067432292 created [16:18:16]Thread 3067575652 joined [16:18:16]Waiting for new connection... [16:18:16] Sock 8.Parse request [16:18:16]Sock 8.Check first char [16:18:16]Sock 8.First char is OK [16:18:16]request: POST /json_proto HTTP/1.0 [16:18:16]Method: POST [16:18:16]URL: /json_proto [16:18:16]Method is POST - this is cgi request [16:18:16]url: /json_proto [16:18:16]query_string will be loaded in cgi processing [16:18:16]execute_cgi json_proto POST (null) [16:18:16]execute_cgi path=json_proto method=POST [16:18:16]POST find Content-Length [16:18:16]Host: 172.17.44.196:8080 [16:18:16]Content-Length: 678 [16:18:16]Content-Type: application/json [16:18:16] [16:18:16]POST finish read [16:18:16]Found Content-Length = 678 [16:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963128", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:16]execute_script... [16:18: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)1963128", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:16]POST & json_proto [16:18:16]process_json_proto [16:18:16]json parsed OK: [16:18:16]protocol is kg_v1.0 [16:18:16]action value=close_receipt [16:18:16]process_action close_receipt [16:18:16]cmd_close_receipt [16:18:16]MH_GetDate [16:18:16]Write to MH i2c: F0 00 00 A8 40 D7 [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: F0 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: F0 09 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: F0 09 00 A8 40 00 4A 2D 15 67 E7 19 F8 65 30 [16:18:16]GetLastDocTimeStamp 1729441048 [16:18:16]current date 1729441098 [16:18:16]FM_GetShiftState [16:18:16]SAM_PROTO_GetShiftState [16:18:16]wFMCommunicate request_size=4 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 13 01 00 [16:18:16]Write to MH i2c: E2 08 00 A9 40 80 13 01 00 00 00 00 00 66 [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 0E 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 0E 00 A9 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AB [16:18:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:18:16]wFMCommunicate OK [16:18:16]SAM_PROTO_GetShiftState done [16:18:16]FM_GetShiftState done [16:18:16]opened in 1729384303 [16:18:16]opened+sec_in_day 1729470703 [16:18:16]quantity*price = 40006 [16:18:16]sum+1 = 40007 [16:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 253 20.10.2024 16:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73927 ФПД: 278771573383097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161818&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73927&fm=278771573383097&tin=02508201610067®Number=0000000000161154&sum=40000 [16:18:17]StoreToDocumentArchive [16:18:17]shift 170 fd 73927 [16:18:17]save to /storage/0170/doc_00073927 [16:18:17]save last doc name /storage/0170/doc_00073927 to /storage/kkm_last_doc_name [16:18:17]save OK [16:18:17]Clear old archive folders... [16:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:17]tlvbuf is 004B92C0 [16:18:17]SAM_PROTO_ClearQueue [16:18:17]wFMCommunicate request_size=4 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 09 00 00 [16:18:17]Write to MH i2c: E2 08 00 B6 40 80 09 00 00 00 00 00 00 68 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 B6 40 00 90 00 6A [16:18:17]RAPDU: 90 00 [16:18:17]wFMCommunicate OK [16:18:17]SAM_PROTO_ClearQueue done [16:18:17]KKMCreateOFDPacket [16:18:17]OFDProtocolAddRootSTLVToBuf [16:18:17]FM_MakeSignedData [16:18:17]FM_MakeSignedData [16:18:17]SAM_PROTO_SignData [16:18:17]wFMCommunicate request_size=4 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 0D 01 02 [16:18:17]Write to MH i2c: E2 08 00 B7 40 80 0D 01 02 00 00 00 00 70 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 B7 40 00 90 00 6B [16:18:17]RAPDU: 90 00 [16:18:17]wFMCommunicate OK [16:18:17]wFMCommunicate request_size=255 [16:18:17]MH_SAM_APDU [16:18:17]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 20 01 00 35 04 06 00 FD [16:18:17]Write to MH i2c: E2 02 01 B8 40 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 20 01 00 35 04 06 00 FD 00 00 40 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 B8 40 00 90 00 6C [16:18:17]RAPDU: 90 00 [16:18:17]wFMCommunicate OK [16:18:17]wFMCommunicate request_size=10 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 0D 02 02 05 8A 90 9A DF B9 [16:18:17]Write to MH i2c: E2 0D 00 B9 40 80 0D 02 02 05 00 8A 90 9A DF B9 00 00 C9 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 B9 40 00 90 00 6D [16:18:17]RAPDU: 90 00 [16:18:17]wFMCommunicate OK [16:18:17]wFMCommunicate request_size=4 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 0D 03 02 [16:18:17]Write to MH i2c: E2 08 00 BA 40 80 0D 03 02 00 00 00 00 75 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 0B 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 0B 00 BA 40 00 66 81 6D 33 84 C0 72 77 90 00 2A [16:18:17]RAPDU: 66 81 6D 33 84 C0 72 77 90 00 [16:18:17]wFMCommunicate OK [16:18:17]SAM_PROTO_SignData done [16:18:17]FM_MakeSignedData done [16:18:17]CreateOFDProtocolMessage [16:18:17]wFMCommunicate request_size=4 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 11 00 00 [16:18:17]Write to MH i2c: E2 08 00 BB 40 80 11 00 00 00 00 00 00 75 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 17 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 17 00 BB 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [16:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:18:18]wFMCommunicate OK [16:18:18]CreateOFDProtocolMessage done [16:18:18]OFDSenderStorePacket 73927 [16:18:18]StoreOFDPacket docnum=73927 [16:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 52 22 07 01 DB 91 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 20 01 00 35 04 06 00 FD 8A 90 9A DF B9 66 81 6D 33 84 C0 72 77 [16:18:18]CheckFolder [16:18:18]dirname=/storage/ofd_packets [16:18:18]CheckFolder done [16:18:18]ProducePacketName [16:18:18]name=ofd_packets/00073927 [16:18:18]NVStorageSaveData ofd_packets/00073927 [16:18:18]File name is /storage/ofd_packets/00073927 [16:18:18]Write 301 bytes [16:18:18]NVStorageSaveData done [16:18:18]OFDSenderStorePacket done [16:18:18]KKMCreateOFDPacket done [16:18:18]NVStorageSaveData kkm_last_timestamp [16:18:18]File name is /storage/kkm_last_timestamp [16:18:18]Write 4 bytes [16:18:18]NVStorageSaveData done [16:18:18]ExternCall_PrintAddStr [16:18:18]wPrintStart [16:18:18]Write to MH i2c: 01 00 00 BC 40 FC [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 07 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 07 00 BC 40 00 00 00 00 00 FF 0F 11 [16:18:18]RasterBufferAndPrint [16:18:18]line Счет N : (1)1963128 [16:18:18]line ИНН: 02508201610067 [16:18:18]line Контрольно-Кассовый Чек [16:18:18]line ПРОДАЖА [16:18:18]line ТРК (МРК, ГНК) : 33 [16:18:18]line Товар: 2710124130 [16:18:18]line Аи-92-К-5 [16:18:18]line 5.980 * 66.90 [16:18:18]line = 400.06 [16:18:18]line НДС 12% НСП 1% [16:18:18]line > о реализуемом товаре [16:18:18]line ОКРУГЛЕНИЕ: -0.06 [16:18:18]line ИТОГО: 400.00 [16:18:18]line Внесено: 400.00 [16:18:18]line СДАЧА: 0.00 [16:18:18]line НСП 1% : 3.54 [16:18:18]line НДС 12% : 42.48 [16:18:18]line Наличными: 400.00 [16:18:18]line Безнал.: 0.00 [16:18:18]line Место: АЗС № 133 "Партнер Нефть" [16:18:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:18:18]line СНО: Общий режим [16:18:18]line Чек 253 20.10.2024 16:18 [16:18:18]line Смена: 170 ФФД: 1.0 [16:18:18]line ЗНМ: 0300000020 [16:18:18]line РНМ: 0000000000161154 [16:18:18]line Версия ККМ: v1.0 [16:18:18]line ФМ: 0000000000963323 [16:18:18]line ФД: 73927 [16:18:18]line ФПД: 278771573383097 [16:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161818&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73927&fm=278771573383097&tin=02508201610067®Number=0000000000161154&sum=40000 [16:18:18]OFD Sender: Processing packet 73927 [packets to send 15, broken 14] [16:18:18]ProducePacketName [16:18:18]name=ofd_packets/00073927 [16:18:18]OFD Sender: To server: pG, [16:18:18]CommunicateWithHost lk.salyk.kg:30040 [16:18:18]ConnectInit lk.salyk.kg [16:18:18]written 0, free lines is 4095 [16:18:18]Connected sock=9 [16:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 52 22 07 01 DB 91 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 20 01 00 35 04 06 00 FD 8A 90 9A DF B9 66 81 6D 33 84 C0 72 77 [16:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 BF 47 00 D5 65 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 39 36 33 33 32 33 10 04 04 00 C7 20 01 00 F4 03 04 00 2F D6 14 67 B6 04 01 00 00 2B 3E 24 AA 81 4C DA 3D [16:18:18]CommunicateWithHost err = 0 [16:18:18]CheckOFDResponse [16:18:18]1017 (14) - 77093643461234 [16:18:18]1041 (16) - 0000000000963323 [16:18:18]1040 (4) - 73927 [16:18:18]1012 (4) - 20.10.2024 10:06 [16:18:18]1206 (1) - 0 [16:18:18]OFD Sender: Remove packet 73927 [16:18:18]ProducePacketName [16:18:18]name=ofd_packets/00073927 [16:18:18]NVStorageDeleteData [16:18:18]Write to MH i2c: 01 00 00 E6 40 26 [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 07 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 07 00 E6 40 00 00 00 00 00 C9 0C 02 [16:18:18]RasterBufferAndPrint [16:18:18]line [16:18:18]line [16:18:18]line [16:18:18]line [16:18:18]line [16:18:18]written 0, free lines is 3279 [16:18:18]MH_Cut [16:18:18]Write to MH i2c: D1 01 00 ED 40 01 FF [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: D1 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: D1 01 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: D1 01 00 ED 40 00 FE [16:18:18]Write to MH i2c: 01 00 00 EE 40 2E [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:19]OFD Sender: No OFD packet to send [16:18:19]*** Cut start [16:18:19]*** Partial cut [16:18:19]*** CUTSNS_PIN = 1 [16:18:19]*** CUTSNS_PIN = 0 [16:18:19]*** Brake cut motor [16:18:20]Read from MH i2c: 01 [16:18:20]MH_I2C_Read... [16:18:20]*** Stop cut motor [16:18:20]*** Cut end [16:18:20]Read from MH i2c: 01 07 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 EE 40 00 00 00 00 00 FF 0F 43 [16:18:20]process_action close_receipt done [16:18:20]requested_data is exist [16:18:20]produce_requested_data [16:18:20]requested_item fm.sn is exist - process it [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 11 00 00 [16:18:20]Write to MH i2c: E2 08 00 EF 40 80 11 00 00 00 00 00 00 A9 [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 17 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 17 00 EF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F6 [16:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:18:20]wFMCommunicate OK [16:18:20]requested_item fd.num is exist - process it [16:18:20]SAM_PROTO_GetFieldsCounters [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 13 00 00 [16:18:20]Write to MH i2c: E2 08 00 F0 40 80 13 00 00 00 00 00 00 AC [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 62 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 62 00 F0 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:20]wFMCommunicate OK [16:18:20]SAM_PROTO_GetFieldsCounters done [16:18:20]requested_item shift.num is exist - process it [16:18:20]requested_item shift.opened is exist - process it [16:18:20]req_shift_opened [16:18:20]FM_GetShiftState [16:18:20]SAM_PROTO_GetShiftState [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 13 01 00 [16:18:20]Write to MH i2c: E2 08 00 F1 40 80 13 01 00 00 00 00 00 AE [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 0E 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 0E 00 F1 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F3 [16:18:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:18:20]wFMCommunicate OK [16:18:20]SAM_PROTO_GetShiftState done [16:18:20]FM_GetShiftState done [16:18:20]req_shift_opened done [16:18:20]requested_item shift.open_date is exist - process it [16:18:20]req_shift_open_date [16:18:20]req_shift_open_date done [16:18:20]produce_requested_data done [16:18:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73927,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:18:20]process_action_free close_receipt [16:18:20]json_value_free [16:18:20]json_value_free done [16:18:20]process_json_proto returns [16:18:20]Send response to host [16:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73927,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:18:20]free response buf [16:18:20]execute_script done [16:18:20]execute_script returns [16:18:20]free content buf [16:18:20]Sock 8.Close socket [16:18:20]Sock 8.Thread stoped [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:11]accept exits with 10 [16:20:11]New connection [16:20:11]New thread 3067575652 created [16:20:11]Thread 3067432292 joined [16:20:11]Waiting for new connection... [16:20:11] Sock 10.Parse request [16:20:11]Sock 10.Check first char [16:20:11]Sock 10.First char is OK [16:20:11]request: POST /json_proto HTTP/1.0 [16:20:11]Method: POST [16:20:11]URL: /json_proto [16:20:11]Method is POST - this is cgi request [16:20:11]url: /json_proto [16:20:11]query_string will be loaded in cgi processing [16:20:11]execute_cgi json_proto POST (null) [16:20:11]execute_cgi path=json_proto method=POST [16:20:11]POST find Content-Length [16:20:11]Host: 172.17.44.196:8080 [16:20:11]Content-Length: 660 [16:20:11]Content-Type: application/json [16:20:11] [16:20:11]POST finish read [16:20:11]Found Content-Length = 660 [16:20:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:11]execute_script... [16:20: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 : (1)1963129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:11]POST & json_proto [16:20:11]process_json_proto [16:20:11]json parsed OK: [16:20:11]protocol is kg_v1.0 [16:20:11]action value=close_receipt [16:20:11]process_action close_receipt [16:20:11]cmd_close_receipt [16:20:11]MH_GetDate [16:20:11]Write to MH i2c: F0 00 00 F2 40 21 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: F0 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: F0 09 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: F0 09 00 F2 40 00 BD 2D 15 67 E7 19 F8 65 ED [16:20:11]GetLastDocTimeStamp 1729441098 [16:20:11]current date 1729441213 [16:20:11]FM_GetShiftState [16:20:11]SAM_PROTO_GetShiftState [16:20:11]wFMCommunicate request_size=4 [16:20:11]MH_SAM_APDU [16:20:11]CAPDU: 80 13 01 00 [16:20:11]Write to MH i2c: E2 08 00 F3 40 80 13 01 00 00 00 00 00 B0 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:11]Read from MH i2c: E2 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 0E 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 0E 00 F3 40 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F5 [16:20:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:20:11]wFMCommunicate OK [16:20:11]SAM_PROTO_GetShiftState done [16:20:11]FM_GetShiftState done [16:20:11]opened in 1729384303 [16:20:11]opened+sec_in_day 1729470703 [16:20:11]quantity*price = 70041 [16:20:11]sum+1 = 70043 [16:20:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 254 20.10.2024 16:20 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73928 ФПД: 124276255794939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162013&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73928&fm=124276255794939&tin=02508201610067®Number=0000000000161154&sum=70000 [16:20:12]StoreToDocumentArchive [16:20:12]shift 170 fd 73928 [16:20:12]save to /storage/0170/doc_00073928 [16:20:12]save last doc name /storage/0170/doc_00073928 to /storage/kkm_last_doc_name [16:20:12]save OK [16:20:12]Clear old archive folders... [16:20:12]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:20:12]tlvbuf is 00474E60 [16:20:12]SAM_PROTO_ClearQueue [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 09 00 00 [16:20:12]Write to MH i2c: E2 08 00 00 41 80 09 00 00 00 00 00 00 B3 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 00 41 00 90 00 B5 [16:20:12]RAPDU: 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_ClearQueue done [16:20:12]KKMCreateOFDPacket [16:20:12]OFDProtocolAddRootSTLVToBuf [16:20:12]FM_MakeSignedData [16:20:12]FM_MakeSignedData [16:20:12]SAM_PROTO_SignData [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 0D 01 02 [16:20:12]Write to MH i2c: E2 08 00 01 41 80 0D 01 02 00 00 00 00 BB [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 01 41 00 90 00 B6 [16:20:12]RAPDU: 90 00 [16:20:12]wFMCommunicate OK [16:20:12]wFMCommunicate request_size=253 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 20 01 00 35 04 06 00 71 07 52 14 A6 FB [16:20:12]Write to MH i2c: E2 00 01 02 41 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 20 01 00 35 04 06 00 71 07 52 14 A6 FB 00 00 1F [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 02 41 00 90 00 B7 [16:20:12]RAPDU: 90 00 [16:20:12]wFMCommunicate OK [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 0D 03 02 [16:20:12]Write to MH i2c: E2 08 00 03 41 80 0D 03 02 00 00 00 00 BF [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0B 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0B 00 03 41 00 22 77 43 A2 E1 83 BF 7C 90 00 DD [16:20:12]RAPDU: 22 77 43 A2 E1 83 BF 7C 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_SignData done [16:20:12]FM_MakeSignedData done [16:20:12]CreateOFDProtocolMessage [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 11 00 00 [16:20:12]Write to MH i2c: E2 08 00 04 41 80 11 00 00 00 00 00 00 BF [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 04 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0C [16:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:20:12]wFMCommunicate OK [16:20:12]CreateOFDProtocolMessage done [16:20:12]OFDSenderStorePacket 73928 [16:20:12]StoreOFDPacket docnum=73928 [16:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 98 F4 00 01 35 B8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 20 01 00 35 04 06 00 71 07 52 14 A6 FB 22 77 43 A2 E1 83 BF 7C [16:20:12]CheckFolder [16:20:12]dirname=/storage/ofd_packets [16:20:12]CheckFolder done [16:20:12]ProducePacketName [16:20:12]name=ofd_packets/00073928 [16:20:12]NVStorageSaveData ofd_packets/00073928 [16:20:12]File name is /storage/ofd_packets/00073928 [16:20:12]Write 294 bytes [16:20:12]NVStorageSaveData done [16:20:12]OFDSenderStorePacket done [16:20:12]KKMCreateOFDPacket done [16:20:12]NVStorageSaveData kkm_last_timestamp [16:20:12]File name is /storage/kkm_last_timestamp [16:20:12]Write 4 bytes [16:20:12]NVStorageSaveData done [16:20:12]ExternCall_PrintAddStr [16:20:12]wPrintStart [16:20:12]Write to MH i2c: 01 00 00 05 41 46 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 05 41 00 00 00 00 00 FF 0F 5B [16:20:12]RasterBufferAndPrint [16:20:12]line Счет N : (1)1963129 [16:20:12]line ИНН: 02508201610067 [16:20:12]line Контрольно-Кассовый Чек [16:20:12]line ПРОДАЖА [16:20:12]line ТРК (МРК, ГНК) : 42 [16:20:12]line Товар: 2710124130 [16:20:12]line SU-92 [16:20:12]line 10.240 * 68.40 [16:20:12]line = 700.42 [16:20:12]line НДС 12% НСП 1% [16:20:12]line > о реализуемом товаре [16:20:12]line ОКРУГЛЕНИЕ: -0.42 [16:20:12]line ИТОГО: 700.00 [16:20:12]line Внесено: 700.00 [16:20:12]line СДАЧА: 0.00 [16:20:12]line НСП 1% : 6.20 [16:20:12]line НДС 12% : 74.38 [16:20:12]line Наличными: 700.00 [16:20:12]line Безнал.: 0.00 [16:20:12]line Место: АЗС № 133 "Партнер Нефть" [16:20:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:20:12]line СНО: Общий режим [16:20:12]line Чек 254 20.10.2024 16:20 [16:20:12]line Смена: 170 ФФД: 1.0 [16:20:12]line ЗНМ: 0300000020 [16:20:12]line РНМ: 0000000000161154 [16:20:12]line Версия ККМ: v1.0 [16:20:12]line ФМ: 0000000000963323 [16:20:12]line ФД: 73928 [16:20:12]line ФПД: 124276255794939 [16:20:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162013&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73928&fm=124276255794939&tin=02508201610067®Number=0000000000161154&sum=70000 [16:20:13]OFD Sender: Processing packet 73928 [packets to send 15, broken 14] [16:20:13]ProducePacketName [16:20:13]name=ofd_packets/00073928 [16:20:13]OFD Sender: To server: pG, [16:20:13]CommunicateWithHost lk.salyk.kg:30040 [16:20:13]ConnectInit lk.salyk.kg [16:20:13]written 0, free lines is 4095 [16:20:13]Connected sock=9 [16:20:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 98 F4 00 01 35 B8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BD 2D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 20 01 00 35 04 06 00 71 07 52 14 A6 FB 22 77 43 A2 E1 83 BF 7C [16:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E0 E2 47 00 C9 E6 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 39 36 33 33 32 33 10 04 04 00 C8 20 01 00 F4 03 04 00 A1 D6 14 67 B6 04 01 00 00 81 D1 8B 69 16 43 11 C6 [16:20:13]CommunicateWithHost err = 0 [16:20:13]CheckOFDResponse [16:20:13]1017 (14) - 77093643461234 [16:20:13]1041 (16) - 0000000000963323 [16:20:13]1040 (4) - 73928 [16:20:13]1012 (4) - 20.10.2024 10:08 [16:20:13]1206 (1) - 0 [16:20:13]OFD Sender: Remove packet 73928 [16:20:13]ProducePacketName [16:20:13]name=ofd_packets/00073928 [16:20:13]NVStorageDeleteData [16:20:13]Write to MH i2c: 01 00 00 2F 41 70 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: 01 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: 01 07 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: 01 07 00 2F 41 00 00 00 00 00 C7 0C 4A [16:20:13]RasterBufferAndPrint [16:20:13]line [16:20:13]line [16:20:13]line [16:20:13]line [16:20:13]line [16:20:13]written 0, free lines is 3275 [16:20:13]MH_Cut [16:20:13]Write to MH i2c: D1 01 00 36 41 01 49 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: D1 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: D1 01 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: D1 01 00 36 41 00 48 [16:20:13]Write to MH i2c: 01 00 00 37 41 78 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]OFD Sender: No OFD packet to send [16:20:14]*** Cut start [16:20:14]*** Partial cut [16:20:14]*** CUTSNS_PIN = 1 [16:20:14]*** CUTSNS_PIN = 0 [16:20:14]*** Brake cut motor [16:20:14]Read from MH i2c: 01 [16:20:14]MH_I2C_Read... [16:20:14]*** Stop cut motor [16:20:14]*** Cut end [16:20:14]Read from MH i2c: 01 07 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 07 00 37 41 00 00 00 00 00 FF 0F 8D [16:20:14]process_action close_receipt done [16:20:14]requested_data is exist [16:20:14]produce_requested_data [16:20:14]requested_item fm.sn is exist - process it [16:20:14]wFMCommunicate request_size=4 [16:20:14]MH_SAM_APDU [16:20:14]CAPDU: 80 11 00 00 [16:20:14]Write to MH i2c: E2 08 00 38 41 80 11 00 00 00 00 00 00 F3 [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 17 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 17 00 38 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [16:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:20:15]wFMCommunicate OK [16:20:15]requested_item fd.num is exist - process it [16:20:15]SAM_PROTO_GetFieldsCounters [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 13 00 00 [16:20:15]Write to MH i2c: E2 08 00 39 41 80 13 00 00 00 00 00 00 F6 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 62 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 62 00 39 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [16:20:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:15]wFMCommunicate OK [16:20:15]SAM_PROTO_GetFieldsCounters done [16:20:15]requested_item shift.num is exist - process it [16:20:15]requested_item shift.opened is exist - process it [16:20:15]req_shift_opened [16:20:15]FM_GetShiftState [16:20:15]SAM_PROTO_GetShiftState [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 13 01 00 [16:20:15]Write to MH i2c: E2 08 00 3A 41 80 13 01 00 00 00 00 00 F8 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 0E 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 0E 00 3A 41 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3D [16:20:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:20:15]wFMCommunicate OK [16:20:15]SAM_PROTO_GetShiftState done [16:20:15]FM_GetShiftState done [16:20:15]req_shift_opened done [16:20:15]requested_item shift.open_date is exist - process it [16:20:15]req_shift_open_date [16:20:15]req_shift_open_date done [16:20:15]produce_requested_data done [16:20:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73928,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:20:15]process_action_free close_receipt [16:20:15]json_value_free [16:20:15]json_value_free done [16:20:15]process_json_proto returns [16:20:15]Send response to host [16:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73928,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:20:15]free response buf [16:20:15]execute_script done [16:20:15]execute_script returns [16:20:15]free content buf [16:20:15]Sock 10.Close socket [16:20:15]Sock 10.Thread stoped [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]accept exits with 8 [16:21:33]New connection [16:21:33]New thread 3067432292 created [16:21:33]Thread 3067575652 joined [16:21:33]Waiting for new connection... [16:21:33] Sock 8.Parse request [16:21:33]Sock 8.Check first char [16:21:33]Sock 8.First char is OK [16:21:33]request: POST /json_proto HTTP/1.0 [16:21:33]Method: POST [16:21:33]URL: /json_proto [16:21:33]Method is POST - this is cgi request [16:21:33]url: /json_proto [16:21:33]query_string will be loaded in cgi processing [16:21:33]execute_cgi json_proto POST (null) [16:21:33]execute_cgi path=json_proto method=POST [16:21:33]POST find Content-Length [16:21:33]Host: 172.17.44.196:8080 [16:21:33]Content-Length: 680 [16:21:33]Content-Type: application/json [16:21:33] [16:21:33]POST finish read [16:21:33]Found Content-Length = 680 [16:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [16:21:33]execute_script... [16:21: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 : (1)1963130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [16:21:33]POST & json_proto [16:21:33]process_json_proto [16:21:33]json parsed OK: [16:21:33]protocol is kg_v1.0 [16:21:33]action value=close_receipt [16:21:33]process_action close_receipt [16:21:33]cmd_close_receipt [16:21:33]MH_GetDate [16:21:33]Write to MH i2c: F0 00 00 3B 41 6B [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: F0 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: F0 09 00 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: F0 09 00 3B 41 00 0F 2E 15 67 E7 19 F8 65 8A [16:21:33]GetLastDocTimeStamp 1729441213 [16:21:33]current date 1729441295 [16:21:33]FM_GetShiftState [16:21:33]SAM_PROTO_GetShiftState [16:21:33]wFMCommunicate request_size=4 [16:21:33]MH_SAM_APDU [16:21:33]CAPDU: 80 13 01 00 [16:21:33]Write to MH i2c: E2 08 00 3C 41 80 13 01 00 00 00 00 00 FA [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:33]Read from MH i2c: E2 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 0E 00 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 0E 00 3C 41 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3F [16:21:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:21:33]wFMCommunicate OK [16:21:33]SAM_PROTO_GetShiftState done [16:21:33]FM_GetShiftState done [16:21:33]opened in 1729384303 [16:21:33]opened+sec_in_day 1729470703 [16:21:33]quantity*price = 100050 [16:21:33]sum+1 = 100052 [16:21:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 255 20.10.2024 16:21 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73929 ФПД: 221484039917744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162135&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73929&fm=221484039917744&tin=02508201610067®Number=0000000000161154&sum=100000 [16:21:34]StoreToDocumentArchive [16:21:34]shift 170 fd 73929 [16:21:34]save to /storage/0170/doc_00073929 [16:21:34]save last doc name /storage/0170/doc_00073929 to /storage/kkm_last_doc_name [16:21:34]save OK [16:21:34]Clear old archive folders... [16:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:34]tlvbuf is 00391160 [16:21:34]SAM_PROTO_ClearQueue [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 09 00 00 [16:21:34]Write to MH i2c: E2 08 00 49 41 80 09 00 00 00 00 00 00 FC [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 49 41 00 90 00 FE [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]SAM_PROTO_ClearQueue done [16:21:34]KKMCreateOFDPacket [16:21:34]OFDProtocolAddRootSTLVToBuf [16:21:34]FM_MakeSignedData [16:21:34]FM_MakeSignedData [16:21:34]SAM_PROTO_SignData [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 0D 01 02 [16:21:34]Write to MH i2c: E2 08 00 4A 41 80 0D 01 02 00 00 00 00 04 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 4A 41 00 90 00 FF [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]wFMCommunicate request_size=255 [16:21:34]MH_SAM_APDU [16:21:34]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 FF 00 00 00 F4 03 04 00 0F 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 20 01 00 35 04 06 00 C9 70 45 85 [16:21:34]Write to MH i2c: E2 02 01 4B 41 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 FF 00 00 00 F4 03 04 00 0F 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 20 01 00 35 04 06 00 C9 70 45 85 00 00 CB [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 4B 41 00 90 00 00 [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]wFMCommunicate request_size=7 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 0D 02 02 02 D0 B0 [16:21:34]Write to MH i2c: E2 0A 00 4C 41 80 0D 02 02 02 00 D0 B0 00 00 8B [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 4C 41 00 90 00 01 [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 0D 03 02 [16:21:34]Write to MH i2c: E2 08 00 4D 41 80 0D 03 02 00 00 00 00 09 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 0B 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 0B 00 4D 41 00 31 0B 68 34 B7 46 9B F9 90 00 73 [16:21:34]RAPDU: 31 0B 68 34 B7 46 9B F9 90 00 [16:21:34]wFMCommunicate OK [16:21:34]SAM_PROTO_SignData done [16:21:34]FM_MakeSignedData done [16:21:34]CreateOFDProtocolMessage [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 11 00 00 [16:21:34]Write to MH i2c: E2 08 00 4E 41 80 11 00 00 00 00 00 00 09 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 17 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 17 00 4E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 56 [16:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:21:34]wFMCommunicate OK [16:21:34]CreateOFDProtocolMessage done [16:21:34]OFDSenderStorePacket 73929 [16:21:34]StoreOFDPacket docnum=73929 [16:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7B 92 04 01 02 11 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 FF 00 00 00 F4 03 04 00 0F 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 20 01 00 35 04 06 00 C9 70 45 85 D0 B0 31 0B 68 34 B7 46 9B F9 [16:21:34]CheckFolder [16:21:34]dirname=/storage/ofd_packets [16:21:34]CheckFolder done [16:21:34]ProducePacketName [16:21:34]name=ofd_packets/00073929 [16:21:34]NVStorageSaveData ofd_packets/00073929 [16:21:34]File name is /storage/ofd_packets/00073929 [16:21:34]Write 298 bytes [16:21:34]NVStorageSaveData done [16:21:34]OFDSenderStorePacket done [16:21:34]KKMCreateOFDPacket done [16:21:34]NVStorageSaveData kkm_last_timestamp [16:21:34]File name is /storage/kkm_last_timestamp [16:21:34]Write 4 bytes [16:21:34]NVStorageSaveData done [16:21:34]ExternCall_PrintAddStr [16:21:34]wPrintStart [16:21:34]Write to MH i2c: 01 00 00 4F 41 90 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: 01 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: 01 07 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: 01 07 00 4F 41 00 00 00 00 00 FF 0F A5 [16:21:34]RasterBufferAndPrint [16:21:34]line Счет N : (1)1963130 [16:21:34]line ИНН: 02508201610067 [16:21:34]line Контрольно-Кассовый Чек [16:21:34]line ПРОДАЖА [16:21:34]line ТРК (МРК, ГНК) : 11 [16:21:34]line Товар: 2710194210 [16:21:34]line ДТ-К-5 [16:21:34]line 13.130 * 76.20 [16:21:34]line = 1000.51 [16:21:34]line НДС 12% НСП 1% [16:21:34]line > о реализуемом товаре [16:21:34]line ОКРУГЛЕНИЕ: -0.51 [16:21:34]line ИТОГО: 1000.00 [16:21:34]line Внесено: 1000.00 [16:21:34]line СДАЧА: 0.00 [16:21:34]line НСП 1% : 8.85 [16:21:34]line НДС 12% : 106.25 [16:21:34]line Наличными: 1000.00 [16:21:34]line Безнал.: 0.00 [16:21:34]line Место: АЗС № 133 "Партнер Нефть" [16:21:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:21:34]line СНО: Общий режим [16:21:34]line Чек 255 20.10.2024 16:21 [16:21:34]line Смена: 170 ФФД: 1.0 [16:21:34]line ЗНМ: 0300000020 [16:21:34]line РНМ: 0000000000161154 [16:21:34]line Версия ККМ: v1.0 [16:21:34]line ФМ: 0000000000963323 [16:21:34]line ФД: 73929 [16:21:34]line ФПД: 221484039917744 [16:21:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162135&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73929&fm=221484039917744&tin=02508201610067®Number=0000000000161154&sum=100000 [16:21:35]OFD Sender: Processing packet 73929 [packets to send 15, broken 14] [16:21:35]ProducePacketName [16:21:35]name=ofd_packets/00073929 [16:21:35]OFD Sender: To server: pG, [16:21:35]written 0, free lines is 4095 [16:21:35]CommunicateWithHost lk.salyk.kg:30040 [16:21:35]ConnectInit lk.salyk.kg [16:21:35]Connected sock=10 [16:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7B 92 04 01 02 11 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 FF 00 00 00 F4 03 04 00 0F 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 20 01 00 35 04 06 00 C9 70 45 85 D0 B0 31 0B 68 34 B7 46 9B F9 [16:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AC 64 47 00 A7 3B 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 39 36 33 33 32 33 10 04 04 00 C9 20 01 00 F4 03 04 00 F3 D6 14 67 B6 04 01 00 00 EC 49 D3 87 1C 03 AE 8D [16:21:35]CommunicateWithHost err = 0 [16:21:35]CheckOFDResponse [16:21:35]1017 (14) - 77093643461234 [16:21:35]1041 (16) - 0000000000963323 [16:21:35]1040 (4) - 73929 [16:21:35]1012 (4) - 20.10.2024 10:09 [16:21:35]1206 (1) - 0 [16:21:35]OFD Sender: Remove packet 73929 [16:21:35]ProducePacketName [16:21:35]name=ofd_packets/00073929 [16:21:35]NVStorageDeleteData [16:21:35]Write to MH i2c: 01 00 00 79 41 BA [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 79 41 00 00 00 00 00 B7 0C 84 [16:21:35]RasterBufferAndPrint [16:21:35]line [16:21:35]line [16:21:35]line [16:21:35]line [16:21:35]line [16:21:35]written 0, free lines is 3261 [16:21:35]MH_Cut [16:21:35]Write to MH i2c: D1 01 00 80 41 01 93 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: D1 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: D1 01 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: D1 01 00 80 41 00 92 [16:21:35]Write to MH i2c: 01 00 00 81 41 C2 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]OFD Sender: No OFD packet to send [16:21:36]*** Cut start [16:21:36]*** Partial cut [16:21:36]*** CUTSNS_PIN = 1 [16:21:36]*** CUTSNS_PIN = 0 [16:21:36]*** Brake cut motor [16:21:37]Read from MH i2c: 01 [16:21:37]MH_I2C_Read... [16:21:37]*** Stop cut motor [16:21:37]*** Cut end [16:21:37]Read from MH i2c: 01 07 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: 01 07 00 81 41 00 00 00 00 00 FF 0F D7 [16:21:37]process_action close_receipt done [16:21:37]requested_data is exist [16:21:37]produce_requested_data [16:21:37]requested_item fm.sn is exist - process it [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 11 00 00 [16:21:37]Write to MH i2c: E2 08 00 82 41 80 11 00 00 00 00 00 00 3D [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 17 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 17 00 82 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [16:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:21:37]wFMCommunicate OK [16:21:37]requested_item fd.num is exist - process it [16:21:37]SAM_PROTO_GetFieldsCounters [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 13 00 00 [16:21:37]Write to MH i2c: E2 08 00 83 41 80 13 00 00 00 00 00 00 40 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 62 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 62 00 83 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [16:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:37]wFMCommunicate OK [16:21:37]SAM_PROTO_GetFieldsCounters done [16:21:37]requested_item shift.num is exist - process it [16:21:37]requested_item shift.opened is exist - process it [16:21:37]req_shift_opened [16:21:37]FM_GetShiftState [16:21:37]SAM_PROTO_GetShiftState [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 13 01 00 [16:21:37]Write to MH i2c: E2 08 00 84 41 80 13 01 00 00 00 00 00 42 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 0E 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 0E 00 84 41 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 87 [16:21:37]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:21:37]wFMCommunicate OK [16:21:37]SAM_PROTO_GetShiftState done [16:21:37]FM_GetShiftState done [16:21:37]req_shift_opened done [16:21:37]requested_item shift.open_date is exist - process it [16:21:37]req_shift_open_date [16:21:37]req_shift_open_date done [16:21:37]produce_requested_data done [16:21:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73929,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:21:37]process_action_free close_receipt [16:21:37]json_value_free [16:21:37]json_value_free done [16:21:37]process_json_proto returns [16:21:37]Send response to host [16:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73929,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:21:37]free response buf [16:21:37]execute_script done [16:21:37]execute_script returns [16:21:37]free content buf [16:21:37]Sock 8.Close socket [16:21:37]Sock 8.Thread stoped [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:52]accept exits with 9 [16:23:52]New connection [16:23:52]New thread 3067575652 created [16:23:52]Thread 3067432292 joined [16:23:52]Waiting for new connection... [16:23:52] Sock 9.Parse request [16:23:52]Sock 9.Check first char [16:23:52]Sock 9.First char is OK [16:23:52]request: POST /json_proto HTTP/1.0 [16:23:52]Method: POST [16:23:52]URL: /json_proto [16:23:52]Method is POST - this is cgi request [16:23:52]url: /json_proto [16:23:52]query_string will be loaded in cgi processing [16:23:52]execute_cgi json_proto POST (null) [16:23:52]execute_cgi path=json_proto method=POST [16:23:52]POST find Content-Length [16:23:52]Host: 172.17.44.196:8080 [16:23:52]Content-Length: 678 [16:23:52]Content-Type: application/json [16:23:52] [16:23:52]POST finish read [16:23:52]Found Content-Length = 678 [16:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963131", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:52]execute_script... [16:23: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)1963131", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:52]POST & json_proto [16:23:52]process_json_proto [16:23:52]json parsed OK: [16:23:52]protocol is kg_v1.0 [16:23:52]action value=close_receipt [16:23:52]process_action close_receipt [16:23:52]cmd_close_receipt [16:23:52]MH_GetDate [16:23:52]Write to MH i2c: F0 00 00 85 41 B5 [16:23:52]Write i2c OK [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: F0 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: F0 09 00 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: F0 09 00 85 41 00 9A 2E 15 67 E7 19 F8 65 5F [16:23:52]GetLastDocTimeStamp 1729441295 [16:23:52]current date 1729441434 [16:23:52]FM_GetShiftState [16:23:52]SAM_PROTO_GetShiftState [16:23:52]wFMCommunicate request_size=4 [16:23:52]MH_SAM_APDU [16:23:52]CAPDU: 80 13 01 00 [16:23:52]Write to MH i2c: E2 08 00 86 41 80 13 01 00 00 00 00 00 44 [16:23:52]Write i2c OK [16:23:52]MH_I2C_Read... [16:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:52]Read from MH i2c: E2 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: E2 0E 00 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: E2 0E 00 86 41 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 89 [16:23:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:23:52]wFMCommunicate OK [16:23:52]SAM_PROTO_GetShiftState done [16:23:52]FM_GetShiftState done [16:23:52]opened in 1729384303 [16:23:52]opened+sec_in_day 1729470703 [16:23:52]quantity*price = 30038 [16:23:52]sum+1 = 30039 [16:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 256 20.10.2024 16:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73930 ФПД: 253749078010115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162354&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73930&fm=253749078010115&tin=02508201610067®Number=0000000000161154&sum=30000 [16:23:53]StoreToDocumentArchive [16:23:53]shift 170 fd 73930 [16:23:53]save to /storage/0170/doc_00073930 [16:23:53]save last doc name /storage/0170/doc_00073930 to /storage/kkm_last_doc_name [16:23:53]save OK [16:23:53]Clear old archive folders... [16:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:53]tlvbuf is 00483EB0 [16:23:53]SAM_PROTO_ClearQueue [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 09 00 00 [16:23:53]Write to MH i2c: E2 08 00 93 41 80 09 00 00 00 00 00 00 46 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 93 41 00 90 00 48 [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]SAM_PROTO_ClearQueue done [16:23:53]KKMCreateOFDPacket [16:23:53]OFDProtocolAddRootSTLVToBuf [16:23:53]FM_MakeSignedData [16:23:53]FM_MakeSignedData [16:23:53]SAM_PROTO_SignData [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 01 02 [16:23:53]Write to MH i2c: E2 08 00 94 41 80 0D 01 02 00 00 00 00 4E [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 94 41 00 90 00 49 [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]wFMCommunicate request_size=255 [16:23:53]MH_SAM_APDU [16:23:53]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 00 01 00 00 F4 03 04 00 9A 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 20 01 00 35 04 06 00 E6 [16:23:53]Write to MH i2c: E2 02 01 95 41 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 00 01 00 00 F4 03 04 00 9A 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 20 01 00 35 04 06 00 E6 00 00 84 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 95 41 00 90 00 4A [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]wFMCommunicate request_size=10 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 02 02 05 C8 8F A8 29 03 [16:23:53]Write to MH i2c: E2 0D 00 96 41 80 0D 02 02 05 00 C8 8F A8 29 03 00 00 86 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 96 41 00 90 00 4B [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 03 02 [16:23:53]Write to MH i2c: E2 08 00 97 41 80 0D 03 02 00 00 00 00 53 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:54]Read from MH i2c: E2 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: E2 0B 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: E2 0B 00 97 41 00 27 B6 74 F2 86 84 4D 78 90 00 66 [16:23:54]RAPDU: 27 B6 74 F2 86 84 4D 78 90 00 [16:23:54]wFMCommunicate OK [16:23:54]SAM_PROTO_SignData done [16:23:54]FM_MakeSignedData done [16:23:54]CreateOFDProtocolMessage [16:23:54]wFMCommunicate request_size=4 [16:23:54]MH_SAM_APDU [16:23:54]CAPDU: 80 11 00 00 [16:23:54]Write to MH i2c: E2 08 00 98 41 80 11 00 00 00 00 00 00 53 [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:54]Read from MH i2c: E2 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: E2 17 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: E2 17 00 98 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A0 [16:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:23:54]wFMCommunicate OK [16:23:54]CreateOFDProtocolMessage done [16:23:54]OFDSenderStorePacket 73930 [16:23:54]StoreOFDPacket docnum=73930 [16:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C0 15 07 01 6E 6F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 00 01 00 00 F4 03 04 00 9A 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 20 01 00 35 04 06 00 E6 C8 8F A8 29 03 27 B6 74 F2 86 84 4D 78 [16:23:54]CheckFolder [16:23:54]dirname=/storage/ofd_packets [16:23:54]CheckFolder done [16:23:54]ProducePacketName [16:23:54]name=ofd_packets/00073930 [16:23:54]NVStorageSaveData ofd_packets/00073930 [16:23:54]File name is /storage/ofd_packets/00073930 [16:23:54]Write 301 bytes [16:23:54]NVStorageSaveData done [16:23:54]OFDSenderStorePacket done [16:23:54]KKMCreateOFDPacket done [16:23:54]NVStorageSaveData kkm_last_timestamp [16:23:54]File name is /storage/kkm_last_timestamp [16:23:54]Write 4 bytes [16:23:54]NVStorageSaveData done [16:23:54]ExternCall_PrintAddStr [16:23:54]wPrintStart [16:23:54]Write to MH i2c: 01 00 00 99 41 DA [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 07 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 07 00 99 41 00 00 00 00 00 FF 0F EF [16:23:54]RasterBufferAndPrint [16:23:54]line Счет N : (1)1963131 [16:23:54]line ИНН: 02508201610067 [16:23:54]line Контрольно-Кассовый Чек [16:23:54]line ПРОДАЖА [16:23:54]line ТРК (МРК, ГНК) : 53 [16:23:54]line Товар: 2710124130 [16:23:54]line Аи-92-К-5 [16:23:54]line 4.490 * 66.90 [16:23:54]line = 300.38 [16:23:54]line НДС 12% НСП 1% [16:23:54]line > о реализуемом товаре [16:23:54]line ОКРУГЛЕНИЕ: -0.38 [16:23:54]line ИТОГО: 300.00 [16:23:54]line Внесено: 300.00 [16:23:54]line СДАЧА: 0.00 [16:23:54]line НСП 1% : 2.66 [16:23:54]line НДС 12% : 31.90 [16:23:54]line Наличными: 300.00 [16:23:54]line Безнал.: 0.00 [16:23:54]line Место: АЗС № 133 "Партнер Нефть" [16:23:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:23:54]line СНО: Общий режим [16:23:54]line Чек 256 20.10.2024 16:23 [16:23:54]line Смена: 170 ФФД: 1.0 [16:23:54]line ЗНМ: 0300000020 [16:23:54]line РНМ: 0000000000161154 [16:23:54]line Версия ККМ: v1.0 [16:23:54]line ФМ: 0000000000963323 [16:23:54]line ФД: 73930 [16:23:54]line ФПД: 253749078010115 [16:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162354&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73930&fm=253749078010115&tin=02508201610067®Number=0000000000161154&sum=30000 [16:23:54]OFD Sender: Processing packet 73930 [packets to send 15, broken 14] [16:23:54]ProducePacketName [16:23:54]name=ofd_packets/00073930 [16:23:54]OFD Sender: To server: pG, [16:23:54]CommunicateWithHost lk.salyk.kg:30040 [16:23:54]ConnectInit lk.salyk.kg [16:23:54]written 0, free lines is 4095 [16:23:54]Connected sock=11 [16:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C0 15 07 01 6E 6F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 00 01 00 00 F4 03 04 00 9A 2E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 20 01 00 35 04 06 00 E6 C8 8F A8 29 03 27 B6 74 F2 86 84 4D 78 [16:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 33 F8 47 00 53 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 39 36 33 33 32 33 10 04 04 00 CA 20 01 00 F4 03 04 00 7F D7 14 67 B6 04 01 00 00 57 FA FB 1E 83 73 2B BE [16:23:54]CommunicateWithHost err = 0 [16:23:54]CheckOFDResponse [16:23:54]1017 (14) - 77093643461234 [16:23:54]1041 (16) - 0000000000963323 [16:23:54]1040 (4) - 73930 [16:23:54]1012 (4) - 20.10.2024 10:12 [16:23:54]1206 (1) - 0 [16:23:54]OFD Sender: Remove packet 73930 [16:23:54]ProducePacketName [16:23:54]name=ofd_packets/00073930 [16:23:54]NVStorageDeleteData [16:23:54]Write to MH i2c: 01 00 00 C3 41 04 [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 07 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 07 00 C3 41 00 00 00 00 00 BF 0C D6 [16:23:54]RasterBufferAndPrint [16:23:54]line [16:23:54]line [16:23:54]line [16:23:54]line [16:23:54]line [16:23:54]written 0, free lines is 3267 [16:23:54]MH_Cut [16:23:54]Write to MH i2c: D1 01 00 CA 41 01 DD [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: D1 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: D1 01 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: D1 01 00 CA 41 00 DC [16:23:54]Write to MH i2c: 01 00 00 CB 41 0C [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:55]OFD Sender: No OFD packet to send [16:23:55]*** Cut start [16:23:55]*** Partial cut [16:23:55]*** CUTSNS_PIN = 1 [16:23:55]*** CUTSNS_PIN = 0 [16:23:55]*** Brake cut motor [16:23:56]Read from MH i2c: 01 [16:23:56]MH_I2C_Read... [16:23:56]*** Stop cut motor [16:23:56]*** Cut end [16:23:56]Read from MH i2c: 01 07 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 CB 41 00 00 00 00 00 FF 0F 21 [16:23:56]process_action close_receipt done [16:23:56]requested_data is exist [16:23:56]produce_requested_data [16:23:56]requested_item fm.sn is exist - process it [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 11 00 00 [16:23:56]Write to MH i2c: E2 08 00 CC 41 80 11 00 00 00 00 00 00 87 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 17 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 17 00 CC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [16:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:23:56]wFMCommunicate OK [16:23:56]requested_item fd.num is exist - process it [16:23:56]SAM_PROTO_GetFieldsCounters [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 13 00 00 [16:23:56]Write to MH i2c: E2 08 00 CD 41 80 13 00 00 00 00 00 00 8A [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 62 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 62 00 CD 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [16:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_GetFieldsCounters done [16:23:56]requested_item shift.num is exist - process it [16:23:56]requested_item shift.opened is exist - process it [16:23:56]req_shift_opened [16:23:56]FM_GetShiftState [16:23:56]SAM_PROTO_GetShiftState [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 13 01 00 [16:23:56]Write to MH i2c: E2 08 00 CE 41 80 13 01 00 00 00 00 00 8C [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 0E 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 0E 00 CE 41 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D1 [16:23:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_GetShiftState done [16:23:56]FM_GetShiftState done [16:23:56]req_shift_opened done [16:23:56]requested_item shift.open_date is exist - process it [16:23:56]req_shift_open_date [16:23:56]req_shift_open_date done [16:23:56]produce_requested_data done [16:23:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73930,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:23:56]process_action_free close_receipt [16:23:56]json_value_free [16:23:56]json_value_free done [16:23:56]process_json_proto returns [16:23:56]Send response to host [16:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73930,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:23:56]free response buf [16:23:56]execute_script done [16:23:56]execute_script returns [16:23:56]free content buf [16:23:56]Sock 9.Close socket [16:23:56]Sock 9.Thread stoped [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:16]accept exits with 8 [16:26:16]New connection [16:26:16]New thread 3067432292 created [16:26:16]Thread 3067575652 joined [16:26:16]Waiting for new connection... [16:26:16] Sock 8.Parse request [16:26:16]Sock 8.Check first char [16:26:16]Sock 8.First char is OK [16:26:16]request: POST /json_proto HTTP/1.0 [16:26:16]Method: POST [16:26:16]URL: /json_proto [16:26:16]Method is POST - this is cgi request [16:26:16]url: /json_proto [16:26:16]query_string will be loaded in cgi processing [16:26:16]execute_cgi json_proto POST (null) [16:26:16]execute_cgi path=json_proto method=POST [16:26:16]POST find Content-Length [16:26:16]Host: 172.17.44.196:8080 [16:26:16]Content-Length: 678 [16:26:16]Content-Type: application/json [16:26:16] [16:26:16]POST finish read [16:26:16]Found Content-Length = 678 [16:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963132", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:16]execute_script... [16:26: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)1963132", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:16]POST & json_proto [16:26:16]process_json_proto [16:26:16]json parsed OK: [16:26:16]protocol is kg_v1.0 [16:26:16]action value=close_receipt [16:26:16]process_action close_receipt [16:26:16]cmd_close_receipt [16:26:16]MH_GetDate [16:26:16]Write to MH i2c: F0 00 00 CF 41 FF [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: F0 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: F0 09 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: F0 09 00 CF 41 00 2A 2F 15 67 E7 19 F8 65 3A [16:26:16]GetLastDocTimeStamp 1729441434 [16:26:16]current date 1729441578 [16:26:16]FM_GetShiftState [16:26:16]SAM_PROTO_GetShiftState [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 13 01 00 [16:26:16]Write to MH i2c: E2 08 00 D0 41 80 13 01 00 00 00 00 00 8E [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0E 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0E 00 D0 41 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D3 [16:26:16]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:26:16]wFMCommunicate OK [16:26:16]SAM_PROTO_GetShiftState done [16:26:16]FM_GetShiftState done [16:26:16]opened in 1729384303 [16:26:16]opened+sec_in_day 1729470703 [16:26:16]quantity*price = 30038 [16:26:16]sum+1 = 30039 [16:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 257 20.10.2024 16:26 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73931 ФПД: 277716215701581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73931&fm=277716215701581&tin=02508201610067®Number=0000000000161154&sum=30000 [16:26:17]StoreToDocumentArchive [16:26:17]shift 170 fd 73931 [16:26:17]save to /storage/0170/doc_00073931 [16:26:17]save last doc name /storage/0170/doc_00073931 to /storage/kkm_last_doc_name [16:26:17]save OK [16:26:17]Clear old archive folders... [16:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:17]tlvbuf is 0037ABC0 [16:26:17]SAM_PROTO_ClearQueue [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 09 00 00 [16:26:17]Write to MH i2c: E2 08 00 DD 41 80 09 00 00 00 00 00 00 90 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 DD 41 00 90 00 92 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_ClearQueue done [16:26:17]KKMCreateOFDPacket [16:26:17]OFDProtocolAddRootSTLVToBuf [16:26:17]FM_MakeSignedData [16:26:17]FM_MakeSignedData [16:26:17]SAM_PROTO_SignData [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 0D 01 02 [16:26:17]Write to MH i2c: E2 08 00 DE 41 80 0D 01 02 00 00 00 00 98 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 DE 41 00 90 00 93 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]wFMCommunicate request_size=255 [16:26:17]MH_SAM_APDU [16:26:17]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 01 01 00 00 F4 03 04 00 2B 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 20 01 00 35 04 06 00 FC [16:26:17]Write to MH i2c: E2 02 01 DF 41 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 01 01 00 00 F4 03 04 00 2B 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 20 01 00 35 04 06 00 FC 00 00 78 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 03 00 DF 41 00 90 00 94 [16:26:17]RAPDU: 90 00 [16:26:17]wFMCommunicate OK [16:26:17]wFMCommunicate request_size=10 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 0D 02 02 05 94 D8 62 A0 4D [16:26:17]Write to MH i2c: E2 0D 00 E0 41 80 0D 02 02 05 00 94 D8 62 A0 4D 00 00 60 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 E0 41 00 90 00 95 [16:26:18]RAPDU: 90 00 [16:26:18]wFMCommunicate OK [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 0D 03 02 [16:26:18]Write to MH i2c: E2 08 00 E1 41 80 0D 03 02 00 00 00 00 9D [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 0B 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 0B 00 E1 41 00 18 77 31 4E 28 5D EA 17 90 00 32 [16:26:18]RAPDU: 18 77 31 4E 28 5D EA 17 90 00 [16:26:18]wFMCommunicate OK [16:26:18]SAM_PROTO_SignData done [16:26:18]FM_MakeSignedData done [16:26:18]CreateOFDProtocolMessage [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 11 00 00 [16:26:18]Write to MH i2c: E2 08 00 E2 41 80 11 00 00 00 00 00 00 9D [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 17 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 17 00 E2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EA [16:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:26:18]wFMCommunicate OK [16:26:18]CreateOFDProtocolMessage done [16:26:18]OFDSenderStorePacket 73931 [16:26:18]StoreOFDPacket docnum=73931 [16:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E1 64 07 01 B1 D3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 01 01 00 00 F4 03 04 00 2B 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 20 01 00 35 04 06 00 FC 94 D8 62 A0 4D 18 77 31 4E 28 5D EA 17 [16:26:18]CheckFolder [16:26:18]dirname=/storage/ofd_packets [16:26:18]CheckFolder done [16:26:18]ProducePacketName [16:26:18]name=ofd_packets/00073931 [16:26:18]NVStorageSaveData ofd_packets/00073931 [16:26:18]File name is /storage/ofd_packets/00073931 [16:26:18]Write 301 bytes [16:26:18]NVStorageSaveData done [16:26:18]OFDSenderStorePacket done [16:26:18]KKMCreateOFDPacket done [16:26:18]NVStorageSaveData kkm_last_timestamp [16:26:18]File name is /storage/kkm_last_timestamp [16:26:18]Write 4 bytes [16:26:18]NVStorageSaveData done [16:26:18]ExternCall_PrintAddStr [16:26:18]wPrintStart [16:26:18]Write to MH i2c: 01 00 00 E3 41 24 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 E3 41 00 00 00 00 00 FF 0F 39 [16:26:18]RasterBufferAndPrint [16:26:18]line Счет N : (1)1963132 [16:26:18]line ИНН: 02508201610067 [16:26:18]line Контрольно-Кассовый Чек [16:26:18]line ПРОДАЖА [16:26:18]line ТРК (МРК, ГНК) : 43 [16:26:18]line Товар: 2710124130 [16:26:18]line Аи-92-К-5 [16:26:18]line 4.490 * 66.90 [16:26:18]line = 300.38 [16:26:18]line НДС 12% НСП 1% [16:26:18]line > о реализуемом товаре [16:26:18]line ОКРУГЛЕНИЕ: -0.38 [16:26:18]line ИТОГО: 300.00 [16:26:18]line Внесено: 300.00 [16:26:18]line СДАЧА: 0.00 [16:26:18]line НСП 1% : 2.66 [16:26:18]line НДС 12% : 31.90 [16:26:18]line Наличными: 300.00 [16:26:18]line Безнал.: 0.00 [16:26:18]line Место: АЗС № 133 "Партнер Нефть" [16:26:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:26:18]line СНО: Общий режим [16:26:18]line Чек 257 20.10.2024 16:26 [16:26:18]line Смена: 170 ФФД: 1.0 [16:26:18]line ЗНМ: 0300000020 [16:26:18]line РНМ: 0000000000161154 [16:26:18]line Версия ККМ: v1.0 [16:26:18]line ФМ: 0000000000963323 [16:26:18]line ФД: 73931 [16:26:18]line ФПД: 277716215701581 [16:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73931&fm=277716215701581&tin=02508201610067®Number=0000000000161154&sum=30000 [16:26:18]OFD Sender: Processing packet 73931 [packets to send 15, broken 14] [16:26:18]ProducePacketName [16:26:18]name=ofd_packets/00073931 [16:26:18]OFD Sender: To server: pG, [16:26:18]CommunicateWithHost lk.salyk.kg:30040 [16:26:18]ConnectInit lk.salyk.kg [16:26:18]written 0, free lines is 4095 [16:26:18]Connected sock=10 [16:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E1 64 07 01 B1 D3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 01 01 00 00 F4 03 04 00 2B 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 20 01 00 35 04 06 00 FC 94 D8 62 A0 4D 18 77 31 4E 28 5D EA 17 [16:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6B 8D 47 00 2B 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 39 36 33 33 32 33 10 04 04 00 CB 20 01 00 F4 03 04 00 0F D8 14 67 B6 04 01 00 00 42 FD 65 2A 6C 98 A5 F9 [16:26:18]CommunicateWithHost err = 0 [16:26:18]CheckOFDResponse [16:26:18]1017 (14) - 77093643461234 [16:26:18]1041 (16) - 0000000000963323 [16:26:18]1040 (4) - 73931 [16:26:18]1012 (4) - 20.10.2024 10:14 [16:26:18]1206 (1) - 0 [16:26:18]OFD Sender: Remove packet 73931 [16:26:18]ProducePacketName [16:26:18]name=ofd_packets/00073931 [16:26:18]NVStorageDeleteData [16:26:18]Write to MH i2c: 01 00 00 0D 42 4F [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 0D 42 00 00 00 00 00 C1 0C 23 [16:26:18]RasterBufferAndPrint [16:26:18]line [16:26:18]line [16:26:18]line [16:26:18]line [16:26:18]line [16:26:18]written 0, free lines is 3269 [16:26:18]MH_Cut [16:26:18]Write to MH i2c: D1 01 00 14 42 01 28 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: D1 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: D1 01 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: D1 01 00 14 42 00 27 [16:26:18]Write to MH i2c: 01 00 00 15 42 57 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:19]OFD Sender: No OFD packet to send [16:26:19]*** Cut start [16:26:19]*** Partial cut [16:26:19]*** CUTSNS_PIN = 1 [16:26:19]*** CUTSNS_PIN = 0 [16:26:20]*** Brake cut motor [16:26:20]Read from MH i2c: 01 [16:26:20]MH_I2C_Read... [16:26:20]*** Stop cut motor [16:26:20]*** Cut end [16:26:20]Read from MH i2c: 01 07 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: 01 07 00 15 42 00 00 00 00 00 FF 0F 6C [16:26:20]process_action close_receipt done [16:26:20]requested_data is exist [16:26:20]produce_requested_data [16:26:20]requested_item fm.sn is exist - process it [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 11 00 00 [16:26:20]Write to MH i2c: E2 08 00 16 42 80 11 00 00 00 00 00 00 D2 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 17 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 17 00 16 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1F [16:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:26:20]wFMCommunicate OK [16:26:20]requested_item fd.num is exist - process it [16:26:20]SAM_PROTO_GetFieldsCounters [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 13 00 00 [16:26:20]Write to MH i2c: E2 08 00 17 42 80 13 00 00 00 00 00 00 D5 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 62 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 62 00 17 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [16:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:20]wFMCommunicate OK [16:26:20]SAM_PROTO_GetFieldsCounters done [16:26:20]requested_item shift.num is exist - process it [16:26:20]requested_item shift.opened is exist - process it [16:26:20]req_shift_opened [16:26:20]FM_GetShiftState [16:26:20]SAM_PROTO_GetShiftState [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 13 01 00 [16:26:20]Write to MH i2c: E2 08 00 18 42 80 13 01 00 00 00 00 00 D7 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 0E 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 0E 00 18 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1C [16:26:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:26:20]wFMCommunicate OK [16:26:20]SAM_PROTO_GetShiftState done [16:26:20]FM_GetShiftState done [16:26:20]req_shift_opened done [16:26:20]requested_item shift.open_date is exist - process it [16:26:20]req_shift_open_date [16:26:20]req_shift_open_date done [16:26:20]produce_requested_data done [16:26:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73931,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:26:20]process_action_free close_receipt [16:26:20]json_value_free [16:26:20]json_value_free done [16:26:20]process_json_proto returns [16:26:20]Send response to host [16:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73931,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:26:20]free response buf [16:26:20]execute_script done [16:26:20]execute_script returns [16:26:20]free content buf [16:26:20]Sock 8.Close socket [16:26:20]Sock 8.Thread stoped [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:21]accept exits with 9 [16:28:21]New connection [16:28:21]New thread 3067575652 created [16:28:21]Thread 3067432292 joined [16:28:21]Waiting for new connection... [16:28:21] Sock 9.Parse request [16:28:21]Sock 9.Check first char [16:28:21]Sock 9.First char is OK [16:28:21]request: POST /json_proto HTTP/1.0 [16:28:21]Method: POST [16:28:21]URL: /json_proto [16:28:21]Method is POST - this is cgi request [16:28:21]url: /json_proto [16:28:21]query_string will be loaded in cgi processing [16:28:21]execute_cgi json_proto POST (null) [16:28:21]execute_cgi path=json_proto method=POST [16:28:21]POST find Content-Length [16:28:21]Host: 172.17.44.196:8080 [16:28:21]Content-Length: 678 [16:28:21]Content-Type: application/json [16:28:21] [16:28:21]POST finish read [16:28:21]Found Content-Length = 678 [16:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963133", "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" : 7.480, "sum" : 500.41, "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" ] } } [16:28:21]execute_script... [16:28: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 : (1)1963133", "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" : 7.480, "sum" : 500.41, "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" ] } } [16:28:21]POST & json_proto [16:28:21]process_json_proto [16:28:21]json parsed OK: [16:28:21]protocol is kg_v1.0 [16:28:21]action value=close_receipt [16:28:21]process_action close_receipt [16:28:21]cmd_close_receipt [16:28:21]MH_GetDate [16:28:21]Write to MH i2c: F0 00 00 19 42 4A [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: F0 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: F0 09 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: F0 09 00 19 42 00 A7 2F 15 67 E7 19 F8 65 02 [16:28:21]GetLastDocTimeStamp 1729441579 [16:28:21]current date 1729441703 [16:28:21]FM_GetShiftState [16:28:21]SAM_PROTO_GetShiftState [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 13 01 00 [16:28:21]Write to MH i2c: E2 08 00 1A 42 80 13 01 00 00 00 00 00 D9 [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 0E 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 0E 00 1A 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1E [16:28:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:28:21]wFMCommunicate OK [16:28:21]SAM_PROTO_GetShiftState done [16:28:21]FM_GetShiftState done [16:28:21]opened in 1729384303 [16:28:21]opened+sec_in_day 1729470703 [16:28:21]quantity*price = 50041 [16:28:21]sum+1 = 50042 [16:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 258 20.10.2024 16:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73932 ФПД: 4705063134613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162823&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73932&fm=4705063134613&tin=02508201610067®Number=0000000000161154&sum=50000 [16:28:22]StoreToDocumentArchive [16:28:22]shift 170 fd 73932 [16:28:22]save to /storage/0170/doc_00073932 [16:28:22]save last doc name /storage/0170/doc_00073932 to /storage/kkm_last_doc_name [16:28:22]save OK [16:28:22]Clear old archive folders... [16:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:22]tlvbuf is 003316F0 [16:28:22]SAM_PROTO_ClearQueue [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 09 00 00 [16:28:22]Write to MH i2c: E2 08 00 27 42 80 09 00 00 00 00 00 00 DB [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 27 42 00 90 00 DD [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]SAM_PROTO_ClearQueue done [16:28:22]KKMCreateOFDPacket [16:28:22]OFDProtocolAddRootSTLVToBuf [16:28:22]FM_MakeSignedData [16:28:22]FM_MakeSignedData [16:28:22]SAM_PROTO_SignData [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 0D 01 02 [16:28:22]Write to MH i2c: E2 08 00 28 42 80 0D 01 02 00 00 00 00 E3 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 28 42 00 90 00 DE [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]wFMCommunicate request_size=255 [16:28:22]MH_SAM_APDU [16:28: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 02 01 00 00 F4 03 04 00 A7 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 20 01 00 35 04 06 00 04 [16:28:22]Write to MH i2c: E2 02 01 29 42 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 02 01 00 00 F4 03 04 00 A7 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 20 01 00 35 04 06 00 04 00 00 55 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 29 42 00 90 00 DF [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]wFMCommunicate request_size=10 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 0D 02 02 05 47 7B 9D E5 95 [16:28:22]Write to MH i2c: E2 0D 00 2A 42 80 0D 02 02 05 00 47 7B 9D E5 95 00 00 C9 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 03 00 2A 42 00 90 00 E0 [16:28:22]RAPDU: 90 00 [16:28:22]wFMCommunicate OK [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 0D 03 02 [16:28:22]Write to MH i2c: E2 08 00 2B 42 80 0D 03 02 00 00 00 00 E8 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 0B 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 0B 00 2B 42 00 A0 0C F5 A0 52 E3 B4 73 90 00 86 [16:28:22]RAPDU: A0 0C F5 A0 52 E3 B4 73 90 00 [16:28:22]wFMCommunicate OK [16:28:22]SAM_PROTO_SignData done [16:28:22]FM_MakeSignedData done [16:28:22]CreateOFDProtocolMessage [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 11 00 00 [16:28:22]Write to MH i2c: E2 08 00 2C 42 80 11 00 00 00 00 00 00 E8 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 17 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 17 00 2C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 35 [16:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:28:22]wFMCommunicate OK [16:28:22]CreateOFDProtocolMessage done [16:28:22]OFDSenderStorePacket 73932 [16:28:22]StoreOFDPacket docnum=73932 [16:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC 99 07 01 89 F8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 02 01 00 00 F4 03 04 00 A7 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 20 01 00 35 04 06 00 04 47 7B 9D E5 95 A0 0C F5 A0 52 E3 B4 73 [16:28:22]CheckFolder [16:28:22]dirname=/storage/ofd_packets [16:28:22]CheckFolder done [16:28:22]ProducePacketName [16:28:22]name=ofd_packets/00073932 [16:28:22]NVStorageSaveData ofd_packets/00073932 [16:28:22]File name is /storage/ofd_packets/00073932 [16:28:22]Write 301 bytes [16:28:22]NVStorageSaveData done [16:28:22]OFDSenderStorePacket done [16:28:22]KKMCreateOFDPacket done [16:28:22]NVStorageSaveData kkm_last_timestamp [16:28:22]File name is /storage/kkm_last_timestamp [16:28:22]Write 4 bytes [16:28:22]NVStorageSaveData done [16:28:22]ExternCall_PrintAddStr [16:28:22]wPrintStart [16:28:22]Write to MH i2c: 01 00 00 2D 42 6F [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 07 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 07 00 2D 42 00 00 00 00 00 FF 0F 84 [16:28:22]RasterBufferAndPrint [16:28:22]line Счет N : (1)1963133 [16:28:22]line ИНН: 02508201610067 [16:28:22]line Контрольно-Кассовый Чек [16:28:22]line ПРОДАЖА [16:28:22]line ТРК (МРК, ГНК) : 43 [16:28:22]line Товар: 2710124130 [16:28:22]line Аи-92-К-5 [16:28:22]line 7.480 * 66.90 [16:28:22]line = 500.41 [16:28:22]line НДС 12% НСП 1% [16:28:22]line > о реализуемом товаре [16:28:22]line ОКРУГЛЕНИЕ: -0.41 [16:28:22]line ИТОГО: 500.00 [16:28:22]line Внесено: 500.00 [16:28:22]line СДАЧА: 0.00 [16:28:22]line НСП 1% : 4.43 [16:28:22]line НДС 12% : 53.14 [16:28:22]line Наличными: 500.00 [16:28:22]line Безнал.: 0.00 [16:28:22]line Место: АЗС № 133 "Партнер Нефть" [16:28:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:28:22]line СНО: Общий режим [16:28:22]line Чек 258 20.10.2024 16:28 [16:28:22]line Смена: 170 ФФД: 1.0 [16:28:22]line ЗНМ: 0300000020 [16:28:22]line РНМ: 0000000000161154 [16:28:22]line Версия ККМ: v1.0 [16:28:22]line ФМ: 0000000000963323 [16:28:22]line ФД: 73932 [16:28:22]line ФПД: 4705063134613 [16:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162823&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73932&fm=4705063134613&tin=02508201610067®Number=0000000000161154&sum=50000 [16:28:23]OFD Sender: Processing packet 73932 [packets to send 15, broken 14] [16:28:23]ProducePacketName [16:28:23]name=ofd_packets/00073932 [16:28:23]OFD Sender: To server: pG, [16:28:23]CommunicateWithHost lk.salyk.kg:30040 [16:28:23]ConnectInit lk.salyk.kg [16:28:23]written 0, free lines is 4095 [16:28:23]Connected sock=10 [16:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC 99 07 01 89 F8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 02 01 00 00 F4 03 04 00 A7 2F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 20 01 00 35 04 06 00 04 47 7B 9D E5 95 A0 0C F5 A0 52 E3 B4 73 [16:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FD B8 47 00 8B 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 39 36 33 33 32 33 10 04 04 00 CC 20 01 00 F4 03 04 00 8C D8 14 67 B6 04 01 00 00 2F 6A 91 06 81 66 43 E8 [16:28:23]CommunicateWithHost err = 0 [16:28:23]CheckOFDResponse [16:28:23]1017 (14) - 77093643461234 [16:28:23]1041 (16) - 0000000000963323 [16:28:23]1040 (4) - 73932 [16:28:23]1012 (4) - 20.10.2024 10:16 [16:28:23]1206 (1) - 0 [16:28:23]OFD Sender: Remove packet 73932 [16:28:23]ProducePacketName [16:28:23]name=ofd_packets/00073932 [16:28:23]NVStorageDeleteData [16:28:23]Write to MH i2c: 01 00 00 57 42 99 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 07 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 07 00 57 42 00 00 00 00 00 B8 0C 64 [16:28:23]RasterBufferAndPrint [16:28:23]line [16:28:23]line [16:28:23]line [16:28:23]line [16:28:23]line [16:28:23]written 0, free lines is 3261 [16:28:23]MH_Cut [16:28:23]Write to MH i2c: D1 01 00 5E 42 01 72 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: D1 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: D1 01 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: D1 01 00 5E 42 00 71 [16:28:23]Write to MH i2c: 01 00 00 5F 42 A1 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:24]OFD Sender: No OFD packet to send [16:28:24]*** Cut start [16:28:24]*** Partial cut [16:28:24]*** CUTSNS_PIN = 1 [16:28:24]*** CUTSNS_PIN = 0 [16:28:24]*** Brake cut motor [16:28:25]Read from MH i2c: 01 [16:28:25]MH_I2C_Read... [16:28:25]*** Stop cut motor [16:28:25]*** Cut end [16:28:25]Read from MH i2c: 01 07 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 07 00 5F 42 00 00 00 00 00 FF 0F B6 [16:28:25]process_action close_receipt done [16:28:25]requested_data is exist [16:28:25]produce_requested_data [16:28:25]requested_item fm.sn is exist - process it [16:28:25]wFMCommunicate request_size=4 [16:28:25]MH_SAM_APDU [16:28:25]CAPDU: 80 11 00 00 [16:28:25]Write to MH i2c: E2 08 00 60 42 80 11 00 00 00 00 00 00 1C [16:28:25]Write i2c OK [16:28:25]MH_I2C_Read... [16:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:25]Read from MH i2c: E2 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: E2 17 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: E2 17 00 60 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [16:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:28:25]wFMCommunicate OK [16:28:25]requested_item fd.num is exist - process it [16:28:25]SAM_PROTO_GetFieldsCounters [16:28:25]wFMCommunicate request_size=4 [16:28:25]MH_SAM_APDU [16:28:25]CAPDU: 80 13 00 00 [16:28:25]Write to MH i2c: E2 08 00 61 42 80 13 00 00 00 00 00 00 1F [16:28:25]Write i2c OK [16:28:25]MH_I2C_Read... [16:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:25]Read from MH i2c: E2 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: E2 62 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: E2 62 00 61 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:25]wFMCommunicate OK [16:28:25]SAM_PROTO_GetFieldsCounters done [16:28:25]requested_item shift.num is exist - process it [16:28:25]requested_item shift.opened is exist - process it [16:28:25]req_shift_opened [16:28:25]FM_GetShiftState [16:28:25]SAM_PROTO_GetShiftState [16:28:25]wFMCommunicate request_size=4 [16:28:25]MH_SAM_APDU [16:28:25]CAPDU: 80 13 01 00 [16:28:25]Write to MH i2c: E2 08 00 62 42 80 13 01 00 00 00 00 00 21 [16:28:25]Write i2c OK [16:28:25]MH_I2C_Read... [16:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:25]Read from MH i2c: E2 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: E2 0E 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: E2 0E 00 62 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 66 [16:28:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:28:25]wFMCommunicate OK [16:28:25]SAM_PROTO_GetShiftState done [16:28:25]FM_GetShiftState done [16:28:25]req_shift_opened done [16:28:25]requested_item shift.open_date is exist - process it [16:28:25]req_shift_open_date [16:28:25]req_shift_open_date done [16:28:25]produce_requested_data done [16:28:25]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73932,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:28:25]process_action_free close_receipt [16:28:25]json_value_free [16:28:25]json_value_free done [16:28:25]process_json_proto returns [16:28:25]Send response to host [16:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73932,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:28:25]free response buf [16:28:25]execute_script done [16:28:25]execute_script returns [16:28:25]free content buf [16:28:25]Sock 9.Close socket [16:28:25]Sock 9.Thread stoped [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:45]accept exits with 8 [16:32:45]New connection [16:32:45]New thread 3067432292 created [16:32:45]Thread 3067575652 joined [16:32:45]Waiting for new connection... [16:32:45] Sock 8.Parse request [16:32:45]Sock 8.Check first char [16:32:45]Sock 8.First char is OK [16:32:45]request: POST /json_proto HTTP/1.0 [16:32:45]Method: POST [16:32:45]URL: /json_proto [16:32:45]Method is POST - this is cgi request [16:32:45]url: /json_proto [16:32:45]query_string will be loaded in cgi processing [16:32:45]execute_cgi json_proto POST (null) [16:32:45]execute_cgi path=json_proto method=POST [16:32:45]POST find Content-Length [16:32:45]Host: 172.17.44.196:8080 [16:32:45]Content-Length: 979 [16:32:45]Content-Type: application/json [16:32:45] [16:32:45]POST finish read [16:32:45]Found Content-Length = 979 [16:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:45]execute_script... [16:32: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 : (1)1963134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:45]POST & json_proto [16:32:45]process_json_proto [16:32:45]json parsed OK: [16:32:45]protocol is kg_v1.0 [16:32:45]action value=close_receipt [16:32:45]process_action close_receipt [16:32:45]cmd_close_receipt [16:32:45]MH_GetDate [16:32:45]Write to MH i2c: F0 00 00 63 42 94 [16:32:45]Write i2c OK [16:32:45]MH_I2C_Read... [16:32:45]Read from MH i2c: F0 [16:32:45]MH_I2C_Read... [16:32:45]Read from MH i2c: F0 09 00 [16:32:45]MH_I2C_Read... [16:32:45]Read from MH i2c: F0 09 00 63 42 00 AF 30 15 67 E7 19 F8 65 55 [16:32:45]GetLastDocTimeStamp 1729441703 [16:32:45]current date 1729441967 [16:32:45]FM_GetShiftState [16:32:45]SAM_PROTO_GetShiftState [16:32:45]wFMCommunicate request_size=4 [16:32:45]MH_SAM_APDU [16:32:45]CAPDU: 80 13 01 00 [16:32:45]Write to MH i2c: E2 08 00 64 42 80 13 01 00 00 00 00 00 23 [16:32:45]Write i2c OK [16:32:45]MH_I2C_Read... [16:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:45]Read from MH i2c: E2 [16:32:45]MH_I2C_Read... [16:32:45]Read from MH i2c: E2 0E 00 [16:32:45]MH_I2C_Read... [16:32:45]Read from MH i2c: E2 0E 00 64 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 68 [16:32:45]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:32:45]wFMCommunicate OK [16:32:45]SAM_PROTO_GetShiftState done [16:32:45]FM_GetShiftState done [16:32:45]opened in 1729384303 [16:32:45]opened+sec_in_day 1729470703 [16:32:45]quantity*price = 500004 [16:32:45]sum+1 = 500006 [16:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 259 20.10.2024 16:32 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 66.49 сом ФМ: 0000000000963323 ФД: 73933 ФПД: 116635438571738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163247&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73933&fm=116635438571738&tin=02508201610067®Number=0000000000161154&sum=500000 [16:32:46]StoreToDocumentArchive [16:32:46]shift 170 fd 73933 [16:32:46]save to /storage/0170/doc_00073933 [16:32:46]save last doc name /storage/0170/doc_00073933 to /storage/kkm_last_doc_name [16:32:46]save OK [16:32:46]Clear old archive folders... [16:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:32:46]tlvbuf is 0037D550 [16:32:46]SAM_PROTO_ClearQueue [16:32:46]wFMCommunicate request_size=4 [16:32:46]MH_SAM_APDU [16:32:46]CAPDU: 80 09 00 00 [16:32:46]Write to MH i2c: E2 08 00 71 42 80 09 00 00 00 00 00 00 25 [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 71 42 00 90 00 27 [16:32:46]RAPDU: 90 00 [16:32:46]wFMCommunicate OK [16:32:46]SAM_PROTO_ClearQueue done [16:32:46]KKMCreateOFDPacket [16:32:46]OFDProtocolAddRootSTLVToBuf [16:32:46]FM_MakeSignedData [16:32:46]FM_MakeSignedData [16:32:46]SAM_PROTO_SignData [16:32:46]wFMCommunicate request_size=4 [16:32:46]MH_SAM_APDU [16:32:46]CAPDU: 80 0D 01 02 [16:32:46]Write to MH i2c: E2 08 00 72 42 80 0D 01 02 00 00 00 00 2D [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 72 42 00 90 00 28 [16:32:46]RAPDU: 90 00 [16:32:46]wFMCommunicate OK [16:32:46]wFMCommunicate request_size=255 [16:32:46]MH_SAM_APDU [16:32:46]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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AF 30 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CD 20 01 00 35 04 06 00 6A 14 4D E2 [16:32:46]Write to MH i2c: E2 02 01 73 42 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AF 30 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CD 20 01 00 35 04 06 00 6A 14 4D E2 00 00 4C [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 73 42 00 90 00 29 [16:32:46]RAPDU: 90 00 [16:32:46]wFMCommunicate OK [16:32:46]wFMCommunicate request_size=7 [16:32:46]MH_SAM_APDU [16:32:46]CAPDU: 80 0D 02 02 02 60 DA [16:32:46]Write to MH i2c: E2 0A 00 74 42 80 0D 02 02 02 00 60 DA 00 00 6E [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 03 00 74 42 00 90 00 2A [16:32:46]RAPDU: 90 00 [16:32:46]wFMCommunicate OK [16:32:46]wFMCommunicate request_size=4 [16:32:46]MH_SAM_APDU [16:32:46]CAPDU: 80 0D 03 02 [16:32:46]Write to MH i2c: E2 08 00 75 42 80 0D 03 02 00 00 00 00 32 [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 0B 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 0B 00 75 42 00 12 19 6C B5 A4 54 02 98 90 00 11 [16:32:46]RAPDU: 12 19 6C B5 A4 54 02 98 90 00 [16:32:46]wFMCommunicate OK [16:32:46]SAM_PROTO_SignData done [16:32:46]FM_MakeSignedData done [16:32:46]CreateOFDProtocolMessage [16:32:46]wFMCommunicate request_size=4 [16:32:46]MH_SAM_APDU [16:32:46]CAPDU: 80 11 00 00 [16:32:46]Write to MH i2c: E2 08 00 76 42 80 11 00 00 00 00 00 00 32 [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 17 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 17 00 76 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [16:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:32:46]wFMCommunicate OK [16:32:46]CreateOFDProtocolMessage done [16:32:46]OFDSenderStorePacket 73933 [16:32:46]StoreOFDPacket docnum=73933 [16:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7A 7B 04 01 7A 13 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AF 30 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CD 20 01 00 35 04 06 00 6A 14 4D E2 60 DA 12 19 6C B5 A4 54 02 98 [16:32:46]CheckFolder [16:32:46]dirname=/storage/ofd_packets [16:32:46]CheckFolder done [16:32:46]ProducePacketName [16:32:46]name=ofd_packets/00073933 [16:32:46]NVStorageSaveData ofd_packets/00073933 [16:32:46]File name is /storage/ofd_packets/00073933 [16:32:46]Write 298 bytes [16:32:46]NVStorageSaveData done [16:32:46]OFDSenderStorePacket done [16:32:46]KKMCreateOFDPacket done [16:32:46]NVStorageSaveData kkm_last_timestamp [16:32:46]File name is /storage/kkm_last_timestamp [16:32:46]Write 4 bytes [16:32:46]NVStorageSaveData done [16:32:46]ExternCall_PrintAddStr [16:32:46]wPrintStart [16:32:46]Write to MH i2c: 01 00 00 77 42 B9 [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: 01 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: 01 07 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: 01 07 00 77 42 00 00 00 00 00 FF 0F CE [16:32:46]RasterBufferAndPrint [16:32:46]line Счет N : (1)1963134 [16:32:46]line ИНН: 02508201610067 [16:32:46]line Контрольно-Кассовый Чек [16:32:46]line ПРОДАЖА [16:32:46]line ТРК (МРК, ГНК) : 11 [16:32:46]line Товар: 2710194210 [16:32:46]line ДТ-К-5 [16:32:46]line 66.490 * 75.20 [16:32:46]line = 5000.05 [16:32:46]line НДС 12% НСП 1% [16:32:46]line > о реализуемом товаре [16:32:46]line ОКРУГЛЕНИЕ: -0.05 [16:32:46]line ИТОГО: 5000.00 [16:32:46]line Внесено: 5000.00 [16:32:46]line СДАЧА: 0.00 [16:32:46]line НСП 1% : 44.25 [16:32:46]line НДС 12% : 530.98 [16:32:46]line Наличными: 5000.00 [16:32:46]line Безнал.: 0.00 [16:32:46]line Место: АЗС № 133 "Партнер Нефть" [16:32:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:32:46]line СНО: Общий режим [16:32:46]line Чек 259 20.10.2024 16:32 [16:32:46]line Смена: 170 ФФД: 1.0 [16:32:46]line ЗНМ: 0300000020 [16:32:46]line РНМ: 0000000000161154 [16:32:46]line Версия ККМ: v1.0 [16:32:46]line [16:32:46]line Дисконтная программа [16:32:47]line ДТ [16:32:47]line номер 133 [16:32:47]line сэкономлено 66.49 сом [16:32:47]line ФМ: 0000000000963323 [16:32:47]line ФД: 73933 [16:32:47]line ФПД: 116635438571738 [16:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163247&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73933&fm=116635438571738&tin=02508201610067®Number=0000000000161154&sum=500000 [16:32:47]OFD Sender: Processing packet 73933 [packets to send 15, broken 14] [16:32:47]ProducePacketName [16:32:47]name=ofd_packets/00073933 [16:32:47]OFD Sender: To server: pG, [16:32:47]CommunicateWithHost lk.salyk.kg:30040 [16:32:47]ConnectInit lk.salyk.kg [16:32:47]written 0, free lines is 4095 [16:32:47]Connected sock=10 [16:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7A 7B 04 01 7A 13 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AF 30 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CD 20 01 00 35 04 06 00 6A 14 4D E2 60 DA 12 19 6C B5 A4 54 02 98 [16:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1D AB 47 00 AA 34 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 39 36 33 33 32 33 10 04 04 00 CD 20 01 00 F4 03 04 00 94 D9 14 67 B6 04 01 00 00 72 78 CE 36 86 8F 58 03 [16:32:47]CommunicateWithHost err = 0 [16:32:47]CheckOFDResponse [16:32:47]1017 (14) - 77093643461234 [16:32:47]1041 (16) - 0000000000963323 [16:32:47]1040 (4) - 73933 [16:32:47]1012 (4) - 20.10.2024 10:21 [16:32:47]1206 (1) - 0 [16:32:47]OFD Sender: Remove packet 73933 [16:32:47]ProducePacketName [16:32:47]name=ofd_packets/00073933 [16:32:47]NVStorageDeleteData [16:32:47]Write to MH i2c: 01 00 00 A6 42 E8 [16:32:47]Write i2c OK [16:32:47]MH_I2C_Read... [16:32:47]Read from MH i2c: 01 [16:32:47]MH_I2C_Read... [16:32:47]Read from MH i2c: 01 07 00 [16:32:47]MH_I2C_Read... [16:32:47]Read from MH i2c: 01 07 00 A6 42 00 00 00 00 00 5C 0C 57 [16:32:47]RasterBufferAndPrint [16:32:47]line [16:32:47]line [16:32:47]line [16:32:47]line [16:32:47]line [16:32:47]written 0, free lines is 3168 [16:32:47]MH_Cut [16:32:47]Write to MH i2c: D1 01 00 AD 42 01 C1 [16:32:47]Write i2c OK [16:32:47]MH_I2C_Read... [16:32:47]Read from MH i2c: D1 [16:32:47]MH_I2C_Read... [16:32:47]Read from MH i2c: D1 01 00 [16:32:47]MH_I2C_Read... [16:32:47]Read from MH i2c: D1 01 00 AD 42 00 C0 [16:32:47]Write to MH i2c: 01 00 00 AE 42 F0 [16:32:47]Write i2c OK [16:32:47]MH_I2C_Read... [16:32:48]OFD Sender: No OFD packet to send [16:32:48]*** Cut start [16:32:48]*** Partial cut [16:32:48]*** CUTSNS_PIN = 1 [16:32:48]*** CUTSNS_PIN = 0 [16:32:49]*** Brake cut motor [16:32:49]Read from MH i2c: 01 [16:32:49]MH_I2C_Read... [16:32:49]*** Stop cut motor [16:32:49]*** Cut end [16:32:49]Read from MH i2c: 01 07 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 07 00 AE 42 00 00 00 00 00 FF 0F 05 [16:32:49]process_action close_receipt done [16:32:49]requested_data is exist [16:32:49]produce_requested_data [16:32:49]requested_item fm.sn is exist - process it [16:32:49]wFMCommunicate request_size=4 [16:32:49]MH_SAM_APDU [16:32:49]CAPDU: 80 11 00 00 [16:32:49]Write to MH i2c: E2 08 00 AF 42 80 11 00 00 00 00 00 00 6B [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:49]Read from MH i2c: E2 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: E2 17 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: E2 17 00 AF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [16:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:32:49]wFMCommunicate OK [16:32:49]requested_item fd.num is exist - process it [16:32:49]SAM_PROTO_GetFieldsCounters [16:32:49]wFMCommunicate request_size=4 [16:32:49]MH_SAM_APDU [16:32:49]CAPDU: 80 13 00 00 [16:32:49]Write to MH i2c: E2 08 00 B0 42 80 13 00 00 00 00 00 00 6E [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:49]Read from MH i2c: E2 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: E2 62 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: E2 62 00 B0 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:49]wFMCommunicate OK [16:32:49]SAM_PROTO_GetFieldsCounters done [16:32:49]requested_item shift.num is exist - process it [16:32:49]requested_item shift.opened is exist - process it [16:32:49]req_shift_opened [16:32:49]FM_GetShiftState [16:32:49]SAM_PROTO_GetShiftState [16:32:49]wFMCommunicate request_size=4 [16:32:49]MH_SAM_APDU [16:32:49]CAPDU: 80 13 01 00 [16:32:49]Write to MH i2c: E2 08 00 B1 42 80 13 01 00 00 00 00 00 70 [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:49]Read from MH i2c: E2 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: E2 0E 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: E2 0E 00 B1 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B5 [16:32:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:32:49]wFMCommunicate OK [16:32:49]SAM_PROTO_GetShiftState done [16:32:49]FM_GetShiftState done [16:32:49]req_shift_opened done [16:32:49]requested_item shift.open_date is exist - process it [16:32:49]req_shift_open_date [16:32:49]req_shift_open_date done [16:32:49]produce_requested_data done [16:32:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73933,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:32:49]process_action_free close_receipt [16:32:49]json_value_free [16:32:49]json_value_free done [16:32:49]process_json_proto returns [16:32:49]Send response to host [16:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73933,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:32:49]free response buf [16:32:49]execute_script done [16:32:49]execute_script returns [16:32:49]free content buf [16:32:49]Sock 8.Close socket [16:32:49]Sock 8.Thread stoped [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:07]accept exits with 9 [16:34:07]New connection [16:34:07]New thread 3067575652 created [16:34:07]Thread 3067432292 joined [16:34:07]Waiting for new connection... [16:34:07] Sock 9.Parse request [16:34:07]Sock 9.Check first char [16:34:07]Sock 9.First char is OK [16:34:07]request: POST /json_proto HTTP/1.0 [16:34:07]Method: POST [16:34:07]URL: /json_proto [16:34:07]Method is POST - this is cgi request [16:34:07]url: /json_proto [16:34:07]query_string will be loaded in cgi processing [16:34:07]execute_cgi json_proto POST (null) [16:34:07]execute_cgi path=json_proto method=POST [16:34:07]POST find Content-Length [16:34:07]Host: 172.17.44.196:8080 [16:34:07]Content-Length: 683 [16:34:07]Content-Type: application/json [16:34:07] [16:34:07]POST finish read [16:34:07]Found Content-Length = 683 [16:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963135", "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" : 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" ] } } [16:34:07]execute_script... [16:34: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 : (1)1963135", "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" : 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" ] } } [16:34:07]POST & json_proto [16:34:07]process_json_proto [16:34:07]json parsed OK: [16:34:07]protocol is kg_v1.0 [16:34:07]action value=close_receipt [16:34:07]process_action close_receipt [16:34:07]cmd_close_receipt [16:34:07]MH_GetDate [16:34:07]Write to MH i2c: F0 00 00 B2 42 E3 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: F0 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: F0 09 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: F0 09 00 B2 42 00 01 31 15 67 E7 19 F8 65 F7 [16:34:07]GetLastDocTimeStamp 1729441967 [16:34:07]current date 1729442049 [16:34:07]FM_GetShiftState [16:34:07]SAM_PROTO_GetShiftState [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 13 01 00 [16:34:07]Write to MH i2c: E2 08 00 B3 42 80 13 01 00 00 00 00 00 72 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 0E 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 0E 00 B3 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [16:34:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:34:07]wFMCommunicate OK [16:34:07]SAM_PROTO_GetShiftState done [16:34:07]FM_GetShiftState done [16:34:07]opened in 1729384303 [16:34:07]opened+sec_in_day 1729470703 [16:34:07]quantity*price = 100015 [16:34:07]sum+1 = 100017 [16:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 260 20.10.2024 16:34 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73934 ФПД: 264100951982597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163409&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73934&fm=264100951982597&tin=02508201610067®Number=0000000000161154&sum=100000 [16:34:08]StoreToDocumentArchive [16:34:08]shift 170 fd 73934 [16:34:08]save to /storage/0170/doc_00073934 [16:34:08]save last doc name /storage/0170/doc_00073934 to /storage/kkm_last_doc_name [16:34:08]save OK [16:34:08]Clear old archive folders... [16:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:08]tlvbuf is 004B9260 [16:34:08]SAM_PROTO_ClearQueue [16:34:08]wFMCommunicate request_size=4 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 09 00 00 [16:34:08]Write to MH i2c: E2 08 00 C0 42 80 09 00 00 00 00 00 00 74 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 C0 42 00 90 00 76 [16:34:08]RAPDU: 90 00 [16:34:08]wFMCommunicate OK [16:34:08]SAM_PROTO_ClearQueue done [16:34:08]KKMCreateOFDPacket [16:34:08]OFDProtocolAddRootSTLVToBuf [16:34:08]FM_MakeSignedData [16:34:08]FM_MakeSignedData [16:34:08]SAM_PROTO_SignData [16:34:08]wFMCommunicate request_size=4 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 0D 01 02 [16:34:08]Write to MH i2c: E2 08 00 C1 42 80 0D 01 02 00 00 00 00 7C [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]OFD Sender: No OFD packet to send [16:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 C1 42 00 90 00 77 [16:34:08]RAPDU: 90 00 [16:34:08]wFMCommunicate OK [16:34:08]wFMCommunicate request_size=255 [16:34:08]MH_SAM_APDU [16:34:08]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 04 01 00 00 F4 03 04 00 01 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 20 01 00 35 04 06 00 F0 [16:34:08]Write to MH i2c: E2 02 01 C2 42 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 04 01 00 00 F4 03 04 00 01 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 20 01 00 35 04 06 00 F0 00 00 34 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 C2 42 00 90 00 78 [16:34:08]RAPDU: 90 00 [16:34:08]wFMCommunicate OK [16:34:08]wFMCommunicate request_size=10 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 0D 02 02 05 32 CB 6D 82 05 [16:34:08]Write to MH i2c: E2 0D 00 C3 42 80 0D 02 02 05 00 32 CB 6D 82 05 00 00 7A [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 C3 42 00 90 00 79 [16:34:08]RAPDU: 90 00 [16:34:08]wFMCommunicate OK [16:34:08]wFMCommunicate request_size=4 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 0D 03 02 [16:34:08]Write to MH i2c: E2 08 00 C4 42 80 0D 03 02 00 00 00 00 81 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 0B 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 0B 00 C4 42 00 23 0E 49 5B B7 70 69 7C 90 00 63 [16:34:08]RAPDU: 23 0E 49 5B B7 70 69 7C 90 00 [16:34:08]wFMCommunicate OK [16:34:08]SAM_PROTO_SignData done [16:34:08]FM_MakeSignedData done [16:34:08]CreateOFDProtocolMessage [16:34:08]wFMCommunicate request_size=4 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 11 00 00 [16:34:08]Write to MH i2c: E2 08 00 C5 42 80 11 00 00 00 00 00 00 81 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 17 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 17 00 C5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [16:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:34:08]wFMCommunicate OK [16:34:08]CreateOFDProtocolMessage done [16:34:08]OFDSenderStorePacket 73934 [16:34:08]StoreOFDPacket docnum=73934 [16:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A2 48 07 01 EF 88 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 04 01 00 00 F4 03 04 00 01 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 20 01 00 35 04 06 00 F0 32 CB 6D 82 05 23 0E 49 5B B7 70 69 7C [16:34:08]CheckFolder [16:34:08]dirname=/storage/ofd_packets [16:34:08]CheckFolder done [16:34:08]ProducePacketName [16:34:08]name=ofd_packets/00073934 [16:34:08]NVStorageSaveData ofd_packets/00073934 [16:34:08]File name is /storage/ofd_packets/00073934 [16:34:08]Write 301 bytes [16:34:08]NVStorageSaveData done [16:34:08]OFDSenderStorePacket done [16:34:08]KKMCreateOFDPacket done [16:34:08]NVStorageSaveData kkm_last_timestamp [16:34:08]File name is /storage/kkm_last_timestamp [16:34:08]Write 4 bytes [16:34:08]NVStorageSaveData done [16:34:08]ExternCall_PrintAddStr [16:34:08]wPrintStart [16:34:08]Write to MH i2c: 01 00 00 C6 42 08 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: 01 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: 01 07 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: 01 07 00 C6 42 00 00 00 00 00 FF 0F 1D [16:34:08]RasterBufferAndPrint [16:34:08]line Счет N : (1)1963135 [16:34:08]line ИНН: 02508201610067 [16:34:08]line Контрольно-Кассовый Чек [16:34:08]line ПРОДАЖА [16:34:08]line ТРК (МРК, ГНК) : 53 [16:34:08]line Товар: 2710124130 [16:34:08]line Аи-92-К-5 [16:34:08]line 14.950 * 66.90 [16:34:08]line = 1000.16 [16:34:08]line НДС 12% НСП 1% [16:34:08]line > о реализуемом товаре [16:34:08]line ОКРУГЛЕНИЕ: -0.16 [16:34:08]line ИТОГО: 1000.00 [16:34:08]line Внесено: 1000.00 [16:34:08]line СДАЧА: 0.00 [16:34:08]line НСП 1% : 8.85 [16:34:08]line НДС 12% : 106.21 [16:34:08]line Наличными: 1000.00 [16:34:08]line Безнал.: 0.00 [16:34:08]line Место: АЗС № 133 "Партнер Нефть" [16:34:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:34:08]line СНО: Общий режим [16:34:08]line Чек 260 20.10.2024 16:34 [16:34:08]line Смена: 170 ФФД: 1.0 [16:34:08]line ЗНМ: 0300000020 [16:34:08]line РНМ: 0000000000161154 [16:34:08]line Версия ККМ: v1.0 [16:34:08]line ФМ: 0000000000963323 [16:34:08]line ФД: 73934 [16:34:08]line ФПД: 264100951982597 [16:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163409&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73934&fm=264100951982597&tin=02508201610067®Number=0000000000161154&sum=100000 [16:34:09]OFD Sender: Processing packet 73934 [packets to send 15, broken 14] [16:34:09]ProducePacketName [16:34:09]name=ofd_packets/00073934 [16:34:09]OFD Sender: To server: pG, [16:34:09]CommunicateWithHost lk.salyk.kg:30040 [16:34:09]ConnectInit lk.salyk.kg [16:34:09]written 0, free lines is 4095 [16:34:09]Connected sock=8 [16:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A2 48 07 01 EF 88 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 04 01 00 00 F4 03 04 00 01 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 20 01 00 35 04 06 00 F0 32 CB 6D 82 05 23 0E 49 5B B7 70 69 7C [16:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 22 83 47 00 B8 FC 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 39 36 33 33 32 33 10 04 04 00 CE 20 01 00 F4 03 04 00 E5 D9 14 67 B6 04 01 00 00 AF 54 A6 98 7B FB 40 7C [16:34:09]CommunicateWithHost err = 0 [16:34:09]CheckOFDResponse [16:34:09]1017 (14) - 77093643461234 [16:34:09]1041 (16) - 0000000000963323 [16:34:09]1040 (4) - 73934 [16:34:09]1012 (4) - 20.10.2024 10:22 [16:34:09]1206 (1) - 0 [16:34:09]OFD Sender: Remove packet 73934 [16:34:09]ProducePacketName [16:34:09]name=ofd_packets/00073934 [16:34:09]NVStorageDeleteData [16:34:09]Write to MH i2c: 01 00 00 F0 42 32 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 07 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 07 00 F0 42 00 00 00 00 00 C3 0C 08 [16:34:09]RasterBufferAndPrint [16:34:09]line [16:34:09]line [16:34:09]line [16:34:09]line [16:34:09]line [16:34:09]written 0, free lines is 3272 [16:34:09]MH_Cut [16:34:09]Write to MH i2c: D1 01 00 F7 42 01 0B [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: D1 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: D1 01 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: D1 01 00 F7 42 00 0A [16:34:09]Write to MH i2c: 01 00 00 F8 42 3A [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]OFD Sender: No OFD packet to send [16:34:10]*** Cut start [16:34:10]*** Partial cut [16:34:10]*** CUTSNS_PIN = 1 [16:34:10]*** CUTSNS_PIN = 0 [16:34:10]*** Brake cut motor [16:34:10]Read from MH i2c: 01 [16:34:10]MH_I2C_Read... [16:34:10]*** Stop cut motor [16:34:10]*** Cut end [16:34:10]Read from MH i2c: 01 07 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: 01 07 00 F8 42 00 00 00 00 00 FF 0F 4F [16:34:10]process_action close_receipt done [16:34:10]requested_data is exist [16:34:10]produce_requested_data [16:34:10]requested_item fm.sn is exist - process it [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 11 00 00 [16:34:10]Write to MH i2c: E2 08 00 F9 42 80 11 00 00 00 00 00 00 B5 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:11]Read from MH i2c: E2 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 17 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 17 00 F9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [16:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:34:11]wFMCommunicate OK [16:34:11]requested_item fd.num is exist - process it [16:34:11]SAM_PROTO_GetFieldsCounters [16:34:11]wFMCommunicate request_size=4 [16:34:11]MH_SAM_APDU [16:34:11]CAPDU: 80 13 00 00 [16:34:11]Write to MH i2c: E2 08 00 FA 42 80 13 00 00 00 00 00 00 B8 [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:11]Read from MH i2c: E2 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 62 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 62 00 FA 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:34:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:11]wFMCommunicate OK [16:34:11]SAM_PROTO_GetFieldsCounters done [16:34:11]requested_item shift.num is exist - process it [16:34:11]requested_item shift.opened is exist - process it [16:34:11]req_shift_opened [16:34:11]FM_GetShiftState [16:34:11]SAM_PROTO_GetShiftState [16:34:11]wFMCommunicate request_size=4 [16:34:11]MH_SAM_APDU [16:34:11]CAPDU: 80 13 01 00 [16:34:11]Write to MH i2c: E2 08 00 FB 42 80 13 01 00 00 00 00 00 BA [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:11]Read from MH i2c: E2 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 0E 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 0E 00 FB 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [16:34:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:34:11]wFMCommunicate OK [16:34:11]SAM_PROTO_GetShiftState done [16:34:11]FM_GetShiftState done [16:34:11]req_shift_opened done [16:34:11]requested_item shift.open_date is exist - process it [16:34:11]req_shift_open_date [16:34:11]req_shift_open_date done [16:34:11]produce_requested_data done [16:34:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73934,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:34:11]process_action_free close_receipt [16:34:11]json_value_free [16:34:11]json_value_free done [16:34:11]process_json_proto returns [16:34:11]Send response to host [16:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73934,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:34:11]free response buf [16:34:11]execute_script done [16:34:11]execute_script returns [16:34:11]free content buf [16:34:11]Sock 9.Close socket [16:34:11]Sock 9.Thread stoped [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:06]accept exits with 10 [16:35:06]New connection [16:35:06]New thread 3067432292 created [16:35:06]Thread 3067575652 joined [16:35:06]Waiting for new connection... [16:35:06] Sock 10.Parse request [16:35:06]Sock 10.Check first char [16:35:06]Sock 10.First char is OK [16:35:06]request: POST /json_proto HTTP/1.0 [16:35:06]Method: POST [16:35:06]URL: /json_proto [16:35:06]Method is POST - this is cgi request [16:35:06]url: /json_proto [16:35:06]query_string will be loaded in cgi processing [16:35:06]execute_cgi json_proto POST (null) [16:35:06]execute_cgi path=json_proto method=POST [16:35:06]POST find Content-Length [16:35:06]Host: 172.17.44.196:8080 [16:35:06]Content-Length: 678 [16:35:06]Content-Type: application/json [16:35:06] [16:35:06]POST finish read [16:35:06]Found Content-Length = 678 [16:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963136", "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" : 7.480, "sum" : 500.41, "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" ] } } [16:35:06]execute_script... [16:35: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 : (1)1963136", "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" : 7.480, "sum" : 500.41, "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" ] } } [16:35:06]POST & json_proto [16:35:06]process_json_proto [16:35:06]json parsed OK: [16:35:06]protocol is kg_v1.0 [16:35:06]action value=close_receipt [16:35:06]process_action close_receipt [16:35:06]cmd_close_receipt [16:35:06]MH_GetDate [16:35:06]Write to MH i2c: F0 00 00 FC 42 2D [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 09 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 09 00 FC 42 00 3D 31 15 67 E7 19 F8 65 7D [16:35:06]GetLastDocTimeStamp 1729442049 [16:35:06]current date 1729442109 [16:35:06]FM_GetShiftState [16:35:06]SAM_PROTO_GetShiftState [16:35:06]wFMCommunicate request_size=4 [16:35:06]MH_SAM_APDU [16:35:06]CAPDU: 80 13 01 00 [16:35:06]Write to MH i2c: E2 08 00 FD 42 80 13 01 00 00 00 00 00 BC [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:06]Read from MH i2c: E2 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 FD 42 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [16:35:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:35:06]wFMCommunicate OK [16:35:06]SAM_PROTO_GetShiftState done [16:35:06]FM_GetShiftState done [16:35:06]opened in 1729384303 [16:35:06]opened+sec_in_day 1729470703 [16:35:06]quantity*price = 50041 [16:35:06]sum+1 = 50042 [16:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 261 20.10.2024 16:35 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73935 ФПД: 46840158817421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163509&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73935&fm=46840158817421&tin=02508201610067®Number=0000000000161154&sum=50000 [16:35:08]StoreToDocumentArchive [16:35:08]shift 170 fd 73935 [16:35:08]save to /storage/0170/doc_00073935 [16:35:08]save last doc name /storage/0170/doc_00073935 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=251 [16:35:08]tlvbuf is 003315C0 [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 0A 43 80 09 00 00 00 00 00 00 BF [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 0A 43 00 90 00 C1 [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 0B 43 80 0D 01 02 00 00 00 00 C7 [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 0B 43 00 90 00 C2 [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 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 05 01 00 00 F4 03 04 00 3D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 20 01 00 35 04 06 00 2A [16:35:08]Write to MH i2c: E2 02 01 0C 43 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 05 01 00 00 F4 03 04 00 3D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 20 01 00 35 04 06 00 2A 00 00 FD [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 02 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 0C 43 00 90 00 C3 [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=10 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 02 02 05 99 D3 07 0C 8D [16:35:08]Write to MH i2c: E2 0D 00 0D 43 80 0D 02 02 05 00 99 D3 07 0C 8D 00 00 E0 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 02 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 0D 43 00 90 00 C4 [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 03 02 [16:35:08]Write to MH i2c: E2 08 00 0E 43 80 0D 03 02 00 00 00 00 CC [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0B 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0B 00 0E 43 00 30 58 1E A5 2E F5 C6 F3 90 00 F4 [16:35:08]RAPDU: 30 58 1E A5 2E F5 C6 F3 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_SignData done [16:35:08]FM_MakeSignedData done [16:35:08]CreateOFDProtocolMessage [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 11 00 00 [16:35:08]Write to MH i2c: E2 08 00 0F 43 80 11 00 00 00 00 00 00 CC [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 17 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 17 00 0F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [16:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:35:08]wFMCommunicate OK [16:35:08]CreateOFDProtocolMessage done [16:35:08]OFDSenderStorePacket 73935 [16:35:08]StoreOFDPacket docnum=73935 [16:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 51 07 01 FA A8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 05 01 00 00 F4 03 04 00 3D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 20 01 00 35 04 06 00 2A 99 D3 07 0C 8D 30 58 1E A5 2E F5 C6 F3 [16:35:08]CheckFolder [16:35:08]dirname=/storage/ofd_packets [16:35:08]CheckFolder done [16:35:08]ProducePacketName [16:35:08]name=ofd_packets/00073935 [16:35:08]NVStorageSaveData ofd_packets/00073935 [16:35:08]File name is /storage/ofd_packets/00073935 [16:35:08]Write 301 bytes [16:35:08]NVStorageSaveData done [16:35:08]OFDSenderStorePacket done [16:35:08]KKMCreateOFDPacket done [16:35:08]NVStorageSaveData kkm_last_timestamp [16:35:08]File name is /storage/kkm_last_timestamp [16:35:08]Write 4 bytes [16:35:08]NVStorageSaveData done [16:35:08]ExternCall_PrintAddStr [16:35:08]wPrintStart [16:35:08]Write to MH i2c: 01 00 00 10 43 53 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 10 43 00 00 00 00 00 FF 0F 68 [16:35:08]RasterBufferAndPrint [16:35:08]line Счет N : (1)1963136 [16:35:08]line ИНН: 02508201610067 [16:35:08]line Контрольно-Кассовый Чек [16:35:08]line ПРОДАЖА [16:35:08]line ТРК (МРК, ГНК) : 43 [16:35:08]line Товар: 2710124130 [16:35:08]line Аи-92-К-5 [16:35:08]line 7.480 * 66.90 [16:35:08]line = 500.41 [16:35:08]line НДС 12% НСП 1% [16:35:08]line > о реализуемом товаре [16:35:08]line ОКРУГЛЕНИЕ: -0.41 [16:35:08]line ИТОГО: 500.00 [16:35:08]line Внесено: 500.00 [16:35:08]line СДАЧА: 0.00 [16:35:08]line НСП 1% : 4.43 [16:35:08]line НДС 12% : 53.14 [16:35:08]line Наличными: 500.00 [16:35:08]line Безнал.: 0.00 [16:35:08]line Место: АЗС № 133 "Партнер Нефть" [16:35:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:35:08]line СНО: Общий режим [16:35:08]line Чек 261 20.10.2024 16:35 [16:35:08]line Смена: 170 ФФД: 1.0 [16:35:08]line ЗНМ: 0300000020 [16:35:08]line РНМ: 0000000000161154 [16:35:08]line Версия ККМ: v1.0 [16:35:08]line ФМ: 0000000000963323 [16:35:08]line ФД: 73935 [16:35:08]line ФПД: 46840158817421 [16:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163509&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73935&fm=46840158817421&tin=02508201610067®Number=0000000000161154&sum=50000 [16:35:08]OFD Sender: Processing packet 73935 [packets to send 15, broken 14] [16:35:08]ProducePacketName [16:35:08]name=ofd_packets/00073935 [16:35:08]OFD Sender: To server: pG, [16:35:08]CommunicateWithHost lk.salyk.kg:30040 [16:35:08]ConnectInit lk.salyk.kg [16:35:08]written 0, free lines is 4095 [16:35:09]Connected sock=9 [16:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 51 07 01 FA A8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 05 01 00 00 F4 03 04 00 3D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 20 01 00 35 04 06 00 2A 99 D3 07 0C 8D 30 58 1E A5 2E F5 C6 F3 [16:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B5 21 47 00 C4 CB 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 39 36 33 33 32 33 10 04 04 00 CF 20 01 00 F4 03 04 00 21 DA 14 67 B6 04 01 00 00 81 3F 77 8B B1 7D 27 CE [16:35:09]CommunicateWithHost err = 0 [16:35:09]CheckOFDResponse [16:35:09]1017 (14) - 77093643461234 [16:35:09]1041 (16) - 0000000000963323 [16:35:09]1040 (4) - 73935 [16:35:09]1012 (4) - 20.10.2024 10:23 [16:35:09]1206 (1) - 0 [16:35:09]OFD Sender: Remove packet 73935 [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00073935 [16:35:09]NVStorageDeleteData [16:35:09]Write to MH i2c: 01 00 00 3A 43 7D [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 3A 43 00 00 00 00 00 C4 0C 54 [16:35:09]RasterBufferAndPrint [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]written 0, free lines is 3273 [16:35:09]MH_Cut [16:35:09]Write to MH i2c: D1 01 00 41 43 01 56 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 41 43 00 55 [16:35:09]Write to MH i2c: 01 00 00 42 43 85 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]OFD Sender: No OFD packet to send [16:35:10]*** Cut start [16:35:10]*** Partial cut [16:35:10]*** CUTSNS_PIN = 1 [16:35:10]*** CUTSNS_PIN = 0 [16:35:10]*** Brake cut motor [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]*** Stop cut motor [16:35:10]*** Cut end [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 42 43 00 00 00 00 00 FF 0F 9A [16:35:10]process_action close_receipt done [16:35:10]requested_data is exist [16:35:10]produce_requested_data [16:35:10]requested_item fm.sn is exist - process it [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 43 43 80 11 00 00 00 00 00 00 00 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 43 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4D [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:35:10]wFMCommunicate OK [16:35:10]requested_item fd.num is exist - process it [16:35:10]SAM_PROTO_GetFieldsCounters [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 00 00 [16:35:10]Write to MH i2c: E2 08 00 44 43 80 13 00 00 00 00 00 00 03 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 62 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 62 00 44 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetFieldsCounters done [16:35:11]requested_item shift.num is exist - process it [16:35:11]requested_item shift.opened is exist - process it [16:35:11]req_shift_opened [16:35:11]FM_GetShiftState [16:35:11]SAM_PROTO_GetShiftState [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 01 00 [16:35:11]Write to MH i2c: E2 08 00 45 43 80 13 01 00 00 00 00 00 05 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 45 43 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [16:35:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]req_shift_opened done [16:35:11]requested_item shift.open_date is exist - process it [16:35:11]req_shift_open_date [16:35:11]req_shift_open_date done [16:35:11]produce_requested_data done [16:35:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73935,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:35:11]process_action_free close_receipt [16:35:11]json_value_free [16:35:11]json_value_free done [16:35:11]process_json_proto returns [16:35:11]Send response to host [16:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73935,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:35:11]free response buf [16:35:11]execute_script done [16:35:11]execute_script returns [16:35:11]free content buf [16:35:11]Sock 10.Close socket [16:35:11]Sock 10.Thread stoped [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:54]accept exits with 8 [16:35:54]New connection [16:35:54]New thread 3067575652 created [16:35:54]Thread 3067432292 joined [16:35:54]Waiting for new connection... [16:35:54] Sock 8.Parse request [16:35:54]Sock 8.Check first char [16:35:54]Sock 8.First char is OK [16:35:54]request: POST /json_proto HTTP/1.0 [16:35:54]Method: POST [16:35:54]URL: /json_proto [16:35:54]Method is POST - this is cgi request [16:35:54]url: /json_proto [16:35:54]query_string will be loaded in cgi processing [16:35:54]execute_cgi json_proto POST (null) [16:35:54]execute_cgi path=json_proto method=POST [16:35:54]POST find Content-Length [16:35:54]Host: 172.17.44.196:8080 [16:35:54]Content-Length: 621 [16:35:54]Content-Type: application/json [16:35:54] [16:35:54]POST finish read [16:35:54]Found Content-Length = 621 [16:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:54]execute_script... [16:35: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)1963137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:54]POST & json_proto [16:35:54]process_json_proto [16:35:54]json parsed OK: [16:35:54]protocol is kg_v1.0 [16:35:54]action value=close_receipt [16:35:54]process_action close_receipt [16:35:54]cmd_close_receipt [16:35:54]MH_GetDate [16:35:54]Write to MH i2c: F0 00 00 46 43 78 [16:35:54]Write i2c OK [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: F0 [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: F0 09 00 [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: F0 09 00 46 43 00 6D 31 15 67 E7 19 F8 65 F8 [16:35:54]GetLastDocTimeStamp 1729442109 [16:35:54]current date 1729442157 [16:35:54]FM_GetShiftState [16:35:54]SAM_PROTO_GetShiftState [16:35:54]wFMCommunicate request_size=4 [16:35:54]MH_SAM_APDU [16:35:54]CAPDU: 80 13 01 00 [16:35:54]Write to MH i2c: E2 08 00 47 43 80 13 01 00 00 00 00 00 07 [16:35:54]Write i2c OK [16:35:54]MH_I2C_Read... [16:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:54]Read from MH i2c: E2 [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: E2 0E 00 [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: E2 0E 00 47 43 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4C [16:35:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:35:54]wFMCommunicate OK [16:35:54]SAM_PROTO_GetShiftState done [16:35:54]FM_GetShiftState done [16:35:54]opened in 1729384303 [16:35:54]opened+sec_in_day 1729470703 [16:35:54]quantity*price = 50000 [16:35:54]sum+1 = 50001 [16:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 262 20.10.2024 16:35 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73936 ФПД: 157851456342948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73936&fm=157851456342948&tin=02508201610067®Number=0000000000161154&sum=50000 [16:35:56]StoreToDocumentArchive [16:35:56]shift 170 fd 73936 [16:35:56]save to /storage/0170/doc_00073936 [16:35:56]save last doc name /storage/0170/doc_00073936 to /storage/kkm_last_doc_name [16:35:56]save OK [16:35:56]Clear old archive folders... [16:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:35:56]tlvbuf is 004CAAE0 [16:35:56]SAM_PROTO_ClearQueue [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 09 00 00 [16:35:56]Write to MH i2c: E2 08 00 54 43 80 09 00 00 00 00 00 00 09 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 54 43 00 90 00 0B [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]SAM_PROTO_ClearQueue done [16:35:56]KKMCreateOFDPacket [16:35:56]OFDProtocolAddRootSTLVToBuf [16:35:56]FM_MakeSignedData [16:35:56]FM_MakeSignedData [16:35:56]SAM_PROTO_SignData [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 01 02 [16:35:56]Write to MH i2c: E2 08 00 55 43 80 0D 01 02 00 00 00 00 11 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 55 43 00 90 00 0C [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]wFMCommunicate request_size=253 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 06 01 00 00 F4 03 04 00 6D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 20 01 00 35 04 06 00 8F 90 A7 FB 8B A4 [16:35:56]Write to MH i2c: E2 00 01 56 43 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 06 01 00 00 F4 03 04 00 6D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 20 01 00 35 04 06 00 8F 90 A7 FB 8B A4 00 00 AA [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 56 43 00 90 00 0D [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 03 02 [16:35:56]Write to MH i2c: E2 08 00 57 43 80 0D 03 02 00 00 00 00 15 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 0B 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 0B 00 57 43 00 68 6C 75 B1 73 F1 6E 8A 90 00 6C [16:35:56]RAPDU: 68 6C 75 B1 73 F1 6E 8A 90 00 [16:35:56]wFMCommunicate OK [16:35:56]SAM_PROTO_SignData done [16:35:56]FM_MakeSignedData done [16:35:56]CreateOFDProtocolMessage [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 11 00 00 [16:35:56]Write to MH i2c: E2 08 00 58 43 80 11 00 00 00 00 00 00 15 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 17 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 17 00 58 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [16:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:35:56]wFMCommunicate OK [16:35:56]CreateOFDProtocolMessage done [16:35:56]OFDSenderStorePacket 73936 [16:35:56]StoreOFDPacket docnum=73936 [16:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 FF 17 00 01 92 E5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 06 01 00 00 F4 03 04 00 6D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 20 01 00 35 04 06 00 8F 90 A7 FB 8B A4 68 6C 75 B1 73 F1 6E 8A [16:35:56]CheckFolder [16:35:56]dirname=/storage/ofd_packets [16:35:56]CheckFolder done [16:35:56]ProducePacketName [16:35:56]name=ofd_packets/00073936 [16:35:56]NVStorageSaveData ofd_packets/00073936 [16:35:56]File name is /storage/ofd_packets/00073936 [16:35:56]Write 294 bytes [16:35:56]NVStorageSaveData done [16:35:56]OFDSenderStorePacket done [16:35:56]KKMCreateOFDPacket done [16:35:56]NVStorageSaveData kkm_last_timestamp [16:35:56]File name is /storage/kkm_last_timestamp [16:35:56]Write 4 bytes [16:35:56]NVStorageSaveData done [16:35:56]ExternCall_PrintAddStr [16:35:56]wPrintStart [16:35:56]Write to MH i2c: 01 00 00 59 43 9C [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: 01 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: 01 07 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: 01 07 00 59 43 00 00 00 00 00 FF 0F B1 [16:35:56]RasterBufferAndPrint [16:35:56]line Счет N : (1)1963137 [16:35:56]line ИНН: 02508201610067 [16:35:56]line Контрольно-Кассовый Чек [16:35:56]line ПРОДАЖА [16:35:56]line ТРК (МРК, ГНК) : 52 [16:35:56]line Товар: 2710124130 [16:35:56]line SU-92 [16:35:56]line 7.310 * 68.40 [16:35:56]line = 500.00 [16:35:56]line НДС 12% НСП 1% [16:35:56]line > о реализуемом товаре [16:35:56]line ИТОГО: 500.00 [16:35:56]line НСП 1% : 4.42 [16:35:56]line НДС 12% : 53.10 [16:35:56]line Наличными: 500.00 [16:35:56]line Безнал.: 0.00 [16:35:56]line Место: АЗС № 133 "Партнер Нефть" [16:35:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:35:56]line СНО: Общий режим [16:35:56]line Чек 262 20.10.2024 16:35 [16:35:56]line Смена: 170 ФФД: 1.0 [16:35:56]line ЗНМ: 0300000020 [16:35:56]line РНМ: 0000000000161154 [16:35:56]line Версия ККМ: v1.0 [16:35:56]line ФМ: 0000000000963323 [16:35:56]line ФД: 73936 [16:35:56]line ФПД: 157851456342948 [16:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163557&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73936&fm=157851456342948&tin=02508201610067®Number=0000000000161154&sum=50000 [16:35:56]OFD Sender: Processing packet 73936 [packets to send 15, broken 14] [16:35:56]ProducePacketName [16:35:56]name=ofd_packets/00073936 [16:35:56]OFD Sender: To server: pG, [16:35:56]CommunicateWithHost lk.salyk.kg:30040 [16:35:56]ConnectInit lk.salyk.kg [16:35:56]written 0, free lines is 4095 [16:35:57]Connected sock=10 [16:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 FF 17 00 01 92 E5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 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 06 01 00 00 F4 03 04 00 6D 31 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 20 01 00 35 04 06 00 8F 90 A7 FB 8B A4 68 6C 75 B1 73 F1 6E 8A [16:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6D 84 47 00 47 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 39 36 33 33 32 33 10 04 04 00 D0 20 01 00 F4 03 04 00 51 DA 14 67 B6 04 01 00 00 90 1D B3 B7 70 C2 B5 F3 [16:35:57]CommunicateWithHost err = 0 [16:35:57]CheckOFDResponse [16:35:57]1017 (14) - 77093643461234 [16:35:57]1041 (16) - 0000000000963323 [16:35:57]1040 (4) - 73936 [16:35:57]1012 (4) - 20.10.2024 10:24 [16:35:57]1206 (1) - 0 [16:35:57]OFD Sender: Remove packet 73936 [16:35:57]ProducePacketName [16:35:57]name=ofd_packets/00073936 [16:35:57]NVStorageDeleteData [16:35:57]Write to MH i2c: 01 00 00 80 43 C3 [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: 01 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: 01 07 00 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: 01 07 00 80 43 00 00 00 00 00 F7 0C CD [16:35:57]RasterBufferAndPrint [16:35:57]line [16:35:57]line [16:35:57]line [16:35:57]line [16:35:57]line [16:35:57]written 0, free lines is 3324 [16:35:57]MH_Cut [16:35:57]Write to MH i2c: D1 01 00 87 43 01 9C [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: D1 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: D1 01 00 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: D1 01 00 87 43 00 9B [16:35:57]Write to MH i2c: 01 00 00 88 43 CB [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]OFD Sender: No OFD packet to send [16:35:58]*** Cut start [16:35:58]*** Partial cut [16:35:58]*** CUTSNS_PIN = 1 [16:35:58]*** CUTSNS_PIN = 0 [16:35:58]*** Brake cut motor [16:35:58]Read from MH i2c: 01 [16:35:58]MH_I2C_Read... [16:35:58]*** Stop cut motor [16:35:58]*** Cut end [16:35:58]Read from MH i2c: 01 07 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: 01 07 00 88 43 00 00 00 00 00 FF 0F E0 [16:35:58]process_action close_receipt done [16:35:58]requested_data is exist [16:35:58]produce_requested_data [16:35:58]requested_item fm.sn is exist - process it [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 11 00 00 [16:35:58]Write to MH i2c: E2 08 00 89 43 80 11 00 00 00 00 00 00 46 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 17 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 17 00 89 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 93 [16:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:35:58]wFMCommunicate OK [16:35:58]requested_item fd.num is exist - process it [16:35:58]SAM_PROTO_GetFieldsCounters [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 13 00 00 [16:35:58]Write to MH i2c: E2 08 00 8A 43 80 13 00 00 00 00 00 00 49 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 62 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 62 00 8A 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [16:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:58]wFMCommunicate OK [16:35:58]SAM_PROTO_GetFieldsCounters done [16:35:58]requested_item shift.num is exist - process it [16:35:58]requested_item shift.opened is exist - process it [16:35:58]req_shift_opened [16:35:58]FM_GetShiftState [16:35:58]SAM_PROTO_GetShiftState [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 13 01 00 [16:35:58]Write to MH i2c: E2 08 00 8B 43 80 13 01 00 00 00 00 00 4B [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:59]Read from MH i2c: E2 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: E2 0E 00 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: E2 0E 00 8B 43 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 90 [16:35:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:35:59]wFMCommunicate OK [16:35:59]SAM_PROTO_GetShiftState done [16:35:59]FM_GetShiftState done [16:35:59]req_shift_opened done [16:35:59]requested_item shift.open_date is exist - process it [16:35:59]req_shift_open_date [16:35:59]req_shift_open_date done [16:35:59]produce_requested_data done [16:35:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73936,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:35:59]process_action_free close_receipt [16:35:59]json_value_free [16:35:59]json_value_free done [16:35:59]process_json_proto returns [16:35:59]Send response to host [16:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73936,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:35:59]free response buf [16:35:59]execute_script done [16:35:59]execute_script returns [16:35:59]free content buf [16:35:59]Sock 8.Close socket [16:35:59]Sock 8.Thread stoped [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]accept exits with 9 [16:38:27]New connection [16:38:27]New thread 3067432292 created [16:38:27]Thread 3067575652 joined [16:38:27]Waiting for new connection... [16:38:27] Sock 9.Parse request [16:38:27]Sock 9.Check first char [16:38:27]Sock 9.First char is OK [16:38:27]request: POST /json_proto HTTP/1.0 [16:38:27]Method: POST [16:38:27]URL: /json_proto [16:38:27]Method is POST - this is cgi request [16:38:27]url: /json_proto [16:38:27]query_string will be loaded in cgi processing [16:38:27]execute_cgi json_proto POST (null) [16:38:27]execute_cgi path=json_proto method=POST [16:38:27]POST find Content-Length [16:38:27]Host: 172.17.44.196:8080 [16:38:27]Content-Length: 755 [16:38:27]Content-Type: application/json [16:38:27] [16:38:27]POST finish read [16:38:27]Found Content-Length = 755 [16:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963139", "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" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:27]execute_script... [16:38: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 : (1)1963139", "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" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:27]POST & json_proto [16:38:27]process_json_proto [16:38:27]json parsed OK: [16:38:27]protocol is kg_v1.0 [16:38:27]action value=close_receipt [16:38:27]process_action close_receipt [16:38:27]cmd_close_receipt [16:38:27]MH_GetDate [16:38:27]Write to MH i2c: F0 00 00 8C 43 BE [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: F0 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: F0 09 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: F0 09 00 8C 43 00 06 32 15 67 E7 19 F8 65 D8 [16:38:27]GetLastDocTimeStamp 1729442157 [16:38:27]current date 1729442310 [16:38:27]FM_GetShiftState [16:38:27]SAM_PROTO_GetShiftState [16:38:27]wFMCommunicate request_size=4 [16:38:27]MH_SAM_APDU [16:38:27]CAPDU: 80 13 01 00 [16:38:27]Write to MH i2c: E2 08 00 8D 43 80 13 01 00 00 00 00 00 4D [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 0E 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 0E 00 8D 43 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 92 [16:38:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:38:27]wFMCommunicate OK [16:38:27]SAM_PROTO_GetShiftState done [16:38:27]FM_GetShiftState done [16:38:27]opened in 1729384303 [16:38:27]opened+sec_in_day 1729470703 [16:38:27]quantity*price = 0 [16:38:27]sum+1 = 1 [16:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 263 20.10.2024 16:38 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101036 ФМ: 0000000000963323 ФД: 73937 ФПД: 252680220818128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163830&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73937&fm=252680220818128&tin=02508201610067®Number=0000000000161154&sum=0 [16:38:28]StoreToDocumentArchive [16:38:28]shift 170 fd 73937 [16:38:28]save to /storage/0170/doc_00073937 [16:38:28]save last doc name /storage/0170/doc_00073937 to /storage/kkm_last_doc_name [16:38:28]save OK [16:38:28]Clear old archive folders... [16:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:28]tlvbuf is 00382D40 [16:38:28]SAM_PROTO_ClearQueue [16:38:28]wFMCommunicate request_size=4 [16:38:28]MH_SAM_APDU [16:38:28]CAPDU: 80 09 00 00 [16:38:28]Write to MH i2c: E2 08 00 9A 43 80 09 00 00 00 00 00 00 4F [16:38:28]Write i2c OK [16:38:28]MH_I2C_Read... [16:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:28]Read from MH i2c: E2 [16:38:28]MH_I2C_Read... [16:38:28]Read from MH i2c: E2 03 00 [16:38:28]MH_I2C_Read... [16:38:28]Read from MH i2c: E2 03 00 9A 43 00 90 00 51 [16:38:28]RAPDU: 90 00 [16:38:28]wFMCommunicate OK [16:38:28]SAM_PROTO_ClearQueue done [16:38:28]KKMCreateOFDPacket [16:38:28]OFDProtocolAddRootSTLVToBuf [16:38:28]FM_MakeSignedData [16:38:28]FM_MakeSignedData [16:38:28]SAM_PROTO_SignData [16:38:28]wFMCommunicate request_size=4 [16:38:28]MH_SAM_APDU [16:38:28]CAPDU: 80 0D 01 02 [16:38:28]Write to MH i2c: E2 08 00 9B 43 80 0D 01 02 00 00 00 00 57 [16:38:28]Write i2c OK [16:38:28]MH_I2C_Read... [16:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:28]Read from MH i2c: E2 [16:38:28]MH_I2C_Read... [16:38:28]Read from MH i2c: E2 03 00 [16:38:28]MH_I2C_Read... [16:38:28]Read from MH i2c: E2 03 00 9B 43 00 90 00 52 [16:38:28]RAPDU: 90 00 [16:38:28]wFMCommunicate OK [16:38:28]wFMCommunicate request_size=255 [16:38:28]MH_SAM_APDU [16:38:28]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 20 4E 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 07 01 00 00 F4 03 04 00 06 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 20 01 00 35 04 06 00 E5 [16:38:28]Write to MH i2c: E2 02 01 9C 43 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 20 4E 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 07 01 00 00 F4 03 04 00 06 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 20 01 00 35 04 06 00 E5 00 00 FF [16:38:28]Write i2c OK [16:38:28]MH_I2C_Read... [16:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:29]Read from MH i2c: E2 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 03 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 03 00 9C 43 00 90 00 53 [16:38:29]RAPDU: 90 00 [16:38:29]wFMCommunicate OK [16:38:29]wFMCommunicate request_size=10 [16:38:29]MH_SAM_APDU [16:38:29]CAPDU: 80 0D 02 02 05 CF B2 CD BA D0 [16:38:29]Write to MH i2c: E2 0D 00 9D 43 80 0D 02 02 05 00 CF B2 CD BA D0 00 00 3C [16:38:29]Write i2c OK [16:38:29]MH_I2C_Read... [16:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:29]Read from MH i2c: E2 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 03 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 03 00 9D 43 00 90 00 54 [16:38:29]RAPDU: 90 00 [16:38:29]wFMCommunicate OK [16:38:29]wFMCommunicate request_size=4 [16:38:29]MH_SAM_APDU [16:38:29]CAPDU: 80 0D 03 02 [16:38:29]Write to MH i2c: E2 08 00 9E 43 80 0D 03 02 00 00 00 00 5C [16:38:29]Write i2c OK [16:38:29]MH_I2C_Read... [16:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:29]Read from MH i2c: E2 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 0B 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 0B 00 9E 43 00 94 36 39 C9 41 F7 D6 A1 90 00 D8 [16:38:29]RAPDU: 94 36 39 C9 41 F7 D6 A1 90 00 [16:38:29]wFMCommunicate OK [16:38:29]SAM_PROTO_SignData done [16:38:29]FM_MakeSignedData done [16:38:29]CreateOFDProtocolMessage [16:38:29]wFMCommunicate request_size=4 [16:38:29]MH_SAM_APDU [16:38:29]CAPDU: 80 11 00 00 [16:38:29]Write to MH i2c: E2 08 00 9F 43 80 11 00 00 00 00 00 00 5C [16:38:29]Write i2c OK [16:38:29]MH_I2C_Read... [16:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:29]Read from MH i2c: E2 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 17 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: E2 17 00 9F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A9 [16:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:38:29]wFMCommunicate OK [16:38:29]CreateOFDProtocolMessage done [16:38:29]OFDSenderStorePacket 73937 [16:38:29]StoreOFDPacket docnum=73937 [16:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E8 E5 07 01 9A 4C 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 20 4E 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 07 01 00 00 F4 03 04 00 06 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 20 01 00 35 04 06 00 E5 CF B2 CD BA D0 94 36 39 C9 41 F7 D6 A1 [16:38:29]CheckFolder [16:38:29]dirname=/storage/ofd_packets [16:38:29]CheckFolder done [16:38:29]ProducePacketName [16:38:29]name=ofd_packets/00073937 [16:38:29]NVStorageSaveData ofd_packets/00073937 [16:38:29]File name is /storage/ofd_packets/00073937 [16:38:29]Write 301 bytes [16:38:29]NVStorageSaveData done [16:38:29]OFDSenderStorePacket done [16:38:29]KKMCreateOFDPacket done [16:38:29]NVStorageSaveData kkm_last_timestamp [16:38:29]File name is /storage/kkm_last_timestamp [16:38:29]Write 4 bytes [16:38:29]NVStorageSaveData done [16:38:29]ExternCall_PrintAddStr [16:38:29]wPrintStart [16:38:29]Write to MH i2c: 01 00 00 A0 43 E3 [16:38:29]Write i2c OK [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: 01 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: 01 07 00 [16:38:29]MH_I2C_Read... [16:38:29]Read from MH i2c: 01 07 00 A0 43 00 00 00 00 00 FF 0F F8 [16:38:29]RasterBufferAndPrint [16:38:29]line Счет N : (1)1963139 [16:38:29]line ИНН: 02508201610067 [16:38:29]line Контрольно-Кассовый Чек [16:38:29]line ПРОДАЖА [16:38:29]line ТРК (МРК, ГНК) : 33 [16:38:29]line Товар: 2710124130 [16:38:29]line Аи-92-К-5 [16:38:29]line 20.000 * 0.00 [16:38:29]line = 0.00 [16:38:29]line НДС 12% НСП 1% [16:38:29]line > о реализуемом товаре [16:38:29]line ИТОГО: 0.00 [16:38:29]line НСП 1% : 0.00 [16:38:29]line НДС 12% : 0.00 [16:38:29]line Наличными: 0.00 [16:38:29]line Безнал.: 0.00 [16:38:29]line Место: АЗС № 133 "Партнер Нефть" [16:38:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:38:29]line СНО: Общий режим [16:38:29]line Чек 263 20.10.2024 16:38 [16:38:29]line Смена: 170 ФФД: 1.0 [16:38:29]line ЗНМ: 0300000020 [16:38:29]line РНМ: 0000000000161154 [16:38:29]line Версия ККМ: v1.0 [16:38:29]line Талоны: ТК ГПНА Online [16:38:29]line 30101036 [16:38:29]line ФМ: 0000000000963323 [16:38:29]line ФД: 73937 [16:38:29]line ФПД: 252680220818128 [16:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163830&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73937&fm=252680220818128&tin=02508201610067®Number=0000000000161154&sum=0 [16:38:29]OFD Sender: Processing packet 73937 [packets to send 15, broken 14] [16:38:29]ProducePacketName [16:38:29]name=ofd_packets/00073937 [16:38:29]OFD Sender: To server: pG, [16:38:29]CommunicateWithHost lk.salyk.kg:30040 [16:38:29]ConnectInit lk.salyk.kg [16:38:29]written 0, free lines is 4095 [16:38:29]Connected sock=10 [16:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E8 E5 07 01 9A 4C 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 20 4E 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 07 01 00 00 F4 03 04 00 06 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 20 01 00 35 04 06 00 E5 CF B2 CD BA D0 94 36 39 C9 41 F7 D6 A1 [16:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 76 72 47 00 3E 45 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 39 36 33 33 32 33 10 04 04 00 D1 20 01 00 F4 03 04 00 EA DA 14 67 B6 04 01 00 00 5E F3 45 09 EE B9 29 17 [16:38:29]CommunicateWithHost err = 0 [16:38:29]CheckOFDResponse [16:38:29]1017 (14) - 77093643461234 [16:38:29]1041 (16) - 0000000000963323 [16:38:29]1040 (4) - 73937 [16:38:29]1012 (4) - 20.10.2024 10:26 [16:38:29]1206 (1) - 0 [16:38:29]OFD Sender: Remove packet 73937 [16:38:29]ProducePacketName [16:38:29]name=ofd_packets/00073937 [16:38:29]NVStorageDeleteData [16:38:30]Write to MH i2c: 01 00 00 C9 43 0C [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: 01 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: 01 07 00 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: 01 07 00 C9 43 00 00 00 00 00 D7 0C F6 [16:38:30]RasterBufferAndPrint [16:38:30]line [16:38:30]line [16:38:30]line [16:38:30]line [16:38:30]line [16:38:30]written 0, free lines is 3292 [16:38:30]MH_Cut [16:38:30]Write to MH i2c: D1 01 00 D0 43 01 E5 [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: D1 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: D1 01 00 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: D1 01 00 D0 43 00 E4 [16:38:30]Write to MH i2c: 01 00 00 D1 43 14 [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]OFD Sender: No OFD packet to send [16:38:30]*** Cut start [16:38:30]*** Partial cut [16:38:30]*** CUTSNS_PIN = 1 [16:38:30]*** CUTSNS_PIN = 0 [16:38:31]*** Brake cut motor [16:38:31]Read from MH i2c: 01 [16:38:31]MH_I2C_Read... [16:38:31]*** Stop cut motor [16:38:31]*** Cut end [16:38:31]Read from MH i2c: 01 07 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 07 00 D1 43 00 00 00 00 00 FF 0F 29 [16:38:31]process_action close_receipt done [16:38:31]requested_data is exist [16:38:31]produce_requested_data [16:38:31]requested_item fm.sn is exist - process it [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 11 00 00 [16:38:31]Write to MH i2c: E2 08 00 D2 43 80 11 00 00 00 00 00 00 8F [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 17 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 17 00 D2 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [16:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:38:31]wFMCommunicate OK [16:38:31]requested_item fd.num is exist - process it [16:38:31]SAM_PROTO_GetFieldsCounters [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 13 00 00 [16:38:31]Write to MH i2c: E2 08 00 D3 43 80 13 00 00 00 00 00 00 92 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 62 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 62 00 D3 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [16:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_GetFieldsCounters done [16:38:31]requested_item shift.num is exist - process it [16:38:31]requested_item shift.opened is exist - process it [16:38:31]req_shift_opened [16:38:31]FM_GetShiftState [16:38:31]SAM_PROTO_GetShiftState [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 13 01 00 [16:38:31]Write to MH i2c: E2 08 00 D4 43 80 13 01 00 00 00 00 00 94 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0E 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0E 00 D4 43 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D9 [16:38:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_GetShiftState done [16:38:31]FM_GetShiftState done [16:38:31]req_shift_opened done [16:38:31]requested_item shift.open_date is exist - process it [16:38:31]req_shift_open_date [16:38:31]req_shift_open_date done [16:38:31]produce_requested_data done [16:38:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73937,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:38:31]process_action_free close_receipt [16:38:31]json_value_free [16:38:31]json_value_free done [16:38:31]process_json_proto returns [16:38:31]Send response to host [16:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73937,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:38:31]free response buf [16:38:31]execute_script done [16:38:31]execute_script returns [16:38:31]free content buf [16:38:31]Sock 9.Close socket [16:38:31]Sock 9.Thread stoped [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:41]accept exits with 8 [16:39:41]New connection [16:39:41]New thread 3067575652 created [16:39:41]Thread 3067432292 joined [16:39:41]Waiting for new connection... [16:39:41] Sock 8.Parse request [16:39:41]Sock 8.Check first char [16:39:41]Sock 8.First char is OK [16:39:41]request: POST /json_proto HTTP/1.0 [16:39:41]Method: POST [16:39:41]URL: /json_proto [16:39:41]Method is POST - this is cgi request [16:39:41]url: /json_proto [16:39:41]query_string will be loaded in cgi processing [16:39:41]execute_cgi json_proto POST (null) [16:39:41]execute_cgi path=json_proto method=POST [16:39:41]POST find Content-Length [16:39:41]Host: 172.17.44.196:8080 [16:39:41]Content-Length: 765 [16:39:41]Content-Type: application/json [16:39:41] [16:39:41]POST finish read [16:39:41]Found Content-Length = 765 [16:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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: Mbank", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:41]execute_script... [16:39: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)1963140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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: Mbank", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:41]POST & json_proto [16:39:41]process_json_proto [16:39:41]json parsed OK: [16:39:41]protocol is kg_v1.0 [16:39:41]action value=close_receipt [16:39:41]process_action close_receipt [16:39:41]cmd_close_receipt [16:39:41]MH_GetDate [16:39:41]Write to MH i2c: F0 00 00 D5 43 07 [16:39:41]Write i2c OK [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: F0 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: F0 09 00 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: F0 09 00 D5 43 00 50 32 15 67 E7 19 F8 65 6B [16:39:41]GetLastDocTimeStamp 1729442310 [16:39:41]current date 1729442384 [16:39:41]FM_GetShiftState [16:39:41]SAM_PROTO_GetShiftState [16:39:41]wFMCommunicate request_size=4 [16:39:41]MH_SAM_APDU [16:39:41]CAPDU: 80 13 01 00 [16:39:41]Write to MH i2c: E2 08 00 D6 43 80 13 01 00 00 00 00 00 96 [16:39:41]Write i2c OK [16:39:41]MH_I2C_Read... [16:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:41]Read from MH i2c: E2 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 0E 00 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 0E 00 D6 43 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [16:39:41]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:39:41]wFMCommunicate OK [16:39:41]SAM_PROTO_GetShiftState done [16:39:41]FM_GetShiftState done [16:39:41]opened in 1729384303 [16:39:41]opened+sec_in_day 1729470703 [16:39:41]quantity*price = 80010 [16:39:41]sum+1 = 80011 [16:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 264 20.10.2024 16:39 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73938 ФПД: 75500579752057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163944&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73938&fm=75500579752057&tin=02508201610067®Number=0000000000161154&sum=80010 [16:39:43]StoreToDocumentArchive [16:39:43]shift 170 fd 73938 [16:39:43]save to /storage/0170/doc_00073938 [16:39:43]save last doc name /storage/0170/doc_00073938 to /storage/kkm_last_doc_name [16:39:43]save OK [16:39:43]Clear old archive folders... [16:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:43]tlvbuf is 003DA960 [16:39:43]SAM_PROTO_ClearQueue [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 09 00 00 [16:39:43]Write to MH i2c: E2 08 00 E3 43 80 09 00 00 00 00 00 00 98 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 E3 43 00 90 00 9A [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]SAM_PROTO_ClearQueue done [16:39:43]KKMCreateOFDPacket [16:39:43]OFDProtocolAddRootSTLVToBuf [16:39:43]FM_MakeSignedData [16:39:43]FM_MakeSignedData [16:39:43]SAM_PROTO_SignData [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 01 02 [16:39:43]Write to MH i2c: E2 08 00 E4 43 80 0D 01 02 00 00 00 00 A0 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 E4 43 00 90 00 9B [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=255 [16:39:43]MH_SAM_APDU [16:39:43]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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 20 01 00 35 04 06 00 44 AA D9 3C [16:39:43]Write to MH i2c: E2 02 01 E5 43 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 20 01 00 35 04 06 00 44 AA D9 3C 00 00 06 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 E5 43 00 90 00 9C [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=7 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 02 02 02 88 79 [16:39:43]Write to MH i2c: E2 0A 00 E6 43 80 0D 02 02 02 00 88 79 00 00 A8 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 E6 43 00 90 00 9D [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 03 02 [16:39:43]Write to MH i2c: E2 08 00 E7 43 80 0D 03 02 00 00 00 00 A5 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 0B 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 0B 00 E7 43 00 30 6A 8B BF 67 61 2F 03 90 00 84 [16:39:43]RAPDU: 30 6A 8B BF 67 61 2F 03 90 00 [16:39:43]wFMCommunicate OK [16:39:43]SAM_PROTO_SignData done [16:39:43]FM_MakeSignedData done [16:39:43]CreateOFDProtocolMessage [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 11 00 00 [16:39:43]Write to MH i2c: E2 08 00 E8 43 80 11 00 00 00 00 00 00 A5 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 17 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 17 00 E8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [16:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:39:43]wFMCommunicate OK [16:39:43]CreateOFDProtocolMessage done [16:39:43]OFDSenderStorePacket 73938 [16:39:43]StoreOFDPacket docnum=73938 [16:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 0F 46 04 01 0D BB 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 20 01 00 35 04 06 00 44 AA D9 3C 88 79 30 6A 8B BF 67 61 2F 03 [16:39:43]CheckFolder [16:39:43]dirname=/storage/ofd_packets [16:39:43]CheckFolder done [16:39:43]ProducePacketName [16:39:43]name=ofd_packets/00073938 [16:39:43]NVStorageSaveData ofd_packets/00073938 [16:39:43]File name is /storage/ofd_packets/00073938 [16:39:43]Write 298 bytes [16:39:43]NVStorageSaveData done [16:39:43]OFDSenderStorePacket done [16:39:43]KKMCreateOFDPacket done [16:39:43]NVStorageSaveData kkm_last_timestamp [16:39:43]File name is /storage/kkm_last_timestamp [16:39:43]Write 4 bytes [16:39:43]NVStorageSaveData done [16:39:43]ExternCall_PrintAddStr [16:39:43]wPrintStart [16:39:43]Write to MH i2c: 01 00 00 E9 43 2C [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 E9 43 00 00 00 00 00 FF 0F 41 [16:39:43]RasterBufferAndPrint [16:39:43]line Счет N : (1)1963140 [16:39:43]line ИНН: 02508201610067 [16:39:43]line Контрольно-Кассовый Чек [16:39:43]line ПРОДАЖА [16:39:43]line ТРК (МРК, ГНК) : 11 [16:39:43]line Товар: 2710194210 [16:39:43]line ДТ-К-5 [16:39:43]line 10.500 * 76.20 [16:39:43]line = 800.10 [16:39:43]line НДС 12% НСП 1% [16:39:43]line > о реализуемом товаре [16:39:43]line ИТОГО: 800.10 [16:39:43]line НСП 1% : 7.08 [16:39:43]line НДС 12% : 84.97 [16:39:43]line Наличными: 0.00 [16:39:43]line Безнал.: 800.10 [16:39:43]line Место: АЗС № 133 "Партнер Нефть" [16:39:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:39:43]line СНО: Общий режим [16:39:43]line Чек 264 20.10.2024 16:39 [16:39:43]line Смена: 170 ФФД: 1.0 [16:39:43]line ЗНМ: 0300000020 [16:39:43]line РНМ: 0000000000161154 [16:39:43]line Версия ККМ: v1.0 [16:39:43]line Платежная система: Mbank [16:39:43]line ФМ: 0000000000963323 [16:39:43]line ФД: 73938 [16:39:43]line ФПД: 75500579752057 [16:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163944&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73938&fm=75500579752057&tin=02508201610067®Number=0000000000161154&sum=80010 [16:39:43]OFD Sender: Processing packet 73938 [packets to send 15, broken 14] [16:39:43]ProducePacketName [16:39:43]name=ofd_packets/00073938 [16:39:43]OFD Sender: To server: pG, [16:39:43]CommunicateWithHost lk.salyk.kg:30040 [16:39:43]ConnectInit lk.salyk.kg [16:39:43]written 0, free lines is 4095 [16:39:44]Connected sock=10 [16:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 0F 46 04 01 0D BB 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 20 01 00 35 04 06 00 44 AA D9 3C 88 79 30 6A 8B BF 67 61 2F 03 [16:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1F 17 47 00 19 41 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 39 36 33 33 32 33 10 04 04 00 D2 20 01 00 F4 03 04 00 34 DB 14 67 B6 04 01 00 00 F4 DC 10 77 C7 7C EB 45 [16:39:44]CommunicateWithHost err = 0 [16:39:44]CheckOFDResponse [16:39:44]1017 (14) - 77093643461234 [16:39:44]1041 (16) - 0000000000963323 [16:39:44]1040 (4) - 73938 [16:39:44]1012 (4) - 20.10.2024 10:28 [16:39:44]1206 (1) - 0 [16:39:44]OFD Sender: Remove packet 73938 [16:39:44]ProducePacketName [16:39:44]name=ofd_packets/00073938 [16:39:44]NVStorageDeleteData [16:39:44]Write to MH i2c: 01 00 00 11 44 55 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 11 44 00 00 00 00 00 EF 0C 57 [16:39:44]RasterBufferAndPrint [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]written 0, free lines is 3317 [16:39:44]MH_Cut [16:39:44]Write to MH i2c: D1 01 00 18 44 01 2E [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: D1 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: D1 01 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: D1 01 00 18 44 00 2D [16:39:44]Write to MH i2c: 01 00 00 19 44 5D [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]OFD Sender: No OFD packet to send [16:39:45]*** Cut start [16:39:45]*** Partial cut [16:39:45]*** CUTSNS_PIN = 1 [16:39:45]*** CUTSNS_PIN = 0 [16:39:45]*** Brake cut motor [16:39:45]Read from MH i2c: 01 [16:39:45]MH_I2C_Read... [16:39:45]*** Stop cut motor [16:39:45]*** Cut end [16:39:45]Read from MH i2c: 01 07 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: 01 07 00 19 44 00 00 00 00 00 FF 0F 72 [16:39:45]process_action close_receipt done [16:39:45]requested_data is exist [16:39:45]produce_requested_data [16:39:45]requested_item fm.sn is exist - process it [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 11 00 00 [16:39:45]Write to MH i2c: E2 08 00 1A 44 80 11 00 00 00 00 00 00 D8 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 17 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 17 00 1A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [16:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:39:45]wFMCommunicate OK [16:39:45]requested_item fd.num is exist - process it [16:39:45]SAM_PROTO_GetFieldsCounters [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 13 00 00 [16:39:45]Write to MH i2c: E2 08 00 1B 44 80 13 00 00 00 00 00 00 DB [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 62 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 62 00 1B 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [16:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_GetFieldsCounters done [16:39:46]requested_item shift.num is exist - process it [16:39:46]requested_item shift.opened is exist - process it [16:39:46]req_shift_opened [16:39:46]FM_GetShiftState [16:39:46]SAM_PROTO_GetShiftState [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 13 01 00 [16:39:46]Write to MH i2c: E2 08 00 1C 44 80 13 01 00 00 00 00 00 DD [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0E 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0E 00 1C 44 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 22 [16:39:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_GetShiftState done [16:39:46]FM_GetShiftState done [16:39:46]req_shift_opened done [16:39:46]requested_item shift.open_date is exist - process it [16:39:46]req_shift_open_date [16:39:46]req_shift_open_date done [16:39:46]produce_requested_data done [16:39:46]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73938,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:39:46]process_action_free close_receipt [16:39:46]json_value_free [16:39:46]json_value_free done [16:39:46]process_json_proto returns [16:39:46]Send response to host [16:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73938,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:39:46]free response buf [16:39:46]execute_script done [16:39:46]execute_script returns [16:39:46]free content buf [16:39:46]Sock 8.Close socket [16:39:46]Sock 8.Thread stoped [16:39:46]accept exits with 9 [16:39:46]New connection [16:39:46]New thread 3067432292 created [16:39:46]Thread 3067575652 joined [16:39:46]Waiting for new connection... [16:39:46] Sock 9.Parse request [16:39:46]Sock 9.Check first char [16:39:46]Sock 9.First char is OK [16:39:46]request: POST /json_proto HTTP/1.0 [16:39:46]Method: POST [16:39:46]URL: /json_proto [16:39:46]Method is POST - this is cgi request [16:39:46]url: /json_proto [16:39:46]query_string will be loaded in cgi processing [16:39:46]execute_cgi json_proto POST (null) [16:39:46]execute_cgi path=json_proto method=POST [16:39:46]POST find Content-Length [16:39:46]Host: 172.17.44.196:8080 [16:39:46]Content-Length: 979 [16:39:46]Content-Type: application/json [16:39:46] [16:39:46]POST finish read [16:39:46]Found Content-Length = 979 [16:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 99.740, "sum" : 7500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 99.74 \u0441\u043E\u043C", "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:46]execute_script... [16:39: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)1963138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 99.740, "sum" : 7500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 99.74 \u0441\u043E\u043C", "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:46]POST & json_proto [16:39:46]process_json_proto [16:39:46]json parsed OK: [16:39:46]protocol is kg_v1.0 [16:39:46]action value=close_receipt [16:39:46]process_action close_receipt [16:39:46]cmd_close_receipt [16:39:46]MH_GetDate [16:39:46]Write to MH i2c: F0 00 00 1D 44 50 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: F0 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: F0 09 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: F0 09 00 1D 44 00 54 32 15 67 E7 19 F8 65 B8 [16:39:46]GetLastDocTimeStamp 1729442384 [16:39:46]current date 1729442388 [16:39:46]FM_GetShiftState [16:39:46]SAM_PROTO_GetShiftState [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 13 01 00 [16:39:46]Write to MH i2c: E2 08 00 1E 44 80 13 01 00 00 00 00 00 DF [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:46]Read from MH i2c: E2 0E 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0E 00 1E 44 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 24 [16:39:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_GetShiftState done [16:39:46]FM_GetShiftState done [16:39:46]opened in 1729384303 [16:39:46]opened+sec_in_day 1729470703 [16:39:46]quantity*price = 750044 [16:39:46]sum+1 = 750046 [16:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.38 НДС 12% : 796.51 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 265 20.10.2024 16:39 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 99.74 сом ФМ: 0000000000963323 ФД: 73939 ФПД: 124611768420665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163948&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73939&fm=124611768420665&tin=02508201610067®Number=0000000000161154&sum=750000 [16:39:47]StoreToDocumentArchive [16:39:47]shift 170 fd 73939 [16:39:47]save to /storage/0170/doc_00073939 [16:39:47]save last doc name /storage/0170/doc_00073939 to /storage/kkm_last_doc_name [16:39:47]save OK [16:39:47]Clear old archive folders... [16:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:47]tlvbuf is 00327B40 [16:39:47]SAM_PROTO_ClearQueue [16:39:47]wFMCommunicate request_size=4 [16:39:47]MH_SAM_APDU [16:39:47]CAPDU: 80 09 00 00 [16:39:47]Write to MH i2c: E2 08 00 2B 44 80 09 00 00 00 00 00 00 E1 [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:47]Read from MH i2c: E2 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 03 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 03 00 2B 44 00 90 00 E3 [16:39:47]RAPDU: 90 00 [16:39:47]wFMCommunicate OK [16:39:47]SAM_PROTO_ClearQueue done [16:39:47]KKMCreateOFDPacket [16:39:47]OFDProtocolAddRootSTLVToBuf [16:39:47]FM_MakeSignedData [16:39:47]FM_MakeSignedData [16:39:47]SAM_PROTO_SignData [16:39:47]wFMCommunicate request_size=4 [16:39:47]MH_SAM_APDU [16:39:47]CAPDU: 80 0D 01 02 [16:39:47]Write to MH i2c: E2 08 00 2C 44 80 0D 01 02 00 00 00 00 E9 [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:47]Read from MH i2c: E2 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 03 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 03 00 2C 44 00 90 00 E4 [16:39:47]RAPDU: 90 00 [16:39:47]wFMCommunicate OK [16:39:47]wFMCommunicate request_size=255 [16:39:47]MH_SAM_APDU [16:39: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 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 54 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 20 01 00 35 04 06 00 71 55 70 31 [16:39:47]Write to MH i2c: E2 02 01 2D 44 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 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 54 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 20 01 00 35 04 06 00 71 55 70 31 00 00 FC [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 2D 44 00 90 00 E5 [16:39:48]RAPDU: 90 00 [16:39:48]wFMCommunicate OK [16:39:48]wFMCommunicate request_size=7 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 0D 02 02 02 09 39 [16:39:48]Write to MH i2c: E2 0A 00 2E 44 80 0D 02 02 02 00 09 39 00 00 32 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 2E 44 00 90 00 E6 [16:39:48]RAPDU: 90 00 [16:39:48]wFMCommunicate OK [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 0D 03 02 [16:39:48]Write to MH i2c: E2 08 00 2F 44 80 0D 03 02 00 00 00 00 EE [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0B 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0B 00 2F 44 00 76 AF 88 18 92 33 10 65 90 00 EE [16:39:48]RAPDU: 76 AF 88 18 92 33 10 65 90 00 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_SignData done [16:39:48]FM_MakeSignedData done [16:39:48]CreateOFDProtocolMessage [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 11 00 00 [16:39:48]Write to MH i2c: E2 08 00 30 44 80 11 00 00 00 00 00 00 EE [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 30 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [16:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:39:48]wFMCommunicate OK [16:39:48]CreateOFDProtocolMessage done [16:39:48]OFDSenderStorePacket 73939 [16:39:48]StoreOFDPacket docnum=73939 [16:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 29 8B 04 01 AB 77 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 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 54 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 20 01 00 35 04 06 00 71 55 70 31 09 39 76 AF 88 18 92 33 10 65 [16:39:48]CheckFolder [16:39:48]dirname=/storage/ofd_packets [16:39:48]CheckFolder done [16:39:48]ProducePacketName [16:39:48]name=ofd_packets/00073939 [16:39:48]NVStorageSaveData ofd_packets/00073939 [16:39:48]File name is /storage/ofd_packets/00073939 [16:39:48]Write 298 bytes [16:39:48]NVStorageSaveData done [16:39:48]OFDSenderStorePacket done [16:39:48]KKMCreateOFDPacket done [16:39:48]NVStorageSaveData kkm_last_timestamp [16:39:48]File name is /storage/kkm_last_timestamp [16:39:48]Write 4 bytes [16:39:48]NVStorageSaveData done [16:39:48]ExternCall_PrintAddStr [16:39:48]wPrintStart [16:39:48]Write to MH i2c: 01 00 00 31 44 75 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 07 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 07 00 31 44 00 00 00 00 00 FF 0F 8A [16:39:48]RasterBufferAndPrint [16:39:48]line Счет N : (1)1963138 [16:39:48]line ИНН: 02508201610067 [16:39:48]line Контрольно-Кассовый Чек [16:39:48]line ПРОДАЖА [16:39:48]line ТРК (МРК, ГНК) : 41 [16:39:48]line Товар: 2710194210 [16:39:48]line ДТ-К-5 [16:39:48]line 99.740 * 75.20 [16:39:48]line = 7500.45 [16:39:48]line НДС 12% НСП 1% [16:39:48]line > о реализуемом товаре [16:39:48]line ОКРУГЛЕНИЕ: -0.45 [16:39:48]line ИТОГО: 7500.00 [16:39:48]line Внесено: 7500.00 [16:39:48]line СДАЧА: 0.00 [16:39:48]line НСП 1% : 66.38 [16:39:48]line НДС 12% : 796.51 [16:39:48]line Наличными: 7500.00 [16:39:48]line Безнал.: 0.00 [16:39:48]line Место: АЗС № 133 "Партнер Нефть" [16:39:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:39:48]line СНО: Общий режим [16:39:48]line Чек 265 20.10.2024 16:39 [16:39:48]line Смена: 170 ФФД: 1.0 [16:39:48]line ЗНМ: 0300000020 [16:39:48]line РНМ: 0000000000161154 [16:39:48]line Версия ККМ: v1.0 [16:39:48]line [16:39:48]line Дисконтная программа [16:39:48]line ДТ [16:39:48]line номер 133 [16:39:48]line сэкономлено 99.74 сом [16:39:48]line ФМ: 0000000000963323 [16:39:48]line ФД: 73939 [16:39:48]line ФПД: 124611768420665 [16:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163948&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73939&fm=124611768420665&tin=02508201610067®Number=0000000000161154&sum=750000 [16:39:48]OFD Sender: Processing packet 73939 [packets to send 15, broken 14] [16:39:48]ProducePacketName [16:39:48]name=ofd_packets/00073939 [16:39:48]OFD Sender: To server: pG, [16:39:48]CommunicateWithHost lk.salyk.kg:30040 [16:39:48]ConnectInit lk.salyk.kg [16:39:48]written 0, free lines is 4095 [16:39:48]Connected sock=10 [16:39:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 29 8B 04 01 AB 77 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 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 54 32 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 20 01 00 35 04 06 00 71 55 70 31 09 39 76 AF 88 18 92 33 10 65 [16:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 37 35 47 00 62 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 39 36 33 33 32 33 10 04 04 00 D3 20 01 00 F4 03 04 00 39 DB 14 67 B6 04 01 00 00 88 27 B7 03 2E 56 73 C5 [16:39:49]CommunicateWithHost err = 0 [16:39:49]CheckOFDResponse [16:39:49]1017 (14) - 77093643461234 [16:39:49]1041 (16) - 0000000000963323 [16:39:49]1040 (4) - 73939 [16:39:49]1012 (4) - 20.10.2024 10:28 [16:39:49]1206 (1) - 0 [16:39:49]OFD Sender: Remove packet 73939 [16:39:49]ProducePacketName [16:39:49]name=ofd_packets/00073939 [16:39:49]NVStorageDeleteData [16:39:49]Write to MH i2c: 01 00 00 60 44 A4 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 07 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 07 00 60 44 00 00 00 00 00 69 0C 20 [16:39:49]RasterBufferAndPrint [16:39:49]line [16:39:49]line [16:39:49]line [16:39:49]line [16:39:49]line [16:39:49]written 0, free lines is 3189 [16:39:49]MH_Cut [16:39:49]Write to MH i2c: D1 01 00 67 44 01 7D [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: D1 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: D1 01 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: D1 01 00 67 44 00 7C [16:39:49]Write to MH i2c: 01 00 00 68 44 AC [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]OFD Sender: No OFD packet to send [16:39:50]*** Cut start [16:39:50]*** Partial cut [16:39:50]*** CUTSNS_PIN = 1 [16:39:50]*** CUTSNS_PIN = 0 [16:39:50]*** Brake cut motor [16:39:50]Read from MH i2c: 01 [16:39:50]MH_I2C_Read... [16:39:50]*** Stop cut motor [16:39:50]*** Cut end [16:39:50]Read from MH i2c: 01 07 00 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: 01 07 00 68 44 00 00 00 00 00 FF 0F C1 [16:39:50]process_action close_receipt done [16:39:50]requested_data is exist [16:39:50]produce_requested_data [16:39:50]requested_item fm.sn is exist - process it [16:39:50]wFMCommunicate request_size=4 [16:39:50]MH_SAM_APDU [16:39:50]CAPDU: 80 11 00 00 [16:39:50]Write to MH i2c: E2 08 00 69 44 80 11 00 00 00 00 00 00 27 [16:39:50]Write i2c OK [16:39:50]MH_I2C_Read... [16:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:50]Read from MH i2c: E2 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 17 00 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 17 00 69 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [16:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:39:50]wFMCommunicate OK [16:39:50]requested_item fd.num is exist - process it [16:39:50]SAM_PROTO_GetFieldsCounters [16:39:50]wFMCommunicate request_size=4 [16:39:50]MH_SAM_APDU [16:39:50]CAPDU: 80 13 00 00 [16:39:50]Write to MH i2c: E2 08 00 6A 44 80 13 00 00 00 00 00 00 2A [16:39:50]Write i2c OK [16:39:50]MH_I2C_Read... [16:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:51]Read from MH i2c: E2 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 62 00 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 62 00 6A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [16:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:51]wFMCommunicate OK [16:39:51]SAM_PROTO_GetFieldsCounters done [16:39:51]requested_item shift.num is exist - process it [16:39:51]requested_item shift.opened is exist - process it [16:39:51]req_shift_opened [16:39:51]FM_GetShiftState [16:39:51]SAM_PROTO_GetShiftState [16:39:51]wFMCommunicate request_size=4 [16:39:51]MH_SAM_APDU [16:39:51]CAPDU: 80 13 01 00 [16:39:51]Write to MH i2c: E2 08 00 6B 44 80 13 01 00 00 00 00 00 2C [16:39:51]Write i2c OK [16:39:51]MH_I2C_Read... [16:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:51]Read from MH i2c: E2 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 0E 00 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 0E 00 6B 44 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [16:39:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:39:51]wFMCommunicate OK [16:39:51]SAM_PROTO_GetShiftState done [16:39:51]FM_GetShiftState done [16:39:51]req_shift_opened done [16:39:51]requested_item shift.open_date is exist - process it [16:39:51]req_shift_open_date [16:39:51]req_shift_open_date done [16:39:51]produce_requested_data done [16:39:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73939,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:39:51]process_action_free close_receipt [16:39:51]json_value_free [16:39:51]json_value_free done [16:39:51]process_json_proto returns [16:39:51]Send response to host [16:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73939,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:39:51]free response buf [16:39:51]execute_script done [16:39:51]execute_script returns [16:39:51]free content buf [16:39:51]Sock 9.Close socket [16:39:51]Sock 9.Thread stoped [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:35]accept exits with 8 [16:46:35]New connection [16:46:35]New thread 3067575652 created [16:46:35]Thread 3067432292 joined [16:46:35]Waiting for new connection... [16:46:35] Sock 8.Parse request [16:46:35]Sock 8.Check first char [16:46:35]Sock 8.First char is OK [16:46:35]request: POST /json_proto HTTP/1.0 [16:46:35]Method: POST [16:46:35]URL: /json_proto [16:46:35]Method is POST - this is cgi request [16:46:35]url: /json_proto [16:46:35]query_string will be loaded in cgi processing [16:46:35]execute_cgi json_proto POST (null) [16:46:35]execute_cgi path=json_proto method=POST [16:46:35]POST find Content-Length [16:46:35]Host: 172.17.44.196:8080 [16:46:35]Content-Length: 684 [16:46:35]Content-Type: application/json [16:46:35] [16:46:35]POST finish read [16:46:35]Found Content-Length = 684 [16:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272816", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:35]execute_script... [16:46:35]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)272816", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:35]POST & json_proto [16:46:35]process_json_proto [16:46:35]json parsed OK: [16:46:35]protocol is kg_v1.0 [16:46:35]action value=close_receipt [16:46:35]process_action close_receipt [16:46:35]cmd_close_receipt [16:46:35]MH_GetDate [16:46:35]Write to MH i2c: F0 00 00 6C 44 9F [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: F0 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: F0 09 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: F0 09 00 6C 44 00 ED 33 15 67 E7 19 F8 65 A1 [16:46:35]GetLastDocTimeStamp 1729442388 [16:46:35]current date 1729442797 [16:46:35]FM_GetShiftState [16:46:35]SAM_PROTO_GetShiftState [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 13 01 00 [16:46:35]Write to MH i2c: E2 08 00 6D 44 80 13 01 00 00 00 00 00 2E [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0E 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0E 00 6D 44 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [16:46:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:46:35]wFMCommunicate OK [16:46:35]SAM_PROTO_GetShiftState done [16:46:35]FM_GetShiftState done [16:46:35]opened in 1729384303 [16:46:35]opened+sec_in_day 1729470703 [16:46:35]quantity*price = 12500 [16:46:35]sum+1 = 12501 [16:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 266 20.10.2024 16:46 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73940 ФПД: 30993320439255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164637&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73940&fm=30993320439255&tin=02508201610067®Number=0000000000161154&sum=12500 0 [16:46:36]StoreToDocumentArchive [16:46:36]shift 170 fd 73940 [16:46:36]save to /storage/0170/doc_00073940 [16:46:36]save last doc name /storage/0170/doc_00073940 to /storage/kkm_last_doc_name [16:46:36]save OK [16:46:36]Clear old archive folders... [16:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=292 [16:46:36]tlvbuf is B6FF0670 [16:46:36]SAM_PROTO_ClearQueue [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 09 00 00 [16:46:36]Write to MH i2c: E2 08 00 7A 44 80 09 00 00 00 00 00 00 30 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 7A 44 00 90 00 32 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]SAM_PROTO_ClearQueue done [16:46:36]KKMCreateOFDPacket [16:46:36]OFDProtocolAddRootSTLVToBuf [16:46:36]FM_MakeSignedData [16:46:36]FM_MakeSignedData [16:46:36]SAM_PROTO_SignData [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 01 02 [16:46:36]Write to MH i2c: E2 08 00 7B 44 80 0D 01 02 00 00 00 00 38 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 7B 44 00 90 00 33 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=255 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 0A 01 00 00 F4 03 04 00 ED 33 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [16:46:36]Write to MH i2c: E2 02 01 7C 44 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 0A 01 00 00 F4 03 04 00 ED 33 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 4F [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 7C 44 00 90 00 34 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=51 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 02 02 2E 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 20 01 00 35 04 06 00 1C 30 31 DA ED D7 [16:46:36]Write to MH i2c: E2 36 00 7D 44 80 0D 02 02 2E 00 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 20 01 00 35 04 06 00 1C 30 31 DA ED D7 00 00 CF [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 7D 44 00 90 00 35 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 03 02 [16:46:36]Write to MH i2c: E2 08 00 7E 44 80 0D 03 02 00 00 00 00 3D [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0B 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0B 00 7E 44 00 9B 0D 14 C7 18 87 44 77 90 00 1B [16:46:37]RAPDU: 9B 0D 14 C7 18 87 44 77 90 00 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_SignData done [16:46:37]FM_MakeSignedData done [16:46:37]CreateOFDProtocolMessage [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 11 00 00 [16:46:37]Write to MH i2c: E2 08 00 7F 44 80 11 00 00 00 00 00 00 3D [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 7F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [16:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:46:37]wFMCommunicate OK [16:46:37]CreateOFDProtocolMessage done [16:46:37]OFDSenderStorePacket 73940 [16:46:37]StoreOFDPacket docnum=73940 [16:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 38 01 00 00 34 B0 30 01 2E 68 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 0A 01 00 00 F4 03 04 00 ED 33 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 20 01 00 35 04 06 00 1C 30 31 DA ED D7 9B 0D 14 C7 18 87 44 77 [16:46:37]CheckFolder [16:46:37]dirname=/storage/ofd_packets [16:46:37]CheckFolder done [16:46:37]ProducePacketName [16:46:37]name=ofd_packets/00073940 [16:46:37]NVStorageSaveData ofd_packets/00073940 [16:46:37]File name is /storage/ofd_packets/00073940 [16:46:37]Write 342 bytes [16:46:37]NVStorageSaveData done [16:46:37]OFDSenderStorePacket done [16:46:37]KKMCreateOFDPacket done [16:46:37]NVStorageSaveData kkm_last_timestamp [16:46:37]File name is /storage/kkm_last_timestamp [16:46:37]Write 4 bytes [16:46:37]NVStorageSaveData done [16:46:37]ExternCall_PrintAddStr [16:46:37]wPrintStart [16:46:37]Write to MH i2c: 01 00 00 80 44 C4 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 80 44 00 00 00 00 00 FF 0F D9 [16:46:37]RasterBufferAndPrint [16:46:37]line Счет N : (3)272816 [16:46:37]line ИНН: 02508201610067 [16:46:37]line Контрольно-Кассовый Чек [16:46:37]line ПРОДАЖА [16:46:37]line Товар: 4870202521230 [16:46:37]line Напиток MAXI чай 1,2 черн.лимон [16:46:37]line 1.000 * 125.00 [16:46:37]line = 125.00 [16:46:37]line НДС 12% НСП 1% [16:46:37]line > о реализуемом товаре [16:46:37]line ИТОГО: 125.00 [16:46:37]line НСП 1% : 1.11 [16:46:37]line НДС 12% : 13.27 [16:46:37]line Наличными: 125.00 [16:46:37]line Безнал.: 0.00 [16:46:37]line Место: АЗС № 133 "Партнер Нефть" [16:46:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:46:37]line СНО: Общий режим [16:46:37]line Чек 266 20.10.2024 16:46 [16:46:37]line Смена: 170 ФФД: 1.0 [16:46:37]line ЗНМ: 0300000020 [16:46:37]line РНМ: 0000000000161154 [16:46:37]line Версия ККМ: v1.0 [16:46:37]line ФМ: 0000000000963323 [16:46:37]line ФД: 73940 [16:46:37]line ФПД: 30993320439255 [16:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164637&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73940&fm=30993320439255&tin=02508201610067®Number=0000000000161154&sum=12500 [16:46:37]line 0 [16:46:37]OFD Sender: Processing packet 73940 [packets to send 15, broken 14] [16:46:37]ProducePacketName [16:46:37]name=ofd_packets/00073940 [16:46:37]OFD Sender: To server: pG, [16:46:37]CommunicateWithHost lk.salyk.kg:30040 [16:46:37]ConnectInit lk.salyk.kg [16:46:37]written 0, free lines is 4095 [16:46:37]Connected sock=10 [16:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 38 01 00 00 34 B0 30 01 2E 68 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 0A 01 00 00 F4 03 04 00 ED 33 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 20 01 00 35 04 06 00 1C 30 31 DA ED D7 9B 0D 14 C7 18 87 44 77 [16:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 39 46 47 00 7A AE 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 39 36 33 33 32 33 10 04 04 00 D4 20 01 00 F4 03 04 00 D2 DC 14 67 B6 04 01 00 00 AA 06 D6 07 19 19 1B AD [16:46:37]CommunicateWithHost err = 0 [16:46:37]CheckOFDResponse [16:46:37]1017 (14) - 77093643461234 [16:46:37]1041 (16) - 0000000000963323 [16:46:37]1040 (4) - 73940 [16:46:37]1012 (4) - 20.10.2024 10:34 [16:46:37]1206 (1) - 0 [16:46:37]OFD Sender: Remove packet 73940 [16:46:37]ProducePacketName [16:46:37]name=ofd_packets/00073940 [16:46:37]NVStorageDeleteData [16:46:37]Write to MH i2c: 01 00 00 A8 44 EC [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 A8 44 00 00 00 00 00 D2 0C D1 [16:46:37]RasterBufferAndPrint [16:46:37]line [16:46:37]line [16:46:37]line [16:46:37]line [16:46:37]line [16:46:37]written 0, free lines is 3286 [16:46:37]MH_Cut [16:46:37]Write to MH i2c: D1 01 00 AF 44 01 C5 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: D1 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: D1 01 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: D1 01 00 AF 44 00 C4 [16:46:37]Write to MH i2c: 01 00 00 B0 44 F4 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:38]OFD Sender: No OFD packet to send [16:46:38]*** Cut start [16:46:38]*** Partial cut [16:46:38]*** CUTSNS_PIN = 1 [16:46:38]*** CUTSNS_PIN = 0 [16:46:38]*** Brake cut motor [16:46:39]Read from MH i2c: 01 [16:46:39]MH_I2C_Read... [16:46:39]*** Stop cut motor [16:46:39]*** Cut end [16:46:39]Read from MH i2c: 01 07 00 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: 01 07 00 B0 44 00 00 00 00 00 FF 0F 09 [16:46:39]process_action close_receipt done [16:46:39]requested_data is exist [16:46:39]produce_requested_data [16:46:39]requested_item fm.sn is exist - process it [16:46:39]wFMCommunicate request_size=4 [16:46:39]MH_SAM_APDU [16:46:39]CAPDU: 80 11 00 00 [16:46:39]Write to MH i2c: E2 08 00 B1 44 80 11 00 00 00 00 00 00 6F [16:46:39]Write i2c OK [16:46:39]MH_I2C_Read... [16:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:39]Read from MH i2c: E2 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 17 00 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 17 00 B1 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [16:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:46:39]wFMCommunicate OK [16:46:39]requested_item fd.num is exist - process it [16:46:39]SAM_PROTO_GetFieldsCounters [16:46:39]wFMCommunicate request_size=4 [16:46:39]MH_SAM_APDU [16:46:39]CAPDU: 80 13 00 00 [16:46:39]Write to MH i2c: E2 08 00 B2 44 80 13 00 00 00 00 00 00 72 [16:46:39]Write i2c OK [16:46:39]MH_I2C_Read... [16:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:39]Read from MH i2c: E2 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 62 00 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 62 00 B2 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [16:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:39]wFMCommunicate OK [16:46:39]SAM_PROTO_GetFieldsCounters done [16:46:39]requested_item shift.num is exist - process it [16:46:39]requested_item shift.opened is exist - process it [16:46:39]req_shift_opened [16:46:39]FM_GetShiftState [16:46:39]SAM_PROTO_GetShiftState [16:46:39]wFMCommunicate request_size=4 [16:46:39]MH_SAM_APDU [16:46:39]CAPDU: 80 13 01 00 [16:46:39]Write to MH i2c: E2 08 00 B3 44 80 13 01 00 00 00 00 00 74 [16:46:39]Write i2c OK [16:46:39]MH_I2C_Read... [16:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:39]Read from MH i2c: E2 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 0E 00 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 0E 00 B3 44 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B9 [16:46:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:46:39]wFMCommunicate OK [16:46:39]SAM_PROTO_GetShiftState done [16:46:39]FM_GetShiftState done [16:46:39]req_shift_opened done [16:46:39]requested_item shift.open_date is exist - process it [16:46:39]req_shift_open_date [16:46:39]req_shift_open_date done [16:46:39]produce_requested_data done [16:46:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73940,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:46:39]process_action_free close_receipt [16:46:39]json_value_free [16:46:39]json_value_free done [16:46:39]process_json_proto returns [16:46:39]Send response to host [16:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73940,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:46:39]free response buf [16:46:39]execute_script done [16:46:39]execute_script returns [16:46:39]free content buf [16:46:39]Sock 8.Close socket [16:46:39]Sock 8.Thread stoped [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:56]accept exits with 9 [16:46:56]New connection [16:46:56]New thread 3067432292 created [16:46:56]Thread 3067575652 joined [16:46:56]Waiting for new connection... [16:46:56] Sock 9.Parse request [16:46:56]Sock 9.Check first char [16:46:56]Sock 9.First char is OK [16:46:56]request: POST /json_proto HTTP/1.0 [16:46:56]Method: POST [16:46:56]URL: /json_proto [16:46:56]Method is POST - this is cgi request [16:46:56]url: /json_proto [16:46:56]query_string will be loaded in cgi processing [16:46:56]execute_cgi json_proto POST (null) [16:46:56]execute_cgi path=json_proto method=POST [16:46:56]POST find Content-Length [16:46:56]Host: 172.17.44.196:8080 [16:46:56]Content-Length: 1019 [16:46:56]Content-Type: application/json [16:46:56] [16:46:56]POST finish read [16:46:56]Found Content-Length = 1019 [16:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272817", "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": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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: Mbank", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:56]execute_script... [16:46: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)272817", "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": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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: Mbank", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:56]POST & json_proto [16:46:56]process_json_proto [16:46:56]json parsed OK: [16:46:56]protocol is kg_v1.0 [16:46:56]action value=close_receipt [16:46:56]process_action close_receipt [16:46:56]cmd_close_receipt [16:46:56]MH_GetDate [16:46:56]Write to MH i2c: F0 00 00 B4 44 E7 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 09 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 09 00 B4 44 00 03 34 15 67 E7 19 F8 65 00 [16:46:56]GetLastDocTimeStamp 1729442797 [16:46:56]current date 1729442819 [16:46:56]FM_GetShiftState [16:46:56]SAM_PROTO_GetShiftState [16:46:56]wFMCommunicate request_size=4 [16:46:56]MH_SAM_APDU [16:46:56]CAPDU: 80 13 01 00 [16:46:56]Write to MH i2c: E2 08 00 B5 44 80 13 01 00 00 00 00 00 76 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0E 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0E 00 B5 44 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [16:46:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:46:56]wFMCommunicate OK [16:46:56]SAM_PROTO_GetShiftState done [16:46:56]FM_GetShiftState done [16:46:56]opened in 1729384303 [16:46:56]opened+sec_in_day 1729470703 [16:46:56]quantity*price = 5000 [16:46:56]sum+1 = 5001 [16:46:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 267 20.10.2024 16:46 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73941 ФПД: 249544870298487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164659&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73941&fm=249544870298487&tin=02508201610067®Number=0000000000161154&sum=6000 0 [16:46:57]StoreToDocumentArchive [16:46:57]shift 170 fd 73941 [16:46:57]save to /storage/0170/doc_00073941 [16:46:57]save last doc name /storage/0170/doc_00073941 to /storage/kkm_last_doc_name [16:46:57]save OK [16:46:57]Clear old archive folders... [16:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=379 [16:46:57]tlvbuf is B6FF0230 [16:46:57]SAM_PROTO_ClearQueue [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 09 00 00 [16:46:57]Write to MH i2c: E2 08 00 C2 44 80 09 00 00 00 00 00 00 78 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:57]Read from MH i2c: E2 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 C2 44 00 90 00 7A [16:46:57]RAPDU: 90 00 [16:46:57]wFMCommunicate OK [16:46:57]SAM_PROTO_ClearQueue done [16:46:57]KKMCreateOFDPacket [16:46:57]OFDProtocolAddRootSTLVToBuf [16:46:57]FM_MakeSignedData [16:46:57]FM_MakeSignedData [16:46:57]SAM_PROTO_SignData [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 0D 01 02 [16:46:57]Write to MH i2c: E2 08 00 C3 44 80 0D 01 02 00 00 00 00 80 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:57]Read from MH i2c: E2 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 C3 44 00 90 00 7B [16:46:57]RAPDU: 90 00 [16:46:57]wFMCommunicate OK [16:46:57]wFMCommunicate request_size=255 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 0D 02 02 FA 03 00 7B 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [16:46:57]Write to MH i2c: E2 02 01 C4 44 80 0D 02 02 FA 00 03 00 7B 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 00 75 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 C4 44 00 90 00 7C [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=138 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 02 02 85 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 0B 01 00 00 F4 03 04 00 03 34 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 20 01 00 35 04 06 00 E2 F5 B1 59 83 77 [16:46:58]Write to MH i2c: E2 8D 00 C5 44 80 0D 02 02 85 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 0B 01 00 00 F4 03 04 00 03 34 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 20 01 00 35 04 06 00 E2 F5 B1 59 83 77 00 00 ED [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 C5 44 00 90 00 7D [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 03 02 [16:46:58]Write to MH i2c: E2 08 00 C6 44 80 0D 03 02 00 00 00 00 85 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]OFD Sender: No OFD packet to send [16:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0B 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0B 00 C6 44 00 31 1B A3 04 2F FD 5F E2 90 00 E6 [16:46:58]RAPDU: 31 1B A3 04 2F FD 5F E2 90 00 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_SignData done [16:46:58]FM_MakeSignedData done [16:46:58]CreateOFDProtocolMessage [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 11 00 00 [16:46:58]Write to MH i2c: E2 08 00 C7 44 80 11 00 00 00 00 00 00 85 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 17 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 17 00 C7 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [16:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:46:58]wFMCommunicate OK [16:46:58]CreateOFDProtocolMessage done [16:46:58]OFDSenderStorePacket 73941 [16:46:58]StoreOFDPacket docnum=73941 [16:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8F 01 00 00 E2 03 87 01 4B 95 5A 03 01 00 03 00 7B 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 0B 01 00 00 F4 03 04 00 03 34 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 20 01 00 35 04 06 00 E2 F5 B1 59 83 77 31 1B A3 04 2F FD 5F E2 [16:46:58]CheckFolder [16:46:58]dirname=/storage/ofd_packets [16:46:58]CheckFolder done [16:46:58]ProducePacketName [16:46:58]name=ofd_packets/00073941 [16:46:58]NVStorageSaveData ofd_packets/00073941 [16:46:58]File name is /storage/ofd_packets/00073941 [16:46:58]Write 429 bytes [16:46:58]NVStorageSaveData done [16:46:58]OFDSenderStorePacket done [16:46:58]KKMCreateOFDPacket done [16:46:58]NVStorageSaveData kkm_last_timestamp [16:46:58]File name is /storage/kkm_last_timestamp [16:46:58]Write 4 bytes [16:46:58]NVStorageSaveData done [16:46:58]ExternCall_PrintAddStr [16:46:58]wPrintStart [16:46:58]Write to MH i2c: 01 00 00 C8 44 0C [16:46:58]OFD Sender: Processing packet 73941 [packets to send 15, broken 14] [16:46:58]ProducePacketName [16:46:58]name=ofd_packets/00073941 [16:46:58]OFD Sender: To server: pG, [16:46:58]CommunicateWithHost lk.salyk.kg:30040 [16:46:58]ConnectInit lk.salyk.kg [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 07 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 07 00 C8 44 00 00 00 00 00 FF 0F 21 [16:46:58]RasterBufferAndPrint [16:46:58]line Счет N : (3)272817 [16:46:58]line ИНН: 02508201610067 [16:46:58]line Контрольно-Кассовый Чек [16:46:58]line ПРОДАЖА [16:46:58]line Товар: 4700000160358 [16:46:58]line Вода Легенда 1л [16:46:58]line 1.000 * 50.00 [16:46:58]line = 50.00 [16:46:58]line НДС 12% НСП 1% [16:46:58]line > о реализуемом товаре [16:46:58]line Товар: 46226617 [16:46:58]line Mentos ПВ Нежная Мята 6*100*2г [16:46:58]line 1.000 * 10.00 [16:46:58]line = 10.00 [16:46:58]line НДС 12% НСП 1% [16:46:58]line > о реализуемом товаре [16:46:58]line ИТОГО: 60.00 [16:46:58]line НСП 1% : 0.53 [16:46:58]line НДС 12% : 6.37 [16:46:58]line Наличными: 0.00 [16:46:58]line Безнал.: 60.00 [16:46:58]line Место: АЗС № 133 "Партнер Нефть" [16:46:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:46:58]line СНО: Общий режим [16:46:58]line Чек 267 20.10.2024 16:46 [16:46:58]line Смена: 170 ФФД: 1.0 [16:46:58]line ЗНМ: 0300000020 [16:46:58]line РНМ: 0000000000161154 [16:46:58]line Версия ККМ: v1.0 [16:46:58]line Платежная система: Mbank [16:46:58]line ФМ: 0000000000963323 [16:46:58]line ФД: 73941 [16:46:58]line ФПД: 249544870298487 [16:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164659&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73941&fm=249544870298487&tin=02508201610067®Number=0000000000161154&sum=6000 [16:46:58]line 0 [16:46:58]written 0, free lines is 4095 [16:46:58]Connected sock=10 [16:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8F 01 00 00 E2 03 87 01 4B 95 5A 03 01 00 03 00 7B 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 0B 01 00 00 F4 03 04 00 03 34 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 20 01 00 35 04 06 00 E2 F5 B1 59 83 77 31 1B A3 04 2F FD 5F E2 [16:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E2 15 47 00 4A 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 39 36 33 33 32 33 10 04 04 00 D5 20 01 00 F4 03 04 00 E7 DC 14 67 B6 04 01 00 00 4E 64 FC 9C 67 61 E0 63 [16:46:58]CommunicateWithHost err = 0 [16:46:59]CheckOFDResponse [16:46:59]1017 (14) - 77093643461234 [16:46:59]1041 (16) - 0000000000963323 [16:46:59]1040 (4) - 73941 [16:46:59]1012 (4) - 20.10.2024 10:35 [16:46:59]1206 (1) - 0 [16:46:59]OFD Sender: Remove packet 73941 [16:46:59]ProducePacketName [16:46:59]name=ofd_packets/00073941 [16:46:59]NVStorageDeleteData [16:46:59]Write to MH i2c: 01 00 00 F7 44 3B [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 07 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 07 00 F7 44 00 00 00 00 00 67 0C B5 [16:46:59]RasterBufferAndPrint [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]written 0, free lines is 3181 [16:46:59]MH_Cut [16:46:59]Write to MH i2c: D1 01 00 FE 44 01 14 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 01 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 01 00 FE 44 00 13 [16:46:59]Write to MH i2c: 01 00 00 FF 44 43 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]OFD Sender: No OFD packet to send [16:47:00]*** Cut start [16:47:00]*** Partial cut [16:47:00]*** CUTSNS_PIN = 1 [16:47:00]*** CUTSNS_PIN = 0 [16:47:00]*** Brake cut motor [16:47:00]Read from MH i2c: 01 [16:47:00]MH_I2C_Read... [16:47:00]*** Stop cut motor [16:47:00]*** Cut end [16:47:00]Read from MH i2c: 01 07 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 FF 0F 58 [16:47:00]process_action close_receipt done [16:47:00]requested_data is exist [16:47:00]produce_requested_data [16:47:00]requested_item fm.sn is exist - process it [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 11 00 00 [16:47:00]Write to MH i2c: E2 08 00 00 45 80 11 00 00 00 00 00 00 BF [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 00 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0C [16:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:47:00]wFMCommunicate OK [16:47:00]requested_item fd.num is exist - process it [16:47:00]SAM_PROTO_GetFieldsCounters [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 00 00 [16:47:00]Write to MH i2c: E2 08 00 01 45 80 13 00 00 00 00 00 00 C2 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 62 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 62 00 01 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [16:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_GetFieldsCounters done [16:47:00]requested_item shift.num is exist - process it [16:47:00]requested_item shift.opened is exist - process it [16:47:00]req_shift_opened [16:47:00]FM_GetShiftState [16:47:00]SAM_PROTO_GetShiftState [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 01 00 [16:47:00]Write to MH i2c: E2 08 00 02 45 80 13 01 00 00 00 00 00 C4 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 0E 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 0E 00 02 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 09 [16:47:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:47:01]wFMCommunicate OK [16:47:01]SAM_PROTO_GetShiftState done [16:47:01]FM_GetShiftState done [16:47:01]req_shift_opened done [16:47:01]requested_item shift.open_date is exist - process it [16:47:01]req_shift_open_date [16:47:01]req_shift_open_date done [16:47:01]produce_requested_data done [16:47:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73941,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:47:01]process_action_free close_receipt [16:47:01]json_value_free [16:47:01]json_value_free done [16:47:01]process_json_proto returns [16:47:01]Send response to host [16:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73941,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:47:01]free response buf [16:47:01]execute_script done [16:47:01]execute_script returns [16:47:01]free content buf [16:47:01]Sock 9.Close socket [16:47:01]Sock 9.Thread stoped [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]accept exits with 8 [16:52:54]New connection [16:52:54]New thread 3067575652 created [16:52:54]Thread 3067432292 joined [16:52:54]Waiting for new connection... [16:52:54] Sock 8.Parse request [16:52:54]Sock 8.Check first char [16:52:54]Sock 8.First char is OK [16:52:54]request: POST /json_proto HTTP/1.0 [16:52:54]Method: POST [16:52:54]URL: /json_proto [16:52:54]Method is POST - this is cgi request [16:52:54]url: /json_proto [16:52:54]query_string will be loaded in cgi processing [16:52:54]execute_cgi json_proto POST (null) [16:52:54]execute_cgi path=json_proto method=POST [16:52:54]POST find Content-Length [16:52:54]Host: 172.17.44.196:8080 [16:52:54]Content-Length: 748 [16:52:54]Content-Type: application/json [16:52:54] [16:52:54]POST finish read [16:52:54]Found Content-Length = 748 [16:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272818", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:54]execute_script... [16:52: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)272818", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:54]POST & json_proto [16:52:54]process_json_proto [16:52:54]json parsed OK: [16:52:54]protocol is kg_v1.0 [16:52:54]action value=close_receipt [16:52:54]process_action close_receipt [16:52:54]cmd_close_receipt [16:52:54]MH_GetDate [16:52:54]Write to MH i2c: F0 00 00 03 45 37 [16:52:54]Write i2c OK [16:52:54]MH_I2C_Read... [16:52:54]Read from MH i2c: F0 [16:52:54]MH_I2C_Read... [16:52:54]Read from MH i2c: F0 09 00 [16:52:54]MH_I2C_Read... [16:52:54]Read from MH i2c: F0 09 00 03 45 00 68 35 15 67 E7 19 F8 65 B6 [16:52:54]GetLastDocTimeStamp 1729442819 [16:52:54]current date 1729443176 [16:52:54]FM_GetShiftState [16:52:54]SAM_PROTO_GetShiftState [16:52:54]wFMCommunicate request_size=4 [16:52:54]MH_SAM_APDU [16:52:54]CAPDU: 80 13 01 00 [16:52:54]Write to MH i2c: E2 08 00 04 45 80 13 01 00 00 00 00 00 C6 [16:52:54]Write i2c OK [16:52:54]MH_I2C_Read... [16:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:54]Read from MH i2c: E2 [16:52:54]MH_I2C_Read... [16:52:54]Read from MH i2c: E2 0E 00 [16:52:54]MH_I2C_Read... [16:52:54]Read from MH i2c: E2 0E 00 04 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0B [16:52:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:52:54]wFMCommunicate OK [16:52:54]SAM_PROTO_GetShiftState done [16:52:54]FM_GetShiftState done [16:52:54]opened in 1729384303 [16:52:54]opened+sec_in_day 1729470703 [16:52:54]quantity*price = 2000 [16:52:54]sum+1 = 2001 [16:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 268 20.10.2024 16:52 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73942 ФПД: 244034779008816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165256&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73942&fm=244034779008816&tin=02508201610067®Number=0000000000161154&sum=2000 0 [16:52:55]StoreToDocumentArchive [16:52:55]shift 170 fd 73942 [16:52:55]save to /storage/0170/doc_00073942 [16:52:55]save last doc name /storage/0170/doc_00073942 to /storage/kkm_last_doc_name [16:52:55]save OK [16:52:55]Clear old archive folders... [16:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=311 [16:52:55]tlvbuf is 0048F730 [16:52:55]SAM_PROTO_ClearQueue [16:52:55]wFMCommunicate request_size=4 [16:52:55]MH_SAM_APDU [16:52:55]CAPDU: 80 09 00 00 [16:52:55]Write to MH i2c: E2 08 00 11 45 80 09 00 00 00 00 00 00 C8 [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:55]Read from MH i2c: E2 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 11 45 00 90 00 CA [16:52:55]RAPDU: 90 00 [16:52:55]wFMCommunicate OK [16:52:55]SAM_PROTO_ClearQueue done [16:52:55]KKMCreateOFDPacket [16:52:55]OFDProtocolAddRootSTLVToBuf [16:52:55]FM_MakeSignedData [16:52:55]FM_MakeSignedData [16:52:55]SAM_PROTO_SignData [16:52:55]wFMCommunicate request_size=4 [16:52:55]MH_SAM_APDU [16:52:55]CAPDU: 80 0D 01 02 [16:52:55]Write to MH i2c: E2 08 00 12 45 80 0D 01 02 00 00 00 00 D0 [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:55]Read from MH i2c: E2 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 12 45 00 90 00 CB [16:52:55]RAPDU: 90 00 [16:52:55]wFMCommunicate OK [16:52:55]wFMCommunicate request_size=255 [16:52:55]MH_SAM_APDU [16:52:55]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 01 00 00 F4 03 04 00 68 35 15 67 0E 04 04 00 AA 00 [16:52:55]Write to MH i2c: E2 02 01 13 45 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 01 00 00 F4 03 04 00 68 35 15 67 0E 04 04 00 AA 00 00 00 BC [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:55]Read from MH i2c: E2 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 13 45 00 90 00 CC [16:52:55]RAPDU: 90 00 [16:52:55]wFMCommunicate OK [16:52:55]wFMCommunicate request_size=70 [16:52:55]MH_SAM_APDU [16:52:55]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 20 01 00 35 04 06 00 DD F2 C6 50 CF 30 [16:52:55]Write to MH i2c: E2 49 00 14 45 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 20 01 00 35 04 06 00 DD F2 C6 50 CF 30 00 00 B8 [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:55]Read from MH i2c: E2 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 03 00 14 45 00 90 00 CD [16:52:55]RAPDU: 90 00 [16:52:55]wFMCommunicate OK [16:52:55]wFMCommunicate request_size=4 [16:52:55]MH_SAM_APDU [16:52:55]CAPDU: 80 0D 03 02 [16:52:55]Write to MH i2c: E2 08 00 15 45 80 0D 03 02 00 00 00 00 D5 [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:55]Read from MH i2c: E2 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 0B 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 0B 00 15 45 00 02 E7 0E 3E 79 EF A8 A3 90 00 BE [16:52:55]RAPDU: 02 E7 0E 3E 79 EF A8 A3 90 00 [16:52:55]wFMCommunicate OK [16:52:55]SAM_PROTO_SignData done [16:52:55]FM_MakeSignedData done [16:52:55]CreateOFDProtocolMessage [16:52:55]wFMCommunicate request_size=4 [16:52:55]MH_SAM_APDU [16:52:55]CAPDU: 80 11 00 00 [16:52:55]Write to MH i2c: E2 08 00 16 45 80 11 00 00 00 00 00 00 D5 [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:55]Read from MH i2c: E2 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 17 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: E2 17 00 16 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 22 [16:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:52:55]wFMCommunicate OK [16:52:55]CreateOFDProtocolMessage done [16:52:55]OFDSenderStorePacket 73942 [16:52:55]StoreOFDPacket docnum=73942 [16:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4B 01 00 00 CD 56 43 01 63 A2 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 01 00 00 F4 03 04 00 68 35 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 20 01 00 35 04 06 00 DD F2 C6 50 CF 30 02 E7 0E 3E 79 EF A8 A3 [16:52:55]CheckFolder [16:52:55]dirname=/storage/ofd_packets [16:52:55]CheckFolder done [16:52:55]ProducePacketName [16:52:55]name=ofd_packets/00073942 [16:52:55]NVStorageSaveData ofd_packets/00073942 [16:52:55]File name is /storage/ofd_packets/00073942 [16:52:55]Write 361 bytes [16:52:55]NVStorageSaveData done [16:52:55]OFDSenderStorePacket done [16:52:55]KKMCreateOFDPacket done [16:52:55]NVStorageSaveData kkm_last_timestamp [16:52:55]File name is /storage/kkm_last_timestamp [16:52:55]Write 4 bytes [16:52:55]NVStorageSaveData done [16:52:55]ExternCall_PrintAddStr [16:52:55]wPrintStart [16:52:55]Write to MH i2c: 01 00 00 17 45 5C [16:52:55]Write i2c OK [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: 01 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: 01 07 00 [16:52:55]MH_I2C_Read... [16:52:55]Read from MH i2c: 01 07 00 17 45 00 00 00 00 00 FF 0F 71 [16:52:55]RasterBufferAndPrint [16:52:55]line Счет N : (3)272818 [16:52:55]line ИНН: 02508201610067 [16:52:55]line Контрольно-Кассовый Чек [16:52:55]line ПРОДАЖА [16:52:55]line Товар: 4700003730039 [16:52:55]line Снек Возд пшеница Бадырак сладкая 30гр [16:52:55]line 1.000 * 20.00 [16:52:55]line = 20.00 [16:52:55]line НДС 12% НСП 1% [16:52:55]line > о реализуемом товаре [16:52:55]line ИТОГО: 20.00 [16:52:55]line НСП 1% : 0.18 [16:52:55]line НДС 12% : 2.12 [16:52:55]line Наличными: 20.00 [16:52:56]line Безнал.: 0.00 [16:52:56]line Место: АЗС № 133 "Партнер Нефть" [16:52:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:52:56]line СНО: Общий режим [16:52:56]line Чек 268 20.10.2024 16:52 [16:52:56]line Смена: 170 ФФД: 1.0 [16:52:56]line ЗНМ: 0300000020 [16:52:56]line РНМ: 0000000000161154 [16:52:56]line Версия ККМ: v1.0 [16:52:56]line ФМ: 0000000000963323 [16:52:56]line ФД: 73942 [16:52:56]line ФПД: 244034779008816 [16:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165256&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73942&fm=244034779008816&tin=02508201610067®Number=0000000000161154&sum=2000 [16:52:56]line 0 [16:52:56]OFD Sender: Processing packet 73942 [packets to send 15, broken 14] [16:52:56]ProducePacketName [16:52:56]name=ofd_packets/00073942 [16:52:56]OFD Sender: To server: pG, [16:52:56]CommunicateWithHost lk.salyk.kg:30040 [16:52:56]ConnectInit lk.salyk.kg [16:52:56]written 0, free lines is 4095 [16:52:56]Connected sock=10 [16:52:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4B 01 00 00 CD 56 43 01 63 A2 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 01 00 00 F4 03 04 00 68 35 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 20 01 00 35 04 06 00 DD F2 C6 50 CF 30 02 E7 0E 3E 79 EF A8 A3 [16:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FA 4A 47 00 DB 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 39 36 33 33 32 33 10 04 04 00 D6 20 01 00 F4 03 04 00 4D DE 14 67 B6 04 01 00 00 61 F8 E8 F4 1C C8 C2 29 [16:52:56]CommunicateWithHost err = 0 [16:52:56]CheckOFDResponse [16:52:56]1017 (14) - 77093643461234 [16:52:56]1041 (16) - 0000000000963323 [16:52:56]1040 (4) - 73942 [16:52:56]1012 (4) - 20.10.2024 10:41 [16:52:56]1206 (1) - 0 [16:52:56]OFD Sender: Remove packet 73942 [16:52:56]ProducePacketName [16:52:56]name=ofd_packets/00073942 [16:52:56]NVStorageDeleteData [16:52:56]Write to MH i2c: 01 00 00 3F 45 84 [16:52:56]Write i2c OK [16:52:56]MH_I2C_Read... [16:52:56]Read from MH i2c: 01 [16:52:56]MH_I2C_Read... [16:52:56]Read from MH i2c: 01 07 00 [16:52:56]MH_I2C_Read... [16:52:56]Read from MH i2c: 01 07 00 3F 45 00 00 00 00 00 DA 0C 71 [16:52:56]RasterBufferAndPrint [16:52:56]line [16:52:56]line [16:52:56]line [16:52:56]line [16:52:56]line [16:52:56]written 0, free lines is 3295 [16:52:56]MH_Cut [16:52:56]Write to MH i2c: D1 01 00 46 45 01 5D [16:52:56]Write i2c OK [16:52:56]MH_I2C_Read... [16:52:56]Read from MH i2c: D1 [16:52:56]MH_I2C_Read... [16:52:56]Read from MH i2c: D1 01 00 [16:52:56]MH_I2C_Read... [16:52:56]Read from MH i2c: D1 01 00 46 45 00 5C [16:52:56]Write to MH i2c: 01 00 00 47 45 8C [16:52:56]Write i2c OK [16:52:56]MH_I2C_Read... [16:52:57]OFD Sender: No OFD packet to send [16:52:57]*** Cut start [16:52:57]*** Partial cut [16:52:57]*** CUTSNS_PIN = 1 [16:52:57]*** CUTSNS_PIN = 0 [16:52:57]*** Brake cut motor [16:52:58]Read from MH i2c: 01 [16:52:58]MH_I2C_Read... [16:52:58]*** Stop cut motor [16:52:58]*** Cut end [16:52:58]Read from MH i2c: 01 07 00 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: 01 07 00 47 45 00 00 00 00 00 FF 0F A1 [16:52:58]process_action close_receipt done [16:52:58]requested_data is exist [16:52:58]produce_requested_data [16:52:58]requested_item fm.sn is exist - process it [16:52:58]wFMCommunicate request_size=4 [16:52:58]MH_SAM_APDU [16:52:58]CAPDU: 80 11 00 00 [16:52:58]Write to MH i2c: E2 08 00 48 45 80 11 00 00 00 00 00 00 07 [16:52:58]Write i2c OK [16:52:58]MH_I2C_Read... [16:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:58]Read from MH i2c: E2 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: E2 17 00 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: E2 17 00 48 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 54 [16:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:52:58]wFMCommunicate OK [16:52:58]requested_item fd.num is exist - process it [16:52:58]SAM_PROTO_GetFieldsCounters [16:52:58]wFMCommunicate request_size=4 [16:52:58]MH_SAM_APDU [16:52:58]CAPDU: 80 13 00 00 [16:52:58]Write to MH i2c: E2 08 00 49 45 80 13 00 00 00 00 00 00 0A [16:52:58]Write i2c OK [16:52:58]MH_I2C_Read... [16:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:58]Read from MH i2c: E2 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: E2 62 00 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: E2 62 00 49 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [16:52:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:58]wFMCommunicate OK [16:52:58]SAM_PROTO_GetFieldsCounters done [16:52:58]requested_item shift.num is exist - process it [16:52:58]requested_item shift.opened is exist - process it [16:52:58]req_shift_opened [16:52:58]FM_GetShiftState [16:52:58]SAM_PROTO_GetShiftState [16:52:58]wFMCommunicate request_size=4 [16:52:58]MH_SAM_APDU [16:52:58]CAPDU: 80 13 01 00 [16:52:58]Write to MH i2c: E2 08 00 4A 45 80 13 01 00 00 00 00 00 0C [16:52:58]Write i2c OK [16:52:58]MH_I2C_Read... [16:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:58]Read from MH i2c: E2 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: E2 0E 00 [16:52:58]MH_I2C_Read... [16:52:58]Read from MH i2c: E2 0E 00 4A 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 51 [16:52:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [16:52:58]wFMCommunicate OK [16:52:58]SAM_PROTO_GetShiftState done [16:52:58]FM_GetShiftState done [16:52:58]req_shift_opened done [16:52:58]requested_item shift.open_date is exist - process it [16:52:58]req_shift_open_date [16:52:58]req_shift_open_date done [16:52:58]produce_requested_data done [16:52:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73942,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [16:52:58]process_action_free close_receipt [16:52:58]json_value_free [16:52:58]json_value_free done [16:52:58]process_json_proto returns [16:52:58]Send response to host [16:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73942,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [16:52:58]free response buf [16:52:58]execute_script done [16:52:58]execute_script returns [16:52:58]free content buf [16:52:58]Sock 8.Close socket [16:52:58]Sock 8.Thread stoped [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:56]accept exits with 9 [17:03:56]New connection [17:03:56]New thread 3067432292 created [17:03:56]Thread 3067575652 joined [17:03:56]Waiting for new connection... [17:03:56] Sock 9.Parse request [17:03:56]Sock 9.Check first char [17:03:56]Sock 9.First char is OK [17:03:56]request: POST /json_proto HTTP/1.0 [17:03:56]Method: POST [17:03:56]URL: /json_proto [17:03:56]Method is POST - this is cgi request [17:03:56]url: /json_proto [17:03:56]query_string will be loaded in cgi processing [17:03:56]execute_cgi json_proto POST (null) [17:03:56]execute_cgi path=json_proto method=POST [17:03:56]POST find Content-Length [17:03:56]Host: 172.17.44.196:8080 [17:03:56]Content-Length: 997 [17:03:56]Content-Type: application/json [17:03:56] [17:03:56]POST finish read [17:03:56]Found Content-Length = 997 [17:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272819", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:56]execute_script... [17:03: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)272819", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "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: Mbank", "payments": [ { "type": 1, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:56]POST & json_proto [17:03:56]process_json_proto [17:03:56]json parsed OK: [17:03:56]protocol is kg_v1.0 [17:03:56]action value=close_receipt [17:03:56]process_action close_receipt [17:03:56]cmd_close_receipt [17:03:56]MH_GetDate [17:03:56]Write to MH i2c: F0 00 00 4B 45 7F [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: F0 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: F0 09 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: F0 09 00 4B 45 00 FF 37 15 67 E7 19 F8 65 97 [17:03:56]GetLastDocTimeStamp 1729443176 [17:03:56]current date 1729443839 [17:03:56]FM_GetShiftState [17:03:56]SAM_PROTO_GetShiftState [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 13 01 00 [17:03:56]Write to MH i2c: E2 08 00 4C 45 80 13 01 00 00 00 00 00 0E [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 0E 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 0E 00 4C 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 53 [17:03:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_GetShiftState done [17:03:56]FM_GetShiftState done [17:03:56]opened in 1729384303 [17:03:56]opened+sec_in_day 1729470703 [17:03:56]quantity*price = 23000 [17:03:56]sum+1 = 23001 [17:03:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.22 Наличными: 0.00 Безнал.: 360.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 269 20.10.2024 17:03 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73943 ФПД: 234948732476716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170359&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73943&fm=234948732476716&tin=02508201610067®Number=0000000000161154&sum=36000 0 [17:03:57]StoreToDocumentArchive [17:03:57]shift 170 fd 73943 [17:03:57]save to /storage/0170/doc_00073943 [17:03:57]save last doc name /storage/0170/doc_00073943 to /storage/kkm_last_doc_name [17:03:57]save OK [17:03:57]Clear old archive folders... [17:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=380 [17:03:57]tlvbuf is 004841F0 [17:03:57]SAM_PROTO_ClearQueue [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 09 00 00 [17:03:57]Write to MH i2c: E2 08 00 59 45 80 09 00 00 00 00 00 00 10 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]OFD Sender: No OFD packet to send [17:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 59 45 00 90 00 12 [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_ClearQueue done [17:03:57]KKMCreateOFDPacket [17:03:57]OFDProtocolAddRootSTLVToBuf [17:03:57]FM_MakeSignedData [17:03:57]FM_MakeSignedData [17:03:57]SAM_PROTO_SignData [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 01 02 [17:03:57]Write to MH i2c: E2 08 00 5A 45 80 0D 01 02 00 00 00 00 18 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 5A 45 00 90 00 13 [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=255 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 [17:03:57]Write to MH i2c: E2 02 01 5B 45 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 E6 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 5B 45 00 90 00 14 [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]wFMCommunicate request_size=139 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 FF 37 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 20 01 00 35 04 06 00 D5 AF 43 BD 5D 2C [17:03:58]Write to MH i2c: E2 8E 00 5C 45 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 FF 37 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 20 01 00 35 04 06 00 D5 AF 43 BD 5D 2C 00 00 DE [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 5C 45 00 90 00 15 [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 03 02 [17:03:58]Write to MH i2c: E2 08 00 5D 45 80 0D 03 02 00 00 00 00 1D [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 0B 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 0B 00 5D 45 00 0A 07 4B 6A 13 DE 57 56 90 00 82 [17:03:58]RAPDU: 0A 07 4B 6A 13 DE 57 56 90 00 [17:03:58]wFMCommunicate OK [17:03:58]SAM_PROTO_SignData done [17:03:58]FM_MakeSignedData done [17:03:58]CreateOFDProtocolMessage [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 11 00 00 [17:03:58]Write to MH i2c: E2 08 00 5E 45 80 11 00 00 00 00 00 00 1D [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 17 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 17 00 5E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6A [17:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:03:58]wFMCommunicate OK [17:03:58]CreateOFDProtocolMessage done [17:03:58]OFDSenderStorePacket 73943 [17:03:58]StoreOFDPacket docnum=73943 [17:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 01 00 00 91 C5 88 01 00 6C 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 FF 37 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 20 01 00 35 04 06 00 D5 AF 43 BD 5D 2C 0A 07 4B 6A 13 DE 57 56 [17:03:58]CheckFolder [17:03:58]dirname=/storage/ofd_packets [17:03:58]CheckFolder done [17:03:58]ProducePacketName [17:03:58]name=ofd_packets/00073943 [17:03:58]NVStorageSaveData ofd_packets/00073943 [17:03:58]File name is /storage/ofd_packets/00073943 [17:03:58]Write 430 bytes [17:03:58]NVStorageSaveData done [17:03:58]OFDSenderStorePacket done [17:03:58]KKMCreateOFDPacket done [17:03:58]NVStorageSaveData kkm_last_timestamp [17:03:58]File name is /storage/kkm_last_timestamp [17:03:58]Write 4 bytes [17:03:58]NVStorageSaveData done [17:03:58]ExternCall_PrintAddStr [17:03:58]wPrintStart [17:03:58]Write to MH i2c: 01 00 00 5F 45 A4 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]OFD Sender: Processing packet 73943 [packets to send 15, broken 14] [17:03:58]ProducePacketName [17:03:58]name=ofd_packets/00073943 [17:03:58]OFD Sender: To server: pG, [17:03:58]CommunicateWithHost lk.salyk.kg:30040 [17:03:58]ConnectInit lk.salyk.kg [17:03:58]Read from MH i2c: 01 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 07 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 07 00 5F 45 00 00 00 00 00 FF 0F B9 [17:03:58]RasterBufferAndPrint [17:03:58]line Счет N : (3)272819 [17:03:58]line ИНН: 02508201610067 [17:03:58]line Контрольно-Кассовый Чек [17:03:58]line ПРОДАЖА [17:03:58]line Товар: 2000036240010 [17:03:58]line Кофе Латте (GABB TRADE) [17:03:58]line 2.000 * 115.00 [17:03:58]line = 230.00 [17:03:58]line НДС 12% НСП 1% [17:03:58]line > о реализуемом товаре [17:03:58]line Товар: 2000036230011 [17:03:58]line Кофе Латте XL(GABB TRADE) [17:03:58]line 1.000 * 130.00 [17:03:58]line = 130.00 [17:03:58]line НДС 12% НСП 1% [17:03:58]line > о реализуемом товаре [17:03:58]line ИТОГО: 360.00 [17:03:58]line НСП 1% : 3.18 [17:03:58]line НДС 12% : 38.22 [17:03:58]line Наличными: 0.00 [17:03:58]line Безнал.: 360.00 [17:03:58]line Место: АЗС № 133 "Партнер Нефть" [17:03:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:03:58]line СНО: Общий режим [17:03:58]line Чек 269 20.10.2024 17:03 [17:03:58]line Смена: 170 ФФД: 1.0 [17:03:58]line ЗНМ: 0300000020 [17:03:58]line РНМ: 0000000000161154 [17:03:58]line Версия ККМ: v1.0 [17:03:58]line Платежная система: Mbank [17:03:58]line ФМ: 0000000000963323 [17:03:58]line ФД: 73943 [17:03:58]line ФПД: 234948732476716 [17:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170359&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73943&fm=234948732476716&tin=02508201610067®Number=0000000000161154&sum=36000 [17:03:58]line 0 [17:03:58]written 0, free lines is 4095 [17:03:58]Connected sock=10 [17:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 01 00 00 91 C5 88 01 00 6C 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 FF 37 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 20 01 00 35 04 06 00 D5 AF 43 BD 5D 2C 0A 07 4B 6A 13 DE 57 56 [17:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3D 41 47 00 2B AD 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 39 36 33 33 32 33 10 04 04 00 D7 20 01 00 F4 03 04 00 E3 E0 14 67 B6 04 01 00 00 1D 14 58 7F AE AA 5F 48 [17:03:58]CommunicateWithHost err = 0 [17:03:58]CheckOFDResponse [17:03:58]1017 (14) - 77093643461234 [17:03:58]1041 (16) - 0000000000963323 [17:03:58]1040 (4) - 73943 [17:03:58]1012 (4) - 20.10.2024 10:52 [17:03:58]1206 (1) - 0 [17:03:58]OFD Sender: Remove packet 73943 [17:03:58]ProducePacketName [17:03:58]name=ofd_packets/00073943 [17:03:58]NVStorageDeleteData [17:03:59]Write to MH i2c: 01 00 00 8D 45 D2 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 8D 45 00 00 00 00 00 82 0C 67 [17:03:59]RasterBufferAndPrint [17:03:59]line [17:03:59]line [17:03:59]line [17:03:59]line [17:03:59]line [17:03:59]written 0, free lines is 3208 [17:03:59]MH_Cut [17:03:59]Write to MH i2c: D1 01 00 94 45 01 AB [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: D1 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: D1 01 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: D1 01 00 94 45 00 AA [17:03:59]Write to MH i2c: 01 00 00 95 45 DA [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]OFD Sender: No OFD packet to send [17:04:00]*** Cut start [17:04:00]*** Partial cut [17:04:00]*** CUTSNS_PIN = 1 [17:04:00]*** CUTSNS_PIN = 0 [17:04:00]*** Brake cut motor [17:04:00]Read from MH i2c: 01 [17:04:00]MH_I2C_Read... [17:04:00]*** Stop cut motor [17:04:00]*** Cut end [17:04:00]Read from MH i2c: 01 07 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: 01 07 00 95 45 00 00 00 00 00 FF 0F EF [17:04:00]process_action close_receipt done [17:04:00]requested_data is exist [17:04:00]produce_requested_data [17:04:00]requested_item fm.sn is exist - process it [17:04:00]wFMCommunicate request_size=4 [17:04:00]MH_SAM_APDU [17:04:00]CAPDU: 80 11 00 00 [17:04:00]Write to MH i2c: E2 08 00 96 45 80 11 00 00 00 00 00 00 55 [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:00]Read from MH i2c: E2 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 17 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 17 00 96 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A2 [17:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:04:00]wFMCommunicate OK [17:04:00]requested_item fd.num is exist - process it [17:04:00]SAM_PROTO_GetFieldsCounters [17:04:00]wFMCommunicate request_size=4 [17:04:00]MH_SAM_APDU [17:04:00]CAPDU: 80 13 00 00 [17:04:00]Write to MH i2c: E2 08 00 97 45 80 13 00 00 00 00 00 00 58 [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:00]Read from MH i2c: E2 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 62 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 62 00 97 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:04:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:00]wFMCommunicate OK [17:04:00]SAM_PROTO_GetFieldsCounters done [17:04:00]requested_item shift.num is exist - process it [17:04:00]requested_item shift.opened is exist - process it [17:04:00]req_shift_opened [17:04:00]FM_GetShiftState [17:04:00]SAM_PROTO_GetShiftState [17:04:00]wFMCommunicate request_size=4 [17:04:00]MH_SAM_APDU [17:04:00]CAPDU: 80 13 01 00 [17:04:00]Write to MH i2c: E2 08 00 98 45 80 13 01 00 00 00 00 00 5A [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:00]Read from MH i2c: E2 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 0E 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 0E 00 98 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9F [17:04:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:04:00]wFMCommunicate OK [17:04:00]SAM_PROTO_GetShiftState done [17:04:00]FM_GetShiftState done [17:04:00]req_shift_opened done [17:04:00]requested_item shift.open_date is exist - process it [17:04:00]req_shift_open_date [17:04:00]req_shift_open_date done [17:04:00]produce_requested_data done [17:04:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73943,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:04:00]process_action_free close_receipt [17:04:00]json_value_free [17:04:00]json_value_free done [17:04:00]process_json_proto returns [17:04:00]Send response to host [17:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73943,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:04:00]free response buf [17:04:00]execute_script done [17:04:00]execute_script returns [17:04:00]free content buf [17:04:00]Sock 9.Close socket [17:04:00]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:46]accept exits with 8 [17:07:46]New connection [17:07:46]New thread 3067575652 created [17:07:46]Thread 3067432292 joined [17:07:46]Waiting for new connection... [17:07:46] Sock 8.Parse request [17:07:46]Sock 8.Check first char [17:07:46]Sock 8.First char is OK [17:07:46]request: POST /json_proto HTTP/1.0 [17:07:46]Method: POST [17:07:46]URL: /json_proto [17:07:46]Method is POST - this is cgi request [17:07:46]url: /json_proto [17:07:46]query_string will be loaded in cgi processing [17:07:46]execute_cgi json_proto POST (null) [17:07:46]execute_cgi path=json_proto method=POST [17:07:46]POST find Content-Length [17:07:46]Host: 172.17.44.196:8080 [17:07:46]Content-Length: 678 [17:07:46]Content-Type: application/json [17:07:46] [17:07:46]POST finish read [17:07:46]Found Content-Length = 678 [17:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963156", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [17:07:46]execute_script... [17:07: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)1963156", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [17:07:46]POST & json_proto [17:07:46]process_json_proto [17:07:46]json parsed OK: [17:07:46]protocol is kg_v1.0 [17:07:46]action value=close_receipt [17:07:46]process_action close_receipt [17:07:46]cmd_close_receipt [17:07:46]MH_GetDate [17:07:46]Write to MH i2c: F0 00 00 99 45 CD [17:07:46]Write i2c OK [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: F0 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: F0 09 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: F0 09 00 99 45 00 E4 38 15 67 E7 19 F8 65 CB [17:07:46]GetLastDocTimeStamp 1729443839 [17:07:46]current date 1729444068 [17:07:46]FM_GetShiftState [17:07:46]SAM_PROTO_GetShiftState [17:07:46]wFMCommunicate request_size=4 [17:07:46]MH_SAM_APDU [17:07:46]CAPDU: 80 13 01 00 [17:07:46]Write to MH i2c: E2 08 00 9A 45 80 13 01 00 00 00 00 00 5C [17:07:46]Write i2c OK [17:07:46]MH_I2C_Read... [17:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:46]Read from MH i2c: E2 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 9A 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A1 [17:07:46]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:07:46]wFMCommunicate OK [17:07:46]SAM_PROTO_GetShiftState done [17:07:46]FM_GetShiftState done [17:07:46]opened in 1729384303 [17:07:46]opened+sec_in_day 1729470703 [17:07:46]quantity*price = 50041 [17:07:46]sum+1 = 50042 [17:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 270 20.10.2024 17:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73944 ФПД: 52670098858328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170748&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73944&fm=52670098858328&tin=02508201610067®Number=0000000000161154&sum=50000 [17:07:47]StoreToDocumentArchive [17:07:47]shift 170 fd 73944 [17:07:47]save to /storage/0170/doc_00073944 [17:07:47]save last doc name /storage/0170/doc_00073944 to /storage/kkm_last_doc_name [17:07:47]save OK [17:07:47]Clear old archive folders... [17:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:47]tlvbuf is 00322C10 [17:07:47]SAM_PROTO_ClearQueue [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 09 00 00 [17:07:47]Write to MH i2c: E2 08 00 A7 45 80 09 00 00 00 00 00 00 5E [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 A7 45 00 90 00 60 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]SAM_PROTO_ClearQueue done [17:07:47]KKMCreateOFDPacket [17:07:47]OFDProtocolAddRootSTLVToBuf [17:07:47]FM_MakeSignedData [17:07:47]FM_MakeSignedData [17:07:47]SAM_PROTO_SignData [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 01 02 [17:07:47]Write to MH i2c: E2 08 00 A8 45 80 0D 01 02 00 00 00 00 66 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 A8 45 00 90 00 61 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]wFMCommunicate request_size=255 [17:07:47]MH_SAM_APDU [17:07:47]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 0E 01 00 00 F4 03 04 00 E4 38 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 20 01 00 35 04 06 00 2F [17:07:47]Write to MH i2c: E2 02 01 A9 45 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 0E 01 00 00 F4 03 04 00 E4 38 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 20 01 00 35 04 06 00 2F 00 00 61 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 A9 45 00 90 00 62 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]wFMCommunicate request_size=10 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 02 02 05 E7 36 88 61 58 [17:07:47]Write to MH i2c: E2 0D 00 AA 45 80 0D 02 02 05 00 E7 36 88 61 58 00 00 D1 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 03 00 AA 45 00 90 00 63 [17:07:47]RAPDU: 90 00 [17:07:47]wFMCommunicate OK [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 0D 03 02 [17:07:47]Write to MH i2c: E2 08 00 AB 45 80 0D 03 02 00 00 00 00 6B [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 0B 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 0B 00 AB 45 00 3A 2C 56 C6 03 FE DF 7D 90 00 4B [17:07:47]RAPDU: 3A 2C 56 C6 03 FE DF 7D 90 00 [17:07:47]wFMCommunicate OK [17:07:47]SAM_PROTO_SignData done [17:07:47]FM_MakeSignedData done [17:07:47]CreateOFDProtocolMessage [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 11 00 00 [17:07:47]Write to MH i2c: E2 08 00 AC 45 80 11 00 00 00 00 00 00 6B [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 17 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 17 00 AC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [17:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:07:47]wFMCommunicate OK [17:07:47]CreateOFDProtocolMessage done [17:07:47]OFDSenderStorePacket 73944 [17:07:47]StoreOFDPacket docnum=73944 [17:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D6 18 07 01 F7 21 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 0E 01 00 00 F4 03 04 00 E4 38 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 20 01 00 35 04 06 00 2F E7 36 88 61 58 3A 2C 56 C6 03 FE DF 7D [17:07:47]CheckFolder [17:07:47]dirname=/storage/ofd_packets [17:07:47]CheckFolder done [17:07:47]ProducePacketName [17:07:47]name=ofd_packets/00073944 [17:07:47]NVStorageSaveData ofd_packets/00073944 [17:07:47]File name is /storage/ofd_packets/00073944 [17:07:47]Write 301 bytes [17:07:47]NVStorageSaveData done [17:07:47]OFDSenderStorePacket done [17:07:47]KKMCreateOFDPacket done [17:07:47]NVStorageSaveData kkm_last_timestamp [17:07:47]File name is /storage/kkm_last_timestamp [17:07:47]Write 4 bytes [17:07:47]NVStorageSaveData done [17:07:47]ExternCall_PrintAddStr [17:07:47]wPrintStart [17:07:47]Write to MH i2c: 01 00 00 AD 45 F2 [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: 01 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: 01 07 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: 01 07 00 AD 45 00 00 00 00 00 FF 0F 07 [17:07:47]RasterBufferAndPrint [17:07:47]line Счет N : (1)1963156 [17:07:47]line ИНН: 02508201610067 [17:07:47]line Контрольно-Кассовый Чек [17:07:47]line ПРОДАЖА [17:07:47]line ТРК (МРК, ГНК) : 33 [17:07:47]line Товар: 2710124130 [17:07:47]line Аи-92-К-5 [17:07:47]line 7.480 * 66.90 [17:07:47]line = 500.41 [17:07:47]line НДС 12% НСП 1% [17:07:47]line > о реализуемом товаре [17:07:47]line ОКРУГЛЕНИЕ: -0.41 [17:07:47]line ИТОГО: 500.00 [17:07:47]line Внесено: 500.00 [17:07:47]line СДАЧА: 0.00 [17:07:47]line НСП 1% : 4.43 [17:07:47]line НДС 12% : 53.14 [17:07:47]line Наличными: 500.00 [17:07:47]line Безнал.: 0.00 [17:07:47]line Место: АЗС № 133 "Партнер Нефть" [17:07:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:07:47]line СНО: Общий режим [17:07:47]line Чек 270 20.10.2024 17:07 [17:07:47]line Смена: 170 ФФД: 1.0 [17:07:47]line ЗНМ: 0300000020 [17:07:47]line РНМ: 0000000000161154 [17:07:47]line Версия ККМ: v1.0 [17:07:47]line ФМ: 0000000000963323 [17:07:47]line ФД: 73944 [17:07:47]line ФПД: 52670098858328 [17:07:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170748&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73944&fm=52670098858328&tin=02508201610067®Number=0000000000161154&sum=50000 [17:07:47]OFD Sender: Processing packet 73944 [packets to send 15, broken 14] [17:07:47]ProducePacketName [17:07:47]name=ofd_packets/00073944 [17:07:47]OFD Sender: To server: pG, [17:07:47]CommunicateWithHost lk.salyk.kg:30040 [17:07:47]ConnectInit lk.salyk.kg [17:07:47]written 0, free lines is 4095 [17:07:48]Connected sock=10 [17:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D6 18 07 01 F7 21 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 0E 01 00 00 F4 03 04 00 E4 38 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 20 01 00 35 04 06 00 2F E7 36 88 61 58 3A 2C 56 C6 03 FE DF 7D [17:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 C2 47 00 18 22 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 39 36 33 33 32 33 10 04 04 00 D8 20 01 00 F4 03 04 00 C8 E1 14 67 B6 04 01 00 00 1B 48 F0 BA A5 68 CE CC [17:07:48]CommunicateWithHost err = 0 [17:07:48]CheckOFDResponse [17:07:48]1017 (14) - 77093643461234 [17:07:48]1041 (16) - 0000000000963323 [17:07:48]1040 (4) - 73944 [17:07:48]1012 (4) - 20.10.2024 10:56 [17:07:48]1206 (1) - 0 [17:07:48]OFD Sender: Remove packet 73944 [17:07:48]ProducePacketName [17:07:48]name=ofd_packets/00073944 [17:07:48]NVStorageDeleteData [17:07:48]Write to MH i2c: 01 00 00 D7 45 1C [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: 01 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: 01 07 00 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: 01 07 00 D7 45 00 00 00 00 00 B9 0C E8 [17:07:48]RasterBufferAndPrint [17:07:48]line [17:07:48]line [17:07:48]line [17:07:48]line [17:07:48]line [17:07:48]written 0, free lines is 3263 [17:07:48]MH_Cut [17:07:48]Write to MH i2c: D1 01 00 DE 45 01 F5 [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: D1 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: D1 01 00 [17:07:48]MH_I2C_Read... [17:07:48]Read from MH i2c: D1 01 00 DE 45 00 F4 [17:07:48]Write to MH i2c: 01 00 00 DF 45 24 [17:07:48]Write i2c OK [17:07:48]MH_I2C_Read... [17:07:48]OFD Sender: No OFD packet to send [17:07:49]*** Cut start [17:07:49]*** Partial cut [17:07:49]*** CUTSNS_PIN = 1 [17:07:49]*** CUTSNS_PIN = 0 [17:07:49]*** Brake cut motor [17:07:49]Read from MH i2c: 01 [17:07:49]MH_I2C_Read... [17:07:49]*** Stop cut motor [17:07:49]*** Cut end [17:07:49]Read from MH i2c: 01 07 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: 01 07 00 DF 45 00 00 00 00 00 FF 0F 39 [17:07:49]process_action close_receipt done [17:07:49]requested_data is exist [17:07:49]produce_requested_data [17:07:49]requested_item fm.sn is exist - process it [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 11 00 00 [17:07:49]Write to MH i2c: E2 08 00 E0 45 80 11 00 00 00 00 00 00 9F [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 17 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 17 00 E0 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EC [17:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:07:49]wFMCommunicate OK [17:07:49]requested_item fd.num is exist - process it [17:07:49]SAM_PROTO_GetFieldsCounters [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 13 00 00 [17:07:49]Write to MH i2c: E2 08 00 E1 45 80 13 00 00 00 00 00 00 A2 [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:50]Read from MH i2c: E2 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: E2 62 00 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: E2 62 00 E1 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [17:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:50]wFMCommunicate OK [17:07:50]SAM_PROTO_GetFieldsCounters done [17:07:50]requested_item shift.num is exist - process it [17:07:50]requested_item shift.opened is exist - process it [17:07:50]req_shift_opened [17:07:50]FM_GetShiftState [17:07:50]SAM_PROTO_GetShiftState [17:07:50]wFMCommunicate request_size=4 [17:07:50]MH_SAM_APDU [17:07:50]CAPDU: 80 13 01 00 [17:07:50]Write to MH i2c: E2 08 00 E2 45 80 13 01 00 00 00 00 00 A4 [17:07:50]Write i2c OK [17:07:50]MH_I2C_Read... [17:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:50]Read from MH i2c: E2 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: E2 0E 00 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: E2 0E 00 E2 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E9 [17:07:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:07:50]wFMCommunicate OK [17:07:50]SAM_PROTO_GetShiftState done [17:07:50]FM_GetShiftState done [17:07:50]req_shift_opened done [17:07:50]requested_item shift.open_date is exist - process it [17:07:50]req_shift_open_date [17:07:50]req_shift_open_date done [17:07:50]produce_requested_data done [17:07:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73944,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:07:50]process_action_free close_receipt [17:07:50]json_value_free [17:07:50]json_value_free done [17:07:50]process_json_proto returns [17:07:50]Send response to host [17:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73944,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:07:50]free response buf [17:07:50]execute_script done [17:07:50]execute_script returns [17:07:50]free content buf [17:07:50]Sock 8.Close socket [17:07:50]Sock 8.Thread stoped [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:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:06]accept exits with 9 [17:09:06]New connection [17:09:06]New thread 3067432292 created [17:09:06]Thread 3067575652 joined [17:09:06]Waiting for new connection... [17:09:06] Sock 9.Parse request [17:09:06]Sock 9.Check first char [17:09:06]Sock 9.First char is OK [17:09:06]request: POST /json_proto HTTP/1.0 [17:09:06]Method: POST [17:09:06]URL: /json_proto [17:09:06]Method is POST - this is cgi request [17:09:06]url: /json_proto [17:09:06]query_string will be loaded in cgi processing [17:09:06]execute_cgi json_proto POST (null) [17:09:06]execute_cgi path=json_proto method=POST [17:09:06]POST find Content-Length [17:09:06]Host: 172.17.44.196:8080 [17:09:06]Content-Length: 985 [17:09:06]Content-Type: application/json [17:09:06] [17:09:06]POST finish read [17:09:06]Found Content-Length = 985 [17:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:06]execute_script... [17:09: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 : (1)1963157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:06]POST & json_proto [17:09:06]process_json_proto [17:09:06]json parsed OK: [17:09:06]protocol is kg_v1.0 [17:09:06]action value=close_receipt [17:09:06]process_action close_receipt [17:09:06]cmd_close_receipt [17:09:06]MH_GetDate [17:09:06]Write to MH i2c: F0 00 00 E3 45 17 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: F0 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: F0 09 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: F0 09 00 E3 45 00 35 39 15 67 E7 19 F8 65 67 [17:09:06]GetLastDocTimeStamp 1729444068 [17:09:06]current date 1729444149 [17:09:06]FM_GetShiftState [17:09:06]SAM_PROTO_GetShiftState [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 13 01 00 [17:09:06]Write to MH i2c: E2 08 00 E4 45 80 13 01 00 00 00 00 00 A6 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 0E 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 0E 00 E4 45 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EB [17:09:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:09:06]wFMCommunicate OK [17:09:06]SAM_PROTO_GetShiftState done [17:09:06]FM_GetShiftState done [17:09:06]opened in 1729384303 [17:09:06]opened+sec_in_day 1729470703 [17:09:06]quantity*price = 1000009 [17:09:06]sum+1 = 1000011 [17:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.96 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 271 20.10.2024 17:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 132.98 сом ФМ: 0000000000963323 ФД: 73945 ФПД: 60754490866377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170909&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73945&fm=60754490866377&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:09:07]StoreToDocumentArchive [17:09:07]shift 170 fd 73945 [17:09:07]save to /storage/0170/doc_00073945 [17:09:07]save last doc name /storage/0170/doc_00073945 to /storage/kkm_last_doc_name [17:09:07]save OK [17:09:07]Clear old archive folders... [17:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:09:07]tlvbuf is 003DA770 [17:09:07]SAM_PROTO_ClearQueue [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 09 00 00 [17:09:07]Write to MH i2c: E2 08 00 F1 45 80 09 00 00 00 00 00 00 A8 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 F1 45 00 90 00 AA [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_ClearQueue done [17:09:07]KKMCreateOFDPacket [17:09:07]OFDProtocolAddRootSTLVToBuf [17:09:07]FM_MakeSignedData [17:09:07]FM_MakeSignedData [17:09:07]SAM_PROTO_SignData [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 0D 01 02 [17:09:07]Write to MH i2c: E2 08 00 F2 45 80 0D 01 02 00 00 00 00 B0 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 F2 45 00 90 00 AB [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]wFMCommunicate request_size=255 [17:09:07]MH_SAM_APDU [17:09:07]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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 20 01 00 35 04 06 00 37 41 81 D8 [17:09:07]Write to MH i2c: E2 02 01 F3 45 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 20 01 00 35 04 06 00 37 41 81 D8 00 00 4D [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 03 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 03 00 F3 45 00 90 00 AC [17:09:08]RAPDU: 90 00 [17:09:08]wFMCommunicate OK [17:09:08]wFMCommunicate request_size=7 [17:09:08]MH_SAM_APDU [17:09:08]CAPDU: 80 0D 02 02 02 BA C9 [17:09:08]Write to MH i2c: E2 0A 00 F4 45 80 0D 02 02 02 00 BA C9 00 00 3A [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 03 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 03 00 F4 45 00 90 00 AD [17:09:08]RAPDU: 90 00 [17:09:08]wFMCommunicate OK [17:09:08]wFMCommunicate request_size=4 [17:09:08]MH_SAM_APDU [17:09:08]CAPDU: 80 0D 03 02 [17:09:08]Write to MH i2c: E2 08 00 F5 45 80 0D 03 02 00 00 00 00 B5 [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 0B 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 0B 00 F5 45 00 53 B0 B1 12 EC 1B B3 26 90 00 5C [17:09:08]RAPDU: 53 B0 B1 12 EC 1B B3 26 90 00 [17:09:08]wFMCommunicate OK [17:09:08]SAM_PROTO_SignData done [17:09:08]FM_MakeSignedData done [17:09:08]CreateOFDProtocolMessage [17:09:08]wFMCommunicate request_size=4 [17:09:08]MH_SAM_APDU [17:09:08]CAPDU: 80 11 00 00 [17:09:08]Write to MH i2c: E2 08 00 F6 45 80 11 00 00 00 00 00 00 B5 [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 17 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 17 00 F6 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [17:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:09:08]wFMCommunicate OK [17:09:08]CreateOFDProtocolMessage done [17:09:08]OFDSenderStorePacket 73945 [17:09:08]StoreOFDPacket docnum=73945 [17:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 5E AA 04 01 5C 94 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 20 01 00 35 04 06 00 37 41 81 D8 BA C9 53 B0 B1 12 EC 1B B3 26 [17:09:08]CheckFolder [17:09:08]dirname=/storage/ofd_packets [17:09:08]CheckFolder done [17:09:08]ProducePacketName [17:09:08]name=ofd_packets/00073945 [17:09:08]NVStorageSaveData ofd_packets/00073945 [17:09:08]File name is /storage/ofd_packets/00073945 [17:09:08]Write 298 bytes [17:09:08]NVStorageSaveData done [17:09:08]OFDSenderStorePacket done [17:09:08]KKMCreateOFDPacket done [17:09:08]NVStorageSaveData kkm_last_timestamp [17:09:08]File name is /storage/kkm_last_timestamp [17:09:08]Write 4 bytes [17:09:08]NVStorageSaveData done [17:09:08]ExternCall_PrintAddStr [17:09:08]wPrintStart [17:09:08]Write to MH i2c: 01 00 00 F7 45 3C [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 07 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 07 00 F7 45 00 00 00 00 00 FF 0F 51 [17:09:08]RasterBufferAndPrint [17:09:08]line Счет N : (1)1963157 [17:09:08]line ИНН: 02508201610067 [17:09:08]line Контрольно-Кассовый Чек [17:09:08]line ПРОДАЖА [17:09:08]line ТРК (МРК, ГНК) : 21 [17:09:08]line Товар: 2710194210 [17:09:08]line ДТ-К-5 [17:09:08]line 132.980 * 75.20 [17:09:08]line = 10000.10 [17:09:08]line НДС 12% НСП 1% [17:09:08]line > о реализуемом товаре [17:09:08]line ОКРУГЛЕНИЕ: -0.10 [17:09:08]line ИТОГО: 10000.00 [17:09:08]line Внесено: 10000.00 [17:09:08]line СДАЧА: 0.00 [17:09:08]line НСП 1% : 88.50 [17:09:08]line НДС 12% : 1061.96 [17:09:08]line Наличными: 10000.00 [17:09:08]line Безнал.: 0.00 [17:09:08]line Место: АЗС № 133 "Партнер Нефть" [17:09:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:09:08]line СНО: Общий режим [17:09:08]line Чек 271 20.10.2024 17:09 [17:09:08]line Смена: 170 ФФД: 1.0 [17:09:08]line ЗНМ: 0300000020 [17:09:08]line РНМ: 0000000000161154 [17:09:08]line Версия ККМ: v1.0 [17:09:08]line [17:09:08]line Дисконтная программа [17:09:08]line ДТ [17:09:08]line номер 133 [17:09:08]line сэкономлено 132.98 сом [17:09:08]line ФМ: 0000000000963323 [17:09:08]line ФД: 73945 [17:09:08]line ФПД: 60754490866377 [17:09:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170909&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73945&fm=60754490866377&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:09:08]OFD Sender: Processing packet 73945 [packets to send 15, broken 14] [17:09:08]ProducePacketName [17:09:08]name=ofd_packets/00073945 [17:09:08]OFD Sender: To server: pG, [17:09:08]CommunicateWithHost lk.salyk.kg:30040 [17:09:08]ConnectInit lk.salyk.kg [17:09:08]written 0, free lines is 4095 [17:09:08]Connected sock=10 [17:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 5E AA 04 01 5C 94 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 20 01 00 35 04 06 00 37 41 81 D8 BA C9 53 B0 B1 12 EC 1B B3 26 [17:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 75 47 00 D0 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 39 36 33 33 32 33 10 04 04 00 D9 20 01 00 F4 03 04 00 19 E2 14 67 B6 04 01 00 00 60 23 35 E6 A0 5B ED 05 [17:09:08]CommunicateWithHost err = 0 [17:09:08]CheckOFDResponse [17:09:08]1017 (14) - 77093643461234 [17:09:08]1041 (16) - 0000000000963323 [17:09:08]1040 (4) - 73945 [17:09:08]1012 (4) - 20.10.2024 10:57 [17:09:08]1206 (1) - 0 [17:09:08]OFD Sender: Remove packet 73945 [17:09:08]ProducePacketName [17:09:08]name=ofd_packets/00073945 [17:09:08]NVStorageDeleteData [17:09:09]Write to MH i2c: 01 00 00 26 46 6C [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 26 46 00 00 00 00 00 54 0C D3 [17:09:09]RasterBufferAndPrint [17:09:09]line [17:09:09]line [17:09:09]line [17:09:09]line [17:09:09]line [17:09:09]written 0, free lines is 3160 [17:09:09]MH_Cut [17:09:09]Write to MH i2c: D1 01 00 2D 46 01 45 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: D1 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: D1 01 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: D1 01 00 2D 46 00 44 [17:09:09]Write to MH i2c: 01 00 00 2E 46 74 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]OFD Sender: No OFD packet to send [17:09:10]*** Cut start [17:09:10]*** Partial cut [17:09:10]*** CUTSNS_PIN = 1 [17:09:10]*** CUTSNS_PIN = 0 [17:09:10]*** Brake cut motor [17:09:10]Read from MH i2c: 01 [17:09:10]MH_I2C_Read... [17:09:10]*** Stop cut motor [17:09:10]*** Cut end [17:09:10]Read from MH i2c: 01 07 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 07 00 2E 46 00 00 00 00 00 FF 0F 89 [17:09:10]process_action close_receipt done [17:09:10]requested_data is exist [17:09:10]produce_requested_data [17:09:10]requested_item fm.sn is exist - process it [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 11 00 00 [17:09:10]Write to MH i2c: E2 08 00 2F 46 80 11 00 00 00 00 00 00 EF [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 2F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [17:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:09:10]wFMCommunicate OK [17:09:10]requested_item fd.num is exist - process it [17:09:10]SAM_PROTO_GetFieldsCounters [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 13 00 00 [17:09:10]Write to MH i2c: E2 08 00 30 46 80 13 00 00 00 00 00 00 F2 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 62 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 62 00 30 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:09:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_GetFieldsCounters done [17:09:10]requested_item shift.num is exist - process it [17:09:10]requested_item shift.opened is exist - process it [17:09:10]req_shift_opened [17:09:10]FM_GetShiftState [17:09:10]SAM_PROTO_GetShiftState [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 13 01 00 [17:09:10]Write to MH i2c: E2 08 00 31 46 80 13 01 00 00 00 00 00 F4 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0E 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0E 00 31 46 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 39 [17:09:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_GetShiftState done [17:09:10]FM_GetShiftState done [17:09:10]req_shift_opened done [17:09:10]requested_item shift.open_date is exist - process it [17:09:10]req_shift_open_date [17:09:10]req_shift_open_date done [17:09:10]produce_requested_data done [17:09:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73945,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:09:10]process_action_free close_receipt [17:09:10]json_value_free [17:09:10]json_value_free done [17:09:10]process_json_proto returns [17:09:10]Send response to host [17:09:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73945,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:09:10]free response buf [17:09:10]execute_script done [17:09:10]execute_script returns [17:09:10]free content buf [17:09:10]Sock 9.Close socket [17:09:10]Sock 9.Thread stoped [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:35]accept exits with 8 [17:09:35]New connection [17:09:35]New thread 3067575652 created [17:09:35]Thread 3067432292 joined [17:09:35]Waiting for new connection... [17:09:35] Sock 8.Parse request [17:09:35]Sock 8.Check first char [17:09:35]Sock 8.First char is OK [17:09:35]request: POST /json_proto HTTP/1.0 [17:09:35]Method: POST [17:09:35]URL: /json_proto [17:09:35]Method is POST - this is cgi request [17:09:35]url: /json_proto [17:09:35]query_string will be loaded in cgi processing [17:09:35]execute_cgi json_proto POST (null) [17:09:35]execute_cgi path=json_proto method=POST [17:09:35]POST find Content-Length [17:09:35]Host: 172.17.44.196:8080 [17:09:35]Content-Length: 985 [17:09:35]Content-Type: application/json [17:09:35] [17:09:35]POST finish read [17:09:35]Found Content-Length = 985 [17:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:35]execute_script... [17:09:35]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)1963159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:35]POST & json_proto [17:09:35]process_json_proto [17:09:35]json parsed OK: [17:09:35]protocol is kg_v1.0 [17:09:35]action value=close_receipt [17:09:35]process_action close_receipt [17:09:35]cmd_close_receipt [17:09:35]MH_GetDate [17:09:35]Write to MH i2c: F0 00 00 32 46 67 [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: F0 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: F0 09 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: F0 09 00 32 46 00 52 39 15 67 E7 19 F8 65 D4 [17:09:35]GetLastDocTimeStamp 1729444149 [17:09:35]current date 1729444178 [17:09:35]FM_GetShiftState [17:09:35]SAM_PROTO_GetShiftState [17:09:35]wFMCommunicate request_size=4 [17:09:35]MH_SAM_APDU [17:09:35]CAPDU: 80 13 01 00 [17:09:35]Write to MH i2c: E2 08 00 33 46 80 13 01 00 00 00 00 00 F6 [17:09:35]Write i2c OK [17:09:35]MH_I2C_Read... [17:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:35]Read from MH i2c: E2 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 0E 00 [17:09:35]MH_I2C_Read... [17:09:35]Read from MH i2c: E2 0E 00 33 46 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3B [17:09:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:09:35]wFMCommunicate OK [17:09:35]SAM_PROTO_GetShiftState done [17:09:35]FM_GetShiftState done [17:09:35]opened in 1729384303 [17:09:35]opened+sec_in_day 1729470703 [17:09:35]quantity*price = 1000009 [17:09:35]sum+1 = 1000011 [17:09:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.96 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 272 20.10.2024 17:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 132.98 сом ФМ: 0000000000963323 ФД: 73946 ФПД: 113455779235896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170938&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73946&fm=113455779235896&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:09:36]StoreToDocumentArchive [17:09:36]shift 170 fd 73946 [17:09:36]save to /storage/0170/doc_00073946 [17:09:36]save last doc name /storage/0170/doc_00073946 to /storage/kkm_last_doc_name [17:09:36]save OK [17:09:36]Clear old archive folders... [17:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:09:36]tlvbuf is 004B8AE0 [17:09:36]SAM_PROTO_ClearQueue [17:09:36]wFMCommunicate request_size=4 [17:09:36]MH_SAM_APDU [17:09:36]CAPDU: 80 09 00 00 [17:09:36]Write to MH i2c: E2 08 00 40 46 80 09 00 00 00 00 00 00 F8 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:36]Read from MH i2c: E2 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 03 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 03 00 40 46 00 90 00 FA [17:09:36]RAPDU: 90 00 [17:09:36]wFMCommunicate OK [17:09:36]SAM_PROTO_ClearQueue done [17:09:36]KKMCreateOFDPacket [17:09:36]OFDProtocolAddRootSTLVToBuf [17:09:36]FM_MakeSignedData [17:09:36]FM_MakeSignedData [17:09:36]SAM_PROTO_SignData [17:09:36]wFMCommunicate request_size=4 [17:09:36]MH_SAM_APDU [17:09:36]CAPDU: 80 0D 01 02 [17:09:36]Write to MH i2c: E2 08 00 41 46 80 0D 01 02 00 00 00 00 00 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:36]Read from MH i2c: E2 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 03 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 03 00 41 46 00 90 00 FB [17:09:36]RAPDU: 90 00 [17:09:36]wFMCommunicate OK [17:09:36]wFMCommunicate request_size=255 [17:09:36]MH_SAM_APDU [17:09:36]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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 52 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 20 01 00 35 04 06 00 67 2F FB 6B [17:09:36]Write to MH i2c: E2 02 01 42 46 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 52 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 20 01 00 35 04 06 00 67 2F FB 6B 00 00 E7 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:36]Read from MH i2c: E2 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 03 00 [17:09:36]MH_I2C_Read... [17:09:36]Read from MH i2c: E2 03 00 42 46 00 90 00 FC [17:09:36]RAPDU: 90 00 [17:09:36]wFMCommunicate OK [17:09:36]wFMCommunicate request_size=7 [17:09:36]MH_SAM_APDU [17:09:36]CAPDU: 80 0D 02 02 02 48 38 [17:09:36]Write to MH i2c: E2 0A 00 43 46 80 0D 02 02 02 00 48 38 00 00 87 [17:09:36]Write i2c OK [17:09:36]MH_I2C_Read... [17:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:37]Read from MH i2c: E2 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 03 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 03 00 43 46 00 90 00 FD [17:09:37]RAPDU: 90 00 [17:09:37]wFMCommunicate OK [17:09:37]wFMCommunicate request_size=4 [17:09:37]MH_SAM_APDU [17:09:37]CAPDU: 80 0D 03 02 [17:09:37]Write to MH i2c: E2 08 00 44 46 80 0D 03 02 00 00 00 00 05 [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:37]Read from MH i2c: E2 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 0B 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 0B 00 44 46 00 6C CC 1A DB 8D 9D BA E7 90 00 FE [17:09:37]RAPDU: 6C CC 1A DB 8D 9D BA E7 90 00 [17:09:37]wFMCommunicate OK [17:09:37]SAM_PROTO_SignData done [17:09:37]FM_MakeSignedData done [17:09:37]CreateOFDProtocolMessage [17:09:37]wFMCommunicate request_size=4 [17:09:37]MH_SAM_APDU [17:09:37]CAPDU: 80 11 00 00 [17:09:37]Write to MH i2c: E2 08 00 45 46 80 11 00 00 00 00 00 00 05 [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:37]Read from MH i2c: E2 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 17 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 17 00 45 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 52 [17:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:09:37]wFMCommunicate OK [17:09:37]CreateOFDProtocolMessage done [17:09:37]OFDSenderStorePacket 73946 [17:09:37]StoreOFDPacket docnum=73946 [17:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 29 88 04 01 96 1C 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 52 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 20 01 00 35 04 06 00 67 2F FB 6B 48 38 6C CC 1A DB 8D 9D BA E7 [17:09:37]CheckFolder [17:09:37]dirname=/storage/ofd_packets [17:09:37]CheckFolder done [17:09:37]ProducePacketName [17:09:37]name=ofd_packets/00073946 [17:09:37]NVStorageSaveData ofd_packets/00073946 [17:09:37]File name is /storage/ofd_packets/00073946 [17:09:37]Write 298 bytes [17:09:37]NVStorageSaveData done [17:09:37]OFDSenderStorePacket done [17:09:37]KKMCreateOFDPacket done [17:09:37]NVStorageSaveData kkm_last_timestamp [17:09:37]File name is /storage/kkm_last_timestamp [17:09:37]Write 4 bytes [17:09:37]NVStorageSaveData done [17:09:37]ExternCall_PrintAddStr [17:09:37]wPrintStart [17:09:37]Write to MH i2c: 01 00 00 46 46 8C [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: 01 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: 01 07 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: 01 07 00 46 46 00 00 00 00 00 FF 0F A1 [17:09:37]RasterBufferAndPrint [17:09:37]line Счет N : (1)1963159 [17:09:37]line ИНН: 02508201610067 [17:09:37]line Контрольно-Кассовый Чек [17:09:37]line ПРОДАЖА [17:09:37]line ТРК (МРК, ГНК) : 11 [17:09:37]line Товар: 2710194210 [17:09:37]line ДТ-К-5 [17:09:37]line 132.980 * 75.20 [17:09:37]line = 10000.10 [17:09:37]line НДС 12% НСП 1% [17:09:37]line > о реализуемом товаре [17:09:37]line ОКРУГЛЕНИЕ: -0.10 [17:09:37]line ИТОГО: 10000.00 [17:09:37]line Внесено: 10000.00 [17:09:37]line СДАЧА: 0.00 [17:09:37]line НСП 1% : 88.50 [17:09:37]line НДС 12% : 1061.96 [17:09:37]line Наличными: 10000.00 [17:09:37]line Безнал.: 0.00 [17:09:37]line Место: АЗС № 133 "Партнер Нефть" [17:09:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:09:37]line СНО: Общий режим [17:09:37]line Чек 272 20.10.2024 17:09 [17:09:37]line Смена: 170 ФФД: 1.0 [17:09:37]line ЗНМ: 0300000020 [17:09:37]line РНМ: 0000000000161154 [17:09:37]line Версия ККМ: v1.0 [17:09:37]line [17:09:37]line Дисконтная программа [17:09:37]line ДТ [17:09:37]line номер 133 [17:09:37]line сэкономлено 132.98 сом [17:09:37]line ФМ: 0000000000963323 [17:09:37]line ФД: 73946 [17:09:37]line ФПД: 113455779235896 [17:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170938&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73946&fm=113455779235896&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:09:37]OFD Sender: Processing packet 73946 [packets to send 15, broken 14] [17:09:37]ProducePacketName [17:09:37]name=ofd_packets/00073946 [17:09:37]OFD Sender: To server: pG, [17:09:37]CommunicateWithHost lk.salyk.kg:30040 [17:09:37]ConnectInit lk.salyk.kg [17:09:37]written 0, free lines is 4095 [17:09:37]Connected sock=10 [17:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 29 88 04 01 96 1C 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 52 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 20 01 00 35 04 06 00 67 2F FB 6B 48 38 6C CC 1A DB 8D 9D BA E7 [17:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 68 EE 47 00 80 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 39 36 33 33 32 33 10 04 04 00 DA 20 01 00 F4 03 04 00 36 E2 14 67 B6 04 01 00 00 21 35 64 35 13 79 05 F3 [17:09:37]CommunicateWithHost err = 0 [17:09:37]CheckOFDResponse [17:09:37]1017 (14) - 77093643461234 [17:09:37]1041 (16) - 0000000000963323 [17:09:37]1040 (4) - 73946 [17:09:37]1012 (4) - 20.10.2024 10:57 [17:09:37]1206 (1) - 0 [17:09:37]OFD Sender: Remove packet 73946 [17:09:37]ProducePacketName [17:09:37]name=ofd_packets/00073946 [17:09:37]NVStorageDeleteData [17:09:37]Write to MH i2c: 01 00 00 75 46 BB [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: 01 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: 01 07 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: 01 07 00 75 46 00 00 00 00 00 4C 0C 1A [17:09:37]RasterBufferAndPrint [17:09:37]line [17:09:37]line [17:09:37]line [17:09:37]line [17:09:37]line [17:09:37]written 0, free lines is 3153 [17:09:37]MH_Cut [17:09:37]Write to MH i2c: D1 01 00 7C 46 01 94 [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: D1 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: D1 01 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: D1 01 00 7C 46 00 93 [17:09:37]Write to MH i2c: 01 00 00 7D 46 C3 [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:38]OFD Sender: No OFD packet to send [17:09:38]*** Cut start [17:09:38]*** Partial cut [17:09:38]*** CUTSNS_PIN = 1 [17:09:38]*** CUTSNS_PIN = 0 [17:09:39]*** Brake cut motor [17:09:39]Read from MH i2c: 01 [17:09:39]MH_I2C_Read... [17:09:39]*** Stop cut motor [17:09:39]*** Cut end [17:09:39]Read from MH i2c: 01 07 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 07 00 7D 46 00 00 00 00 00 FF 0F D8 [17:09:39]process_action close_receipt done [17:09:39]requested_data is exist [17:09:39]produce_requested_data [17:09:39]requested_item fm.sn is exist - process it [17:09:39]wFMCommunicate request_size=4 [17:09:39]MH_SAM_APDU [17:09:39]CAPDU: 80 11 00 00 [17:09:39]Write to MH i2c: E2 08 00 7E 46 80 11 00 00 00 00 00 00 3E [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:39]Read from MH i2c: E2 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: E2 17 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: E2 17 00 7E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8B [17:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:09:39]wFMCommunicate OK [17:09:39]requested_item fd.num is exist - process it [17:09:39]SAM_PROTO_GetFieldsCounters [17:09:39]wFMCommunicate request_size=4 [17:09:39]MH_SAM_APDU [17:09:39]CAPDU: 80 13 00 00 [17:09:39]Write to MH i2c: E2 08 00 7F 46 80 13 00 00 00 00 00 00 41 [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:39]Read from MH i2c: E2 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: E2 62 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: E2 62 00 7F 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:09:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:39]wFMCommunicate OK [17:09:39]SAM_PROTO_GetFieldsCounters done [17:09:39]requested_item shift.num is exist - process it [17:09:39]requested_item shift.opened is exist - process it [17:09:39]req_shift_opened [17:09:39]FM_GetShiftState [17:09:39]SAM_PROTO_GetShiftState [17:09:39]wFMCommunicate request_size=4 [17:09:39]MH_SAM_APDU [17:09:39]CAPDU: 80 13 01 00 [17:09:39]Write to MH i2c: E2 08 00 80 46 80 13 01 00 00 00 00 00 43 [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:39]Read from MH i2c: E2 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: E2 0E 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: E2 0E 00 80 46 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 88 [17:09:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:09:39]wFMCommunicate OK [17:09:39]SAM_PROTO_GetShiftState done [17:09:39]FM_GetShiftState done [17:09:39]req_shift_opened done [17:09:39]requested_item shift.open_date is exist - process it [17:09:39]req_shift_open_date [17:09:39]req_shift_open_date done [17:09:39]produce_requested_data done [17:09:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73946,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:09:39]process_action_free close_receipt [17:09:39]json_value_free [17:09:39]json_value_free done [17:09:39]process_json_proto returns [17:09:39]Send response to host [17:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73946,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:09:39]free response buf [17:09:39]execute_script done [17:09:39]execute_script returns [17:09:39]free content buf [17:09:39]Sock 8.Close socket [17:09:39]Sock 8.Thread stoped [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:49]accept exits with 9 [17:09:49]New connection [17:09:49]New thread 3067432292 created [17:09:49]Thread 3067575652 joined [17:09:49]Waiting for new connection... [17:09:49] Sock 9.Parse request [17:09:49]Sock 9.Check first char [17:09:49]Sock 9.First char is OK [17:09:49]request: POST /json_proto HTTP/1.0 [17:09:49]Method: POST [17:09:49]URL: /json_proto [17:09:49]Method is POST - this is cgi request [17:09:49]url: /json_proto [17:09:49]query_string will be loaded in cgi processing [17:09:49]execute_cgi json_proto POST (null) [17:09:49]execute_cgi path=json_proto method=POST [17:09:49]POST find Content-Length [17:09:49]Host: 172.17.44.196:8080 [17:09:49]Content-Length: 659 [17:09:49]Content-Type: application/json [17:09:49] [17:09:49]POST finish read [17:09:49]Found Content-Length = 659 [17:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [17:09:49]execute_script... [17:09: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)1963158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [17:09:49]POST & json_proto [17:09:49]process_json_proto [17:09:49]json parsed OK: [17:09:49]protocol is kg_v1.0 [17:09:49]action value=close_receipt [17:09:49]process_action close_receipt [17:09:49]cmd_close_receipt [17:09:49]MH_GetDate [17:09:49]Write to MH i2c: F0 00 00 81 46 B6 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: F0 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: F0 09 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: F0 09 00 81 46 00 60 39 15 67 E7 19 F8 65 31 [17:09:49]GetLastDocTimeStamp 1729444178 [17:09:49]current date 1729444192 [17:09:49]FM_GetShiftState [17:09:49]SAM_PROTO_GetShiftState [17:09:49]wFMCommunicate request_size=4 [17:09:49]MH_SAM_APDU [17:09:49]CAPDU: 80 13 01 00 [17:09:49]Write to MH i2c: E2 08 00 82 46 80 13 01 00 00 00 00 00 45 [17:09:49]Write i2c OK [17:09:49]MH_I2C_Read... [17:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:49]Read from MH i2c: E2 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 0E 00 [17:09:49]MH_I2C_Read... [17:09:49]Read from MH i2c: E2 0E 00 82 46 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8A [17:09:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:09:49]wFMCommunicate OK [17:09:49]SAM_PROTO_GetShiftState done [17:09:49]FM_GetShiftState done [17:09:49]opened in 1729384303 [17:09:49]opened+sec_in_day 1729470703 [17:09:49]quantity*price = 20041 [17:09:49]sum+1 = 20042 [17:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 273 20.10.2024 17:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73947 ФПД: 86321236280809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170952&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73947&fm=86321236280809&tin=02508201610067®Number=0000000000161154&sum=20000 [17:09:51]StoreToDocumentArchive [17:09:51]shift 170 fd 73947 [17:09:51]save to /storage/0170/doc_00073947 [17:09:51]save last doc name /storage/0170/doc_00073947 to /storage/kkm_last_doc_name [17:09:51]save OK [17:09:51]Clear old archive folders... [17:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:09:51]tlvbuf is 0047FFB0 [17:09:51]SAM_PROTO_ClearQueue [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 09 00 00 [17:09:51]Write to MH i2c: E2 08 00 8F 46 80 09 00 00 00 00 00 00 47 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 8F 46 00 90 00 49 [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]SAM_PROTO_ClearQueue done [17:09:51]KKMCreateOFDPacket [17:09:51]OFDProtocolAddRootSTLVToBuf [17:09:51]FM_MakeSignedData [17:09:51]FM_MakeSignedData [17:09:51]SAM_PROTO_SignData [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 01 02 [17:09:51]Write to MH i2c: E2 08 00 90 46 80 0D 01 02 00 00 00 00 4F [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 90 46 00 90 00 4A [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]wFMCommunicate request_size=253 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 11 01 00 00 F4 03 04 00 60 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 20 01 00 35 04 06 00 4E 82 3A A0 05 E9 [17:09:51]Write to MH i2c: E2 00 01 91 46 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 11 01 00 00 F4 03 04 00 60 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 20 01 00 35 04 06 00 4E 82 3A A0 05 E9 00 00 2A [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 03 00 91 46 00 90 00 4B [17:09:51]RAPDU: 90 00 [17:09:51]wFMCommunicate OK [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 0D 03 02 [17:09:51]Write to MH i2c: E2 08 00 92 46 80 0D 03 02 00 00 00 00 53 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 0B 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 0B 00 92 46 00 C3 E6 C6 F9 34 5D 6A 05 90 00 BC [17:09:51]RAPDU: C3 E6 C6 F9 34 5D 6A 05 90 00 [17:09:51]wFMCommunicate OK [17:09:51]SAM_PROTO_SignData done [17:09:51]FM_MakeSignedData done [17:09:51]CreateOFDProtocolMessage [17:09:51]wFMCommunicate request_size=4 [17:09:51]MH_SAM_APDU [17:09:51]CAPDU: 80 11 00 00 [17:09:51]Write to MH i2c: E2 08 00 93 46 80 11 00 00 00 00 00 00 53 [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:51]Read from MH i2c: E2 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 17 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: E2 17 00 93 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A0 [17:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:09:51]wFMCommunicate OK [17:09:51]CreateOFDProtocolMessage done [17:09:51]OFDSenderStorePacket 73947 [17:09:51]StoreOFDPacket docnum=73947 [17:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 EF 37 00 01 1C 96 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 11 01 00 00 F4 03 04 00 60 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 20 01 00 35 04 06 00 4E 82 3A A0 05 E9 C3 E6 C6 F9 34 5D 6A 05 [17:09:51]CheckFolder [17:09:51]dirname=/storage/ofd_packets [17:09:51]CheckFolder done [17:09:51]ProducePacketName [17:09:51]name=ofd_packets/00073947 [17:09:51]NVStorageSaveData ofd_packets/00073947 [17:09:51]File name is /storage/ofd_packets/00073947 [17:09:51]Write 294 bytes [17:09:51]NVStorageSaveData done [17:09:51]OFDSenderStorePacket done [17:09:51]KKMCreateOFDPacket done [17:09:51]NVStorageSaveData kkm_last_timestamp [17:09:51]File name is /storage/kkm_last_timestamp [17:09:51]Write 4 bytes [17:09:51]NVStorageSaveData done [17:09:51]ExternCall_PrintAddStr [17:09:51]wPrintStart [17:09:51]Write to MH i2c: 01 00 00 94 46 DA [17:09:51]Write i2c OK [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: 01 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: 01 07 00 [17:09:51]MH_I2C_Read... [17:09:51]Read from MH i2c: 01 07 00 94 46 00 00 00 00 00 FF 0F EF [17:09:51]RasterBufferAndPrint [17:09:51]line Счет N : (1)1963158 [17:09:51]line ИНН: 02508201610067 [17:09:51]line Контрольно-Кассовый Чек [17:09:51]line ПРОДАЖА [17:09:51]line ТРК (МРК, ГНК) : 52 [17:09:51]line Товар: 2710124130 [17:09:51]line SU-92 [17:09:51]line 2.930 * 68.40 [17:09:51]line = 200.41 [17:09:51]line НДС 12% НСП 1% [17:09:51]line > о реализуемом товаре [17:09:51]line ОКРУГЛЕНИЕ: -0.41 [17:09:51]line ИТОГО: 200.00 [17:09:51]line Внесено: 200.00 [17:09:51]line СДАЧА: 0.00 [17:09:51]line НСП 1% : 1.77 [17:09:51]line НДС 12% : 21.28 [17:09:51]line Наличными: 200.00 [17:09:51]line Безнал.: 0.00 [17:09:51]line Место: АЗС № 133 "Партнер Нефть" [17:09:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:09:51]line СНО: Общий режим [17:09:51]line Чек 273 20.10.2024 17:09 [17:09:51]line Смена: 170 ФФД: 1.0 [17:09:51]line ЗНМ: 0300000020 [17:09:51]line РНМ: 0000000000161154 [17:09:51]line Версия ККМ: v1.0 [17:09:51]line ФМ: 0000000000963323 [17:09:51]line ФД: 73947 [17:09:51]line ФПД: 86321236280809 [17:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170952&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73947&fm=86321236280809&tin=02508201610067®Number=0000000000161154&sum=20000 [17:09:51]OFD Sender: Processing packet 73947 [packets to send 15, broken 14] [17:09:51]ProducePacketName [17:09:51]name=ofd_packets/00073947 [17:09:51]OFD Sender: To server: pG, [17:09:51]CommunicateWithHost lk.salyk.kg:30040 [17:09:51]ConnectInit lk.salyk.kg [17:09:51]written 0, free lines is 4095 [17:09:51]Connected sock=10 [17:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 EF 37 00 01 1C 96 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 11 01 00 00 F4 03 04 00 60 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 20 01 00 35 04 06 00 4E 82 3A A0 05 E9 C3 E6 C6 F9 34 5D 6A 05 [17:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2F A0 47 00 D5 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 39 36 33 33 32 33 10 04 04 00 DB 20 01 00 F4 03 04 00 44 E2 14 67 B6 04 01 00 00 71 39 1B B5 B3 7E 2A 22 [17:09:52]CommunicateWithHost err = 0 [17:09:52]CheckOFDResponse [17:09:52]1017 (14) - 77093643461234 [17:09:52]1041 (16) - 0000000000963323 [17:09:52]1040 (4) - 73947 [17:09:52]1012 (4) - 20.10.2024 10:58 [17:09:52]1206 (1) - 0 [17:09:52]OFD Sender: Remove packet 73947 [17:09:52]ProducePacketName [17:09:52]name=ofd_packets/00073947 [17:09:52]NVStorageDeleteData [17:09:52]Write to MH i2c: 01 00 00 BE 46 04 [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: 01 07 00 BE 46 00 00 00 00 00 B8 0C CF [17:09:52]RasterBufferAndPrint [17:09:52]line [17:09:52]line [17:09:52]line [17:09:52]line [17:09:52]line [17:09:52]written 0, free lines is 3262 [17:09:52]MH_Cut [17:09:52]Write to MH i2c: D1 01 00 C5 46 01 DD [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: D1 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: D1 01 00 [17:09:52]MH_I2C_Read... [17:09:52]Read from MH i2c: D1 01 00 C5 46 00 DC [17:09:52]Write to MH i2c: 01 00 00 C6 46 0C [17:09:52]Write i2c OK [17:09:52]MH_I2C_Read... [17:09:52]OFD Sender: No OFD packet to send [17:09:53]*** Cut start [17:09:53]*** Partial cut [17:09:53]*** CUTSNS_PIN = 1 [17:09:53]*** CUTSNS_PIN = 0 [17:09:53]*** Brake cut motor [17:09:53]Read from MH i2c: 01 [17:09:53]MH_I2C_Read... [17:09:53]*** Stop cut motor [17:09:53]*** Cut end [17:09:53]Read from MH i2c: 01 07 00 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: 01 07 00 C6 46 00 00 00 00 00 FF 0F 21 [17:09:53]process_action close_receipt done [17:09:53]requested_data is exist [17:09:53]produce_requested_data [17:09:53]requested_item fm.sn is exist - process it [17:09:53]wFMCommunicate request_size=4 [17:09:53]MH_SAM_APDU [17:09:53]CAPDU: 80 11 00 00 [17:09:53]Write to MH i2c: E2 08 00 C7 46 80 11 00 00 00 00 00 00 87 [17:09:53]Write i2c OK [17:09:53]MH_I2C_Read... [17:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:53]Read from MH i2c: E2 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 17 00 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 17 00 C7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [17:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:09:53]wFMCommunicate OK [17:09:53]requested_item fd.num is exist - process it [17:09:53]SAM_PROTO_GetFieldsCounters [17:09:53]wFMCommunicate request_size=4 [17:09:53]MH_SAM_APDU [17:09:53]CAPDU: 80 13 00 00 [17:09:53]Write to MH i2c: E2 08 00 C8 46 80 13 00 00 00 00 00 00 8A [17:09:53]Write i2c OK [17:09:53]MH_I2C_Read... [17:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:53]Read from MH i2c: E2 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 62 00 [17:09:53]MH_I2C_Read... [17:09:53]Read from MH i2c: E2 62 00 C8 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:54]wFMCommunicate OK [17:09:54]SAM_PROTO_GetFieldsCounters done [17:09:54]requested_item shift.num is exist - process it [17:09:54]requested_item shift.opened is exist - process it [17:09:54]req_shift_opened [17:09:54]FM_GetShiftState [17:09:54]SAM_PROTO_GetShiftState [17:09:54]wFMCommunicate request_size=4 [17:09:54]MH_SAM_APDU [17:09:54]CAPDU: 80 13 01 00 [17:09:54]Write to MH i2c: E2 08 00 C9 46 80 13 01 00 00 00 00 00 8C [17:09:54]Write i2c OK [17:09:54]MH_I2C_Read... [17:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:54]Read from MH i2c: E2 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: E2 0E 00 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: E2 0E 00 C9 46 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D1 [17:09:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:09:54]wFMCommunicate OK [17:09:54]SAM_PROTO_GetShiftState done [17:09:54]FM_GetShiftState done [17:09:54]req_shift_opened done [17:09:54]requested_item shift.open_date is exist - process it [17:09:54]req_shift_open_date [17:09:54]req_shift_open_date done [17:09:54]produce_requested_data done [17:09:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73947,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:09:54]process_action_free close_receipt [17:09:54]json_value_free [17:09:54]json_value_free done [17:09:54]process_json_proto returns [17:09:54]Send response to host [17:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73947,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:09:54]free response buf [17:09:54]execute_script done [17:09:54]execute_script returns [17:09:54]free content buf [17:09:54]Sock 9.Close socket [17:09:54]Sock 9.Thread stoped [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:15]accept exits with 8 [17:12:15]New connection [17:12:15]New thread 3067575652 created [17:12:15]Thread 3067432292 joined [17:12:15]Waiting for new connection... [17:12:15] Sock 8.Parse request [17:12:15]Sock 8.Check first char [17:12:15]Sock 8.First char is OK [17:12:15]request: POST /json_proto HTTP/1.0 [17:12:15]Method: POST [17:12:15]URL: /json_proto [17:12:15]Method is POST - this is cgi request [17:12:15]url: /json_proto [17:12:15]query_string will be loaded in cgi processing [17:12:15]execute_cgi json_proto POST (null) [17:12:15]execute_cgi path=json_proto method=POST [17:12:15]POST find Content-Length [17:12:15]Host: 172.17.44.196:8080 [17:12:15]Content-Length: 678 [17:12:15]Content-Type: application/json [17:12:15] [17:12:15]POST finish read [17:12:15]Found Content-Length = 678 [17:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963160", "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" : 7.480, "sum" : 500.41, "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" ] } } [17:12:15]execute_script... [17:12:15]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)1963160", "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" : 7.480, "sum" : 500.41, "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" ] } } [17:12:15]POST & json_proto [17:12:15]process_json_proto [17:12:15]json parsed OK: [17:12:15]protocol is kg_v1.0 [17:12:15]action value=close_receipt [17:12:15]process_action close_receipt [17:12:15]cmd_close_receipt [17:12:15]MH_GetDate [17:12:15]Write to MH i2c: F0 00 00 CA 46 FF [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: F0 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: F0 09 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: F0 09 00 CA 46 00 F1 39 15 67 E7 19 F8 65 0B [17:12:15]GetLastDocTimeStamp 1729444192 [17:12:15]current date 1729444337 [17:12:15]FM_GetShiftState [17:12:15]SAM_PROTO_GetShiftState [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 13 01 00 [17:12:15]Write to MH i2c: E2 08 00 CB 46 80 13 01 00 00 00 00 00 8E [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 0E 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 0E 00 CB 46 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D3 [17:12:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:12:15]wFMCommunicate OK [17:12:15]SAM_PROTO_GetShiftState done [17:12:15]FM_GetShiftState done [17:12:15]opened in 1729384303 [17:12:15]opened+sec_in_day 1729470703 [17:12:15]quantity*price = 50041 [17:12:15]sum+1 = 50042 [17:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 274 20.10.2024 17:12 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73948 ФПД: 63745720673231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171217&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73948&fm=63745720673231&tin=02508201610067®Number=0000000000161154&sum=50000 [17:12:16]StoreToDocumentArchive [17:12:16]shift 170 fd 73948 [17:12:16]save to /storage/0170/doc_00073948 [17:12:16]save last doc name /storage/0170/doc_00073948 to /storage/kkm_last_doc_name [17:12:16]save OK [17:12:16]Clear old archive folders... [17:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:16]tlvbuf is B6E40110 [17:12:16]SAM_PROTO_ClearQueue [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 09 00 00 [17:12:16]Write to MH i2c: E2 08 00 D8 46 80 09 00 00 00 00 00 00 90 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 D8 46 00 90 00 92 [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]SAM_PROTO_ClearQueue done [17:12:16]KKMCreateOFDPacket [17:12:16]OFDProtocolAddRootSTLVToBuf [17:12:16]FM_MakeSignedData [17:12:16]FM_MakeSignedData [17:12:16]SAM_PROTO_SignData [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 01 02 [17:12:16]Write to MH i2c: E2 08 00 D9 46 80 0D 01 02 00 00 00 00 98 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 D9 46 00 90 00 93 [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=255 [17:12:16]MH_SAM_APDU [17:12:16]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 12 01 00 00 F4 03 04 00 F1 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 20 01 00 35 04 06 00 39 [17:12:16]Write to MH i2c: E2 02 01 DA 46 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 12 01 00 00 F4 03 04 00 F1 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 20 01 00 35 04 06 00 39 00 00 B3 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 DA 46 00 90 00 94 [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=10 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 02 02 05 F9 F5 09 63 CF [17:12:16]Write to MH i2c: E2 0D 00 DB 46 80 0D 02 02 05 00 F9 F5 09 63 CF 00 00 CE [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 DB 46 00 90 00 95 [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 03 02 [17:12:16]Write to MH i2c: E2 08 00 DC 46 80 0D 03 02 00 00 00 00 9D [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 0B 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 0B 00 DC 46 00 55 E2 ED 6E 5F 03 2C 61 90 00 1F [17:12:16]RAPDU: 55 E2 ED 6E 5F 03 2C 61 90 00 [17:12:16]wFMCommunicate OK [17:12:16]SAM_PROTO_SignData done [17:12:16]FM_MakeSignedData done [17:12:16]CreateOFDProtocolMessage [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 11 00 00 [17:12:16]Write to MH i2c: E2 08 00 DD 46 80 11 00 00 00 00 00 00 9D [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 17 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 17 00 DD 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EA [17:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:12:16]wFMCommunicate OK [17:12:16]CreateOFDProtocolMessage done [17:12:16]OFDSenderStorePacket 73948 [17:12:16]StoreOFDPacket docnum=73948 [17:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 25 7E 07 01 6C 3C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 12 01 00 00 F4 03 04 00 F1 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 20 01 00 35 04 06 00 39 F9 F5 09 63 CF 55 E2 ED 6E 5F 03 2C 61 [17:12:16]CheckFolder [17:12:16]dirname=/storage/ofd_packets [17:12:16]CheckFolder done [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00073948 [17:12:16]NVStorageSaveData ofd_packets/00073948 [17:12:16]File name is /storage/ofd_packets/00073948 [17:12:16]Write 301 bytes [17:12:16]NVStorageSaveData done [17:12:16]OFDSenderStorePacket done [17:12:16]KKMCreateOFDPacket done [17:12:16]NVStorageSaveData kkm_last_timestamp [17:12:16]File name is /storage/kkm_last_timestamp [17:12:16]Write 4 bytes [17:12:16]NVStorageSaveData done [17:12:16]ExternCall_PrintAddStr [17:12:16]wPrintStart [17:12:16]Write to MH i2c: 01 00 00 DE 46 24 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 DE 46 00 00 00 00 00 FF 0F 39 [17:12:16]RasterBufferAndPrint [17:12:16]line Счет N : (1)1963160 [17:12:16]line ИНН: 02508201610067 [17:12:16]line Контрольно-Кассовый Чек [17:12:16]line ПРОДАЖА [17:12:16]line ТРК (МРК, ГНК) : 53 [17:12:16]line Товар: 2710124130 [17:12:16]line Аи-92-К-5 [17:12:16]line 7.480 * 66.90 [17:12:16]line = 500.41 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line ОКРУГЛЕНИЕ: -0.41 [17:12:16]line ИТОГО: 500.00 [17:12:16]line Внесено: 500.00 [17:12:16]line СДАЧА: 0.00 [17:12:16]line НСП 1% : 4.43 [17:12:16]line НДС 12% : 53.14 [17:12:16]line Наличными: 500.00 [17:12:16]line Безнал.: 0.00 [17:12:16]line Место: АЗС № 133 "Партнер Нефть" [17:12:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:12:16]line СНО: Общий режим [17:12:16]line Чек 274 20.10.2024 17:12 [17:12:16]line Смена: 170 ФФД: 1.0 [17:12:16]line ЗНМ: 0300000020 [17:12:16]line РНМ: 0000000000161154 [17:12:16]line Версия ККМ: v1.0 [17:12:16]line ФМ: 0000000000963323 [17:12:16]line ФД: 73948 [17:12:16]line ФПД: 63745720673231 [17:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171217&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73948&fm=63745720673231&tin=02508201610067®Number=0000000000161154&sum=50000 [17:12:17]OFD Sender: Processing packet 73948 [packets to send 15, broken 14] [17:12:17]ProducePacketName [17:12:17]name=ofd_packets/00073948 [17:12:17]OFD Sender: To server: pG, [17:12:17]CommunicateWithHost lk.salyk.kg:30040 [17:12:17]ConnectInit lk.salyk.kg [17:12:17]written 0, free lines is 4095 [17:12:17]Connected sock=10 [17:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 25 7E 07 01 6C 3C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 12 01 00 00 F4 03 04 00 F1 39 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 20 01 00 35 04 06 00 39 F9 F5 09 63 CF 55 E2 ED 6E 5F 03 2C 61 [17:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D3 AF 47 00 C8 C6 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 39 36 33 33 32 33 10 04 04 00 DC 20 01 00 F4 03 04 00 D5 E2 14 67 B6 04 01 00 00 05 5D 3C 66 7E 6C 7E C9 [17:12:17]CommunicateWithHost err = 0 [17:12:17]CheckOFDResponse [17:12:17]1017 (14) - 77093643461234 [17:12:17]1041 (16) - 0000000000963323 [17:12:17]1040 (4) - 73948 [17:12:17]1012 (4) - 20.10.2024 11:00 [17:12:17]1206 (1) - 0 [17:12:17]OFD Sender: Remove packet 73948 [17:12:17]ProducePacketName [17:12:17]name=ofd_packets/00073948 [17:12:17]NVStorageDeleteData [17:12:17]Write to MH i2c: 01 00 00 08 47 4F [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 07 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 07 00 08 47 00 00 00 00 00 AB 0C 0D [17:12:17]RasterBufferAndPrint [17:12:17]line [17:12:17]line [17:12:17]line [17:12:17]line [17:12:17]line [17:12:17]written 0, free lines is 3248 [17:12:17]MH_Cut [17:12:17]Write to MH i2c: D1 01 00 0F 47 01 28 [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: D1 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: D1 01 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: D1 01 00 0F 47 00 27 [17:12:17]Write to MH i2c: 01 00 00 10 47 57 [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]OFD Sender: No OFD packet to send [17:12:18]*** Cut start [17:12:18]*** Partial cut [17:12:18]*** CUTSNS_PIN = 1 [17:12:18]*** CUTSNS_PIN = 0 [17:12:18]*** Brake cut motor [17:12:18]Read from MH i2c: 01 [17:12:18]MH_I2C_Read... [17:12:18]*** Stop cut motor [17:12:18]*** Cut end [17:12:18]Read from MH i2c: 01 07 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: 01 07 00 10 47 00 00 00 00 00 FF 0F 6C [17:12:18]process_action close_receipt done [17:12:18]requested_data is exist [17:12:18]produce_requested_data [17:12:18]requested_item fm.sn is exist - process it [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 11 00 00 [17:12:18]Write to MH i2c: E2 08 00 11 47 80 11 00 00 00 00 00 00 D2 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 17 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 17 00 11 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1F [17:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:12:19]wFMCommunicate OK [17:12:19]requested_item fd.num is exist - process it [17:12:19]SAM_PROTO_GetFieldsCounters [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 13 00 00 [17:12:19]Write to MH i2c: E2 08 00 12 47 80 13 00 00 00 00 00 00 D5 [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 62 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 62 00 12 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [17:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:19]wFMCommunicate OK [17:12:19]SAM_PROTO_GetFieldsCounters done [17:12:19]requested_item shift.num is exist - process it [17:12:19]requested_item shift.opened is exist - process it [17:12:19]req_shift_opened [17:12:19]FM_GetShiftState [17:12:19]SAM_PROTO_GetShiftState [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 13 01 00 [17:12:19]Write to MH i2c: E2 08 00 13 47 80 13 01 00 00 00 00 00 D7 [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 0E 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 0E 00 13 47 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1C [17:12:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:12:19]wFMCommunicate OK [17:12:19]SAM_PROTO_GetShiftState done [17:12:19]FM_GetShiftState done [17:12:19]req_shift_opened done [17:12:19]requested_item shift.open_date is exist - process it [17:12:19]req_shift_open_date [17:12:19]req_shift_open_date done [17:12:19]produce_requested_data done [17:12:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73948,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:12:19]process_action_free close_receipt [17:12:19]json_value_free [17:12:19]json_value_free done [17:12:19]process_json_proto returns [17:12:19]Send response to host [17:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73948,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:12:19]free response buf [17:12:19]execute_script done [17:12:19]execute_script returns [17:12:19]free content buf [17:12:19]Sock 8.Close socket [17:12:19]Sock 8.Thread stoped [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:14:58]accept exits with 9 [17:14:58]New connection [17:14:58]New thread 3067432292 created [17:14:58]Thread 3067575652 joined [17:14:58]Waiting for new connection... [17:14:58] Sock 9.Parse request [17:14:58]Sock 9.Check first char [17:14:58]Sock 9.First char is OK [17:14:58]request: POST /json_proto HTTP/1.0 [17:14:58]Method: POST [17:14:58]URL: /json_proto [17:14:58]Method is POST - this is cgi request [17:14:58]url: /json_proto [17:14:58]query_string will be loaded in cgi processing [17:14:58]execute_cgi json_proto POST (null) [17:14:58]execute_cgi path=json_proto method=POST [17:14:58]POST find Content-Length [17:14:58]Host: 172.17.44.196:8080 [17:14:58]Content-Length: 1041 [17:14:58]Content-Type: application/json [17:14:58] [17:14:58]POST finish read [17:14:58]Found Content-Length = 1041 [17:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 73945, "base_FM": "0000000000963323", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:58]execute_script... [17:14:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 73945, "base_FM": "0000000000963323", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:58]POST & json_proto [17:14:58]process_json_proto [17:14:58]json parsed OK: [17:14:58]protocol is kg_v1.0 [17:14:58]action value=close_receipt [17:14:58]process_action close_receipt [17:14:58]cmd_close_receipt [17:14:58]MH_GetDate [17:14:58]Write to MH i2c: F0 00 00 14 47 4A [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: F0 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: F0 09 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: F0 09 00 14 47 00 95 3A 15 67 E7 19 F8 65 FB [17:14:58]GetLastDocTimeStamp 1729444337 [17:14:58]current date 1729444501 [17:14:58]FM_GetShiftState [17:14:58]SAM_PROTO_GetShiftState [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 13 01 00 [17:14:58]Write to MH i2c: E2 08 00 15 47 80 13 01 00 00 00 00 00 D9 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0E 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0E 00 15 47 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1E [17:14:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:14:58]wFMCommunicate OK [17:14:58]SAM_PROTO_GetShiftState done [17:14:58]FM_GetShiftState done [17:14:58]opened in 1729384303 [17:14:58]opened+sec_in_day 1729470703 [17:14:58]quantity*price = 1000009 [17:14:58]sum+1 = 1000011 [17:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 10000.00 НСП 1% : 88.50 НДС 12% : 1061.96 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 275 20.10.2024 17:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФД осн.: 73945 ФМ осн.: 0000000000963323 Дисконтная программа ДТ номер 133 сэкономлено 132.98 сом ФМ: 0000000000963323 ФД: 73949 ФПД: 145705281185997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171501&type=2&operation_type=1&fn_number=0000000000963323&fd_number=73949&fm=145705281185997&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:15:00]StoreToDocumentArchive [17:15:00]shift 170 fd 73949 [17:15:00]save to /storage/0170/doc_00073949 [17:15:00]save last doc name /storage/0170/doc_00073949 to /storage/kkm_last_doc_name [17:15:00]save OK [17:15:00]Clear old archive folders... [17:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:15:00]tlvbuf is 00383190 [17:15:00]SAM_PROTO_ClearQueue [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 09 00 00 [17:15:00]Write to MH i2c: E2 08 00 24 47 80 09 00 00 00 00 00 00 DD [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 24 47 00 90 00 DF [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]SAM_PROTO_ClearQueue done [17:15:00]KKMCreateOFDPacket [17:15:00]OFDProtocolAddRootSTLVToBuf [17:15:00]FM_MakeSignedData [17:15:00]FM_MakeSignedData [17:15:00]SAM_PROTO_SignData [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 01 02 [17:15:00]Write to MH i2c: E2 08 00 25 47 80 0D 01 02 00 00 00 00 E5 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 25 47 00 90 00 E0 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]wFMCommunicate request_size=255 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 95 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 D9 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 [17:15:00]Write to MH i2c: E2 02 01 26 47 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 95 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 D9 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 00 00 08 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 26 47 00 90 00 E1 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]wFMCommunicate request_size=35 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 20 01 00 35 04 06 00 84 84 A7 86 E8 CD [17:15:00]Write to MH i2c: E2 26 00 27 47 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 20 01 00 35 04 06 00 84 84 A7 86 E8 CD 00 00 BD [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 27 47 00 90 00 E2 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 03 02 [17:15:00]Write to MH i2c: E2 08 00 28 47 80 0D 03 02 00 00 00 00 EA [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 0B 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 0B 00 28 47 00 E9 D6 17 75 BB 17 D3 1E 90 00 F9 [17:15:00]RAPDU: E9 D6 17 75 BB 17 D3 1E 90 00 [17:15:00]wFMCommunicate OK [17:15:00]SAM_PROTO_SignData done [17:15:00]FM_MakeSignedData done [17:15:00]CreateOFDProtocolMessage [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 11 00 00 [17:15:00]Write to MH i2c: E2 08 00 29 47 80 11 00 00 00 00 00 00 EA [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 17 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 17 00 29 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 37 [17:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:15:00]wFMCommunicate OK [17:15:00]CreateOFDProtocolMessage done [17:15:00]OFDSenderStorePacket 73949 [17:15:00]StoreOFDPacket docnum=73949 [17:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 3C 23 20 01 79 04 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 95 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 D9 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 20 01 00 35 04 06 00 84 84 A7 86 E8 CD E9 D6 17 75 BB 17 D3 1E [17:15:00]CheckFolder [17:15:00]dirname=/storage/ofd_packets [17:15:00]CheckFolder done [17:15:00]ProducePacketName [17:15:00]name=ofd_packets/00073949 [17:15:00]NVStorageSaveData ofd_packets/00073949 [17:15:00]File name is /storage/ofd_packets/00073949 [17:15:00]Write 326 bytes [17:15:00]NVStorageSaveData done [17:15:00]OFDSenderStorePacket done [17:15:00]KKMCreateOFDPacket done [17:15:00]NVStorageSaveData kkm_last_timestamp [17:15:00]File name is /storage/kkm_last_timestamp [17:15:00]Write 4 bytes [17:15:00]NVStorageSaveData done [17:15:00]ExternCall_PrintAddStr [17:15:00]wPrintStart [17:15:00]Write to MH i2c: 01 00 00 2A 47 71 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 07 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 07 00 2A 47 00 00 00 00 00 FF 0F 86 [17:15:00]RasterBufferAndPrint [17:15:00]line Счет N : (1)1963157 [17:15:00]line ИНН: 02508201610067 [17:15:00]line Контрольно-Кассовый Чек [17:15:00]line ВОЗВРАТ ПРОДАЖИ [17:15:00]line ТРК (МРК, ГНК) : 21 [17:15:00]line Товар: 2710194210 [17:15:00]line ДТ-К-5 [17:15:00]line 132.980 * 75.20 [17:15:00]line = 10000.10 [17:15:00]line НДС 12% НСП 1% [17:15:00]line > о реализуемом товаре [17:15:00]line ОКРУГЛЕНИЕ: -0.10 [17:15:00]line ИТОГО: 10000.00 [17:15:00]line НСП 1% : 88.50 [17:15:00]line НДС 12% : 1061.96 [17:15:00]line Наличными: 10000.00 [17:15:00]line Безнал.: 0.00 [17:15:00]line Место: АЗС № 133 "Партнер Нефть" [17:15:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:15:00]line СНО: Общий режим [17:15:00]line Чек 275 20.10.2024 17:15 [17:15:00]line Смена: 170 ФФД: 1.0 [17:15:00]line ЗНМ: 0300000020 [17:15:00]line РНМ: 0000000000161154 [17:15:00]line Версия ККМ: v1.0 [17:15:00]line ФД осн.: 73945 [17:15:00]line ФМ осн.: 0000000000963323 [17:15:00]line [17:15:00]line Дисконтная программа [17:15:00]line ДТ [17:15:00]line номер 133 [17:15:00]line сэкономлено 132.98 сом [17:15:00]line ФМ: 0000000000963323 [17:15:00]line ФД: 73949 [17:15:00]line ФПД: 145705281185997 [17:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171501&type=2&operation_type=1&fn_number=0000000000963323&fd_number=73949&fm=145705281185997&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:15:00]OFD Sender: Processing packet 73949 [packets to send 15, broken 14] [17:15:00]ProducePacketName [17:15:00]name=ofd_packets/00073949 [17:15:00]OFD Sender: To server: pG, [17:15:00]CommunicateWithHost lk.salyk.kg:30040 [17:15:00]ConnectInit lk.salyk.kg [17:15:00]written 0, free lines is 4095 [17:15:01]Connected sock=10 [17:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 3C 23 20 01 79 04 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 95 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 D9 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 20 01 00 35 04 06 00 84 84 A7 86 E8 CD E9 D6 17 75 BB 17 D3 1E [17:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CB B4 47 00 C0 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 39 36 33 33 32 33 10 04 04 00 DD 20 01 00 F4 03 04 00 79 E3 14 67 B6 04 01 00 00 F0 E0 F3 C7 F1 15 C9 DC [17:15:01]CommunicateWithHost err = 0 [17:15:01]CheckOFDResponse [17:15:01]1017 (14) - 77093643461234 [17:15:01]1041 (16) - 0000000000963323 [17:15:01]1040 (4) - 73949 [17:15:01]1012 (4) - 20.10.2024 11:03 [17:15:01]1206 (1) - 0 [17:15:01]OFD Sender: Remove packet 73949 [17:15:01]ProducePacketName [17:15:01]name=ofd_packets/00073949 [17:15:01]NVStorageDeleteData [17:15:01]Write to MH i2c: 01 00 00 59 47 A0 [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 07 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 07 00 59 47 00 00 00 00 00 5F 0C 12 [17:15:01]RasterBufferAndPrint [17:15:01]line [17:15:01]line [17:15:01]line [17:15:01]line [17:15:01]line [17:15:01]written 0, free lines is 3174 [17:15:01]MH_Cut [17:15:01]Write to MH i2c: D1 01 00 60 47 01 79 [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: D1 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: D1 01 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: D1 01 00 60 47 00 78 [17:15:01]Write to MH i2c: 01 00 00 61 47 A8 [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]OFD Sender: No OFD packet to send [17:15:02]*** Cut start [17:15:02]*** Partial cut [17:15:02]*** CUTSNS_PIN = 1 [17:15:02]*** CUTSNS_PIN = 0 [17:15:02]*** Brake cut motor [17:15:03]Read from MH i2c: 01 [17:15:03]MH_I2C_Read... [17:15:03]*** Stop cut motor [17:15:03]*** Cut end [17:15:03]Read from MH i2c: 01 07 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: 01 07 00 61 47 00 00 00 00 00 FF 0F BD [17:15:03]process_action close_receipt done [17:15:03]requested_data is exist [17:15:03]produce_requested_data [17:15:03]requested_item fm.sn is exist - process it [17:15:03]wFMCommunicate request_size=4 [17:15:03]MH_SAM_APDU [17:15:03]CAPDU: 80 11 00 00 [17:15:03]Write to MH i2c: E2 08 00 62 47 80 11 00 00 00 00 00 00 23 [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:03]Read from MH i2c: E2 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 17 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 17 00 62 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 70 [17:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:15:03]wFMCommunicate OK [17:15:03]requested_item fd.num is exist - process it [17:15:03]SAM_PROTO_GetFieldsCounters [17:15:03]wFMCommunicate request_size=4 [17:15:03]MH_SAM_APDU [17:15:03]CAPDU: 80 13 00 00 [17:15:03]Write to MH i2c: E2 08 00 63 47 80 13 00 00 00 00 00 00 26 [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:03]Read from MH i2c: E2 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 62 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 62 00 63 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:03]wFMCommunicate OK [17:15:03]SAM_PROTO_GetFieldsCounters done [17:15:03]requested_item shift.num is exist - process it [17:15:03]requested_item shift.opened is exist - process it [17:15:03]req_shift_opened [17:15:03]FM_GetShiftState [17:15:03]SAM_PROTO_GetShiftState [17:15:03]wFMCommunicate request_size=4 [17:15:03]MH_SAM_APDU [17:15:03]CAPDU: 80 13 01 00 [17:15:03]Write to MH i2c: E2 08 00 64 47 80 13 01 00 00 00 00 00 28 [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:03]Read from MH i2c: E2 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 0E 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 0E 00 64 47 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6D [17:15:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:15:03]wFMCommunicate OK [17:15:03]SAM_PROTO_GetShiftState done [17:15:03]FM_GetShiftState done [17:15:03]req_shift_opened done [17:15:03]requested_item shift.open_date is exist - process it [17:15:03]req_shift_open_date [17:15:03]req_shift_open_date done [17:15:03]produce_requested_data done [17:15:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73949,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:15:03]process_action_free close_receipt [17:15:03]json_value_free [17:15:03]json_value_free done [17:15:03]process_json_proto returns [17:15:03]Send response to host [17:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73949,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:15:03]free response buf [17:15:03]execute_script done [17:15:03]execute_script returns [17:15:03]free content buf [17:15:03]Sock 9.Close socket [17:15:03]Sock 9.Thread stoped [17:15:03]accept exits with 8 [17:15:03]New connection [17:15:03]New thread 3067575652 created [17:15:03]Thread 3067432292 joined [17:15:03]Waiting for new connection... [17:15:03] Sock 8.Parse request [17:15:03]Sock 8.Check first char [17:15:03]Sock 8.First char is OK [17:15:03]request: POST /json_proto HTTP/1.0 [17:15:03]Method: POST [17:15:03]URL: /json_proto [17:15:03]Method is POST - this is cgi request [17:15:03]url: /json_proto [17:15:03]query_string will be loaded in cgi processing [17:15:03]execute_cgi json_proto POST (null) [17:15:03]execute_cgi path=json_proto method=POST [17:15:03]POST find Content-Length [17:15:03]Host: 172.17.44.196:8080 [17:15:03]Content-Length: 982 [17:15:03]Content-Type: application/json [17:15:03] [17:15:03]POST finish read [17:15:03]Found Content-Length = 982 [17:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:03]execute_script... [17:15: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)1963157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:03]POST & json_proto [17:15:03]process_json_proto [17:15:03]json parsed OK: [17:15:03]protocol is kg_v1.0 [17:15:03]action value=close_receipt [17:15:03]process_action close_receipt [17:15:03]cmd_close_receipt [17:15:03]MH_GetDate [17:15:03]Write to MH i2c: F0 00 00 65 47 9B [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: F0 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: F0 09 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: F0 09 00 65 47 00 9A 3A 15 67 E7 19 F8 65 51 [17:15:03]GetLastDocTimeStamp 1729444501 [17:15:03]current date 1729444506 [17:15:03]FM_GetShiftState [17:15:03]SAM_PROTO_GetShiftState [17:15:03]wFMCommunicate request_size=4 [17:15:03]MH_SAM_APDU [17:15:03]CAPDU: 80 13 01 00 [17:15:03]Write to MH i2c: E2 08 00 66 47 80 13 01 00 00 00 00 00 2A [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:03]Read from MH i2c: E2 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 0E 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 0E 00 66 47 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [17:15:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:15:03]wFMCommunicate OK [17:15:03]SAM_PROTO_GetShiftState done [17:15:03]FM_GetShiftState done [17:15:03]opened in 1729384303 [17:15:03]opened+sec_in_day 1729470703 [17:15:03]quantity*price = 999032 [17:15:03]sum+1 = 999033 [17:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 9990.00 Внесено: 10000.00 СДАЧА: 10.00 НСП 1% : 88.41 НДС 12% : 1060.92 Наличными: 9990.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 276 20.10.2024 17:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 132.85 сом ФМ: 0000000000963323 ФД: 73950 ФПД: 140465402688154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171506&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73950&fm=140465402688154&tin=02508201610067®Number=0000000000161154&sum=999000 [17:15:04]StoreToDocumentArchive [17:15:04]shift 170 fd 73950 [17:15:04]save to /storage/0170/doc_00073950 [17:15:04]save last doc name /storage/0170/doc_00073950 to /storage/kkm_last_doc_name [17:15:04]save OK [17:15:04]Clear old archive folders... [17:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:15:04]tlvbuf is 003D6260 [17:15:04]SAM_PROTO_ClearQueue [17:15:04]wFMCommunicate request_size=4 [17:15:04]MH_SAM_APDU [17:15:04]CAPDU: 80 09 00 00 [17:15:04]Write to MH i2c: E2 08 00 73 47 80 09 00 00 00 00 00 00 2C [17:15:04]Write i2c OK [17:15:04]MH_I2C_Read... [17:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:04]Read from MH i2c: E2 [17:15:04]MH_I2C_Read... [17:15:04]Read from MH i2c: E2 03 00 [17:15:04]MH_I2C_Read... [17:15:04]Read from MH i2c: E2 03 00 73 47 00 90 00 2E [17:15:04]RAPDU: 90 00 [17:15:04]wFMCommunicate OK [17:15:04]SAM_PROTO_ClearQueue done [17:15:04]KKMCreateOFDPacket [17:15:04]OFDProtocolAddRootSTLVToBuf [17:15:04]FM_MakeSignedData [17:15:04]FM_MakeSignedData [17:15:04]SAM_PROTO_SignData [17:15:04]wFMCommunicate request_size=4 [17:15:04]MH_SAM_APDU [17:15:04]CAPDU: 80 0D 01 02 [17:15:04]Write to MH i2c: E2 08 00 74 47 80 0D 01 02 00 00 00 00 34 [17:15:04]Write i2c OK [17:15:04]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 03 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 03 00 74 47 00 90 00 2F [17:15:05]RAPDU: 90 00 [17:15:05]wFMCommunicate OK [17:15:05]wFMCommunicate request_size=255 [17:15:05]MH_SAM_APDU [17:15:05]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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 9A 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 20 01 00 35 04 06 00 7F C0 A6 6E [17:15:05]Write to MH i2c: E2 02 01 75 47 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 9A 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 20 01 00 35 04 06 00 7F C0 A6 6E 00 00 21 [17:15:05]Write i2c OK [17:15:05]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 03 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 03 00 75 47 00 90 00 30 [17:15:05]RAPDU: 90 00 [17:15:05]wFMCommunicate OK [17:15:05]wFMCommunicate request_size=7 [17:15:05]MH_SAM_APDU [17:15:05]CAPDU: 80 0D 02 02 02 32 9A [17:15:05]Write to MH i2c: E2 0A 00 76 47 80 0D 02 02 02 00 32 9A 00 00 07 [17:15:05]Write i2c OK [17:15:05]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 03 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 03 00 76 47 00 90 00 31 [17:15:05]RAPDU: 90 00 [17:15:05]wFMCommunicate OK [17:15:05]wFMCommunicate request_size=4 [17:15:05]MH_SAM_APDU [17:15:05]CAPDU: 80 0D 03 02 [17:15:05]Write to MH i2c: E2 08 00 77 47 80 0D 03 02 00 00 00 00 39 [17:15:05]Write i2c OK [17:15:05]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 0B 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 0B 00 77 47 00 94 39 FE 0B 21 49 F7 D0 90 00 41 [17:15:05]RAPDU: 94 39 FE 0B 21 49 F7 D0 90 00 [17:15:05]wFMCommunicate OK [17:15:05]SAM_PROTO_SignData done [17:15:05]FM_MakeSignedData done [17:15:05]CreateOFDProtocolMessage [17:15:05]wFMCommunicate request_size=4 [17:15:05]MH_SAM_APDU [17:15:05]CAPDU: 80 11 00 00 [17:15:05]Write to MH i2c: E2 08 00 78 47 80 11 00 00 00 00 00 00 39 [17:15:05]Write i2c OK [17:15:05]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 17 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 17 00 78 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [17:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:15:05]wFMCommunicate OK [17:15:05]CreateOFDProtocolMessage done [17:15:05]OFDSenderStorePacket 73950 [17:15:05]StoreOFDPacket docnum=73950 [17:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D7 19 04 01 8E C1 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 9A 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 20 01 00 35 04 06 00 7F C0 A6 6E 32 9A 94 39 FE 0B 21 49 F7 D0 [17:15:05]CheckFolder [17:15:05]dirname=/storage/ofd_packets [17:15:05]CheckFolder done [17:15:05]ProducePacketName [17:15:05]name=ofd_packets/00073950 [17:15:05]NVStorageSaveData ofd_packets/00073950 [17:15:06]File name is /storage/ofd_packets/00073950 [17:15:06]Write 298 bytes [17:15:06]NVStorageSaveData done [17:15:06]OFDSenderStorePacket done [17:15:06]KKMCreateOFDPacket done [17:15:06]NVStorageSaveData kkm_last_timestamp [17:15:06]File name is /storage/kkm_last_timestamp [17:15:06]Write 4 bytes [17:15:06]NVStorageSaveData done [17:15:06]ExternCall_PrintAddStr [17:15:06]wPrintStart [17:15:06]Write to MH i2c: 01 00 00 79 47 C0 [17:15:06]Write i2c OK [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: 01 [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: 01 07 00 [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: 01 07 00 79 47 00 00 00 00 00 FF 0F D5 [17:15:06]RasterBufferAndPrint [17:15:06]line Счет N : (1)1963157 [17:15:06]line ИНН: 02508201610067 [17:15:06]line Контрольно-Кассовый Чек [17:15:06]line ПРОДАЖА [17:15:06]line ТРК (МРК, ГНК) : 21 [17:15:06]line Товар: 2710194210 [17:15:06]line ДТ-К-5 [17:15:06]line 132.850 * 75.20 [17:15:06]line = 9990.32 [17:15:06]line НДС 12% НСП 1% [17:15:06]line > о реализуемом товаре [17:15:06]line ОКРУГЛЕНИЕ: -0.32 [17:15:06]line ИТОГО: 9990.00 [17:15:06]line Внесено: 10000.00 [17:15:06]line СДАЧА: 10.00 [17:15:06]line НСП 1% : 88.41 [17:15:06]line НДС 12% : 1060.92 [17:15:06]line Наличными: 9990.00 [17:15:06]line Безнал.: 0.00 [17:15:06]line Место: АЗС № 133 "Партнер Нефть" [17:15:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:15:06]line СНО: Общий режим [17:15:06]line Чек 276 20.10.2024 17:15 [17:15:06]line Смена: 170 ФФД: 1.0 [17:15:06]line ЗНМ: 0300000020 [17:15:06]line РНМ: 0000000000161154 [17:15:06]line Версия ККМ: v1.0 [17:15:06]line [17:15:06]line Дисконтная программа [17:15:06]line ДТ [17:15:06]line номер 133 [17:15:06]line сэкономлено 132.85 сом [17:15:06]line ФМ: 0000000000963323 [17:15:06]line ФД: 73950 [17:15:06]line ФПД: 140465402688154 [17:15:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171506&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73950&fm=140465402688154&tin=02508201610067®Number=0000000000161154&sum=999000 [17:15:06]written 0, free lines is 4095 [17:15:06]OFD Sender: Processing packet 73950 [packets to send 15, broken 14] [17:15:06]ProducePacketName [17:15:06]name=ofd_packets/00073950 [17:15:06]OFD Sender: To server: pG, [17:15:06]CommunicateWithHost lk.salyk.kg:30040 [17:15:06]ConnectInit lk.salyk.kg [17:15:06]Connected sock=10 [17:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D7 19 04 01 8E C1 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 9A 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 20 01 00 35 04 06 00 7F C0 A6 6E 32 9A 94 39 FE 0B 21 49 F7 D0 [17:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 52 4E 47 00 29 F5 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 39 36 33 33 32 33 10 04 04 00 DE 20 01 00 F4 03 04 00 7F E3 14 67 B6 04 01 00 00 58 BA D7 AE 8E D2 10 2A [17:15:06]CommunicateWithHost err = 0 [17:15:06]CheckOFDResponse [17:15:06]1017 (14) - 77093643461234 [17:15:06]1041 (16) - 0000000000963323 [17:15:06]1040 (4) - 73950 [17:15:06]1012 (4) - 20.10.2024 11:03 [17:15:06]1206 (1) - 0 [17:15:06]OFD Sender: Remove packet 73950 [17:15:06]ProducePacketName [17:15:06]name=ofd_packets/00073950 [17:15:06]NVStorageDeleteData [17:15:06]Write to MH i2c: 01 00 00 A8 47 EF [17:15:06]Write i2c OK [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: 01 [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: 01 07 00 [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: 01 07 00 A8 47 00 00 00 00 00 6F 0C 71 [17:15:06]RasterBufferAndPrint [17:15:06]line [17:15:06]line [17:15:06]line [17:15:06]line [17:15:06]line [17:15:06]written 0, free lines is 3198 [17:15:06]MH_Cut [17:15:06]Write to MH i2c: D1 01 00 AF 47 01 C8 [17:15:06]Write i2c OK [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: D1 [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: D1 01 00 [17:15:06]MH_I2C_Read... [17:15:06]Read from MH i2c: D1 01 00 AF 47 00 C7 [17:15:06]Write to MH i2c: 01 00 00 B0 47 F7 [17:15:06]Write i2c OK [17:15:06]MH_I2C_Read... [17:15:06]OFD Sender: No OFD packet to send [17:15:07]*** Cut start [17:15:07]*** Partial cut [17:15:07]*** CUTSNS_PIN = 1 [17:15:07]*** CUTSNS_PIN = 0 [17:15:07]*** Brake cut motor [17:15:08]Read from MH i2c: 01 [17:15:08]MH_I2C_Read... [17:15:08]*** Stop cut motor [17:15:08]*** Cut end [17:15:08]Read from MH i2c: 01 07 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 07 00 B0 47 00 00 00 00 00 FF 0F 0C [17:15:08]process_action close_receipt done [17:15:08]requested_data is exist [17:15:08]produce_requested_data [17:15:08]requested_item fm.sn is exist - process it [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 11 00 00 [17:15:08]Write to MH i2c: E2 08 00 B1 47 80 11 00 00 00 00 00 00 72 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 17 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 17 00 B1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BF [17:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:15:08]wFMCommunicate OK [17:15:08]requested_item fd.num is exist - process it [17:15:08]SAM_PROTO_GetFieldsCounters [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 13 00 00 [17:15:08]Write to MH i2c: E2 08 00 B2 47 80 13 00 00 00 00 00 00 75 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 62 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 62 00 B2 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:08]wFMCommunicate OK [17:15:08]SAM_PROTO_GetFieldsCounters done [17:15:08]requested_item shift.num is exist - process it [17:15:08]requested_item shift.opened is exist - process it [17:15:08]req_shift_opened [17:15:08]FM_GetShiftState [17:15:08]SAM_PROTO_GetShiftState [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 13 01 00 [17:15:08]Write to MH i2c: E2 08 00 B3 47 80 13 01 00 00 00 00 00 77 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0E 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0E 00 B3 47 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BC [17:15:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:15:08]wFMCommunicate OK [17:15:08]SAM_PROTO_GetShiftState done [17:15:08]FM_GetShiftState done [17:15:08]req_shift_opened done [17:15:08]requested_item shift.open_date is exist - process it [17:15:08]req_shift_open_date [17:15:08]req_shift_open_date done [17:15:08]produce_requested_data done [17:15:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73950,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:15:08]process_action_free close_receipt [17:15:08]json_value_free [17:15:08]json_value_free done [17:15:08]process_json_proto returns [17:15:08]Send response to host [17:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73950,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:15:08]free response buf [17:15:08]execute_script done [17:15:08]execute_script returns [17:15:08]free content buf [17:15:08]Sock 8.Close socket [17:15:08]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:10]accept exits with 9 [17:16:10]New connection [17:16:10]New thread 3067432292 created [17:16:10]Thread 3067575652 joined [17:16:10]Waiting for new connection... [17:16:10] Sock 9.Parse request [17:16:10]Sock 9.Check first char [17:16:10]Sock 9.First char is OK [17:16:10]request: POST /json_proto HTTP/1.0 [17:16:10]Method: POST [17:16:10]URL: /json_proto [17:16:10]Method is POST - this is cgi request [17:16:10]url: /json_proto [17:16:10]query_string will be loaded in cgi processing [17:16:10]execute_cgi json_proto POST (null) [17:16:10]execute_cgi path=json_proto method=POST [17:16:10]POST find Content-Length [17:16:10]Host: 172.17.44.196:8080 [17:16:10]Content-Length: 1041 [17:16:10]Content-Type: application/json [17:16:10] [17:16:10]POST finish read [17:16:10]Found Content-Length = 1041 [17:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 73946, "base_FM": "0000000000963323", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:10]execute_script... [17:16:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 73946, "base_FM": "0000000000963323", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:10]POST & json_proto [17:16:10]process_json_proto [17:16:10]json parsed OK: [17:16:10]protocol is kg_v1.0 [17:16:10]action value=close_receipt [17:16:10]process_action close_receipt [17:16:10]cmd_close_receipt [17:16:10]MH_GetDate [17:16:10]Write to MH i2c: F0 00 00 B4 47 EA [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: F0 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: F0 09 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: F0 09 00 B4 47 00 DC 3A 15 67 E7 19 F8 65 E2 [17:16:10]GetLastDocTimeStamp 1729444506 [17:16:10]current date 1729444572 [17:16:10]FM_GetShiftState [17:16:10]SAM_PROTO_GetShiftState [17:16:10]wFMCommunicate request_size=4 [17:16:10]MH_SAM_APDU [17:16:10]CAPDU: 80 13 01 00 [17:16:10]Write to MH i2c: E2 08 00 B5 47 80 13 01 00 00 00 00 00 79 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:10]Read from MH i2c: E2 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 0E 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: E2 0E 00 B5 47 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BE [17:16:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:16:10]wFMCommunicate OK [17:16:10]SAM_PROTO_GetShiftState done [17:16:10]FM_GetShiftState done [17:16:10]opened in 1729384303 [17:16:10]opened+sec_in_day 1729470703 [17:16:10]quantity*price = 1000009 [17:16:10]sum+1 = 1000011 [17:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 10000.00 НСП 1% : 88.50 НДС 12% : 1061.96 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 277 20.10.2024 17:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФД осн.: 73946 ФМ осн.: 0000000000963323 Дисконтная программа ДТ номер 133 сэкономлено 132.98 сом ФМ: 0000000000963323 ФД: 73951 ФПД: 263659270465099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171612&type=2&operation_type=1&fn_number=0000000000963323&fd_number=73951&fm=263659270465099&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:16:11]StoreToDocumentArchive [17:16:11]shift 170 fd 73951 [17:16:11]save to /storage/0170/doc_00073951 [17:16:11]save last doc name /storage/0170/doc_00073951 to /storage/kkm_last_doc_name [17:16:11]save OK [17:16:11]Clear old archive folders... [17:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:16:11]tlvbuf is 0042FD00 [17:16:11]SAM_PROTO_ClearQueue [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 09 00 00 [17:16:11]Write to MH i2c: E2 08 00 C4 47 80 09 00 00 00 00 00 00 7D [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 C4 47 00 90 00 7F [17:16:11]RAPDU: 90 00 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_ClearQueue done [17:16:11]KKMCreateOFDPacket [17:16:11]OFDProtocolAddRootSTLVToBuf [17:16:11]FM_MakeSignedData [17:16:11]FM_MakeSignedData [17:16:11]SAM_PROTO_SignData [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 0D 01 02 [17:16:11]Write to MH i2c: E2 08 00 C5 47 80 0D 01 02 00 00 00 00 85 [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 C5 47 00 90 00 80 [17:16:11]RAPDU: 90 00 [17:16:11]wFMCommunicate OK [17:16:11]wFMCommunicate request_size=255 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DC 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 DA 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 [17:16:11]Write to MH i2c: E2 02 01 C6 47 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DC 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 DA 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 00 00 F2 [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 C6 47 00 90 00 81 [17:16:11]RAPDU: 90 00 [17:16:11]wFMCommunicate OK [17:16:11]wFMCommunicate request_size=35 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 20 01 00 35 04 06 00 EF CB F5 28 66 4B [17:16:11]Write to MH i2c: E2 26 00 C7 47 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 20 01 00 35 04 06 00 EF CB F5 28 66 4B 00 00 FD [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 03 00 C7 47 00 90 00 82 [17:16:11]RAPDU: 90 00 [17:16:11]wFMCommunicate OK [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 0D 03 02 [17:16:11]Write to MH i2c: E2 08 00 C8 47 80 0D 03 02 00 00 00 00 8A [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0B 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0B 00 C8 47 00 67 EF E4 1B 61 1F A4 E5 90 00 E9 [17:16:11]RAPDU: 67 EF E4 1B 61 1F A4 E5 90 00 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_SignData done [17:16:11]FM_MakeSignedData done [17:16:11]CreateOFDProtocolMessage [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 11 00 00 [17:16:11]Write to MH i2c: E2 08 00 C9 47 80 11 00 00 00 00 00 00 8A [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:12]Read from MH i2c: E2 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: E2 17 00 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: E2 17 00 C9 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D7 [17:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:16:12]wFMCommunicate OK [17:16:12]CreateOFDProtocolMessage done [17:16:12]OFDSenderStorePacket 73951 [17:16:12]StoreOFDPacket docnum=73951 [17:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 9F D3 20 01 69 4F 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DC 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 DA 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 20 01 00 35 04 06 00 EF CB F5 28 66 4B 67 EF E4 1B 61 1F A4 E5 [17:16:12]CheckFolder [17:16:12]dirname=/storage/ofd_packets [17:16:12]CheckFolder done [17:16:12]ProducePacketName [17:16:12]name=ofd_packets/00073951 [17:16:12]NVStorageSaveData ofd_packets/00073951 [17:16:12]File name is /storage/ofd_packets/00073951 [17:16:12]Write 326 bytes [17:16:12]NVStorageSaveData done [17:16:12]OFDSenderStorePacket done [17:16:12]KKMCreateOFDPacket done [17:16:12]NVStorageSaveData kkm_last_timestamp [17:16:12]File name is /storage/kkm_last_timestamp [17:16:12]Write 4 bytes [17:16:12]NVStorageSaveData done [17:16:12]ExternCall_PrintAddStr [17:16:12]wPrintStart [17:16:12]Write to MH i2c: 01 00 00 CA 47 11 [17:16:12]Write i2c OK [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: 01 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: 01 07 00 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: 01 07 00 CA 47 00 00 00 00 00 FF 0F 26 [17:16:12]RasterBufferAndPrint [17:16:12]line Счет N : (1)1963159 [17:16:12]line ИНН: 02508201610067 [17:16:12]line Контрольно-Кассовый Чек [17:16:12]line ВОЗВРАТ ПРОДАЖИ [17:16:12]line ТРК (МРК, ГНК) : 11 [17:16:12]line Товар: 2710194210 [17:16:12]line ДТ-К-5 [17:16:12]line 132.980 * 75.20 [17:16:12]line = 10000.10 [17:16:12]line НДС 12% НСП 1% [17:16:12]line > о реализуемом товаре [17:16:12]line ОКРУГЛЕНИЕ: -0.10 [17:16:12]line ИТОГО: 10000.00 [17:16:12]line НСП 1% : 88.50 [17:16:12]line НДС 12% : 1061.96 [17:16:12]line Наличными: 10000.00 [17:16:12]line Безнал.: 0.00 [17:16:12]line Место: АЗС № 133 "Партнер Нефть" [17:16:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:16:12]line СНО: Общий режим [17:16:12]line Чек 277 20.10.2024 17:16 [17:16:12]line Смена: 170 ФФД: 1.0 [17:16:12]line ЗНМ: 0300000020 [17:16:12]line РНМ: 0000000000161154 [17:16:12]line Версия ККМ: v1.0 [17:16:12]line ФД осн.: 73946 [17:16:12]line ФМ осн.: 0000000000963323 [17:16:12]line [17:16:12]line Дисконтная программа [17:16:12]line ДТ [17:16:12]line номер 133 [17:16:12]line сэкономлено 132.98 сом [17:16:12]line ФМ: 0000000000963323 [17:16:12]line ФД: 73951 [17:16:12]line ФПД: 263659270465099 [17:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171612&type=2&operation_type=1&fn_number=0000000000963323&fd_number=73951&fm=263659270465099&tin=02508201610067®Number=0000000000161154&sum=1000000 [17:16:12]OFD Sender: Processing packet 73951 [packets to send 15, broken 14] [17:16:12]ProducePacketName [17:16:12]name=ofd_packets/00073951 [17:16:12]OFD Sender: To server: pG, [17:16:12]CommunicateWithHost lk.salyk.kg:30040 [17:16:12]ConnectInit lk.salyk.kg [17:16:12]written 0, free lines is 4095 [17:16:12]Connected sock=10 [17:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 9F D3 20 01 69 4F 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DC 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 DA 20 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 20 01 00 35 04 06 00 EF CB F5 28 66 4B 67 EF E4 1B 61 1F A4 E5 [17:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1C A9 47 00 0B 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 39 36 33 33 32 33 10 04 04 00 DF 20 01 00 F4 03 04 00 C1 E3 14 67 B6 04 01 00 00 EC 5C 54 F7 69 E6 D8 0E [17:16:12]CommunicateWithHost err = 0 [17:16:12]CheckOFDResponse [17:16:12]1017 (14) - 77093643461234 [17:16:12]1041 (16) - 0000000000963323 [17:16:12]1040 (4) - 73951 [17:16:12]1012 (4) - 20.10.2024 11:04 [17:16:12]1206 (1) - 0 [17:16:12]OFD Sender: Remove packet 73951 [17:16:12]ProducePacketName [17:16:12]name=ofd_packets/00073951 [17:16:12]NVStorageDeleteData [17:16:12]Write to MH i2c: 01 00 00 F9 47 40 [17:16:12]Write i2c OK [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: 01 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: 01 07 00 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: 01 07 00 F9 47 00 00 00 00 00 60 0C B3 [17:16:12]RasterBufferAndPrint [17:16:12]line [17:16:12]line [17:16:12]line [17:16:12]line [17:16:12]line [17:16:12]written 0, free lines is 3174 [17:16:12]MH_Cut [17:16:12]Write to MH i2c: D1 01 00 00 48 01 1A [17:16:12]Write i2c OK [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: D1 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: D1 01 00 [17:16:12]MH_I2C_Read... [17:16:12]Read from MH i2c: D1 01 00 00 48 00 19 [17:16:12]Write to MH i2c: 01 00 00 01 48 49 [17:16:12]Write i2c OK [17:16:12]MH_I2C_Read... [17:16:13]OFD Sender: No OFD packet to send [17:16:13]*** Cut start [17:16:13]*** Partial cut [17:16:13]*** CUTSNS_PIN = 1 [17:16:13]*** CUTSNS_PIN = 0 [17:16:14]*** Brake cut motor [17:16:14]Read from MH i2c: 01 [17:16:14]MH_I2C_Read... [17:16:14]*** Stop cut motor [17:16:14]*** Cut end [17:16:14]Read from MH i2c: 01 07 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: 01 07 00 01 48 00 00 00 00 00 FF 0F 5E [17:16:14]process_action close_receipt done [17:16:14]requested_data is exist [17:16:14]produce_requested_data [17:16:14]requested_item fm.sn is exist - process it [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 11 00 00 [17:16:14]Write to MH i2c: E2 08 00 02 48 80 11 00 00 00 00 00 00 C4 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 17 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 17 00 02 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 11 [17:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:16:14]wFMCommunicate OK [17:16:14]requested_item fd.num is exist - process it [17:16:14]SAM_PROTO_GetFieldsCounters [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 13 00 00 [17:16:14]Write to MH i2c: E2 08 00 03 48 80 13 00 00 00 00 00 00 C7 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 62 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 62 00 03 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [17:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:14]wFMCommunicate OK [17:16:14]SAM_PROTO_GetFieldsCounters done [17:16:14]requested_item shift.num is exist - process it [17:16:14]requested_item shift.opened is exist - process it [17:16:14]req_shift_opened [17:16:14]FM_GetShiftState [17:16:14]SAM_PROTO_GetShiftState [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 13 01 00 [17:16:14]Write to MH i2c: E2 08 00 04 48 80 13 01 00 00 00 00 00 C9 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 0E 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 0E 00 04 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 0E [17:16:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:16:14]wFMCommunicate OK [17:16:14]SAM_PROTO_GetShiftState done [17:16:14]FM_GetShiftState done [17:16:14]req_shift_opened done [17:16:14]requested_item shift.open_date is exist - process it [17:16:14]req_shift_open_date [17:16:14]req_shift_open_date done [17:16:14]produce_requested_data done [17:16:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73951,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:16:14]process_action_free close_receipt [17:16:14]json_value_free [17:16:14]json_value_free done [17:16:14]process_json_proto returns [17:16:14]Send response to host [17:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73951,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:16:14]free response buf [17:16:14]execute_script done [17:16:14]execute_script returns [17:16:14]free content buf [17:16:14]Sock 9.Close socket [17:16:14]Sock 9.Thread stoped [17:16:15]accept exits with 8 [17:16:15]New connection [17:16:15]New thread 3067575652 created [17:16:15]Thread 3067432292 joined [17:16:15]Waiting for new connection... [17:16:15] Sock 8.Parse request [17:16:15]Sock 8.Check first char [17:16:15]Sock 8.First char is OK [17:16:15]request: POST /json_proto HTTP/1.0 [17:16:15]Method: POST [17:16:15]URL: /json_proto [17:16:15]Method is POST - this is cgi request [17:16:15]url: /json_proto [17:16:15]query_string will be loaded in cgi processing [17:16:15]execute_cgi json_proto POST (null) [17:16:15]execute_cgi path=json_proto method=POST [17:16:15]POST find Content-Length [17:16:15]Host: 172.17.44.196:8080 [17:16:15]Content-Length: 982 [17:16:15]Content-Type: application/json [17:16:15] [17:16:15]POST finish read [17:16:15]Found Content-Length = 982 [17:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:15]execute_script... [17:16:15]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)1963159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:15]POST & json_proto [17:16:15]process_json_proto [17:16:15]json parsed OK: [17:16:15]protocol is kg_v1.0 [17:16:15]action value=close_receipt [17:16:15]process_action close_receipt [17:16:15]cmd_close_receipt [17:16:15]MH_GetDate [17:16:15]Write to MH i2c: F0 00 00 05 48 3C [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 09 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 09 00 05 48 00 E1 3A 15 67 E7 19 F8 65 39 [17:16:15]GetLastDocTimeStamp 1729444572 [17:16:15]current date 1729444577 [17:16:15]FM_GetShiftState [17:16:15]SAM_PROTO_GetShiftState [17:16:15]wFMCommunicate request_size=4 [17:16:15]MH_SAM_APDU [17:16:15]CAPDU: 80 13 01 00 [17:16:15]Write to MH i2c: E2 08 00 06 48 80 13 01 00 00 00 00 00 CB [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0E 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0E 00 06 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 10 [17:16:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:16:15]wFMCommunicate OK [17:16:15]SAM_PROTO_GetShiftState done [17:16:15]FM_GetShiftState done [17:16:15]opened in 1729384303 [17:16:15]opened+sec_in_day 1729470703 [17:16:15]quantity*price = 999032 [17:16:15]sum+1 = 999033 [17:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 9990.00 Внесено: 10000.00 СДАЧА: 10.00 НСП 1% : 88.41 НДС 12% : 1060.92 Наличными: 9990.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 278 20.10.2024 17:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 132.85 сом ФМ: 0000000000963323 ФД: 73952 ФПД: 117304122862331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171617&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73952&fm=117304122862331&tin=02508201610067®Number=0000000000161154&sum=999000 [17:16:16]StoreToDocumentArchive [17:16:16]shift 170 fd 73952 [17:16:16]save to /storage/0170/doc_00073952 [17:16:16]save last doc name /storage/0170/doc_00073952 to /storage/kkm_last_doc_name [17:16:16]save OK [17:16:16]Clear old archive folders... [17:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:16:16]tlvbuf is 0040F3F0 [17:16:16]SAM_PROTO_ClearQueue [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 09 00 00 [17:16:16]Write to MH i2c: E2 08 00 13 48 80 09 00 00 00 00 00 00 CD [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 13 48 00 90 00 CF [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]SAM_PROTO_ClearQueue done [17:16:16]KKMCreateOFDPacket [17:16:16]OFDProtocolAddRootSTLVToBuf [17:16:16]FM_MakeSignedData [17:16:16]FM_MakeSignedData [17:16:16]SAM_PROTO_SignData [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 01 02 [17:16:16]Write to MH i2c: E2 08 00 14 48 80 0D 01 02 00 00 00 00 D5 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 14 48 00 90 00 D0 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]wFMCommunicate request_size=255 [17:16:16]MH_SAM_APDU [17:16:16]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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 E1 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 20 01 00 35 04 06 00 6A AF FE 92 [17:16:16]Write to MH i2c: E2 02 01 15 48 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 E1 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 20 01 00 35 04 06 00 6A AF FE 92 00 00 63 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 15 48 00 90 00 D1 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]wFMCommunicate request_size=7 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 02 02 02 EA FB [17:16:16]Write to MH i2c: E2 0A 00 16 48 80 0D 02 02 02 00 EA FB 00 00 C1 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 16 48 00 90 00 D2 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 03 02 [17:16:16]Write to MH i2c: E2 08 00 17 48 80 0D 03 02 00 00 00 00 DA [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 0B 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 0B 00 17 48 00 1D 77 21 33 11 A9 2F ED 90 00 99 [17:16:17]RAPDU: 1D 77 21 33 11 A9 2F ED 90 00 [17:16:17]wFMCommunicate OK [17:16:17]SAM_PROTO_SignData done [17:16:17]FM_MakeSignedData done [17:16:17]CreateOFDProtocolMessage [17:16:17]wFMCommunicate request_size=4 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 11 00 00 [17:16:17]Write to MH i2c: E2 08 00 18 48 80 11 00 00 00 00 00 00 DA [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 17 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 17 00 18 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 27 [17:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:16:17]wFMCommunicate OK [17:16:17]CreateOFDProtocolMessage done [17:16:17]OFDSenderStorePacket 73952 [17:16:17]StoreOFDPacket docnum=73952 [17:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4E C1 04 01 65 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 E1 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 20 01 00 35 04 06 00 6A AF FE 92 EA FB 1D 77 21 33 11 A9 2F ED [17:16:17]CheckFolder [17:16:17]dirname=/storage/ofd_packets [17:16:17]CheckFolder done [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00073952 [17:16:17]NVStorageSaveData ofd_packets/00073952 [17:16:17]File name is /storage/ofd_packets/00073952 [17:16:17]Write 298 bytes [17:16:17]NVStorageSaveData done [17:16:17]OFDSenderStorePacket done [17:16:17]KKMCreateOFDPacket done [17:16:17]NVStorageSaveData kkm_last_timestamp [17:16:17]File name is /storage/kkm_last_timestamp [17:16:17]Write 4 bytes [17:16:17]NVStorageSaveData done [17:16:17]ExternCall_PrintAddStr [17:16:17]wPrintStart [17:16:17]Write to MH i2c: 01 00 00 19 48 61 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 19 48 00 00 00 00 00 FF 0F 76 [17:16:17]RasterBufferAndPrint [17:16:17]line Счет N : (1)1963159 [17:16:17]line ИНН: 02508201610067 [17:16:17]line Контрольно-Кассовый Чек [17:16:17]line ПРОДАЖА [17:16:17]line ТРК (МРК, ГНК) : 11 [17:16:17]line Товар: 2710194210 [17:16:17]line ДТ-К-5 [17:16:17]line 132.850 * 75.20 [17:16:17]line = 9990.32 [17:16:17]line НДС 12% НСП 1% [17:16:17]line > о реализуемом товаре [17:16:17]line ОКРУГЛЕНИЕ: -0.32 [17:16:17]line ИТОГО: 9990.00 [17:16:17]line Внесено: 10000.00 [17:16:17]line СДАЧА: 10.00 [17:16:17]line НСП 1% : 88.41 [17:16:17]line НДС 12% : 1060.92 [17:16:17]line Наличными: 9990.00 [17:16:17]line Безнал.: 0.00 [17:16:17]line Место: АЗС № 133 "Партнер Нефть" [17:16:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:16:17]line СНО: Общий режим [17:16:17]line Чек 278 20.10.2024 17:16 [17:16:17]line Смена: 170 ФФД: 1.0 [17:16:17]line ЗНМ: 0300000020 [17:16:17]line РНМ: 0000000000161154 [17:16:17]line Версия ККМ: v1.0 [17:16:17]line [17:16:17]line Дисконтная программа [17:16:17]line ДТ [17:16:17]line номер 133 [17:16:17]line сэкономлено 132.85 сом [17:16:17]line ФМ: 0000000000963323 [17:16:17]line ФД: 73952 [17:16:17]line ФПД: 117304122862331 [17:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171617&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73952&fm=117304122862331&tin=02508201610067®Number=0000000000161154&sum=999000 [17:16:17]OFD Sender: Processing packet 73952 [packets to send 15, broken 14] [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00073952 [17:16:17]OFD Sender: To server: pG, [17:16:17]CommunicateWithHost lk.salyk.kg:30040 [17:16:17]ConnectInit lk.salyk.kg [17:16:17]written 0, free lines is 4095 [17:16:17]Connected sock=10 [17:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4E C1 04 01 65 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 E1 3A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 20 01 00 35 04 06 00 6A AF FE 92 EA FB 1D 77 21 33 11 A9 2F ED [17:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C6 79 47 00 8C 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 39 36 33 33 32 33 10 04 04 00 E0 20 01 00 F4 03 04 00 C6 E3 14 67 B6 04 01 00 00 62 5B 5A 1A 21 C2 E3 30 [17:16:17]CommunicateWithHost err = 0 [17:16:17]CheckOFDResponse [17:16:17]1017 (14) - 77093643461234 [17:16:17]1041 (16) - 0000000000963323 [17:16:17]1040 (4) - 73952 [17:16:17]1012 (4) - 20.10.2024 11:04 [17:16:17]1206 (1) - 0 [17:16:17]OFD Sender: Remove packet 73952 [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00073952 [17:16:17]NVStorageDeleteData [17:16:17]Write to MH i2c: 01 00 00 48 48 90 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 48 48 00 00 00 00 00 69 0C 0C [17:16:17]RasterBufferAndPrint [17:16:17]line [17:16:17]line [17:16:17]line [17:16:17]line [17:16:17]line [17:16:17]written 0, free lines is 3187 [17:16:17]MH_Cut [17:16:17]Write to MH i2c: D1 01 00 4F 48 01 69 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: D1 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: D1 01 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: D1 01 00 4F 48 00 68 [17:16:17]Write to MH i2c: 01 00 00 50 48 98 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:18]OFD Sender: No OFD packet to send [17:16:18]*** Cut start [17:16:18]*** Partial cut [17:16:18]*** CUTSNS_PIN = 1 [17:16:18]*** CUTSNS_PIN = 0 [17:16:19]*** Brake cut motor [17:16:19]Read from MH i2c: 01 [17:16:19]MH_I2C_Read... [17:16:19]*** Stop cut motor [17:16:19]*** Cut end [17:16:19]Read from MH i2c: 01 07 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 07 00 50 48 00 00 00 00 00 FF 0F AD [17:16:19]process_action close_receipt done [17:16:19]requested_data is exist [17:16:19]produce_requested_data [17:16:19]requested_item fm.sn is exist - process it [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 11 00 00 [17:16:19]Write to MH i2c: E2 08 00 51 48 80 11 00 00 00 00 00 00 13 [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 17 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 17 00 51 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 60 [17:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:16:19]wFMCommunicate OK [17:16:19]requested_item fd.num is exist - process it [17:16:19]SAM_PROTO_GetFieldsCounters [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 13 00 00 [17:16:19]Write to MH i2c: E2 08 00 52 48 80 13 00 00 00 00 00 00 16 [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 62 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 62 00 52 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [17:16:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:19]wFMCommunicate OK [17:16:19]SAM_PROTO_GetFieldsCounters done [17:16:19]requested_item shift.num is exist - process it [17:16:19]requested_item shift.opened is exist - process it [17:16:19]req_shift_opened [17:16:19]FM_GetShiftState [17:16:19]SAM_PROTO_GetShiftState [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 13 01 00 [17:16:19]Write to MH i2c: E2 08 00 53 48 80 13 01 00 00 00 00 00 18 [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 0E 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 0E 00 53 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5D [17:16:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:16:19]wFMCommunicate OK [17:16:19]SAM_PROTO_GetShiftState done [17:16:19]FM_GetShiftState done [17:16:19]req_shift_opened done [17:16:19]requested_item shift.open_date is exist - process it [17:16:19]req_shift_open_date [17:16:19]req_shift_open_date done [17:16:19]produce_requested_data done [17:16:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73952,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:16:19]process_action_free close_receipt [17:16:19]json_value_free [17:16:19]json_value_free done [17:16:19]process_json_proto returns [17:16:19]Send response to host [17:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73952,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:16:19]free response buf [17:16:19]execute_script done [17:16:19]execute_script returns [17:16:19]free content buf [17:16:19]Sock 8.Close socket [17:16:19]Sock 8.Thread stoped [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:47]accept exits with 9 [17:17:47]New connection [17:17:47]New thread 3067432292 created [17:17:47]Thread 3067575652 joined [17:17:47]Waiting for new connection... [17:17:47] Sock 9.Parse request [17:17:47]Sock 9.Check first char [17:17:47]Sock 9.First char is OK [17:17:47]request: POST /json_proto HTTP/1.0 [17:17:47]Method: POST [17:17:47]URL: /json_proto [17:17:47]Method is POST - this is cgi request [17:17:47]url: /json_proto [17:17:47]query_string will be loaded in cgi processing [17:17:47]execute_cgi json_proto POST (null) [17:17:47]execute_cgi path=json_proto method=POST [17:17:47]POST find Content-Length [17:17:47]Host: 172.17.44.196:8080 [17:17:47]Content-Length: 917 [17:17:47]Content-Type: application/json [17:17:47] [17:17:47]POST finish read [17:17:47]Found Content-Length = 917 [17:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272820", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:47]execute_script... [17:17: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)272820", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:47]POST & json_proto [17:17:47]process_json_proto [17:17:47]json parsed OK: [17:17:47]protocol is kg_v1.0 [17:17:47]action value=close_receipt [17:17:47]process_action close_receipt [17:17:47]cmd_close_receipt [17:17:47]MH_GetDate [17:17:47]Write to MH i2c: F0 00 00 54 48 8B [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: F0 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: F0 09 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: F0 09 00 54 48 00 3E 3B 15 67 E7 19 F8 65 E6 [17:17:47]GetLastDocTimeStamp 1729444577 [17:17:47]current date 1729444670 [17:17:47]FM_GetShiftState [17:17:47]SAM_PROTO_GetShiftState [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 13 01 00 [17:17:47]Write to MH i2c: E2 08 00 55 48 80 13 01 00 00 00 00 00 1A [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 55 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5F [17:17:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:17:47]wFMCommunicate OK [17:17:47]SAM_PROTO_GetShiftState done [17:17:47]FM_GetShiftState done [17:17:47]opened in 1729384303 [17:17:47]opened+sec_in_day 1729470703 [17:17:47]quantity*price = 5000 [17:17:47]sum+1 = 5001 [17:17:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 279 20.10.2024 17:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73953 ФПД: 194805519795149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171750&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73953&fm=194805519795149&tin=02508201610067®Number=0000000000161154&sum=13500 0 [17:17:48]StoreToDocumentArchive [17:17:48]shift 170 fd 73953 [17:17:48]save to /storage/0170/doc_00073953 [17:17:48]save last doc name /storage/0170/doc_00073953 to /storage/kkm_last_doc_name [17:17:48]save OK [17:17:48]Clear old archive folders... [17:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=399 [17:17:48]tlvbuf is B6FED280 [17:17:48]SAM_PROTO_ClearQueue [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 09 00 00 [17:17:48]Write to MH i2c: E2 08 00 62 48 80 09 00 00 00 00 00 00 1C [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 62 48 00 90 00 1E [17:17:48]RAPDU: 90 00 [17:17:48]wFMCommunicate OK [17:17:48]SAM_PROTO_ClearQueue done [17:17:48]KKMCreateOFDPacket [17:17:48]OFDProtocolAddRootSTLVToBuf [17:17:48]FM_MakeSignedData [17:17:48]FM_MakeSignedData [17:17:48]SAM_PROTO_SignData [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 0D 01 02 [17:17:48]Write to MH i2c: E2 08 00 63 48 80 0D 01 02 00 00 00 00 24 [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 63 48 00 90 00 1F [17:17:48]RAPDU: 90 00 [17:17:48]wFMCommunicate OK [17:17:48]wFMCommunicate request_size=255 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 0D 02 02 FA 03 00 8F 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 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 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 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 BC 34 00 00 00 00 EB 03 [17:17:48]Write to MH i2c: E2 02 01 64 48 80 0D 02 02 FA 00 03 00 8F 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 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 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 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 BC 34 00 00 00 00 EB 03 00 00 25 [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 64 48 00 90 00 20 [17:17:48]RAPDU: 90 00 [17:17:48]wFMCommunicate OK [17:17:48]wFMCommunicate request_size=158 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 3E 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 20 01 00 35 04 06 00 B1 2C B1 CE C3 CD [17:17:48]Write to MH i2c: E2 A1 00 65 48 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 3E 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 20 01 00 35 04 06 00 B1 2C B1 CE C3 CD 00 00 46 [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 03 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 03 00 65 48 00 90 00 21 [17:17:49]RAPDU: 90 00 [17:17:49]wFMCommunicate OK [17:17:49]wFMCommunicate request_size=4 [17:17:49]MH_SAM_APDU [17:17:49]CAPDU: 80 0D 03 02 [17:17:49]Write to MH i2c: E2 08 00 66 48 80 0D 03 02 00 00 00 00 29 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 0B 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 0B 00 66 48 00 09 A2 4B 17 27 1C C5 89 90 00 C8 [17:17:49]RAPDU: 09 A2 4B 17 27 1C C5 89 90 00 [17:17:49]wFMCommunicate OK [17:17:49]SAM_PROTO_SignData done [17:17:49]FM_MakeSignedData done [17:17:49]CreateOFDProtocolMessage [17:17:49]wFMCommunicate request_size=4 [17:17:49]MH_SAM_APDU [17:17:49]CAPDU: 80 11 00 00 [17:17:49]Write to MH i2c: E2 08 00 67 48 80 11 00 00 00 00 00 00 29 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 17 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 17 00 67 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 76 [17:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:17:49]wFMCommunicate OK [17:17:49]CreateOFDProtocolMessage done [17:17:49]OFDSenderStorePacket 73953 [17:17:49]StoreOFDPacket docnum=73953 [17:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A3 01 00 00 EB D9 9B 01 5A 0E 5A 03 01 00 03 00 8F 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 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 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 3E 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 20 01 00 35 04 06 00 B1 2C B1 CE C3 CD 09 A2 4B 17 27 1C C5 89 [17:17:49]CheckFolder [17:17:49]dirname=/storage/ofd_packets [17:17:49]CheckFolder done [17:17:49]ProducePacketName [17:17:49]name=ofd_packets/00073953 [17:17:49]NVStorageSaveData ofd_packets/00073953 [17:17:49]File name is /storage/ofd_packets/00073953 [17:17:49]Write 449 bytes [17:17:49]NVStorageSaveData done [17:17:49]OFDSenderStorePacket done [17:17:49]KKMCreateOFDPacket done [17:17:49]NVStorageSaveData kkm_last_timestamp [17:17:49]File name is /storage/kkm_last_timestamp [17:17:49]Write 4 bytes [17:17:49]NVStorageSaveData done [17:17:49]ExternCall_PrintAddStr [17:17:49]wPrintStart [17:17:49]Write to MH i2c: 01 00 00 68 48 B0 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 [17:17:49]MH_I2C_Read... [17:17:49]OFD Sender: Processing packet 73953 [packets to send 15, broken 14] [17:17:49]ProducePacketName [17:17:49]name=ofd_packets/00073953 [17:17:49]OFD Sender: To server: pG, [17:17:49]CommunicateWithHost lk.salyk.kg:30040 [17:17:49]ConnectInit lk.salyk.kg [17:17:49]Read from MH i2c: 01 07 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 68 48 00 00 00 00 00 FF 0F C5 [17:17:49]RasterBufferAndPrint [17:17:49]line Счет N : (3)272820 [17:17:49]line ИНН: 02508201610067 [17:17:49]line Контрольно-Кассовый Чек [17:17:49]line ПРОДАЖА [17:17:49]line Товар: 5449000005489 [17:17:49]line Вода Бонаква 1л б/г [17:17:49]line 1.000 * 50.00 [17:17:49]line = 50.00 [17:17:49]line НДС 12% НСП 1% [17:17:49]line > о реализуемом товаре [17:17:49]line Товар: 4600682557456 [17:17:49]line Напиток FLash up energy эн ж/б 0,5/0,45л [17:17:49]line 1.000 * 85.00 [17:17:49]line = 85.00 [17:17:49]line НДС 12% НСП 1% [17:17:49]line > о реализуемом товаре [17:17:49]line ИТОГО: 135.00 [17:17:49]line НСП 1% : 1.19 [17:17:49]line НДС 12% : 14.34 [17:17:49]line Наличными: 135.00 [17:17:49]line Безнал.: 0.00 [17:17:49]line Место: АЗС № 133 "Партнер Нефть" [17:17:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:17:49]line СНО: Общий режим [17:17:49]line Чек 279 20.10.2024 17:17 [17:17:49]line Смена: 170 ФФД: 1.0 [17:17:49]line ЗНМ: 0300000020 [17:17:49]line РНМ: 0000000000161154 [17:17:49]line Версия ККМ: v1.0 [17:17:49]line ФМ: 0000000000963323 [17:17:49]line ФД: 73953 [17:17:49]line ФПД: 194805519795149 [17:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171750&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73953&fm=194805519795149&tin=02508201610067®Number=0000000000161154&sum=13500 [17:17:49]line 0 [17:17:49]written 0, free lines is 4095 [17:17:49]Connected sock=10 [17:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A3 01 00 00 EB D9 9B 01 5A 0E 5A 03 01 00 03 00 8F 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 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 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 3E 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 20 01 00 35 04 06 00 B1 2C B1 CE C3 CD 09 A2 4B 17 27 1C C5 89 [17:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 47 BF 47 00 FB 40 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 39 36 33 33 32 33 10 04 04 00 E1 20 01 00 F4 03 04 00 22 E4 14 67 B6 04 01 00 00 72 89 F2 F8 84 59 ED 89 [17:17:49]CommunicateWithHost err = 0 [17:17:49]CheckOFDResponse [17:17:49]1017 (14) - 77093643461234 [17:17:49]1041 (16) - 0000000000963323 [17:17:49]1040 (4) - 73953 [17:17:49]1012 (4) - 20.10.2024 11:06 [17:17:49]1206 (1) - 0 [17:17:49]OFD Sender: Remove packet 73953 [17:17:49]ProducePacketName [17:17:49]name=ofd_packets/00073953 [17:17:49]NVStorageDeleteData [17:17:50]Write to MH i2c: 01 00 00 96 48 DE [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 96 48 00 00 00 00 00 76 0C 67 [17:17:50]RasterBufferAndPrint [17:17:50]line [17:17:50]line [17:17:50]line [17:17:50]line [17:17:50]line [17:17:50]written 0, free lines is 3198 [17:17:50]MH_Cut [17:17:50]Write to MH i2c: D1 01 00 9D 48 01 B7 [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: D1 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: D1 01 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: D1 01 00 9D 48 00 B6 [17:17:50]Write to MH i2c: 01 00 00 9E 48 E6 [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]OFD Sender: No OFD packet to send [17:17:50]*** Cut start [17:17:50]*** Partial cut [17:17:50]*** CUTSNS_PIN = 1 [17:17:51]*** CUTSNS_PIN = 0 [17:17:51]*** Brake cut motor [17:17:51]Read from MH i2c: 01 [17:17:51]MH_I2C_Read... [17:17:51]*** Stop cut motor [17:17:51]*** Cut end [17:17:51]Read from MH i2c: 01 07 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: 01 07 00 9E 48 00 00 00 00 00 FF 0F FB [17:17:51]process_action close_receipt done [17:17:51]requested_data is exist [17:17:51]produce_requested_data [17:17:51]requested_item fm.sn is exist - process it [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 11 00 00 [17:17:51]Write to MH i2c: E2 08 00 9F 48 80 11 00 00 00 00 00 00 61 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 17 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 17 00 9F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AE [17:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:17:51]wFMCommunicate OK [17:17:51]requested_item fd.num is exist - process it [17:17:51]SAM_PROTO_GetFieldsCounters [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 13 00 00 [17:17:51]Write to MH i2c: E2 08 00 A0 48 80 13 00 00 00 00 00 00 64 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 62 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 62 00 A0 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [17:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:51]wFMCommunicate OK [17:17:51]SAM_PROTO_GetFieldsCounters done [17:17:51]requested_item shift.num is exist - process it [17:17:51]requested_item shift.opened is exist - process it [17:17:51]req_shift_opened [17:17:51]FM_GetShiftState [17:17:51]SAM_PROTO_GetShiftState [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 13 01 00 [17:17:51]Write to MH i2c: E2 08 00 A1 48 80 13 01 00 00 00 00 00 66 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:51]Read from MH i2c: E2 0E 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 0E 00 A1 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AB [17:17:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:17:51]wFMCommunicate OK [17:17:51]SAM_PROTO_GetShiftState done [17:17:51]FM_GetShiftState done [17:17:51]req_shift_opened done [17:17:51]requested_item shift.open_date is exist - process it [17:17:51]req_shift_open_date [17:17:51]req_shift_open_date done [17:17:51]produce_requested_data done [17:17:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73953,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:17:51]process_action_free close_receipt [17:17:51]json_value_free [17:17:51]json_value_free done [17:17:51]process_json_proto returns [17:17:51]Send response to host [17:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73953,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:17:51]free response buf [17:17:51]execute_script done [17:17:51]execute_script returns [17:17:51]free content buf [17:17:51]Sock 9.Close socket [17:17:51]Sock 9.Thread stoped [17:17:55]OFD Sender: No OFD packet to send [17:17:56]accept exits with 8 [17:17:56]New connection [17:17:56]New thread 3067575652 created [17:17:56]Thread 3067432292 joined [17:17:56]Waiting for new connection... [17:17:56] Sock 8.Parse request [17:17:56]Sock 8.Check first char [17:17:56]Sock 8.First char is OK [17:17:56]request: POST /json_proto HTTP/1.0 [17:17:56]Method: POST [17:17:56]URL: /json_proto [17:17:56]Method is POST - this is cgi request [17:17:56]url: /json_proto [17:17:56]query_string will be loaded in cgi processing [17:17:56]execute_cgi json_proto POST (null) [17:17:56]execute_cgi path=json_proto method=POST [17:17:56]POST find Content-Length [17:17:56]Host: 172.17.44.196:8080 [17:17:56]Content-Length: 979 [17:17:56]Content-Type: application/json [17:17:56] [17:17:56]POST finish read [17:17:56]Found Content-Length = 979 [17:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:56]execute_script... [17:17: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 : (1)1963161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:56]POST & json_proto [17:17:56]process_json_proto [17:17:56]json parsed OK: [17:17:56]protocol is kg_v1.0 [17:17:56]action value=close_receipt [17:17:56]process_action close_receipt [17:17:56]cmd_close_receipt [17:17:56]MH_GetDate [17:17:56]Write to MH i2c: F0 00 00 A2 48 D9 [17:17:56]Write i2c OK [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: F0 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: F0 09 00 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: F0 09 00 A2 48 00 46 3B 15 67 E7 19 F8 65 3C [17:17:56]GetLastDocTimeStamp 1729444670 [17:17:56]current date 1729444678 [17:17:56]FM_GetShiftState [17:17:56]SAM_PROTO_GetShiftState [17:17:56]wFMCommunicate request_size=4 [17:17:56]MH_SAM_APDU [17:17:56]CAPDU: 80 13 01 00 [17:17:56]Write to MH i2c: E2 08 00 A3 48 80 13 01 00 00 00 00 00 68 [17:17:56]Write i2c OK [17:17:56]MH_I2C_Read... [17:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:56]Read from MH i2c: E2 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: E2 0E 00 [17:17:56]MH_I2C_Read... [17:17:56]Read from MH i2c: E2 0E 00 A3 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AD [17:17:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:17:56]wFMCommunicate OK [17:17:56]SAM_PROTO_GetShiftState done [17:17:56]FM_GetShiftState done [17:17:56]opened in 1729384303 [17:17:56]opened+sec_in_day 1729470703 [17:17:56]quantity*price = 500004 [17:17:56]sum+1 = 500006 [17:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 280 20.10.2024 17:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 66.49 сом ФМ: 0000000000963323 ФД: 73954 ФПД: 32775104343515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171759&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73954&fm=32775104343515&tin=02508201610067®Number=0000000000161154&sum=500000 [17:17:57]StoreToDocumentArchive [17:17:57]shift 170 fd 73954 [17:17:57]save to /storage/0170/doc_00073954 [17:17:57]save last doc name /storage/0170/doc_00073954 to /storage/kkm_last_doc_name [17:17:57]save OK [17:17:57]Clear old archive folders... [17:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:17:57]tlvbuf is 004B8AE0 [17:17:57]SAM_PROTO_ClearQueue [17:17:57]wFMCommunicate request_size=4 [17:17:57]MH_SAM_APDU [17:17:57]CAPDU: 80 09 00 00 [17:17:57]Write to MH i2c: E2 08 00 B0 48 80 09 00 00 00 00 00 00 6A [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:57]Read from MH i2c: E2 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 B0 48 00 90 00 6C [17:17:57]RAPDU: 90 00 [17:17:57]wFMCommunicate OK [17:17:57]SAM_PROTO_ClearQueue done [17:17:57]KKMCreateOFDPacket [17:17:57]OFDProtocolAddRootSTLVToBuf [17:17:57]FM_MakeSignedData [17:17:57]FM_MakeSignedData [17:17:57]SAM_PROTO_SignData [17:17:57]wFMCommunicate request_size=4 [17:17:57]MH_SAM_APDU [17:17:57]CAPDU: 80 0D 01 02 [17:17:57]Write to MH i2c: E2 08 00 B1 48 80 0D 01 02 00 00 00 00 72 [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:57]Read from MH i2c: E2 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 B1 48 00 90 00 6D [17:17:57]RAPDU: 90 00 [17:17:57]wFMCommunicate OK [17:17:57]wFMCommunicate request_size=255 [17:17:57]MH_SAM_APDU [17:17:57]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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 20 01 00 35 04 06 00 1D CF 0C 73 [17:17:57]Write to MH i2c: E2 02 01 B2 48 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 20 01 00 35 04 06 00 1D CF 0C 73 00 00 1C [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 [17:17:57]MH_I2C_Read... [17:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:57]Read from MH i2c: E2 03 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 B2 48 00 90 00 6E [17:17:57]RAPDU: 90 00 [17:17:57]wFMCommunicate OK [17:17:57]wFMCommunicate request_size=7 [17:17:57]MH_SAM_APDU [17:17:57]CAPDU: 80 0D 02 02 02 AD DB [17:17:57]Write to MH i2c: E2 0A 00 B3 48 80 0D 02 02 02 00 AD DB 00 00 01 [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:57]Read from MH i2c: E2 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 03 00 B3 48 00 90 00 6F [17:17:57]RAPDU: 90 00 [17:17:57]wFMCommunicate OK [17:17:57]wFMCommunicate request_size=4 [17:17:57]MH_SAM_APDU [17:17:57]CAPDU: 80 0D 03 02 [17:17:57]Write to MH i2c: E2 08 00 B4 48 80 0D 03 02 00 00 00 00 77 [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:57]Read from MH i2c: E2 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 0B 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 0B 00 B4 48 00 7B F2 A2 99 22 F7 68 4B 90 00 EC [17:17:57]RAPDU: 7B F2 A2 99 22 F7 68 4B 90 00 [17:17:57]wFMCommunicate OK [17:17:57]SAM_PROTO_SignData done [17:17:57]FM_MakeSignedData done [17:17:57]CreateOFDProtocolMessage [17:17:57]wFMCommunicate request_size=4 [17:17:57]MH_SAM_APDU [17:17:57]CAPDU: 80 11 00 00 [17:17:57]Write to MH i2c: E2 08 00 B5 48 80 11 00 00 00 00 00 00 77 [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:57]Read from MH i2c: E2 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 17 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: E2 17 00 B5 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C4 [17:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:17:57]wFMCommunicate OK [17:17:57]CreateOFDProtocolMessage done [17:17:57]OFDSenderStorePacket 73954 [17:17:57]StoreOFDPacket docnum=73954 [17:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 16 65 04 01 0A EF 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 20 01 00 35 04 06 00 1D CF 0C 73 AD DB 7B F2 A2 99 22 F7 68 4B [17:17:57]CheckFolder [17:17:57]dirname=/storage/ofd_packets [17:17:57]CheckFolder done [17:17:57]ProducePacketName [17:17:57]name=ofd_packets/00073954 [17:17:57]NVStorageSaveData ofd_packets/00073954 [17:17:57]File name is /storage/ofd_packets/00073954 [17:17:57]Write 298 bytes [17:17:57]NVStorageSaveData done [17:17:57]OFDSenderStorePacket done [17:17:57]KKMCreateOFDPacket done [17:17:57]NVStorageSaveData kkm_last_timestamp [17:17:57]File name is /storage/kkm_last_timestamp [17:17:57]Write 4 bytes [17:17:57]NVStorageSaveData done [17:17:57]ExternCall_PrintAddStr [17:17:57]wPrintStart [17:17:57]Write to MH i2c: 01 00 00 B6 48 FE [17:17:57]Write i2c OK [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: 01 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: 01 07 00 [17:17:57]MH_I2C_Read... [17:17:57]Read from MH i2c: 01 07 00 B6 48 00 00 00 00 00 FF 0F 13 [17:17:58]RasterBufferAndPrint [17:17:58]line Счет N : (1)1963161 [17:17:58]line ИНН: 02508201610067 [17:17:58]line Контрольно-Кассовый Чек [17:17:58]line ПРОДАЖА [17:17:58]line ТРК (МРК, ГНК) : 21 [17:17:58]line Товар: 2710194210 [17:17:58]line ДТ-К-5 [17:17:58]line 66.490 * 75.20 [17:17:58]line = 5000.05 [17:17:58]line НДС 12% НСП 1% [17:17:58]line > о реализуемом товаре [17:17:58]line ОКРУГЛЕНИЕ: -0.05 [17:17:58]line ИТОГО: 5000.00 [17:17:58]line Внесено: 5000.00 [17:17:58]line СДАЧА: 0.00 [17:17:58]line НСП 1% : 44.25 [17:17:58]line НДС 12% : 530.98 [17:17:58]line Наличными: 5000.00 [17:17:58]line Безнал.: 0.00 [17:17:58]line Место: АЗС № 133 "Партнер Нефть" [17:17:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:17:58]line СНО: Общий режим [17:17:58]line Чек 280 20.10.2024 17:17 [17:17:58]line Смена: 170 ФФД: 1.0 [17:17:58]line ЗНМ: 0300000020 [17:17:58]line РНМ: 0000000000161154 [17:17:58]line Версия ККМ: v1.0 [17:17:58]line [17:17:58]line Дисконтная программа [17:17:58]line ДТ [17:17:58]line номер 133 [17:17:58]line сэкономлено 66.49 сом [17:17:58]line ФМ: 0000000000963323 [17:17:58]line ФД: 73954 [17:17:58]line ФПД: 32775104343515 [17:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171759&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73954&fm=32775104343515&tin=02508201610067®Number=0000000000161154&sum=500000 [17:17:58]OFD Sender: Processing packet 73954 [packets to send 15, broken 14] [17:17:58]ProducePacketName [17:17:58]name=ofd_packets/00073954 [17:17:58]OFD Sender: To server: pG, [17:17:58]CommunicateWithHost lk.salyk.kg:30040 [17:17:58]ConnectInit lk.salyk.kg [17:17:58]written 0, free lines is 4095 [17:17:58]Connected sock=10 [17:17:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 16 65 04 01 0A EF 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 3B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 20 01 00 35 04 06 00 1D CF 0C 73 AD DB 7B F2 A2 99 22 F7 68 4B [17:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E5 1E 47 00 87 FC 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 39 36 33 33 32 33 10 04 04 00 E2 20 01 00 F4 03 04 00 2A E4 14 67 B6 04 01 00 00 1A 81 BE 84 3E A4 75 D6 [17:17:58]CommunicateWithHost err = 0 [17:17:58]CheckOFDResponse [17:17:58]1017 (14) - 77093643461234 [17:17:58]1041 (16) - 0000000000963323 [17:17:58]1040 (4) - 73954 [17:17:58]1012 (4) - 20.10.2024 11:06 [17:17:58]1206 (1) - 0 [17:17:58]OFD Sender: Remove packet 73954 [17:17:58]ProducePacketName [17:17:58]name=ofd_packets/00073954 [17:17:58]NVStorageDeleteData [17:17:58]Write to MH i2c: 01 00 00 E5 48 2D [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 07 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: 01 07 00 E5 48 00 00 00 00 00 60 0C A0 [17:17:58]RasterBufferAndPrint [17:17:58]line [17:17:58]line [17:17:58]line [17:17:58]line [17:17:58]line [17:17:58]written 0, free lines is 3179 [17:17:58]MH_Cut [17:17:58]Write to MH i2c: D1 01 00 EC 48 01 06 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: D1 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: D1 01 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: D1 01 00 EC 48 00 05 [17:17:58]Write to MH i2c: 01 00 00 ED 48 35 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]OFD Sender: No OFD packet to send [17:17:59]*** Cut start [17:17:59]*** Partial cut [17:17:59]*** CUTSNS_PIN = 1 [17:17:59]*** CUTSNS_PIN = 0 [17:17:59]*** Brake cut motor [17:18:00]Read from MH i2c: 01 [17:18:00]MH_I2C_Read... [17:18:00]*** Stop cut motor [17:18:00]*** Cut end [17:18:00]Read from MH i2c: 01 07 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 ED 48 00 00 00 00 00 FF 0F 4A [17:18:00]process_action close_receipt done [17:18:00]requested_data is exist [17:18:00]produce_requested_data [17:18:00]requested_item fm.sn is exist - process it [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 11 00 00 [17:18:00]Write to MH i2c: E2 08 00 EE 48 80 11 00 00 00 00 00 00 B0 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 17 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 17 00 EE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [17:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:18:00]wFMCommunicate OK [17:18:00]requested_item fd.num is exist - process it [17:18:00]SAM_PROTO_GetFieldsCounters [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 13 00 00 [17:18:00]Write to MH i2c: E2 08 00 EF 48 80 13 00 00 00 00 00 00 B3 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 62 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 62 00 EF 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:18:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_GetFieldsCounters done [17:18:00]requested_item shift.num is exist - process it [17:18:00]requested_item shift.opened is exist - process it [17:18:00]req_shift_opened [17:18:00]FM_GetShiftState [17:18:00]SAM_PROTO_GetShiftState [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 13 01 00 [17:18:00]Write to MH i2c: E2 08 00 F0 48 80 13 01 00 00 00 00 00 B5 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0E 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0E 00 F0 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FA [17:18:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_GetShiftState done [17:18:00]FM_GetShiftState done [17:18:00]req_shift_opened done [17:18:00]requested_item shift.open_date is exist - process it [17:18:00]req_shift_open_date [17:18:00]req_shift_open_date done [17:18:00]produce_requested_data done [17:18:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73954,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:18:00]process_action_free close_receipt [17:18:00]json_value_free [17:18:00]json_value_free done [17:18:00]process_json_proto returns [17:18:00]Send response to host [17:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73954,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:18:00]free response buf [17:18:00]execute_script done [17:18:00]execute_script returns [17:18:00]free content buf [17:18:00]Sock 8.Close socket [17:18:00]Sock 8.Thread stoped [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:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:34]accept exits with 9 [17:21:34]New connection [17:21:34]New thread 3067432292 created [17:21:34]Thread 3067575652 joined [17:21:34]Waiting for new connection... [17:21:34] Sock 9.Parse request [17:21:34]Sock 9.Check first char [17:21:34]Sock 9.First char is OK [17:21:34]request: POST /json_proto HTTP/1.0 [17:21:34]Method: POST [17:21:34]URL: /json_proto [17:21:34]Method is POST - this is cgi request [17:21:34]url: /json_proto [17:21:34]query_string will be loaded in cgi processing [17:21:34]execute_cgi json_proto POST (null) [17:21:34]execute_cgi path=json_proto method=POST [17:21:34]POST find Content-Length [17:21:34]Host: 172.17.44.196:8080 [17:21:34]Content-Length: 629 [17:21:34]Content-Type: application/json [17:21:34] [17:21:34]POST finish read [17:21:34]Found Content-Length = 629 [17:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272821", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:34]execute_script... [17:21: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)272821", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:34]POST & json_proto [17:21:34]process_json_proto [17:21:34]json parsed OK: [17:21:34]protocol is kg_v1.0 [17:21:34]action value=close_receipt [17:21:34]process_action close_receipt [17:21:34]cmd_close_receipt [17:21:34]MH_GetDate [17:21:34]Write to MH i2c: F0 00 00 F1 48 28 [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: F0 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: F0 09 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: F0 09 00 F1 48 00 20 3C 15 67 E7 19 F8 65 66 [17:21:34]GetLastDocTimeStamp 1729444679 [17:21:34]current date 1729444896 [17:21:34]FM_GetShiftState [17:21:34]SAM_PROTO_GetShiftState [17:21:34]wFMCommunicate request_size=4 [17:21:34]MH_SAM_APDU [17:21:34]CAPDU: 80 13 01 00 [17:21:34]Write to MH i2c: E2 08 00 F2 48 80 13 01 00 00 00 00 00 B7 [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:34]Read from MH i2c: E2 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: E2 0E 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: E2 0E 00 F2 48 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FC [17:21:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:21:34]wFMCommunicate OK [17:21:34]SAM_PROTO_GetShiftState done [17:21:34]FM_GetShiftState done [17:21:34]opened in 1729384303 [17:21:34]opened+sec_in_day 1729470703 [17:21:34]quantity*price = 12000 [17:21:34]sum+1 = 12001 [17:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 281 20.10.2024 17:21 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73955 ФПД: 48624300921344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172136&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73955&fm=48624300921344&tin=02508201610067®Number=0000000000161154&sum=12000 0 [17:21:35]StoreToDocumentArchive [17:21:35]shift 170 fd 73955 [17:21:35]save to /storage/0170/doc_00073955 [17:21:35]save last doc name /storage/0170/doc_00073955 to /storage/kkm_last_doc_name [17:21:35]save OK [17:21:35]Clear old archive folders... [17:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:21:35]tlvbuf is B6F72A50 [17:21:35]SAM_PROTO_ClearQueue [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 09 00 00 [17:21:35]Write to MH i2c: E2 08 00 FF 48 80 09 00 00 00 00 00 00 B9 [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 FF 48 00 90 00 BB [17:21:35]RAPDU: 90 00 [17:21:35]wFMCommunicate OK [17:21:35]SAM_PROTO_ClearQueue done [17:21:35]KKMCreateOFDPacket [17:21:35]OFDProtocolAddRootSTLVToBuf [17:21:35]FM_MakeSignedData [17:21:35]FM_MakeSignedData [17:21:35]SAM_PROTO_SignData [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 0D 01 02 [17:21:35]Write to MH i2c: E2 08 00 00 49 80 0D 01 02 00 00 00 00 C2 [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 00 49 00 90 00 BD [17:21:35]RAPDU: 90 00 [17:21:35]wFMCommunicate OK [17:21:35]wFMCommunicate request_size=255 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 01 00 00 F4 03 04 00 20 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [17:21:35]Write to MH i2c: E2 02 01 01 49 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 01 00 00 F4 03 04 00 20 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 5C [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 01 49 00 90 00 BE [17:21:35]RAPDU: 90 00 [17:21:35]wFMCommunicate OK [17:21:35]wFMCommunicate request_size=28 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 0D 02 02 17 36 33 33 32 33 10 04 04 00 E3 20 01 00 35 04 06 00 2C 39 3A 2F 12 00 [17:21:35]Write to MH i2c: E2 1F 00 02 49 80 0D 02 02 17 00 36 33 33 32 33 10 04 04 00 E3 20 01 00 35 04 06 00 2C 39 3A 2F 12 00 00 00 2F [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 03 00 02 49 00 90 00 BF [17:21:35]RAPDU: 90 00 [17:21:35]wFMCommunicate OK [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 0D 03 02 [17:21:35]Write to MH i2c: E2 08 00 03 49 80 0D 03 02 00 00 00 00 C7 [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 0B 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 0B 00 03 49 00 7C FD 78 FA 75 97 80 3F 90 00 7E [17:21:35]RAPDU: 7C FD 78 FA 75 97 80 3F 90 00 [17:21:35]wFMCommunicate OK [17:21:35]SAM_PROTO_SignData done [17:21:35]FM_MakeSignedData done [17:21:35]CreateOFDProtocolMessage [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 11 00 00 [17:21:35]Write to MH i2c: E2 08 00 04 49 80 11 00 00 00 00 00 00 C7 [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 17 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 17 00 04 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [17:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:21:35]wFMCommunicate OK [17:21:35]CreateOFDProtocolMessage done [17:21:35]OFDSenderStorePacket 73955 [17:21:35]StoreOFDPacket docnum=73955 [17:21:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 E2 16 19 01 C8 DF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 01 00 00 F4 03 04 00 20 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 20 01 00 35 04 06 00 2C 39 3A 2F 12 00 7C FD 78 FA 75 97 80 3F [17:21:35]CheckFolder [17:21:35]dirname=/storage/ofd_packets [17:21:35]CheckFolder done [17:21:35]ProducePacketName [17:21:35]name=ofd_packets/00073955 [17:21:35]NVStorageSaveData ofd_packets/00073955 [17:21:35]File name is /storage/ofd_packets/00073955 [17:21:35]Write 319 bytes [17:21:35]NVStorageSaveData done [17:21:35]OFDSenderStorePacket done [17:21:35]KKMCreateOFDPacket done [17:21:35]NVStorageSaveData kkm_last_timestamp [17:21:35]File name is /storage/kkm_last_timestamp [17:21:35]Write 4 bytes [17:21:35]NVStorageSaveData done [17:21:35]ExternCall_PrintAddStr [17:21:35]wPrintStart [17:21:35]Write to MH i2c: 01 00 00 05 49 4E [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: 01 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: 01 07 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: 01 07 00 05 49 00 00 00 00 00 FF 0F 63 [17:21:35]RasterBufferAndPrint [17:21:35]line Счет N : (3)272821 [17:21:35]line ИНН: 02508201610067 [17:21:35]line Контрольно-Кассовый Чек [17:21:35]line ПРОДАЖА [17:21:35]line Товар: 4620006996716 [17:21:35]line Водка Талка 0,1л [17:21:35]line 1.000 * 120.00 [17:21:35]line = 120.00 [17:21:35]line НДС 12% НСП 1% [17:21:35]line > о реализуемом товаре [17:21:35]line ИТОГО: 120.00 [17:21:35]line НСП 1% : 1.06 [17:21:35]line НДС 12% : 12.74 [17:21:35]line Наличными: 120.00 [17:21:35]line Безнал.: 0.00 [17:21:35]line Место: АЗС № 133 "Партнер Нефть" [17:21:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:21:35]line СНО: Общий режим [17:21:35]line Чек 281 20.10.2024 17:21 [17:21:35]line Смена: 170 ФФД: 1.0 [17:21:35]line ЗНМ: 0300000020 [17:21:35]line РНМ: 0000000000161154 [17:21:35]line Версия ККМ: v1.0 [17:21:35]line ФМ: 0000000000963323 [17:21:35]line ФД: 73955 [17:21:35]line ФПД: 48624300921344 [17:21:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172136&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73955&fm=48624300921344&tin=02508201610067®Number=0000000000161154&sum=12000 [17:21:35]line 0 [17:21:35]written 0, free lines is 4095 [17:21:35]OFD Sender: Processing packet 73955 [packets to send 15, broken 14] [17:21:35]ProducePacketName [17:21:35]name=ofd_packets/00073955 [17:21:35]OFD Sender: To server: pG, [17:21:36]CommunicateWithHost lk.salyk.kg:30040 [17:21:36]ConnectInit lk.salyk.kg [17:21:36]Write to MH i2c: 01 00 00 2C 49 75 [17:21:36]Write i2c OK [17:21:36]MH_I2C_Read... [17:21:36]Read from MH i2c: 01 [17:21:36]MH_I2C_Read... [17:21:36]Read from MH i2c: 01 07 00 [17:21:36]MH_I2C_Read... [17:21:36]Read from MH i2c: 01 07 00 2C 49 00 00 00 00 00 E4 0C 6C [17:21:36]RasterBufferAndPrint [17:21:36]line [17:21:36]line [17:21:36]line [17:21:36]line [17:21:36]line [17:21:36]written 0, free lines is 3304 [17:21:36]Connected sock=10 [17:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 E2 16 19 01 C8 DF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 01 00 00 F4 03 04 00 20 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 20 01 00 35 04 06 00 2C 39 3A 2F 12 00 7C FD 78 FA 75 97 80 3F [17:21:36]MH_Cut [17:21:36]Write to MH i2c: D1 01 00 33 49 01 4E [17:21:36]Write i2c OK [17:21:36]MH_I2C_Read... [17:21:36]Read from MH i2c: D1 [17:21:36]MH_I2C_Read... [17:21:36]Read from MH i2c: D1 01 00 [17:21:36]MH_I2C_Read... [17:21:36]Read from MH i2c: D1 01 00 33 49 00 4D [17:21:36]Write to MH i2c: 01 00 00 34 49 7D [17:21:36]Write i2c OK [17:21:36]MH_I2C_Read... [17:21:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A9 D3 47 00 FA E6 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 39 36 33 33 32 33 10 04 04 00 E3 20 01 00 F4 03 04 00 05 E5 14 67 B6 04 01 00 00 10 1C 4F C0 4E 89 03 54 [17:21:36]CommunicateWithHost err = 0 [17:21:36]CheckOFDResponse [17:21:36]1017 (14) - 77093643461234 [17:21:36]1041 (16) - 0000000000963323 [17:21:36]1040 (4) - 73955 [17:21:36]1012 (4) - 20.10.2024 11:09 [17:21:36]1206 (1) - 0 [17:21:36]OFD Sender: Remove packet 73955 [17:21:36]ProducePacketName [17:21:36]name=ofd_packets/00073955 [17:21:36]NVStorageDeleteData [17:21:37]OFD Sender: No OFD packet to send [17:21:37]*** Cut start [17:21:37]*** Partial cut [17:21:37]*** CUTSNS_PIN = 1 [17:21:37]*** CUTSNS_PIN = 0 [17:21:37]*** Brake cut motor [17:21:37]Read from MH i2c: 01 [17:21:37]MH_I2C_Read... [17:21:37]*** Stop cut motor [17:21:37]*** Cut end [17:21:37]Read from MH i2c: 01 07 00 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: 01 07 00 34 49 00 00 00 00 00 FF 0F 92 [17:21:37]process_action close_receipt done [17:21:37]requested_data is exist [17:21:37]produce_requested_data [17:21:37]requested_item fm.sn is exist - process it [17:21:37]wFMCommunicate request_size=4 [17:21:37]MH_SAM_APDU [17:21:37]CAPDU: 80 11 00 00 [17:21:37]Write to MH i2c: E2 08 00 35 49 80 11 00 00 00 00 00 00 F8 [17:21:37]Write i2c OK [17:21:37]MH_I2C_Read... [17:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:37]Read from MH i2c: E2 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: E2 17 00 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: E2 17 00 35 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 45 [17:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:21:37]wFMCommunicate OK [17:21:37]requested_item fd.num is exist - process it [17:21:37]SAM_PROTO_GetFieldsCounters [17:21:37]wFMCommunicate request_size=4 [17:21:37]MH_SAM_APDU [17:21:37]CAPDU: 80 13 00 00 [17:21:37]Write to MH i2c: E2 08 00 36 49 80 13 00 00 00 00 00 00 FB [17:21:37]Write i2c OK [17:21:37]MH_I2C_Read... [17:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:37]Read from MH i2c: E2 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: E2 62 00 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: E2 62 00 36 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [17:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:37]wFMCommunicate OK [17:21:37]SAM_PROTO_GetFieldsCounters done [17:21:37]requested_item shift.num is exist - process it [17:21:37]requested_item shift.opened is exist - process it [17:21:37]req_shift_opened [17:21:37]FM_GetShiftState [17:21:37]SAM_PROTO_GetShiftState [17:21:38]wFMCommunicate request_size=4 [17:21:38]MH_SAM_APDU [17:21:38]CAPDU: 80 13 01 00 [17:21:38]Write to MH i2c: E2 08 00 37 49 80 13 01 00 00 00 00 00 FD [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 0E 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 0E 00 37 49 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 42 [17:21:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:21:38]wFMCommunicate OK [17:21:38]SAM_PROTO_GetShiftState done [17:21:38]FM_GetShiftState done [17:21:38]req_shift_opened done [17:21:38]requested_item shift.open_date is exist - process it [17:21:38]req_shift_open_date [17:21:38]req_shift_open_date done [17:21:38]produce_requested_data done [17:21:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73955,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:21:38]process_action_free close_receipt [17:21:38]json_value_free [17:21:38]json_value_free done [17:21:38]process_json_proto returns [17:21:38]Send response to host [17:21:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73955,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:21:38]free response buf [17:21:38]execute_script done [17:21:38]execute_script returns [17:21:38]free content buf [17:21:38]Sock 9.Close socket [17:21:38]Sock 9.Thread stoped [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:55]accept exits with 8 [17:23:55]New connection [17:23:55]New thread 3067575652 created [17:23:55]Thread 3067432292 joined [17:23:55]Waiting for new connection... [17:23:55] Sock 8.Parse request [17:23:55]Sock 8.Check first char [17:23:55]Sock 8.First char is OK [17:23:55]request: POST /json_proto HTTP/1.0 [17:23:55]Method: POST [17:23:55]URL: /json_proto [17:23:55]Method is POST - this is cgi request [17:23:55]url: /json_proto [17:23:55]query_string will be loaded in cgi processing [17:23:55]execute_cgi json_proto POST (null) [17:23:55]execute_cgi path=json_proto method=POST [17:23:55]POST find Content-Length [17:23:55]Host: 172.17.44.196:8080 [17:23:55]Content-Length: 1123 [17:23:55]Content-Type: application/json [17:23:55] [17:23:55]POST finish read [17:23:55]Found Content-Length = 1123 [17:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272822", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:55]execute_script... [17:23: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 : (3)272822", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:55]POST & json_proto [17:23:55]process_json_proto [17:23:55]json parsed OK: [17:23:55]protocol is kg_v1.0 [17:23:55]action value=close_receipt [17:23:55]process_action close_receipt [17:23:55]cmd_close_receipt [17:23:55]MH_GetDate [17:23:55]Write to MH i2c: F0 00 00 38 49 70 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: F0 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: F0 09 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: F0 09 00 38 49 00 AE 3C 15 67 E7 19 F8 65 3C [17:23:55]GetLastDocTimeStamp 1729444896 [17:23:55]current date 1729445038 [17:23:55]FM_GetShiftState [17:23:55]SAM_PROTO_GetShiftState [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 13 01 00 [17:23:55]Write to MH i2c: E2 08 00 39 49 80 13 01 00 00 00 00 00 FF [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 39 49 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 44 [17:23:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetShiftState done [17:23:55]FM_GetShiftState done [17:23:55]opened in 1729384303 [17:23:55]opened+sec_in_day 1729470703 [17:23:55]quantity*price = 11000 [17:23:55]sum+1 = 11001 [17:23:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.33 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 282 20.10.2024 17:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73956 ФПД: 69679574163861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73956&fm=69679574163861&tin=02508201610067®Number=0000000000161154&sum=29500 0 [17:23:56]StoreToDocumentArchive [17:23:56]shift 170 fd 73956 [17:23:56]save to /storage/0170/doc_00073956 [17:23:56]save last doc name /storage/0170/doc_00073956 to /storage/kkm_last_doc_name [17:23:56]save OK [17:23:56]Clear old archive folders... [17:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=485 [17:23:56]tlvbuf is 003EE1E0 [17:23:56]SAM_PROTO_ClearQueue [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 09 00 00 [17:23:56]Write to MH i2c: E2 08 00 46 49 80 09 00 00 00 00 00 00 01 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 46 49 00 90 00 03 [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_ClearQueue done [17:23:56]KKMCreateOFDPacket [17:23:56]OFDProtocolAddRootSTLVToBuf [17:23:56]FM_MakeSignedData [17:23:56]FM_MakeSignedData [17:23:56]SAM_PROTO_SignData [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 01 02 [17:23:56]Write to MH i2c: E2 08 00 47 49 80 0D 01 02 00 00 00 00 09 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 47 49 00 90 00 04 [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=255 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 02 02 FA 03 00 E5 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 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 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 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 [17:23:57]Write to MH i2c: E2 02 01 48 49 80 0D 02 02 FA 00 03 00 E5 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 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 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 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 00 00 CB [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]OFD Sender: No OFD packet to send [17:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:57]Read from MH i2c: E2 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 03 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 03 00 48 49 00 90 00 05 [17:23:57]RAPDU: 90 00 [17:23:57]wFMCommunicate OK [17:23:57]wFMCommunicate request_size=244 [17:23:57]MH_SAM_APDU [17:23:57]CAPDU: 80 0D 02 02 EF D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 01 00 00 F4 03 04 00 AE 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 20 01 00 35 04 06 00 3F 5F 8A 44 21 95 [17:23:57]Write to MH i2c: E2 F7 00 49 49 80 0D 02 02 EF 00 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 01 00 00 F4 03 04 00 AE 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 20 01 00 35 04 06 00 3F 5F 8A 44 21 95 00 00 8A [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:57]Read from MH i2c: E2 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 03 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 03 00 49 49 00 90 00 06 [17:23:57]RAPDU: 90 00 [17:23:57]wFMCommunicate OK [17:23:57]wFMCommunicate request_size=4 [17:23:57]MH_SAM_APDU [17:23:57]CAPDU: 80 0D 03 02 [17:23:57]Write to MH i2c: E2 08 00 4A 49 80 0D 03 02 00 00 00 00 0E [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:57]Read from MH i2c: E2 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 0B 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 0B 00 4A 49 00 6A CB B0 6F B1 82 29 33 90 00 F2 [17:23:57]RAPDU: 6A CB B0 6F B1 82 29 33 90 00 [17:23:57]wFMCommunicate OK [17:23:57]SAM_PROTO_SignData done [17:23:57]FM_MakeSignedData done [17:23:57]CreateOFDProtocolMessage [17:23:57]wFMCommunicate request_size=4 [17:23:57]MH_SAM_APDU [17:23:57]CAPDU: 80 11 00 00 [17:23:57]Write to MH i2c: E2 08 00 4B 49 80 11 00 00 00 00 00 00 0E [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:57]Read from MH i2c: E2 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 17 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: E2 17 00 4B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5B [17:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:23:57]wFMCommunicate OK [17:23:57]CreateOFDProtocolMessage done [17:23:57]OFDSenderStorePacket 73956 [17:23:57]StoreOFDPacket docnum=73956 [17:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F9 01 00 00 4D 8F F1 01 BD FF 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 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 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 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 01 00 00 F4 03 04 00 AE 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 20 01 00 35 04 06 00 3F 5F 8A 44 21 95 6A CB B0 6F B1 82 29 33 [17:23:57]CheckFolder [17:23:57]dirname=/storage/ofd_packets [17:23:57]CheckFolder done [17:23:57]ProducePacketName [17:23:57]name=ofd_packets/00073956 [17:23:57]NVStorageSaveData ofd_packets/00073956 [17:23:57]File name is /storage/ofd_packets/00073956 [17:23:57]Write 535 bytes [17:23:57]NVStorageSaveData done [17:23:57]OFDSenderStorePacket done [17:23:57]KKMCreateOFDPacket done [17:23:57]NVStorageSaveData kkm_last_timestamp [17:23:57]File name is /storage/kkm_last_timestamp [17:23:57]Write 4 bytes [17:23:57]NVStorageSaveData done [17:23:57]ExternCall_PrintAddStr [17:23:57]wPrintStart [17:23:57]Write to MH i2c: 01 00 00 4C 49 95 [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 4C 49 00 00 00 00 00 FF 0F AA [17:23:57]RasterBufferAndPrint [17:23:57]line Счет N : (3)272822 [17:23:57]line ИНН: 02508201610067 [17:23:57]line Контрольно-Кассовый Чек [17:23:57]line ПРОДАЖА [17:23:57]line Товар: 4700003241276 [17:23:57]line Напиток Молочный ТАН 1л [17:23:57]line 1.000 * 110.00 [17:23:57]line = 110.00 [17:23:57]line НДС 12% НСП 1% [17:23:57]line > о реализуемом товаре [17:23:57]line Товар: 48743587 [17:23:57]line Сигареты Winston XStyle Silver [17:23:57]line 1.000 * 140.00 [17:23:57]line = 140.00 [17:23:57]line НДС 12% НСП 1% [17:23:57]line > о реализуемом товаре [17:23:57]line Товар: 42069942 [17:23:57]line Жев Orbit White Fresh Mint [17:23:57]line 1.000 * 45.00 [17:23:57]line = 45.00 [17:23:57]line НДС 12% НСП 1% [17:23:57]line > о реализуемом товаре [17:23:57]line ИТОГО: 295.00 [17:23:57]line НСП 1% : 2.61 [17:23:57]line НДС 12% : 31.33 [17:23:57]line Наличными: 295.00 [17:23:57]line Безнал.: 0.00 [17:23:57]line Место: АЗС № 133 "Партнер Нефть" [17:23:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:23:57]line СНО: Общий режим [17:23:57]line Чек 282 20.10.2024 17:23 [17:23:57]line Смена: 170 ФФД: 1.0 [17:23:57]line ЗНМ: 0300000020 [17:23:57]line РНМ: 0000000000161154 [17:23:57]line Версия ККМ: v1.0 [17:23:57]line ФМ: 0000000000963323 [17:23:57]line ФД: 73956 [17:23:57]line ФПД: 69679574163861 [17:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73956&fm=69679574163861&tin=02508201610067®Number=0000000000161154&sum=29500 [17:23:57]line 0 [17:23:57]written 0, free lines is 4095 [17:23:57]OFD Sender: Processing packet 73956 [packets to send 15, broken 14] [17:23:57]ProducePacketName [17:23:57]name=ofd_packets/00073956 [17:23:57]OFD Sender: To server: pG, [17:23:57]CommunicateWithHost lk.salyk.kg:30040 [17:23:57]ConnectInit lk.salyk.kg [17:23:57]Connected sock=10 [17:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F9 01 00 00 4D 8F F1 01 BD FF 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 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 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 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 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 01 00 00 F4 03 04 00 AE 3C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 20 01 00 35 04 06 00 3F 5F 8A 44 21 95 6A CB B0 6F B1 82 29 33 [17:23:58]Write to MH i2c: 01 00 00 80 49 C9 [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 80 49 00 00 00 00 00 17 0C F3 [17:23:58]RasterBufferAndPrint [17:23:58]line [17:23:58]line [17:23:58]line [17:23:58]line [17:23:58]line [17:23:58]written 0, free lines is 3101 [17:23:58]MH_Cut [17:23:58]Write to MH i2c: D1 01 00 87 49 01 A2 [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: D1 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: D1 01 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: D1 01 00 87 49 00 A1 [17:23:58]Write to MH i2c: 01 00 00 88 49 D1 [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2F 1E 47 00 40 AD 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 39 36 33 33 32 33 10 04 04 00 E4 20 01 00 F4 03 04 00 93 E5 14 67 B6 04 01 00 00 99 7A F5 4F C6 7B 0C EA [17:23:58]CommunicateWithHost err = 0 [17:23:58]CheckOFDResponse [17:23:58]1017 (14) - 77093643461234 [17:23:58]1041 (16) - 0000000000963323 [17:23:58]1040 (4) - 73956 [17:23:58]1012 (4) - 20.10.2024 11:12 [17:23:58]1206 (1) - 0 [17:23:58]OFD Sender: Remove packet 73956 [17:23:58]ProducePacketName [17:23:58]name=ofd_packets/00073956 [17:23:58]NVStorageDeleteData [17:23:58]OFD Sender: No OFD packet to send [17:23:59]*** Cut start [17:23:59]*** Partial cut [17:23:59]*** CUTSNS_PIN = 1 [17:23:59]*** CUTSNS_PIN = 0 [17:23:59]*** Brake cut motor [17:23:59]Read from MH i2c: 01 [17:23:59]MH_I2C_Read... [17:23:59]*** Stop cut motor [17:23:59]*** Cut end [17:23:59]Read from MH i2c: 01 07 00 [17:23:59]MH_I2C_Read... [17:23:59]Read from MH i2c: 01 07 00 88 49 00 00 00 00 00 FF 0F E6 [17:23:59]process_action close_receipt done [17:23:59]requested_data is exist [17:23:59]produce_requested_data [17:23:59]requested_item fm.sn is exist - process it [17:23:59]wFMCommunicate request_size=4 [17:23:59]MH_SAM_APDU [17:23:59]CAPDU: 80 11 00 00 [17:23:59]Write to MH i2c: E2 08 00 89 49 80 11 00 00 00 00 00 00 4C [17:23:59]Write i2c OK [17:23:59]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 17 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 17 00 89 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 99 [17:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:24:00]wFMCommunicate OK [17:24:00]requested_item fd.num is exist - process it [17:24:00]SAM_PROTO_GetFieldsCounters [17:24:00]wFMCommunicate request_size=4 [17:24:00]MH_SAM_APDU [17:24:00]CAPDU: 80 13 00 00 [17:24:00]Write to MH i2c: E2 08 00 8A 49 80 13 00 00 00 00 00 00 4F [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:00]Read from MH i2c: E2 62 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 62 00 8A 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:24:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:00]wFMCommunicate OK [17:24:00]SAM_PROTO_GetFieldsCounters done [17:24:00]requested_item shift.num is exist - process it [17:24:00]requested_item shift.opened is exist - process it [17:24:00]req_shift_opened [17:24:00]FM_GetShiftState [17:24:00]SAM_PROTO_GetShiftState [17:24:00]wFMCommunicate request_size=4 [17:24:00]MH_SAM_APDU [17:24:00]CAPDU: 80 13 01 00 [17:24:00]Write to MH i2c: E2 08 00 8B 49 80 13 01 00 00 00 00 00 51 [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 0E 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 0E 00 8B 49 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 96 [17:24:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:24:00]wFMCommunicate OK [17:24:00]SAM_PROTO_GetShiftState done [17:24:00]FM_GetShiftState done [17:24:00]req_shift_opened done [17:24:00]requested_item shift.open_date is exist - process it [17:24:00]req_shift_open_date [17:24:00]req_shift_open_date done [17:24:00]produce_requested_data done [17:24:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73956,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:24:00]process_action_free close_receipt [17:24:00]json_value_free [17:24:00]json_value_free done [17:24:00]process_json_proto returns [17:24:00]Send response to host [17:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73956,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:24:00]free response buf [17:24:00]execute_script done [17:24:00]execute_script returns [17:24:00]free content buf [17:24:00]Sock 8.Close socket [17:24:00]Sock 8.Thread stoped [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:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:57]accept exits with 9 [17:26:57]New connection [17:26:57]New thread 3067432292 created [17:26:57]Thread 3067575652 joined [17:26:57]Waiting for new connection... [17:26:57] Sock 9.Parse request [17:26:57]Sock 9.Check first char [17:26:57]Sock 9.First char is OK [17:26:57]request: POST /json_proto HTTP/1.0 [17:26:57]Method: POST [17:26:57]URL: /json_proto [17:26:57]Method is POST - this is cgi request [17:26:57]url: /json_proto [17:26:57]query_string will be loaded in cgi processing [17:26:57]execute_cgi json_proto POST (null) [17:26:57]execute_cgi path=json_proto method=POST [17:26:57]POST find Content-Length [17:26:57]Host: 172.17.44.196:8080 [17:26:57]Content-Length: 656 [17:26:57]Content-Type: application/json [17:26:57] [17:26:57]POST finish read [17:26:57]Found Content-Length = 656 [17:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272823", "tax_sys" : 0, "items" : [ { "code": "4870216765026", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Silver Selection", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 282.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:57]execute_script... [17:26: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)272823", "tax_sys" : 0, "items" : [ { "code": "4870216765026", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Silver Selection", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 282.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:57]POST & json_proto [17:26:57]process_json_proto [17:26:57]json parsed OK: [17:26:57]protocol is kg_v1.0 [17:26:57]action value=close_receipt [17:26:57]process_action close_receipt [17:26:57]cmd_close_receipt [17:26:57]MH_GetDate [17:26:57]Write to MH i2c: F0 00 00 8C 49 C4 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: F0 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: F0 09 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: F0 09 00 8C 49 00 63 3D 15 67 E7 19 F8 65 46 [17:26:57]GetLastDocTimeStamp 1729445038 [17:26:57]current date 1729445219 [17:26:57]FM_GetShiftState [17:26:57]SAM_PROTO_GetShiftState [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 13 01 00 [17:26:57]Write to MH i2c: E2 08 00 8D 49 80 13 01 00 00 00 00 00 53 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0E 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0E 00 8D 49 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 98 [17:26:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:26:57]wFMCommunicate OK [17:26:57]SAM_PROTO_GetShiftState done [17:26:57]FM_GetShiftState done [17:26:57]opened in 1729384303 [17:26:57]opened+sec_in_day 1729470703 [17:26:57]quantity*price = 28200 [17:26:57]sum+1 = 28201 [17:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 282.00 НСП 1% : 2.50 НДС 12% : 29.95 Наличными: 282.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 283 20.10.2024 17:26 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73957 ФПД: 25515258950270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172659&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73957&fm=25515258950270&tin=02508201610067®Number=0000000000161154&sum=28200 0 [17:26:58]StoreToDocumentArchive [17:26:58]shift 170 fd 73957 [17:26:58]save to /storage/0170/doc_00073957 [17:26:58]save last doc name /storage/0170/doc_00073957 to /storage/kkm_last_doc_name [17:26:58]save OK [17:26:58]Clear old archive folders... [17:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=292 [17:26:58]tlvbuf is 00338850 [17:26:58]SAM_PROTO_ClearQueue [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 09 00 00 [17:26:58]Write to MH i2c: E2 08 00 9A 49 80 09 00 00 00 00 00 00 55 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 9A 49 00 90 00 57 [17:26:58]RAPDU: 90 00 [17:26:58]wFMCommunicate OK [17:26:58]SAM_PROTO_ClearQueue done [17:26:58]KKMCreateOFDPacket [17:26:58]OFDProtocolAddRootSTLVToBuf [17:26:58]FM_MakeSignedData [17:26:58]FM_MakeSignedData [17:26:58]SAM_PROTO_SignData [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 0D 01 02 [17:26:58]Write to MH i2c: E2 08 00 9B 49 80 0D 01 02 00 00 00 00 5D [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 9B 49 00 90 00 58 [17:26:58]RAPDU: 90 00 [17:26:58]wFMCommunicate OK [17:26:58]wFMCommunicate request_size=255 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 28 6E 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 01 00 00 F4 03 04 00 63 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [17:26:58]Write to MH i2c: E2 02 01 9C 49 80 0D 02 02 FA 00 03 00 24 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 28 6E 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 01 00 00 F4 03 04 00 63 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 76 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 9C 49 00 90 00 59 [17:26:58]RAPDU: 90 00 [17:26:58]wFMCommunicate OK [17:26:58]wFMCommunicate request_size=51 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 0D 02 02 2E 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 20 01 00 35 04 06 00 17 34 BB F2 32 7E [17:26:58]Write to MH i2c: E2 36 00 9D 49 80 0D 02 02 2E 00 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 20 01 00 35 04 06 00 17 34 BB F2 32 7E 00 00 92 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 03 00 9D 49 00 90 00 5A [17:26:58]RAPDU: 90 00 [17:26:58]wFMCommunicate OK [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 0D 03 02 [17:26:58]Write to MH i2c: E2 08 00 9E 49 80 0D 03 02 00 00 00 00 62 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 0B 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 0B 00 9E 49 00 EA CE 4E A9 49 E8 36 E6 90 00 5F [17:26:58]RAPDU: EA CE 4E A9 49 E8 36 E6 90 00 [17:26:58]wFMCommunicate OK [17:26:58]SAM_PROTO_SignData done [17:26:58]FM_MakeSignedData done [17:26:58]CreateOFDProtocolMessage [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 11 00 00 [17:26:58]Write to MH i2c: E2 08 00 9F 49 80 11 00 00 00 00 00 00 62 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 17 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 17 00 9F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AF [17:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:26:58]wFMCommunicate OK [17:26:58]CreateOFDProtocolMessage done [17:26:58]OFDSenderStorePacket 73957 [17:26:58]StoreOFDPacket docnum=73957 [17:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 38 01 00 00 FF A3 30 01 FF 4B 5A 03 01 00 03 00 24 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 28 6E 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 01 00 00 F4 03 04 00 63 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 20 01 00 35 04 06 00 17 34 BB F2 32 7E EA CE 4E A9 49 E8 36 E6 [17:26:58]CheckFolder [17:26:58]dirname=/storage/ofd_packets [17:26:58]CheckFolder done [17:26:58]ProducePacketName [17:26:58]name=ofd_packets/00073957 [17:26:58]NVStorageSaveData ofd_packets/00073957 [17:26:58]File name is /storage/ofd_packets/00073957 [17:26:58]Write 342 bytes [17:26:58]NVStorageSaveData done [17:26:58]OFDSenderStorePacket done [17:26:58]KKMCreateOFDPacket done [17:26:58]NVStorageSaveData kkm_last_timestamp [17:26:58]File name is /storage/kkm_last_timestamp [17:26:58]Write 4 bytes [17:26:58]NVStorageSaveData done [17:26:58]ExternCall_PrintAddStr [17:26:58]wPrintStart [17:26:58]Write to MH i2c: 01 00 00 A0 49 E9 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: 01 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: 01 07 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: 01 07 00 A0 49 00 00 00 00 00 FF 0F FE [17:26:58]RasterBufferAndPrint [17:26:58]line Счет N : (3)272823 [17:26:58]line ИНН: 02508201610067 [17:26:58]line Контрольно-Кассовый Чек [17:26:58]line ПРОДАЖА [17:26:58]line Товар: 4870216765026 [17:26:58]line Нагр.Таб.Палоч. HEETS Silver Selection [17:26:58]line 2.000 * 141.00 [17:26:58]line = 282.00 [17:26:58]line НДС 12% НСП 1% [17:26:58]line > о реализуемом товаре [17:26:58]line ИТОГО: 282.00 [17:26:58]line НСП 1% : 2.50 [17:26:58]line НДС 12% : 29.95 [17:26:58]line Наличными: 282.00 [17:26:58]line Безнал.: 0.00 [17:26:58]line Место: АЗС № 133 "Партнер Нефть" [17:26:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:26:58]line СНО: Общий режим [17:26:58]line Чек 283 20.10.2024 17:26 [17:26:58]line Смена: 170 ФФД: 1.0 [17:26:58]line ЗНМ: 0300000020 [17:26:58]line РНМ: 0000000000161154 [17:26:58]line Версия ККМ: v1.0 [17:26:58]line ФМ: 0000000000963323 [17:26:58]line ФД: 73957 [17:26:58]line ФПД: 25515258950270 [17:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172659&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73957&fm=25515258950270&tin=02508201610067®Number=0000000000161154&sum=28200 [17:26:59]line 0 [17:26:59]OFD Sender: Processing packet 73957 [packets to send 15, broken 14] [17:26:59]ProducePacketName [17:26:59]name=ofd_packets/00073957 [17:26:59]OFD Sender: To server: pG, [17:26:59]CommunicateWithHost lk.salyk.kg:30040 [17:26:59]ConnectInit lk.salyk.kg [17:26:59]written 0, free lines is 4095 [17:26:59]Connected sock=10 [17:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 38 01 00 00 FF A3 30 01 FF 4B 5A 03 01 00 03 00 24 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 28 6E 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 01 00 00 F4 03 04 00 63 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 20 01 00 35 04 06 00 17 34 BB F2 32 7E EA CE 4E A9 49 E8 36 E6 [17:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6E CC 47 00 42 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 39 36 33 33 32 33 10 04 04 00 E5 20 01 00 F4 03 04 00 48 E6 14 67 B6 04 01 00 00 85 40 56 9B 9F C8 A9 22 [17:26:59]CommunicateWithHost err = 0 [17:26:59]CheckOFDResponse [17:26:59]1017 (14) - 77093643461234 [17:26:59]1041 (16) - 0000000000963323 [17:26:59]1040 (4) - 73957 [17:26:59]1012 (4) - 20.10.2024 11:15 [17:26:59]1206 (1) - 0 [17:26:59]OFD Sender: Remove packet 73957 [17:26:59]ProducePacketName [17:26:59]name=ofd_packets/00073957 [17:26:59]NVStorageDeleteData [17:26:59]Write to MH i2c: 01 00 00 C8 49 11 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 C8 49 00 00 00 00 00 E4 0C 08 [17:26:59]RasterBufferAndPrint [17:26:59]line [17:26:59]line [17:26:59]line [17:26:59]line [17:26:59]line [17:26:59]written 0, free lines is 3306 [17:26:59]MH_Cut [17:26:59]Write to MH i2c: D1 01 00 CF 49 01 EA [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: D1 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: D1 01 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: D1 01 00 CF 49 00 E9 [17:26:59]Write to MH i2c: 01 00 00 D0 49 19 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:27:00]OFD Sender: No OFD packet to send [17:27:00]*** Cut start [17:27:00]*** Partial cut [17:27:00]*** CUTSNS_PIN = 1 [17:27:00]*** CUTSNS_PIN = 0 [17:27:00]*** Brake cut motor [17:27:01]Read from MH i2c: 01 [17:27:01]MH_I2C_Read... [17:27:01]*** Stop cut motor [17:27:01]*** Cut end [17:27:01]Read from MH i2c: 01 07 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 D0 49 00 00 00 00 00 FF 0F 2E [17:27:01]process_action close_receipt done [17:27:01]requested_data is exist [17:27:01]produce_requested_data [17:27:01]requested_item fm.sn is exist - process it [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 11 00 00 [17:27:01]Write to MH i2c: E2 08 00 D1 49 80 11 00 00 00 00 00 00 94 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 17 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 17 00 D1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E1 [17:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:27:01]wFMCommunicate OK [17:27:01]requested_item fd.num is exist - process it [17:27:01]SAM_PROTO_GetFieldsCounters [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 13 00 00 [17:27:01]Write to MH i2c: E2 08 00 D2 49 80 13 00 00 00 00 00 00 97 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 62 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 62 00 D2 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_GetFieldsCounters done [17:27:01]requested_item shift.num is exist - process it [17:27:01]requested_item shift.opened is exist - process it [17:27:01]req_shift_opened [17:27:01]FM_GetShiftState [17:27:01]SAM_PROTO_GetShiftState [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 13 01 00 [17:27:01]Write to MH i2c: E2 08 00 D3 49 80 13 01 00 00 00 00 00 99 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0E 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0E 00 D3 49 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DE [17:27:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_GetShiftState done [17:27:01]FM_GetShiftState done [17:27:01]req_shift_opened done [17:27:01]requested_item shift.open_date is exist - process it [17:27:01]req_shift_open_date [17:27:01]req_shift_open_date done [17:27:01]produce_requested_data done [17:27:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73957,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:27:01]process_action_free close_receipt [17:27:01]json_value_free [17:27:01]json_value_free done [17:27:01]process_json_proto returns [17:27:01]Send response to host [17:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73957,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:27:01]free response buf [17:27:01]execute_script done [17:27:01]execute_script returns [17:27:01]free content buf [17:27:01]Sock 9.Close socket [17:27:01]Sock 9.Thread stoped [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:07]accept exits with 8 [17:28:07]New connection [17:28:07]New thread 3067575652 created [17:28:07]Thread 3067432292 joined [17:28:07]Waiting for new connection... [17:28:07] Sock 8.Parse request [17:28:07]Sock 8.Check first char [17:28:07]Sock 8.First char is OK [17:28:07]request: POST /json_proto HTTP/1.0 [17:28:07]Method: POST [17:28:07]URL: /json_proto [17:28:07]Method is POST - this is cgi request [17:28:07]url: /json_proto [17:28:07]query_string will be loaded in cgi processing [17:28:07]execute_cgi json_proto POST (null) [17:28:07]execute_cgi path=json_proto method=POST [17:28:07]POST find Content-Length [17:28:07]Host: 172.17.44.196:8080 [17:28:07]Content-Length: 616 [17:28:07]Content-Type: application/json [17:28:07] [17:28:07]POST finish read [17:28:07]Found Content-Length = 616 [17:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272824", "tax_sys" : 0, "items" : [ { "code": "48743273", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Touch", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:07]execute_script... [17:28: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)272824", "tax_sys" : 0, "items" : [ { "code": "48743273", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Touch", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:07]POST & json_proto [17:28:07]process_json_proto [17:28:07]json parsed OK: [17:28:07]protocol is kg_v1.0 [17:28:07]action value=close_receipt [17:28:07]process_action close_receipt [17:28:07]cmd_close_receipt [17:28:07]MH_GetDate [17:28:07]Write to MH i2c: F0 00 00 D4 49 0C [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: F0 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: F0 09 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: F0 09 00 D4 49 00 AA 3D 15 67 E7 19 F8 65 D5 [17:28:07]GetLastDocTimeStamp 1729445219 [17:28:07]current date 1729445290 [17:28:07]FM_GetShiftState [17:28:07]SAM_PROTO_GetShiftState [17:28:07]wFMCommunicate request_size=4 [17:28:07]MH_SAM_APDU [17:28:07]CAPDU: 80 13 01 00 [17:28:07]Write to MH i2c: E2 08 00 D5 49 80 13 01 00 00 00 00 00 9B [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:07]Read from MH i2c: E2 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 0E 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 0E 00 D5 49 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E0 [17:28:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:28:07]wFMCommunicate OK [17:28:07]SAM_PROTO_GetShiftState done [17:28:07]FM_GetShiftState done [17:28:07]opened in 1729384303 [17:28:07]opened+sec_in_day 1729470703 [17:28:07]quantity*price = 27000 [17:28:07]sum+1 = 27001 [17:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 284 20.10.2024 17:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73958 ФПД: 249014693656138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172810&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73958&fm=249014693656138&tin=02508201610067®Number=0000000000161154&sum=27000 0 [17:28:08]StoreToDocumentArchive [17:28:08]shift 170 fd 73958 [17:28:08]save to /storage/0170/doc_00073958 [17:28:08]save last doc name /storage/0170/doc_00073958 to /storage/kkm_last_doc_name [17:28:08]save OK [17:28:08]Clear old archive folders... [17:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=268 [17:28:08]tlvbuf is 0048FCC0 [17:28:08]SAM_PROTO_ClearQueue [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 09 00 00 [17:28:08]Write to MH i2c: E2 08 00 E2 49 80 09 00 00 00 00 00 00 9D [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 E2 49 00 90 00 9F [17:28:08]RAPDU: 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_ClearQueue done [17:28:08]KKMCreateOFDPacket [17:28:08]OFDProtocolAddRootSTLVToBuf [17:28:08]FM_MakeSignedData [17:28:08]FM_MakeSignedData [17:28:08]SAM_PROTO_SignData [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 0D 01 02 [17:28:08]Write to MH i2c: E2 08 00 E3 49 80 0D 01 02 00 00 00 00 A5 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 E3 49 00 90 00 A0 [17:28:08]RAPDU: 90 00 [17:28:08]wFMCommunicate OK [17:28:08]wFMCommunicate request_size=255 [17:28:08]MH_SAM_APDU [17:28:08]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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 01 00 00 F4 03 04 00 AA 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [17:28:08]Write to MH i2c: E2 02 01 E4 49 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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 01 00 00 F4 03 04 00 AA 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 AF [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 E4 49 00 90 00 A1 [17:28:08]RAPDU: 90 00 [17:28:08]wFMCommunicate OK [17:28:08]wFMCommunicate request_size=27 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 0D 02 02 16 33 33 32 33 10 04 04 00 E6 20 01 00 35 04 06 00 E2 7A 40 5B F6 4A [17:28:08]Write to MH i2c: E2 1E 00 E5 49 80 0D 02 02 16 00 33 33 32 33 10 04 04 00 E6 20 01 00 35 04 06 00 E2 7A 40 5B F6 4A 00 00 34 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:08]Read from MH i2c: E2 03 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 E5 49 00 90 00 A2 [17:28:08]RAPDU: 90 00 [17:28:08]wFMCommunicate OK [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 0D 03 02 [17:28:08]Write to MH i2c: E2 08 00 E6 49 80 0D 03 02 00 00 00 00 AA [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0B 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0B 00 E6 49 00 E8 57 71 FE 7C 99 32 8A 90 00 2A [17:28:08]RAPDU: E8 57 71 FE 7C 99 32 8A 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_SignData done [17:28:08]FM_MakeSignedData done [17:28:08]CreateOFDProtocolMessage [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 11 00 00 [17:28:08]Write to MH i2c: E2 08 00 E7 49 80 11 00 00 00 00 00 00 AA [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 17 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 17 00 E7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [17:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:28:08]wFMCommunicate OK [17:28:08]CreateOFDProtocolMessage done [17:28:08]OFDSenderStorePacket 73958 [17:28:08]StoreOFDPacket docnum=73958 [17:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 46 1A 18 01 90 12 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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 01 00 00 F4 03 04 00 AA 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 20 01 00 35 04 06 00 E2 7A 40 5B F6 4A E8 57 71 FE 7C 99 32 8A [17:28:08]CheckFolder [17:28:08]dirname=/storage/ofd_packets [17:28:08]CheckFolder done [17:28:08]ProducePacketName [17:28:08]name=ofd_packets/00073958 [17:28:08]NVStorageSaveData ofd_packets/00073958 [17:28:08]File name is /storage/ofd_packets/00073958 [17:28:08]Write 318 bytes [17:28:08]NVStorageSaveData done [17:28:08]OFDSenderStorePacket done [17:28:08]KKMCreateOFDPacket done [17:28:08]NVStorageSaveData kkm_last_timestamp [17:28:08]File name is /storage/kkm_last_timestamp [17:28:08]Write 4 bytes [17:28:08]NVStorageSaveData done [17:28:08]ExternCall_PrintAddStr [17:28:08]wPrintStart [17:28:08]Write to MH i2c: 01 00 00 E8 49 31 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 E8 49 00 00 00 00 00 FF 0F 46 [17:28:08]RasterBufferAndPrint [17:28:08]line Счет N : (3)272824 [17:28:08]line ИНН: 02508201610067 [17:28:08]line Контрольно-Кассовый Чек [17:28:08]line ПРОДАЖА [17:28:08]line Товар: 48743273 [17:28:08]line Сигареты Marlboro Touch [17:28:08]line 2.000 * 135.00 [17:28:08]line = 270.00 [17:28:08]line НДС 12% НСП 1% [17:28:08]line > о реализуемом товаре [17:28:08]line ИТОГО: 270.00 [17:28:08]line НСП 1% : 2.39 [17:28:08]line НДС 12% : 28.67 [17:28:08]line Наличными: 270.00 [17:28:08]line Безнал.: 0.00 [17:28:08]line Место: АЗС № 133 "Партнер Нефть" [17:28:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:28:08]line СНО: Общий режим [17:28:08]line Чек 284 20.10.2024 17:28 [17:28:08]line Смена: 170 ФФД: 1.0 [17:28:08]line ЗНМ: 0300000020 [17:28:08]line РНМ: 0000000000161154 [17:28:08]line Версия ККМ: v1.0 [17:28:08]line ФМ: 0000000000963323 [17:28:08]line ФД: 73958 [17:28:08]line ФПД: 249014693656138 [17:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172810&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73958&fm=249014693656138&tin=02508201610067®Number=0000000000161154&sum=27000 [17:28:08]line 0 [17:28:08]written 0, free lines is 4095 [17:28:09]OFD Sender: Processing packet 73958 [packets to send 15, broken 14] [17:28:09]ProducePacketName [17:28:09]name=ofd_packets/00073958 [17:28:09]OFD Sender: To server: pG, [17:28:09]CommunicateWithHost lk.salyk.kg:30040 [17:28:09]ConnectInit lk.salyk.kg [17:28:09]Write to MH i2c: 01 00 00 0F 4A 59 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 0F 4A 00 00 00 00 00 F0 0C 5C [17:28:09]RasterBufferAndPrint [17:28:09]line [17:28:09]line [17:28:09]line [17:28:09]line [17:28:09]line [17:28:09]written 0, free lines is 3317 [17:28:09]MH_Cut [17:28:09]Write to MH i2c: D1 01 00 16 4A 01 32 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: D1 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: D1 01 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: D1 01 00 16 4A 00 31 [17:28:09]Write to MH i2c: 01 00 00 17 4A 61 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:10]*** Cut start [17:28:10]*** Partial cut [17:28:10]*** CUTSNS_PIN = 1 [17:28:10]*** CUTSNS_PIN = 0 [17:28:10]*** Brake cut motor [17:28:10]Read from MH i2c: 01 [17:28:10]MH_I2C_Read... [17:28:10]*** Stop cut motor [17:28:10]*** Cut end [17:28:10]Read from MH i2c: 01 07 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 17 4A 00 00 00 00 00 FF 0F 76 [17:28:10]process_action close_receipt done [17:28:10]requested_data is exist [17:28:10]produce_requested_data [17:28:10]requested_item fm.sn is exist - process it [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 11 00 00 [17:28:10]Write to MH i2c: E2 08 00 18 4A 80 11 00 00 00 00 00 00 DC [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 17 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 17 00 18 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 29 [17:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:28:10]wFMCommunicate OK [17:28:10]requested_item fd.num is exist - process it [17:28:10]SAM_PROTO_GetFieldsCounters [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 13 00 00 [17:28:10]Write to MH i2c: E2 08 00 19 4A 80 13 00 00 00 00 00 00 DF [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 62 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 62 00 19 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_GetFieldsCounters done [17:28:11]requested_item shift.num is exist - process it [17:28:11]requested_item shift.opened is exist - process it [17:28:11]req_shift_opened [17:28:11]FM_GetShiftState [17:28:11]SAM_PROTO_GetShiftState [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 13 01 00 [17:28:11]Write to MH i2c: E2 08 00 1A 4A 80 13 01 00 00 00 00 00 E1 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0E 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0E 00 1A 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 26 [17:28:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_GetShiftState done [17:28:11]FM_GetShiftState done [17:28:11]req_shift_opened done [17:28:11]requested_item shift.open_date is exist - process it [17:28:11]req_shift_open_date [17:28:11]req_shift_open_date done [17:28:11]produce_requested_data done [17:28:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73958,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:28:11]process_action_free close_receipt [17:28:11]json_value_free [17:28:11]json_value_free done [17:28:11]process_json_proto returns [17:28:11]Send response to host [17:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73958,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:28:11]free response buf [17:28:11]execute_script done [17:28:11]execute_script returns [17:28:11]free content buf [17:28:11]Sock 8.Close socket [17:28:11]Sock 8.Thread stoped [17:30:18]ConnectInit Can't connect to host [17:30:18]CommunicateWithHost connect error [17:30:18]CommunicateWithHost err = -1 [17:30:18]OFD Sender: Server communicate error [17:30:23]OFD Sender: Processing packet 73958 [packets to send 15, broken 14] [17:30:23]ProducePacketName [17:30:23]name=ofd_packets/00073958 [17:30:23]OFD Sender: To server: pG, [17:30:23]CommunicateWithHost lk.salyk.kg:30040 [17:30:23]ConnectInit lk.salyk.kg [17:30:23]Connected sock=8 [17:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 46 1A 18 01 90 12 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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 01 00 00 F4 03 04 00 AA 3D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 20 01 00 35 04 06 00 E2 7A 40 5B F6 4A E8 57 71 FE 7C 99 32 8A [17:30:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8F EE 47 00 1C 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 39 36 33 33 32 33 10 04 04 00 E6 20 01 00 F4 03 04 00 14 E7 14 67 B6 04 01 00 00 47 D9 04 B9 52 30 D7 06 [17:30:23]CommunicateWithHost err = 0 [17:30:23]CheckOFDResponse [17:30:23]1017 (14) - 77093643461234 [17:30:23]1041 (16) - 0000000000963323 [17:30:23]1040 (4) - 73958 [17:30:23]1012 (4) - 20.10.2024 11:18 [17:30:23]1206 (1) - 0 [17:30:23]OFD Sender: Remove packet 73958 [17:30:23]ProducePacketName [17:30:23]name=ofd_packets/00073958 [17:30:23]NVStorageDeleteData [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:04]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [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:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]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:53:59]accept exits with 9 [17:53:59]New connection [17:53:59]New thread 3067432292 created [17:53:59]Thread 3067575652 joined [17:53:59]Waiting for new connection... [17:53:59] Sock 9.Parse request [17:53:59]Sock 9.Check first char [17:53:59]Sock 9.First char is OK [17:53:59]request: POST /json_proto HTTP/1.0 [17:53:59]Method: POST [17:53:59]URL: /json_proto [17:53:59]Method is POST - this is cgi request [17:53:59]url: /json_proto [17:53:59]query_string will be loaded in cgi processing [17:53:59]execute_cgi json_proto POST (null) [17:53:59]execute_cgi path=json_proto method=POST [17:53:59]POST find Content-Length [17:53:59]Host: 172.17.44.196:8080 [17:53:59]Content-Length: 883 [17:53:59]Content-Type: application/json [17:53:59] [17:53:59]POST finish read [17:53:59]Found Content-Length = 883 [17:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272825", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [17:53:59]execute_script... [17:53:59]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)272825", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [17:53:59]POST & json_proto [17:53:59]process_json_proto [17:53:59]json parsed OK: [17:53:59]protocol is kg_v1.0 [17:53:59]action value=close_receipt [17:53:59]process_action close_receipt [17:53:59]cmd_close_receipt [17:53:59]MH_GetDate [17:53:59]Write to MH i2c: F0 00 00 1B 4A 54 [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: F0 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: F0 09 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: F0 09 00 1B 4A 00 BA 43 15 67 E7 19 F8 65 33 [17:53:59]GetLastDocTimeStamp 1729445290 [17:53:59]current date 1729446842 [17:53:59]FM_GetShiftState [17:53:59]SAM_PROTO_GetShiftState [17:53:59]wFMCommunicate request_size=4 [17:53:59]MH_SAM_APDU [17:53:59]CAPDU: 80 13 01 00 [17:53:59]Write to MH i2c: E2 08 00 1C 4A 80 13 01 00 00 00 00 00 E3 [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:59]Read from MH i2c: E2 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: E2 0E 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: E2 0E 00 1C 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 28 [17:53:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:53:59]wFMCommunicate OK [17:53:59]SAM_PROTO_GetShiftState done [17:53:59]FM_GetShiftState done [17:53:59]opened in 1729384303 [17:53:59]opened+sec_in_day 1729470703 [17:53:59]quantity*price = 14000 [17:53:59]sum+1 = 14001 [17:53:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 285 20.10.2024 17:54 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73959 ФПД: 58915990079827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175402&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73959&fm=58915990079827&tin=02508201610067®Number=0000000000161154&sum=15000 0 [17:54:00]StoreToDocumentArchive [17:54:00]shift 170 fd 73959 [17:54:00]save to /storage/0170/doc_00073959 [17:54:00]save last doc name /storage/0170/doc_00073959 to /storage/kkm_last_doc_name [17:54:00]save OK [17:54:00]Clear old archive folders... [17:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=383 [17:54:00]tlvbuf is 003E6BF0 [17:54:00]SAM_PROTO_ClearQueue [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 09 00 00 [17:54:00]Write to MH i2c: E2 08 00 29 4A 80 09 00 00 00 00 00 00 E5 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 29 4A 00 90 00 E7 [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]SAM_PROTO_ClearQueue done [17:54:00]KKMCreateOFDPacket [17:54:00]OFDProtocolAddRootSTLVToBuf [17:54:00]FM_MakeSignedData [17:54:00]FM_MakeSignedData [17:54:00]SAM_PROTO_SignData [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 01 02 [17:54:00]Write to MH i2c: E2 08 00 2A 4A 80 0D 01 02 00 00 00 00 ED [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 2A 4A 00 90 00 E8 [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=255 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [17:54:00]Write to MH i2c: E2 02 01 2B 4A 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 A6 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 2B 4A 00 90 00 E9 [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=142 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 02 02 89 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 1D 01 00 00 F4 03 04 00 BA 43 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 20 01 00 35 04 06 00 35 95 72 A9 09 53 [17:54:00]Write to MH i2c: E2 91 00 2C 4A 80 0D 02 02 89 00 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 1D 01 00 00 F4 03 04 00 BA 43 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 20 01 00 35 04 06 00 35 95 72 A9 09 53 00 00 BD [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:01]Read from MH i2c: E2 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 03 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 03 00 2C 4A 00 90 00 EA [17:54:01]RAPDU: 90 00 [17:54:01]wFMCommunicate OK [17:54:01]wFMCommunicate request_size=4 [17:54:01]MH_SAM_APDU [17:54:01]CAPDU: 80 0D 03 02 [17:54:01]Write to MH i2c: E2 08 00 2D 4A 80 0D 03 02 00 00 00 00 F2 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:01]Read from MH i2c: E2 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 0B 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 0B 00 2D 4A 00 C9 52 DB E0 26 D5 70 7C 90 00 B0 [17:54:01]RAPDU: C9 52 DB E0 26 D5 70 7C 90 00 [17:54:01]wFMCommunicate OK [17:54:01]SAM_PROTO_SignData done [17:54:01]FM_MakeSignedData done [17:54:01]CreateOFDProtocolMessage [17:54:01]wFMCommunicate request_size=4 [17:54:01]MH_SAM_APDU [17:54:01]CAPDU: 80 11 00 00 [17:54:01]Write to MH i2c: E2 08 00 2E 4A 80 11 00 00 00 00 00 00 F2 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:01]Read from MH i2c: E2 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 17 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 17 00 2E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [17:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:54:01]wFMCommunicate OK [17:54:01]CreateOFDProtocolMessage done [17:54:01]OFDSenderStorePacket 73959 [17:54:01]StoreOFDPacket docnum=73959 [17:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 93 01 00 00 F1 A3 8B 01 9A D2 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 1D 01 00 00 F4 03 04 00 BA 43 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 20 01 00 35 04 06 00 35 95 72 A9 09 53 C9 52 DB E0 26 D5 70 7C [17:54:01]CheckFolder [17:54:01]dirname=/storage/ofd_packets [17:54:01]CheckFolder done [17:54:01]ProducePacketName [17:54:01]name=ofd_packets/00073959 [17:54:01]NVStorageSaveData ofd_packets/00073959 [17:54:01]File name is /storage/ofd_packets/00073959 [17:54:01]Write 433 bytes [17:54:01]NVStorageSaveData done [17:54:01]OFDSenderStorePacket done [17:54:01]KKMCreateOFDPacket done [17:54:01]NVStorageSaveData kkm_last_timestamp [17:54:01]File name is /storage/kkm_last_timestamp [17:54:01]Write 4 bytes [17:54:01]NVStorageSaveData done [17:54:01]ExternCall_PrintAddStr [17:54:01]wPrintStart [17:54:01]Write to MH i2c: 01 00 00 2F 4A 79 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 2F 4A 00 00 00 00 00 FF 0F 8E [17:54:01]RasterBufferAndPrint [17:54:01]line Счет N : (3)272825 [17:54:01]line ИНН: 02508201610067 [17:54:01]line Контрольно-Кассовый Чек [17:54:01]line ПРОДАЖА [17:54:01]line Товар: 48747066 [17:54:01]line Сигареты Winston True Silver [17:54:01]line 1.000 * 140.00 [17:54:01]line = 140.00 [17:54:01]line НДС 12% НСП 1% [17:54:01]line > о реализуемом товаре [17:54:01]line Товар: 46226617 [17:54:01]line Mentos ПВ Нежная Мята 6*100*2г [17:54:01]line 1.000 * 10.00 [17:54:01]line = 10.00 [17:54:01]line НДС 12% НСП 1% [17:54:01]line > о реализуемом товаре [17:54:01]line ИТОГО: 150.00 [17:54:01]line НСП 1% : 1.33 [17:54:01]line НДС 12% : 15.93 [17:54:01]line Наличными: 150.00 [17:54:01]line Безнал.: 0.00 [17:54:01]line Место: АЗС № 133 "Партнер Нефть" [17:54:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:54:01]line СНО: Общий режим [17:54:01]line Чек 285 20.10.2024 17:54 [17:54:01]line Смена: 170 ФФД: 1.0 [17:54:01]line ЗНМ: 0300000020 [17:54:01]line РНМ: 0000000000161154 [17:54:01]line Версия ККМ: v1.0 [17:54:01]line ФМ: 0000000000963323 [17:54:01]line ФД: 73959 [17:54:01]line ФПД: 58915990079827 [17:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175402&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73959&fm=58915990079827&tin=02508201610067®Number=0000000000161154&sum=15000 [17:54:01]line 0 [17:54:01]OFD Sender: Processing packet 73959 [packets to send 15, broken 14] [17:54:01]ProducePacketName [17:54:01]name=ofd_packets/00073959 [17:54:01]OFD Sender: To server: pG, [17:54:01]CommunicateWithHost lk.salyk.kg:30040 [17:54:01]ConnectInit lk.salyk.kg [17:54:01]written 0, free lines is 4095 [17:54:02]Write to MH i2c: 01 00 00 5D 4A A7 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: 01 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: 01 07 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: 01 07 00 5D 4A 00 00 00 00 00 6F 0C 29 [17:54:02]RasterBufferAndPrint [17:54:02]line [17:54:02]line [17:54:02]line [17:54:02]line [17:54:02]line [17:54:02]written 0, free lines is 3189 [17:54:02]MH_Cut [17:54:02]Write to MH i2c: D1 01 00 64 4A 01 80 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: D1 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: D1 01 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: D1 01 00 64 4A 00 7F [17:54:02]Write to MH i2c: 01 00 00 65 4A AF [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:03]*** Cut start [17:54:03]*** Partial cut [17:54:03]*** CUTSNS_PIN = 1 [17:54:03]*** CUTSNS_PIN = 0 [17:54:03]*** Brake cut motor [17:54:03]Read from MH i2c: 01 [17:54:03]MH_I2C_Read... [17:54:03]*** Stop cut motor [17:54:03]*** Cut end [17:54:03]Read from MH i2c: 01 07 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 07 00 65 4A 00 00 00 00 00 FF 0F C4 [17:54:03]process_action close_receipt done [17:54:03]requested_data is exist [17:54:03]produce_requested_data [17:54:03]requested_item fm.sn is exist - process it [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 11 00 00 [17:54:03]Write to MH i2c: E2 08 00 66 4A 80 11 00 00 00 00 00 00 2A [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 17 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 17 00 66 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 77 [17:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:54:03]wFMCommunicate OK [17:54:03]requested_item fd.num is exist - process it [17:54:03]SAM_PROTO_GetFieldsCounters [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 13 00 00 [17:54:03]Write to MH i2c: E2 08 00 67 4A 80 13 00 00 00 00 00 00 2D [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 62 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 62 00 67 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [17:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:03]wFMCommunicate OK [17:54:03]SAM_PROTO_GetFieldsCounters done [17:54:03]requested_item shift.num is exist - process it [17:54:03]requested_item shift.opened is exist - process it [17:54:03]req_shift_opened [17:54:03]FM_GetShiftState [17:54:03]SAM_PROTO_GetShiftState [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 13 01 00 [17:54:03]Write to MH i2c: E2 08 00 68 4A 80 13 01 00 00 00 00 00 2F [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 0E 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 0E 00 68 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 74 [17:54:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:54:03]wFMCommunicate OK [17:54:03]SAM_PROTO_GetShiftState done [17:54:03]FM_GetShiftState done [17:54:03]req_shift_opened done [17:54:03]requested_item shift.open_date is exist - process it [17:54:03]req_shift_open_date [17:54:03]req_shift_open_date done [17:54:03]produce_requested_data done [17:54:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73959,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:54:03]process_action_free close_receipt [17:54:03]json_value_free [17:54:03]json_value_free done [17:54:03]process_json_proto returns [17:54:03]Send response to host [17:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73959,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:54:03]free response buf [17:54:03]execute_script done [17:54:03]execute_script returns [17:54:03]free content buf [17:54:03]Sock 9.Close socket [17:54:03]Sock 9.Thread stoped [17:56:14]ConnectInit Can't connect to host [17:56:14]CommunicateWithHost connect error [17:56:14]CommunicateWithHost err = -1 [17:56:14]OFD Sender: Server communicate error [17:56:19]OFD Sender: Processing packet 73959 [packets to send 15, broken 14] [17:56:19]ProducePacketName [17:56:19]name=ofd_packets/00073959 [17:56:19]OFD Sender: To server: pG, [17:56:19]CommunicateWithHost lk.salyk.kg:30040 [17:56:19]ConnectInit lk.salyk.kg [17:56:20]Connected sock=9 [17:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 93 01 00 00 F1 A3 8B 01 9A D2 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 1D 01 00 00 F4 03 04 00 BA 43 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 20 01 00 35 04 06 00 35 95 72 A9 09 53 C9 52 DB E0 26 D5 70 7C [17:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A0 9B 47 00 43 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 39 36 33 33 32 33 10 04 04 00 E7 20 01 00 F4 03 04 00 28 ED 14 67 B6 04 01 00 00 6A 50 8D 54 AF E7 06 C2 [17:56:20]CommunicateWithHost err = 0 [17:56:20]CheckOFDResponse [17:56:20]1017 (14) - 77093643461234 [17:56:20]1041 (16) - 0000000000963323 [17:56:20]1040 (4) - 73959 [17:56:20]1012 (4) - 20.10.2024 11:44 [17:56:20]1206 (1) - 0 [17:56:20]OFD Sender: Remove packet 73959 [17:56:20]ProducePacketName [17:56:20]name=ofd_packets/00073959 [17:56:20]NVStorageDeleteData [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:47]accept exits with 8 [17:57:47]New connection [17:57:47]New thread 3067575652 created [17:57:47]Thread 3067432292 joined [17:57:47]Waiting for new connection... [17:57:47] Sock 8.Parse request [17:57:47]Sock 8.Check first char [17:57:47]Sock 8.First char is OK [17:57:47]request: POST /json_proto HTTP/1.0 [17:57:47]Method: POST [17:57:47]URL: /json_proto [17:57:47]Method is POST - this is cgi request [17:57:47]url: /json_proto [17:57:47]query_string will be loaded in cgi processing [17:57:47]execute_cgi json_proto POST (null) [17:57:47]execute_cgi path=json_proto method=POST [17:57:47]POST find Content-Length [17:57:47]Host: 172.17.44.196:8080 [17:57:47]Content-Length: 620 [17:57:47]Content-Type: application/json [17:57:47] [17:57:47]POST finish read [17:57:47]Found Content-Length = 620 [17:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272826", "tax_sys" : 0, "items" : [ { "code": "48742795", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B L\u0026M Loft Blue", "price" : 118.00, "quantity" : 1.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:47]execute_script... [17:57: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)272826", "tax_sys" : 0, "items" : [ { "code": "48742795", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B L\u0026M Loft Blue", "price" : 118.00, "quantity" : 1.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:47]POST & json_proto [17:57:47]process_json_proto [17:57:47]json parsed OK: [17:57:47]protocol is kg_v1.0 [17:57:47]action value=close_receipt [17:57:47]process_action close_receipt [17:57:47]cmd_close_receipt [17:57:47]MH_GetDate [17:57:47]Write to MH i2c: F0 00 00 69 4A A2 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: F0 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: F0 09 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: F0 09 00 69 4A 00 9D 44 15 67 E7 19 F8 65 65 [17:57:47]GetLastDocTimeStamp 1729446842 [17:57:47]current date 1729447069 [17:57:47]FM_GetShiftState [17:57:47]SAM_PROTO_GetShiftState [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 13 01 00 [17:57:47]Write to MH i2c: E2 08 00 6A 4A 80 13 01 00 00 00 00 00 31 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 0E 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 0E 00 6A 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 76 [17:57:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:57:47]wFMCommunicate OK [17:57:47]SAM_PROTO_GetShiftState done [17:57:47]FM_GetShiftState done [17:57:47]opened in 1729384303 [17:57:47]opened+sec_in_day 1729470703 [17:57:47]quantity*price = 11800 [17:57:47]sum+1 = 11801 [17:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 286 20.10.2024 17:57 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73960 ФПД: 248742829238173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175749&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73960&fm=248742829238173&tin=02508201610067®Number=0000000000161154&sum=11800 0 [17:57:48]StoreToDocumentArchive [17:57:48]shift 170 fd 73960 [17:57:48]save to /storage/0170/doc_00073960 [17:57:48]save last doc name /storage/0170/doc_00073960 to /storage/kkm_last_doc_name [17:57:48]save OK [17:57:48]Clear old archive folders... [17:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=267 [17:57:48]tlvbuf is 003544A0 [17:57:48]SAM_PROTO_ClearQueue [17:57:48]wFMCommunicate request_size=4 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 09 00 00 [17:57:48]Write to MH i2c: E2 08 00 77 4A 80 09 00 00 00 00 00 00 33 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 77 4A 00 90 00 35 [17:57:48]RAPDU: 90 00 [17:57:48]wFMCommunicate OK [17:57:48]SAM_PROTO_ClearQueue done [17:57:48]KKMCreateOFDPacket [17:57:48]OFDProtocolAddRootSTLVToBuf [17:57:48]FM_MakeSignedData [17:57:48]FM_MakeSignedData [17:57:48]SAM_PROTO_SignData [17:57:48]wFMCommunicate request_size=4 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 0D 01 02 [17:57:48]Write to MH i2c: E2 08 00 78 4A 80 0D 01 02 00 00 00 00 3B [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 78 4A 00 90 00 36 [17:57:48]RAPDU: 90 00 [17:57:48]wFMCommunicate OK [17:57:48]wFMCommunicate request_size=255 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 38 37 34 32 37 39 35 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 6F 66 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 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 01 00 00 F4 03 04 00 9D 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 [17:57:48]Write to MH i2c: E2 02 01 79 4A 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 38 37 34 32 37 39 35 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 6F 66 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 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 01 00 00 F4 03 04 00 9D 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 00 00 F1 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 79 4A 00 90 00 37 [17:57:48]RAPDU: 90 00 [17:57:48]wFMCommunicate OK [17:57:48]wFMCommunicate request_size=26 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 0D 02 02 15 33 32 33 10 04 04 00 E8 20 01 00 35 04 06 00 E2 3A F3 FA 27 9D [17:57:48]Write to MH i2c: E2 1D 00 7A 4A 80 0D 02 02 15 00 33 32 33 10 04 04 00 E8 20 01 00 35 04 06 00 E2 3A F3 FA 27 9D 00 00 2D [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 03 00 7A 4A 00 90 00 38 [17:57:48]RAPDU: 90 00 [17:57:48]wFMCommunicate OK [17:57:48]wFMCommunicate request_size=4 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 0D 03 02 [17:57:48]Write to MH i2c: E2 08 00 7B 4A 80 0D 03 02 00 00 00 00 40 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 0B 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 0B 00 7B 4A 00 FA 03 A7 7E 52 42 39 47 90 00 77 [17:57:48]RAPDU: FA 03 A7 7E 52 42 39 47 90 00 [17:57:48]wFMCommunicate OK [17:57:48]SAM_PROTO_SignData done [17:57:48]FM_MakeSignedData done [17:57:48]CreateOFDProtocolMessage [17:57:48]wFMCommunicate request_size=4 [17:57:48]MH_SAM_APDU [17:57:48]CAPDU: 80 11 00 00 [17:57:48]Write to MH i2c: E2 08 00 7C 4A 80 11 00 00 00 00 00 00 40 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:48]Read from MH i2c: E2 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 17 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: E2 17 00 7C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8D [17:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:57:48]wFMCommunicate OK [17:57:48]CreateOFDProtocolMessage done [17:57:48]OFDSenderStorePacket 73960 [17:57:48]StoreOFDPacket docnum=73960 [17:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1F 01 00 00 40 46 17 01 8D 8A 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 38 37 34 32 37 39 35 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 6F 66 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 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 01 00 00 F4 03 04 00 9D 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 20 01 00 35 04 06 00 E2 3A F3 FA 27 9D FA 03 A7 7E 52 42 39 47 [17:57:48]CheckFolder [17:57:48]dirname=/storage/ofd_packets [17:57:48]CheckFolder done [17:57:48]ProducePacketName [17:57:48]name=ofd_packets/00073960 [17:57:48]NVStorageSaveData ofd_packets/00073960 [17:57:48]File name is /storage/ofd_packets/00073960 [17:57:48]Write 317 bytes [17:57:48]NVStorageSaveData done [17:57:48]OFDSenderStorePacket done [17:57:48]KKMCreateOFDPacket done [17:57:48]NVStorageSaveData kkm_last_timestamp [17:57:48]File name is /storage/kkm_last_timestamp [17:57:48]Write 4 bytes [17:57:48]NVStorageSaveData done [17:57:48]ExternCall_PrintAddStr [17:57:48]wPrintStart [17:57:48]Write to MH i2c: 01 00 00 7D 4A C7 [17:57:48]Write i2c OK [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: 01 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: 01 07 00 [17:57:48]MH_I2C_Read... [17:57:48]Read from MH i2c: 01 07 00 7D 4A 00 00 00 00 00 FF 0F DC [17:57:48]RasterBufferAndPrint [17:57:48]line Счет N : (3)272826 [17:57:48]line ИНН: 02508201610067 [17:57:48]line Контрольно-Кассовый Чек [17:57:48]line ПРОДАЖА [17:57:48]line Товар: 48742795 [17:57:48]line Сигареты L&M Loft Blue [17:57:48]line 1.000 * 118.00 [17:57:48]line = 118.00 [17:57:48]line НДС 12% НСП 1% [17:57:48]line > о реализуемом товаре [17:57:48]line ИТОГО: 118.00 [17:57:48]line НСП 1% : 1.04 [17:57:48]line НДС 12% : 12.53 [17:57:48]line Наличными: 118.00 [17:57:48]line Безнал.: 0.00 [17:57:48]line Место: АЗС № 133 "Партнер Нефть" [17:57:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:57:48]line СНО: Общий режим [17:57:48]line Чек 286 20.10.2024 17:57 [17:57:48]line Смена: 170 ФФД: 1.0 [17:57:48]line ЗНМ: 0300000020 [17:57:48]line РНМ: 0000000000161154 [17:57:48]line Версия ККМ: v1.0 [17:57:48]line ФМ: 0000000000963323 [17:57:48]line ФД: 73960 [17:57:48]line ФПД: 248742829238173 [17:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175749&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73960&fm=248742829238173&tin=02508201610067®Number=0000000000161154&sum=11800 [17:57:49]line 0 [17:57:49]OFD Sender: Processing packet 73960 [packets to send 15, broken 14] [17:57:49]ProducePacketName [17:57:49]name=ofd_packets/00073960 [17:57:49]OFD Sender: To server: pG, [17:57:49]CommunicateWithHost lk.salyk.kg:30040 [17:57:49]ConnectInit lk.salyk.kg [17:57:49]written 0, free lines is 4095 [17:57:49]Connected sock=10 [17:57:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1F 01 00 00 40 46 17 01 8D 8A 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 38 37 34 32 37 39 35 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 6F 66 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 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 01 00 00 F4 03 04 00 9D 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 20 01 00 35 04 06 00 E2 3A F3 FA 27 9D FA 03 A7 7E 52 42 39 47 [17:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 43 1E 47 00 4F 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 39 36 33 33 32 33 10 04 04 00 E8 20 01 00 F4 03 04 00 82 ED 14 67 B6 04 01 00 00 61 95 91 F7 07 F8 D1 80 [17:57:49]CommunicateWithHost err = 0 [17:57:49]CheckOFDResponse [17:57:49]1017 (14) - 77093643461234 [17:57:49]1041 (16) - 0000000000963323 [17:57:49]1040 (4) - 73960 [17:57:49]1012 (4) - 20.10.2024 11:46 [17:57:49]1206 (1) - 0 [17:57:49]OFD Sender: Remove packet 73960 [17:57:49]ProducePacketName [17:57:49]name=ofd_packets/00073960 [17:57:49]NVStorageDeleteData [17:57:49]Write to MH i2c: 01 00 00 A4 4A EE [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 07 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 07 00 A4 4A 00 00 00 00 00 F2 0C F3 [17:57:49]RasterBufferAndPrint [17:57:49]line [17:57:49]line [17:57:49]line [17:57:49]line [17:57:49]line [17:57:49]written 0, free lines is 3319 [17:57:49]MH_Cut [17:57:49]Write to MH i2c: D1 01 00 AB 4A 01 C7 [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: D1 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: D1 01 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: D1 01 00 AB 4A 00 C6 [17:57:49]Write to MH i2c: 01 00 00 AC 4A F6 [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]OFD Sender: No OFD packet to send [17:57:50]*** Cut start [17:57:50]*** Partial cut [17:57:50]*** CUTSNS_PIN = 1 [17:57:50]*** CUTSNS_PIN = 0 [17:57:50]*** Brake cut motor [17:57:50]Read from MH i2c: 01 [17:57:50]MH_I2C_Read... [17:57:50]*** Stop cut motor [17:57:50]*** Cut end [17:57:50]Read from MH i2c: 01 07 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: 01 07 00 AC 4A 00 00 00 00 00 FF 0F 0B [17:57:50]process_action close_receipt done [17:57:50]requested_data is exist [17:57:50]produce_requested_data [17:57:50]requested_item fm.sn is exist - process it [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 11 00 00 [17:57:50]Write to MH i2c: E2 08 00 AD 4A 80 11 00 00 00 00 00 00 71 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:51]Read from MH i2c: E2 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 17 00 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 17 00 AD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BE [17:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:57:51]wFMCommunicate OK [17:57:51]requested_item fd.num is exist - process it [17:57:51]SAM_PROTO_GetFieldsCounters [17:57:51]wFMCommunicate request_size=4 [17:57:51]MH_SAM_APDU [17:57:51]CAPDU: 80 13 00 00 [17:57:51]Write to MH i2c: E2 08 00 AE 4A 80 13 00 00 00 00 00 00 74 [17:57:51]Write i2c OK [17:57:51]MH_I2C_Read... [17:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:51]Read from MH i2c: E2 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 62 00 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 62 00 AE 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [17:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:51]wFMCommunicate OK [17:57:51]SAM_PROTO_GetFieldsCounters done [17:57:51]requested_item shift.num is exist - process it [17:57:51]requested_item shift.opened is exist - process it [17:57:51]req_shift_opened [17:57:51]FM_GetShiftState [17:57:51]SAM_PROTO_GetShiftState [17:57:51]wFMCommunicate request_size=4 [17:57:51]MH_SAM_APDU [17:57:51]CAPDU: 80 13 01 00 [17:57:51]Write to MH i2c: E2 08 00 AF 4A 80 13 01 00 00 00 00 00 76 [17:57:51]Write i2c OK [17:57:51]MH_I2C_Read... [17:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:51]Read from MH i2c: E2 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 0E 00 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 0E 00 AF 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [17:57:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:57:51]wFMCommunicate OK [17:57:51]SAM_PROTO_GetShiftState done [17:57:51]FM_GetShiftState done [17:57:51]req_shift_opened done [17:57:51]requested_item shift.open_date is exist - process it [17:57:51]req_shift_open_date [17:57:51]req_shift_open_date done [17:57:51]produce_requested_data done [17:57:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73960,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:57:51]process_action_free close_receipt [17:57:51]json_value_free [17:57:51]json_value_free done [17:57:51]process_json_proto returns [17:57:51]Send response to host [17:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73960,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:57:51]free response buf [17:57:51]execute_script done [17:57:51]execute_script returns [17:57:51]free content buf [17:57:51]Sock 8.Close socket [17:57:51]Sock 8.Thread stoped [17:57:52]accept exits with 9 [17:57:52]New connection [17:57:52]New thread 3067432292 created [17:57:52]Thread 3067575652 joined [17:57:52]Waiting for new connection... [17:57:52] Sock 9.Parse request [17:57:52]Sock 9.Check first char [17:57:52]Sock 9.First char is OK [17:57:52]request: POST /json_proto HTTP/1.0 [17:57:52]Method: POST [17:57:52]URL: /json_proto [17:57:52]Method is POST - this is cgi request [17:57:52]url: /json_proto [17:57:52]query_string will be loaded in cgi processing [17:57:52]execute_cgi json_proto POST (null) [17:57:52]execute_cgi path=json_proto method=POST [17:57:52]POST find Content-Length [17:57:52]Host: 172.17.44.196:8080 [17:57:52]Content-Length: 645 [17:57:52]Content-Type: application/json [17:57:52] [17:57:52]POST finish read [17:57:52]Found Content-Length = 645 [17:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272827", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:52]execute_script... [17:57: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)272827", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:52]POST & json_proto [17:57:52]process_json_proto [17:57:52]json parsed OK: [17:57:52]protocol is kg_v1.0 [17:57:52]action value=close_receipt [17:57:52]process_action close_receipt [17:57:52]cmd_close_receipt [17:57:52]MH_GetDate [17:57:52]Write to MH i2c: F0 00 00 B0 4A E9 [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 09 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 09 00 B0 4A 00 A2 44 15 67 E7 19 F8 65 B1 [17:57:52]GetLastDocTimeStamp 1729447069 [17:57:52]current date 1729447074 [17:57:52]FM_GetShiftState [17:57:52]SAM_PROTO_GetShiftState [17:57:52]wFMCommunicate request_size=4 [17:57:52]MH_SAM_APDU [17:57:52]CAPDU: 80 13 01 00 [17:57:52]Write to MH i2c: E2 08 00 B1 4A 80 13 01 00 00 00 00 00 78 [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:52]Read from MH i2c: E2 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0E 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0E 00 B1 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BD [17:57:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:57:52]wFMCommunicate OK [17:57:52]SAM_PROTO_GetShiftState done [17:57:52]FM_GetShiftState done [17:57:52]opened in 1729384303 [17:57:52]opened+sec_in_day 1729470703 [17:57:52]quantity*price = 1000 [17:57:52]sum+1 = 1001 [17:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 287 20.10.2024 17:57 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73961 ФПД: 25005736226293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175755&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73961&fm=25005736226293&tin=02508201610067®Number=0000000000161154&sum=1000 0 [17:57:52]StoreToDocumentArchive [17:57:52]shift 170 fd 73961 [17:57:52]save to /storage/0170/doc_00073961 [17:57:52]save last doc name /storage/0170/doc_00073961 to /storage/kkm_last_doc_name [17:57:52]save OK [17:57:52]Clear old archive folders... [17:57:52]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:57:52]tlvbuf is 00322DE0 [17:57:52]SAM_PROTO_ClearQueue [17:57:52]wFMCommunicate request_size=4 [17:57:52]MH_SAM_APDU [17:57:52]CAPDU: 80 09 00 00 [17:57:52]Write to MH i2c: E2 08 00 BE 4A 80 09 00 00 00 00 00 00 7A [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 BE 4A 00 90 00 7C [17:57:53]RAPDU: 90 00 [17:57:53]wFMCommunicate OK [17:57:53]SAM_PROTO_ClearQueue done [17:57:53]KKMCreateOFDPacket [17:57:53]OFDProtocolAddRootSTLVToBuf [17:57:53]FM_MakeSignedData [17:57:53]FM_MakeSignedData [17:57:53]SAM_PROTO_SignData [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 0D 01 02 [17:57:53]Write to MH i2c: E2 08 00 BF 4A 80 0D 01 02 00 00 00 00 82 [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 BF 4A 00 90 00 7D [17:57:53]RAPDU: 90 00 [17:57:53]wFMCommunicate OK [17:57:53]wFMCommunicate request_size=255 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 A3 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [17:57:53]Write to MH i2c: E2 02 01 C0 4A 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 A3 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 EC [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 C0 4A 00 90 00 7E [17:57:54]RAPDU: 90 00 [17:57:54]wFMCommunicate OK [17:57:54]wFMCommunicate request_size=39 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 20 01 00 35 04 06 00 16 BE 1A 06 6D F5 [17:57:54]Write to MH i2c: E2 2A 00 C1 4A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 20 01 00 35 04 06 00 16 BE 1A 06 6D F5 00 00 9A [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 03 00 C1 4A 00 90 00 7F [17:57:54]RAPDU: 90 00 [17:57:54]wFMCommunicate OK [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 0D 03 02 [17:57:54]Write to MH i2c: E2 08 00 C2 4A 80 0D 03 02 00 00 00 00 87 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 0B 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 0B 00 C2 4A 00 9B A1 C6 E4 CB 97 C5 6A 90 00 FF [17:57:54]RAPDU: 9B A1 C6 E4 CB 97 C5 6A 90 00 [17:57:54]wFMCommunicate OK [17:57:54]SAM_PROTO_SignData done [17:57:54]FM_MakeSignedData done [17:57:54]CreateOFDProtocolMessage [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 11 00 00 [17:57:54]Write to MH i2c: E2 08 00 C3 4A 80 11 00 00 00 00 00 00 87 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 C3 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [17:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:57:54]wFMCommunicate OK [17:57:54]CreateOFDProtocolMessage done [17:57:54]OFDSenderStorePacket 73961 [17:57:54]StoreOFDPacket docnum=73961 [17:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 53 EE 24 01 8B 2E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 A3 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 20 01 00 35 04 06 00 16 BE 1A 06 6D F5 9B A1 C6 E4 CB 97 C5 6A [17:57:54]CheckFolder [17:57:54]dirname=/storage/ofd_packets [17:57:54]CheckFolder done [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00073961 [17:57:54]NVStorageSaveData ofd_packets/00073961 [17:57:54]File name is /storage/ofd_packets/00073961 [17:57:54]Write 330 bytes [17:57:54]NVStorageSaveData done [17:57:54]OFDSenderStorePacket done [17:57:54]KKMCreateOFDPacket done [17:57:54]NVStorageSaveData kkm_last_timestamp [17:57:54]File name is /storage/kkm_last_timestamp [17:57:54]Write 4 bytes [17:57:54]NVStorageSaveData done [17:57:54]ExternCall_PrintAddStr [17:57:54]wPrintStart [17:57:54]Write to MH i2c: 01 00 00 C4 4A 0E [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 C4 4A 00 00 00 00 00 FF 0F 23 [17:57:54]RasterBufferAndPrint [17:57:54]line Счет N : (3)272827 [17:57:54]line ИНН: 02508201610067 [17:57:54]line Контрольно-Кассовый Чек [17:57:54]line ПРОДАЖА [17:57:54]line Товар: 46226617 [17:57:54]line Mentos ПВ Нежная Мята 6*100*2г [17:57:54]line 1.000 * 10.00 [17:57:54]line = 10.00 [17:57:54]line НДС 12% НСП 1% [17:57:54]line > о реализуемом товаре [17:57:54]line ИТОГО: 10.00 [17:57:54]line НСП 1% : 0.09 [17:57:54]line НДС 12% : 1.06 [17:57:54]line Наличными: 10.00 [17:57:54]line Безнал.: 0.00 [17:57:54]line Место: АЗС № 133 "Партнер Нефть" [17:57:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:57:54]line СНО: Общий режим [17:57:54]line Чек 287 20.10.2024 17:57 [17:57:54]line Смена: 170 ФФД: 1.0 [17:57:54]line ЗНМ: 0300000020 [17:57:54]line РНМ: 0000000000161154 [17:57:54]line Версия ККМ: v1.0 [17:57:54]line ФМ: 0000000000963323 [17:57:54]line ФД: 73961 [17:57:54]line ФПД: 25005736226293 [17:57:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175755&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73961&fm=25005736226293&tin=02508201610067®Number=0000000000161154&sum=1000 [17:57:54]line 0 [17:57:54]written 0, free lines is 4095 [17:57:54]OFD Sender: Processing packet 73961 [packets to send 15, broken 14] [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00073961 [17:57:54]OFD Sender: To server: pG, [17:57:54]CommunicateWithHost lk.salyk.kg:30040 [17:57:54]ConnectInit lk.salyk.kg [17:57:54]Connected sock=10 [17:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 53 EE 24 01 8B 2E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 A3 44 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 20 01 00 35 04 06 00 16 BE 1A 06 6D F5 9B A1 C6 E4 CB 97 C5 6A [17:57:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3E 87 47 00 B2 D1 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 39 36 33 33 32 33 10 04 04 00 E9 20 01 00 F4 03 04 00 87 ED 14 67 B6 04 01 00 00 69 0D C4 B5 45 2E 10 27 [17:57:54]CommunicateWithHost err = 0 [17:57:54]CheckOFDResponse [17:57:54]1017 (14) - 77093643461234 [17:57:54]1041 (16) - 0000000000963323 [17:57:54]1040 (4) - 73961 [17:57:54]1012 (4) - 20.10.2024 11:46 [17:57:54]1206 (1) - 0 [17:57:54]OFD Sender: Remove packet 73961 [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00073961 [17:57:54]NVStorageDeleteData [17:57:54]Write to MH i2c: 01 00 00 EC 4A 36 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 EC 4A 00 00 00 00 00 E3 0C 2C [17:57:54]RasterBufferAndPrint [17:57:54]line [17:57:54]line [17:57:54]line [17:57:54]line [17:57:54]line [17:57:54]written 0, free lines is 3311 [17:57:54]MH_Cut [17:57:54]Write to MH i2c: D1 01 00 F3 4A 01 0F [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: D1 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: D1 01 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: D1 01 00 F3 4A 00 0E [17:57:54]Write to MH i2c: 01 00 00 F4 4A 3E [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:55]OFD Sender: No OFD packet to send [17:57:55]*** Cut start [17:57:55]*** Partial cut [17:57:55]*** CUTSNS_PIN = 1 [17:57:55]*** CUTSNS_PIN = 0 [17:57:55]*** Brake cut motor [17:57:56]Read from MH i2c: 01 [17:57:56]MH_I2C_Read... [17:57:56]*** Stop cut motor [17:57:56]*** Cut end [17:57:56]Read from MH i2c: 01 07 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: 01 07 00 F4 4A 00 00 00 00 00 FF 0F 53 [17:57:56]process_action close_receipt done [17:57:56]requested_data is exist [17:57:56]produce_requested_data [17:57:56]requested_item fm.sn is exist - process it [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 11 00 00 [17:57:56]Write to MH i2c: E2 08 00 F5 4A 80 11 00 00 00 00 00 00 B9 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 17 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 17 00 F5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 06 [17:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:57:56]wFMCommunicate OK [17:57:56]requested_item fd.num is exist - process it [17:57:56]SAM_PROTO_GetFieldsCounters [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 13 00 00 [17:57:56]Write to MH i2c: E2 08 00 F6 4A 80 13 00 00 00 00 00 00 BC [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 62 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 62 00 F6 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:57:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:56]wFMCommunicate OK [17:57:56]SAM_PROTO_GetFieldsCounters done [17:57:56]requested_item shift.num is exist - process it [17:57:56]requested_item shift.opened is exist - process it [17:57:56]req_shift_opened [17:57:56]FM_GetShiftState [17:57:56]SAM_PROTO_GetShiftState [17:57:56]wFMCommunicate request_size=4 [17:57:56]MH_SAM_APDU [17:57:56]CAPDU: 80 13 01 00 [17:57:56]Write to MH i2c: E2 08 00 F7 4A 80 13 01 00 00 00 00 00 BE [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0E 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0E 00 F7 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 03 [17:57:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [17:57:56]wFMCommunicate OK [17:57:56]SAM_PROTO_GetShiftState done [17:57:56]FM_GetShiftState done [17:57:56]req_shift_opened done [17:57:56]requested_item shift.open_date is exist - process it [17:57:56]req_shift_open_date [17:57:56]req_shift_open_date done [17:57:56]produce_requested_data done [17:57:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73961,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [17:57:56]process_action_free close_receipt [17:57:56]json_value_free [17:57:56]json_value_free done [17:57:56]process_json_proto returns [17:57:56]Send response to host [17:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73961,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [17:57:56]free response buf [17:57:56]execute_script done [17:57:56]execute_script returns [17:57:56]free content buf [17:57:56]Sock 9.Close socket [17:57:56]Sock 9.Thread stoped [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:02:58]accept exits with 8 [18:02:58]New connection [18:02:58]New thread 3067575652 created [18:02:58]Thread 3067432292 joined [18:02:58]Waiting for new connection... [18:02:58] Sock 8.Parse request [18:02:58]Sock 8.Check first char [18:02:58]Sock 8.First char is OK [18:02:58]request: POST /json_proto HTTP/1.0 [18:02:58]Method: POST [18:02:58]URL: /json_proto [18:02:58]Method is POST - this is cgi request [18:02:58]url: /json_proto [18:02:58]query_string will be loaded in cgi processing [18:02:58]execute_cgi json_proto POST (null) [18:02:58]execute_cgi path=json_proto method=POST [18:02:58]POST find Content-Length [18:02:58]Host: 172.17.44.196:8080 [18:02:58]Content-Length: 678 [18:02:58]Content-Type: application/json [18:02:58] [18:02:58]POST finish read [18:02:58]Found Content-Length = 678 [18:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963198", "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" : 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" ] } } [18:02:58]execute_script... [18:02: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)1963198", "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" : 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" ] } } [18:02:58]POST & json_proto [18:02:58]process_json_proto [18:02:58]json parsed OK: [18:02:58]protocol is kg_v1.0 [18:02:58]action value=close_receipt [18:02:58]process_action close_receipt [18:02:58]cmd_close_receipt [18:02:58]MH_GetDate [18:02:58]Write to MH i2c: F0 00 00 F8 4A 31 [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 09 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 09 00 F8 4A 00 D4 45 15 67 E7 19 F8 65 2C [18:02:58]GetLastDocTimeStamp 1729447075 [18:02:58]current date 1729447380 [18:02:58]FM_GetShiftState [18:02:58]SAM_PROTO_GetShiftState [18:02:58]wFMCommunicate request_size=4 [18:02:58]MH_SAM_APDU [18:02:58]CAPDU: 80 13 01 00 [18:02:58]Write to MH i2c: E2 08 00 F9 4A 80 13 01 00 00 00 00 00 C0 [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:58]Read from MH i2c: E2 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: E2 0E 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: E2 0E 00 F9 4A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 05 [18:02:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:02:58]wFMCommunicate OK [18:02:58]SAM_PROTO_GetShiftState done [18:02:58]FM_GetShiftState done [18:02:58]opened in 1729384303 [18:02:58]opened+sec_in_day 1729470703 [18:02:58]quantity*price = 20003 [18:02:58]sum+1 = 20004 [18:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 288 20.10.2024 18:03 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73962 ФПД: 55332242268680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180300&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73962&fm=55332242268680&tin=02508201610067®Number=0000000000161154&sum=20000 [18:02:59]StoreToDocumentArchive [18:02:59]shift 170 fd 73962 [18:02:59]save to /storage/0170/doc_00073962 [18:02:59]save last doc name /storage/0170/doc_00073962 to /storage/kkm_last_doc_name [18:02:59]save OK [18:02:59]Clear old archive folders... [18:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:59]tlvbuf is 0042FD20 [18:02:59]SAM_PROTO_ClearQueue [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 09 00 00 [18:02:59]Write to MH i2c: E2 08 00 06 4B 80 09 00 00 00 00 00 00 C3 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 06 4B 00 90 00 C5 [18:02:59]RAPDU: 90 00 [18:02:59]wFMCommunicate OK [18:02:59]SAM_PROTO_ClearQueue done [18:02:59]KKMCreateOFDPacket [18:02:59]OFDProtocolAddRootSTLVToBuf [18:02:59]FM_MakeSignedData [18:02:59]FM_MakeSignedData [18:02:59]SAM_PROTO_SignData [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 0D 01 02 [18:02:59]Write to MH i2c: E2 08 00 07 4B 80 0D 01 02 00 00 00 00 CB [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 07 4B 00 90 00 C6 [18:02:59]RAPDU: 90 00 [18:02:59]wFMCommunicate OK [18:02:59]wFMCommunicate request_size=255 [18:02:59]MH_SAM_APDU [18:02: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 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 20 01 00 00 F4 03 04 00 D4 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 20 01 00 35 04 06 00 32 [18:02:59]Write to MH i2c: E2 02 01 08 4B 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 20 01 00 00 F4 03 04 00 D4 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 20 01 00 35 04 06 00 32 00 00 AC [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 08 4B 00 90 00 C7 [18:02:59]RAPDU: 90 00 [18:02:59]wFMCommunicate OK [18:02:59]wFMCommunicate request_size=10 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 0D 02 02 05 53 0A A5 22 08 [18:02:59]Write to MH i2c: E2 0D 00 09 4B 80 0D 02 02 05 00 53 0A A5 22 08 00 00 04 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 09 4B 00 90 00 C8 [18:02:59]RAPDU: 90 00 [18:02:59]wFMCommunicate OK [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 0D 03 02 [18:02:59]Write to MH i2c: E2 08 00 0A 4B 80 0D 03 02 00 00 00 00 D0 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 0B 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 0B 00 0A 4B 00 E0 2E 39 A0 D1 72 04 70 90 00 6F [18:02:59]RAPDU: E0 2E 39 A0 D1 72 04 70 90 00 [18:02:59]wFMCommunicate OK [18:02:59]SAM_PROTO_SignData done [18:02:59]FM_MakeSignedData done [18:02:59]CreateOFDProtocolMessage [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 11 00 00 [18:02:59]Write to MH i2c: E2 08 00 0B 4B 80 11 00 00 00 00 00 00 D0 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 17 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 17 00 0B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1D [18:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:02:59]wFMCommunicate OK [18:02:59]CreateOFDProtocolMessage done [18:02:59]OFDSenderStorePacket 73962 [18:02:59]StoreOFDPacket docnum=73962 [18:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FF E9 07 01 BE C0 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 20 01 00 00 F4 03 04 00 D4 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 20 01 00 35 04 06 00 32 53 0A A5 22 08 E0 2E 39 A0 D1 72 04 70 [18:02:59]CheckFolder [18:02:59]dirname=/storage/ofd_packets [18:02:59]CheckFolder done [18:02:59]ProducePacketName [18:02:59]name=ofd_packets/00073962 [18:02:59]NVStorageSaveData ofd_packets/00073962 [18:02:59]File name is /storage/ofd_packets/00073962 [18:02:59]Write 301 bytes [18:02:59]NVStorageSaveData done [18:02:59]OFDSenderStorePacket done [18:02:59]KKMCreateOFDPacket done [18:02:59]NVStorageSaveData kkm_last_timestamp [18:02:59]File name is /storage/kkm_last_timestamp [18:02:59]Write 4 bytes [18:02:59]NVStorageSaveData done [18:02:59]ExternCall_PrintAddStr [18:02:59]wPrintStart [18:02:59]Write to MH i2c: 01 00 00 0C 4B 57 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: 01 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: 01 07 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: 01 07 00 0C 4B 00 00 00 00 00 FF 0F 6C [18:02:59]RasterBufferAndPrint [18:02:59]line Счет N : (1)1963198 [18:02:59]line ИНН: 02508201610067 [18:02:59]line Контрольно-Кассовый Чек [18:02:59]line ПРОДАЖА [18:02:59]line ТРК (МРК, ГНК) : 43 [18:02:59]line Товар: 2710124130 [18:02:59]line Аи-92-К-5 [18:02:59]line 2.990 * 66.90 [18:02:59]line = 200.03 [18:02:59]line НДС 12% НСП 1% [18:02:59]line > о реализуемом товаре [18:02:59]line ОКРУГЛЕНИЕ: -0.03 [18:02:59]line ИТОГО: 200.00 [18:02:59]line Внесено: 200.00 [18:02:59]line СДАЧА: 0.00 [18:02:59]line НСП 1% : 1.77 [18:02:59]line НДС 12% : 21.24 [18:02:59]line Наличными: 200.00 [18:02:59]line Безнал.: 0.00 [18:02:59]line Место: АЗС № 133 "Партнер Нефть" [18:02:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:02:59]line СНО: Общий режим [18:02:59]line Чек 288 20.10.2024 18:03 [18:02:59]line Смена: 170 ФФД: 1.0 [18:02:59]line ЗНМ: 0300000020 [18:02:59]line РНМ: 0000000000161154 [18:02:59]line Версия ККМ: v1.0 [18:02:59]line ФМ: 0000000000963323 [18:02:59]line ФД: 73962 [18:02:59]line ФПД: 55332242268680 [18:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180300&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73962&fm=55332242268680&tin=02508201610067®Number=0000000000161154&sum=20000 [18:03:00]OFD Sender: Processing packet 73962 [packets to send 15, broken 14] [18:03:00]ProducePacketName [18:03:00]name=ofd_packets/00073962 [18:03:00]OFD Sender: To server: pG, [18:03:00]CommunicateWithHost lk.salyk.kg:30040 [18:03:00]ConnectInit lk.salyk.kg [18:03:00]written 0, free lines is 4095 [18:03:00]Connected sock=10 [18:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FF E9 07 01 BE C0 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 20 01 00 00 F4 03 04 00 D4 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 20 01 00 35 04 06 00 32 53 0A A5 22 08 E0 2E 39 A0 D1 72 04 70 [18:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 09 57 47 00 70 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 39 36 33 33 32 33 10 04 04 00 EA 20 01 00 F4 03 04 00 B9 EE 14 67 B6 04 01 00 00 C4 94 EA 89 EA DA 3A 65 [18:03:00]CommunicateWithHost err = 0 [18:03:00]CheckOFDResponse [18:03:00]1017 (14) - 77093643461234 [18:03:00]1041 (16) - 0000000000963323 [18:03:00]1040 (4) - 73962 [18:03:00]1012 (4) - 20.10.2024 11:51 [18:03:00]1206 (1) - 0 [18:03:00]OFD Sender: Remove packet 73962 [18:03:00]ProducePacketName [18:03:00]name=ofd_packets/00073962 [18:03:00]NVStorageDeleteData [18:03:00]Write to MH i2c: 01 00 00 36 4B 81 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 07 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 07 00 36 4B 00 00 00 00 00 C3 0C 57 [18:03:00]RasterBufferAndPrint [18:03:00]line [18:03:00]line [18:03:00]line [18:03:00]line [18:03:00]line [18:03:00]written 0, free lines is 3272 [18:03:00]MH_Cut [18:03:00]Write to MH i2c: D1 01 00 3D 4B 01 5A [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: D1 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: D1 01 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: D1 01 00 3D 4B 00 59 [18:03:00]Write to MH i2c: 01 00 00 3E 4B 89 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]OFD Sender: No OFD packet to send [18:03:01]*** Cut start [18:03:01]*** Partial cut [18:03:01]*** CUTSNS_PIN = 1 [18:03:01]*** CUTSNS_PIN = 0 [18:03:01]*** Brake cut motor [18:03:01]Read from MH i2c: 01 [18:03:01]MH_I2C_Read... [18:03:01]*** Stop cut motor [18:03:01]*** Cut end [18:03:01]Read from MH i2c: 01 07 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 3E 4B 00 00 00 00 00 FF 0F 9E [18:03:01]process_action close_receipt done [18:03:01]requested_data is exist [18:03:01]produce_requested_data [18:03:01]requested_item fm.sn is exist - process it [18:03:01]wFMCommunicate request_size=4 [18:03:01]MH_SAM_APDU [18:03:01]CAPDU: 80 11 00 00 [18:03:01]Write to MH i2c: E2 08 00 3F 4B 80 11 00 00 00 00 00 00 04 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 17 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 17 00 3F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [18:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:03:02]wFMCommunicate OK [18:03:02]requested_item fd.num is exist - process it [18:03:02]SAM_PROTO_GetFieldsCounters [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 13 00 00 [18:03:02]Write to MH i2c: E2 08 00 40 4B 80 13 00 00 00 00 00 00 07 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 62 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 62 00 40 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_GetFieldsCounters done [18:03:02]requested_item shift.num is exist - process it [18:03:02]requested_item shift.opened is exist - process it [18:03:02]req_shift_opened [18:03:02]FM_GetShiftState [18:03:02]SAM_PROTO_GetShiftState [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 13 01 00 [18:03:02]Write to MH i2c: E2 08 00 41 4B 80 13 01 00 00 00 00 00 09 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 41 4B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4E [18:03:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_GetShiftState done [18:03:02]FM_GetShiftState done [18:03:02]req_shift_opened done [18:03:02]requested_item shift.open_date is exist - process it [18:03:02]req_shift_open_date [18:03:02]req_shift_open_date done [18:03:02]produce_requested_data done [18:03:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73962,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:03:02]process_action_free close_receipt [18:03:02]json_value_free [18:03:02]json_value_free done [18:03:02]process_json_proto returns [18:03:02]Send response to host [18:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73962,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:03:02]free response buf [18:03:02]execute_script done [18:03:02]execute_script returns [18:03:02]free content buf [18:03:02]Sock 8.Close socket [18:03:02]Sock 8.Thread stoped [18:03:02]accept exits with 9 [18:03:02]New connection [18:03:02]New thread 3067432292 created [18:03:02]Thread 3067575652 joined [18:03:02]Waiting for new connection... [18:03:02] Sock 9.Parse request [18:03:02]Sock 9.Check first char [18:03:02]Sock 9.First char is OK [18:03:02]request: POST /json_proto HTTP/1.0 [18:03:02]Method: POST [18:03:02]URL: /json_proto [18:03:02]Method is POST - this is cgi request [18:03:02]url: /json_proto [18:03:02]query_string will be loaded in cgi processing [18:03:02]execute_cgi json_proto POST (null) [18:03:02]execute_cgi path=json_proto method=POST [18:03:02]POST find Content-Length [18:03:02]Host: 172.17.44.196:8080 [18:03:02]Content-Length: 660 [18:03:02]Content-Type: application/json [18:03:02] [18:03:02]POST finish read [18:03:02]Found Content-Length = 660 [18:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:02]execute_script... [18:03: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 : (1)1963199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:02]POST & json_proto [18:03:02]process_json_proto [18:03:02]json parsed OK: [18:03:02]protocol is kg_v1.0 [18:03:02]action value=close_receipt [18:03:02]process_action close_receipt [18:03:02]cmd_close_receipt [18:03:02]MH_GetDate [18:03:02]Write to MH i2c: F0 00 00 42 4B 7C [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 09 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 09 00 42 4B 00 D9 45 15 67 E7 19 F8 65 7C [18:03:02]GetLastDocTimeStamp 1729447380 [18:03:02]current date 1729447385 [18:03:02]FM_GetShiftState [18:03:02]SAM_PROTO_GetShiftState [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 13 01 00 [18:03:02]Write to MH i2c: E2 08 00 43 4B 80 13 01 00 00 00 00 00 0B [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:02]Read from MH i2c: E2 0E 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 43 4B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 50 [18:03:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_GetShiftState done [18:03:02]FM_GetShiftState done [18:03:02]opened in 1729384303 [18:03:02]opened+sec_in_day 1729470703 [18:03:02]quantity*price = 70041 [18:03:02]sum+1 = 70043 [18:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 289 20.10.2024 18:03 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73963 ФПД: 148906542950671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180305&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73963&fm=148906542950671&tin=02508201610067®Number=0000000000161154&sum=70000 [18:03:04]StoreToDocumentArchive [18:03:04]shift 170 fd 73963 [18:03:04]save to /storage/0170/doc_00073963 [18:03:04]save last doc name /storage/0170/doc_00073963 to /storage/kkm_last_doc_name [18:03:04]save OK [18:03:04]Clear old archive folders... [18:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:03:04]tlvbuf is 003AB680 [18:03:04]SAM_PROTO_ClearQueue [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 09 00 00 [18:03:04]Write to MH i2c: E2 08 00 50 4B 80 09 00 00 00 00 00 00 0D [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 50 4B 00 90 00 0F [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_ClearQueue done [18:03:04]KKMCreateOFDPacket [18:03:04]OFDProtocolAddRootSTLVToBuf [18:03:04]FM_MakeSignedData [18:03:04]FM_MakeSignedData [18:03:04]SAM_PROTO_SignData [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 01 02 [18:03:04]Write to MH i2c: E2 08 00 51 4B 80 0D 01 02 00 00 00 00 15 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 51 4B 00 90 00 10 [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=253 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D9 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 20 01 00 35 04 06 00 87 6E 01 98 E9 0F [18:03:04]Write to MH i2c: E2 00 01 52 4B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D9 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 20 01 00 35 04 06 00 87 6E 01 98 E9 0F 00 00 FB [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 52 4B 00 90 00 11 [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 03 02 [18:03:04]Write to MH i2c: E2 08 00 53 4B 80 0D 03 02 00 00 00 00 19 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0B 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0B 00 53 4B 00 B7 6F C0 1D F4 0B 04 7C 90 00 9C [18:03:04]RAPDU: B7 6F C0 1D F4 0B 04 7C 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_SignData done [18:03:04]FM_MakeSignedData done [18:03:04]CreateOFDProtocolMessage [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 11 00 00 [18:03:04]Write to MH i2c: E2 08 00 54 4B 80 11 00 00 00 00 00 00 19 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 54 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 66 [18:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:03:04]wFMCommunicate OK [18:03:04]CreateOFDProtocolMessage done [18:03:04]OFDSenderStorePacket 73963 [18:03:04]StoreOFDPacket docnum=73963 [18:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 60 FC 00 01 20 65 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D9 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 20 01 00 35 04 06 00 87 6E 01 98 E9 0F B7 6F C0 1D F4 0B 04 7C [18:03:04]CheckFolder [18:03:04]dirname=/storage/ofd_packets [18:03:04]CheckFolder done [18:03:04]ProducePacketName [18:03:04]name=ofd_packets/00073963 [18:03:04]NVStorageSaveData ofd_packets/00073963 [18:03:04]File name is /storage/ofd_packets/00073963 [18:03:04]Write 294 bytes [18:03:04]NVStorageSaveData done [18:03:04]OFDSenderStorePacket done [18:03:04]KKMCreateOFDPacket done [18:03:04]NVStorageSaveData kkm_last_timestamp [18:03:04]File name is /storage/kkm_last_timestamp [18:03:04]Write 4 bytes [18:03:04]NVStorageSaveData done [18:03:04]ExternCall_PrintAddStr [18:03:04]wPrintStart [18:03:04]Write to MH i2c: 01 00 00 55 4B A0 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 55 4B 00 00 00 00 00 FF 0F B5 [18:03:04]RasterBufferAndPrint [18:03:04]line Счет N : (1)1963199 [18:03:04]line ИНН: 02508201610067 [18:03:04]line Контрольно-Кассовый Чек [18:03:04]line ПРОДАЖА [18:03:04]line ТРК (МРК, ГНК) : 32 [18:03:04]line Товар: 2710124130 [18:03:04]line SU-92 [18:03:04]line 10.240 * 68.40 [18:03:04]line = 700.42 [18:03:04]line НДС 12% НСП 1% [18:03:04]line > о реализуемом товаре [18:03:04]line ОКРУГЛЕНИЕ: -0.42 [18:03:04]line ИТОГО: 700.00 [18:03:04]line Внесено: 700.00 [18:03:04]line СДАЧА: 0.00 [18:03:04]line НСП 1% : 6.20 [18:03:04]line НДС 12% : 74.38 [18:03:04]line Наличными: 700.00 [18:03:04]line Безнал.: 0.00 [18:03:04]line Место: АЗС № 133 "Партнер Нефть" [18:03:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:03:04]line СНО: Общий режим [18:03:04]line Чек 289 20.10.2024 18:03 [18:03:04]line Смена: 170 ФФД: 1.0 [18:03:04]line ЗНМ: 0300000020 [18:03:04]line РНМ: 0000000000161154 [18:03:04]line Версия ККМ: v1.0 [18:03:04]line ФМ: 0000000000963323 [18:03:04]line ФД: 73963 [18:03:05]line ФПД: 148906542950671 [18:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180305&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73963&fm=148906542950671&tin=02508201610067®Number=0000000000161154&sum=70000 [18:03:05]OFD Sender: Processing packet 73963 [packets to send 15, broken 14] [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00073963 [18:03:05]OFD Sender: To server: pG, [18:03:05]CommunicateWithHost lk.salyk.kg:30040 [18:03:05]ConnectInit lk.salyk.kg [18:03:05]written 0, free lines is 4095 [18:03:05]Connected sock=10 [18:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 60 FC 00 01 20 65 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D9 45 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 20 01 00 35 04 06 00 87 6E 01 98 E9 0F B7 6F C0 1D F4 0B 04 7C [18:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 20 A5 47 00 FC 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 39 36 33 33 32 33 10 04 04 00 EB 20 01 00 F4 03 04 00 BE EE 14 67 B6 04 01 00 00 8F 6D BA 53 9E 6E 79 02 [18:03:05]CommunicateWithHost err = 0 [18:03:05]CheckOFDResponse [18:03:05]1017 (14) - 77093643461234 [18:03:05]1041 (16) - 0000000000963323 [18:03:05]1040 (4) - 73963 [18:03:05]1012 (4) - 20.10.2024 11:51 [18:03:05]1206 (1) - 0 [18:03:05]OFD Sender: Remove packet 73963 [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00073963 [18:03:05]NVStorageDeleteData [18:03:05]Write to MH i2c: 01 00 00 7F 4B CA [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 7F 4B 00 00 00 00 00 C1 0C 9E [18:03:05]RasterBufferAndPrint [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]written 0, free lines is 3273 [18:03:05]MH_Cut [18:03:05]Write to MH i2c: D1 01 00 86 4B 01 A3 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 01 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 01 00 86 4B 00 A2 [18:03:05]Write to MH i2c: 01 00 00 87 4B D2 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]OFD Sender: No OFD packet to send [18:03:06]*** Cut start [18:03:06]*** Partial cut [18:03:06]*** CUTSNS_PIN = 1 [18:03:06]*** CUTSNS_PIN = 0 [18:03:06]*** Brake cut motor [18:03:06]Read from MH i2c: 01 [18:03:06]MH_I2C_Read... [18:03:06]*** Stop cut motor [18:03:06]*** Cut end [18:03:06]Read from MH i2c: 01 07 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 87 4B 00 00 00 00 00 FF 0F E7 [18:03:06]process_action close_receipt done [18:03:06]requested_data is exist [18:03:06]produce_requested_data [18:03:06]requested_item fm.sn is exist - process it [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 11 00 00 [18:03:06]Write to MH i2c: E2 08 00 88 4B 80 11 00 00 00 00 00 00 4D [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 88 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [18:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:03:06]wFMCommunicate OK [18:03:06]requested_item fd.num is exist - process it [18:03:06]SAM_PROTO_GetFieldsCounters [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 00 00 [18:03:06]Write to MH i2c: E2 08 00 89 4B 80 13 00 00 00 00 00 00 50 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 62 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 62 00 89 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [18:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_GetFieldsCounters done [18:03:07]requested_item shift.num is exist - process it [18:03:07]requested_item shift.opened is exist - process it [18:03:07]req_shift_opened [18:03:07]FM_GetShiftState [18:03:07]SAM_PROTO_GetShiftState [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 13 01 00 [18:03:07]Write to MH i2c: E2 08 00 8A 4B 80 13 01 00 00 00 00 00 52 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0E 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0E 00 8A 4B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 97 [18:03:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_GetShiftState done [18:03:07]FM_GetShiftState done [18:03:07]req_shift_opened done [18:03:07]requested_item shift.open_date is exist - process it [18:03:07]req_shift_open_date [18:03:07]req_shift_open_date done [18:03:07]produce_requested_data done [18:03:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73963,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:03:07]process_action_free close_receipt [18:03:07]json_value_free [18:03:07]json_value_free done [18:03:07]process_json_proto returns [18:03:07]Send response to host [18:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73963,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:03:07]free response buf [18:03:07]execute_script done [18:03:07]execute_script returns [18:03:07]free content buf [18:03:07]Sock 9.Close socket [18:03:07]Sock 9.Thread stoped [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:44]accept exits with 8 [18:03:44]New connection [18:03:44]New thread 3067575652 created [18:03:44]Thread 3067432292 joined [18:03:44]Waiting for new connection... [18:03:44] Sock 8.Parse request [18:03:44]Sock 8.Check first char [18:03:44]Sock 8.First char is OK [18:03:44]request: POST /json_proto HTTP/1.0 [18:03:44]Method: POST [18:03:44]URL: /json_proto [18:03:44]Method is POST - this is cgi request [18:03:44]url: /json_proto [18:03:44]query_string will be loaded in cgi processing [18:03:44]execute_cgi json_proto POST (null) [18:03:44]execute_cgi path=json_proto method=POST [18:03:44]POST find Content-Length [18:03:44]Host: 172.17.44.196:8080 [18:03:44]Content-Length: 675 [18:03:44]Content-Type: application/json [18:03:44] [18:03:44]POST finish read [18:03:44]Found Content-Length = 675 [18:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [18:03:44]execute_script... [18:03: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 : (1)1963200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [18:03:44]POST & json_proto [18:03:44]process_json_proto [18:03:44]json parsed OK: [18:03:44]protocol is kg_v1.0 [18:03:44]action value=close_receipt [18:03:44]process_action close_receipt [18:03:44]cmd_close_receipt [18:03:44]MH_GetDate [18:03:44]Write to MH i2c: F0 00 00 8B 4B C5 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: F0 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: F0 09 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: F0 09 00 8B 4B 00 03 46 15 67 E7 19 F8 65 F0 [18:03:44]GetLastDocTimeStamp 1729447385 [18:03:44]current date 1729447427 [18:03:44]FM_GetShiftState [18:03:44]SAM_PROTO_GetShiftState [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 13 01 00 [18:03:44]Write to MH i2c: E2 08 00 8C 4B 80 13 01 00 00 00 00 00 54 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 0E 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 0E 00 8C 4B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 99 [18:03:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:03:44]wFMCommunicate OK [18:03:44]SAM_PROTO_GetShiftState done [18:03:44]FM_GetShiftState done [18:03:44]opened in 1729384303 [18:03:44]opened+sec_in_day 1729470703 [18:03:44]quantity*price = 50063 [18:03:44]sum+1 = 50064 [18:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 290 20.10.2024 18:03 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73964 ФПД: 139997484924771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180347&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73964&fm=139997484924771&tin=02508201610067®Number=0000000000161154&sum=50000 [18:03:45]StoreToDocumentArchive [18:03:45]shift 170 fd 73964 [18:03:45]save to /storage/0170/doc_00073964 [18:03:45]save last doc name /storage/0170/doc_00073964 to /storage/kkm_last_doc_name [18:03:45]save OK [18:03:45]Clear old archive folders... [18:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:45]tlvbuf is 004250D0 [18:03:45]SAM_PROTO_ClearQueue [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 09 00 00 [18:03:45]Write to MH i2c: E2 08 00 99 4B 80 09 00 00 00 00 00 00 56 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 99 4B 00 90 00 58 [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_ClearQueue done [18:03:45]KKMCreateOFDPacket [18:03:45]OFDProtocolAddRootSTLVToBuf [18:03:45]FM_MakeSignedData [18:03:45]FM_MakeSignedData [18:03:45]SAM_PROTO_SignData [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 0D 01 02 [18:03:45]Write to MH i2c: E2 08 00 9A 4B 80 0D 01 02 00 00 00 00 5E [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 9A 4B 00 90 00 59 [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]wFMCommunicate request_size=255 [18:03:45]MH_SAM_APDU [18:03:45]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 22 01 00 00 F4 03 04 00 03 46 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 20 01 00 35 04 06 00 7F 53 B4 5B [18:03:45]Write to MH i2c: E2 02 01 9B 4B 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 22 01 00 00 F4 03 04 00 03 46 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 20 01 00 35 04 06 00 7F 53 B4 5B 00 00 DE [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]OFD Sender: No OFD packet to send [18:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 9B 4B 00 90 00 5A [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]wFMCommunicate request_size=7 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 0D 02 02 02 BF 63 [18:03:45]Write to MH i2c: E2 0A 00 9C 4B 80 0D 02 02 02 00 BF 63 00 00 87 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 [18:03:46]MH_I2C_Read... [18:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:46]Read from MH i2c: E2 03 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 03 00 9C 4B 00 90 00 5B [18:03:46]RAPDU: 90 00 [18:03:46]wFMCommunicate OK [18:03:46]wFMCommunicate request_size=4 [18:03:46]MH_SAM_APDU [18:03:46]CAPDU: 80 0D 03 02 [18:03:46]Write to MH i2c: E2 08 00 9D 4B 80 0D 03 02 00 00 00 00 63 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:46]Read from MH i2c: E2 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 0B 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 0B 00 9D 4B 00 B1 43 8B 6C EE 7C 7E A8 90 00 DF [18:03:46]RAPDU: B1 43 8B 6C EE 7C 7E A8 90 00 [18:03:46]wFMCommunicate OK [18:03:46]SAM_PROTO_SignData done [18:03:46]FM_MakeSignedData done [18:03:46]CreateOFDProtocolMessage [18:03:46]wFMCommunicate request_size=4 [18:03:46]MH_SAM_APDU [18:03:46]CAPDU: 80 11 00 00 [18:03:46]Write to MH i2c: E2 08 00 9E 4B 80 11 00 00 00 00 00 00 63 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:46]Read from MH i2c: E2 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 17 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 17 00 9E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B0 [18:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:03:46]wFMCommunicate OK [18:03:46]CreateOFDProtocolMessage done [18:03:46]OFDSenderStorePacket 73964 [18:03:46]StoreOFDPacket docnum=73964 [18:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 DE 15 04 01 5C 67 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 22 01 00 00 F4 03 04 00 03 46 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 20 01 00 35 04 06 00 7F 53 B4 5B BF 63 B1 43 8B 6C EE 7C 7E A8 [18:03:46]CheckFolder [18:03:46]dirname=/storage/ofd_packets [18:03:46]CheckFolder done [18:03:46]ProducePacketName [18:03:46]name=ofd_packets/00073964 [18:03:46]NVStorageSaveData ofd_packets/00073964 [18:03:46]File name is /storage/ofd_packets/00073964 [18:03:46]Write 298 bytes [18:03:46]NVStorageSaveData done [18:03:46]OFDSenderStorePacket done [18:03:46]KKMCreateOFDPacket done [18:03:46]NVStorageSaveData kkm_last_timestamp [18:03:46]File name is /storage/kkm_last_timestamp [18:03:46]Write 4 bytes [18:03:46]NVStorageSaveData done [18:03:46]ExternCall_PrintAddStr [18:03:46]wPrintStart [18:03:46]Write to MH i2c: 01 00 00 9F 4B EA [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 07 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 07 00 9F 4B 00 00 00 00 00 FF 0F FF [18:03:46]RasterBufferAndPrint [18:03:46]line Счет N : (1)1963200 [18:03:46]line ИНН: 02508201610067 [18:03:46]line Контрольно-Кассовый Чек [18:03:46]line ПРОДАЖА [18:03:46]line ТРК (МРК, ГНК) : 11 [18:03:46]line Товар: 2710194210 [18:03:46]line ДТ-К-5 [18:03:46]line 6.570 * 76.20 [18:03:46]line = 500.63 [18:03:46]line НДС 12% НСП 1% [18:03:46]line > о реализуемом товаре [18:03:46]line ОКРУГЛЕНИЕ: -0.63 [18:03:46]line ИТОГО: 500.00 [18:03:46]line Внесено: 500.00 [18:03:46]line СДАЧА: 0.00 [18:03:46]line НСП 1% : 4.43 [18:03:46]line НДС 12% : 53.16 [18:03:46]line Наличными: 500.00 [18:03:46]line Безнал.: 0.00 [18:03:46]line Место: АЗС № 133 "Партнер Нефть" [18:03:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:03:46]line СНО: Общий режим [18:03:46]line Чек 290 20.10.2024 18:03 [18:03:46]line Смена: 170 ФФД: 1.0 [18:03:46]line ЗНМ: 0300000020 [18:03:46]line РНМ: 0000000000161154 [18:03:46]line Версия ККМ: v1.0 [18:03:46]line ФМ: 0000000000963323 [18:03:46]line ФД: 73964 [18:03:46]line ФПД: 139997484924771 [18:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180347&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73964&fm=139997484924771&tin=02508201610067®Number=0000000000161154&sum=50000 [18:03:46]written 0, free lines is 4095 [18:03:46]OFD Sender: Processing packet 73964 [packets to send 15, broken 14] [18:03:46]ProducePacketName [18:03:46]name=ofd_packets/00073964 [18:03:46]OFD Sender: To server: pG, [18:03:46]CommunicateWithHost lk.salyk.kg:30040 [18:03:46]ConnectInit lk.salyk.kg [18:03:46]Connected sock=10 [18:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 DE 15 04 01 5C 67 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 22 01 00 00 F4 03 04 00 03 46 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 20 01 00 35 04 06 00 7F 53 B4 5B BF 63 B1 43 8B 6C EE 7C 7E A8 [18:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 04 B2 47 00 45 69 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 39 36 33 33 32 33 10 04 04 00 EC 20 01 00 F4 03 04 00 E7 EE 14 67 B6 04 01 00 00 00 55 FA 86 42 EB 4B E5 [18:03:46]CommunicateWithHost err = 0 [18:03:46]CheckOFDResponse [18:03:46]1017 (14) - 77093643461234 [18:03:46]1041 (16) - 0000000000963323 [18:03:46]1040 (4) - 73964 [18:03:46]1012 (4) - 20.10.2024 11:52 [18:03:46]1206 (1) - 0 [18:03:46]OFD Sender: Remove packet 73964 [18:03:46]ProducePacketName [18:03:46]name=ofd_packets/00073964 [18:03:46]NVStorageDeleteData [18:03:46]Write to MH i2c: 01 00 00 C9 4B 14 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 07 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 07 00 C9 4B 00 00 00 00 00 BF 0C E6 [18:03:46]RasterBufferAndPrint [18:03:46]line [18:03:46]line [18:03:46]line [18:03:46]line [18:03:46]line [18:03:46]written 0, free lines is 3267 [18:03:46]MH_Cut [18:03:46]Write to MH i2c: D1 01 00 D0 4B 01 ED [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: D1 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: D1 01 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: D1 01 00 D0 4B 00 EC [18:03:46]Write to MH i2c: 01 00 00 D1 4B 1C [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:47]OFD Sender: No OFD packet to send [18:03:47]*** Cut start [18:03:47]*** Partial cut [18:03:47]*** CUTSNS_PIN = 1 [18:03:47]*** CUTSNS_PIN = 0 [18:03:48]*** Brake cut motor [18:03:48]Read from MH i2c: 01 [18:03:48]MH_I2C_Read... [18:03:48]*** Stop cut motor [18:03:48]*** Cut end [18:03:48]Read from MH i2c: 01 07 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 D1 4B 00 00 00 00 00 FF 0F 31 [18:03:48]process_action close_receipt done [18:03:48]requested_data is exist [18:03:48]produce_requested_data [18:03:48]requested_item fm.sn is exist - process it [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 11 00 00 [18:03:48]Write to MH i2c: E2 08 00 D2 4B 80 11 00 00 00 00 00 00 97 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 17 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 17 00 D2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E4 [18:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:03:48]wFMCommunicate OK [18:03:48]requested_item fd.num is exist - process it [18:03:48]SAM_PROTO_GetFieldsCounters [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 13 00 00 [18:03:48]Write to MH i2c: E2 08 00 D3 4B 80 13 00 00 00 00 00 00 9A [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 62 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 62 00 D3 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_GetFieldsCounters done [18:03:48]requested_item shift.num is exist - process it [18:03:48]requested_item shift.opened is exist - process it [18:03:48]req_shift_opened [18:03:48]FM_GetShiftState [18:03:48]SAM_PROTO_GetShiftState [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 13 01 00 [18:03:48]Write to MH i2c: E2 08 00 D4 4B 80 13 01 00 00 00 00 00 9C [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0E 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0E 00 D4 4B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E1 [18:03:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_GetShiftState done [18:03:48]FM_GetShiftState done [18:03:48]req_shift_opened done [18:03:48]requested_item shift.open_date is exist - process it [18:03:48]req_shift_open_date [18:03:48]req_shift_open_date done [18:03:48]produce_requested_data done [18:03:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73964,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:03:48]process_action_free close_receipt [18:03:48]json_value_free [18:03:48]json_value_free done [18:03:48]process_json_proto returns [18:03:48]Send response to host [18:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73964,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:03:48]free response buf [18:03:48]execute_script done [18:03:48]execute_script returns [18:03:48]free content buf [18:03:48]Sock 8.Close socket [18:03:48]Sock 8.Thread stoped [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]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]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:34]accept exits with 9 [18:12:34]New connection [18:12:34]New thread 3067432292 created [18:12:34]Thread 3067575652 joined [18:12:34]Waiting for new connection... [18:12:34] Sock 9.Parse request [18:12:34]Sock 9.Check first char [18:12:34]Sock 9.First char is OK [18:12:34]request: POST /json_proto HTTP/1.0 [18:12:34]Method: POST [18:12:34]URL: /json_proto [18:12:34]Method is POST - this is cgi request [18:12:34]url: /json_proto [18:12:34]query_string will be loaded in cgi processing [18:12:34]execute_cgi json_proto POST (null) [18:12:34]execute_cgi path=json_proto method=POST [18:12:34]POST find Content-Length [18:12:34]Host: 172.17.44.196:8080 [18:12:34]Content-Length: 1303 [18:12:34]Content-Type: application/json [18:12:34] [18:12:34]POST finish read [18:12:34]Found Content-Length = 1303 [18:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272828", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570897", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \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 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:34]execute_script... [18:12: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)272828", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570897", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \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 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:34]POST & json_proto [18:12:34]process_json_proto [18:12:34]json parsed OK: [18:12:34]protocol is kg_v1.0 [18:12:34]action value=close_receipt [18:12:34]process_action close_receipt [18:12:34]cmd_close_receipt [18:12:34]MH_GetDate [18:12:34]Write to MH i2c: F0 00 00 D5 4B 0F [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: F0 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: F0 09 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: F0 09 00 D5 4B 00 15 48 15 67 E7 19 F8 65 4E [18:12:34]GetLastDocTimeStamp 1729447427 [18:12:34]current date 1729447957 [18:12:34]FM_GetShiftState [18:12:34]SAM_PROTO_GetShiftState [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 13 01 00 [18:12:34]Write to MH i2c: E2 08 00 D6 4B 80 13 01 00 00 00 00 00 9E [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 0E 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 0E 00 D6 4B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E3 [18:12:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:12:34]wFMCommunicate OK [18:12:34]SAM_PROTO_GetShiftState done [18:12:34]FM_GetShiftState done [18:12:34]opened in 1729384303 [18:12:34]opened+sec_in_day 1729470703 [18:12:34]quantity*price = 9500 [18:12:34]sum+1 = 9501 [18:12:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000273680 Сок Piko Pulpy красный виноград ПЭТ 0,5л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570897 Напиток DADA ябл,клубника ПЭТ 0,5л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 291 20.10.2024 18:12 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73965 ФПД: 115639209062097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181237&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73965&fm=115639209062097&tin=02508201610067®Number=0000000000161154&sum=28500 0 [18:12:35]StoreToDocumentArchive [18:12:35]shift 170 fd 73965 [18:12:35]save to /storage/0170/doc_00073965 [18:12:35]save last doc name /storage/0170/doc_00073965 to /storage/kkm_last_doc_name [18:12:35]save OK [18:12:35]Clear old archive folders... [18:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=551 [18:12:35]tlvbuf is 0047D420 [18:12:35]SAM_PROTO_ClearQueue [18:12:35]wFMCommunicate request_size=4 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 09 00 00 [18:12:35]Write to MH i2c: E2 08 00 E3 4B 80 09 00 00 00 00 00 00 A0 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 E3 4B 00 90 00 A2 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]SAM_PROTO_ClearQueue done [18:12:35]KKMCreateOFDPacket [18:12:35]OFDProtocolAddRootSTLVToBuf [18:12:35]FM_MakeSignedData [18:12:35]FM_MakeSignedData [18:12:35]SAM_PROTO_SignData [18:12:35]wFMCommunicate request_size=4 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 01 02 [18:12:35]Write to MH i2c: E2 08 00 E4 4B 80 0D 01 02 00 00 00 00 A8 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 E4 4B 00 90 00 A3 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=255 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 02 02 FA 03 00 27 02 1E 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 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 [18:12:36]Write to MH i2c: E2 02 01 E5 4B 80 0D 02 02 FA 00 03 00 27 02 1E 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 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 00 2A [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 03 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 03 00 E5 4B 00 90 00 A4 [18:12:36]RAPDU: 90 00 [18:12:36]wFMCommunicate OK [18:12:36]wFMCommunicate request_size=255 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 0D 02 02 FA 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 30 38 39 37 06 04 38 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 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 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 D3 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 23 01 00 00 F4 03 04 00 15 48 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 [18:12:36]Write to MH i2c: E2 02 01 E6 4B 80 0D 02 02 FA 00 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 30 38 39 37 06 04 38 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 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 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 D3 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 23 01 00 00 F4 03 04 00 15 48 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 00 CE [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 03 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 03 00 E6 4B 00 90 00 A5 [18:12:36]RAPDU: 90 00 [18:12:36]wFMCommunicate OK [18:12:36]wFMCommunicate request_size=60 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 20 01 00 35 04 06 00 69 2C 59 FA 6E D1 [18:12:36]Write to MH i2c: E2 3F 00 E7 4B 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 20 01 00 35 04 06 00 69 2C 59 FA 6E D1 00 00 F7 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 03 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 03 00 E7 4B 00 90 00 A6 [18:12:36]RAPDU: 90 00 [18:12:36]wFMCommunicate OK [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 0D 03 02 [18:12:36]Write to MH i2c: E2 08 00 E8 4B 80 0D 03 02 00 00 00 00 AE [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0B 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0B 00 E8 4B 00 52 E6 0F 54 75 4F 11 0B 90 00 2A [18:12:36]RAPDU: 52 E6 0F 54 75 4F 11 0B 90 00 [18:12:36]wFMCommunicate OK [18:12:36]SAM_PROTO_SignData done [18:12:36]FM_MakeSignedData done [18:12:36]CreateOFDProtocolMessage [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 11 00 00 [18:12:36]Write to MH i2c: E2 08 00 E9 4B 80 11 00 00 00 00 00 00 AE [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 17 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 17 00 E9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FB [18:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:12:36]wFMCommunicate OK [18:12:36]CreateOFDProtocolMessage done [18:12:36]OFDSenderStorePacket 73965 [18:12:36]StoreOFDPacket docnum=73965 [18:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3B 02 00 00 10 B9 33 02 29 EE 5A 03 01 00 03 00 27 02 1E 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 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 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 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 38 39 37 06 04 38 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 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 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 D3 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 23 01 00 00 F4 03 04 00 15 48 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 20 01 00 35 04 06 00 69 2C 59 FA 6E D1 52 E6 0F 54 75 4F 11 0B [18:12:36]CheckFolder [18:12:36]dirname=/storage/ofd_packets [18:12:36]CheckFolder done [18:12:36]ProducePacketName [18:12:36]name=ofd_packets/00073965 [18:12:36]NVStorageSaveData ofd_packets/00073965 [18:12:36]File name is /storage/ofd_packets/00073965 [18:12:36]Write 601 bytes [18:12:36]NVStorageSaveData done [18:12:36]OFDSenderStorePacket done [18:12:36]KKMCreateOFDPacket done [18:12:36]NVStorageSaveData kkm_last_timestamp [18:12:36]File name is /storage/kkm_last_timestamp [18:12:36]Write 4 bytes [18:12:36]NVStorageSaveData done [18:12:36]ExternCall_PrintAddStr [18:12:36]wPrintStart [18:12:36]Write to MH i2c: 01 00 00 EA 4B 35 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 EA 4B 00 00 00 00 00 FF 0F 4A [18:12:36]RasterBufferAndPrint [18:12:36]line Счет N : (3)272828 [18:12:36]line ИНН: 02508201610067 [18:12:36]line Контрольно-Кассовый Чек [18:12:36]line ПРОДАЖА [18:12:36]line Товар: 5449000176431 [18:12:36]line Сок Piko Pulpy апельсин ПЭТ 0,5л [18:12:36]line 1.000 * 95.00 [18:12:36]line = 95.00 [18:12:36]line НДС 12% НСП 1% [18:12:36]line > о реализуемом товаре [18:12:36]line Товар: 5449000273680 [18:12:36]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [18:12:36]line 1.000 * 100.00 [18:12:36]line = 100.00 [18:12:36]line НДС 12% НСП 1% [18:12:36]line > о реализуемом товаре [18:12:36]line Товар: 4870001570897 [18:12:36]line Напиток DADA ябл,клубника ПЭТ 0,5л [18:12:36]line 1.000 * 90.00 [18:12:36]line = 90.00 [18:12:36]line НДС 12% НСП 1% [18:12:36]line > о реализуемом товаре [18:12:36]line ИТОГО: 285.00 [18:12:36]line НСП 1% : 2.52 [18:12:36]line НДС 12% : 30.27 [18:12:36]line Наличными: 285.00 [18:12:36]line Безнал.: 0.00 [18:12:36]line Место: АЗС № 133 "Партнер Нефть" [18:12:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:12:36]line СНО: Общий режим [18:12:36]line Чек 291 20.10.2024 18:12 [18:12:36]line Смена: 170 ФФД: 1.0 [18:12:36]line ЗНМ: 0300000020 [18:12:36]line РНМ: 0000000000161154 [18:12:36]line Версия ККМ: v1.0 [18:12:36]line ФМ: 0000000000963323 [18:12:36]line ФД: 73965 [18:12:36]line ФПД: 115639209062097 [18:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181237&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73965&fm=115639209062097&tin=02508201610067®Number=0000000000161154&sum=28500 [18:12:37]line 0 [18:12:37]OFD Sender: Processing packet 73965 [packets to send 15, broken 14] [18:12:37]ProducePacketName [18:12:37]name=ofd_packets/00073965 [18:12:37]OFD Sender: To server: pG, [18:12:37]CommunicateWithHost lk.salyk.kg:30040 [18:12:37]ConnectInit lk.salyk.kg [18:12:37]written 0, free lines is 4095 [18:12:37]Connected sock=10 [18:12:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3B 02 00 00 10 B9 33 02 29 EE 5A 03 01 00 03 00 27 02 1E 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 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 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 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 38 39 37 06 04 38 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 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 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 D3 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 23 01 00 00 F4 03 04 00 15 48 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 20 01 00 35 04 06 00 69 2C 59 FA 6E D1 52 E6 0F 54 75 4F 11 0B [18:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 18 D5 47 00 63 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 39 36 33 33 32 33 10 04 04 00 ED 20 01 00 F4 03 04 00 FA F0 14 67 B6 04 01 00 00 23 72 2C 24 47 54 61 49 [18:12:37]CommunicateWithHost err = 0 [18:12:37]CheckOFDResponse [18:12:37]1017 (14) - 77093643461234 [18:12:37]1041 (16) - 0000000000963323 [18:12:37]1040 (4) - 73965 [18:12:37]1012 (4) - 20.10.2024 12:00 [18:12:37]1206 (1) - 0 [18:12:37]OFD Sender: Remove packet 73965 [18:12:37]ProducePacketName [18:12:37]name=ofd_packets/00073965 [18:12:37]NVStorageDeleteData [18:12:37]Write to MH i2c: 01 00 00 20 4C 6C [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 07 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 07 00 20 4C 00 00 00 00 00 FA 0B 78 [18:12:37]RasterBufferAndPrint [18:12:37]line [18:12:37]line [18:12:37]line [18:12:37]line [18:12:37]line [18:12:37]written 0, free lines is 3072 [18:12:37]MH_Cut [18:12:37]Write to MH i2c: D1 01 00 27 4C 01 45 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: D1 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: D1 01 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: D1 01 00 27 4C 00 44 [18:12:37]Write to MH i2c: 01 00 00 28 4C 74 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:38]OFD Sender: No OFD packet to send [18:12:38]*** Cut start [18:12:38]*** Partial cut [18:12:38]*** CUTSNS_PIN = 1 [18:12:38]*** CUTSNS_PIN = 0 [18:12:39]*** Brake cut motor [18:12:39]Read from MH i2c: 01 [18:12:39]MH_I2C_Read... [18:12:39]*** Stop cut motor [18:12:39]*** Cut end [18:12:39]Read from MH i2c: 01 07 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: 01 07 00 28 4C 00 00 00 00 00 FF 0F 89 [18:12:39]process_action close_receipt done [18:12:39]requested_data is exist [18:12:39]produce_requested_data [18:12:39]requested_item fm.sn is exist - process it [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 11 00 00 [18:12:39]Write to MH i2c: E2 08 00 29 4C 80 11 00 00 00 00 00 00 EF [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:39]Read from MH i2c: E2 17 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 17 00 29 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [18:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:12:39]wFMCommunicate OK [18:12:39]requested_item fd.num is exist - process it [18:12:39]SAM_PROTO_GetFieldsCounters [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 13 00 00 [18:12:39]Write to MH i2c: E2 08 00 2A 4C 80 13 00 00 00 00 00 00 F2 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 62 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 62 00 2A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 ED 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [18:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 ED 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:39]wFMCommunicate OK [18:12:39]SAM_PROTO_GetFieldsCounters done [18:12:39]requested_item shift.num is exist - process it [18:12:39]requested_item shift.opened is exist - process it [18:12:39]req_shift_opened [18:12:39]FM_GetShiftState [18:12:39]SAM_PROTO_GetShiftState [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 13 01 00 [18:12:39]Write to MH i2c: E2 08 00 2B 4C 80 13 01 00 00 00 00 00 F4 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 0E 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 0E 00 2B 4C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 39 [18:12:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:12:39]wFMCommunicate OK [18:12:39]SAM_PROTO_GetShiftState done [18:12:39]FM_GetShiftState done [18:12:39]req_shift_opened done [18:12:39]requested_item shift.open_date is exist - process it [18:12:39]req_shift_open_date [18:12:39]req_shift_open_date done [18:12:39]produce_requested_data done [18:12:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73965,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:12:39]process_action_free close_receipt [18:12:39]json_value_free [18:12:39]json_value_free done [18:12:39]process_json_proto returns [18:12:39]Send response to host [18:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73965,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:12:39]free response buf [18:12:39]execute_script done [18:12:39]execute_script returns [18:12:39]free content buf [18:12:39]Sock 9.Close socket [18:12:39]Sock 9.Thread stoped [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]accept exits with 8 [18:24:43]New connection [18:24:43]New thread 3067575652 created [18:24:43]Thread 3067432292 joined [18:24:43]Waiting for new connection... [18:24:43] Sock 8.Parse request [18:24:43]Sock 8.Check first char [18:24:43]Sock 8.First char is OK [18:24:43]request: POST /json_proto HTTP/1.0 [18:24:43]Method: POST [18:24:43]URL: /json_proto [18:24:43]Method is POST - this is cgi request [18:24:43]url: /json_proto [18:24:43]query_string will be loaded in cgi processing [18:24:43]execute_cgi json_proto POST (null) [18:24:43]execute_cgi path=json_proto method=POST [18:24:43]POST find Content-Length [18:24:43]Host: 172.17.44.196:8080 [18:24:43]Content-Length: 740 [18:24:43]Content-Type: application/json [18:24:43] [18:24:43]POST finish read [18:24:43]Found Content-Length = 740 [18:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272829", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:43]execute_script... [18:24: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)272829", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:43]POST & json_proto [18:24:43]process_json_proto [18:24:43]json parsed OK: [18:24:43]protocol is kg_v1.0 [18:24:43]action value=close_receipt [18:24:43]process_action close_receipt [18:24:43]cmd_close_receipt [18:24:43]MH_GetDate [18:24:43]Write to MH i2c: F0 00 00 2C 4C 67 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: F0 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: F0 09 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: F0 09 00 2C 4C 00 EE 4A 15 67 E7 19 F8 65 81 [18:24:43]GetLastDocTimeStamp 1729447957 [18:24:43]current date 1729448686 [18:24:43]FM_GetShiftState [18:24:43]SAM_PROTO_GetShiftState [18:24:43]wFMCommunicate request_size=4 [18:24:43]MH_SAM_APDU [18:24:43]CAPDU: 80 13 01 00 [18:24:43]Write to MH i2c: E2 08 00 2D 4C 80 13 01 00 00 00 00 00 F6 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:43]Read from MH i2c: E2 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 0E 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 0E 00 2D 4C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3B [18:24:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:24:43]wFMCommunicate OK [18:24:43]SAM_PROTO_GetShiftState done [18:24:43]FM_GetShiftState done [18:24:43]opened in 1729384303 [18:24:43]opened+sec_in_day 1729470703 [18:24:43]quantity*price = 8000 [18:24:43]sum+1 = 8001 [18:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 292 20.10.2024 18:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73966 ФПД: 271029081177239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182446&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73966&fm=271029081177239&tin=02508201610067®Number=0000000000161154&sum=8000 0 [18:24:44]StoreToDocumentArchive [18:24:44]shift 170 fd 73966 [18:24:44]save to /storage/0170/doc_00073966 [18:24:44]save last doc name /storage/0170/doc_00073966 to /storage/kkm_last_doc_name [18:24:44]save OK [18:24:44]Clear old archive folders... [18:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=268 [18:24:44]tlvbuf is 003CBE00 [18:24:44]SAM_PROTO_ClearQueue [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 09 00 00 [18:24:44]Write to MH i2c: E2 08 00 3A 4C 80 09 00 00 00 00 00 00 F8 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 3A 4C 00 90 00 FA [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]SAM_PROTO_ClearQueue done [18:24:44]KKMCreateOFDPacket [18:24:44]OFDProtocolAddRootSTLVToBuf [18:24:44]FM_MakeSignedData [18:24:44]FM_MakeSignedData [18:24:44]SAM_PROTO_SignData [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 0D 01 02 [18:24:44]Write to MH i2c: E2 08 00 3B 4C 80 0D 01 02 00 00 00 00 00 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 3B 4C 00 90 00 FB [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]wFMCommunicate request_size=255 [18:24:44]MH_SAM_APDU [18:24:44]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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 EE 4A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [18:24:44]Write to MH i2c: E2 02 01 3C 4C 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 EE 4A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 8F [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 3C 4C 00 90 00 FC [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]wFMCommunicate request_size=27 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 0D 02 02 16 33 33 32 33 10 04 04 00 EE 20 01 00 35 04 06 00 F6 7F E0 1B 7C 97 [18:24:44]Write to MH i2c: E2 1E 00 3D 4C 80 0D 02 02 16 00 33 33 32 33 10 04 04 00 EE 20 01 00 35 04 06 00 F6 7F E0 1B 7C 97 00 00 E3 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 3D 4C 00 90 00 FD [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 0D 03 02 [18:24:44]Write to MH i2c: E2 08 00 3E 4C 80 0D 03 02 00 00 00 00 05 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 0B 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 0B 00 3E 4C 00 B2 71 25 02 D8 91 0D 75 90 00 3B [18:24:44]RAPDU: B2 71 25 02 D8 91 0D 75 90 00 [18:24:44]wFMCommunicate OK [18:24:44]SAM_PROTO_SignData done [18:24:44]FM_MakeSignedData done [18:24:44]CreateOFDProtocolMessage [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 11 00 00 [18:24:44]Write to MH i2c: E2 08 00 3F 4C 80 11 00 00 00 00 00 00 05 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 17 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 17 00 3F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 52 [18:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:24:44]wFMCommunicate OK [18:24:44]CreateOFDProtocolMessage done [18:24:44]OFDSenderStorePacket 73966 [18:24:44]StoreOFDPacket docnum=73966 [18:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 17 D8 18 01 1A 7C 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 EE 4A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 20 01 00 35 04 06 00 F6 7F E0 1B 7C 97 B2 71 25 02 D8 91 0D 75 [18:24:44]CheckFolder [18:24:44]dirname=/storage/ofd_packets [18:24:44]CheckFolder done [18:24:44]ProducePacketName [18:24:44]name=ofd_packets/00073966 [18:24:44]NVStorageSaveData ofd_packets/00073966 [18:24:44]File name is /storage/ofd_packets/00073966 [18:24:44]Write 318 bytes [18:24:44]NVStorageSaveData done [18:24:44]OFDSenderStorePacket done [18:24:44]KKMCreateOFDPacket done [18:24:44]NVStorageSaveData kkm_last_timestamp [18:24:44]File name is /storage/kkm_last_timestamp [18:24:44]Write 4 bytes [18:24:44]NVStorageSaveData done [18:24:44]ExternCall_PrintAddStr [18:24:44]wPrintStart [18:24:44]Write to MH i2c: 01 00 00 40 4C 8C [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 07 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 07 00 40 4C 00 00 00 00 00 FF 0F A1 [18:24:44]RasterBufferAndPrint [18:24:44]line Счет N : (3)272829 [18:24:44]line ИНН: 02508201610067 [18:24:44]line Контрольно-Кассовый Чек [18:24:44]line ПРОДАЖА [18:24:44]line Товар: 4870001570057 [18:24:44]line Напиток Pepsi 0,5л [18:24:44]line 1.000 * 80.00 [18:24:44]line = 80.00 [18:24:44]line НДС 12% НСП 1% [18:24:44]line > о реализуемом товаре [18:24:44]line ИТОГО: 80.00 [18:24:44]line НСП 1% : 0.71 [18:24:44]line НДС 12% : 8.50 [18:24:44]line Наличными: 0.00 [18:24:44]line Безнал.: 80.00 [18:24:44]line Место: АЗС № 133 "Партнер Нефть" [18:24:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:24:44]line СНО: Общий режим [18:24:44]line Чек 292 20.10.2024 18:24 [18:24:44]line Смена: 170 ФФД: 1.0 [18:24:44]line ЗНМ: 0300000020 [18:24:44]line РНМ: 0000000000161154 [18:24:44]line Версия ККМ: v1.0 [18:24:45]line Платежная система: Mbank [18:24:45]line ФМ: 0000000000963323 [18:24:45]line ФД: 73966 [18:24:45]line ФПД: 271029081177239 [18:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182446&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73966&fm=271029081177239&tin=02508201610067®Number=0000000000161154&sum=8000 [18:24:45]line 0 [18:24:45]OFD Sender: Processing packet 73966 [packets to send 15, broken 14] [18:24:45]ProducePacketName [18:24:45]name=ofd_packets/00073966 [18:24:45]OFD Sender: To server: pG, [18:24:45]CommunicateWithHost lk.salyk.kg:30040 [18:24:45]ConnectInit lk.salyk.kg [18:24:45]written 0, free lines is 4095 [18:24:45]Connected sock=10 [18:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 17 D8 18 01 1A 7C 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 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 EE 4A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 20 01 00 35 04 06 00 F6 7F E0 1B 7C 97 B2 71 25 02 D8 91 0D 75 [18:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 82 86 47 00 62 68 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 39 36 33 33 32 33 10 04 04 00 EE 20 01 00 F4 03 04 00 D2 F3 14 67 B6 04 01 00 00 F9 21 0A FA 5E 08 75 80 [18:24:45]CommunicateWithHost err = 0 [18:24:45]CheckOFDResponse [18:24:45]1017 (14) - 77093643461234 [18:24:45]1041 (16) - 0000000000963323 [18:24:45]1040 (4) - 73966 [18:24:45]1012 (4) - 20.10.2024 12:13 [18:24:45]1206 (1) - 0 [18:24:45]OFD Sender: Remove packet 73966 [18:24:45]ProducePacketName [18:24:45]name=ofd_packets/00073966 [18:24:45]NVStorageDeleteData [18:24:45]Write to MH i2c: 01 00 00 68 4C B4 [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 07 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 07 00 68 4C 00 00 00 00 00 E3 0C AA [18:24:45]RasterBufferAndPrint [18:24:45]line [18:24:45]line [18:24:45]line [18:24:45]line [18:24:45]line [18:24:45]written 0, free lines is 3305 [18:24:45]MH_Cut [18:24:45]Write to MH i2c: D1 01 00 6F 4C 01 8D [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: D1 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: D1 01 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: D1 01 00 6F 4C 00 8C [18:24:45]Write to MH i2c: 01 00 00 70 4C BC [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]OFD Sender: No OFD packet to send [18:24:46]*** Cut start [18:24:46]*** Partial cut [18:24:46]*** CUTSNS_PIN = 1 [18:24:46]*** CUTSNS_PIN = 0 [18:24:46]*** Brake cut motor [18:24:46]Read from MH i2c: 01 [18:24:46]MH_I2C_Read... [18:24:46]*** Stop cut motor [18:24:46]*** Cut end [18:24:46]Read from MH i2c: 01 07 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: 01 07 00 70 4C 00 00 00 00 00 FF 0F D1 [18:24:46]process_action close_receipt done [18:24:46]requested_data is exist [18:24:46]produce_requested_data [18:24:46]requested_item fm.sn is exist - process it [18:24:46]wFMCommunicate request_size=4 [18:24:46]MH_SAM_APDU [18:24:46]CAPDU: 80 11 00 00 [18:24:46]Write to MH i2c: E2 08 00 71 4C 80 11 00 00 00 00 00 00 37 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:46]Read from MH i2c: E2 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: E2 17 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: E2 17 00 71 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [18:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:24:46]wFMCommunicate OK [18:24:46]requested_item fd.num is exist - process it [18:24:46]SAM_PROTO_GetFieldsCounters [18:24:46]wFMCommunicate request_size=4 [18:24:46]MH_SAM_APDU [18:24:46]CAPDU: 80 13 00 00 [18:24:46]Write to MH i2c: E2 08 00 72 4C 80 13 00 00 00 00 00 00 3A [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:47]Read from MH i2c: E2 [18:24:47]MH_I2C_Read... [18:24:47]Read from MH i2c: E2 62 00 [18:24:47]MH_I2C_Read... [18:24:47]Read from MH i2c: E2 62 00 72 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [18:24:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:47]wFMCommunicate OK [18:24:47]SAM_PROTO_GetFieldsCounters done [18:24:47]requested_item shift.num is exist - process it [18:24:47]requested_item shift.opened is exist - process it [18:24:47]req_shift_opened [18:24:47]FM_GetShiftState [18:24:47]SAM_PROTO_GetShiftState [18:24:47]wFMCommunicate request_size=4 [18:24:47]MH_SAM_APDU [18:24:47]CAPDU: 80 13 01 00 [18:24:47]Write to MH i2c: E2 08 00 73 4C 80 13 01 00 00 00 00 00 3C [18:24:47]Write i2c OK [18:24:47]MH_I2C_Read... [18:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:47]Read from MH i2c: E2 [18:24:47]MH_I2C_Read... [18:24:47]Read from MH i2c: E2 0E 00 [18:24:47]MH_I2C_Read... [18:24:47]Read from MH i2c: E2 0E 00 73 4C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 81 [18:24:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:24:47]wFMCommunicate OK [18:24:47]SAM_PROTO_GetShiftState done [18:24:47]FM_GetShiftState done [18:24:47]req_shift_opened done [18:24:47]requested_item shift.open_date is exist - process it [18:24:47]req_shift_open_date [18:24:47]req_shift_open_date done [18:24:47]produce_requested_data done [18:24:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73966,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:24:47]process_action_free close_receipt [18:24:47]json_value_free [18:24:47]json_value_free done [18:24:47]process_json_proto returns [18:24:47]Send response to host [18:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73966,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:24:47]free response buf [18:24:47]execute_script done [18:24:47]execute_script returns [18:24:47]free content buf [18:24:47]Sock 8.Close socket [18:24:47]Sock 8.Thread stoped [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:23]accept exits with 9 [18:27:23]New connection [18:27:23]New thread 3067432292 created [18:27:23]Thread 3067575652 joined [18:27:23]Waiting for new connection... [18:27:23] Sock 9.Parse request [18:27:23]Sock 9.Check first char [18:27:23]Sock 9.First char is OK [18:27:23]request: POST /json_proto HTTP/1.0 [18:27:23]Method: POST [18:27:23]URL: /json_proto [18:27:23]Method is POST - this is cgi request [18:27:23]url: /json_proto [18:27:23]query_string will be loaded in cgi processing [18:27:23]execute_cgi json_proto POST (null) [18:27:23]execute_cgi path=json_proto method=POST [18:27:23]POST find Content-Length [18:27:23]Host: 172.17.44.196:8080 [18:27:23]Content-Length: 585 [18:27:23]Content-Type: application/json [18:27:23] [18:27:23]POST finish read [18:27:23]Found Content-Length = 585 [18:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272830", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "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" ] } } [18:27:23]execute_script... [18:27: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)272830", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "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" ] } } [18:27:23]POST & json_proto [18:27:23]process_json_proto [18:27:23]json parsed OK: [18:27:23]protocol is kg_v1.0 [18:27:23]action value=close_receipt [18:27:23]process_action close_receipt [18:27:23]cmd_close_receipt [18:27:23]MH_GetDate [18:27:23]Write to MH i2c: F0 00 00 74 4C AF [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: F0 09 00 74 4C 00 8E 4B 15 67 E7 19 F8 65 6A [18:27:23]GetLastDocTimeStamp 1729448686 [18:27:23]current date 1729448846 [18:27:23]FM_GetShiftState [18:27:23]SAM_PROTO_GetShiftState [18:27:23]wFMCommunicate request_size=4 [18:27:23]MH_SAM_APDU [18:27:23]CAPDU: 80 13 01 00 [18:27:23]Write to MH i2c: E2 08 00 75 4C 80 13 01 00 00 00 00 00 3E [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:23]Read from MH i2c: E2 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: E2 0E 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: E2 0E 00 75 4C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 83 [18:27:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:27:23]wFMCommunicate OK [18:27:23]SAM_PROTO_GetShiftState done [18:27:23]FM_GetShiftState done [18:27:23]opened in 1729384303 [18:27:23]opened+sec_in_day 1729470703 [18:27:23]quantity*price = 4500 [18:27:23]sum+1 = 4501 [18:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 293 20.10.2024 18:27 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73967 ФПД: 4258282173440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182726&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73967&fm=4258282173440&tin=02508201610067®Number=0000000000161154&sum=4500 0 [18:27:24]StoreToDocumentArchive [18:27:24]shift 170 fd 73967 [18:27:24]save to /storage/0170/doc_00073967 [18:27:24]save last doc name /storage/0170/doc_00073967 to /storage/kkm_last_doc_name [18:27:24]save OK [18:27:24]Clear old archive folders... [18:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=260 [18:27:24]tlvbuf is 003E63B0 [18:27:24]SAM_PROTO_ClearQueue [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 09 00 00 [18:27:24]Write to MH i2c: E2 08 00 82 4C 80 09 00 00 00 00 00 00 40 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 82 4C 00 90 00 42 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_ClearQueue done [18:27:24]KKMCreateOFDPacket [18:27:24]OFDProtocolAddRootSTLVToBuf [18:27:24]FM_MakeSignedData [18:27:24]FM_MakeSignedData [18:27:24]SAM_PROTO_SignData [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 01 02 [18:27:24]Write to MH i2c: E2 08 00 83 4C 80 0D 01 02 00 00 00 00 48 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 83 4C 00 90 00 43 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=255 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 25 01 00 00 F4 03 04 00 8E 4B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 [18:27:24]Write to MH i2c: E2 02 01 84 4C 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 25 01 00 00 F4 03 04 00 8E 4B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 00 D9 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 84 4C 00 90 00 44 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=19 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 02 02 0E EF 20 01 00 35 04 06 00 03 DF 75 65 74 00 [18:27:24]Write to MH i2c: E2 16 00 85 4C 80 0D 02 02 0E 00 EF 20 01 00 35 04 06 00 03 DF 75 65 74 00 00 00 E6 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 03 00 85 4C 00 90 00 45 [18:27:24]RAPDU: 90 00 [18:27:24]wFMCommunicate OK [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 0D 03 02 [18:27:24]Write to MH i2c: E2 08 00 86 4C 80 0D 03 02 00 00 00 00 4D [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0B 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0B 00 86 4C 00 FF AD CB 4C CA E7 67 7E 90 00 A7 [18:27:24]RAPDU: FF AD CB 4C CA E7 67 7E 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_SignData done [18:27:24]FM_MakeSignedData done [18:27:24]CreateOFDProtocolMessage [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 11 00 00 [18:27:24]Write to MH i2c: E2 08 00 87 4C 80 11 00 00 00 00 00 00 4D [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 87 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [18:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:27:24]wFMCommunicate OK [18:27:24]CreateOFDProtocolMessage done [18:27:24]OFDSenderStorePacket 73967 [18:27:24]StoreOFDPacket docnum=73967 [18:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 18 01 00 00 66 A7 10 01 A2 F9 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 25 01 00 00 F4 03 04 00 8E 4B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 20 01 00 35 04 06 00 03 DF 75 65 74 00 FF AD CB 4C CA E7 67 7E [18:27:24]CheckFolder [18:27:24]dirname=/storage/ofd_packets [18:27:24]CheckFolder done [18:27:24]ProducePacketName [18:27:24]name=ofd_packets/00073967 [18:27:24]NVStorageSaveData ofd_packets/00073967 [18:27:24]File name is /storage/ofd_packets/00073967 [18:27:24]Write 310 bytes [18:27:24]NVStorageSaveData done [18:27:24]OFDSenderStorePacket done [18:27:24]KKMCreateOFDPacket done [18:27:24]NVStorageSaveData kkm_last_timestamp [18:27:24]File name is /storage/kkm_last_timestamp [18:27:24]Write 4 bytes [18:27:24]NVStorageSaveData done [18:27:24]ExternCall_PrintAddStr [18:27:24]wPrintStart [18:27:24]Write to MH i2c: 01 00 00 88 4C D4 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 88 4C 00 00 00 00 00 FF 0F E9 [18:27:24]RasterBufferAndPrint [18:27:24]line Счет N : (3)272830 [18:27:24]line ИНН: 02508201610067 [18:27:24]line Контрольно-Кассовый Чек [18:27:24]line ПРОДАЖА [18:27:24]line Товар: 50173617 [18:27:24]line Жев Orbit Eucalyptus [18:27:24]line 1.000 * 45.00 [18:27:24]line = 45.00 [18:27:24]line НДС 12% НСП 1% [18:27:24]line > о реализуемом товаре [18:27:24]line ИТОГО: 45.00 [18:27:24]line НСП 1% : 0.40 [18:27:24]line НДС 12% : 4.78 [18:27:24]line Наличными: 45.00 [18:27:24]line Безнал.: 0.00 [18:27:24]line Место: АЗС № 133 "Партнер Нефть" [18:27:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:27:24]line СНО: Общий режим [18:27:24]line Чек 293 20.10.2024 18:27 [18:27:24]line Смена: 170 ФФД: 1.0 [18:27:24]line ЗНМ: 0300000020 [18:27:24]line РНМ: 0000000000161154 [18:27:24]line Версия ККМ: v1.0 [18:27:24]line ФМ: 0000000000963323 [18:27:24]line ФД: 73967 [18:27:24]line ФПД: 4258282173440 [18:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182726&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73967&fm=4258282173440&tin=02508201610067®Number=0000000000161154&sum=4500 [18:27:25]line 0 [18:27:25]OFD Sender: Processing packet 73967 [packets to send 15, broken 14] [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00073967 [18:27:25]OFD Sender: To server: pG, [18:27:25]CommunicateWithHost lk.salyk.kg:30040 [18:27:25]ConnectInit lk.salyk.kg [18:27:25]written 0, free lines is 4095 [18:27:25]Connected sock=10 [18:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 18 01 00 00 66 A7 10 01 A2 F9 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 25 01 00 00 F4 03 04 00 8E 4B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 20 01 00 35 04 06 00 03 DF 75 65 74 00 FF AD CB 4C CA E7 67 7E [18:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 04 47 00 D3 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 39 36 33 33 32 33 10 04 04 00 EF 20 01 00 F4 03 04 00 72 F4 14 67 B6 04 01 00 00 0B 4A 66 07 FD F1 3D 7A [18:27:25]CommunicateWithHost err = 0 [18:27:25]CheckOFDResponse [18:27:25]1017 (14) - 77093643461234 [18:27:25]1041 (16) - 0000000000963323 [18:27:25]1040 (4) - 73967 [18:27:25]1012 (4) - 20.10.2024 12:15 [18:27:25]1206 (1) - 0 [18:27:25]OFD Sender: Remove packet 73967 [18:27:25]ProducePacketName [18:27:25]name=ofd_packets/00073967 [18:27:25]NVStorageDeleteData [18:27:25]Write to MH i2c: 01 00 00 AF 4C FB [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: 01 07 00 AF 4C 00 00 00 00 00 EF 0C FD [18:27:25]RasterBufferAndPrint [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]line [18:27:25]written 0, free lines is 3318 [18:27:25]MH_Cut [18:27:25]Write to MH i2c: D1 01 00 B6 4C 01 D4 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: D1 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: D1 01 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: D1 01 00 B6 4C 00 D3 [18:27:25]Write to MH i2c: 01 00 00 B7 4C 03 [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]OFD Sender: No OFD packet to send [18:27:26]*** Cut start [18:27:26]*** Partial cut [18:27:26]*** CUTSNS_PIN = 1 [18:27:26]*** CUTSNS_PIN = 0 [18:27:26]*** Brake cut motor [18:27:26]Read from MH i2c: 01 [18:27:26]MH_I2C_Read... [18:27:26]*** Stop cut motor [18:27:26]*** Cut end [18:27:26]Read from MH i2c: 01 07 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: 01 07 00 B7 4C 00 00 00 00 00 FF 0F 18 [18:27:26]process_action close_receipt done [18:27:26]requested_data is exist [18:27:26]produce_requested_data [18:27:26]requested_item fm.sn is exist - process it [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 11 00 00 [18:27:26]Write to MH i2c: E2 08 00 B8 4C 80 11 00 00 00 00 00 00 7E [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:26]Read from MH i2c: E2 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 17 00 [18:27:26]MH_I2C_Read... [18:27:26]Read from MH i2c: E2 17 00 B8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [18:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:27:26]wFMCommunicate OK [18:27:26]requested_item fd.num is exist - process it [18:27:26]SAM_PROTO_GetFieldsCounters [18:27:26]wFMCommunicate request_size=4 [18:27:26]MH_SAM_APDU [18:27:26]CAPDU: 80 13 00 00 [18:27:26]Write to MH i2c: E2 08 00 B9 4C 80 13 00 00 00 00 00 00 81 [18:27:26]Write i2c OK [18:27:26]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 62 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 62 00 B9 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [18:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_GetFieldsCounters done [18:27:27]requested_item shift.num is exist - process it [18:27:27]requested_item shift.opened is exist - process it [18:27:27]req_shift_opened [18:27:27]FM_GetShiftState [18:27:27]SAM_PROTO_GetShiftState [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 13 01 00 [18:27:27]Write to MH i2c: E2 08 00 BA 4C 80 13 01 00 00 00 00 00 83 [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0E 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0E 00 BA 4C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C8 [18:27:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_GetShiftState done [18:27:27]FM_GetShiftState done [18:27:27]req_shift_opened done [18:27:27]requested_item shift.open_date is exist - process it [18:27:27]req_shift_open_date [18:27:27]req_shift_open_date done [18:27:27]produce_requested_data done [18:27:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73967,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:27:27]process_action_free close_receipt [18:27:27]json_value_free [18:27:27]json_value_free done [18:27:27]process_json_proto returns [18:27:27]Send response to host [18:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73967,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:27:27]free response buf [18:27:27]execute_script done [18:27:27]execute_script returns [18:27:27]free content buf [18:27:27]Sock 9.Close socket [18:27:27]Sock 9.Thread stoped [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]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:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:04]accept exits with 8 [18:58:04]New connection [18:58:04]New thread 3067575652 created [18:58:04]Thread 3067432292 joined [18:58:04]Waiting for new connection... [18:58:04] Sock 8.Parse request [18:58:04]Sock 8.Check first char [18:58:04]Sock 8.First char is OK [18:58:04]request: POST /json_proto HTTP/1.0 [18:58:04]Method: POST [18:58:04]URL: /json_proto [18:58:04]Method is POST - this is cgi request [18:58:04]url: /json_proto [18:58:04]query_string will be loaded in cgi processing [18:58:04]execute_cgi json_proto POST (null) [18:58:04]execute_cgi path=json_proto method=POST [18:58:04]POST find Content-Length [18:58:04]Host: 172.17.44.196:8080 [18:58:04]Content-Length: 623 [18:58:04]Content-Type: application/json [18:58:04] [18:58:04]POST finish read [18:58:04]Found Content-Length = 623 [18:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272831", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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:58:04]execute_script... [18:58: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)272831", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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:58:04]POST & json_proto [18:58:04]process_json_proto [18:58:04]json parsed OK: [18:58:04]protocol is kg_v1.0 [18:58:04]action value=close_receipt [18:58:04]process_action close_receipt [18:58:04]cmd_close_receipt [18:58:04]MH_GetDate [18:58:04]Write to MH i2c: F0 00 00 BB 4C F6 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: F0 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: F0 09 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: F0 09 00 BB 4C 00 C0 52 15 67 E7 19 F8 65 EA [18:58:04]GetLastDocTimeStamp 1729448846 [18:58:04]current date 1729450688 [18:58:04]FM_GetShiftState [18:58:04]SAM_PROTO_GetShiftState [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 13 01 00 [18:58:04]Write to MH i2c: E2 08 00 BC 4C 80 13 01 00 00 00 00 00 85 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0E 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0E 00 BC 4C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CA [18:58:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:58:05]wFMCommunicate OK [18:58:05]SAM_PROTO_GetShiftState done [18:58:05]FM_GetShiftState done [18:58:05]opened in 1729384303 [18:58:05]opened+sec_in_day 1729470703 [18:58:05]quantity*price = 14000 [18:58:05]sum+1 = 14001 [18:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 294 20.10.2024 18:58 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73968 ФПД: 96544764020199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185808&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73968&fm=96544764020199&tin=02508201610067®Number=0000000000161154&sum=14000 0 [18:58:06]StoreToDocumentArchive [18:58:06]shift 170 fd 73968 [18:58:06]save to /storage/0170/doc_00073968 [18:58:06]save last doc name /storage/0170/doc_00073968 to /storage/kkm_last_doc_name [18:58:06]save OK [18:58:06]Clear old archive folders... [18:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:58:06]tlvbuf is 004DC440 [18:58:06]SAM_PROTO_ClearQueue [18:58:06]wFMCommunicate request_size=4 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 09 00 00 [18:58:06]Write to MH i2c: E2 08 00 C9 4C 80 09 00 00 00 00 00 00 87 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 C9 4C 00 90 00 89 [18:58:06]RAPDU: 90 00 [18:58:06]wFMCommunicate OK [18:58:06]SAM_PROTO_ClearQueue done [18:58:06]KKMCreateOFDPacket [18:58:06]OFDProtocolAddRootSTLVToBuf [18:58:06]FM_MakeSignedData [18:58:06]FM_MakeSignedData [18:58:06]SAM_PROTO_SignData [18:58:06]wFMCommunicate request_size=4 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 0D 01 02 [18:58:06]Write to MH i2c: E2 08 00 CA 4C 80 0D 01 02 00 00 00 00 8F [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 CA 4C 00 90 00 8A [18:58:06]RAPDU: 90 00 [18:58:06]wFMCommunicate OK [18:58:06]wFMCommunicate request_size=255 [18:58:06]MH_SAM_APDU [18:58:06]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 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 26 01 00 00 F4 03 04 00 C0 52 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [18:58:06]Write to MH i2c: E2 02 01 CB 4C 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 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 26 01 00 00 F4 03 04 00 C0 52 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 77 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 CB 4C 00 90 00 8B [18:58:06]RAPDU: 90 00 [18:58:06]wFMCommunicate OK [18:58:06]wFMCommunicate request_size=34 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 20 01 00 35 04 06 00 57 CE 94 5D 45 E7 [18:58:06]Write to MH i2c: E2 25 00 CC 4C 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 20 01 00 35 04 06 00 57 CE 94 5D 45 E7 00 00 A0 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 03 00 CC 4C 00 90 00 8C [18:58:06]RAPDU: 90 00 [18:58:06]wFMCommunicate OK [18:58:06]wFMCommunicate request_size=4 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 0D 03 02 [18:58:06]Write to MH i2c: E2 08 00 CD 4C 80 0D 03 02 00 00 00 00 94 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 0B 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 0B 00 CD 4C 00 CE 23 46 57 FC DA EE 1F 90 00 06 [18:58:06]RAPDU: CE 23 46 57 FC DA EE 1F 90 00 [18:58:06]wFMCommunicate OK [18:58:06]SAM_PROTO_SignData done [18:58:06]FM_MakeSignedData done [18:58:06]CreateOFDProtocolMessage [18:58:06]wFMCommunicate request_size=4 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 11 00 00 [18:58:06]Write to MH i2c: E2 08 00 CE 4C 80 11 00 00 00 00 00 00 94 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 17 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 17 00 CE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E1 [18:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:58:06]wFMCommunicate OK [18:58:06]CreateOFDProtocolMessage done [18:58:06]OFDSenderStorePacket 73968 [18:58:06]StoreOFDPacket docnum=73968 [18:58:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 FA 85 1F 01 38 57 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 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 26 01 00 00 F4 03 04 00 C0 52 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 20 01 00 35 04 06 00 57 CE 94 5D 45 E7 CE 23 46 57 FC DA EE 1F [18:58:06]CheckFolder [18:58:06]dirname=/storage/ofd_packets [18:58:06]CheckFolder done [18:58:06]ProducePacketName [18:58:06]name=ofd_packets/00073968 [18:58:06]NVStorageSaveData ofd_packets/00073968 [18:58:06]File name is /storage/ofd_packets/00073968 [18:58:06]Write 325 bytes [18:58:06]NVStorageSaveData done [18:58:06]OFDSenderStorePacket done [18:58:06]KKMCreateOFDPacket done [18:58:06]NVStorageSaveData kkm_last_timestamp [18:58:06]File name is /storage/kkm_last_timestamp [18:58:06]Write 4 bytes [18:58:06]NVStorageSaveData done [18:58:06]ExternCall_PrintAddStr [18:58:06]wPrintStart [18:58:06]Write to MH i2c: 01 00 00 CF 4C 1B [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 07 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 07 00 CF 4C 00 00 00 00 00 FF 0F 30 [18:58:06]RasterBufferAndPrint [18:58:06]line Счет N : (3)272831 [18:58:06]line ИНН: 02508201610067 [18:58:06]line Контрольно-Кассовый Чек [18:58:06]line ПРОДАЖА [18:58:06]line Товар: 48743587 [18:58:06]line Сигареты Winston XStyle Silver [18:58:06]line 1.000 * 140.00 [18:58:06]line = 140.00 [18:58:06]line НДС 12% НСП 1% [18:58:06]line > о реализуемом товаре [18:58:06]line ИТОГО: 140.00 [18:58:06]line НСП 1% : 1.24 [18:58:06]line НДС 12% : 14.87 [18:58:06]line Наличными: 140.00 [18:58:06]line Безнал.: 0.00 [18:58:06]line Место: АЗС № 133 "Партнер Нефть" [18:58:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:58:06]line СНО: Общий режим [18:58:06]line Чек 294 20.10.2024 18:58 [18:58:06]line Смена: 170 ФФД: 1.0 [18:58:06]line ЗНМ: 0300000020 [18:58:06]line РНМ: 0000000000161154 [18:58:06]line Версия ККМ: v1.0 [18:58:06]line ФМ: 0000000000963323 [18:58:06]line ФД: 73968 [18:58:06]line ФПД: 96544764020199 [18:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185808&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73968&fm=96544764020199&tin=02508201610067®Number=0000000000161154&sum=14000 [18:58:06]line 0 [18:58:06]OFD Sender: Processing packet 73968 [packets to send 15, broken 14] [18:58:06]ProducePacketName [18:58:06]name=ofd_packets/00073968 [18:58:06]OFD Sender: To server: pG, [18:58:06]CommunicateWithHost lk.salyk.kg:30040 [18:58:06]ConnectInit lk.salyk.kg [18:58:06]written 0, free lines is 4095 [18:58:07]Connected sock=10 [18:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 FA 85 1F 01 38 57 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 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 26 01 00 00 F4 03 04 00 C0 52 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 20 01 00 35 04 06 00 57 CE 94 5D 45 E7 CE 23 46 57 FC DA EE 1F [18:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 C3 47 00 B7 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 39 36 33 33 32 33 10 04 04 00 F0 20 01 00 F4 03 04 00 A4 FB 14 67 B6 04 01 00 00 E4 A4 8D 6A 62 08 BD 87 [18:58:07]CommunicateWithHost err = 0 [18:58:07]CheckOFDResponse [18:58:07]1017 (14) - 77093643461234 [18:58:07]1041 (16) - 0000000000963323 [18:58:07]1040 (4) - 73968 [18:58:07]1012 (4) - 20.10.2024 12:46 [18:58:07]1206 (1) - 0 [18:58:07]OFD Sender: Remove packet 73968 [18:58:07]ProducePacketName [18:58:07]name=ofd_packets/00073968 [18:58:07]NVStorageDeleteData [18:58:07]Write to MH i2c: 01 00 00 F7 4C 43 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 F7 4C 00 00 00 00 00 D7 0C 2D [18:58:07]RasterBufferAndPrint [18:58:07]line [18:58:07]line [18:58:07]line [18:58:07]line [18:58:07]line [18:58:07]written 0, free lines is 3292 [18:58:07]MH_Cut [18:58:07]Write to MH i2c: D1 01 00 FE 4C 01 1C [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: D1 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: D1 01 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: D1 01 00 FE 4C 00 1B [18:58:07]Write to MH i2c: 01 00 00 FF 4C 4B [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]OFD Sender: No OFD packet to send [18:58:08]*** Cut start [18:58:08]*** Partial cut [18:58:08]*** CUTSNS_PIN = 1 [18:58:08]*** CUTSNS_PIN = 0 [18:58:08]*** Brake cut motor [18:58:08]Read from MH i2c: 01 [18:58:08]MH_I2C_Read... [18:58:08]*** Stop cut motor [18:58:08]*** Cut end [18:58:08]Read from MH i2c: 01 07 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 FF 4C 00 00 00 00 00 FF 0F 60 [18:58:08]process_action close_receipt done [18:58:08]requested_data is exist [18:58:08]produce_requested_data [18:58:08]requested_item fm.sn is exist - process it [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 11 00 00 [18:58:08]Write to MH i2c: E2 08 00 00 4D 80 11 00 00 00 00 00 00 C7 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 17 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 17 00 00 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [18:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:58:08]wFMCommunicate OK [18:58:08]requested_item fd.num is exist - process it [18:58:08]SAM_PROTO_GetFieldsCounters [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 13 00 00 [18:58:08]Write to MH i2c: E2 08 00 01 4D 80 13 00 00 00 00 00 00 CA [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:09]Read from MH i2c: E2 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 62 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 62 00 01 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [18:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F0 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:09]wFMCommunicate OK [18:58:09]SAM_PROTO_GetFieldsCounters done [18:58:09]requested_item shift.num is exist - process it [18:58:09]requested_item shift.opened is exist - process it [18:58:09]req_shift_opened [18:58:09]FM_GetShiftState [18:58:09]SAM_PROTO_GetShiftState [18:58:09]wFMCommunicate request_size=4 [18:58:09]MH_SAM_APDU [18:58:09]CAPDU: 80 13 01 00 [18:58:09]Write to MH i2c: E2 08 00 02 4D 80 13 01 00 00 00 00 00 CC [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:09]Read from MH i2c: E2 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 0E 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 0E 00 02 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 11 [18:58:09]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:58:09]wFMCommunicate OK [18:58:09]SAM_PROTO_GetShiftState done [18:58:09]FM_GetShiftState done [18:58:09]req_shift_opened done [18:58:09]requested_item shift.open_date is exist - process it [18:58:09]req_shift_open_date [18:58:09]req_shift_open_date done [18:58:09]produce_requested_data done [18:58:09]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73968,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:58:09]process_action_free close_receipt [18:58:09]json_value_free [18:58:09]json_value_free done [18:58:09]process_json_proto returns [18:58:09]Send response to host [18:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73968,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:58:09]free response buf [18:58:09]execute_script done [18:58:09]execute_script returns [18:58:09]free content buf [18:58:09]Sock 8.Close socket [18:58:09]Sock 8.Thread stoped [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:31]accept exits with 9 [18:59:31]New connection [18:59:31]New thread 3067432292 created [18:59:31]Thread 3067575652 joined [18:59:31]Waiting for new connection... [18:59:31] Sock 9.Parse request [18:59:31]Sock 9.Check first char [18:59:31]Sock 9.First char is OK [18:59:31]request: POST /json_proto HTTP/1.0 [18:59:31]Method: POST [18:59:31]URL: /json_proto [18:59:31]Method is POST - this is cgi request [18:59:31]url: /json_proto [18:59:31]query_string will be loaded in cgi processing [18:59:31]execute_cgi json_proto POST (null) [18:59:31]execute_cgi path=json_proto method=POST [18:59:31]POST find Content-Length [18:59:31]Host: 172.17.44.196:8080 [18:59:31]Content-Length: 655 [18:59:31]Content-Type: application/json [18:59:31] [18:59:31]POST finish read [18:59:31]Found Content-Length = 655 [18:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272832", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:31]execute_script... [18:59: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)272832", "tax_sys" : 0, "items" : [ { "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" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:31]POST & json_proto [18:59:31]process_json_proto [18:59:31]json parsed OK: [18:59:31]protocol is kg_v1.0 [18:59:31]action value=close_receipt [18:59:31]process_action close_receipt [18:59:31]cmd_close_receipt [18:59:31]MH_GetDate [18:59:31]Write to MH i2c: F0 00 00 03 4D 3F [18:59:31]Write i2c OK [18:59:31]MH_I2C_Read... [18:59:31]Read from MH i2c: F0 [18:59:31]MH_I2C_Read... [18:59:31]Read from MH i2c: F0 09 00 [18:59:31]MH_I2C_Read... [18:59:31]Read from MH i2c: F0 09 00 03 4D 00 16 53 15 67 E7 19 F8 65 8A [18:59:31]GetLastDocTimeStamp 1729450688 [18:59:31]current date 1729450774 [18:59:31]FM_GetShiftState [18:59:31]SAM_PROTO_GetShiftState [18:59:31]wFMCommunicate request_size=4 [18:59:31]MH_SAM_APDU [18:59:31]CAPDU: 80 13 01 00 [18:59:31]Write to MH i2c: E2 08 00 04 4D 80 13 01 00 00 00 00 00 CE [18:59:31]Write i2c OK [18:59:31]MH_I2C_Read... [18:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:31]Read from MH i2c: E2 [18:59:31]MH_I2C_Read... [18:59:31]Read from MH i2c: E2 0E 00 [18:59:31]MH_I2C_Read... [18:59:31]Read from MH i2c: E2 0E 00 04 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 13 [18:59:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:59:31]wFMCommunicate OK [18:59:31]SAM_PROTO_GetShiftState done [18:59:31]FM_GetShiftState done [18:59:31]opened in 1729384303 [18:59:31]opened+sec_in_day 1729470703 [18:59:31]quantity*price = 8500 [18:59:31]sum+1 = 8501 [18:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 295 20.10.2024 18:59 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73969 ФПД: 243495188551695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185934&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73969&fm=243495188551695&tin=02508201610067®Number=0000000000161154&sum=8500 0 [18:59:32]StoreToDocumentArchive [18:59:32]shift 170 fd 73969 [18:59:32]save to /storage/0170/doc_00073969 [18:59:32]save last doc name /storage/0170/doc_00073969 to /storage/kkm_last_doc_name [18:59:32]save OK [18:59:32]Clear old archive folders... [18:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:59:32]tlvbuf is 004DC1F0 [18:59:32]SAM_PROTO_ClearQueue [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 09 00 00 [18:59:32]Write to MH i2c: E2 08 00 11 4D 80 09 00 00 00 00 00 00 D0 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 11 4D 00 90 00 D2 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]SAM_PROTO_ClearQueue done [18:59:32]KKMCreateOFDPacket [18:59:32]OFDProtocolAddRootSTLVToBuf [18:59:32]FM_MakeSignedData [18:59:32]FM_MakeSignedData [18:59:32]SAM_PROTO_SignData [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 01 02 [18:59:32]Write to MH i2c: E2 08 00 12 4D 80 0D 01 02 00 00 00 00 D8 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 12 4D 00 90 00 D3 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]wFMCommunicate request_size=255 [18:59:32]MH_SAM_APDU [18:59:32]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 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 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 34 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 27 01 00 00 F4 03 04 00 16 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:59:32]Write to MH i2c: E2 02 01 13 4D 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 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 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 34 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 27 01 00 00 F4 03 04 00 16 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 73 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 13 4D 00 90 00 D4 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]wFMCommunicate request_size=53 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 02 02 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 20 01 00 35 04 06 00 DD 75 24 37 D8 0F [18:59:32]Write to MH i2c: E2 38 00 14 4D 80 0D 02 02 30 00 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 20 01 00 35 04 06 00 DD 75 24 37 D8 0F 00 00 69 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 14 4D 00 90 00 D5 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 03 02 [18:59:32]Write to MH i2c: E2 08 00 15 4D 80 0D 03 02 00 00 00 00 DD [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 0B 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 0B 00 15 4D 00 C7 9F A6 8C F9 43 C9 FB 90 00 76 [18:59:32]RAPDU: C7 9F A6 8C F9 43 C9 FB 90 00 [18:59:32]wFMCommunicate OK [18:59:32]SAM_PROTO_SignData done [18:59:32]FM_MakeSignedData done [18:59:32]CreateOFDProtocolMessage [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 11 00 00 [18:59:32]Write to MH i2c: E2 08 00 16 4D 80 11 00 00 00 00 00 00 DD [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 17 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 17 00 16 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [18:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:59:32]wFMCommunicate OK [18:59:32]CreateOFDProtocolMessage done [18:59:32]OFDSenderStorePacket 73969 [18:59:32]StoreOFDPacket docnum=73969 [18:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 CA BA 32 01 13 B4 5A 03 01 00 03 00 26 01 1E 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 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 34 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 27 01 00 00 F4 03 04 00 16 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 20 01 00 35 04 06 00 DD 75 24 37 D8 0F C7 9F A6 8C F9 43 C9 FB [18:59:32]CheckFolder [18:59:32]dirname=/storage/ofd_packets [18:59:32]CheckFolder done [18:59:32]ProducePacketName [18:59:32]name=ofd_packets/00073969 [18:59:32]NVStorageSaveData ofd_packets/00073969 [18:59:32]File name is /storage/ofd_packets/00073969 [18:59:32]Write 344 bytes [18:59:32]NVStorageSaveData done [18:59:32]OFDSenderStorePacket done [18:59:32]KKMCreateOFDPacket done [18:59:32]NVStorageSaveData kkm_last_timestamp [18:59:32]File name is /storage/kkm_last_timestamp [18:59:32]Write 4 bytes [18:59:32]NVStorageSaveData done [18:59:32]ExternCall_PrintAddStr [18:59:32]wPrintStart [18:59:32]Write to MH i2c: 01 00 00 17 4D 64 [18:59:32]OFD Sender: Processing packet 73969 [packets to send 15, broken 14] [18:59:32]ProducePacketName [18:59:32]name=ofd_packets/00073969 [18:59:32]OFD Sender: To server: pG, [18:59:32]CommunicateWithHost lk.salyk.kg:30040 [18:59:32]ConnectInit lk.salyk.kg [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: 01 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: 01 07 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: 01 07 00 17 4D 00 00 00 00 00 FF 0F 79 [18:59:32]RasterBufferAndPrint [18:59:32]line Счет N : (3)272832 [18:59:32]line ИНН: 02508201610067 [18:59:32]line Контрольно-Кассовый Чек [18:59:32]line ПРОДАЖА [18:59:32]line Товар: 4600682557456 [18:59:32]line Напиток FLash up energy эн ж/б 0,5/0,45л [18:59:32]line 1.000 * 85.00 [18:59:32]line = 85.00 [18:59:32]line НДС 12% НСП 1% [18:59:32]line > о реализуемом товаре [18:59:32]line ИТОГО: 85.00 [18:59:32]line НСП 1% : 0.75 [18:59:32]line НДС 12% : 9.03 [18:59:32]line Наличными: 85.00 [18:59:32]line Безнал.: 0.00 [18:59:32]line Место: АЗС № 133 "Партнер Нефть" [18:59:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:59:32]line СНО: Общий режим [18:59:32]line Чек 295 20.10.2024 18:59 [18:59:32]line Смена: 170 ФФД: 1.0 [18:59:32]line ЗНМ: 0300000020 [18:59:32]line РНМ: 0000000000161154 [18:59:32]line Версия ККМ: v1.0 [18:59:32]line ФМ: 0000000000963323 [18:59:32]line ФД: 73969 [18:59:32]line ФПД: 243495188551695 [18:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185934&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73969&fm=243495188551695&tin=02508201610067®Number=0000000000161154&sum=8500 [18:59:33]line 0 [18:59:33]Connected sock=10 [18:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 CA BA 32 01 13 B4 5A 03 01 00 03 00 26 01 1E 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 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 34 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 27 01 00 00 F4 03 04 00 16 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 20 01 00 35 04 06 00 DD 75 24 37 D8 0F C7 9F A6 8C F9 43 C9 FB [18:59:33]written 0, free lines is 4095 [18:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1B A2 47 00 E5 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 39 36 33 33 32 33 10 04 04 00 F1 20 01 00 F4 03 04 00 FA FB 14 67 B6 04 01 00 00 4C C6 D5 07 73 73 C1 37 [18:59:33]CommunicateWithHost err = 0 [18:59:33]CheckOFDResponse [18:59:33]1017 (14) - 77093643461234 [18:59:33]1041 (16) - 0000000000963323 [18:59:33]1040 (4) - 73969 [18:59:33]1012 (4) - 20.10.2024 12:47 [18:59:33]1206 (1) - 0 [18:59:33]OFD Sender: Remove packet 73969 [18:59:33]ProducePacketName [18:59:33]name=ofd_packets/00073969 [18:59:33]NVStorageDeleteData [18:59:33]Write to MH i2c: 01 00 00 3F 4D 8C [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 3F 4D 00 00 00 00 00 DC 0C 7B [18:59:33]RasterBufferAndPrint [18:59:33]line [18:59:33]line [18:59:33]line [18:59:33]line [18:59:33]line [18:59:33]written 0, free lines is 3298 [18:59:33]MH_Cut [18:59:33]Write to MH i2c: D1 01 00 46 4D 01 65 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: D1 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: D1 01 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: D1 01 00 46 4D 00 64 [18:59:33]Write to MH i2c: 01 00 00 47 4D 94 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]OFD Sender: No OFD packet to send [18:59:34]*** Cut start [18:59:34]*** Partial cut [18:59:34]*** CUTSNS_PIN = 1 [18:59:34]*** CUTSNS_PIN = 0 [18:59:34]*** Brake cut motor [18:59:35]Read from MH i2c: 01 [18:59:35]MH_I2C_Read... [18:59:35]*** Stop cut motor [18:59:35]*** Cut end [18:59:35]Read from MH i2c: 01 07 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 07 00 47 4D 00 00 00 00 00 FF 0F A9 [18:59:35]process_action close_receipt done [18:59:35]requested_data is exist [18:59:35]produce_requested_data [18:59:35]requested_item fm.sn is exist - process it [18:59:35]wFMCommunicate request_size=4 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 11 00 00 [18:59:35]Write to MH i2c: E2 08 00 48 4D 80 11 00 00 00 00 00 00 0F [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 17 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 17 00 48 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5C [18:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:59:35]wFMCommunicate OK [18:59:35]requested_item fd.num is exist - process it [18:59:35]SAM_PROTO_GetFieldsCounters [18:59:35]wFMCommunicate request_size=4 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 13 00 00 [18:59:35]Write to MH i2c: E2 08 00 49 4D 80 13 00 00 00 00 00 00 12 [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 62 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 62 00 49 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [18:59:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F1 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:35]wFMCommunicate OK [18:59:35]SAM_PROTO_GetFieldsCounters done [18:59:35]requested_item shift.num is exist - process it [18:59:35]requested_item shift.opened is exist - process it [18:59:35]req_shift_opened [18:59:35]FM_GetShiftState [18:59:35]SAM_PROTO_GetShiftState [18:59:35]wFMCommunicate request_size=4 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 13 01 00 [18:59:35]Write to MH i2c: E2 08 00 4A 4D 80 13 01 00 00 00 00 00 14 [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:35]Read from MH i2c: E2 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 0E 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: E2 0E 00 4A 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 59 [18:59:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [18:59:35]wFMCommunicate OK [18:59:35]SAM_PROTO_GetShiftState done [18:59:35]FM_GetShiftState done [18:59:35]req_shift_opened done [18:59:35]requested_item shift.open_date is exist - process it [18:59:35]req_shift_open_date [18:59:35]req_shift_open_date done [18:59:35]produce_requested_data done [18:59:35]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73969,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [18:59:35]process_action_free close_receipt [18:59:35]json_value_free [18:59:35]json_value_free done [18:59:35]process_json_proto returns [18:59:35]Send response to host [18:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73969,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [18:59:35]free response buf [18:59:35]execute_script done [18:59:35]execute_script returns [18:59:35]free content buf [18:59:35]Sock 9.Close socket [18:59:35]Sock 9.Thread stoped [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:39]accept exits with 8 [19:02:39]New connection [19:02:39]New thread 3067575652 created [19:02:39]Thread 3067432292 joined [19:02:39]Waiting for new connection... [19:02:39] Sock 8.Parse request [19:02:39]Sock 8.Check first char [19:02:39]Sock 8.First char is OK [19:02:39]request: POST /json_proto HTTP/1.0 [19:02:39]Method: POST [19:02:39]URL: /json_proto [19:02:39]Method is POST - this is cgi request [19:02:39]url: /json_proto [19:02:39]query_string will be loaded in cgi processing [19:02:39]execute_cgi json_proto POST (null) [19:02:39]execute_cgi path=json_proto method=POST [19:02:39]POST find Content-Length [19:02:39]Host: 172.17.44.196:8080 [19:02:39]Content-Length: 622 [19:02:39]Content-Type: application/json [19:02:39] [19:02:39]POST finish read [19:02:39]Found Content-Length = 622 [19:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272833", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "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" ] } } [19:02:39]execute_script... [19:02:39]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)272833", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "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" ] } } [19:02:39]POST & json_proto [19:02:39]process_json_proto [19:02:39]json parsed OK: [19:02:39]protocol is kg_v1.0 [19:02:39]action value=close_receipt [19:02:39]process_action close_receipt [19:02:39]cmd_close_receipt [19:02:39]MH_GetDate [19:02:39]Write to MH i2c: F0 00 00 4B 4D 87 [19:02:39]Write i2c OK [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: F0 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: F0 09 00 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: F0 09 00 4B 4D 00 D2 53 15 67 E7 19 F8 65 8E [19:02:39]GetLastDocTimeStamp 1729450774 [19:02:39]current date 1729450962 [19:02:39]FM_GetShiftState [19:02:39]SAM_PROTO_GetShiftState [19:02:39]wFMCommunicate request_size=4 [19:02:39]MH_SAM_APDU [19:02:39]CAPDU: 80 13 01 00 [19:02:39]Write to MH i2c: E2 08 00 4C 4D 80 13 01 00 00 00 00 00 16 [19:02:39]Write i2c OK [19:02:39]MH_I2C_Read... [19:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:39]Read from MH i2c: E2 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: E2 0E 00 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: E2 0E 00 4C 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5B [19:02:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:02:39]wFMCommunicate OK [19:02:39]SAM_PROTO_GetShiftState done [19:02:39]FM_GetShiftState done [19:02:39]opened in 1729384303 [19:02:39]opened+sec_in_day 1729470703 [19:02:39]quantity*price = 15000 [19:02:39]sum+1 = 15001 [19:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 296 20.10.2024 19:02 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73970 ФПД: 275382578280810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190242&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73970&fm=275382578280810&tin=02508201610067®Number=0000000000161154&sum=15000 0 [19:02:40]StoreToDocumentArchive [19:02:40]shift 170 fd 73970 [19:02:40]save to /storage/0170/doc_00073970 [19:02:40]save last doc name /storage/0170/doc_00073970 to /storage/kkm_last_doc_name [19:02:40]save OK [19:02:40]Clear old archive folders... [19:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:02:40]tlvbuf is 00482340 [19:02:40]SAM_PROTO_ClearQueue [19:02:40]wFMCommunicate request_size=4 [19:02:40]MH_SAM_APDU [19:02:40]CAPDU: 80 09 00 00 [19:02:40]Write to MH i2c: E2 08 00 59 4D 80 09 00 00 00 00 00 00 18 [19:02:40]Write i2c OK [19:02:40]MH_I2C_Read... [19:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:40]Read from MH i2c: E2 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 59 4D 00 90 00 1A [19:02:40]RAPDU: 90 00 [19:02:40]wFMCommunicate OK [19:02:40]SAM_PROTO_ClearQueue done [19:02:40]KKMCreateOFDPacket [19:02:40]OFDProtocolAddRootSTLVToBuf [19:02:40]FM_MakeSignedData [19:02:40]FM_MakeSignedData [19:02:40]SAM_PROTO_SignData [19:02:40]wFMCommunicate request_size=4 [19:02:40]MH_SAM_APDU [19:02:40]CAPDU: 80 0D 01 02 [19:02:40]Write to MH i2c: E2 08 00 5A 4D 80 0D 01 02 00 00 00 00 20 [19:02:40]Write i2c OK [19:02:40]MH_I2C_Read... [19:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:40]Read from MH i2c: E2 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 5A 4D 00 90 00 1B [19:02:40]RAPDU: 90 00 [19:02:40]wFMCommunicate OK [19:02:40]wFMCommunicate request_size=255 [19:02:40]MH_SAM_APDU [19:02:40]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 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 28 01 00 00 F4 03 04 00 D2 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [19:02:40]Write to MH i2c: E2 02 01 5B 4D 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 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 28 01 00 00 F4 03 04 00 D2 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 A5 [19:02:40]Write i2c OK [19:02:40]MH_I2C_Read... [19:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:40]Read from MH i2c: E2 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 5B 4D 00 90 00 1C [19:02:40]RAPDU: 90 00 [19:02:40]wFMCommunicate OK [19:02:40]wFMCommunicate request_size=33 [19:02:40]MH_SAM_APDU [19:02:40]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 20 01 00 35 04 06 00 FA 75 80 C1 79 6A [19:02:40]Write to MH i2c: E2 24 00 5C 4D 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 20 01 00 35 04 06 00 FA 75 80 C1 79 6A 00 00 52 [19:02:40]Write i2c OK [19:02:40]MH_I2C_Read... [19:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:40]Read from MH i2c: E2 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 03 00 5C 4D 00 90 00 1D [19:02:40]RAPDU: 90 00 [19:02:40]wFMCommunicate OK [19:02:40]wFMCommunicate request_size=4 [19:02:40]MH_SAM_APDU [19:02:40]CAPDU: 80 0D 03 02 [19:02:40]Write to MH i2c: E2 08 00 5D 4D 80 0D 03 02 00 00 00 00 25 [19:02:40]Write i2c OK [19:02:40]MH_I2C_Read... [19:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:41]Read from MH i2c: E2 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: E2 0B 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: E2 0B 00 5D 4D 00 1F EE 2F B9 8C 0D 5A 0D 90 00 1B [19:02:41]RAPDU: 1F EE 2F B9 8C 0D 5A 0D 90 00 [19:02:41]wFMCommunicate OK [19:02:41]SAM_PROTO_SignData done [19:02:41]FM_MakeSignedData done [19:02:41]CreateOFDProtocolMessage [19:02:41]wFMCommunicate request_size=4 [19:02:41]MH_SAM_APDU [19:02:41]CAPDU: 80 11 00 00 [19:02:41]Write to MH i2c: E2 08 00 5E 4D 80 11 00 00 00 00 00 00 25 [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:41]Read from MH i2c: E2 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: E2 17 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: E2 17 00 5E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 72 [19:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:02:41]wFMCommunicate OK [19:02:41]CreateOFDProtocolMessage done [19:02:41]OFDSenderStorePacket 73970 [19:02:41]StoreOFDPacket docnum=73970 [19:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 97 58 1E 01 09 9F 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 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 28 01 00 00 F4 03 04 00 D2 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 20 01 00 35 04 06 00 FA 75 80 C1 79 6A 1F EE 2F B9 8C 0D 5A 0D [19:02:41]CheckFolder [19:02:41]dirname=/storage/ofd_packets [19:02:41]CheckFolder done [19:02:41]ProducePacketName [19:02:41]name=ofd_packets/00073970 [19:02:41]NVStorageSaveData ofd_packets/00073970 [19:02:41]File name is /storage/ofd_packets/00073970 [19:02:41]Write 324 bytes [19:02:41]NVStorageSaveData done [19:02:41]OFDSenderStorePacket done [19:02:41]KKMCreateOFDPacket done [19:02:41]NVStorageSaveData kkm_last_timestamp [19:02:41]File name is /storage/kkm_last_timestamp [19:02:41]Write 4 bytes [19:02:41]NVStorageSaveData done [19:02:41]ExternCall_PrintAddStr [19:02:41]wPrintStart [19:02:41]Write to MH i2c: 01 00 00 5F 4D AC [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: 01 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: 01 07 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: 01 07 00 5F 4D 00 00 00 00 00 FF 0F C1 [19:02:41]RasterBufferAndPrint [19:02:41]line Счет N : (3)272833 [19:02:41]line ИНН: 02508201610067 [19:02:41]line Контрольно-Кассовый Чек [19:02:41]line ПРОДАЖА [19:02:41]line Товар: 46230614 [19:02:41]line Сигареты Richmond Red Edition [19:02:41]line 1.000 * 150.00 [19:02:41]line = 150.00 [19:02:41]line НДС 12% НСП 1% [19:02:41]line > о реализуемом товаре [19:02:41]line ИТОГО: 150.00 [19:02:41]line НСП 1% : 1.33 [19:02:41]line НДС 12% : 15.93 [19:02:41]line Наличными: 150.00 [19:02:41]line Безнал.: 0.00 [19:02:41]line Место: АЗС № 133 "Партнер Нефть" [19:02:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:02:41]line СНО: Общий режим [19:02:41]line Чек 296 20.10.2024 19:02 [19:02:41]line Смена: 170 ФФД: 1.0 [19:02:41]line ЗНМ: 0300000020 [19:02:41]line РНМ: 0000000000161154 [19:02:41]line Версия ККМ: v1.0 [19:02:41]line ФМ: 0000000000963323 [19:02:41]line ФД: 73970 [19:02:41]line ФПД: 275382578280810 [19:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190242&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73970&fm=275382578280810&tin=02508201610067®Number=0000000000161154&sum=15000 [19:02:41]line 0 [19:02:41]OFD Sender: Processing packet 73970 [packets to send 15, broken 14] [19:02:41]ProducePacketName [19:02:41]name=ofd_packets/00073970 [19:02:41]OFD Sender: To server: pG, [19:02:41]CommunicateWithHost lk.salyk.kg:30040 [19:02:41]ConnectInit lk.salyk.kg [19:02:41]written 0, free lines is 4095 [19:02:41]Connected sock=10 [19:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 97 58 1E 01 09 9F 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 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 28 01 00 00 F4 03 04 00 D2 53 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 20 01 00 35 04 06 00 FA 75 80 C1 79 6A 1F EE 2F B9 8C 0D 5A 0D [19:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A4 93 47 00 BB 0A 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 39 36 33 33 32 33 10 04 04 00 F2 20 01 00 F4 03 04 00 B6 FC 14 67 B6 04 01 00 00 CF 29 8B 57 D5 74 AB 55 [19:02:41]CommunicateWithHost err = 0 [19:02:41]CheckOFDResponse [19:02:41]1017 (14) - 77093643461234 [19:02:41]1041 (16) - 0000000000963323 [19:02:41]1040 (4) - 73970 [19:02:41]1012 (4) - 20.10.2024 12:51 [19:02:41]1206 (1) - 0 [19:02:41]OFD Sender: Remove packet 73970 [19:02:41]ProducePacketName [19:02:41]name=ofd_packets/00073970 [19:02:41]NVStorageDeleteData [19:02:41]Write to MH i2c: 01 00 00 87 4D D4 [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: 01 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: 01 07 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: 01 07 00 87 4D 00 00 00 00 00 C6 0C AD [19:02:41]RasterBufferAndPrint [19:02:41]line [19:02:41]line [19:02:41]line [19:02:41]line [19:02:41]line [19:02:41]written 0, free lines is 3274 [19:02:41]MH_Cut [19:02:41]Write to MH i2c: D1 01 00 8E 4D 01 AD [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: D1 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: D1 01 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: D1 01 00 8E 4D 00 AC [19:02:41]Write to MH i2c: 01 00 00 8F 4D DC [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:42]OFD Sender: No OFD packet to send [19:02:42]*** Cut start [19:02:42]*** Partial cut [19:02:42]*** CUTSNS_PIN = 1 [19:02:42]*** CUTSNS_PIN = 0 [19:02:42]*** Brake cut motor [19:02:43]Read from MH i2c: 01 [19:02:43]MH_I2C_Read... [19:02:43]*** Stop cut motor [19:02:43]*** Cut end [19:02:43]Read from MH i2c: 01 07 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: 01 07 00 8F 4D 00 00 00 00 00 FF 0F F1 [19:02:43]process_action close_receipt done [19:02:43]requested_data is exist [19:02:43]produce_requested_data [19:02:43]requested_item fm.sn is exist - process it [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 11 00 00 [19:02:43]Write to MH i2c: E2 08 00 90 4D 80 11 00 00 00 00 00 00 57 [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:43]Read from MH i2c: E2 17 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 17 00 90 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A4 [19:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:02:43]wFMCommunicate OK [19:02:43]requested_item fd.num is exist - process it [19:02:43]SAM_PROTO_GetFieldsCounters [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 13 00 00 [19:02:43]Write to MH i2c: E2 08 00 91 4D 80 13 00 00 00 00 00 00 5A [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 62 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 62 00 91 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F2 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:43]wFMCommunicate OK [19:02:43]SAM_PROTO_GetFieldsCounters done [19:02:43]requested_item shift.num is exist - process it [19:02:43]requested_item shift.opened is exist - process it [19:02:43]req_shift_opened [19:02:43]FM_GetShiftState [19:02:43]SAM_PROTO_GetShiftState [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 13 01 00 [19:02:43]Write to MH i2c: E2 08 00 92 4D 80 13 01 00 00 00 00 00 5C [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 0E 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 0E 00 92 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A1 [19:02:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:02:43]wFMCommunicate OK [19:02:43]SAM_PROTO_GetShiftState done [19:02:43]FM_GetShiftState done [19:02:43]req_shift_opened done [19:02:43]requested_item shift.open_date is exist - process it [19:02:43]req_shift_open_date [19:02:43]req_shift_open_date done [19:02:43]produce_requested_data done [19:02:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73970,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:02:43]process_action_free close_receipt [19:02:43]json_value_free [19:02:43]json_value_free done [19:02:43]process_json_proto returns [19:02:43]Send response to host [19:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73970,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:02:43]free response buf [19:02:43]execute_script done [19:02:43]execute_script returns [19:02:43]free content buf [19:02:43]Sock 8.Close socket [19:02:43]Sock 8.Thread stoped [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:00]accept exits with 9 [19:04:00]New connection [19:04:00]New thread 3067432292 created [19:04:00]Thread 3067575652 joined [19:04:00]Waiting for new connection... [19:04:00] Sock 9.Parse request [19:04:00]Sock 9.Check first char [19:04:00]Sock 9.First char is OK [19:04:00]request: POST /json_proto HTTP/1.0 [19:04:00]Method: POST [19:04:00]URL: /json_proto [19:04:00]Method is POST - this is cgi request [19:04:00]url: /json_proto [19:04:00]query_string will be loaded in cgi processing [19:04:00]execute_cgi json_proto POST (null) [19:04:00]execute_cgi path=json_proto method=POST [19:04:00]POST find Content-Length [19:04:00]Host: 172.17.44.196:8080 [19:04:00]Content-Length: 654 [19:04:00]Content-Type: application/json [19:04:00] [19:04:00]POST finish read [19:04:00]Found Content-Length = 654 [19:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272834", "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" ] } } [19:04:00]execute_script... [19:04: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)272834", "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" ] } } [19:04:00]POST & json_proto [19:04:00]process_json_proto [19:04:00]json parsed OK: [19:04:00]protocol is kg_v1.0 [19:04:00]action value=close_receipt [19:04:00]process_action close_receipt [19:04:00]cmd_close_receipt [19:04:00]MH_GetDate [19:04:00]Write to MH i2c: F0 00 00 93 4D CF [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: F0 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: F0 09 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: F0 09 00 93 4D 00 24 54 15 67 E7 19 F8 65 29 [19:04:00]GetLastDocTimeStamp 1729450962 [19:04:00]current date 1729451044 [19:04:00]FM_GetShiftState [19:04:00]SAM_PROTO_GetShiftState [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 13 01 00 [19:04:00]Write to MH i2c: E2 08 00 94 4D 80 13 01 00 00 00 00 00 5E [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:00]Read from MH i2c: E2 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 0E 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 0E 00 94 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A3 [19:04:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:04:00]wFMCommunicate OK [19:04:00]SAM_PROTO_GetShiftState done [19:04:00]FM_GetShiftState done [19:04:00]opened in 1729384303 [19:04:00]opened+sec_in_day 1729470703 [19:04:00]quantity*price = 4900 [19:04:00]sum+1 = 4901 [19:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 297 20.10.2024 19:04 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73971 ФПД: 124656235037253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190404&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73971&fm=124656235037253&tin=02508201610067®Number=0000000000161154&sum=4900 0 [19:04:02]StoreToDocumentArchive [19:04:02]shift 170 fd 73971 [19:04:02]save to /storage/0170/doc_00073971 [19:04:02]save last doc name /storage/0170/doc_00073971 to /storage/kkm_last_doc_name [19:04:02]save OK [19:04:02]Clear old archive folders... [19:04:02]ProcessDocumentItem done err = 0, tmpTLVsize=289 [19:04:02]tlvbuf is 00320BE0 [19:04:02]SAM_PROTO_ClearQueue [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 09 00 00 [19:04:02]Write to MH i2c: E2 08 00 A1 4D 80 09 00 00 00 00 00 00 60 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 A1 4D 00 90 00 62 [19:04:02]RAPDU: 90 00 [19:04:02]wFMCommunicate OK [19:04:02]SAM_PROTO_ClearQueue done [19:04:02]KKMCreateOFDPacket [19:04:02]OFDProtocolAddRootSTLVToBuf [19:04:02]FM_MakeSignedData [19:04:02]FM_MakeSignedData [19:04:02]SAM_PROTO_SignData [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 0D 01 02 [19:04:02]Write to MH i2c: E2 08 00 A2 4D 80 0D 01 02 00 00 00 00 68 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 A2 4D 00 90 00 63 [19:04:02]RAPDU: 90 00 [19:04:02]wFMCommunicate OK [19:04:02]wFMCommunicate request_size=255 [19:04:02]MH_SAM_APDU [19:04:02]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 29 01 00 00 F4 03 04 00 24 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 [19:04:02]Write to MH i2c: E2 02 01 A3 4D 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 29 01 00 00 F4 03 04 00 24 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 00 00 F7 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]OFD Sender: No OFD packet to send [19:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 A3 4D 00 90 00 64 [19:04:02]RAPDU: 90 00 [19:04:02]wFMCommunicate OK [19:04:02]wFMCommunicate request_size=48 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 0D 02 02 2B 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 20 01 00 35 04 06 00 71 5F CA 9B C2 45 [19:04:02]Write to MH i2c: E2 33 00 A4 4D 80 0D 02 02 2B 00 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 20 01 00 35 04 06 00 71 5F CA 9B C2 45 00 00 A8 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 03 00 A4 4D 00 90 00 65 [19:04:02]RAPDU: 90 00 [19:04:02]wFMCommunicate OK [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 0D 03 02 [19:04:02]Write to MH i2c: E2 08 00 A5 4D 80 0D 03 02 00 00 00 00 6D [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 0B 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 0B 00 A5 4D 00 E7 8C 89 EB 3B D2 D7 28 90 00 61 [19:04:02]RAPDU: E7 8C 89 EB 3B D2 D7 28 90 00 [19:04:02]wFMCommunicate OK [19:04:02]SAM_PROTO_SignData done [19:04:02]FM_MakeSignedData done [19:04:02]CreateOFDProtocolMessage [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 11 00 00 [19:04:02]Write to MH i2c: E2 08 00 A6 4D 80 11 00 00 00 00 00 00 6D [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 17 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 17 00 A6 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BA [19:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:04:02]wFMCommunicate OK [19:04:02]CreateOFDProtocolMessage done [19:04:02]OFDSenderStorePacket 73971 [19:04:02]StoreOFDPacket docnum=73971 [19:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 01 00 00 73 F3 2D 01 03 03 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 29 01 00 00 F4 03 04 00 24 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 20 01 00 35 04 06 00 71 5F CA 9B C2 45 E7 8C 89 EB 3B D2 D7 28 [19:04:02]CheckFolder [19:04:02]dirname=/storage/ofd_packets [19:04:02]CheckFolder done [19:04:02]ProducePacketName [19:04:02]name=ofd_packets/00073971 [19:04:02]NVStorageSaveData ofd_packets/00073971 [19:04:02]File name is /storage/ofd_packets/00073971 [19:04:02]Write 339 bytes [19:04:02]NVStorageSaveData done [19:04:02]OFDSenderStorePacket done [19:04:02]KKMCreateOFDPacket done [19:04:02]NVStorageSaveData kkm_last_timestamp [19:04:02]File name is /storage/kkm_last_timestamp [19:04:02]Write 4 bytes [19:04:02]NVStorageSaveData done [19:04:02]ExternCall_PrintAddStr [19:04:02]wPrintStart [19:04:02]Write to MH i2c: 01 00 00 A7 4D F4 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 07 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 07 00 A7 4D 00 00 00 00 00 FF 0F 09 [19:04:02]RasterBufferAndPrint [19:04:02]line Счет N : (3)272834 [19:04:02]line ИНН: 02508201610067 [19:04:02]line Контрольно-Кассовый Чек [19:04:02]line ПРОДАЖА [19:04:02]line Товар: 46214638 [19:04:02]line Р/ж mentos p.white нежная мята 16/15,5г [19:04:02]line 1.000 * 49.00 [19:04:02]line = 49.00 [19:04:02]line НДС 12% НСП 1% [19:04:02]line > о реализуемом товаре [19:04:02]line ИТОГО: 49.00 [19:04:02]line НСП 1% : 0.43 [19:04:02]line НДС 12% : 5.20 [19:04:02]line Наличными: 49.00 [19:04:02]line Безнал.: 0.00 [19:04:02]line Место: АЗС № 133 "Партнер Нефть" [19:04:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:04:02]line СНО: Общий режим [19:04:02]line Чек 297 20.10.2024 19:04 [19:04:02]line Смена: 170 ФФД: 1.0 [19:04:02]line ЗНМ: 0300000020 [19:04:02]line РНМ: 0000000000161154 [19:04:02]line Версия ККМ: v1.0 [19:04:02]line ФМ: 0000000000963323 [19:04:02]line ФД: 73971 [19:04:02]line ФПД: 124656235037253 [19:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190404&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73971&fm=124656235037253&tin=02508201610067®Number=0000000000161154&sum=4900 [19:04:03]line 0 [19:04:03]OFD Sender: Processing packet 73971 [packets to send 15, broken 14] [19:04:03]ProducePacketName [19:04:03]name=ofd_packets/00073971 [19:04:03]OFD Sender: To server: pG, [19:04:03]CommunicateWithHost lk.salyk.kg:30040 [19:04:03]ConnectInit lk.salyk.kg [19:04:03]written 0, free lines is 4095 [19:04:03]Connected sock=10 [19:04:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 01 00 00 73 F3 2D 01 03 03 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 29 01 00 00 F4 03 04 00 24 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 20 01 00 35 04 06 00 71 5F CA 9B C2 45 E7 8C 89 EB 3B D2 D7 28 [19:04:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F3 61 47 00 08 2F 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 39 36 33 33 32 33 10 04 04 00 F3 20 01 00 F4 03 04 00 08 FD 14 67 B6 04 01 00 00 D7 DD 03 7E E5 8F 98 75 [19:04:03]CommunicateWithHost err = 0 [19:04:03]CheckOFDResponse [19:04:03]1017 (14) - 77093643461234 [19:04:03]1041 (16) - 0000000000963323 [19:04:03]1040 (4) - 73971 [19:04:03]1012 (4) - 20.10.2024 12:52 [19:04:03]1206 (1) - 0 [19:04:03]OFD Sender: Remove packet 73971 [19:04:03]ProducePacketName [19:04:03]name=ofd_packets/00073971 [19:04:03]NVStorageDeleteData [19:04:03]Write to MH i2c: 01 00 00 CF 4D 1C [19:04:03]Write i2c OK [19:04:03]MH_I2C_Read... [19:04:03]Read from MH i2c: 01 [19:04:03]MH_I2C_Read... [19:04:03]Read from MH i2c: 01 07 00 [19:04:03]MH_I2C_Read... [19:04:03]Read from MH i2c: 01 07 00 CF 4D 00 00 00 00 00 DC 0C 0B [19:04:03]RasterBufferAndPrint [19:04:03]line [19:04:03]line [19:04:03]line [19:04:03]line [19:04:03]line [19:04:03]written 0, free lines is 3297 [19:04:03]MH_Cut [19:04:03]Write to MH i2c: D1 01 00 D6 4D 01 F5 [19:04:03]Write i2c OK [19:04:03]MH_I2C_Read... [19:04:03]Read from MH i2c: D1 [19:04:03]MH_I2C_Read... [19:04:03]Read from MH i2c: D1 01 00 [19:04:03]MH_I2C_Read... [19:04:03]Read from MH i2c: D1 01 00 D6 4D 00 F4 [19:04:03]Write to MH i2c: 01 00 00 D7 4D 24 [19:04:03]Write i2c OK [19:04:03]MH_I2C_Read... [19:04:03]OFD Sender: No OFD packet to send [19:04:04]*** Cut start [19:04:04]*** Partial cut [19:04:04]*** CUTSNS_PIN = 1 [19:04:04]*** CUTSNS_PIN = 0 [19:04:04]*** Brake cut motor [19:04:04]Read from MH i2c: 01 [19:04:04]MH_I2C_Read... [19:04:04]*** Stop cut motor [19:04:04]*** Cut end [19:04:04]Read from MH i2c: 01 07 00 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: 01 07 00 D7 4D 00 00 00 00 00 FF 0F 39 [19:04:04]process_action close_receipt done [19:04:04]requested_data is exist [19:04:04]produce_requested_data [19:04:04]requested_item fm.sn is exist - process it [19:04:04]wFMCommunicate request_size=4 [19:04:04]MH_SAM_APDU [19:04:04]CAPDU: 80 11 00 00 [19:04:04]Write to MH i2c: E2 08 00 D8 4D 80 11 00 00 00 00 00 00 9F [19:04:04]Write i2c OK [19:04:04]MH_I2C_Read... [19:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:04]Read from MH i2c: E2 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 17 00 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 17 00 D8 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EC [19:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:04:04]wFMCommunicate OK [19:04:04]requested_item fd.num is exist - process it [19:04:04]SAM_PROTO_GetFieldsCounters [19:04:04]wFMCommunicate request_size=4 [19:04:04]MH_SAM_APDU [19:04:04]CAPDU: 80 13 00 00 [19:04:04]Write to MH i2c: E2 08 00 D9 4D 80 13 00 00 00 00 00 00 A2 [19:04:04]Write i2c OK [19:04:04]MH_I2C_Read... [19:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:05]Read from MH i2c: E2 [19:04:05]MH_I2C_Read... [19:04:05]Read from MH i2c: E2 62 00 [19:04:05]MH_I2C_Read... [19:04:05]Read from MH i2c: E2 62 00 D9 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:04:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F3 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:05]wFMCommunicate OK [19:04:05]SAM_PROTO_GetFieldsCounters done [19:04:05]requested_item shift.num is exist - process it [19:04:05]requested_item shift.opened is exist - process it [19:04:05]req_shift_opened [19:04:05]FM_GetShiftState [19:04:05]SAM_PROTO_GetShiftState [19:04:05]wFMCommunicate request_size=4 [19:04:05]MH_SAM_APDU [19:04:05]CAPDU: 80 13 01 00 [19:04:05]Write to MH i2c: E2 08 00 DA 4D 80 13 01 00 00 00 00 00 A4 [19:04:05]Write i2c OK [19:04:05]MH_I2C_Read... [19:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:05]Read from MH i2c: E2 [19:04:05]MH_I2C_Read... [19:04:05]Read from MH i2c: E2 0E 00 [19:04:05]MH_I2C_Read... [19:04:05]Read from MH i2c: E2 0E 00 DA 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E9 [19:04:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:04:05]wFMCommunicate OK [19:04:05]SAM_PROTO_GetShiftState done [19:04:05]FM_GetShiftState done [19:04:05]req_shift_opened done [19:04:05]requested_item shift.open_date is exist - process it [19:04:05]req_shift_open_date [19:04:05]req_shift_open_date done [19:04:05]produce_requested_data done [19:04:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73971,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:04:05]process_action_free close_receipt [19:04:05]json_value_free [19:04:05]json_value_free done [19:04:05]process_json_proto returns [19:04:05]Send response to host [19:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73971,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:04:05]free response buf [19:04:05]execute_script done [19:04:05]execute_script returns [19:04:05]free content buf [19:04:05]Sock 9.Close socket [19:04:05]Sock 9.Thread stoped [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:56]accept exits with 8 [19:05:56]New connection [19:05:56]New thread 3067575652 created [19:05:56]Thread 3067432292 joined [19:05:56]Waiting for new connection... [19:05:56] Sock 8.Parse request [19:05:56]Sock 8.Check first char [19:05:56]Sock 8.First char is OK [19:05:56]request: POST /json_proto HTTP/1.0 [19:05:56]Method: POST [19:05:56]URL: /json_proto [19:05:56]Method is POST - this is cgi request [19:05:56]url: /json_proto [19:05:56]query_string will be loaded in cgi processing [19:05:56]execute_cgi json_proto POST (null) [19:05:56]execute_cgi path=json_proto method=POST [19:05:56]POST find Content-Length [19:05:56]Host: 172.17.44.196:8080 [19:05:56]Content-Length: 1261 [19:05:56]Content-Type: application/json [19:05:56] [19:05:56]POST finish read [19:05:56]Found Content-Length = 1261 [19:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272835", "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 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:56]execute_script... [19:05: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)272835", "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 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:56]POST & json_proto [19:05:56]process_json_proto [19:05:56]json parsed OK: [19:05:56]protocol is kg_v1.0 [19:05:56]action value=close_receipt [19:05:56]process_action close_receipt [19:05:56]cmd_close_receipt [19:05:56]MH_GetDate [19:05:56]Write to MH i2c: F0 00 00 DB 4D 17 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: F0 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: F0 09 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: F0 09 00 DB 4D 00 97 54 15 67 E7 19 F8 65 E4 [19:05:56]GetLastDocTimeStamp 1729451044 [19:05:56]current date 1729451159 [19:05:56]FM_GetShiftState [19:05:56]SAM_PROTO_GetShiftState [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 13 01 00 [19:05:56]Write to MH i2c: E2 08 00 DC 4D 80 13 01 00 00 00 00 00 A6 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0E 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0E 00 DC 4D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EB [19:05:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_GetShiftState done [19:05:56]FM_GetShiftState done [19:05:56]opened in 1729384303 [19:05:56]opened+sec_in_day 1729470703 [19:05:56]quantity*price = 9500 [19:05:56]sum+1 = 9501 [19:05:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 298 20.10.2024 19:05 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73972 ФПД: 10389988386459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190559&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73972&fm=10389988386459&tin=02508201610067®Number=0000000000161154&sum=21000 0 [19:05:57]StoreToDocumentArchive [19:05:57]shift 170 fd 73972 [19:05:57]save to /storage/0170/doc_00073972 [19:05:57]save last doc name /storage/0170/doc_00073972 to /storage/kkm_last_doc_name [19:05:57]save OK [19:05:57]Clear old archive folders... [19:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=535 [19:05:57]tlvbuf is 003DA750 [19:05:57]SAM_PROTO_ClearQueue [19:05:57]wFMCommunicate request_size=4 [19:05:57]MH_SAM_APDU [19:05:57]CAPDU: 80 09 00 00 [19:05:57]Write to MH i2c: E2 08 00 E9 4D 80 09 00 00 00 00 00 00 A8 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:57]Read from MH i2c: E2 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: E2 03 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: E2 03 00 E9 4D 00 90 00 AA [19:05:57]RAPDU: 90 00 [19:05:57]wFMCommunicate OK [19:05:57]SAM_PROTO_ClearQueue done [19:05:57]KKMCreateOFDPacket [19:05:57]OFDProtocolAddRootSTLVToBuf [19:05:57]FM_MakeSignedData [19:05:57]FM_MakeSignedData [19:05:57]SAM_PROTO_SignData [19:05:57]wFMCommunicate request_size=4 [19:05:57]MH_SAM_APDU [19:05:57]CAPDU: 80 0D 01 02 [19:05:57]Write to MH i2c: E2 08 00 EA 4D 80 0D 01 02 00 00 00 00 B0 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:57]Read from MH i2c: E2 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: E2 03 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: E2 03 00 EA 4D 00 90 00 AB [19:05:57]RAPDU: 90 00 [19:05:57]wFMCommunicate OK [19:05:57]wFMCommunicate request_size=255 [19:05:57]MH_SAM_APDU [19:05:57]CAPDU: 80 0D 02 02 FA 03 00 17 02 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 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 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 [19:05:57]Write to MH i2c: E2 02 01 EB 4D 80 0D 02 02 FA 00 03 00 17 02 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 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 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 00 00 C6 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 03 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 03 00 EB 4D 00 90 00 AC [19:05:58]RAPDU: 90 00 [19:05:58]wFMCommunicate OK [19:05:58]wFMCommunicate request_size=255 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 0D 02 02 FA 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 2A 01 00 00 F4 03 04 00 97 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 [19:05:58]Write to MH i2c: E2 02 01 EC 4D 80 0D 02 02 FA 00 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 2A 01 00 00 F4 03 04 00 97 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 00 00 A6 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 03 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 03 00 EC 4D 00 90 00 AD [19:05:58]RAPDU: 90 00 [19:05:58]wFMCommunicate OK [19:05:58]wFMCommunicate request_size=44 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 0D 02 02 27 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 20 01 00 35 04 06 00 09 73 1B 91 26 9B [19:05:58]Write to MH i2c: E2 2F 00 ED 4D 80 0D 02 02 27 00 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 20 01 00 35 04 06 00 09 73 1B 91 26 9B 00 00 CA [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 03 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 03 00 ED 4D 00 90 00 AE [19:05:58]RAPDU: 90 00 [19:05:58]wFMCommunicate OK [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 0D 03 02 [19:05:58]Write to MH i2c: E2 08 00 EE 4D 80 0D 03 02 00 00 00 00 B6 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0B 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0B 00 EE 4D 00 08 BD 37 0F 36 3E 09 1E 90 00 5D [19:05:58]RAPDU: 08 BD 37 0F 36 3E 09 1E 90 00 [19:05:58]wFMCommunicate OK [19:05:58]SAM_PROTO_SignData done [19:05:58]FM_MakeSignedData done [19:05:58]CreateOFDProtocolMessage [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 11 00 00 [19:05:58]Write to MH i2c: E2 08 00 EF 4D 80 11 00 00 00 00 00 00 B6 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 17 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 17 00 EF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [19:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:05:58]wFMCommunicate OK [19:05:58]CreateOFDProtocolMessage done [19:05:58]OFDSenderStorePacket 73972 [19:05:58]StoreOFDPacket docnum=73972 [19:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2B 02 00 00 CE B8 23 02 DC 13 5A 03 01 00 03 00 17 02 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 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 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 2A 01 00 00 F4 03 04 00 97 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 20 01 00 35 04 06 00 09 73 1B 91 26 9B 08 BD 37 0F 36 3E 09 1E [19:05:58]CheckFolder [19:05:58]dirname=/storage/ofd_packets [19:05:58]CheckFolder done [19:05:58]ProducePacketName [19:05:58]name=ofd_packets/00073972 [19:05:58]NVStorageSaveData ofd_packets/00073972 [19:05:58]File name is /storage/ofd_packets/00073972 [19:05:58]Write 585 bytes [19:05:58]NVStorageSaveData done [19:05:58]OFDSenderStorePacket done [19:05:58]KKMCreateOFDPacket done [19:05:58]NVStorageSaveData kkm_last_timestamp [19:05:58]File name is /storage/kkm_last_timestamp [19:05:58]Write 4 bytes [19:05:58]NVStorageSaveData done [19:05:58]ExternCall_PrintAddStr [19:05:58]wPrintStart [19:05:58]Write to MH i2c: 01 00 00 F0 4D 3D [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: 01 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: 01 07 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: 01 07 00 F0 4D 00 00 00 00 00 FF 0F 52 [19:05:58]RasterBufferAndPrint [19:05:58]line Счет N : (3)272835 [19:05:58]line ИНН: 02508201610067 [19:05:58]line Контрольно-Кассовый Чек [19:05:58]line ПРОДАЖА [19:05:58]line Товар: 4631162227163 [19:05:58]line Напиток газированный Mojito LEMON LIME ж [19:05:58]line 1.000 * 95.00 [19:05:58]line = 95.00 [19:05:58]line НДС 12% НСП 1% [19:05:58]line > о реализуемом товаре [19:05:58]line Товар: 4700000310036 [19:05:58]line Вода Жалалабат 27 0,5л [19:05:58]line 1.000 * 40.00 [19:05:58]line = 40.00 [19:05:58]line НДС 12% НСП 1% [19:05:58]line > о реализуемом товаре [19:05:58]line Товар: 5449000027450 [19:05:58]line Напиток FuzeTea чай манго,ром 0,5л [19:05:58]line 1.000 * 75.00 [19:05:58]line = 75.00 [19:05:58]line НДС 12% НСП 1% [19:05:58]line > о реализуемом товаре [19:05:58]line ИТОГО: 210.00 [19:05:58]line НСП 1% : 1.85 [19:05:58]line НДС 12% : 22.30 [19:05:58]line Наличными: 210.00 [19:05:58]line Безнал.: 0.00 [19:05:58]line Место: АЗС № 133 "Партнер Нефть" [19:05:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:05:58]line СНО: Общий режим [19:05:58]line Чек 298 20.10.2024 19:05 [19:05:58]line Смена: 170 ФФД: 1.0 [19:05:58]line ЗНМ: 0300000020 [19:05:58]line РНМ: 0000000000161154 [19:05:58]line Версия ККМ: v1.0 [19:05:58]line ФМ: 0000000000963323 [19:05:58]line ФД: 73972 [19:05:58]line ФПД: 10389988386459 [19:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190559&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73972&fm=10389988386459&tin=02508201610067®Number=0000000000161154&sum=21000 [19:05:58]line 0 [19:05:58]written 0, free lines is 4095 [19:05:58]OFD Sender: Processing packet 73972 [packets to send 15, broken 14] [19:05:58]ProducePacketName [19:05:58]name=ofd_packets/00073972 [19:05:58]OFD Sender: To server: pG, [19:05:58]CommunicateWithHost lk.salyk.kg:30040 [19:05:58]ConnectInit lk.salyk.kg [19:05:58]Connected sock=10 [19:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2B 02 00 00 CE B8 23 02 DC 13 5A 03 01 00 03 00 17 02 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 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 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 2A 01 00 00 F4 03 04 00 97 54 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 20 01 00 35 04 06 00 09 73 1B 91 26 9B 08 BD 37 0F 36 3E 09 1E [19:05:59]Write to MH i2c: 01 00 00 25 4E 73 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: 01 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: 01 07 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: 01 07 00 25 4E 00 00 00 00 00 FA 0B 7F [19:05:59]RasterBufferAndPrint [19:05:59]line [19:05:59]line [19:05:59]line [19:05:59]line [19:05:59]line [19:05:59]written 0, free lines is 3072 [19:05:59]MH_Cut [19:05:59]Write to MH i2c: D1 01 00 2C 4E 01 4C [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: D1 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: D1 01 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: D1 01 00 2C 4E 00 4B [19:05:59]Write to MH i2c: 01 00 00 2D 4E 7B [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F2 74 47 00 70 91 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 39 36 33 33 32 33 10 04 04 00 F4 20 01 00 F4 03 04 00 7C FD 14 67 B6 04 01 00 00 87 50 23 9D FB DA 56 10 [19:05:59]CommunicateWithHost err = 0 [19:05:59]CheckOFDResponse [19:05:59]1017 (14) - 77093643461234 [19:05:59]1041 (16) - 0000000000963323 [19:05:59]1040 (4) - 73972 [19:05:59]1012 (4) - 20.10.2024 12:54 [19:05:59]1206 (1) - 0 [19:05:59]OFD Sender: Remove packet 73972 [19:05:59]ProducePacketName [19:05:59]name=ofd_packets/00073972 [19:05:59]NVStorageDeleteData [19:05:59]OFD Sender: No OFD packet to send [19:06:00]*** Cut start [19:06:00]*** Partial cut [19:06:00]*** CUTSNS_PIN = 1 [19:06:00]*** CUTSNS_PIN = 0 [19:06:00]*** Brake cut motor [19:06:00]Read from MH i2c: 01 [19:06:00]MH_I2C_Read... [19:06:00]*** Stop cut motor [19:06:00]*** Cut end [19:06:00]Read from MH i2c: 01 07 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: 01 07 00 2D 4E 00 00 00 00 00 FF 0F 90 [19:06:00]process_action close_receipt done [19:06:00]requested_data is exist [19:06:00]produce_requested_data [19:06:00]requested_item fm.sn is exist - process it [19:06:00]wFMCommunicate request_size=4 [19:06:00]MH_SAM_APDU [19:06:00]CAPDU: 80 11 00 00 [19:06:00]Write to MH i2c: E2 08 00 2E 4E 80 11 00 00 00 00 00 00 F6 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:01]Read from MH i2c: E2 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 17 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 17 00 2E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 43 [19:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:06:01]wFMCommunicate OK [19:06:01]requested_item fd.num is exist - process it [19:06:01]SAM_PROTO_GetFieldsCounters [19:06:01]wFMCommunicate request_size=4 [19:06:01]MH_SAM_APDU [19:06:01]CAPDU: 80 13 00 00 [19:06:01]Write to MH i2c: E2 08 00 2F 4E 80 13 00 00 00 00 00 00 F9 [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:01]Read from MH i2c: E2 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 62 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 62 00 2F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F4 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:01]wFMCommunicate OK [19:06:01]SAM_PROTO_GetFieldsCounters done [19:06:01]requested_item shift.num is exist - process it [19:06:01]requested_item shift.opened is exist - process it [19:06:01]req_shift_opened [19:06:01]FM_GetShiftState [19:06:01]SAM_PROTO_GetShiftState [19:06:01]wFMCommunicate request_size=4 [19:06:01]MH_SAM_APDU [19:06:01]CAPDU: 80 13 01 00 [19:06:01]Write to MH i2c: E2 08 00 30 4E 80 13 01 00 00 00 00 00 FB [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:01]Read from MH i2c: E2 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 0E 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 0E 00 30 4E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 40 [19:06:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:06:01]wFMCommunicate OK [19:06:01]SAM_PROTO_GetShiftState done [19:06:01]FM_GetShiftState done [19:06:01]req_shift_opened done [19:06:01]requested_item shift.open_date is exist - process it [19:06:01]req_shift_open_date [19:06:01]req_shift_open_date done [19:06:01]produce_requested_data done [19:06:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73972,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:06:01]process_action_free close_receipt [19:06:01]json_value_free [19:06:01]json_value_free done [19:06:01]process_json_proto returns [19:06:01]Send response to host [19:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73972,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:06:01]free response buf [19:06:01]execute_script done [19:06:01]execute_script returns [19:06:01]free content buf [19:06:01]Sock 8.Close socket [19:06:01]Sock 8.Thread stoped [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]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:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:11]accept exits with 9 [19:14:11]New connection [19:14:11]New thread 3067432292 created [19:14:11]Thread 3067575652 joined [19:14:11]Waiting for new connection... [19:14:11] Sock 9.Parse request [19:14:11]Sock 9.Check first char [19:14:11]Sock 9.First char is OK [19:14:11]request: POST /json_proto HTTP/1.0 [19:14:11]Method: POST [19:14:11]URL: /json_proto [19:14:11]Method is POST - this is cgi request [19:14:11]url: /json_proto [19:14:11]query_string will be loaded in cgi processing [19:14:11]execute_cgi json_proto POST (null) [19:14:11]execute_cgi path=json_proto method=POST [19:14:11]POST find Content-Length [19:14:11]Host: 172.17.44.196:8080 [19:14:11]Content-Length: 623 [19:14:11]Content-Type: application/json [19:14:11] [19:14:11]POST finish read [19:14:11]Found Content-Length = 623 [19:14:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272836", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [19:14:11]execute_script... [19:14: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)272836", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [19:14:11]POST & json_proto [19:14:11]process_json_proto [19:14:11]json parsed OK: [19:14:11]protocol is kg_v1.0 [19:14:11]action value=close_receipt [19:14:11]process_action close_receipt [19:14:11]cmd_close_receipt [19:14:11]MH_GetDate [19:14:11]Write to MH i2c: F0 00 00 31 4E 6E [19:14:11]Write i2c OK [19:14:11]MH_I2C_Read... [19:14:11]Read from MH i2c: F0 [19:14:11]MH_I2C_Read... [19:14:11]Read from MH i2c: F0 09 00 [19:14:11]MH_I2C_Read... [19:14:11]Read from MH i2c: F0 09 00 31 4E 00 86 56 15 67 E7 19 F8 65 2C [19:14:11]GetLastDocTimeStamp 1729451159 [19:14:11]current date 1729451654 [19:14:11]FM_GetShiftState [19:14:11]SAM_PROTO_GetShiftState [19:14:11]wFMCommunicate request_size=4 [19:14:11]MH_SAM_APDU [19:14:11]CAPDU: 80 13 01 00 [19:14:11]Write to MH i2c: E2 08 00 32 4E 80 13 01 00 00 00 00 00 FD [19:14:11]Write i2c OK [19:14:11]MH_I2C_Read... [19:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:11]Read from MH i2c: E2 [19:14:11]MH_I2C_Read... [19:14:11]Read from MH i2c: E2 0E 00 [19:14:11]MH_I2C_Read... [19:14:11]Read from MH i2c: E2 0E 00 32 4E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 42 [19:14:11]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:14:11]wFMCommunicate OK [19:14:11]SAM_PROTO_GetShiftState done [19:14:11]FM_GetShiftState done [19:14:11]opened in 1729384303 [19:14:11]opened+sec_in_day 1729470703 [19:14:11]quantity*price = 14000 [19:14:11]sum+1 = 14001 [19:14:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 299 20.10.2024 19:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73973 ФПД: 70746166130617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191415&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73973&fm=70746166130617&tin=02508201610067®Number=0000000000161154&sum=14000 0 [19:14:12]StoreToDocumentArchive [19:14:12]shift 170 fd 73973 [19:14:12]save to /storage/0170/doc_00073973 [19:14:12]save last doc name /storage/0170/doc_00073973 to /storage/kkm_last_doc_name [19:14:12]save OK [19:14:12]Clear old archive folders... [19:14:12]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:14:12]tlvbuf is 00488590 [19:14:12]SAM_PROTO_ClearQueue [19:14:12]wFMCommunicate request_size=4 [19:14:12]MH_SAM_APDU [19:14:12]CAPDU: 80 09 00 00 [19:14:12]Write to MH i2c: E2 08 00 3F 4E 80 09 00 00 00 00 00 00 FF [19:14:12]Write i2c OK [19:14:12]MH_I2C_Read... [19:14:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:12]Read from MH i2c: E2 [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: E2 03 00 [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: E2 03 00 3F 4E 00 90 00 01 [19:14:12]RAPDU: 90 00 [19:14:12]wFMCommunicate OK [19:14:12]SAM_PROTO_ClearQueue done [19:14:12]KKMCreateOFDPacket [19:14:12]OFDProtocolAddRootSTLVToBuf [19:14:12]FM_MakeSignedData [19:14:12]FM_MakeSignedData [19:14:12]SAM_PROTO_SignData [19:14:12]wFMCommunicate request_size=4 [19:14:12]MH_SAM_APDU [19:14:12]CAPDU: 80 0D 01 02 [19:14:12]Write to MH i2c: E2 08 00 40 4E 80 0D 01 02 00 00 00 00 07 [19:14:12]Write i2c OK [19:14:12]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 40 4E 00 90 00 02 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]wFMCommunicate request_size=255 [19:14:13]MH_SAM_APDU [19:14:13]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 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 2B 01 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [19:14:13]Write to MH i2c: E2 02 01 41 4E 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 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 2B 01 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 BF [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 41 4E 00 90 00 03 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]wFMCommunicate request_size=34 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 20 01 00 35 04 06 00 40 57 E0 19 F7 B9 [19:14:13]Write to MH i2c: E2 25 00 42 4E 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 20 01 00 35 04 06 00 40 57 E0 19 F7 B9 00 00 1B [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 42 4E 00 90 00 04 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 0D 03 02 [19:14:13]Write to MH i2c: E2 08 00 43 4E 80 0D 03 02 00 00 00 00 0C [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 0B 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 0B 00 43 4E 00 D4 2C 0A 8D C9 D9 C0 48 90 00 4E [19:14:13]RAPDU: D4 2C 0A 8D C9 D9 C0 48 90 00 [19:14:13]wFMCommunicate OK [19:14:13]SAM_PROTO_SignData done [19:14:13]FM_MakeSignedData done [19:14:13]CreateOFDProtocolMessage [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 11 00 00 [19:14:13]Write to MH i2c: E2 08 00 44 4E 80 11 00 00 00 00 00 00 0C [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 17 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 17 00 44 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 59 [19:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:14:13]wFMCommunicate OK [19:14:13]CreateOFDProtocolMessage done [19:14:13]OFDSenderStorePacket 73973 [19:14:13]StoreOFDPacket docnum=73973 [19:14:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 EA ED 1F 01 F8 6A 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 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 2B 01 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 20 01 00 35 04 06 00 40 57 E0 19 F7 B9 D4 2C 0A 8D C9 D9 C0 48 [19:14:13]CheckFolder [19:14:13]dirname=/storage/ofd_packets [19:14:13]CheckFolder done [19:14:13]ProducePacketName [19:14:13]name=ofd_packets/00073973 [19:14:13]NVStorageSaveData ofd_packets/00073973 [19:14:13]File name is /storage/ofd_packets/00073973 [19:14:13]Write 325 bytes [19:14:13]NVStorageSaveData done [19:14:13]OFDSenderStorePacket done [19:14:13]KKMCreateOFDPacket done [19:14:13]NVStorageSaveData kkm_last_timestamp [19:14:13]File name is /storage/kkm_last_timestamp [19:14:13]Write 4 bytes [19:14:13]NVStorageSaveData done [19:14:13]ExternCall_PrintAddStr [19:14:13]wPrintStart [19:14:13]Write to MH i2c: 01 00 00 45 4E 93 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: 01 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: 01 07 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: 01 07 00 45 4E 00 00 00 00 00 FF 0F A8 [19:14:13]RasterBufferAndPrint [19:14:13]line Счет N : (3)272836 [19:14:13]line ИНН: 02508201610067 [19:14:13]line Контрольно-Кассовый Чек [19:14:13]line ПРОДАЖА [19:14:13]line Товар: 48743587 [19:14:13]line Сигареты Winston XStyle Silver [19:14:13]line 1.000 * 140.00 [19:14:13]line = 140.00 [19:14:13]line НДС 12% НСП 1% [19:14:13]line > о реализуемом товаре [19:14:13]line ИТОГО: 140.00 [19:14:13]line НСП 1% : 1.24 [19:14:13]line НДС 12% : 14.87 [19:14:13]line Наличными: 140.00 [19:14:13]line Безнал.: 0.00 [19:14:13]line Место: АЗС № 133 "Партнер Нефть" [19:14:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:14:13]line СНО: Общий режим [19:14:13]line Чек 299 20.10.2024 19:14 [19:14:13]line Смена: 170 ФФД: 1.0 [19:14:13]line ЗНМ: 0300000020 [19:14:13]line РНМ: 0000000000161154 [19:14:13]line Версия ККМ: v1.0 [19:14:13]line ФМ: 0000000000963323 [19:14:13]line ФД: 73973 [19:14:13]line ФПД: 70746166130617 [19:14:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191415&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73973&fm=70746166130617&tin=02508201610067®Number=0000000000161154&sum=14000 [19:14:13]line 0 [19:14:13]OFD Sender: Processing packet 73973 [packets to send 15, broken 14] [19:14:13]ProducePacketName [19:14:13]name=ofd_packets/00073973 [19:14:13]OFD Sender: To server: pG, [19:14:13]CommunicateWithHost lk.salyk.kg:30040 [19:14:13]ConnectInit lk.salyk.kg [19:14:13]written 0, free lines is 4095 [19:14:13]Connected sock=10 [19:14:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 EA ED 1F 01 F8 6A 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 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 2B 01 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 20 01 00 35 04 06 00 40 57 E0 19 F7 B9 D4 2C 0A 8D C9 D9 C0 48 [19:14:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 68 D1 47 00 66 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 39 36 33 33 32 33 10 04 04 00 F5 20 01 00 F4 03 04 00 6A FF 14 67 B6 04 01 00 00 37 C2 A0 83 AE D2 C7 3F [19:14:14]CommunicateWithHost err = 0 [19:14:14]CheckOFDResponse [19:14:14]1017 (14) - 77093643461234 [19:14:14]1041 (16) - 0000000000963323 [19:14:14]1040 (4) - 73973 [19:14:14]1012 (4) - 20.10.2024 13:02 [19:14:14]1206 (1) - 0 [19:14:14]OFD Sender: Remove packet 73973 [19:14:14]ProducePacketName [19:14:14]name=ofd_packets/00073973 [19:14:14]NVStorageDeleteData [19:14:14]Write to MH i2c: 01 00 00 6D 4E BB [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 07 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 07 00 6D 4E 00 00 00 00 00 D3 0C A1 [19:14:14]RasterBufferAndPrint [19:14:14]line [19:14:14]line [19:14:14]line [19:14:14]line [19:14:14]line [19:14:14]written 0, free lines is 3287 [19:14:14]MH_Cut [19:14:14]Write to MH i2c: D1 01 00 74 4E 01 94 [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: D1 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: D1 01 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: D1 01 00 74 4E 00 93 [19:14:14]Write to MH i2c: 01 00 00 75 4E C3 [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:14]OFD Sender: No OFD packet to send [19:14:15]*** Cut start [19:14:15]*** Partial cut [19:14:15]*** CUTSNS_PIN = 1 [19:14:15]*** CUTSNS_PIN = 0 [19:14:15]*** Brake cut motor [19:14:15]Read from MH i2c: 01 [19:14:15]MH_I2C_Read... [19:14:15]*** Stop cut motor [19:14:15]*** Cut end [19:14:15]Read from MH i2c: 01 07 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: 01 07 00 75 4E 00 00 00 00 00 FF 0F D8 [19:14:15]process_action close_receipt done [19:14:15]requested_data is exist [19:14:15]produce_requested_data [19:14:15]requested_item fm.sn is exist - process it [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 11 00 00 [19:14:15]Write to MH i2c: E2 08 00 76 4E 80 11 00 00 00 00 00 00 3E [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 17 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 17 00 76 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8B [19:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:14:15]wFMCommunicate OK [19:14:15]requested_item fd.num is exist - process it [19:14:15]SAM_PROTO_GetFieldsCounters [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 13 00 00 [19:14:15]Write to MH i2c: E2 08 00 77 4E 80 13 00 00 00 00 00 00 41 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 62 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 62 00 77 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:14:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F5 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:15]wFMCommunicate OK [19:14:15]SAM_PROTO_GetFieldsCounters done [19:14:15]requested_item shift.num is exist - process it [19:14:15]requested_item shift.opened is exist - process it [19:14:15]req_shift_opened [19:14:15]FM_GetShiftState [19:14:15]SAM_PROTO_GetShiftState [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 13 01 00 [19:14:15]Write to MH i2c: E2 08 00 78 4E 80 13 01 00 00 00 00 00 43 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 0E 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 0E 00 78 4E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 88 [19:14:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:14:15]wFMCommunicate OK [19:14:15]SAM_PROTO_GetShiftState done [19:14:15]FM_GetShiftState done [19:14:15]req_shift_opened done [19:14:15]requested_item shift.open_date is exist - process it [19:14:15]req_shift_open_date [19:14:15]req_shift_open_date done [19:14:15]produce_requested_data done [19:14:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73973,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:14:15]process_action_free close_receipt [19:14:15]json_value_free [19:14:15]json_value_free done [19:14:15]process_json_proto returns [19:14:15]Send response to host [19:14:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73973,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:14:15]free response buf [19:14:15]execute_script done [19:14:15]execute_script returns [19:14:15]free content buf [19:14:15]Sock 9.Close socket [19:14:15]Sock 9.Thread stoped [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:53]accept exits with 8 [19:15:53]New connection [19:15:53]New thread 3067575652 created [19:15:53]Thread 3067432292 joined [19:15:53]Waiting for new connection... [19:15:53] Sock 8.Parse request [19:15:53]Sock 8.Check first char [19:15:53]Sock 8.First char is OK [19:15:53]request: POST /json_proto HTTP/1.0 [19:15:53]Method: POST [19:15:53]URL: /json_proto [19:15:53]Method is POST - this is cgi request [19:15:53]url: /json_proto [19:15:53]query_string will be loaded in cgi processing [19:15:53]execute_cgi json_proto POST (null) [19:15:53]execute_cgi path=json_proto method=POST [19:15:53]POST find Content-Length [19:15:53]Host: 172.17.44.196:8080 [19:15:53]Content-Length: 798 [19:15:53]Content-Type: application/json [19:15:53] [19:15:53]POST finish read [19:15:53]Found Content-Length = 798 [19:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4465528", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:53]execute_script... [19:15: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 : (1)1963258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4465528", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:53]POST & json_proto [19:15:53]process_json_proto [19:15:53]json parsed OK: [19:15:53]protocol is kg_v1.0 [19:15:53]action value=close_receipt [19:15:53]process_action close_receipt [19:15:53]cmd_close_receipt [19:15:53]MH_GetDate [19:15:53]Write to MH i2c: F0 00 00 79 4E B6 [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: F0 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: F0 09 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: F0 09 00 79 4E 00 EC 56 15 67 E7 19 F8 65 DA [19:15:53]GetLastDocTimeStamp 1729451655 [19:15:53]current date 1729451756 [19:15:53]FM_GetShiftState [19:15:53]SAM_PROTO_GetShiftState [19:15:53]wFMCommunicate request_size=4 [19:15:53]MH_SAM_APDU [19:15:53]CAPDU: 80 13 01 00 [19:15:53]Write to MH i2c: E2 08 00 7A 4E 80 13 01 00 00 00 00 00 45 [19:15:53]Write i2c OK [19:15:53]MH_I2C_Read... [19:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:53]Read from MH i2c: E2 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 0E 00 [19:15:53]MH_I2C_Read... [19:15:53]Read from MH i2c: E2 0E 00 7A 4E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8A [19:15:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:15:53]wFMCommunicate OK [19:15:53]SAM_PROTO_GetShiftState done [19:15:53]FM_GetShiftState done [19:15:53]opened in 1729384303 [19:15:53]opened+sec_in_day 1729470703 [19:15:53]quantity*price = 0 [19:15:53]sum+1 = 1 [19:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 300 20.10.2024 19:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливные Талоны 4465528 ФМ: 0000000000963323 ФД: 73974 ФПД: 211397359061684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191556&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73974&fm=211397359061684&tin=02508201610067®Number=0000000000161154&sum=0 [19:15:54]StoreToDocumentArchive [19:15:54]shift 170 fd 73974 [19:15:54]save to /storage/0170/doc_00073974 [19:15:54]save last doc name /storage/0170/doc_00073974 to /storage/kkm_last_doc_name [19:15:54]save OK [19:15:54]Clear old archive folders... [19:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:15:54]tlvbuf is 00342520 [19:15:54]SAM_PROTO_ClearQueue [19:15:54]wFMCommunicate request_size=4 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 09 00 00 [19:15:54]Write to MH i2c: E2 08 00 87 4E 80 09 00 00 00 00 00 00 47 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 87 4E 00 90 00 49 [19:15:54]RAPDU: 90 00 [19:15:54]wFMCommunicate OK [19:15:54]SAM_PROTO_ClearQueue done [19:15:54]KKMCreateOFDPacket [19:15:54]OFDProtocolAddRootSTLVToBuf [19:15:54]FM_MakeSignedData [19:15:54]FM_MakeSignedData [19:15:54]SAM_PROTO_SignData [19:15:54]wFMCommunicate request_size=4 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 0D 01 02 [19:15:54]Write to MH i2c: E2 08 00 88 4E 80 0D 01 02 00 00 00 00 4F [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 88 4E 00 90 00 4A [19:15:54]RAPDU: 90 00 [19:15:54]wFMCommunicate OK [19:15:54]wFMCommunicate request_size=255 [19:15:54]MH_SAM_APDU [19:15:54]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 30 75 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 2C 01 00 00 F4 03 04 00 EC 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 20 01 00 35 04 06 00 C0 43 C8 7E [19:15:54]Write to MH i2c: E2 02 01 89 4E 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 30 75 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 2C 01 00 00 F4 03 04 00 EC 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 20 01 00 35 04 06 00 C0 43 C8 7E 00 00 39 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]OFD Sender: No OFD packet to send [19:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 89 4E 00 90 00 4B [19:15:54]RAPDU: 90 00 [19:15:54]wFMCommunicate OK [19:15:54]wFMCommunicate request_size=7 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 0D 02 02 02 4A B4 [19:15:54]Write to MH i2c: E2 0A 00 8A 4E 80 0D 02 02 02 00 4A B4 00 00 54 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 03 00 8A 4E 00 90 00 4C [19:15:54]RAPDU: 90 00 [19:15:54]wFMCommunicate OK [19:15:54]wFMCommunicate request_size=4 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 0D 03 02 [19:15:54]Write to MH i2c: E2 08 00 8B 4E 80 0D 03 02 00 00 00 00 54 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:54]Read from MH i2c: E2 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 0B 00 [19:15:54]MH_I2C_Read... [19:15:54]Read from MH i2c: E2 0B 00 8B 4E 00 E2 C2 B2 BF AD 38 7B A9 90 00 73 [19:15:54]RAPDU: E2 C2 B2 BF AD 38 7B A9 90 00 [19:15:54]wFMCommunicate OK [19:15:54]SAM_PROTO_SignData done [19:15:54]FM_MakeSignedData done [19:15:54]CreateOFDProtocolMessage [19:15:54]wFMCommunicate request_size=4 [19:15:54]MH_SAM_APDU [19:15:54]CAPDU: 80 11 00 00 [19:15:54]Write to MH i2c: E2 08 00 8C 4E 80 11 00 00 00 00 00 00 54 [19:15:54]Write i2c OK [19:15:54]MH_I2C_Read... [19:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:55]Read from MH i2c: E2 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: E2 17 00 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: E2 17 00 8C 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A1 [19:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:15:55]wFMCommunicate OK [19:15:55]CreateOFDProtocolMessage done [19:15:55]OFDSenderStorePacket 73974 [19:15:55]StoreOFDPacket docnum=73974 [19:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 65 4C 04 01 23 67 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 30 75 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 2C 01 00 00 F4 03 04 00 EC 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 20 01 00 35 04 06 00 C0 43 C8 7E 4A B4 E2 C2 B2 BF AD 38 7B A9 [19:15:55]CheckFolder [19:15:55]dirname=/storage/ofd_packets [19:15:55]CheckFolder done [19:15:55]ProducePacketName [19:15:55]name=ofd_packets/00073974 [19:15:55]NVStorageSaveData ofd_packets/00073974 [19:15:55]File name is /storage/ofd_packets/00073974 [19:15:55]Write 298 bytes [19:15:55]NVStorageSaveData done [19:15:55]OFDSenderStorePacket done [19:15:55]KKMCreateOFDPacket done [19:15:55]NVStorageSaveData kkm_last_timestamp [19:15:55]File name is /storage/kkm_last_timestamp [19:15:55]Write 4 bytes [19:15:55]NVStorageSaveData done [19:15:55]ExternCall_PrintAddStr [19:15:55]wPrintStart [19:15:55]Write to MH i2c: 01 00 00 8D 4E DB [19:15:55]Write i2c OK [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: 01 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: 01 07 00 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: 01 07 00 8D 4E 00 00 00 00 00 FF 0F F0 [19:15:55]RasterBufferAndPrint [19:15:55]line Счет N : (1)1963258 [19:15:55]line ИНН: 02508201610067 [19:15:55]line Контрольно-Кассовый Чек [19:15:55]line ПРОДАЖА [19:15:55]line ТРК (МРК, ГНК) : 41 [19:15:55]line Товар: 2710194210 [19:15:55]line ДТ-К-5 [19:15:55]line 30.000 * 0.00 [19:15:55]line = 0.00 [19:15:55]line НДС 12% НСП 1% [19:15:55]line > о реализуемом товаре [19:15:55]line ИТОГО: 0.00 [19:15:55]line НСП 1% : 0.00 [19:15:55]line НДС 12% : 0.00 [19:15:55]line Наличными: 0.00 [19:15:55]line Безнал.: 0.00 [19:15:55]line Место: АЗС № 133 "Партнер Нефть" [19:15:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:15:55]line СНО: Общий режим [19:15:55]line Чек 300 20.10.2024 19:15 [19:15:55]line Смена: 170 ФФД: 1.0 [19:15:55]line ЗНМ: 0300000020 [19:15:55]line РНМ: 0000000000161154 [19:15:55]line Версия ККМ: v1.0 [19:15:55]line Талоны: Топливные Талоны [19:15:55]line 4465528 [19:15:55]line ФМ: 0000000000963323 [19:15:55]line ФД: 73974 [19:15:55]line ФПД: 211397359061684 [19:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191556&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73974&fm=211397359061684&tin=02508201610067®Number=0000000000161154&sum=0 [19:15:55]OFD Sender: Processing packet 73974 [packets to send 15, broken 14] [19:15:55]ProducePacketName [19:15:55]name=ofd_packets/00073974 [19:15:55]OFD Sender: To server: pG, [19:15:55]CommunicateWithHost lk.salyk.kg:30040 [19:15:55]ConnectInit lk.salyk.kg [19:15:55]written 0, free lines is 4095 [19:15:55]Connected sock=9 [19:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 65 4C 04 01 23 67 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 30 75 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 2C 01 00 00 F4 03 04 00 EC 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 20 01 00 35 04 06 00 C0 43 C8 7E 4A B4 E2 C2 B2 BF AD 38 7B A9 [19:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA 16 47 00 D1 C0 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 39 36 33 33 32 33 10 04 04 00 F6 20 01 00 F4 03 04 00 D0 FF 14 67 B6 04 01 00 00 BE E4 3C 83 E6 F0 CE D8 [19:15:55]CommunicateWithHost err = 0 [19:15:55]CheckOFDResponse [19:15:55]1017 (14) - 77093643461234 [19:15:55]1041 (16) - 0000000000963323 [19:15:55]1040 (4) - 73974 [19:15:55]1012 (4) - 20.10.2024 13:04 [19:15:55]1206 (1) - 0 [19:15:55]OFD Sender: Remove packet 73974 [19:15:55]ProducePacketName [19:15:55]name=ofd_packets/00073974 [19:15:55]NVStorageDeleteData [19:15:55]Write to MH i2c: 01 00 00 B6 4E 04 [19:15:55]Write i2c OK [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: 01 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: 01 07 00 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: 01 07 00 B6 4E 00 00 00 00 00 C3 0C DA [19:15:55]RasterBufferAndPrint [19:15:55]line [19:15:55]line [19:15:55]line [19:15:55]line [19:15:55]line [19:15:55]written 0, free lines is 3271 [19:15:55]MH_Cut [19:15:55]Write to MH i2c: D1 01 00 BD 4E 01 DD [19:15:55]Write i2c OK [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: D1 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: D1 01 00 [19:15:55]MH_I2C_Read... [19:15:55]Read from MH i2c: D1 01 00 BD 4E 00 DC [19:15:55]Write to MH i2c: 01 00 00 BE 4E 0C [19:15:55]Write i2c OK [19:15:55]MH_I2C_Read... [19:15:56]OFD Sender: No OFD packet to send [19:15:56]*** Cut start [19:15:56]*** Partial cut [19:15:56]*** CUTSNS_PIN = 1 [19:15:56]*** CUTSNS_PIN = 0 [19:15:56]*** Brake cut motor [19:15:57]Read from MH i2c: 01 [19:15:57]MH_I2C_Read... [19:15:57]*** Stop cut motor [19:15:57]*** Cut end [19:15:57]Read from MH i2c: 01 07 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: 01 07 00 BE 4E 00 00 00 00 00 FF 0F 21 [19:15:57]process_action close_receipt done [19:15:57]requested_data is exist [19:15:57]produce_requested_data [19:15:57]requested_item fm.sn is exist - process it [19:15:57]wFMCommunicate request_size=4 [19:15:57]MH_SAM_APDU [19:15:57]CAPDU: 80 11 00 00 [19:15:57]Write to MH i2c: E2 08 00 BF 4E 80 11 00 00 00 00 00 00 87 [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:57]Read from MH i2c: E2 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 17 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 17 00 BF 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [19:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:15:57]wFMCommunicate OK [19:15:57]requested_item fd.num is exist - process it [19:15:57]SAM_PROTO_GetFieldsCounters [19:15:57]wFMCommunicate request_size=4 [19:15:57]MH_SAM_APDU [19:15:57]CAPDU: 80 13 00 00 [19:15:57]Write to MH i2c: E2 08 00 C0 4E 80 13 00 00 00 00 00 00 8A [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:57]Read from MH i2c: E2 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 62 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 62 00 C0 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [19:15:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F6 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:57]wFMCommunicate OK [19:15:57]SAM_PROTO_GetFieldsCounters done [19:15:57]requested_item shift.num is exist - process it [19:15:57]requested_item shift.opened is exist - process it [19:15:57]req_shift_opened [19:15:57]FM_GetShiftState [19:15:57]SAM_PROTO_GetShiftState [19:15:57]wFMCommunicate request_size=4 [19:15:57]MH_SAM_APDU [19:15:57]CAPDU: 80 13 01 00 [19:15:57]Write to MH i2c: E2 08 00 C1 4E 80 13 01 00 00 00 00 00 8C [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:57]Read from MH i2c: E2 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 C1 4E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D1 [19:15:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:15:57]wFMCommunicate OK [19:15:57]SAM_PROTO_GetShiftState done [19:15:57]FM_GetShiftState done [19:15:57]req_shift_opened done [19:15:57]requested_item shift.open_date is exist - process it [19:15:57]req_shift_open_date [19:15:57]req_shift_open_date done [19:15:57]produce_requested_data done [19:15:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73974,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:15:57]process_action_free close_receipt [19:15:57]json_value_free [19:15:57]json_value_free done [19:15:57]process_json_proto returns [19:15:57]Send response to host [19:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73974,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:15:57]free response buf [19:15:57]execute_script done [19:15:57]execute_script returns [19:15:57]free content buf [19:15:57]Sock 8.Close socket [19:15:57]Sock 8.Thread stoped [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:10]accept exits with 10 [19:16:10]New connection [19:16:10]New thread 3067432292 created [19:16:10]Thread 3067575652 joined [19:16:10]Waiting for new connection... [19:16:10] Sock 10.Parse request [19:16:10]Sock 10.Check first char [19:16:10]Sock 10.First char is OK [19:16:10]request: POST /json_proto HTTP/1.0 [19:16:10]Method: POST [19:16:10]URL: /json_proto [19:16:10]Method is POST - this is cgi request [19:16:10]url: /json_proto [19:16:10]query_string will be loaded in cgi processing [19:16:10]execute_cgi json_proto POST (null) [19:16:10]execute_cgi path=json_proto method=POST [19:16:10]POST find Content-Length [19:16:10]Host: 172.17.44.196:8080 [19:16:10]Content-Length: 664 [19:16:10]Content-Type: application/json [19:16:10] [19:16:10]POST finish read [19:16:10]Found Content-Length = 664 [19:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 36.550, "sum" : 2500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:10]execute_script... [19:16: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 : (1)1963259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 36.550, "sum" : 2500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:10]POST & json_proto [19:16:10]process_json_proto [19:16:10]json parsed OK: [19:16:10]protocol is kg_v1.0 [19:16:10]action value=close_receipt [19:16:10]process_action close_receipt [19:16:10]cmd_close_receipt [19:16:10]MH_GetDate [19:16:10]Write to MH i2c: F0 00 00 C2 4E FF [19:16:10]Write i2c OK [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: F0 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: F0 09 00 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: F0 09 00 C2 4E 00 FD 56 15 67 E7 19 F8 65 34 [19:16:10]GetLastDocTimeStamp 1729451756 [19:16:10]current date 1729451773 [19:16:10]FM_GetShiftState [19:16:10]SAM_PROTO_GetShiftState [19:16:10]wFMCommunicate request_size=4 [19:16:10]MH_SAM_APDU [19:16:10]CAPDU: 80 13 01 00 [19:16:10]Write to MH i2c: E2 08 00 C3 4E 80 13 01 00 00 00 00 00 8E [19:16:10]Write i2c OK [19:16:10]MH_I2C_Read... [19:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:10]Read from MH i2c: E2 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: E2 0E 00 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: E2 0E 00 C3 4E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D3 [19:16:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:16:10]wFMCommunicate OK [19:16:10]SAM_PROTO_GetShiftState done [19:16:10]FM_GetShiftState done [19:16:10]opened in 1729384303 [19:16:10]opened+sec_in_day 1729470703 [19:16:10]quantity*price = 250002 [19:16:10]sum+1 = 250003 [19:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 301 20.10.2024 19:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73975 ФПД: 186343818613767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191614&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73975&fm=186343818613767&tin=02508201610067®Number=0000000000161154&sum=250000 [19:16:11]StoreToDocumentArchive [19:16:11]shift 170 fd 73975 [19:16:11]save to /storage/0170/doc_00073975 [19:16:11]save last doc name /storage/0170/doc_00073975 to /storage/kkm_last_doc_name [19:16:11]save OK [19:16:11]Clear old archive folders... [19:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:16:11]tlvbuf is 0040F0E0 [19:16:11]SAM_PROTO_ClearQueue [19:16:11]wFMCommunicate request_size=4 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 09 00 00 [19:16:11]Write to MH i2c: E2 08 00 D0 4E 80 09 00 00 00 00 00 00 90 [19:16:11]Write i2c OK [19:16:11]MH_I2C_Read... [19:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:11]Read from MH i2c: E2 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 D0 4E 00 90 00 92 [19:16:11]RAPDU: 90 00 [19:16:11]wFMCommunicate OK [19:16:11]SAM_PROTO_ClearQueue done [19:16:11]KKMCreateOFDPacket [19:16:11]OFDProtocolAddRootSTLVToBuf [19:16:11]FM_MakeSignedData [19:16:11]FM_MakeSignedData [19:16:11]SAM_PROTO_SignData [19:16:11]wFMCommunicate request_size=4 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 0D 01 02 [19:16:11]Write to MH i2c: E2 08 00 D1 4E 80 0D 01 02 00 00 00 00 98 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 D1 4E 00 90 00 93 [19:16:12]RAPDU: 90 00 [19:16:12]wFMCommunicate OK [19:16:12]wFMCommunicate request_size=253 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FE 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 20 01 00 35 04 06 00 A9 7A 8D 1D 54 07 [19:16:12]Write to MH i2c: E2 00 01 D2 4E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FE 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 20 01 00 35 04 06 00 A9 7A 8D 1D 54 07 00 00 44 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 D2 4E 00 90 00 94 [19:16:12]RAPDU: 90 00 [19:16:12]wFMCommunicate OK [19:16:12]wFMCommunicate request_size=4 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 0D 03 02 [19:16:12]Write to MH i2c: E2 08 00 D3 4E 80 0D 03 02 00 00 00 00 9C [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0B 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0B 00 D3 4E 00 E4 15 D2 91 8F 0F 73 74 90 00 7E [19:16:12]RAPDU: E4 15 D2 91 8F 0F 73 74 90 00 [19:16:12]wFMCommunicate OK [19:16:12]SAM_PROTO_SignData done [19:16:12]FM_MakeSignedData done [19:16:12]CreateOFDProtocolMessage [19:16:12]wFMCommunicate request_size=4 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 11 00 00 [19:16:12]Write to MH i2c: E2 08 00 D4 4E 80 11 00 00 00 00 00 00 9C [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 17 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 17 00 D4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E9 [19:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:16:12]wFMCommunicate OK [19:16:12]CreateOFDProtocolMessage done [19:16:12]OFDSenderStorePacket 73975 [19:16:12]StoreOFDPacket docnum=73975 [19:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 B2 30 00 01 17 29 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FE 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 20 01 00 35 04 06 00 A9 7A 8D 1D 54 07 E4 15 D2 91 8F 0F 73 74 [19:16:12]CheckFolder [19:16:12]dirname=/storage/ofd_packets [19:16:12]CheckFolder done [19:16:12]ProducePacketName [19:16:12]name=ofd_packets/00073975 [19:16:12]NVStorageSaveData ofd_packets/00073975 [19:16:12]File name is /storage/ofd_packets/00073975 [19:16:12]Write 294 bytes [19:16:12]NVStorageSaveData done [19:16:12]OFDSenderStorePacket done [19:16:12]KKMCreateOFDPacket done [19:16:12]NVStorageSaveData kkm_last_timestamp [19:16:12]File name is /storage/kkm_last_timestamp [19:16:12]Write 4 bytes [19:16:12]NVStorageSaveData done [19:16:12]ExternCall_PrintAddStr [19:16:12]wPrintStart [19:16:12]Write to MH i2c: 01 00 00 D5 4E 23 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 07 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 07 00 D5 4E 00 00 00 00 00 FF 0F 38 [19:16:12]RasterBufferAndPrint [19:16:12]line Счет N : (1)1963259 [19:16:12]line ИНН: 02508201610067 [19:16:12]line Контрольно-Кассовый Чек [19:16:12]line ПРОДАЖА [19:16:12]line ТРК (МРК, ГНК) : 62 [19:16:12]line Товар: 2710124130 [19:16:12]line SU-92 [19:16:12]line 36.550 * 68.40 [19:16:12]line = 2500.02 [19:16:12]line НДС 12% НСП 1% [19:16:12]line > о реализуемом товаре [19:16:12]line ОКРУГЛЕНИЕ: -0.02 [19:16:12]line ИТОГО: 2500.00 [19:16:12]line Внесено: 2500.00 [19:16:12]line СДАЧА: 0.00 [19:16:12]line НСП 1% : 22.12 [19:16:12]line НДС 12% : 265.49 [19:16:12]line Наличными: 2500.00 [19:16:12]line Безнал.: 0.00 [19:16:12]line Место: АЗС № 133 "Партнер Нефть" [19:16:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:16:12]line СНО: Общий режим [19:16:12]line Чек 301 20.10.2024 19:16 [19:16:12]line Смена: 170 ФФД: 1.0 [19:16:12]line ЗНМ: 0300000020 [19:16:12]line РНМ: 0000000000161154 [19:16:12]line Версия ККМ: v1.0 [19:16:12]line ФМ: 0000000000963323 [19:16:12]line ФД: 73975 [19:16:12]line ФПД: 186343818613767 [19:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191614&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73975&fm=186343818613767&tin=02508201610067®Number=0000000000161154&sum=250000 [19:16:12]OFD Sender: Processing packet 73975 [packets to send 15, broken 14] [19:16:12]ProducePacketName [19:16:12]name=ofd_packets/00073975 [19:16:12]OFD Sender: To server: pG, [19:16:12]CommunicateWithHost lk.salyk.kg:30040 [19:16:12]ConnectInit lk.salyk.kg [19:16:12]written 0, free lines is 4095 [19:16:12]Connected sock=9 [19:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 B2 30 00 01 17 29 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 FE 56 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 20 01 00 35 04 06 00 A9 7A 8D 1D 54 07 E4 15 D2 91 8F 0F 73 74 [19:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FA 26 47 00 3B BD 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 39 36 33 33 32 33 10 04 04 00 F7 20 01 00 F4 03 04 00 E1 FF 14 67 B6 04 01 00 00 75 46 50 83 49 3A 62 5B [19:16:13]CommunicateWithHost err = 0 [19:16:13]CheckOFDResponse [19:16:13]1017 (14) - 77093643461234 [19:16:13]1041 (16) - 0000000000963323 [19:16:13]1040 (4) - 73975 [19:16:13]1012 (4) - 20.10.2024 13:04 [19:16:13]1206 (1) - 0 [19:16:13]OFD Sender: Remove packet 73975 [19:16:13]ProducePacketName [19:16:13]name=ofd_packets/00073975 [19:16:13]NVStorageDeleteData [19:16:13]Write to MH i2c: 01 00 00 FF 4E 4D [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 07 00 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: 01 07 00 FF 4E 00 00 00 00 00 BB 0C 1B [19:16:13]RasterBufferAndPrint [19:16:13]line [19:16:13]line [19:16:13]line [19:16:13]line [19:16:13]line [19:16:13]written 0, free lines is 3265 [19:16:13]MH_Cut [19:16:13]Write to MH i2c: D1 01 00 06 4F 01 27 [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: D1 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: D1 01 00 [19:16:13]MH_I2C_Read... [19:16:13]Read from MH i2c: D1 01 00 06 4F 00 26 [19:16:13]Write to MH i2c: 01 00 00 07 4F 56 [19:16:13]Write i2c OK [19:16:13]MH_I2C_Read... [19:16:13]OFD Sender: No OFD packet to send [19:16:14]*** Cut start [19:16:14]*** Partial cut [19:16:14]*** CUTSNS_PIN = 1 [19:16:14]*** CUTSNS_PIN = 0 [19:16:14]*** Brake cut motor [19:16:14]Read from MH i2c: 01 [19:16:14]MH_I2C_Read... [19:16:14]*** Stop cut motor [19:16:14]*** Cut end [19:16:14]Read from MH i2c: 01 07 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: 01 07 00 07 4F 00 00 00 00 00 FF 0F 6B [19:16:14]process_action close_receipt done [19:16:14]requested_data is exist [19:16:14]produce_requested_data [19:16:14]requested_item fm.sn is exist - process it [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 11 00 00 [19:16:14]Write to MH i2c: E2 08 00 08 4F 80 11 00 00 00 00 00 00 D1 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 17 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 17 00 08 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1E [19:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:16:14]wFMCommunicate OK [19:16:14]requested_item fd.num is exist - process it [19:16:14]SAM_PROTO_GetFieldsCounters [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 13 00 00 [19:16:14]Write to MH i2c: E2 08 00 09 4F 80 13 00 00 00 00 00 00 D4 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 62 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 62 00 09 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [19:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F7 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:14]wFMCommunicate OK [19:16:14]SAM_PROTO_GetFieldsCounters done [19:16:14]requested_item shift.num is exist - process it [19:16:14]requested_item shift.opened is exist - process it [19:16:14]req_shift_opened [19:16:14]FM_GetShiftState [19:16:14]SAM_PROTO_GetShiftState [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 13 01 00 [19:16:14]Write to MH i2c: E2 08 00 0A 4F 80 13 01 00 00 00 00 00 D6 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 0E 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 0E 00 0A 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1B [19:16:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:16:14]wFMCommunicate OK [19:16:14]SAM_PROTO_GetShiftState done [19:16:14]FM_GetShiftState done [19:16:14]req_shift_opened done [19:16:14]requested_item shift.open_date is exist - process it [19:16:14]req_shift_open_date [19:16:14]req_shift_open_date done [19:16:14]produce_requested_data done [19:16:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73975,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:16:14]process_action_free close_receipt [19:16:14]json_value_free [19:16:14]json_value_free done [19:16:14]process_json_proto returns [19:16:14]Send response to host [19:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73975,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:16:14]free response buf [19:16:14]execute_script done [19:16:14]execute_script returns [19:16:14]free content buf [19:16:14]Sock 10.Close socket [19:16:14]Sock 10.Thread stoped [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:10]accept exits with 8 [19:17:10]New connection [19:17:10]New thread 3067575652 created [19:17:10]Thread 3067432292 joined [19:17:10]Waiting for new connection... [19:17:10] Sock 8.Parse request [19:17:10]Sock 8.Check first char [19:17:10]Sock 8.First char is OK [19:17:10]request: POST /json_proto HTTP/1.0 [19:17:10]Method: POST [19:17:10]URL: /json_proto [19:17:10]Method is POST - this is cgi request [19:17:10]url: /json_proto [19:17:10]query_string will be loaded in cgi processing [19:17:10]execute_cgi json_proto POST (null) [19:17:10]execute_cgi path=json_proto method=POST [19:17:10]POST find Content-Length [19:17:10]Host: 172.17.44.196:8080 [19:17:10]Content-Length: 680 [19:17:10]Content-Type: application/json [19:17:10] [19:17:10]POST finish read [19:17:10]Found Content-Length = 680 [19:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:10]execute_script... [19:17: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 : (1)1963257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:10]POST & json_proto [19:17:10]process_json_proto [19:17:10]json parsed OK: [19:17:10]protocol is kg_v1.0 [19:17:10]action value=close_receipt [19:17:10]process_action close_receipt [19:17:10]cmd_close_receipt [19:17:10]MH_GetDate [19:17:10]Write to MH i2c: F0 00 00 0B 4F 49 [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: F0 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: F0 09 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: F0 09 00 0B 4F 00 39 57 15 67 E7 19 F8 65 BB [19:17:10]GetLastDocTimeStamp 1729451774 [19:17:10]current date 1729451833 [19:17:10]FM_GetShiftState [19:17:10]SAM_PROTO_GetShiftState [19:17:10]wFMCommunicate request_size=4 [19:17:10]MH_SAM_APDU [19:17:10]CAPDU: 80 13 01 00 [19:17:10]Write to MH i2c: E2 08 00 0C 4F 80 13 01 00 00 00 00 00 D8 [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 0C 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 1D [19:17:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetShiftState done [19:17:10]FM_GetShiftState done [19:17:10]opened in 1729384303 [19:17:10]opened+sec_in_day 1729470703 [19:17:10]quantity*price = 600075 [19:17:10]sum+1 = 600076 [19:17:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 302 20.10.2024 19:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73976 ФПД: 14720247952060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191714&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73976&fm=14720247952060&tin=02508201610067®Number=0000000000161154&sum=600000 [19:17:11]StoreToDocumentArchive [19:17:11]shift 170 fd 73976 [19:17:11]save to /storage/0170/doc_00073976 [19:17:11]save last doc name /storage/0170/doc_00073976 to /storage/kkm_last_doc_name [19:17:11]save OK [19:17:11]Clear old archive folders... [19:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:17:11]tlvbuf is B6E40180 [19:17:11]SAM_PROTO_ClearQueue [19:17:11]wFMCommunicate request_size=4 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 09 00 00 [19:17:11]Write to MH i2c: E2 08 00 19 4F 80 09 00 00 00 00 00 00 DA [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 19 4F 00 90 00 DC [19:17:11]RAPDU: 90 00 [19:17:11]wFMCommunicate OK [19:17:11]SAM_PROTO_ClearQueue done [19:17:11]KKMCreateOFDPacket [19:17:11]OFDProtocolAddRootSTLVToBuf [19:17:11]FM_MakeSignedData [19:17:11]FM_MakeSignedData [19:17:11]SAM_PROTO_SignData [19:17:11]wFMCommunicate request_size=4 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 0D 01 02 [19:17:11]Write to MH i2c: E2 08 00 1A 4F 80 0D 01 02 00 00 00 00 E2 [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 03 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 03 00 1A 4F 00 90 00 DD [19:17:12]RAPDU: 90 00 [19:17:12]wFMCommunicate OK [19:17:12]wFMCommunicate request_size=255 [19:17:12]MH_SAM_APDU [19:17:12]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 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 3A 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 20 01 00 35 04 06 00 0D 63 53 26 [19:17:12]Write to MH i2c: E2 02 01 1B 4F 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 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 3A 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 20 01 00 35 04 06 00 0D 63 53 26 00 00 A0 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 03 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 03 00 1B 4F 00 90 00 DE [19:17:12]RAPDU: 90 00 [19:17:12]wFMCommunicate OK [19:17:12]wFMCommunicate request_size=7 [19:17:12]MH_SAM_APDU [19:17:12]CAPDU: 80 0D 02 02 02 72 BC [19:17:12]Write to MH i2c: E2 0A 00 1C 4F 80 0D 02 02 02 00 72 BC 00 00 17 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:12]Read from MH i2c: E2 03 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 03 00 1C 4F 00 90 00 DF [19:17:12]RAPDU: 90 00 [19:17:12]wFMCommunicate OK [19:17:12]wFMCommunicate request_size=4 [19:17:12]MH_SAM_APDU [19:17:12]CAPDU: 80 0D 03 02 [19:17:12]Write to MH i2c: E2 08 00 1D 4F 80 0D 03 02 00 00 00 00 E7 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 0B 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 0B 00 1D 4F 00 39 E6 0F FB 86 32 32 17 90 00 12 [19:17:12]RAPDU: 39 E6 0F FB 86 32 32 17 90 00 [19:17:12]wFMCommunicate OK [19:17:12]SAM_PROTO_SignData done [19:17:12]FM_MakeSignedData done [19:17:12]CreateOFDProtocolMessage [19:17:12]wFMCommunicate request_size=4 [19:17:12]MH_SAM_APDU [19:17:12]CAPDU: 80 11 00 00 [19:17:12]Write to MH i2c: E2 08 00 1E 4F 80 11 00 00 00 00 00 00 E7 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 17 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 17 00 1E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 34 [19:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:17:12]wFMCommunicate OK [19:17:12]CreateOFDProtocolMessage done [19:17:12]OFDSenderStorePacket 73976 [19:17:12]StoreOFDPacket docnum=73976 [19:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 9C 5E 04 01 68 81 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 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 3A 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 20 01 00 35 04 06 00 0D 63 53 26 72 BC 39 E6 0F FB 86 32 32 17 [19:17:12]CheckFolder [19:17:12]dirname=/storage/ofd_packets [19:17:12]CheckFolder done [19:17:12]ProducePacketName [19:17:12]name=ofd_packets/00073976 [19:17:12]NVStorageSaveData ofd_packets/00073976 [19:17:12]File name is /storage/ofd_packets/00073976 [19:17:12]Write 298 bytes [19:17:12]NVStorageSaveData done [19:17:12]OFDSenderStorePacket done [19:17:12]KKMCreateOFDPacket done [19:17:12]NVStorageSaveData kkm_last_timestamp [19:17:12]File name is /storage/kkm_last_timestamp [19:17:12]Write 4 bytes [19:17:12]NVStorageSaveData done [19:17:12]ExternCall_PrintAddStr [19:17:12]wPrintStart [19:17:12]Write to MH i2c: 01 00 00 1F 4F 6E [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: 01 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: 01 07 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: 01 07 00 1F 4F 00 00 00 00 00 FF 0F 83 [19:17:12]RasterBufferAndPrint [19:17:12]line Счет N : (1)1963257 [19:17:12]line ИНН: 02508201610067 [19:17:12]line Контрольно-Кассовый Чек [19:17:12]line ПРОДАЖА [19:17:12]line ТРК (МРК, ГНК) : 21 [19:17:12]line Товар: 2710194210 [19:17:12]line ДТ-К-5 [19:17:12]line 78.750 * 76.20 [19:17:12]line = 6000.75 [19:17:12]line НДС 12% НСП 1% [19:17:12]line > о реализуемом товаре [19:17:12]line ОКРУГЛЕНИЕ: -0.75 [19:17:12]line ИТОГО: 6000.00 [19:17:12]line Внесено: 6000.00 [19:17:12]line СДАЧА: 0.00 [19:17:12]line НСП 1% : 53.10 [19:17:12]line НДС 12% : 637.25 [19:17:12]line Наличными: 6000.00 [19:17:12]line Безнал.: 0.00 [19:17:12]line Место: АЗС № 133 "Партнер Нефть" [19:17:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:17:12]line СНО: Общий режим [19:17:12]line Чек 302 20.10.2024 19:17 [19:17:12]line Смена: 170 ФФД: 1.0 [19:17:12]line ЗНМ: 0300000020 [19:17:12]line РНМ: 0000000000161154 [19:17:12]line Версия ККМ: v1.0 [19:17:12]line ФМ: 0000000000963323 [19:17:12]line ФД: 73976 [19:17:12]line ФПД: 14720247952060 [19:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191714&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73976&fm=14720247952060&tin=02508201610067®Number=0000000000161154&sum=600000 [19:17:12]OFD Sender: Processing packet 73976 [packets to send 15, broken 14] [19:17:12]ProducePacketName [19:17:12]name=ofd_packets/00073976 [19:17:12]OFD Sender: To server: pG, [19:17:12]CommunicateWithHost lk.salyk.kg:30040 [19:17:12]ConnectInit lk.salyk.kg [19:17:12]written 0, free lines is 4095 [19:17:12]Connected sock=10 [19:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 9C 5E 04 01 68 81 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 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 3A 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 20 01 00 35 04 06 00 0D 63 53 26 72 BC 39 E6 0F FB 86 32 32 17 [19:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FF D9 47 00 E4 80 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 39 36 33 33 32 33 10 04 04 00 F8 20 01 00 F4 03 04 00 1D 00 15 67 B6 04 01 00 00 2C B6 AD 87 8E E6 C3 61 [19:17:13]CommunicateWithHost err = 0 [19:17:13]CheckOFDResponse [19:17:13]1017 (14) - 77093643461234 [19:17:13]1041 (16) - 0000000000963323 [19:17:13]1040 (4) - 73976 [19:17:13]1012 (4) - 20.10.2024 13:05 [19:17:13]1206 (1) - 0 [19:17:13]OFD Sender: Remove packet 73976 [19:17:13]ProducePacketName [19:17:13]name=ofd_packets/00073976 [19:17:13]NVStorageDeleteData [19:17:13]Write to MH i2c: 01 00 00 49 4F 98 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: 01 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: 01 07 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: 01 07 00 49 4F 00 00 00 00 00 AD 0C 58 [19:17:13]RasterBufferAndPrint [19:17:13]line [19:17:13]line [19:17:13]line [19:17:13]line [19:17:13]line [19:17:13]written 0, free lines is 3249 [19:17:13]MH_Cut [19:17:13]Write to MH i2c: D1 01 00 50 4F 01 71 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: D1 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: D1 01 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: D1 01 00 50 4F 00 70 [19:17:13]Write to MH i2c: 01 00 00 51 4F A0 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]OFD Sender: No OFD packet to send [19:17:14]*** Cut start [19:17:14]*** Partial cut [19:17:14]*** CUTSNS_PIN = 1 [19:17:14]*** CUTSNS_PIN = 0 [19:17:14]*** Brake cut motor [19:17:14]Read from MH i2c: 01 [19:17:14]MH_I2C_Read... [19:17:14]*** Stop cut motor [19:17:14]*** Cut end [19:17:14]Read from MH i2c: 01 07 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 51 4F 00 00 00 00 00 FF 0F B5 [19:17:14]process_action close_receipt done [19:17:14]requested_data is exist [19:17:14]produce_requested_data [19:17:14]requested_item fm.sn is exist - process it [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 11 00 00 [19:17:14]Write to MH i2c: E2 08 00 52 4F 80 11 00 00 00 00 00 00 1B [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 17 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 17 00 52 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 68 [19:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:17:14]wFMCommunicate OK [19:17:14]requested_item fd.num is exist - process it [19:17:14]SAM_PROTO_GetFieldsCounters [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 13 00 00 [19:17:14]Write to MH i2c: E2 08 00 53 4F 80 13 00 00 00 00 00 00 1E [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 62 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 62 00 53 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F8 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_GetFieldsCounters done [19:17:14]requested_item shift.num is exist - process it [19:17:14]requested_item shift.opened is exist - process it [19:17:14]req_shift_opened [19:17:14]FM_GetShiftState [19:17:14]SAM_PROTO_GetShiftState [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 13 01 00 [19:17:14]Write to MH i2c: E2 08 00 54 4F 80 13 01 00 00 00 00 00 20 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 54 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 65 [19:17:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_GetShiftState done [19:17:14]FM_GetShiftState done [19:17:14]req_shift_opened done [19:17:14]requested_item shift.open_date is exist - process it [19:17:14]req_shift_open_date [19:17:14]req_shift_open_date done [19:17:14]produce_requested_data done [19:17:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73976,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:17:14]process_action_free close_receipt [19:17:14]json_value_free [19:17:14]json_value_free done [19:17:14]process_json_proto returns [19:17:14]Send response to host [19:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73976,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:17:14]free response buf [19:17:14]execute_script done [19:17:14]execute_script returns [19:17:14]free content buf [19:17:14]Sock 8.Close socket [19:17:14]Sock 8.Thread stoped [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:53]accept exits with 9 [19:17:53]New connection [19:17:53]New thread 3067432292 created [19:17:53]Thread 3067575652 joined [19:17:53]Waiting for new connection... [19:17:53] Sock 9.Parse request [19:17:53]Sock 9.Check first char [19:17:53]Sock 9.First char is OK [19:17:53]request: POST /json_proto HTTP/1.0 [19:17:53]Method: POST [19:17:53]URL: /json_proto [19:17:53]Method is POST - this is cgi request [19:17:53]url: /json_proto [19:17:53]query_string will be loaded in cgi processing [19:17:53]execute_cgi json_proto POST (null) [19:17:53]execute_cgi path=json_proto method=POST [19:17:53]POST find Content-Length [19:17:53]Host: 172.17.44.196:8080 [19:17:53]Content-Length: 679 [19:17:53]Content-Type: application/json [19:17:53] [19:17:53]POST finish read [19:17:53]Found Content-Length = 679 [19:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:53]execute_script... [19:17: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 : (1)1963261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:53]POST & json_proto [19:17:53]process_json_proto [19:17:53]json parsed OK: [19:17:53]protocol is kg_v1.0 [19:17:53]action value=close_receipt [19:17:53]process_action close_receipt [19:17:53]cmd_close_receipt [19:17:53]MH_GetDate [19:17:53]Write to MH i2c: F0 00 00 55 4F 93 [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: F0 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: F0 09 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: F0 09 00 55 4F 00 64 57 15 67 E7 19 F8 65 30 [19:17:53]GetLastDocTimeStamp 1729451834 [19:17:53]current date 1729451876 [19:17:53]FM_GetShiftState [19:17:53]SAM_PROTO_GetShiftState [19:17:53]wFMCommunicate request_size=4 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 13 01 00 [19:17:53]Write to MH i2c: E2 08 00 56 4F 80 13 01 00 00 00 00 00 22 [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 0E 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 0E 00 56 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 67 [19:17:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:17:53]wFMCommunicate OK [19:17:53]SAM_PROTO_GetShiftState done [19:17:53]FM_GetShiftState done [19:17:53]opened in 1729384303 [19:17:53]opened+sec_in_day 1729470703 [19:17:53]quantity*price = 80061 [19:17:53]sum+1 = 80063 [19:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 303 20.10.2024 19:17 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73977 ФПД: 140809436453613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191756&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73977&fm=140809436453613&tin=02508201610067®Number=0000000000161154&sum=80000 [19:17:54]StoreToDocumentArchive [19:17:54]shift 170 fd 73977 [19:17:54]save to /storage/0170/doc_00073977 [19:17:54]save last doc name /storage/0170/doc_00073977 to /storage/kkm_last_doc_name [19:17:54]save OK [19:17:54]Clear old archive folders... [19:17:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:54]tlvbuf is 00480520 [19:17:54]SAM_PROTO_ClearQueue [19:17:54]wFMCommunicate request_size=4 [19:17:54]MH_SAM_APDU [19:17:54]CAPDU: 80 09 00 00 [19:17:54]Write to MH i2c: E2 08 00 63 4F 80 09 00 00 00 00 00 00 24 [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:54]Read from MH i2c: E2 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: E2 03 00 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: E2 03 00 63 4F 00 90 00 26 [19:17:54]RAPDU: 90 00 [19:17:54]wFMCommunicate OK [19:17:54]SAM_PROTO_ClearQueue done [19:17:54]KKMCreateOFDPacket [19:17:54]OFDProtocolAddRootSTLVToBuf [19:17:54]FM_MakeSignedData [19:17:54]FM_MakeSignedData [19:17:54]SAM_PROTO_SignData [19:17:54]wFMCommunicate request_size=4 [19:17:54]MH_SAM_APDU [19:17:54]CAPDU: 80 0D 01 02 [19:17:54]Write to MH i2c: E2 08 00 64 4F 80 0D 01 02 00 00 00 00 2C [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:54]Read from MH i2c: E2 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: E2 03 00 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: E2 03 00 64 4F 00 90 00 27 [19:17:54]RAPDU: 90 00 [19:17:54]wFMCommunicate OK [19:17:54]wFMCommunicate request_size=255 [19:17:54]MH_SAM_APDU [19:17: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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 64 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 20 01 00 35 04 06 00 80 [19:17:54]Write to MH i2c: E2 02 01 65 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 64 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 20 01 00 35 04 06 00 80 00 00 C6 [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 03 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 03 00 65 4F 00 90 00 28 [19:17:55]RAPDU: 90 00 [19:17:55]wFMCommunicate OK [19:17:55]wFMCommunicate request_size=10 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 0D 02 02 05 10 C0 70 DA ED [19:17:55]Write to MH i2c: E2 0D 00 66 4F 80 0D 02 02 05 00 10 C0 70 DA ED 00 00 40 [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 03 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 03 00 66 4F 00 90 00 29 [19:17:55]RAPDU: 90 00 [19:17:55]wFMCommunicate OK [19:17:55]wFMCommunicate request_size=4 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 0D 03 02 [19:17:55]Write to MH i2c: E2 08 00 67 4F 80 0D 03 02 00 00 00 00 31 [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 0B 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 0B 00 67 4F 00 23 C2 FE 0E 0D FE 5B 2B 90 00 B4 [19:17:55]RAPDU: 23 C2 FE 0E 0D FE 5B 2B 90 00 [19:17:55]wFMCommunicate OK [19:17:55]SAM_PROTO_SignData done [19:17:55]FM_MakeSignedData done [19:17:55]CreateOFDProtocolMessage [19:17:55]wFMCommunicate request_size=4 [19:17:55]MH_SAM_APDU [19:17:55]CAPDU: 80 11 00 00 [19:17:55]Write to MH i2c: E2 08 00 68 4F 80 11 00 00 00 00 00 00 31 [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:55]Read from MH i2c: E2 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 17 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: E2 17 00 68 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7E [19:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:17:55]wFMCommunicate OK [19:17:55]CreateOFDProtocolMessage done [19:17:55]OFDSenderStorePacket 73977 [19:17:55]StoreOFDPacket docnum=73977 [19:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 41 2A 07 01 E4 1A 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 64 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 20 01 00 35 04 06 00 80 10 C0 70 DA ED 23 C2 FE 0E 0D FE 5B 2B [19:17:55]CheckFolder [19:17:55]dirname=/storage/ofd_packets [19:17:55]CheckFolder done [19:17:55]ProducePacketName [19:17:55]name=ofd_packets/00073977 [19:17:55]NVStorageSaveData ofd_packets/00073977 [19:17:55]File name is /storage/ofd_packets/00073977 [19:17:55]Write 301 bytes [19:17:55]NVStorageSaveData done [19:17:55]OFDSenderStorePacket done [19:17:55]KKMCreateOFDPacket done [19:17:55]NVStorageSaveData kkm_last_timestamp [19:17:55]File name is /storage/kkm_last_timestamp [19:17:55]Write 4 bytes [19:17:55]NVStorageSaveData done [19:17:55]ExternCall_PrintAddStr [19:17:55]wPrintStart [19:17:55]Write to MH i2c: 01 00 00 69 4F B8 [19:17:55]Write i2c OK [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: 01 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: 01 07 00 [19:17:55]MH_I2C_Read... [19:17:55]Read from MH i2c: 01 07 00 69 4F 00 00 00 00 00 FF 0F CD [19:17:55]RasterBufferAndPrint [19:17:55]line Счет N : (1)1963261 [19:17:55]line ИНН: 02508201610067 [19:17:55]line Контрольно-Кассовый Чек [19:17:55]line ПРОДАЖА [19:17:55]line ТРК (МРК, ГНК) : 34 [19:17:55]line Товар: 2710124500 [19:17:55]line Аи-95-К-5 [19:17:55]line 10.790 * 74.20 [19:17:55]line = 800.62 [19:17:55]line НДС 12% НСП 1% [19:17:55]line > о реализуемом товаре [19:17:55]line ОКРУГЛЕНИЕ: -0.62 [19:17:55]line ИТОГО: 800.00 [19:17:55]line Внесено: 800.00 [19:17:55]line СДАЧА: 0.00 [19:17:55]line НСП 1% : 7.08 [19:17:55]line НДС 12% : 85.02 [19:17:55]line Наличными: 800.00 [19:17:55]line Безнал.: 0.00 [19:17:55]line Место: АЗС № 133 "Партнер Нефть" [19:17:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:17:55]line СНО: Общий режим [19:17:55]line Чек 303 20.10.2024 19:17 [19:17:55]line Смена: 170 ФФД: 1.0 [19:17:55]line ЗНМ: 0300000020 [19:17:55]line РНМ: 0000000000161154 [19:17:55]line Версия ККМ: v1.0 [19:17:55]line ФМ: 0000000000963323 [19:17:55]line ФД: 73977 [19:17:55]line ФПД: 140809436453613 [19:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191756&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73977&fm=140809436453613&tin=02508201610067®Number=0000000000161154&sum=80000 [19:17:55]OFD Sender: Processing packet 73977 [packets to send 15, broken 14] [19:17:55]ProducePacketName [19:17:55]name=ofd_packets/00073977 [19:17:55]OFD Sender: To server: pG, [19:17:55]CommunicateWithHost lk.salyk.kg:30040 [19:17:55]ConnectInit lk.salyk.kg [19:17:55]written 0, free lines is 4095 [19:17:55]Connected sock=10 [19:17:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 41 2A 07 01 E4 1A 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 64 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 20 01 00 35 04 06 00 80 10 C0 70 DA ED 23 C2 FE 0E 0D FE 5B 2B [19:17:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E5 D7 47 00 30 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 39 36 33 33 32 33 10 04 04 00 F9 20 01 00 F4 03 04 00 48 00 15 67 B6 04 01 00 00 BC A9 F3 D2 F9 76 2E B9 [19:17:55]CommunicateWithHost err = 0 [19:17:55]CheckOFDResponse [19:17:55]1017 (14) - 77093643461234 [19:17:55]1041 (16) - 0000000000963323 [19:17:55]1040 (4) - 73977 [19:17:55]1012 (4) - 20.10.2024 13:06 [19:17:55]1206 (1) - 0 [19:17:55]OFD Sender: Remove packet 73977 [19:17:55]ProducePacketName [19:17:55]name=ofd_packets/00073977 [19:17:55]NVStorageDeleteData [19:17:56]Write to MH i2c: 01 00 00 93 4F E2 [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: 01 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: 01 07 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: 01 07 00 93 4F 00 00 00 00 00 B7 0C AC [19:17:56]RasterBufferAndPrint [19:17:56]line [19:17:56]line [19:17:56]line [19:17:56]line [19:17:56]line [19:17:56]written 0, free lines is 3258 [19:17:56]MH_Cut [19:17:56]Write to MH i2c: D1 01 00 9A 4F 01 BB [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: D1 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: D1 01 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: D1 01 00 9A 4F 00 BA [19:17:56]Write to MH i2c: 01 00 00 9B 4F EA [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]OFD Sender: No OFD packet to send [19:17:57]*** Cut start [19:17:57]*** Partial cut [19:17:57]*** CUTSNS_PIN = 1 [19:17:57]*** CUTSNS_PIN = 0 [19:17:57]*** Brake cut motor [19:17:57]Read from MH i2c: 01 [19:17:57]MH_I2C_Read... [19:17:57]*** Stop cut motor [19:17:57]*** Cut end [19:17:57]Read from MH i2c: 01 07 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: 01 07 00 9B 4F 00 00 00 00 00 FF 0F FF [19:17:57]process_action close_receipt done [19:17:57]requested_data is exist [19:17:57]produce_requested_data [19:17:57]requested_item fm.sn is exist - process it [19:17:57]wFMCommunicate request_size=4 [19:17:57]MH_SAM_APDU [19:17:57]CAPDU: 80 11 00 00 [19:17:57]Write to MH i2c: E2 08 00 9C 4F 80 11 00 00 00 00 00 00 65 [19:17:57]Write i2c OK [19:17:57]MH_I2C_Read... [19:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:57]Read from MH i2c: E2 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 17 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 17 00 9C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B2 [19:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:17:57]wFMCommunicate OK [19:17:57]requested_item fd.num is exist - process it [19:17:57]SAM_PROTO_GetFieldsCounters [19:17:57]wFMCommunicate request_size=4 [19:17:57]MH_SAM_APDU [19:17:57]CAPDU: 80 13 00 00 [19:17:57]Write to MH i2c: E2 08 00 9D 4F 80 13 00 00 00 00 00 00 68 [19:17:57]Write i2c OK [19:17:57]MH_I2C_Read... [19:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:57]Read from MH i2c: E2 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 62 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 62 00 9D 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [19:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F9 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:57]wFMCommunicate OK [19:17:57]SAM_PROTO_GetFieldsCounters done [19:17:57]requested_item shift.num is exist - process it [19:17:57]requested_item shift.opened is exist - process it [19:17:57]req_shift_opened [19:17:57]FM_GetShiftState [19:17:57]SAM_PROTO_GetShiftState [19:17:57]wFMCommunicate request_size=4 [19:17:57]MH_SAM_APDU [19:17:57]CAPDU: 80 13 01 00 [19:17:57]Write to MH i2c: E2 08 00 9E 4F 80 13 01 00 00 00 00 00 6A [19:17:57]Write i2c OK [19:17:57]MH_I2C_Read... [19:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:57]Read from MH i2c: E2 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 0E 00 [19:17:57]MH_I2C_Read... [19:17:57]Read from MH i2c: E2 0E 00 9E 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 AF [19:17:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:17:57]wFMCommunicate OK [19:17:57]SAM_PROTO_GetShiftState done [19:17:57]FM_GetShiftState done [19:17:57]req_shift_opened done [19:17:57]requested_item shift.open_date is exist - process it [19:17:57]req_shift_open_date [19:17:57]req_shift_open_date done [19:17:57]produce_requested_data done [19:17:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73977,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:17:57]process_action_free close_receipt [19:17:57]json_value_free [19:17:57]json_value_free done [19:17:57]process_json_proto returns [19:17:57]Send response to host [19:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73977,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:17:57]free response buf [19:17:57]execute_script done [19:17:57]execute_script returns [19:17:57]free content buf [19:17:57]Sock 9.Close socket [19:17:57]Sock 9.Thread stoped [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]accept exits with 8 [19:18:36]New connection [19:18:36]New thread 3067575652 created [19:18:36]Thread 3067432292 joined [19:18:36]Waiting for new connection... [19:18:36] Sock 8.Parse request [19:18:36]Sock 8.Check first char [19:18:36]Sock 8.First char is OK [19:18:36]request: POST /json_proto HTTP/1.0 [19:18:36]Method: POST [19:18:36]URL: /json_proto [19:18:36]Method is POST - this is cgi request [19:18:36]url: /json_proto [19:18:36]query_string will be loaded in cgi processing [19:18:36]execute_cgi json_proto POST (null) [19:18:36]execute_cgi path=json_proto method=POST [19:18:36]POST find Content-Length [19:18:36]Host: 172.17.44.196:8080 [19:18:36]Content-Length: 678 [19:18:36]Content-Type: application/json [19:18:36] [19:18:36]POST finish read [19:18:36]Found Content-Length = 678 [19:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:36]execute_script... [19:18: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 : (1)1963262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:36]POST & json_proto [19:18:36]process_json_proto [19:18:36]json parsed OK: [19:18:36]protocol is kg_v1.0 [19:18:36]action value=close_receipt [19:18:36]process_action close_receipt [19:18:36]cmd_close_receipt [19:18:36]MH_GetDate [19:18:36]Write to MH i2c: F0 00 00 9F 4F DD [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: F0 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: F0 09 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: F0 09 00 9F 4F 00 8F 57 15 67 E7 19 F8 65 A5 [19:18:36]GetLastDocTimeStamp 1729451876 [19:18:36]current date 1729451919 [19:18:36]FM_GetShiftState [19:18:36]SAM_PROTO_GetShiftState [19:18:36]wFMCommunicate request_size=4 [19:18:36]MH_SAM_APDU [19:18:36]CAPDU: 80 13 01 00 [19:18:36]Write to MH i2c: E2 08 00 A0 4F 80 13 01 00 00 00 00 00 6C [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:36]Read from MH i2c: E2 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 0E 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 0E 00 A0 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B1 [19:18:36]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:18:36]wFMCommunicate OK [19:18:36]SAM_PROTO_GetShiftState done [19:18:36]FM_GetShiftState done [19:18:36]opened in 1729384303 [19:18:36]opened+sec_in_day 1729470703 [19:18:36]quantity*price = 30038 [19:18:36]sum+1 = 30039 [19:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 304 20.10.2024 19:18 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73978 ФПД: 170924299656859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191839&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73978&fm=170924299656859&tin=02508201610067®Number=0000000000161154&sum=30000 [19:18:37]StoreToDocumentArchive [19:18:37]shift 170 fd 73978 [19:18:37]save to /storage/0170/doc_00073978 [19:18:37]save last doc name /storage/0170/doc_00073978 to /storage/kkm_last_doc_name [19:18:37]save OK [19:18:37]Clear old archive folders... [19:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:37]tlvbuf is 004EC430 [19:18:37]SAM_PROTO_ClearQueue [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 09 00 00 [19:18:37]Write to MH i2c: E2 08 00 AD 4F 80 09 00 00 00 00 00 00 6E [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 AD 4F 00 90 00 70 [19:18:37]RAPDU: 90 00 [19:18:37]wFMCommunicate OK [19:18:37]SAM_PROTO_ClearQueue done [19:18:37]KKMCreateOFDPacket [19:18:37]OFDProtocolAddRootSTLVToBuf [19:18:37]FM_MakeSignedData [19:18:37]FM_MakeSignedData [19:18:37]SAM_PROTO_SignData [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 0D 01 02 [19:18:37]Write to MH i2c: E2 08 00 AE 4F 80 0D 01 02 00 00 00 00 76 [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 AE 4F 00 90 00 71 [19:18:37]RAPDU: 90 00 [19:18:37]wFMCommunicate OK [19:18:37]wFMCommunicate request_size=255 [19:18:37]MH_SAM_APDU [19:18:37]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 30 01 00 00 F4 03 04 00 8F 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 20 01 00 35 04 06 00 9B [19:18:37]Write to MH i2c: E2 02 01 AF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 30 01 00 00 F4 03 04 00 8F 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 20 01 00 35 04 06 00 9B 00 00 DF [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 AF 4F 00 90 00 72 [19:18:37]RAPDU: 90 00 [19:18:37]wFMCommunicate OK [19:18:37]wFMCommunicate request_size=10 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 0D 02 02 05 74 6A 2A 1E 9B [19:18:37]Write to MH i2c: E2 0D 00 B0 4F 80 0D 02 02 05 00 74 6A 2A 1E 9B 00 00 44 [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 03 00 B0 4F 00 90 00 73 [19:18:37]RAPDU: 90 00 [19:18:37]wFMCommunicate OK [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 0D 03 02 [19:18:37]Write to MH i2c: E2 08 00 B1 4F 80 0D 03 02 00 00 00 00 7B [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 0B 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 0B 00 B1 4F 00 4D 53 30 55 97 59 05 50 90 00 E6 [19:18:37]RAPDU: 4D 53 30 55 97 59 05 50 90 00 [19:18:37]wFMCommunicate OK [19:18:37]SAM_PROTO_SignData done [19:18:37]FM_MakeSignedData done [19:18:37]CreateOFDProtocolMessage [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 11 00 00 [19:18:37]Write to MH i2c: E2 08 00 B2 4F 80 11 00 00 00 00 00 00 7B [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 17 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 17 00 B2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [19:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:18:37]wFMCommunicate OK [19:18:37]CreateOFDProtocolMessage done [19:18:37]OFDSenderStorePacket 73978 [19:18:37]StoreOFDPacket docnum=73978 [19:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E 72 07 01 70 2D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 30 01 00 00 F4 03 04 00 8F 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 20 01 00 35 04 06 00 9B 74 6A 2A 1E 9B 4D 53 30 55 97 59 05 50 [19:18:37]CheckFolder [19:18:37]dirname=/storage/ofd_packets [19:18:37]CheckFolder done [19:18:37]ProducePacketName [19:18:37]name=ofd_packets/00073978 [19:18:37]NVStorageSaveData ofd_packets/00073978 [19:18:37]File name is /storage/ofd_packets/00073978 [19:18:37]Write 301 bytes [19:18:37]NVStorageSaveData done [19:18:37]OFDSenderStorePacket done [19:18:37]KKMCreateOFDPacket done [19:18:37]NVStorageSaveData kkm_last_timestamp [19:18:37]File name is /storage/kkm_last_timestamp [19:18:37]Write 4 bytes [19:18:37]NVStorageSaveData done [19:18:37]ExternCall_PrintAddStr [19:18:37]wPrintStart [19:18:37]Write to MH i2c: 01 00 00 B3 4F 02 [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: 01 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: 01 07 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: 01 07 00 B3 4F 00 00 00 00 00 FF 0F 17 [19:18:37]RasterBufferAndPrint [19:18:37]line Счет N : (1)1963262 [19:18:37]line ИНН: 02508201610067 [19:18:37]line Контрольно-Кассовый Чек [19:18:37]line ПРОДАЖА [19:18:37]line ТРК (МРК, ГНК) : 63 [19:18:37]line Товар: 2710124130 [19:18:37]line Аи-92-К-5 [19:18:37]line 4.490 * 66.90 [19:18:37]line = 300.38 [19:18:37]line НДС 12% НСП 1% [19:18:38]line > о реализуемом товаре [19:18:38]line ОКРУГЛЕНИЕ: -0.38 [19:18:38]line ИТОГО: 300.00 [19:18:38]line Внесено: 300.00 [19:18:38]line СДАЧА: 0.00 [19:18:38]line НСП 1% : 2.66 [19:18:38]line НДС 12% : 31.90 [19:18:38]line Наличными: 300.00 [19:18:38]line Безнал.: 0.00 [19:18:38]line Место: АЗС № 133 "Партнер Нефть" [19:18:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:18:38]line СНО: Общий режим [19:18:38]line Чек 304 20.10.2024 19:18 [19:18:38]line Смена: 170 ФФД: 1.0 [19:18:38]line ЗНМ: 0300000020 [19:18:38]line РНМ: 0000000000161154 [19:18:38]line Версия ККМ: v1.0 [19:18:38]line ФМ: 0000000000963323 [19:18:38]line ФД: 73978 [19:18:38]line ФПД: 170924299656859 [19:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191839&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73978&fm=170924299656859&tin=02508201610067®Number=0000000000161154&sum=30000 [19:18:38]OFD Sender: Processing packet 73978 [packets to send 15, broken 14] [19:18:38]ProducePacketName [19:18:38]name=ofd_packets/00073978 [19:18:38]OFD Sender: To server: pG, [19:18:38]CommunicateWithHost lk.salyk.kg:30040 [19:18:38]ConnectInit lk.salyk.kg [19:18:38]written 0, free lines is 4095 [19:18:38]Connected sock=10 [19:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0E 72 07 01 70 2D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 30 01 00 00 F4 03 04 00 8F 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 20 01 00 35 04 06 00 9B 74 6A 2A 1E 9B 4D 53 30 55 97 59 05 50 [19:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EA BD 47 00 68 EF 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 39 36 33 33 32 33 10 04 04 00 FA 20 01 00 F4 03 04 00 73 00 15 67 B6 04 01 00 00 11 F4 C5 3B DA 01 0B BC [19:18:38]CommunicateWithHost err = 0 [19:18:38]CheckOFDResponse [19:18:38]1017 (14) - 77093643461234 [19:18:38]1041 (16) - 0000000000963323 [19:18:38]1040 (4) - 73978 [19:18:38]1012 (4) - 20.10.2024 13:06 [19:18:38]1206 (1) - 0 [19:18:38]OFD Sender: Remove packet 73978 [19:18:38]ProducePacketName [19:18:38]name=ofd_packets/00073978 [19:18:38]NVStorageDeleteData [19:18:38]Write to MH i2c: 01 00 00 DD 4F 2C [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: 01 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: 01 07 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: 01 07 00 DD 4F 00 00 00 00 00 B2 0C F1 [19:18:38]RasterBufferAndPrint [19:18:38]line [19:18:38]line [19:18:38]line [19:18:38]line [19:18:38]line [19:18:38]written 0, free lines is 3256 [19:18:38]MH_Cut [19:18:38]Write to MH i2c: D1 01 00 E4 4F 01 05 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: D1 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: D1 01 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: D1 01 00 E4 4F 00 04 [19:18:38]Write to MH i2c: 01 00 00 E5 4F 34 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:39]OFD Sender: No OFD packet to send [19:18:39]*** Cut start [19:18:39]*** Partial cut [19:18:39]*** CUTSNS_PIN = 1 [19:18:39]*** CUTSNS_PIN = 0 [19:18:39]*** Brake cut motor [19:18:40]Read from MH i2c: 01 [19:18:40]MH_I2C_Read... [19:18:40]*** Stop cut motor [19:18:40]*** Cut end [19:18:40]Read from MH i2c: 01 07 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 E5 4F 00 00 00 00 00 FF 0F 49 [19:18:40]process_action close_receipt done [19:18:40]requested_data is exist [19:18:40]produce_requested_data [19:18:40]requested_item fm.sn is exist - process it [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 11 00 00 [19:18:40]Write to MH i2c: E2 08 00 E6 4F 80 11 00 00 00 00 00 00 AF [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 17 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 17 00 E6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FC [19:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:18:40]wFMCommunicate OK [19:18:40]requested_item fd.num is exist - process it [19:18:40]SAM_PROTO_GetFieldsCounters [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 13 00 00 [19:18:40]Write to MH i2c: E2 08 00 E7 4F 80 13 00 00 00 00 00 00 B2 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 62 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 62 00 E7 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [19:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FA 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:40]wFMCommunicate OK [19:18:40]SAM_PROTO_GetFieldsCounters done [19:18:40]requested_item shift.num is exist - process it [19:18:40]requested_item shift.opened is exist - process it [19:18:40]req_shift_opened [19:18:40]FM_GetShiftState [19:18:40]SAM_PROTO_GetShiftState [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 13 01 00 [19:18:40]Write to MH i2c: E2 08 00 E8 4F 80 13 01 00 00 00 00 00 B4 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 0E 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 0E 00 E8 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 F9 [19:18:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:18:40]wFMCommunicate OK [19:18:40]SAM_PROTO_GetShiftState done [19:18:40]FM_GetShiftState done [19:18:40]req_shift_opened done [19:18:40]requested_item shift.open_date is exist - process it [19:18:40]req_shift_open_date [19:18:40]req_shift_open_date done [19:18:40]produce_requested_data done [19:18:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73978,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:18:40]process_action_free close_receipt [19:18:40]json_value_free [19:18:40]json_value_free done [19:18:40]process_json_proto returns [19:18:40]Send response to host [19:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73978,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:18:40]free response buf [19:18:40]execute_script done [19:18:40]execute_script returns [19:18:40]free content buf [19:18:40]Sock 8.Close socket [19:18:40]Sock 8.Thread stoped [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:58]accept exits with 9 [19:19:58]New connection [19:19:58]New thread 3067432292 created [19:19:58]Thread 3067575652 joined [19:19:58]Waiting for new connection... [19:19:58] Sock 9.Parse request [19:19:58]Sock 9.Check first char [19:19:58]Sock 9.First char is OK [19:19:58]request: POST /json_proto HTTP/1.0 [19:19:58]Method: POST [19:19:58]URL: /json_proto [19:19:58]Method is POST - this is cgi request [19:19:58]url: /json_proto [19:19:58]query_string will be loaded in cgi processing [19:19:58]execute_cgi json_proto POST (null) [19:19:58]execute_cgi path=json_proto method=POST [19:19:58]POST find Content-Length [19:19:58]Host: 172.17.44.196:8080 [19:19:58]Content-Length: 678 [19:19:58]Content-Type: application/json [19:19:58] [19:19:58]POST finish read [19:19:58]Found Content-Length = 678 [19:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963263", "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" : 7.480, "sum" : 500.41, "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" ] } } [19:19:58]execute_script... [19:19: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)1963263", "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" : 7.480, "sum" : 500.41, "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" ] } } [19:19:58]POST & json_proto [19:19:58]process_json_proto [19:19:58]json parsed OK: [19:19:58]protocol is kg_v1.0 [19:19:58]action value=close_receipt [19:19:58]process_action close_receipt [19:19:58]cmd_close_receipt [19:19:58]MH_GetDate [19:19:58]Write to MH i2c: F0 00 00 E9 4F 27 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: F0 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: F0 09 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: F0 09 00 E9 4F 00 E1 57 15 67 E7 19 F8 65 41 [19:19:58]GetLastDocTimeStamp 1729451919 [19:19:58]current date 1729452001 [19:19:58]FM_GetShiftState [19:19:58]SAM_PROTO_GetShiftState [19:19:58]wFMCommunicate request_size=4 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 13 01 00 [19:19:58]Write to MH i2c: E2 08 00 EA 4F 80 13 01 00 00 00 00 00 B6 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 0E 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 0E 00 EA 4F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FB [19:19:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:19:58]wFMCommunicate OK [19:19:58]SAM_PROTO_GetShiftState done [19:19:58]FM_GetShiftState done [19:19:58]opened in 1729384303 [19:19:58]opened+sec_in_day 1729470703 [19:19:58]quantity*price = 50041 [19:19:58]sum+1 = 50042 [19:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 305 20.10.2024 19:20 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73979 ФПД: 117447858505989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192001&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73979&fm=117447858505989&tin=02508201610067®Number=0000000000161154&sum=50000 [19:19:59]StoreToDocumentArchive [19:19:59]shift 170 fd 73979 [19:19:59]save to /storage/0170/doc_00073979 [19:19:59]save last doc name /storage/0170/doc_00073979 to /storage/kkm_last_doc_name [19:19:59]save OK [19:19:59]Clear old archive folders... [19:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:59]tlvbuf is 0033C5A0 [19:19:59]SAM_PROTO_ClearQueue [19:19:59]wFMCommunicate request_size=4 [19:19:59]MH_SAM_APDU [19:19:59]CAPDU: 80 09 00 00 [19:19:59]Write to MH i2c: E2 08 00 F7 4F 80 09 00 00 00 00 00 00 B8 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:59]Read from MH i2c: E2 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 F7 4F 00 90 00 BA [19:19:59]RAPDU: 90 00 [19:19:59]wFMCommunicate OK [19:19:59]SAM_PROTO_ClearQueue done [19:19:59]KKMCreateOFDPacket [19:19:59]OFDProtocolAddRootSTLVToBuf [19:19:59]FM_MakeSignedData [19:19:59]FM_MakeSignedData [19:19:59]SAM_PROTO_SignData [19:19:59]wFMCommunicate request_size=4 [19:19:59]MH_SAM_APDU [19:19:59]CAPDU: 80 0D 01 02 [19:19:59]Write to MH i2c: E2 08 00 F8 4F 80 0D 01 02 00 00 00 00 C0 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:59]Read from MH i2c: E2 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 F8 4F 00 90 00 BB [19:19:59]RAPDU: 90 00 [19:19:59]wFMCommunicate OK [19:19:59]wFMCommunicate request_size=255 [19:19:59]MH_SAM_APDU [19:19: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 31 01 00 00 F4 03 04 00 E1 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 20 01 00 35 04 06 00 6A [19:19:59]Write to MH i2c: E2 02 01 F9 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 31 01 00 00 F4 03 04 00 E1 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 20 01 00 35 04 06 00 6A 00 00 58 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:59]Read from MH i2c: E2 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 F9 4F 00 90 00 BC [19:19:59]RAPDU: 90 00 [19:19:59]wFMCommunicate OK [19:19:59]wFMCommunicate request_size=10 [19:19:59]MH_SAM_APDU [19:19:59]CAPDU: 80 0D 02 02 05 D1 75 E2 C9 05 [19:19:59]Write to MH i2c: E2 0D 00 FA 4F 80 0D 02 02 05 00 D1 75 E2 C9 05 00 00 C3 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:59]Read from MH i2c: E2 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 03 00 FA 4F 00 90 00 BD [19:19:59]RAPDU: 90 00 [19:19:59]wFMCommunicate OK [19:19:59]wFMCommunicate request_size=4 [19:19:59]MH_SAM_APDU [19:19:59]CAPDU: 80 0D 03 02 [19:19:59]Write to MH i2c: E2 08 00 FB 4F 80 0D 03 02 00 00 00 00 C5 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0B 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0B 00 FB 4F 00 E0 B9 31 73 08 8D FA D5 90 00 67 [19:20:00]RAPDU: E0 B9 31 73 08 8D FA D5 90 00 [19:20:00]wFMCommunicate OK [19:20:00]SAM_PROTO_SignData done [19:20:00]FM_MakeSignedData done [19:20:00]CreateOFDProtocolMessage [19:20:00]wFMCommunicate request_size=4 [19:20:00]MH_SAM_APDU [19:20:00]CAPDU: 80 11 00 00 [19:20:00]Write to MH i2c: E2 08 00 FC 4F 80 11 00 00 00 00 00 00 C5 [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 17 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 17 00 FC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 12 [19:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:20:00]wFMCommunicate OK [19:20:00]CreateOFDProtocolMessage done [19:20:00]OFDSenderStorePacket 73979 [19:20:00]StoreOFDPacket docnum=73979 [19:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A0 5B 07 01 69 68 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 31 01 00 00 F4 03 04 00 E1 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 20 01 00 35 04 06 00 6A D1 75 E2 C9 05 E0 B9 31 73 08 8D FA D5 [19:20:00]CheckFolder [19:20:00]dirname=/storage/ofd_packets [19:20:00]CheckFolder done [19:20:00]ProducePacketName [19:20:00]name=ofd_packets/00073979 [19:20:00]NVStorageSaveData ofd_packets/00073979 [19:20:00]File name is /storage/ofd_packets/00073979 [19:20:00]Write 301 bytes [19:20:00]NVStorageSaveData done [19:20:00]OFDSenderStorePacket done [19:20:00]KKMCreateOFDPacket done [19:20:00]NVStorageSaveData kkm_last_timestamp [19:20:00]File name is /storage/kkm_last_timestamp [19:20:00]Write 4 bytes [19:20:00]NVStorageSaveData done [19:20:00]ExternCall_PrintAddStr [19:20:00]wPrintStart [19:20:00]Write to MH i2c: 01 00 00 FD 4F 4C [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 07 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 07 00 FD 4F 00 00 00 00 00 FF 0F 61 [19:20:00]RasterBufferAndPrint [19:20:00]line Счет N : (1)1963263 [19:20:00]line ИНН: 02508201610067 [19:20:00]line Контрольно-Кассовый Чек [19:20:00]line ПРОДАЖА [19:20:00]line ТРК (МРК, ГНК) : 53 [19:20:00]line Товар: 2710124130 [19:20:00]line Аи-92-К-5 [19:20:00]line 7.480 * 66.90 [19:20:00]line = 500.41 [19:20:00]line НДС 12% НСП 1% [19:20:00]line > о реализуемом товаре [19:20:00]line ОКРУГЛЕНИЕ: -0.41 [19:20:00]line ИТОГО: 500.00 [19:20:00]line Внесено: 500.00 [19:20:00]line СДАЧА: 0.00 [19:20:00]line НСП 1% : 4.43 [19:20:00]line НДС 12% : 53.14 [19:20:00]line Наличными: 500.00 [19:20:00]line Безнал.: 0.00 [19:20:00]line Место: АЗС № 133 "Партнер Нефть" [19:20:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:20:00]line СНО: Общий режим [19:20:00]line Чек 305 20.10.2024 19:20 [19:20:00]line Смена: 170 ФФД: 1.0 [19:20:00]line ЗНМ: 0300000020 [19:20:00]line РНМ: 0000000000161154 [19:20:00]line Версия ККМ: v1.0 [19:20:00]line ФМ: 0000000000963323 [19:20:00]line ФД: 73979 [19:20:00]line ФПД: 117447858505989 [19:20:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192001&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73979&fm=117447858505989&tin=02508201610067®Number=0000000000161154&sum=50000 [19:20:00]written 0, free lines is 4095 [19:20:00]OFD Sender: Processing packet 73979 [packets to send 15, broken 14] [19:20:00]ProducePacketName [19:20:00]name=ofd_packets/00073979 [19:20:00]OFD Sender: To server: pG, [19:20:00]CommunicateWithHost lk.salyk.kg:30040 [19:20:00]ConnectInit lk.salyk.kg [19:20:00]Connected sock=10 [19:20:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A0 5B 07 01 69 68 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 31 01 00 00 F4 03 04 00 E1 57 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 20 01 00 35 04 06 00 6A D1 75 E2 C9 05 E0 B9 31 73 08 8D FA D5 [19:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 76 0A 47 00 D0 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 39 36 33 33 32 33 10 04 04 00 FB 20 01 00 F4 03 04 00 C5 00 15 67 B6 04 01 00 00 EC A6 CC 1D 2C E3 2C 60 [19:20:00]CommunicateWithHost err = 0 [19:20:00]CheckOFDResponse [19:20:00]1017 (14) - 77093643461234 [19:20:00]1041 (16) - 0000000000963323 [19:20:00]1040 (4) - 73979 [19:20:00]1012 (4) - 20.10.2024 13:08 [19:20:00]1206 (1) - 0 [19:20:00]OFD Sender: Remove packet 73979 [19:20:00]ProducePacketName [19:20:00]name=ofd_packets/00073979 [19:20:00]NVStorageDeleteData [19:20:00]Write to MH i2c: 01 00 00 27 50 77 [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 07 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 07 00 27 50 00 00 00 00 00 B1 0C 3B [19:20:00]RasterBufferAndPrint [19:20:00]line [19:20:00]line [19:20:00]line [19:20:00]line [19:20:00]line [19:20:00]written 0, free lines is 3254 [19:20:00]MH_Cut [19:20:00]Write to MH i2c: D1 01 00 2E 50 01 50 [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: D1 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: D1 01 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: D1 01 00 2E 50 00 4F [19:20:00]Write to MH i2c: 01 00 00 2F 50 7F [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:01]OFD Sender: No OFD packet to send [19:20:01]*** Cut start [19:20:01]*** Partial cut [19:20:01]*** CUTSNS_PIN = 1 [19:20:01]*** CUTSNS_PIN = 0 [19:20:02]*** Brake cut motor [19:20:02]Read from MH i2c: 01 [19:20:02]MH_I2C_Read... [19:20:02]*** Stop cut motor [19:20:02]*** Cut end [19:20:02]Read from MH i2c: 01 07 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: 01 07 00 2F 50 00 00 00 00 00 FF 0F 94 [19:20:02]process_action close_receipt done [19:20:02]requested_data is exist [19:20:02]produce_requested_data [19:20:02]requested_item fm.sn is exist - process it [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 11 00 00 [19:20:02]Write to MH i2c: E2 08 00 30 50 80 11 00 00 00 00 00 00 FA [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 17 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 17 00 30 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [19:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:20:02]wFMCommunicate OK [19:20:02]requested_item fd.num is exist - process it [19:20:02]SAM_PROTO_GetFieldsCounters [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 13 00 00 [19:20:02]Write to MH i2c: E2 08 00 31 50 80 13 00 00 00 00 00 00 FD [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 62 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 62 00 31 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [19:20:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FB 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:02]wFMCommunicate OK [19:20:02]SAM_PROTO_GetFieldsCounters done [19:20:02]requested_item shift.num is exist - process it [19:20:02]requested_item shift.opened is exist - process it [19:20:02]req_shift_opened [19:20:02]FM_GetShiftState [19:20:02]SAM_PROTO_GetShiftState [19:20:02]wFMCommunicate request_size=4 [19:20:02]MH_SAM_APDU [19:20:02]CAPDU: 80 13 01 00 [19:20:02]Write to MH i2c: E2 08 00 32 50 80 13 01 00 00 00 00 00 FF [19:20:02]Write i2c OK [19:20:02]MH_I2C_Read... [19:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:02]Read from MH i2c: E2 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 0E 00 [19:20:02]MH_I2C_Read... [19:20:02]Read from MH i2c: E2 0E 00 32 50 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 44 [19:20:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:20:02]wFMCommunicate OK [19:20:02]SAM_PROTO_GetShiftState done [19:20:02]FM_GetShiftState done [19:20:02]req_shift_opened done [19:20:02]requested_item shift.open_date is exist - process it [19:20:02]req_shift_open_date [19:20:02]req_shift_open_date done [19:20:02]produce_requested_data done [19:20:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73979,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:20:02]process_action_free close_receipt [19:20:02]json_value_free [19:20:02]json_value_free done [19:20:02]process_json_proto returns [19:20:02]Send response to host [19:20:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73979,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:20:02]free response buf [19:20:02]execute_script done [19:20:02]execute_script returns [19:20:02]free content buf [19:20:02]Sock 9.Close socket [19:20:02]Sock 9.Thread stoped [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:23:57]accept exits with 8 [19:23:57]New connection [19:23:57]New thread 3067575652 created [19:23:57]Thread 3067432292 joined [19:23:57]Waiting for new connection... [19:23:57] Sock 8.Parse request [19:23:57]Sock 8.Check first char [19:23:57]Sock 8.First char is OK [19:23:57]request: POST /json_proto HTTP/1.0 [19:23:57]Method: POST [19:23:57]URL: /json_proto [19:23:57]Method is POST - this is cgi request [19:23:57]url: /json_proto [19:23:57]query_string will be loaded in cgi processing [19:23:57]execute_cgi json_proto POST (null) [19:23:57]execute_cgi path=json_proto method=POST [19:23:57]POST find Content-Length [19:23:57]Host: 172.17.44.196:8080 [19:23:57]Content-Length: 678 [19:23:57]Content-Type: application/json [19:23:57] [19:23:57]POST finish read [19:23:57]Found Content-Length = 678 [19:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963265", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:57]execute_script... [19:23: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 : (1)1963265", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:57]POST & json_proto [19:23:57]process_json_proto [19:23:57]json parsed OK: [19:23:57]protocol is kg_v1.0 [19:23:57]action value=close_receipt [19:23:57]process_action close_receipt [19:23:57]cmd_close_receipt [19:23:57]MH_GetDate [19:23:57]Write to MH i2c: F0 00 00 33 50 72 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: F0 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: F0 09 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: F0 09 00 33 50 00 D1 58 15 67 E7 19 F8 65 7D [19:23:57]GetLastDocTimeStamp 1729452001 [19:23:57]current date 1729452241 [19:23:57]FM_GetShiftState [19:23:57]SAM_PROTO_GetShiftState [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 13 01 00 [19:23:57]Write to MH i2c: E2 08 00 34 50 80 13 01 00 00 00 00 00 01 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:58]Read from MH i2c: E2 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: E2 0E 00 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: E2 0E 00 34 50 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 46 [19:23:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:23:58]wFMCommunicate OK [19:23:58]SAM_PROTO_GetShiftState done [19:23:58]FM_GetShiftState done [19:23:58]opened in 1729384303 [19:23:58]opened+sec_in_day 1729470703 [19:23:58]quantity*price = 30038 [19:23:58]sum+1 = 30039 [19:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 306 20.10.2024 19:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73980 ФПД: 253858780357012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192401&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73980&fm=253858780357012&tin=02508201610067®Number=0000000000161154&sum=30000 [19:23:59]StoreToDocumentArchive [19:23:59]shift 170 fd 73980 [19:23:59]save to /storage/0170/doc_00073980 [19:23:59]save last doc name /storage/0170/doc_00073980 to /storage/kkm_last_doc_name [19:23:59]save OK [19:23:59]Clear old archive folders... [19:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:59]tlvbuf is 003BAFF0 [19:23:59]SAM_PROTO_ClearQueue [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 09 00 00 [19:23:59]Write to MH i2c: E2 08 00 41 50 80 09 00 00 00 00 00 00 03 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_ClearQueue done [19:23:59]KKMCreateOFDPacket [19:23:59]OFDProtocolAddRootSTLVToBuf [19:23:59]FM_MakeSignedData [19:23:59]FM_MakeSignedData [19:23:59]SAM_PROTO_SignData [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 0D 01 02 [19:23:59]Write to MH i2c: E2 08 00 42 50 80 0D 01 02 00 00 00 00 0B [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 42 50 00 90 00 06 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]wFMCommunicate request_size=255 [19:23:59]MH_SAM_APDU [19: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 32 01 00 00 F4 03 04 00 D1 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 20 01 00 35 04 06 00 E6 [19:23:59]Write to MH i2c: E2 02 01 43 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 32 01 00 00 F4 03 04 00 D1 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 20 01 00 35 04 06 00 E6 00 00 06 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 43 50 00 90 00 07 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]wFMCommunicate request_size=10 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 0D 02 02 05 E2 1A 6D 21 94 [19:23:59]Write to MH i2c: E2 0D 00 44 50 80 0D 02 02 05 00 E2 1A 6D 21 94 00 00 36 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 44 50 00 90 00 08 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 0D 03 02 [19:23:59]Write to MH i2c: E2 08 00 45 50 80 0D 03 02 00 00 00 00 10 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 0B 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 0B 00 45 50 00 8C CE 80 5A 27 0C 44 7F 90 00 3B [19:23:59]RAPDU: 8C CE 80 5A 27 0C 44 7F 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_SignData done [19:23:59]FM_MakeSignedData done [19:23:59]CreateOFDProtocolMessage [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 11 00 00 [19:23:59]Write to MH i2c: E2 08 00 46 50 80 11 00 00 00 00 00 00 10 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 17 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 17 00 46 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [19:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:23:59]wFMCommunicate OK [19:23:59]CreateOFDProtocolMessage done [19:23:59]OFDSenderStorePacket 73980 [19:23:59]StoreOFDPacket docnum=73980 [19:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D8 A7 07 01 A1 B8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 32 01 00 00 F4 03 04 00 D1 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 20 01 00 35 04 06 00 E6 E2 1A 6D 21 94 8C CE 80 5A 27 0C 44 7F [19:23:59]CheckFolder [19:23:59]dirname=/storage/ofd_packets [19:23:59]CheckFolder done [19:23:59]ProducePacketName [19:23:59]name=ofd_packets/00073980 [19:23:59]NVStorageSaveData ofd_packets/00073980 [19:23:59]File name is /storage/ofd_packets/00073980 [19:23:59]Write 301 bytes [19:23:59]NVStorageSaveData done [19:23:59]OFDSenderStorePacket done [19:23:59]KKMCreateOFDPacket done [19:23:59]NVStorageSaveData kkm_last_timestamp [19:23:59]File name is /storage/kkm_last_timestamp [19:23:59]Write 4 bytes [19:23:59]NVStorageSaveData done [19:23:59]ExternCall_PrintAddStr [19:23:59]wPrintStart [19:23:59]Write to MH i2c: 01 00 00 47 50 97 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: 01 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: 01 07 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: 01 07 00 47 50 00 00 00 00 00 FF 0F AC [19:23:59]RasterBufferAndPrint [19:23:59]line Счет N : (1)1963265 [19:23:59]line ИНН: 02508201610067 [19:23:59]line Контрольно-Кассовый Чек [19:23:59]line ПРОДАЖА [19:23:59]line ТРК (МРК, ГНК) : 53 [19:23:59]line Товар: 2710124130 [19:23:59]line Аи-92-К-5 [19:23:59]line 4.490 * 66.90 [19:23:59]line = 300.38 [19:23:59]line НДС 12% НСП 1% [19:23:59]line > о реализуемом товаре [19:23:59]line ОКРУГЛЕНИЕ: -0.38 [19:23:59]line ИТОГО: 300.00 [19:23:59]line Внесено: 300.00 [19:23:59]line СДАЧА: 0.00 [19:23:59]line НСП 1% : 2.66 [19:23:59]line НДС 12% : 31.90 [19:23:59]line Наличными: 300.00 [19:23:59]line Безнал.: 0.00 [19:23:59]line Место: АЗС № 133 "Партнер Нефть" [19:23:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:23:59]line СНО: Общий режим [19:23:59]line Чек 306 20.10.2024 19:24 [19:23:59]line Смена: 170 ФФД: 1.0 [19:23:59]line ЗНМ: 0300000020 [19:23:59]line РНМ: 0000000000161154 [19:23:59]line Версия ККМ: v1.0 [19:23:59]line ФМ: 0000000000963323 [19:23:59]line ФД: 73980 [19:23:59]line ФПД: 253858780357012 [19:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192401&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73980&fm=253858780357012&tin=02508201610067®Number=0000000000161154&sum=30000 [19:23:59]OFD Sender: Processing packet 73980 [packets to send 15, broken 14] [19:23:59]ProducePacketName [19:23:59]name=ofd_packets/00073980 [19:23:59]OFD Sender: To server: pG, [19:23:59]CommunicateWithHost lk.salyk.kg:30040 [19:23:59]ConnectInit lk.salyk.kg [19:23:59]written 0, free lines is 4095 [19:24:00]Connected sock=10 [19:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D8 A7 07 01 A1 B8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 32 01 00 00 F4 03 04 00 D1 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 20 01 00 35 04 06 00 E6 E2 1A 6D 21 94 8C CE 80 5A 27 0C 44 7F [19:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 17 3D 47 00 9F 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 39 36 33 33 32 33 10 04 04 00 FC 20 01 00 F4 03 04 00 B5 01 15 67 B6 04 01 00 00 23 DA EC 92 13 8B 0B 8B [19:24:00]CommunicateWithHost err = 0 [19:24:00]CheckOFDResponse [19:24:00]1017 (14) - 77093643461234 [19:24:00]1041 (16) - 0000000000963323 [19:24:00]1040 (4) - 73980 [19:24:00]1012 (4) - 20.10.2024 13:12 [19:24:00]1206 (1) - 0 [19:24:00]OFD Sender: Remove packet 73980 [19:24:00]ProducePacketName [19:24:00]name=ofd_packets/00073980 [19:24:00]NVStorageDeleteData [19:24:00]Write to MH i2c: 01 00 00 71 50 C1 [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 07 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 07 00 71 50 00 00 00 00 00 B9 0C 8D [19:24:00]RasterBufferAndPrint [19:24:00]line [19:24:00]line [19:24:00]line [19:24:00]line [19:24:00]line [19:24:00]written 0, free lines is 3261 [19:24:00]MH_Cut [19:24:00]Write to MH i2c: D1 01 00 78 50 01 9A [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: D1 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: D1 01 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: D1 01 00 78 50 00 99 [19:24:00]Write to MH i2c: 01 00 00 79 50 C9 [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]OFD Sender: No OFD packet to send [19:24:01]*** Cut start [19:24:01]*** Partial cut [19:24:01]*** CUTSNS_PIN = 1 [19:24:01]*** CUTSNS_PIN = 0 [19:24:01]*** Brake cut motor [19:24:01]Read from MH i2c: 01 [19:24:01]MH_I2C_Read... [19:24:01]*** Stop cut motor [19:24:01]*** Cut end [19:24:01]Read from MH i2c: 01 07 00 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: 01 07 00 79 50 00 00 00 00 00 FF 0F DE [19:24:01]process_action close_receipt done [19:24:01]requested_data is exist [19:24:01]produce_requested_data [19:24:01]requested_item fm.sn is exist - process it [19:24:01]wFMCommunicate request_size=4 [19:24:01]MH_SAM_APDU [19:24:01]CAPDU: 80 11 00 00 [19:24:01]Write to MH i2c: E2 08 00 7A 50 80 11 00 00 00 00 00 00 44 [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:01]Read from MH i2c: E2 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 17 00 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 17 00 7A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [19:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:24:01]wFMCommunicate OK [19:24:01]requested_item fd.num is exist - process it [19:24:01]SAM_PROTO_GetFieldsCounters [19:24:01]wFMCommunicate request_size=4 [19:24:01]MH_SAM_APDU [19:24:01]CAPDU: 80 13 00 00 [19:24:01]Write to MH i2c: E2 08 00 7B 50 80 13 00 00 00 00 00 00 47 [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 62 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 62 00 7B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [19:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FC 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:02]wFMCommunicate OK [19:24:02]SAM_PROTO_GetFieldsCounters done [19:24:02]requested_item shift.num is exist - process it [19:24:02]requested_item shift.opened is exist - process it [19:24:02]req_shift_opened [19:24:02]FM_GetShiftState [19:24:02]SAM_PROTO_GetShiftState [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 13 01 00 [19:24:02]Write to MH i2c: E2 08 00 7C 50 80 13 01 00 00 00 00 00 49 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 0E 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 0E 00 7C 50 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 8E [19:24:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:24:02]wFMCommunicate OK [19:24:02]SAM_PROTO_GetShiftState done [19:24:02]FM_GetShiftState done [19:24:02]req_shift_opened done [19:24:02]requested_item shift.open_date is exist - process it [19:24:02]req_shift_open_date [19:24:02]req_shift_open_date done [19:24:02]produce_requested_data done [19:24:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73980,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:24:02]process_action_free close_receipt [19:24:02]json_value_free [19:24:02]json_value_free done [19:24:02]process_json_proto returns [19:24:02]Send response to host [19:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73980,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:24:02]free response buf [19:24:02]execute_script done [19:24:02]execute_script returns [19:24:02]free content buf [19:24:02]Sock 8.Close socket [19:24:02]Sock 8.Thread stoped [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:14]accept exits with 9 [19:24:14]New connection [19:24:14]New thread 3067432292 created [19:24:14]Thread 3067575652 joined [19:24:14]Waiting for new connection... [19:24:14] Sock 9.Parse request [19:24:14]Sock 9.Check first char [19:24:14]Sock 9.First char is OK [19:24:14]request: POST /json_proto HTTP/1.0 [19:24:14]Method: POST [19:24:14]URL: /json_proto [19:24:14]Method is POST - this is cgi request [19:24:14]url: /json_proto [19:24:14]query_string will be loaded in cgi processing [19:24:14]execute_cgi json_proto POST (null) [19:24:14]execute_cgi path=json_proto method=POST [19:24:14]POST find Content-Length [19:24:14]Host: 172.17.44.196:8080 [19:24:14]Content-Length: 678 [19:24:14]Content-Type: application/json [19:24:14] [19:24:14]POST finish read [19:24:14]Found Content-Length = 678 [19:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963266", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [19:24:14]execute_script... [19:24: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 : (1)1963266", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [19:24:14]POST & json_proto [19:24:14]process_json_proto [19:24:14]json parsed OK: [19:24:14]protocol is kg_v1.0 [19:24:14]action value=close_receipt [19:24:14]process_action close_receipt [19:24:14]cmd_close_receipt [19:24:14]MH_GetDate [19:24:14]Write to MH i2c: F0 00 00 7D 50 BC [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: F0 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: F0 09 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: F0 09 00 7D 50 00 E2 58 15 67 E7 19 F8 65 D8 [19:24:14]GetLastDocTimeStamp 1729452241 [19:24:14]current date 1729452258 [19:24:14]FM_GetShiftState [19:24:14]SAM_PROTO_GetShiftState [19:24:14]wFMCommunicate request_size=4 [19:24:14]MH_SAM_APDU [19:24:14]CAPDU: 80 13 01 00 [19:24:14]Write to MH i2c: E2 08 00 7E 50 80 13 01 00 00 00 00 00 4B [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0E 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0E 00 7E 50 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 90 [19:24:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:24:15]wFMCommunicate OK [19:24:15]SAM_PROTO_GetShiftState done [19:24:15]FM_GetShiftState done [19:24:15]opened in 1729384303 [19:24:15]opened+sec_in_day 1729470703 [19:24:15]quantity*price = 50041 [19:24:15]sum+1 = 50042 [19:24:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 307 20.10.2024 19:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73981 ФПД: 197854173323110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192418&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73981&fm=197854173323110&tin=02508201610067®Number=0000000000161154&sum=50000 [19:24:16]StoreToDocumentArchive [19:24:16]shift 170 fd 73981 [19:24:16]save to /storage/0170/doc_00073981 [19:24:16]save last doc name /storage/0170/doc_00073981 to /storage/kkm_last_doc_name [19:24:16]save OK [19:24:16]Clear old archive folders... [19:24:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:16]tlvbuf is 00390CC0 [19:24:16]SAM_PROTO_ClearQueue [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 09 00 00 [19:24:16]Write to MH i2c: E2 08 00 8B 50 80 09 00 00 00 00 00 00 4D [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 8B 50 00 90 00 4F [19:24:16]RAPDU: 90 00 [19:24:16]wFMCommunicate OK [19:24:16]SAM_PROTO_ClearQueue done [19:24:16]KKMCreateOFDPacket [19:24:16]OFDProtocolAddRootSTLVToBuf [19:24:16]FM_MakeSignedData [19:24:16]FM_MakeSignedData [19:24:16]SAM_PROTO_SignData [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 0D 01 02 [19:24:16]Write to MH i2c: E2 08 00 8C 50 80 0D 01 02 00 00 00 00 55 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [19:24:16]RAPDU: 90 00 [19:24:16]wFMCommunicate OK [19:24:16]wFMCommunicate request_size=255 [19:24:16]MH_SAM_APDU [19:24:16]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 33 01 00 00 F4 03 04 00 E2 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 20 01 00 35 04 06 00 B3 [19:24:16]Write to MH i2c: E2 02 01 8D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 33 01 00 00 F4 03 04 00 E2 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 20 01 00 35 04 06 00 B3 00 00 3C [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 8D 50 00 90 00 51 [19:24:16]RAPDU: 90 00 [19:24:16]wFMCommunicate OK [19:24:16]wFMCommunicate request_size=10 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 0D 02 02 05 F2 83 B7 DF 66 [19:24:16]Write to MH i2c: E2 0D 00 8E 50 80 0D 02 02 05 00 F2 83 B7 DF 66 00 00 D3 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 03 00 8E 50 00 90 00 52 [19:24:16]RAPDU: 90 00 [19:24:16]wFMCommunicate OK [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 0D 03 02 [19:24:16]Write to MH i2c: E2 08 00 8F 50 80 0D 03 02 00 00 00 00 5A [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 0B 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 0B 00 8F 50 00 65 C8 A4 8D 30 D5 48 78 90 00 7E [19:24:16]RAPDU: 65 C8 A4 8D 30 D5 48 78 90 00 [19:24:16]wFMCommunicate OK [19:24:16]SAM_PROTO_SignData done [19:24:16]FM_MakeSignedData done [19:24:16]CreateOFDProtocolMessage [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 11 00 00 [19:24:16]Write to MH i2c: E2 08 00 90 50 80 11 00 00 00 00 00 00 5A [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 17 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 17 00 90 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [19:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:24:16]wFMCommunicate OK [19:24:16]CreateOFDProtocolMessage done [19:24:16]OFDSenderStorePacket 73981 [19:24:16]StoreOFDPacket docnum=73981 [19:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 94 AF 07 01 F3 E8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 33 01 00 00 F4 03 04 00 E2 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 20 01 00 35 04 06 00 B3 F2 83 B7 DF 66 65 C8 A4 8D 30 D5 48 78 [19:24:16]CheckFolder [19:24:16]dirname=/storage/ofd_packets [19:24:16]CheckFolder done [19:24:16]ProducePacketName [19:24:16]name=ofd_packets/00073981 [19:24:16]NVStorageSaveData ofd_packets/00073981 [19:24:16]File name is /storage/ofd_packets/00073981 [19:24:16]Write 301 bytes [19:24:16]NVStorageSaveData done [19:24:16]OFDSenderStorePacket done [19:24:16]KKMCreateOFDPacket done [19:24:16]NVStorageSaveData kkm_last_timestamp [19:24:16]File name is /storage/kkm_last_timestamp [19:24:16]Write 4 bytes [19:24:16]NVStorageSaveData done [19:24:16]ExternCall_PrintAddStr [19:24:16]wPrintStart [19:24:16]Write to MH i2c: 01 00 00 91 50 E1 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 91 50 00 00 00 00 00 FF 0F F6 [19:24:16]RasterBufferAndPrint [19:24:16]line Счет N : (1)1963266 [19:24:16]line ИНН: 02508201610067 [19:24:16]line Контрольно-Кассовый Чек [19:24:16]line ПРОДАЖА [19:24:16]line ТРК (МРК, ГНК) : 33 [19:24:16]line Товар: 2710124130 [19:24:16]line Аи-92-К-5 [19:24:16]line 7.480 * 66.90 [19:24:16]line = 500.41 [19:24:16]line НДС 12% НСП 1% [19:24:16]line > о реализуемом товаре [19:24:16]line ОКРУГЛЕНИЕ: -0.41 [19:24:16]line ИТОГО: 500.00 [19:24:16]line Внесено: 500.00 [19:24:16]line СДАЧА: 0.00 [19:24:16]line НСП 1% : 4.43 [19:24:16]line НДС 12% : 53.14 [19:24:16]line Наличными: 500.00 [19:24:16]line Безнал.: 0.00 [19:24:16]line Место: АЗС № 133 "Партнер Нефть" [19:24:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:24:16]line СНО: Общий режим [19:24:16]line Чек 307 20.10.2024 19:24 [19:24:16]line Смена: 170 ФФД: 1.0 [19:24:16]line ЗНМ: 0300000020 [19:24:16]line РНМ: 0000000000161154 [19:24:16]line Версия ККМ: v1.0 [19:24:16]line ФМ: 0000000000963323 [19:24:16]line ФД: 73981 [19:24:16]line ФПД: 197854173323110 [19:24:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192418&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73981&fm=197854173323110&tin=02508201610067®Number=0000000000161154&sum=50000 [19:24:17]OFD Sender: Processing packet 73981 [packets to send 15, broken 14] [19:24:17]ProducePacketName [19:24:17]name=ofd_packets/00073981 [19:24:17]OFD Sender: To server: pG, [19:24:17]CommunicateWithHost lk.salyk.kg:30040 [19:24:17]ConnectInit lk.salyk.kg [19:24:17]written 0, free lines is 4095 [19:24:17]Connected sock=8 [19:24:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 94 AF 07 01 F3 E8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 33 01 00 00 F4 03 04 00 E2 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 20 01 00 35 04 06 00 B3 F2 83 B7 DF 66 65 C8 A4 8D 30 D5 48 78 [19:24:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3B 7B 47 00 99 4C 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 39 36 33 33 32 33 10 04 04 00 FD 20 01 00 F4 03 04 00 C6 01 15 67 B6 04 01 00 00 72 6A 8E 09 AF 88 3C C3 [19:24:17]CommunicateWithHost err = 0 [19:24:17]CheckOFDResponse [19:24:17]1017 (14) - 77093643461234 [19:24:17]1041 (16) - 0000000000963323 [19:24:17]1040 (4) - 73981 [19:24:17]1012 (4) - 20.10.2024 13:12 [19:24:17]1206 (1) - 0 [19:24:17]OFD Sender: Remove packet 73981 [19:24:17]ProducePacketName [19:24:17]name=ofd_packets/00073981 [19:24:17]NVStorageDeleteData [19:24:17]Write to MH i2c: 01 00 00 BB 50 0B [19:24:17]Write i2c OK [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: 01 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: 01 07 00 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: 01 07 00 BB 50 00 00 00 00 00 AE 0C CC [19:24:17]RasterBufferAndPrint [19:24:17]line [19:24:17]line [19:24:17]line [19:24:17]line [19:24:17]line [19:24:17]written 0, free lines is 3250 [19:24:17]MH_Cut [19:24:17]Write to MH i2c: D1 01 00 C2 50 01 E4 [19:24:17]Write i2c OK [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: D1 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: D1 01 00 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: D1 01 00 C2 50 00 E3 [19:24:17]Write to MH i2c: 01 00 00 C3 50 13 [19:24:17]Write i2c OK [19:24:17]MH_I2C_Read... [19:24:17]OFD Sender: No OFD packet to send [19:24:18]*** Cut start [19:24:18]*** Partial cut [19:24:18]*** CUTSNS_PIN = 1 [19:24:18]*** CUTSNS_PIN = 0 [19:24:18]*** Brake cut motor [19:24:18]Read from MH i2c: 01 [19:24:18]MH_I2C_Read... [19:24:18]*** Stop cut motor [19:24:18]*** Cut end [19:24:18]Read from MH i2c: 01 07 00 [19:24:18]MH_I2C_Read... [19:24:18]Read from MH i2c: 01 07 00 C3 50 00 00 00 00 00 FF 0F 28 [19:24:18]process_action close_receipt done [19:24:18]requested_data is exist [19:24:18]produce_requested_data [19:24:18]requested_item fm.sn is exist - process it [19:24:18]wFMCommunicate request_size=4 [19:24:18]MH_SAM_APDU [19:24:18]CAPDU: 80 11 00 00 [19:24:18]Write to MH i2c: E2 08 00 C4 50 80 11 00 00 00 00 00 00 8E [19:24:18]Write i2c OK [19:24:18]MH_I2C_Read... [19:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:19]Read from MH i2c: E2 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 17 00 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 17 00 C4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [19:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:24:19]wFMCommunicate OK [19:24:19]requested_item fd.num is exist - process it [19:24:19]SAM_PROTO_GetFieldsCounters [19:24:19]wFMCommunicate request_size=4 [19:24:19]MH_SAM_APDU [19:24:19]CAPDU: 80 13 00 00 [19:24:19]Write to MH i2c: E2 08 00 C5 50 80 13 00 00 00 00 00 00 91 [19:24:19]Write i2c OK [19:24:19]MH_I2C_Read... [19:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:19]Read from MH i2c: E2 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 62 00 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 62 00 C5 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [19:24:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FD 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:19]wFMCommunicate OK [19:24:19]SAM_PROTO_GetFieldsCounters done [19:24:19]requested_item shift.num is exist - process it [19:24:19]requested_item shift.opened is exist - process it [19:24:19]req_shift_opened [19:24:19]FM_GetShiftState [19:24:19]SAM_PROTO_GetShiftState [19:24:19]wFMCommunicate request_size=4 [19:24:19]MH_SAM_APDU [19:24:19]CAPDU: 80 13 01 00 [19:24:19]Write to MH i2c: E2 08 00 C6 50 80 13 01 00 00 00 00 00 93 [19:24:19]Write i2c OK [19:24:19]MH_I2C_Read... [19:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:19]Read from MH i2c: E2 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 0E 00 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 0E 00 C6 50 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D8 [19:24:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:24:19]wFMCommunicate OK [19:24:19]SAM_PROTO_GetShiftState done [19:24:19]FM_GetShiftState done [19:24:19]req_shift_opened done [19:24:19]requested_item shift.open_date is exist - process it [19:24:19]req_shift_open_date [19:24:19]req_shift_open_date done [19:24:19]produce_requested_data done [19:24:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73981,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:24:19]process_action_free close_receipt [19:24:19]json_value_free [19:24:19]json_value_free done [19:24:19]process_json_proto returns [19:24:19]Send response to host [19:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73981,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:24:19]free response buf [19:24:19]execute_script done [19:24:19]execute_script returns [19:24:19]free content buf [19:24:19]Sock 9.Close socket [19:24:19]Sock 9.Thread stoped [19:24:19]accept exits with 10 [19:24:19]New connection [19:24:19]New thread 3067575652 created [19:24:19]Thread 3067432292 joined [19:24:19]Waiting for new connection... [19:24:19] Sock 10.Parse request [19:24:19]Sock 10.Check first char [19:24:19]Sock 10.First char is OK [19:24:19]request: POST /json_proto HTTP/1.0 [19:24:19]Method: POST [19:24:19]URL: /json_proto [19:24:19]Method is POST - this is cgi request [19:24:19]url: /json_proto [19:24:19]query_string will be loaded in cgi processing [19:24:19]execute_cgi json_proto POST (null) [19:24:19]execute_cgi path=json_proto method=POST [19:24:19]POST find Content-Length [19:24:19]Host: 172.17.44.196:8080 [19:24:19]Content-Length: 664 [19:24:19]Content-Type: application/json [19:24:19] [19:24:19]POST finish read [19:24:19]Found Content-Length = 664 [19:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [19:24:19]execute_script... [19:24: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)1963264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [19:24:19]POST & json_proto [19:24:19]process_json_proto [19:24:19]json parsed OK: [19:24:19]protocol is kg_v1.0 [19:24:19]action value=close_receipt [19:24:19]process_action close_receipt [19:24:19]cmd_close_receipt [19:24:19]MH_GetDate [19:24:19]Write to MH i2c: F0 00 00 C7 50 06 [19:24:19]Write i2c OK [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: F0 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: F0 09 00 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: F0 09 00 C7 50 00 E6 58 15 67 E7 19 F8 65 26 [19:24:19]GetLastDocTimeStamp 1729452258 [19:24:19]current date 1729452262 [19:24:19]FM_GetShiftState [19:24:19]SAM_PROTO_GetShiftState [19:24:19]wFMCommunicate request_size=4 [19:24:19]MH_SAM_APDU [19:24:19]CAPDU: 80 13 01 00 [19:24:19]Write to MH i2c: E2 08 00 C8 50 80 13 01 00 00 00 00 00 95 [19:24:19]Write i2c OK [19:24:19]MH_I2C_Read... [19:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:19]Read from MH i2c: E2 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 0E 00 [19:24:19]MH_I2C_Read... [19:24:19]Read from MH i2c: E2 0E 00 C8 50 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DA [19:24:19]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:24:19]wFMCommunicate OK [19:24:19]SAM_PROTO_GetShiftState done [19:24:19]FM_GetShiftState done [19:24:19]opened in 1729384303 [19:24:19]opened+sec_in_day 1729470703 [19:24:19]quantity*price = 200001 [19:24:19]sum+1 = 200003 [19:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 308 20.10.2024 19:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73982 ФПД: 221803018214912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192422&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73982&fm=221803018214912&tin=02508201610067®Number=0000000000161154&sum=200000 [19:24:20]StoreToDocumentArchive [19:24:20]shift 170 fd 73982 [19:24:20]save to /storage/0170/doc_00073982 [19:24:20]save last doc name /storage/0170/doc_00073982 to /storage/kkm_last_doc_name [19:24:20]save OK [19:24:20]Clear old archive folders... [19:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:24:20]tlvbuf is 0031E960 [19:24:20]SAM_PROTO_ClearQueue [19:24:20]wFMCommunicate request_size=4 [19:24:20]MH_SAM_APDU [19:24:20]CAPDU: 80 09 00 00 [19:24:20]Write to MH i2c: E2 08 00 D5 50 80 09 00 00 00 00 00 00 97 [19:24:20]Write i2c OK [19:24:20]MH_I2C_Read... [19:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:20]Read from MH i2c: E2 [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: E2 03 00 [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [19:24:20]RAPDU: 90 00 [19:24:20]wFMCommunicate OK [19:24:20]SAM_PROTO_ClearQueue done [19:24:20]KKMCreateOFDPacket [19:24:20]OFDProtocolAddRootSTLVToBuf [19:24:20]FM_MakeSignedData [19:24:20]FM_MakeSignedData [19:24:20]SAM_PROTO_SignData [19:24:20]wFMCommunicate request_size=4 [19:24:20]MH_SAM_APDU [19:24:20]CAPDU: 80 0D 01 02 [19:24:20]Write to MH i2c: E2 08 00 D6 50 80 0D 01 02 00 00 00 00 9F [19:24:20]Write i2c OK [19:24:20]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]wFMCommunicate request_size=253 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 34 01 00 00 F4 03 04 00 E6 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 20 01 00 35 04 06 00 C9 BA 8A 1C 5E 00 [19:24:21]Write to MH i2c: E2 00 01 D7 50 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 34 01 00 00 F4 03 04 00 E6 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 20 01 00 35 04 06 00 C9 BA 8A 1C 5E 00 00 00 30 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 D7 50 00 90 00 9B [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 0D 03 02 [19:24:21]Write to MH i2c: E2 08 00 D8 50 80 0D 03 02 00 00 00 00 A3 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 0B 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 0B 00 D8 50 00 C9 03 F8 B0 1C B2 4C E4 90 00 16 [19:24:21]RAPDU: C9 03 F8 B0 1C B2 4C E4 90 00 [19:24:21]wFMCommunicate OK [19:24:21]SAM_PROTO_SignData done [19:24:21]FM_MakeSignedData done [19:24:21]CreateOFDProtocolMessage [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 11 00 00 [19:24:21]Write to MH i2c: E2 08 00 D9 50 80 11 00 00 00 00 00 00 A3 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 17 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 17 00 D9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [19:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:24:21]wFMCommunicate OK [19:24:21]CreateOFDProtocolMessage done [19:24:21]OFDSenderStorePacket 73982 [19:24:21]StoreOFDPacket docnum=73982 [19:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 68 D0 00 01 3F B6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 34 01 00 00 F4 03 04 00 E6 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 20 01 00 35 04 06 00 C9 BA 8A 1C 5E 00 C9 03 F8 B0 1C B2 4C E4 [19:24:21]CheckFolder [19:24:21]dirname=/storage/ofd_packets [19:24:21]CheckFolder done [19:24:21]ProducePacketName [19:24:21]name=ofd_packets/00073982 [19:24:21]NVStorageSaveData ofd_packets/00073982 [19:24:21]File name is /storage/ofd_packets/00073982 [19:24:21]Write 294 bytes [19:24:21]NVStorageSaveData done [19:24:21]OFDSenderStorePacket done [19:24:21]KKMCreateOFDPacket done [19:24:21]NVStorageSaveData kkm_last_timestamp [19:24:21]File name is /storage/kkm_last_timestamp [19:24:21]Write 4 bytes [19:24:21]NVStorageSaveData done [19:24:21]ExternCall_PrintAddStr [19:24:21]wPrintStart [19:24:21]Write to MH i2c: 01 00 00 DA 50 2A [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: 01 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: 01 07 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: 01 07 00 DA 50 00 00 00 00 00 FF 0F 3F [19:24:21]RasterBufferAndPrint [19:24:21]line Счет N : (1)1963264 [19:24:21]line ИНН: 02508201610067 [19:24:21]line Контрольно-Кассовый Чек [19:24:21]line ПРОДАЖА [19:24:21]line ТРК (МРК, ГНК) : 42 [19:24:21]line Товар: 2710124130 [19:24:21]line SU-92 [19:24:21]line 29.240 * 68.40 [19:24:21]line = 2000.02 [19:24:21]line НДС 12% НСП 1% [19:24:21]line > о реализуемом товаре [19:24:21]line ОКРУГЛЕНИЕ: -0.02 [19:24:21]line ИТОГО: 2000.00 [19:24:21]line Внесено: 2000.00 [19:24:21]line СДАЧА: 0.00 [19:24:21]line НСП 1% : 17.70 [19:24:21]line НДС 12% : 212.39 [19:24:21]line Наличными: 2000.00 [19:24:21]line Безнал.: 0.00 [19:24:21]line Место: АЗС № 133 "Партнер Нефть" [19:24:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:24:21]line СНО: Общий режим [19:24:21]line Чек 308 20.10.2024 19:24 [19:24:21]line Смена: 170 ФФД: 1.0 [19:24:21]line ЗНМ: 0300000020 [19:24:21]line РНМ: 0000000000161154 [19:24:21]line Версия ККМ: v1.0 [19:24:21]line ФМ: 0000000000963323 [19:24:21]line ФД: 73982 [19:24:21]line ФПД: 221803018214912 [19:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192422&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73982&fm=221803018214912&tin=02508201610067®Number=0000000000161154&sum=200000 [19:24:21]written 0, free lines is 4095 [19:24:21]OFD Sender: Processing packet 73982 [packets to send 15, broken 14] [19:24:21]ProducePacketName [19:24:21]name=ofd_packets/00073982 [19:24:21]OFD Sender: To server: pG, [19:24:21]CommunicateWithHost lk.salyk.kg:30040 [19:24:21]ConnectInit lk.salyk.kg [19:24:21]Connected sock=9 [19:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 68 D0 00 01 3F B6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 34 01 00 00 F4 03 04 00 E6 58 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 20 01 00 35 04 06 00 C9 BA 8A 1C 5E 00 C9 03 F8 B0 1C B2 4C E4 [19:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 33 C4 47 00 07 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 39 36 33 33 32 33 10 04 04 00 FE 20 01 00 F4 03 04 00 CA 01 15 67 B6 04 01 00 00 CD DB F0 06 3E 3E C8 C4 [19:24:22]CommunicateWithHost err = 0 [19:24:22]CheckOFDResponse [19:24:22]1017 (14) - 77093643461234 [19:24:22]1041 (16) - 0000000000963323 [19:24:22]1040 (4) - 73982 [19:24:22]1012 (4) - 20.10.2024 13:12 [19:24:22]1206 (1) - 0 [19:24:22]OFD Sender: Remove packet 73982 [19:24:22]ProducePacketName [19:24:22]name=ofd_packets/00073982 [19:24:22]NVStorageDeleteData [19:24:22]Write to MH i2c: 01 00 00 04 51 55 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: 01 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: 01 07 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: 01 07 00 04 51 00 00 00 00 00 D9 0C 41 [19:24:22]RasterBufferAndPrint [19:24:22]line [19:24:22]line [19:24:22]line [19:24:22]line [19:24:22]line [19:24:22]written 0, free lines is 3302 [19:24:22]MH_Cut [19:24:22]Write to MH i2c: D1 01 00 0B 51 01 2E [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: D1 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: D1 01 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: D1 01 00 0B 51 00 2D [19:24:22]Write to MH i2c: 01 00 00 0C 51 5D [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]OFD Sender: No OFD packet to send [19:24:23]*** Cut start [19:24:23]*** Partial cut [19:24:23]*** CUTSNS_PIN = 1 [19:24:23]*** CUTSNS_PIN = 0 [19:24:23]*** Brake cut motor [19:24:23]Read from MH i2c: 01 [19:24:23]MH_I2C_Read... [19:24:23]*** Stop cut motor [19:24:23]*** Cut end [19:24:23]Read from MH i2c: 01 07 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 0C 51 00 00 00 00 00 FF 0F 72 [19:24:23]process_action close_receipt done [19:24:23]requested_data is exist [19:24:23]produce_requested_data [19:24:23]requested_item fm.sn is exist - process it [19:24:23]wFMCommunicate request_size=4 [19:24:23]MH_SAM_APDU [19:24:23]CAPDU: 80 11 00 00 [19:24:23]Write to MH i2c: E2 08 00 0D 51 80 11 00 00 00 00 00 00 D8 [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:23]Read from MH i2c: E2 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 17 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 17 00 0D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [19:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:24:23]wFMCommunicate OK [19:24:23]requested_item fd.num is exist - process it [19:24:23]SAM_PROTO_GetFieldsCounters [19:24:23]wFMCommunicate request_size=4 [19:24:23]MH_SAM_APDU [19:24:23]CAPDU: 80 13 00 00 [19:24:23]Write to MH i2c: E2 08 00 0E 51 80 13 00 00 00 00 00 00 DB [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:23]Read from MH i2c: E2 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 62 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 62 00 0E 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FE 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:23]wFMCommunicate OK [19:24:23]SAM_PROTO_GetFieldsCounters done [19:24:23]requested_item shift.num is exist - process it [19:24:23]requested_item shift.opened is exist - process it [19:24:23]req_shift_opened [19:24:23]FM_GetShiftState [19:24:23]SAM_PROTO_GetShiftState [19:24:23]wFMCommunicate request_size=4 [19:24:23]MH_SAM_APDU [19:24:23]CAPDU: 80 13 01 00 [19:24:23]Write to MH i2c: E2 08 00 0F 51 80 13 01 00 00 00 00 00 DD [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:23]Read from MH i2c: E2 [19:24:23]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0E 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0E 00 0F 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 22 [19:24:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:24:24]wFMCommunicate OK [19:24:24]SAM_PROTO_GetShiftState done [19:24:24]FM_GetShiftState done [19:24:24]req_shift_opened done [19:24:24]requested_item shift.open_date is exist - process it [19:24:24]req_shift_open_date [19:24:24]req_shift_open_date done [19:24:24]produce_requested_data done [19:24:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73982,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:24:24]process_action_free close_receipt [19:24:24]json_value_free [19:24:24]json_value_free done [19:24:24]process_json_proto returns [19:24:24]Send response to host [19:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73982,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:24:24]free response buf [19:24:24]execute_script done [19:24:24]execute_script returns [19:24:24]free content buf [19:24:24]Sock 10.Close socket [19:24:24]Sock 10.Thread stoped [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:32]accept exits with 8 [19:25:32]New connection [19:25:32]New thread 3067432292 created [19:25:32]Thread 3067575652 joined [19:25:32]Waiting for new connection... [19:25:32] Sock 8.Parse request [19:25:32]Sock 8.Check first char [19:25:32]Sock 8.First char is OK [19:25:32]request: POST /json_proto HTTP/1.0 [19:25:32]Method: POST [19:25:32]URL: /json_proto [19:25:32]Method is POST - this is cgi request [19:25:32]url: /json_proto [19:25:32]query_string will be loaded in cgi processing [19:25:32]execute_cgi json_proto POST (null) [19:25:32]execute_cgi path=json_proto method=POST [19:25:32]POST find Content-Length [19:25:32]Host: 172.17.44.196:8080 [19:25:32]Content-Length: 621 [19:25:32]Content-Type: application/json [19:25:32] [19:25:32]POST finish read [19:25:32]Found Content-Length = 621 [19:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272837", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" ] } } [19:25:32]execute_script... [19:25: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)272837", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" ] } } [19:25:32]POST & json_proto [19:25:32]process_json_proto [19:25:32]json parsed OK: [19:25:32]protocol is kg_v1.0 [19:25:32]action value=close_receipt [19:25:32]process_action close_receipt [19:25:32]cmd_close_receipt [19:25:32]MH_GetDate [19:25:32]Write to MH i2c: F0 00 00 10 51 50 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: F0 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: F0 09 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: F0 09 00 10 51 00 30 59 15 67 E7 19 F8 65 BB [19:25:32]GetLastDocTimeStamp 1729452262 [19:25:32]current date 1729452336 [19:25:32]FM_GetShiftState [19:25:32]SAM_PROTO_GetShiftState [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 13 01 00 [19:25:32]Write to MH i2c: E2 08 00 11 51 80 13 01 00 00 00 00 00 DF [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 0E 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 0E 00 11 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 24 [19:25:32]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:25:32]wFMCommunicate OK [19:25:32]SAM_PROTO_GetShiftState done [19:25:32]FM_GetShiftState done [19:25:32]opened in 1729384303 [19:25:32]opened+sec_in_day 1729470703 [19:25:32]quantity*price = 14500 [19:25:32]sum+1 = 14501 [19:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 309 20.10.2024 19:25 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73983 ФПД: 189559365809765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192536&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73983&fm=189559365809765&tin=02508201610067®Number=0000000000161154&sum=14500 0 [19:25:34]StoreToDocumentArchive [19:25:34]shift 170 fd 73983 [19:25:34]save to /storage/0170/doc_00073983 [19:25:34]save last doc name /storage/0170/doc_00073983 to /storage/kkm_last_doc_name [19:25:34]save OK [19:25:34]Clear old archive folders... [19:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:25:34]tlvbuf is 003CBAB0 [19:25:34]SAM_PROTO_ClearQueue [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 09 00 00 [19:25:34]Write to MH i2c: E2 08 00 1E 51 80 09 00 00 00 00 00 00 E1 [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 1E 51 00 90 00 E3 [19:25:34]RAPDU: 90 00 [19:25:34]wFMCommunicate OK [19:25:34]SAM_PROTO_ClearQueue done [19:25:34]KKMCreateOFDPacket [19:25:34]OFDProtocolAddRootSTLVToBuf [19:25:34]FM_MakeSignedData [19:25:34]FM_MakeSignedData [19:25:34]SAM_PROTO_SignData [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 0D 01 02 [19:25:34]Write to MH i2c: E2 08 00 1F 51 80 0D 01 02 00 00 00 00 E9 [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 1F 51 00 90 00 E4 [19:25:34]RAPDU: 90 00 [19:25:34]wFMCommunicate OK [19:25:34]wFMCommunicate request_size=255 [19:25:34]MH_SAM_APDU [19:25:34]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 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 04 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 35 01 00 00 F4 03 04 00 30 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [19:25:34]Write to MH i2c: E2 02 01 20 51 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 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 04 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 35 01 00 00 F4 03 04 00 30 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 EC [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [19:25:34]RAPDU: 90 00 [19:25:34]wFMCommunicate OK [19:25:34]wFMCommunicate request_size=32 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 20 01 00 35 04 06 00 AC 67 3A A9 B6 65 [19:25:34]Write to MH i2c: E2 23 00 21 51 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 20 01 00 35 04 06 00 AC 67 3A A9 B6 65 00 00 74 [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 03 00 21 51 00 90 00 E6 [19:25:34]RAPDU: 90 00 [19:25:34]wFMCommunicate OK [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 0D 03 02 [19:25:34]Write to MH i2c: E2 08 00 22 51 80 0D 03 02 00 00 00 00 EE [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 0B 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 0B 00 22 51 00 4A DF A0 3C D5 CE D1 A2 90 00 0A [19:25:34]RAPDU: 4A DF A0 3C D5 CE D1 A2 90 00 [19:25:34]wFMCommunicate OK [19:25:34]SAM_PROTO_SignData done [19:25:34]FM_MakeSignedData done [19:25:34]CreateOFDProtocolMessage [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 11 00 00 [19:25:34]Write to MH i2c: E2 08 00 23 51 80 11 00 00 00 00 00 00 EE [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 17 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 17 00 23 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [19:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:25:34]wFMCommunicate OK [19:25:34]CreateOFDProtocolMessage done [19:25:34]OFDSenderStorePacket 73983 [19:25:34]StoreOFDPacket docnum=73983 [19:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 C9 00 1D 01 FD 9F 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 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 04 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 35 01 00 00 F4 03 04 00 30 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 20 01 00 35 04 06 00 AC 67 3A A9 B6 65 4A DF A0 3C D5 CE D1 A2 [19:25:34]CheckFolder [19:25:34]dirname=/storage/ofd_packets [19:25:34]CheckFolder done [19:25:34]ProducePacketName [19:25:34]name=ofd_packets/00073983 [19:25:34]NVStorageSaveData ofd_packets/00073983 [19:25:34]File name is /storage/ofd_packets/00073983 [19:25:34]Write 323 bytes [19:25:34]NVStorageSaveData done [19:25:34]OFDSenderStorePacket done [19:25:34]KKMCreateOFDPacket done [19:25:34]NVStorageSaveData kkm_last_timestamp [19:25:34]File name is /storage/kkm_last_timestamp [19:25:34]Write 4 bytes [19:25:34]NVStorageSaveData done [19:25:34]ExternCall_PrintAddStr [19:25:34]wPrintStart [19:25:34]Write to MH i2c: 01 00 00 24 51 75 [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: 01 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: 01 07 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: 01 07 00 24 51 00 00 00 00 00 FF 0F 8A [19:25:34]RasterBufferAndPrint [19:25:34]line Счет N : (3)272837 [19:25:34]line ИНН: 02508201610067 [19:25:34]line Контрольно-Кассовый Чек [19:25:34]line ПРОДАЖА [19:25:34]line Товар: 48744119 [19:25:34]line Сигареты Winston Xstyle Dual [19:25:34]line 1.000 * 145.00 [19:25:34]line = 145.00 [19:25:34]line НДС 12% НСП 1% [19:25:34]line > о реализуемом товаре [19:25:34]line ИТОГО: 145.00 [19:25:34]line НСП 1% : 1.28 [19:25:34]line НДС 12% : 15.40 [19:25:34]line Наличными: 145.00 [19:25:34]line Безнал.: 0.00 [19:25:34]line Место: АЗС № 133 "Партнер Нефть" [19:25:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:25:34]line СНО: Общий режим [19:25:34]line Чек 309 20.10.2024 19:25 [19:25:34]line Смена: 170 ФФД: 1.0 [19:25:34]line ЗНМ: 0300000020 [19:25:34]line РНМ: 0000000000161154 [19:25:34]line Версия ККМ: v1.0 [19:25:34]line ФМ: 0000000000963323 [19:25:34]line ФД: 73983 [19:25:34]line ФПД: 189559365809765 [19:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192536&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73983&fm=189559365809765&tin=02508201610067®Number=0000000000161154&sum=14500 [19:25:34]line 0 [19:25:34]OFD Sender: Processing packet 73983 [packets to send 15, broken 14] [19:25:34]ProducePacketName [19:25:34]name=ofd_packets/00073983 [19:25:34]OFD Sender: To server: pG, [19:25:34]CommunicateWithHost lk.salyk.kg:30040 [19:25:34]ConnectInit lk.salyk.kg [19:25:34]written 0, free lines is 4095 [19:25:35]Connected sock=10 [19:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 C9 00 1D 01 FD 9F 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 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 04 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 35 01 00 00 F4 03 04 00 30 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 20 01 00 35 04 06 00 AC 67 3A A9 B6 65 4A DF A0 3C D5 CE D1 A2 [19:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 66 47 00 C3 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 39 36 33 33 32 33 10 04 04 00 FF 20 01 00 F4 03 04 00 14 02 15 67 B6 04 01 00 00 72 A0 66 E9 1F 03 F7 66 [19:25:35]CommunicateWithHost err = 0 [19:25:35]CheckOFDResponse [19:25:35]1017 (14) - 77093643461234 [19:25:35]1041 (16) - 0000000000963323 [19:25:35]1040 (4) - 73983 [19:25:35]1012 (4) - 20.10.2024 13:13 [19:25:35]1206 (1) - 0 [19:25:35]OFD Sender: Remove packet 73983 [19:25:35]ProducePacketName [19:25:35]name=ofd_packets/00073983 [19:25:35]NVStorageDeleteData [19:25:35]Write to MH i2c: 01 00 00 4B 51 9C [19:25:35]Write i2c OK [19:25:35]MH_I2C_Read... [19:25:35]Read from MH i2c: 01 [19:25:35]MH_I2C_Read... [19:25:35]Read from MH i2c: 01 07 00 [19:25:35]MH_I2C_Read... [19:25:35]Read from MH i2c: 01 07 00 4B 51 00 00 00 00 00 EA 0C 99 [19:25:35]RasterBufferAndPrint [19:25:35]line [19:25:35]line [19:25:35]line [19:25:35]line [19:25:35]line [19:25:35]written 0, free lines is 3312 [19:25:35]MH_Cut [19:25:35]Write to MH i2c: D1 01 00 52 51 01 75 [19:25:35]Write i2c OK [19:25:35]MH_I2C_Read... [19:25:35]Read from MH i2c: D1 [19:25:35]MH_I2C_Read... [19:25:35]Read from MH i2c: D1 01 00 [19:25:35]MH_I2C_Read... [19:25:35]Read from MH i2c: D1 01 00 52 51 00 74 [19:25:35]Write to MH i2c: 01 00 00 53 51 A4 [19:25:35]Write i2c OK [19:25:35]MH_I2C_Read... [19:25:35]OFD Sender: No OFD packet to send [19:25:36]*** Cut start [19:25:36]*** Partial cut [19:25:36]*** CUTSNS_PIN = 1 [19:25:36]*** CUTSNS_PIN = 0 [19:25:36]*** Brake cut motor [19:25:36]Read from MH i2c: 01 [19:25:36]MH_I2C_Read... [19:25:36]*** Stop cut motor [19:25:36]Read from MH i2c: 01 *** Cut end [19:25:36]07 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: 01 07 00 53 51 00 00 00 00 00 FF 0F B9 [19:25:36]process_action close_receipt done [19:25:36]requested_data is exist [19:25:36]produce_requested_data [19:25:36]requested_item fm.sn is exist - process it [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 11 00 00 [19:25:36]Write to MH i2c: E2 08 00 54 51 80 11 00 00 00 00 00 00 1F [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:36]Read from MH i2c: E2 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 17 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 17 00 54 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6C [19:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:25:36]wFMCommunicate OK [19:25:36]requested_item fd.num is exist - process it [19:25:36]SAM_PROTO_GetFieldsCounters [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 13 00 00 [19:25:36]Write to MH i2c: E2 08 00 55 51 80 13 00 00 00 00 00 00 22 [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:36]Read from MH i2c: E2 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 62 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 62 00 55 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [19:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FF 20 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:36]wFMCommunicate OK [19:25:36]SAM_PROTO_GetFieldsCounters done [19:25:36]requested_item shift.num is exist - process it [19:25:36]requested_item shift.opened is exist - process it [19:25:36]req_shift_opened [19:25:36]FM_GetShiftState [19:25:36]SAM_PROTO_GetShiftState [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 13 01 00 [19:25:36]Write to MH i2c: E2 08 00 56 51 80 13 01 00 00 00 00 00 24 [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:37]Read from MH i2c: E2 [19:25:37]MH_I2C_Read... [19:25:37]Read from MH i2c: E2 0E 00 [19:25:37]MH_I2C_Read... [19:25:37]Read from MH i2c: E2 0E 00 56 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 69 [19:25:37]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:25:37]wFMCommunicate OK [19:25:37]SAM_PROTO_GetShiftState done [19:25:37]FM_GetShiftState done [19:25:37]req_shift_opened done [19:25:37]requested_item shift.open_date is exist - process it [19:25:37]req_shift_open_date [19:25:37]req_shift_open_date done [19:25:37]produce_requested_data done [19:25:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73983,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:25:37]process_action_free close_receipt [19:25:37]json_value_free [19:25:37]json_value_free done [19:25:37]process_json_proto returns [19:25:37]Send response to host [19:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73983,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:25:37]free response buf [19:25:37]execute_script done [19:25:37]execute_script returns [19:25:37]free content buf [19:25:37]Sock 8.Close socket [19:25:37]Sock 8.Thread stoped [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:25]accept exits with 9 [19:26:25]New connection [19:26:25]New thread 3067575652 created [19:26:25]Thread 3067432292 joined [19:26:25]Waiting for new connection... [19:26:25] Sock 9.Parse request [19:26:25]Sock 9.Check first char [19:26:25]Sock 9.First char is OK [19:26:25]request: POST /json_proto HTTP/1.0 [19:26:25]Method: POST [19:26:25]URL: /json_proto [19:26:25]Method is POST - this is cgi request [19:26:25]url: /json_proto [19:26:25]query_string will be loaded in cgi processing [19:26:25]execute_cgi json_proto POST (null) [19:26:25]execute_cgi path=json_proto method=POST [19:26:25]POST find Content-Length [19:26:25]Host: 172.17.44.196:8080 [19:26:25]Content-Length: 675 [19:26:25]Content-Type: application/json [19:26:25] [19:26:25]POST finish read [19:26:25]Found Content-Length = 675 [19:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:25]execute_script... [19:26: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 : (1)1963267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:25]POST & json_proto [19:26:25]process_json_proto [19:26:25]json parsed OK: [19:26:25]protocol is kg_v1.0 [19:26:25]action value=close_receipt [19:26:25]process_action close_receipt [19:26:25]cmd_close_receipt [19:26:25]MH_GetDate [19:26:25]Write to MH i2c: F0 00 00 57 51 97 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: F0 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: F0 09 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: F0 09 00 57 51 00 65 59 15 67 E7 19 F8 65 37 [19:26:25]GetLastDocTimeStamp 1729452336 [19:26:25]current date 1729452389 [19:26:25]FM_GetShiftState [19:26:25]SAM_PROTO_GetShiftState [19:26:25]wFMCommunicate request_size=4 [19:26:25]MH_SAM_APDU [19:26:25]CAPDU: 80 13 01 00 [19:26:25]Write to MH i2c: E2 08 00 58 51 80 13 01 00 00 00 00 00 26 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:25]Read from MH i2c: E2 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: E2 0E 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: E2 0E 00 58 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6B [19:26:25]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:26:25]wFMCommunicate OK [19:26:25]SAM_PROTO_GetShiftState done [19:26:25]FM_GetShiftState done [19:26:25]opened in 1729384303 [19:26:25]opened+sec_in_day 1729470703 [19:26:25]quantity*price = 25069 [19:26:25]sum+1 = 25071 [19:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 310 20.10.2024 19:26 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73984 ФПД: 110045142864449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192629&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73984&fm=110045142864449&tin=02508201610067®Number=0000000000161154&sum=25000 [19:26:26]StoreToDocumentArchive [19:26:26]shift 170 fd 73984 [19:26:26]save to /storage/0170/doc_00073984 [19:26:26]save last doc name /storage/0170/doc_00073984 to /storage/kkm_last_doc_name [19:26:26]save OK [19:26:26]Clear old archive folders... [19:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:26:26]tlvbuf is 003994F0 [19:26:26]SAM_PROTO_ClearQueue [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 09 00 00 [19:26:26]Write to MH i2c: E2 08 00 65 51 80 09 00 00 00 00 00 00 28 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 65 51 00 90 00 2A [19:26:27]RAPDU: 90 00 [19:26:27]wFMCommunicate OK [19:26:27]SAM_PROTO_ClearQueue done [19:26:27]KKMCreateOFDPacket [19:26:27]OFDProtocolAddRootSTLVToBuf [19:26:27]FM_MakeSignedData [19:26:27]FM_MakeSignedData [19:26:27]SAM_PROTO_SignData [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 0D 01 02 [19:26:27]Write to MH i2c: E2 08 00 66 51 80 0D 01 02 00 00 00 00 30 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 66 51 00 90 00 2B [19:26:27]RAPDU: 90 00 [19:26:27]wFMCommunicate OK [19:26:27]wFMCommunicate request_size=255 [19:26:27]MH_SAM_APDU [19:26:27]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 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 36 01 00 00 F4 03 04 00 65 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 21 01 00 35 04 06 00 64 15 E1 A6 [19:26:27]Write to MH i2c: E2 02 01 67 51 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 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 36 01 00 00 F4 03 04 00 65 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 21 01 00 35 04 06 00 64 15 E1 A6 00 00 33 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 67 51 00 90 00 2C [19:26:27]RAPDU: 90 00 [19:26:27]wFMCommunicate OK [19:26:27]wFMCommunicate request_size=7 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 0D 02 02 02 52 41 [19:26:27]Write to MH i2c: E2 0A 00 68 51 80 0D 02 02 02 00 52 41 00 00 CA [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 68 51 00 90 00 2D [19:26:27]RAPDU: 90 00 [19:26:27]wFMCommunicate OK [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 0D 03 02 [19:26:27]Write to MH i2c: E2 08 00 69 51 80 0D 03 02 00 00 00 00 35 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 0B 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 0B 00 69 51 00 55 3E A2 12 32 77 69 92 90 00 21 [19:26:27]RAPDU: 55 3E A2 12 32 77 69 92 90 00 [19:26:27]wFMCommunicate OK [19:26:27]SAM_PROTO_SignData done [19:26:27]FM_MakeSignedData done [19:26:27]CreateOFDProtocolMessage [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 11 00 00 [19:26:27]Write to MH i2c: E2 08 00 6A 51 80 11 00 00 00 00 00 00 35 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 17 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 17 00 6A 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 82 [19:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:26:27]wFMCommunicate OK [19:26:27]CreateOFDProtocolMessage done [19:26:27]OFDSenderStorePacket 73984 [19:26:27]StoreOFDPacket docnum=73984 [19:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 39 64 04 01 B2 F2 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 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 36 01 00 00 F4 03 04 00 65 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 21 01 00 35 04 06 00 64 15 E1 A6 52 41 55 3E A2 12 32 77 69 92 [19:26:27]CheckFolder [19:26:27]dirname=/storage/ofd_packets [19:26:27]CheckFolder done [19:26:27]ProducePacketName [19:26:27]name=ofd_packets/00073984 [19:26:27]NVStorageSaveData ofd_packets/00073984 [19:26:27]File name is /storage/ofd_packets/00073984 [19:26:27]Write 298 bytes [19:26:27]NVStorageSaveData done [19:26:27]OFDSenderStorePacket done [19:26:27]KKMCreateOFDPacket done [19:26:27]NVStorageSaveData kkm_last_timestamp [19:26:27]File name is /storage/kkm_last_timestamp [19:26:27]Write 4 bytes [19:26:27]NVStorageSaveData done [19:26:27]ExternCall_PrintAddStr [19:26:27]wPrintStart [19:26:27]Write to MH i2c: 01 00 00 6B 51 BC [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 07 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 07 00 6B 51 00 00 00 00 00 FF 0F D1 [19:26:27]RasterBufferAndPrint [19:26:27]line Счет N : (1)1963267 [19:26:27]line ИНН: 02508201610067 [19:26:27]line Контрольно-Кассовый Чек [19:26:27]line ПРОДАЖА [19:26:27]line ТРК (МРК, ГНК) : 21 [19:26:27]line Товар: 2710194210 [19:26:27]line ДТ-К-5 [19:26:27]line 3.290 * 76.20 [19:26:27]line = 250.70 [19:26:27]line НДС 12% НСП 1% [19:26:27]line > о реализуемом товаре [19:26:27]line ОКРУГЛЕНИЕ: -0.70 [19:26:27]line ИТОГО: 250.00 [19:26:27]line Внесено: 250.00 [19:26:27]line СДАЧА: 0.00 [19:26:27]line НСП 1% : 2.22 [19:26:27]line НДС 12% : 26.62 [19:26:27]line Наличными: 250.00 [19:26:27]line Безнал.: 0.00 [19:26:27]line Место: АЗС № 133 "Партнер Нефть" [19:26:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:26:27]line СНО: Общий режим [19:26:27]line Чек 310 20.10.2024 19:26 [19:26:27]line Смена: 170 ФФД: 1.0 [19:26:27]line ЗНМ: 0300000020 [19:26:27]line РНМ: 0000000000161154 [19:26:27]line Версия ККМ: v1.0 [19:26:27]line ФМ: 0000000000963323 [19:26:27]line ФД: 73984 [19:26:27]line ФПД: 110045142864449 [19:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192629&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73984&fm=110045142864449&tin=02508201610067®Number=0000000000161154&sum=25000 [19:26:27]OFD Sender: Processing packet 73984 [packets to send 15, broken 14] [19:26:27]ProducePacketName [19:26:27]name=ofd_packets/00073984 [19:26:27]OFD Sender: To server: pG, [19:26:27]CommunicateWithHost lk.salyk.kg:30040 [19:26:27]ConnectInit lk.salyk.kg [19:26:27]written 0, free lines is 4095 [19:26:27]Connected sock=10 [19:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 39 64 04 01 B2 F2 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 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 36 01 00 00 F4 03 04 00 65 59 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 21 01 00 35 04 06 00 64 15 E1 A6 52 41 55 3E A2 12 32 77 69 92 [19:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C6 29 47 00 7E E4 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 39 36 33 33 32 33 10 04 04 00 00 21 01 00 F4 03 04 00 48 02 15 67 B6 04 01 00 00 2A 32 47 F5 FB 25 4D E3 [19:26:28]CommunicateWithHost err = 0 [19:26:28]CheckOFDResponse [19:26:28]1017 (14) - 77093643461234 [19:26:28]1041 (16) - 0000000000963323 [19:26:28]1040 (4) - 73984 [19:26:28]1012 (4) - 20.10.2024 13:14 [19:26:28]1206 (1) - 0 [19:26:28]OFD Sender: Remove packet 73984 [19:26:28]ProducePacketName [19:26:28]name=ofd_packets/00073984 [19:26:28]NVStorageDeleteData [19:26:28]Write to MH i2c: 01 00 00 95 51 E6 [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 07 00 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 07 00 95 51 00 00 00 00 00 B9 0C B2 [19:26:28]RasterBufferAndPrint [19:26:28]line [19:26:28]line [19:26:28]line [19:26:28]line [19:26:28]line [19:26:28]written 0, free lines is 3261 [19:26:28]MH_Cut [19:26:28]Write to MH i2c: D1 01 00 9C 51 01 BF [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: D1 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: D1 01 00 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: D1 01 00 9C 51 00 BE [19:26:28]Write to MH i2c: 01 00 00 9D 51 EE [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]OFD Sender: No OFD packet to send [19:26:29]*** Cut start [19:26:29]*** Partial cut [19:26:29]*** CUTSNS_PIN = 1 [19:26:29]*** CUTSNS_PIN = 0 [19:26:29]*** Brake cut motor [19:26:29]Read from MH i2c: 01 [19:26:29]MH_I2C_Read... [19:26:29]*** Stop cut motor [19:26:29]*** Cut end [19:26:29]Read from MH i2c: 01 07 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: 01 07 00 9D 51 00 00 00 00 00 FF 0F 03 [19:26:29]process_action close_receipt done [19:26:29]requested_data is exist [19:26:29]produce_requested_data [19:26:29]requested_item fm.sn is exist - process it [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 11 00 00 [19:26:29]Write to MH i2c: E2 08 00 9E 51 80 11 00 00 00 00 00 00 69 [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 17 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 17 00 9E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B6 [19:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:26:29]wFMCommunicate OK [19:26:29]requested_item fd.num is exist - process it [19:26:29]SAM_PROTO_GetFieldsCounters [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 00 00 [19:26:29]Write to MH i2c: E2 08 00 9F 51 80 13 00 00 00 00 00 00 6C [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 62 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 62 00 9F 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 00 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [19:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 00 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:29]wFMCommunicate OK [19:26:29]SAM_PROTO_GetFieldsCounters done [19:26:29]requested_item shift.num is exist - process it [19:26:29]requested_item shift.opened is exist - process it [19:26:29]req_shift_opened [19:26:29]FM_GetShiftState [19:26:29]SAM_PROTO_GetShiftState [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 01 00 [19:26:29]Write to MH i2c: E2 08 00 A0 51 80 13 01 00 00 00 00 00 6E [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 A0 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B3 [19:26:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:26:30]wFMCommunicate OK [19:26:30]SAM_PROTO_GetShiftState done [19:26:30]FM_GetShiftState done [19:26:30]req_shift_opened done [19:26:30]requested_item shift.open_date is exist - process it [19:26:30]req_shift_open_date [19:26:30]req_shift_open_date done [19:26:30]produce_requested_data done [19:26:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73984,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:26:30]process_action_free close_receipt [19:26:30]json_value_free [19:26:30]json_value_free done [19:26:30]process_json_proto returns [19:26:30]Send response to host [19:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73984,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:26:30]free response buf [19:26:30]execute_script done [19:26:30]execute_script returns [19:26:30]free content buf [19:26:30]Sock 9.Close socket [19:26:30]Sock 9.Thread stoped [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [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:02]accept exits with 8 [19:30:02]New connection [19:30:02]New thread 3067432292 created [19:30:02]Thread 3067575652 joined [19:30:02]Waiting for new connection... [19:30:02] Sock 8.Parse request [19:30:02]Sock 8.Check first char [19:30:02]Sock 8.First char is OK [19:30:02]request: POST /json_proto HTTP/1.0 [19:30:02]Method: POST [19:30:02]URL: /json_proto [19:30:02]Method is POST - this is cgi request [19:30:02]url: /json_proto [19:30:02]query_string will be loaded in cgi processing [19:30:02]execute_cgi json_proto POST (null) [19:30:02]execute_cgi path=json_proto method=POST [19:30:02]POST find Content-Length [19:30:02]Host: 172.17.44.196:8080 [19:30:02]Content-Length: 678 [19:30:02]Content-Type: application/json [19:30:02] [19:30:02]POST finish read [19:30:02]Found Content-Length = 678 [19:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963268", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:02]execute_script... [19:30: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 : (1)1963268", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:02]POST & json_proto [19:30:02]process_json_proto [19:30:02]json parsed OK: [19:30:02]protocol is kg_v1.0 [19:30:02]action value=close_receipt [19:30:02]process_action close_receipt [19:30:02]cmd_close_receipt [19:30:02]MH_GetDate [19:30:02]Write to MH i2c: F0 00 00 A1 51 E1 [19:30:02]Write i2c OK [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: F0 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: F0 09 00 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: F0 09 00 A1 51 00 3E 5A 15 67 E7 19 F8 65 5B [19:30:02]GetLastDocTimeStamp 1729452389 [19:30:02]current date 1729452606 [19:30:02]FM_GetShiftState [19:30:02]SAM_PROTO_GetShiftState [19:30:02]wFMCommunicate request_size=4 [19:30:02]MH_SAM_APDU [19:30:02]CAPDU: 80 13 01 00 [19:30:02]Write to MH i2c: E2 08 00 A2 51 80 13 01 00 00 00 00 00 70 [19:30:02]Write i2c OK [19:30:02]MH_I2C_Read... [19:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:02]Read from MH i2c: E2 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: E2 0E 00 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: E2 0E 00 A2 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B5 [19:30:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:02]wFMCommunicate OK [19:30:02]SAM_PROTO_GetShiftState done [19:30:02]FM_GetShiftState done [19:30:02]opened in 1729384303 [19:30:02]opened+sec_in_day 1729470703 [19:30:02]quantity*price = 30038 [19:30:02]sum+1 = 30039 [19:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 311 20.10.2024 19:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73985 ФПД: 251222592310556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193006&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73985&fm=251222592310556&tin=02508201610067®Number=0000000000161154&sum=30000 [19:30:04]StoreToDocumentArchive [19:30:04]shift 170 fd 73985 [19:30:04]save to /storage/0170/doc_00073985 [19:30:04]save last doc name /storage/0170/doc_00073985 to /storage/kkm_last_doc_name [19:30:04]save OK [19:30:04]Clear old archive folders... [19:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:04]tlvbuf is 0039D7D0 [19:30:04]SAM_PROTO_ClearQueue [19:30:04]wFMCommunicate request_size=4 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 09 00 00 [19:30:04]Write to MH i2c: E2 08 00 AF 51 80 09 00 00 00 00 00 00 72 [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 AF 51 00 90 00 74 [19:30:04]RAPDU: 90 00 [19:30:04]wFMCommunicate OK [19:30:04]SAM_PROTO_ClearQueue done [19:30:04]KKMCreateOFDPacket [19:30:04]OFDProtocolAddRootSTLVToBuf [19:30:04]FM_MakeSignedData [19:30:04]FM_MakeSignedData [19:30:04]SAM_PROTO_SignData [19:30:04]wFMCommunicate request_size=4 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 0D 01 02 [19:30:04]Write to MH i2c: E2 08 00 B0 51 80 0D 01 02 00 00 00 00 7A [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 B0 51 00 90 00 75 [19:30:04]RAPDU: 90 00 [19:30:04]wFMCommunicate OK [19:30:04]wFMCommunicate request_size=255 [19:30:04]MH_SAM_APDU [19:30:04]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 37 01 00 00 F4 03 04 00 3E 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 21 01 00 35 04 06 00 E4 [19:30:04]Write to MH i2c: E2 02 01 B1 51 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 37 01 00 00 F4 03 04 00 3E 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 21 01 00 35 04 06 00 E4 00 00 ED [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 B1 51 00 90 00 76 [19:30:04]RAPDU: 90 00 [19:30:04]wFMCommunicate OK [19:30:04]wFMCommunicate request_size=10 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 0D 02 02 05 7C 51 5F CD 1C [19:30:04]Write to MH i2c: E2 0D 00 B2 51 80 0D 02 02 05 00 7C 51 5F CD 1C 00 00 9C [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 B2 51 00 90 00 77 [19:30:04]RAPDU: 90 00 [19:30:04]wFMCommunicate OK [19:30:04]wFMCommunicate request_size=4 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 0D 03 02 [19:30:04]Write to MH i2c: E2 08 00 B3 51 80 0D 03 02 00 00 00 00 7F [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 0B 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 0B 00 B3 51 00 51 BA C5 FE 35 E2 C3 23 90 00 4B [19:30:04]RAPDU: 51 BA C5 FE 35 E2 C3 23 90 00 [19:30:04]wFMCommunicate OK [19:30:04]SAM_PROTO_SignData done [19:30:04]FM_MakeSignedData done [19:30:04]CreateOFDProtocolMessage [19:30:04]wFMCommunicate request_size=4 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 11 00 00 [19:30:04]Write to MH i2c: E2 08 00 B4 51 80 11 00 00 00 00 00 00 7F [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 17 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 17 00 B4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CC [19:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:04]wFMCommunicate OK [19:30:04]CreateOFDProtocolMessage done [19:30:04]OFDSenderStorePacket 73985 [19:30:04]StoreOFDPacket docnum=73985 [19:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 2E A4 07 01 D3 E7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 37 01 00 00 F4 03 04 00 3E 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 21 01 00 35 04 06 00 E4 7C 51 5F CD 1C 51 BA C5 FE 35 E2 C3 23 [19:30:04]CheckFolder [19:30:04]dirname=/storage/ofd_packets [19:30:04]CheckFolder done [19:30:04]ProducePacketName [19:30:04]name=ofd_packets/00073985 [19:30:04]NVStorageSaveData ofd_packets/00073985 [19:30:04]File name is /storage/ofd_packets/00073985 [19:30:04]Write 301 bytes [19:30:04]NVStorageSaveData done [19:30:04]OFDSenderStorePacket done [19:30:04]KKMCreateOFDPacket done [19:30:04]NVStorageSaveData kkm_last_timestamp [19:30:04]File name is /storage/kkm_last_timestamp [19:30:04]Write 4 bytes [19:30:04]NVStorageSaveData done [19:30:04]ExternCall_PrintAddStr [19:30:04]wPrintStart [19:30:04]Write to MH i2c: 01 00 00 B5 51 06 [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: 01 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: 01 07 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: 01 07 00 B5 51 00 00 00 00 00 FF 0F 1B [19:30:04]RasterBufferAndPrint [19:30:04]line Счет N : (1)1963268 [19:30:04]line ИНН: 02508201610067 [19:30:04]line Контрольно-Кассовый Чек [19:30:04]line ПРОДАЖА [19:30:04]line ТРК (МРК, ГНК) : 33 [19:30:04]line Товар: 2710124130 [19:30:04]line Аи-92-К-5 [19:30:04]line 4.490 * 66.90 [19:30:04]line = 300.38 [19:30:04]line НДС 12% НСП 1% [19:30:04]line > о реализуемом товаре [19:30:04]line ОКРУГЛЕНИЕ: -0.38 [19:30:04]line ИТОГО: 300.00 [19:30:04]line Внесено: 300.00 [19:30:04]line СДАЧА: 0.00 [19:30:04]line НСП 1% : 2.66 [19:30:04]line НДС 12% : 31.90 [19:30:04]line Наличными: 300.00 [19:30:04]line Безнал.: 0.00 [19:30:04]line Место: АЗС № 133 "Партнер Нефть" [19:30:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:30:04]line СНО: Общий режим [19:30:04]line Чек 311 20.10.2024 19:30 [19:30:04]line Смена: 170 ФФД: 1.0 [19:30:04]line ЗНМ: 0300000020 [19:30:04]line РНМ: 0000000000161154 [19:30:04]line Версия ККМ: v1.0 [19:30:04]line ФМ: 0000000000963323 [19:30:04]line ФД: 73985 [19:30:04]line ФПД: 251222592310556 [19:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193006&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73985&fm=251222592310556&tin=02508201610067®Number=0000000000161154&sum=30000 [19:30:04]OFD Sender: Processing packet 73985 [packets to send 15, broken 14] [19:30:04]ProducePacketName [19:30:04]name=ofd_packets/00073985 [19:30:04]OFD Sender: To server: pG, [19:30:04]CommunicateWithHost lk.salyk.kg:30040 [19:30:04]ConnectInit lk.salyk.kg [19:30:04]written 0, free lines is 4095 [19:30:05]Connected sock=10 [19:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 2E A4 07 01 D3 E7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 37 01 00 00 F4 03 04 00 3E 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 21 01 00 35 04 06 00 E4 7C 51 5F CD 1C 51 BA C5 FE 35 E2 C3 23 [19:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 66 23 47 00 0D 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 39 36 33 33 32 33 10 04 04 00 01 21 01 00 F4 03 04 00 22 03 15 67 B6 04 01 00 00 E0 41 72 68 F4 14 B3 39 [19:30:05]CommunicateWithHost err = 0 [19:30:05]CheckOFDResponse [19:30:05]1017 (14) - 77093643461234 [19:30:05]1041 (16) - 0000000000963323 [19:30:05]1040 (4) - 73985 [19:30:05]1012 (4) - 20.10.2024 13:18 [19:30:05]1206 (1) - 0 [19:30:05]OFD Sender: Remove packet 73985 [19:30:05]ProducePacketName [19:30:05]name=ofd_packets/00073985 [19:30:05]NVStorageDeleteData [19:30:05]Write to MH i2c: 01 00 00 DF 51 30 [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: 01 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: 01 07 00 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: 01 07 00 DF 51 00 00 00 00 00 D1 0C 14 [19:30:05]RasterBufferAndPrint [19:30:05]line [19:30:05]line [19:30:05]line [19:30:05]line [19:30:05]line [19:30:05]written 0, free lines is 3288 [19:30:05]MH_Cut [19:30:05]Write to MH i2c: D1 01 00 E6 51 01 09 [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: D1 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: D1 01 00 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: D1 01 00 E6 51 00 08 [19:30:05]Write to MH i2c: 01 00 00 E7 51 38 [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]OFD Sender: No OFD packet to send [19:30:06]*** Cut start [19:30:06]*** Partial cut [19:30:06]*** CUTSNS_PIN = 1 [19:30:06]*** CUTSNS_PIN = 0 [19:30:06]*** Brake cut motor [19:30:06]Read from MH i2c: 01 [19:30:06]MH_I2C_Read... [19:30:06]*** Stop cut motor [19:30:06]*** Cut end [19:30:06]Read from MH i2c: 01 07 00 [19:30:06]MH_I2C_Read... [19:30:06]Read from MH i2c: 01 07 00 E7 51 00 00 00 00 00 FF 0F 4D [19:30:06]process_action close_receipt done [19:30:06]requested_data is exist [19:30:06]produce_requested_data [19:30:06]requested_item fm.sn is exist - process it [19:30:06]wFMCommunicate request_size=4 [19:30:06]MH_SAM_APDU [19:30:06]CAPDU: 80 11 00 00 [19:30:06]Write to MH i2c: E2 08 00 E8 51 80 11 00 00 00 00 00 00 B3 [19:30:06]Write i2c OK [19:30:06]MH_I2C_Read... [19:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:06]Read from MH i2c: E2 [19:30:06]MH_I2C_Read... [19:30:06]Read from MH i2c: E2 17 00 [19:30:06]MH_I2C_Read... [19:30:06]Read from MH i2c: E2 17 00 E8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 00 [19:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:06]wFMCommunicate OK [19:30:06]requested_item fd.num is exist - process it [19:30:06]SAM_PROTO_GetFieldsCounters [19:30:06]wFMCommunicate request_size=4 [19:30:06]MH_SAM_APDU [19:30:06]CAPDU: 80 13 00 00 [19:30:06]Write to MH i2c: E2 08 00 E9 51 80 13 00 00 00 00 00 00 B6 [19:30:06]Write i2c OK [19:30:06]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 62 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 62 00 E9 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 01 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 01 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:07]wFMCommunicate OK [19:30:07]SAM_PROTO_GetFieldsCounters done [19:30:07]requested_item shift.num is exist - process it [19:30:07]requested_item shift.opened is exist - process it [19:30:07]req_shift_opened [19:30:07]FM_GetShiftState [19:30:07]SAM_PROTO_GetShiftState [19:30:07]wFMCommunicate request_size=4 [19:30:07]MH_SAM_APDU [19:30:07]CAPDU: 80 13 01 00 [19:30:07]Write to MH i2c: E2 08 00 EA 51 80 13 01 00 00 00 00 00 B8 [19:30:07]Write i2c OK [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:07]Read from MH i2c: E2 0E 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 0E 00 EA 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FD [19:30:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:07]wFMCommunicate OK [19:30:07]SAM_PROTO_GetShiftState done [19:30:07]FM_GetShiftState done [19:30:07]req_shift_opened done [19:30:07]requested_item shift.open_date is exist - process it [19:30:07]req_shift_open_date [19:30:07]req_shift_open_date done [19:30:07]produce_requested_data done [19:30:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73985,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:30:07]process_action_free close_receipt [19:30:07]json_value_free [19:30:07]json_value_free done [19:30:07]process_json_proto returns [19:30:07]Send response to host [19:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73985,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:30:07]free response buf [19:30:07]execute_script done [19:30:07]execute_script returns [19:30:07]free content buf [19:30:07]Sock 8.Close socket [19:30:07]Sock 8.Thread stoped [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:30]accept exits with 9 [19:30:30]New connection [19:30:30]New thread 3067575652 created [19:30:30]Thread 3067432292 joined [19:30:30]Waiting for new connection... [19:30:30] Sock 9.Parse request [19:30:30]Sock 9.Check first char [19:30:30]Sock 9.First char is OK [19:30:30]request: POST /json_proto HTTP/1.0 [19:30:30]Method: POST [19:30:30]URL: /json_proto [19:30:30]Method is POST - this is cgi request [19:30:30]url: /json_proto [19:30:30]query_string will be loaded in cgi processing [19:30:30]execute_cgi json_proto POST (null) [19:30:30]execute_cgi path=json_proto method=POST [19:30:30]POST find Content-Length [19:30:30]Host: 172.17.44.196:8080 [19:30:30]Content-Length: 678 [19:30:30]Content-Type: application/json [19:30:30] [19:30:30]POST finish read [19:30:30]Found Content-Length = 678 [19:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963270", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:30]execute_script... [19:30: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 : (1)1963270", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:30]POST & json_proto [19:30:30]process_json_proto [19:30:30]json parsed OK: [19:30:30]protocol is kg_v1.0 [19:30:30]action value=close_receipt [19:30:30]process_action close_receipt [19:30:30]cmd_close_receipt [19:30:30]MH_GetDate [19:30:30]Write to MH i2c: F0 00 00 EB 51 2B [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: F0 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: F0 09 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: F0 09 00 EB 51 00 5A 5A 15 67 E7 19 F8 65 C1 [19:30:30]GetLastDocTimeStamp 1729452606 [19:30:30]current date 1729452634 [19:30:30]FM_GetShiftState [19:30:30]SAM_PROTO_GetShiftState [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 13 01 00 [19:30:30]Write to MH i2c: E2 08 00 EC 51 80 13 01 00 00 00 00 00 BA [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0E 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0E 00 EC 51 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [19:30:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:30]wFMCommunicate OK [19:30:30]SAM_PROTO_GetShiftState done [19:30:30]FM_GetShiftState done [19:30:30]opened in 1729384303 [19:30:30]opened+sec_in_day 1729470703 [19:30:30]quantity*price = 30038 [19:30:30]sum+1 = 30039 [19:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 312 20.10.2024 19:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73986 ФПД: 63044560514968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193034&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73986&fm=63044560514968&tin=02508201610067®Number=0000000000161154&sum=30000 [19:30:32]StoreToDocumentArchive [19:30:32]shift 170 fd 73986 [19:30:32]save to /storage/0170/doc_00073986 [19:30:32]save last doc name /storage/0170/doc_00073986 to /storage/kkm_last_doc_name [19:30:32]save OK [19:30:32]Clear old archive folders... [19:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:32]tlvbuf is 00373A50 [19:30:32]SAM_PROTO_ClearQueue [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 09 00 00 [19:30:32]Write to MH i2c: E2 08 00 F9 51 80 09 00 00 00 00 00 00 BC [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 F9 51 00 90 00 BE [19:30:32]RAPDU: 90 00 [19:30:32]wFMCommunicate OK [19:30:32]SAM_PROTO_ClearQueue done [19:30:32]KKMCreateOFDPacket [19:30:32]OFDProtocolAddRootSTLVToBuf [19:30:32]FM_MakeSignedData [19:30:32]FM_MakeSignedData [19:30:32]SAM_PROTO_SignData [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 0D 01 02 [19:30:32]Write to MH i2c: E2 08 00 FA 51 80 0D 01 02 00 00 00 00 C4 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 FA 51 00 90 00 BF [19:30:32]RAPDU: 90 00 [19:30:32]wFMCommunicate OK [19:30:32]wFMCommunicate request_size=255 [19:30:32]MH_SAM_APDU [19:30:32]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 38 01 00 00 F4 03 04 00 5A 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 21 01 00 35 04 06 00 39 [19:30:32]Write to MH i2c: E2 02 01 FB 51 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 38 01 00 00 F4 03 04 00 5A 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 21 01 00 35 04 06 00 39 00 00 AA [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 FB 51 00 90 00 C0 [19:30:32]RAPDU: 90 00 [19:30:32]wFMCommunicate OK [19:30:32]wFMCommunicate request_size=10 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 0D 02 02 05 56 B4 A2 6F 98 [19:30:32]Write to MH i2c: E2 0D 00 FC 51 80 0D 02 02 05 00 56 B4 A2 6F 98 00 00 84 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 03 00 FC 51 00 90 00 C1 [19:30:32]RAPDU: 90 00 [19:30:32]wFMCommunicate OK [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 0D 03 02 [19:30:32]Write to MH i2c: E2 08 00 FD 51 80 0D 03 02 00 00 00 00 C9 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 0B 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 0B 00 FD 51 00 4D 15 2A 37 B5 68 98 BA 90 00 FC [19:30:32]RAPDU: 4D 15 2A 37 B5 68 98 BA 90 00 [19:30:32]wFMCommunicate OK [19:30:32]SAM_PROTO_SignData done [19:30:32]FM_MakeSignedData done [19:30:32]CreateOFDProtocolMessage [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 11 00 00 [19:30:32]Write to MH i2c: E2 08 00 FE 51 80 11 00 00 00 00 00 00 C9 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 17 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 17 00 FE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 16 [19:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:32]wFMCommunicate OK [19:30:32]CreateOFDProtocolMessage done [19:30:32]OFDSenderStorePacket 73986 [19:30:32]StoreOFDPacket docnum=73986 [19:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 49 0A 07 01 08 63 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 38 01 00 00 F4 03 04 00 5A 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 21 01 00 35 04 06 00 39 56 B4 A2 6F 98 4D 15 2A 37 B5 68 98 BA [19:30:32]CheckFolder [19:30:32]dirname=/storage/ofd_packets [19:30:32]CheckFolder done [19:30:32]ProducePacketName [19:30:32]name=ofd_packets/00073986 [19:30:32]NVStorageSaveData ofd_packets/00073986 [19:30:32]File name is /storage/ofd_packets/00073986 [19:30:32]Write 301 bytes [19:30:32]NVStorageSaveData done [19:30:32]OFDSenderStorePacket done [19:30:32]KKMCreateOFDPacket done [19:30:32]NVStorageSaveData kkm_last_timestamp [19:30:32]File name is /storage/kkm_last_timestamp [19:30:32]Write 4 bytes [19:30:32]NVStorageSaveData done [19:30:32]ExternCall_PrintAddStr [19:30:32]wPrintStart [19:30:32]Write to MH i2c: 01 00 00 FF 51 50 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: 01 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: 01 07 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: 01 07 00 FF 51 00 00 00 00 00 FF 0F 65 [19:30:32]RasterBufferAndPrint [19:30:32]line Счет N : (1)1963270 [19:30:32]line ИНН: 02508201610067 [19:30:32]line Контрольно-Кассовый Чек [19:30:32]line ПРОДАЖА [19:30:32]line ТРК (МРК, ГНК) : 43 [19:30:32]line Товар: 2710124130 [19:30:32]line Аи-92-К-5 [19:30:32]line 4.490 * 66.90 [19:30:32]line = 300.38 [19:30:32]line НДС 12% НСП 1% [19:30:32]line > о реализуемом товаре [19:30:32]line ОКРУГЛЕНИЕ: -0.38 [19:30:32]line ИТОГО: 300.00 [19:30:32]line Внесено: 300.00 [19:30:32]line СДАЧА: 0.00 [19:30:32]line НСП 1% : 2.66 [19:30:32]line НДС 12% : 31.90 [19:30:32]line Наличными: 300.00 [19:30:32]line Безнал.: 0.00 [19:30:32]line Место: АЗС № 133 "Партнер Нефть" [19:30:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:30:32]line СНО: Общий режим [19:30:32]line Чек 312 20.10.2024 19:30 [19:30:32]line Смена: 170 ФФД: 1.0 [19:30:32]line ЗНМ: 0300000020 [19:30:32]line РНМ: 0000000000161154 [19:30:32]line Версия ККМ: v1.0 [19:30:32]line ФМ: 0000000000963323 [19:30:32]line ФД: 73986 [19:30:32]line ФПД: 63044560514968 [19:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193034&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73986&fm=63044560514968&tin=02508201610067®Number=0000000000161154&sum=30000 [19:30:32]OFD Sender: Processing packet 73986 [packets to send 15, broken 14] [19:30:32]ProducePacketName [19:30:32]name=ofd_packets/00073986 [19:30:32]OFD Sender: To server: pG, [19:30:32]CommunicateWithHost lk.salyk.kg:30040 [19:30:32]ConnectInit lk.salyk.kg [19:30:32]written 0, free lines is 4095 [19:30:32]Connected sock=10 [19:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 49 0A 07 01 08 63 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 38 01 00 00 F4 03 04 00 5A 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 21 01 00 35 04 06 00 39 56 B4 A2 6F 98 4D 15 2A 37 B5 68 98 BA [19:30:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2A D1 47 00 F3 D0 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 39 36 33 33 32 33 10 04 04 00 02 21 01 00 F4 03 04 00 3E 03 15 67 B6 04 01 00 00 3A E6 F7 34 BE 72 82 12 [19:30:33]CommunicateWithHost err = 0 [19:30:33]CheckOFDResponse [19:30:33]1017 (14) - 77093643461234 [19:30:33]1041 (16) - 0000000000963323 [19:30:33]1040 (4) - 73986 [19:30:33]1012 (4) - 20.10.2024 13:18 [19:30:33]1206 (1) - 0 [19:30:33]OFD Sender: Remove packet 73986 [19:30:33]ProducePacketName [19:30:33]name=ofd_packets/00073986 [19:30:33]NVStorageDeleteData [19:30:33]Write to MH i2c: 01 00 00 29 52 7B [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 07 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 07 00 29 52 00 00 00 00 00 B3 0C 41 [19:30:33]RasterBufferAndPrint [19:30:33]line [19:30:33]line [19:30:33]line [19:30:33]line [19:30:33]line [19:30:33]written 0, free lines is 3256 [19:30:33]MH_Cut [19:30:33]Write to MH i2c: D1 01 00 30 52 01 54 [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: D1 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: D1 01 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: D1 01 00 30 52 00 53 [19:30:33]Write to MH i2c: 01 00 00 31 52 83 [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]OFD Sender: No OFD packet to send [19:30:34]*** Cut start [19:30:34]*** Partial cut [19:30:34]*** CUTSNS_PIN = 1 [19:30:34]*** CUTSNS_PIN = 0 [19:30:34]*** Brake cut motor [19:30:34]Read from MH i2c: 01 [19:30:34]MH_I2C_Read... [19:30:34]*** Stop cut motor [19:30:34]*** Cut end [19:30:34]Read from MH i2c: 01 07 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: 01 07 00 31 52 00 00 00 00 00 FF 0F 98 [19:30:34]process_action close_receipt done [19:30:34]requested_data is exist [19:30:34]produce_requested_data [19:30:34]requested_item fm.sn is exist - process it [19:30:34]wFMCommunicate request_size=4 [19:30:34]MH_SAM_APDU [19:30:34]CAPDU: 80 11 00 00 [19:30:34]Write to MH i2c: E2 08 00 32 52 80 11 00 00 00 00 00 00 FE [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:34]Read from MH i2c: E2 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: E2 17 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: E2 17 00 32 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [19:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:34]wFMCommunicate OK [19:30:34]requested_item fd.num is exist - process it [19:30:34]SAM_PROTO_GetFieldsCounters [19:30:34]wFMCommunicate request_size=4 [19:30:34]MH_SAM_APDU [19:30:34]CAPDU: 80 13 00 00 [19:30:34]Write to MH i2c: E2 08 00 33 52 80 13 00 00 00 00 00 00 01 [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 62 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 62 00 33 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 02 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 02 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:35]wFMCommunicate OK [19:30:35]SAM_PROTO_GetFieldsCounters done [19:30:35]requested_item shift.num is exist - process it [19:30:35]requested_item shift.opened is exist - process it [19:30:35]req_shift_opened [19:30:35]FM_GetShiftState [19:30:35]SAM_PROTO_GetShiftState [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 13 01 00 [19:30:35]Write to MH i2c: E2 08 00 34 52 80 13 01 00 00 00 00 00 03 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 0E 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 0E 00 34 52 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 48 [19:30:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:35]wFMCommunicate OK [19:30:35]SAM_PROTO_GetShiftState done [19:30:35]FM_GetShiftState done [19:30:35]req_shift_opened done [19:30:35]requested_item shift.open_date is exist - process it [19:30:35]req_shift_open_date [19:30:35]req_shift_open_date done [19:30:35]produce_requested_data done [19:30:35]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73986,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:30:35]process_action_free close_receipt [19:30:35]json_value_free [19:30:35]json_value_free done [19:30:35]process_json_proto returns [19:30:35]Send response to host [19:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73986,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:30:35]free response buf [19:30:35]execute_script done [19:30:35]execute_script returns [19:30:35]free content buf [19:30:35]Sock 9.Close socket [19:30:35]Sock 9.Thread stoped [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:48]accept exits with 8 [19:30:48]New connection [19:30:48]New thread 3067432292 created [19:30:48]Thread 3067575652 joined [19:30:48]Waiting for new connection... [19:30:48] Sock 8.Parse request [19:30:48]Sock 8.Check first char [19:30:48]Sock 8.First char is OK [19:30:48]request: POST /json_proto HTTP/1.0 [19:30:48]Method: POST [19:30:48]URL: /json_proto [19:30:48]Method is POST - this is cgi request [19:30:48]url: /json_proto [19:30:48]query_string will be loaded in cgi processing [19:30:48]execute_cgi json_proto POST (null) [19:30:48]execute_cgi path=json_proto method=POST [19:30:48]POST find Content-Length [19:30:48]Host: 172.17.44.196:8080 [19:30:48]Content-Length: 680 [19:30:48]Content-Type: application/json [19:30:48] [19:30:48]POST finish read [19:30:48]Found Content-Length = 680 [19:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [19:30:48]execute_script... [19:30: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 : (1)1963272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [19:30:48]POST & json_proto [19:30:48]process_json_proto [19:30:48]json parsed OK: [19:30:48]protocol is kg_v1.0 [19:30:48]action value=close_receipt [19:30:48]process_action close_receipt [19:30:48]cmd_close_receipt [19:30:48]MH_GetDate [19:30:48]Write to MH i2c: F0 00 00 35 52 76 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 09 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 09 00 35 52 00 6C 5A 15 67 E7 19 F8 65 1E [19:30:48]GetLastDocTimeStamp 1729452634 [19:30:48]current date 1729452652 [19:30:48]FM_GetShiftState [19:30:48]SAM_PROTO_GetShiftState [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 13 01 00 [19:30:48]Write to MH i2c: E2 08 00 36 52 80 13 01 00 00 00 00 00 05 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 0E 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 0E 00 36 52 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [19:30:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:48]wFMCommunicate OK [19:30:48]SAM_PROTO_GetShiftState done [19:30:48]FM_GetShiftState done [19:30:48]opened in 1729384303 [19:30:48]opened+sec_in_day 1729470703 [19:30:48]quantity*price = 100050 [19:30:48]sum+1 = 100052 [19:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 313 20.10.2024 19:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73987 ФПД: 61993999403798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193052&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73987&fm=61993999403798&tin=02508201610067®Number=0000000000161154&sum=100000 [19:30:50]StoreToDocumentArchive [19:30:50]shift 170 fd 73987 [19:30:50]save to /storage/0170/doc_00073987 [19:30:50]save last doc name /storage/0170/doc_00073987 to /storage/kkm_last_doc_name [19:30:50]save OK [19:30:50]Clear old archive folders... [19:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:30:50]tlvbuf is 003D63E0 [19:30:50]SAM_PROTO_ClearQueue [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 09 00 00 [19:30:50]Write to MH i2c: E2 08 00 43 52 80 09 00 00 00 00 00 00 07 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 43 52 00 90 00 09 [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_ClearQueue done [19:30:50]KKMCreateOFDPacket [19:30:50]OFDProtocolAddRootSTLVToBuf [19:30:50]FM_MakeSignedData [19:30:50]FM_MakeSignedData [19:30:50]SAM_PROTO_SignData [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 01 02 [19:30:50]Write to MH i2c: E2 08 00 44 52 80 0D 01 02 00 00 00 00 0F [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 44 52 00 90 00 0A [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]wFMCommunicate request_size=255 [19:30:50]MH_SAM_APDU [19:30:50]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 39 01 00 00 F4 03 04 00 6C 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 21 01 00 35 04 06 00 38 62 1A 50 [19:30:50]Write to MH i2c: E2 02 01 45 52 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 39 01 00 00 F4 03 04 00 6C 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 21 01 00 35 04 06 00 38 62 1A 50 00 00 D6 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 45 52 00 90 00 0B [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]wFMCommunicate request_size=7 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 02 02 02 0B 16 [19:30:50]Write to MH i2c: E2 0A 00 46 52 80 0D 02 02 02 00 0B 16 00 00 37 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 46 52 00 90 00 0C [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 03 02 [19:30:50]Write to MH i2c: E2 08 00 47 52 80 0D 03 02 00 00 00 00 14 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0B 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0B 00 47 52 00 64 DD 1F 3F 81 3A 9F AA 90 00 B8 [19:30:50]RAPDU: 64 DD 1F 3F 81 3A 9F AA 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_SignData done [19:30:50]FM_MakeSignedData done [19:30:50]CreateOFDProtocolMessage [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 11 00 00 [19:30:50]Write to MH i2c: E2 08 00 48 52 80 11 00 00 00 00 00 00 14 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 48 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [19:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:50]wFMCommunicate OK [19:30:50]CreateOFDProtocolMessage done [19:30:50]OFDSenderStorePacket 73987 [19:30:50]StoreOFDPacket docnum=73987 [19:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 BB EF 04 01 37 0F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 39 01 00 00 F4 03 04 00 6C 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 21 01 00 35 04 06 00 38 62 1A 50 0B 16 64 DD 1F 3F 81 3A 9F AA [19:30:50]CheckFolder [19:30:50]dirname=/storage/ofd_packets [19:30:50]CheckFolder done [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00073987 [19:30:50]NVStorageSaveData ofd_packets/00073987 [19:30:50]File name is /storage/ofd_packets/00073987 [19:30:50]Write 298 bytes [19:30:50]NVStorageSaveData done [19:30:50]OFDSenderStorePacket done [19:30:50]KKMCreateOFDPacket done [19:30:50]NVStorageSaveData kkm_last_timestamp [19:30:50]File name is /storage/kkm_last_timestamp [19:30:50]Write 4 bytes [19:30:50]NVStorageSaveData done [19:30:50]ExternCall_PrintAddStr [19:30:50]wPrintStart [19:30:50]Write to MH i2c: 01 00 00 49 52 9B [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 49 52 00 00 00 00 00 FF 0F B0 [19:30:50]RasterBufferAndPrint [19:30:50]line Счет N : (1)1963272 [19:30:50]line ИНН: 02508201610067 [19:30:50]line Контрольно-Кассовый Чек [19:30:50]line ПРОДАЖА [19:30:50]line ТРК (МРК, ГНК) : 21 [19:30:50]line Товар: 2710194210 [19:30:50]line ДТ-К-5 [19:30:50]line 13.130 * 76.20 [19:30:50]line = 1000.51 [19:30:50]line НДС 12% НСП 1% [19:30:50]line > о реализуемом товаре [19:30:50]line ОКРУГЛЕНИЕ: -0.51 [19:30:50]line ИТОГО: 1000.00 [19:30:50]line Внесено: 1000.00 [19:30:50]line СДАЧА: 0.00 [19:30:50]line НСП 1% : 8.85 [19:30:50]line НДС 12% : 106.25 [19:30:50]line Наличными: 1000.00 [19:30:50]line Безнал.: 0.00 [19:30:50]line Место: АЗС № 133 "Партнер Нефть" [19:30:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:30:50]line СНО: Общий режим [19:30:50]line Чек 313 20.10.2024 19:30 [19:30:50]line Смена: 170 ФФД: 1.0 [19:30:50]line ЗНМ: 0300000020 [19:30:50]line РНМ: 0000000000161154 [19:30:50]line Версия ККМ: v1.0 [19:30:50]line ФМ: 0000000000963323 [19:30:50]line ФД: 73987 [19:30:50]line ФПД: 61993999403798 [19:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193052&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73987&fm=61993999403798&tin=02508201610067®Number=0000000000161154&sum=100000 [19:30:50]OFD Sender: Processing packet 73987 [packets to send 15, broken 14] [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00073987 [19:30:50]OFD Sender: To server: pG, [19:30:50]CommunicateWithHost lk.salyk.kg:30040 [19:30:50]ConnectInit lk.salyk.kg [19:30:50]written 0, free lines is 4095 [19:30:51]Connected sock=11 [19:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 BB EF 04 01 37 0F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 39 01 00 00 F4 03 04 00 6C 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 21 01 00 35 04 06 00 38 62 1A 50 0B 16 64 DD 1F 3F 81 3A 9F AA [19:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 F1 47 00 A3 BF 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 39 36 33 33 32 33 10 04 04 00 03 21 01 00 F4 03 04 00 50 03 15 67 B6 04 01 00 00 86 69 12 88 ED 9A 4B AA [19:30:51]CommunicateWithHost err = 0 [19:30:51]CheckOFDResponse [19:30:51]1017 (14) - 77093643461234 [19:30:51]1041 (16) - 0000000000963323 [19:30:51]1040 (4) - 73987 [19:30:51]1012 (4) - 20.10.2024 13:19 [19:30:51]1206 (1) - 0 [19:30:51]OFD Sender: Remove packet 73987 [19:30:51]ProducePacketName [19:30:51]name=ofd_packets/00073987 [19:30:51]NVStorageDeleteData [19:30:51]Write to MH i2c: 01 00 00 73 52 C5 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 07 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 07 00 73 52 00 00 00 00 00 B1 0C 89 [19:30:51]RasterBufferAndPrint [19:30:51]line [19:30:51]line [19:30:51]line [19:30:51]line [19:30:51]line [19:30:51]written 0, free lines is 3253 [19:30:51]MH_Cut [19:30:51]Write to MH i2c: D1 01 00 7A 52 01 9E [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: D1 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: D1 01 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: D1 01 00 7A 52 00 9D [19:30:51]Write to MH i2c: 01 00 00 7B 52 CD [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]OFD Sender: No OFD packet to send [19:30:52]*** Cut start [19:30:52]*** Partial cut [19:30:52]*** CUTSNS_PIN = 1 [19:30:52]*** CUTSNS_PIN = 0 [19:30:52]*** Brake cut motor [19:30:52]Read from MH i2c: 01 [19:30:52]MH_I2C_Read... [19:30:52]*** Stop cut motor [19:30:52]*** Cut end [19:30:52]Read from MH i2c: 01 07 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: 01 07 00 7B 52 00 00 00 00 00 FF 0F E2 [19:30:52]process_action close_receipt done [19:30:52]requested_data is exist [19:30:52]produce_requested_data [19:30:52]requested_item fm.sn is exist - process it [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 11 00 00 [19:30:52]Write to MH i2c: E2 08 00 7C 52 80 11 00 00 00 00 00 00 48 [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:52]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 17 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 17 00 7C 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [19:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:52]wFMCommunicate OK [19:30:52]requested_item fd.num is exist - process it [19:30:52]SAM_PROTO_GetFieldsCounters [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 13 00 00 [19:30:52]Write to MH i2c: E2 08 00 7D 52 80 13 00 00 00 00 00 00 4B [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:53]Read from MH i2c: E2 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 62 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 62 00 7D 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 03 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 03 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:53]wFMCommunicate OK [19:30:53]SAM_PROTO_GetFieldsCounters done [19:30:53]requested_item shift.num is exist - process it [19:30:53]requested_item shift.opened is exist - process it [19:30:53]req_shift_opened [19:30:53]FM_GetShiftState [19:30:53]SAM_PROTO_GetShiftState [19:30:53]wFMCommunicate request_size=4 [19:30:53]MH_SAM_APDU [19:30:53]CAPDU: 80 13 01 00 [19:30:53]Write to MH i2c: E2 08 00 7E 52 80 13 01 00 00 00 00 00 4D [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:53]Read from MH i2c: E2 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 7E 52 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 92 [19:30:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:53]wFMCommunicate OK [19:30:53]SAM_PROTO_GetShiftState done [19:30:53]FM_GetShiftState done [19:30:53]req_shift_opened done [19:30:53]requested_item shift.open_date is exist - process it [19:30:53]req_shift_open_date [19:30:53]req_shift_open_date done [19:30:53]produce_requested_data done [19:30:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73987,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:30:53]process_action_free close_receipt [19:30:53]json_value_free [19:30:53]json_value_free done [19:30:53]process_json_proto returns [19:30:53]Send response to host [19:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73987,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:30:53]free response buf [19:30:53]execute_script done [19:30:53]execute_script returns [19:30:53]free content buf [19:30:53]Sock 8.Close socket [19:30:53]Sock 8.Thread stoped [19:30:53]accept exits with 9 [19:30:53]New connection [19:30:53]New thread 3067575652 created [19:30:53]Thread 3067432292 joined [19:30:53]Waiting for new connection... [19:30:53] Sock 9.Parse request [19:30:53]Sock 9.Check first char [19:30:53]Sock 9.First char is OK [19:30:53]request: POST /json_proto HTTP/1.0 [19:30:53]Method: POST [19:30:53]URL: /json_proto [19:30:53]Method is POST - this is cgi request [19:30:53]url: /json_proto [19:30:53]query_string will be loaded in cgi processing [19:30:53]execute_cgi json_proto POST (null) [19:30:53]execute_cgi path=json_proto method=POST [19:30:53]POST find Content-Length [19:30:53]Host: 172.17.44.196:8080 [19:30:53]Content-Length: 683 [19:30:53]Content-Type: application/json [19:30:53] [19:30:53]POST finish read [19:30:53]Found Content-Length = 683 [19:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.130, "sum" : 1346.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1346.00, "payments": [ { "type": 0, "sum" : 1346.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:53]execute_script... [19:30: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 : (1)1963271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.130, "sum" : 1346.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1346.00, "payments": [ { "type": 0, "sum" : 1346.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:53]POST & json_proto [19:30:53]process_json_proto [19:30:53]json parsed OK: [19:30:53]protocol is kg_v1.0 [19:30:53]action value=close_receipt [19:30:53]process_action close_receipt [19:30:53]cmd_close_receipt [19:30:53]MH_GetDate [19:30:53]Write to MH i2c: F0 00 00 7F 52 C0 [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: F0 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: F0 09 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: F0 09 00 7F 52 00 70 5A 15 67 E7 19 F8 65 6C [19:30:53]GetLastDocTimeStamp 1729452652 [19:30:53]current date 1729452656 [19:30:53]FM_GetShiftState [19:30:53]SAM_PROTO_GetShiftState [19:30:53]wFMCommunicate request_size=4 [19:30:53]MH_SAM_APDU [19:30:53]CAPDU: 80 13 01 00 [19:30:53]Write to MH i2c: E2 08 00 80 52 80 13 01 00 00 00 00 00 4F [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:53]Read from MH i2c: E2 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 80 52 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 94 [19:30:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:53]wFMCommunicate OK [19:30:53]SAM_PROTO_GetShiftState done [19:30:53]FM_GetShiftState done [19:30:53]opened in 1729384303 [19:30:53]opened+sec_in_day 1729470703 [19:30:53]quantity*price = 134669 [19:30:53]sum+1 = 134671 [19:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 1346.00 Внесено: 1500.00 СДАЧА: 154.00 НСП 1% : 11.92 НДС 12% : 143.01 Наличными: 1346.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 314 20.10.2024 19:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73988 ФПД: 56759789797466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193056&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73988&fm=56759789797466&tin=02508201610067®Number=0000000000161154&sum=134600 [19:30:55]StoreToDocumentArchive [19:30:55]shift 170 fd 73988 [19:30:55]save to /storage/0170/doc_00073988 [19:30:55]save last doc name /storage/0170/doc_00073988 to /storage/kkm_last_doc_name [19:30:55]save OK [19:30:55]Clear old archive folders... [19:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:55]tlvbuf is 003B4690 [19:30:55]SAM_PROTO_ClearQueue [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 09 00 00 [19:30:55]Write to MH i2c: E2 08 00 8D 52 80 09 00 00 00 00 00 00 51 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 8D 52 00 90 00 53 [19:30:55]RAPDU: 90 00 [19:30:55]wFMCommunicate OK [19:30:55]SAM_PROTO_ClearQueue done [19:30:55]KKMCreateOFDPacket [19:30:55]OFDProtocolAddRootSTLVToBuf [19:30:55]FM_MakeSignedData [19:30:55]FM_MakeSignedData [19:30:55]SAM_PROTO_SignData [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 0D 01 02 [19:30:55]Write to MH i2c: E2 08 00 8E 52 80 0D 01 02 00 00 00 00 59 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 8E 52 00 90 00 54 [19:30:55]RAPDU: 90 00 [19:30:55]wFMCommunicate OK [19:30:55]wFMCommunicate request_size=255 [19:30:55]MH_SAM_APDU [19:30: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 A2 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 0E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 0D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 37 00 00 00 00 07 04 06 00 C8 0D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 70 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 21 01 00 35 04 06 00 33 [19:30:55]Write to MH i2c: E2 02 01 8F 52 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 A2 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 0E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 0D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 37 00 00 00 00 07 04 06 00 C8 0D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 70 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 21 01 00 35 04 06 00 33 00 00 92 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 8F 52 00 90 00 55 [19:30:55]RAPDU: 90 00 [19:30:55]wFMCommunicate OK [19:30:55]wFMCommunicate request_size=10 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 0D 02 02 05 9F 6B 1B C0 5A [19:30:55]Write to MH i2c: E2 0D 00 90 52 80 0D 02 02 05 00 9F 6B 1B C0 5A 00 00 A5 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 03 00 90 52 00 90 00 56 [19:30:55]RAPDU: 90 00 [19:30:55]wFMCommunicate OK [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 0D 03 02 [19:30:55]Write to MH i2c: E2 08 00 91 52 80 0D 03 02 00 00 00 00 5E [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 0B 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 0B 00 91 52 00 14 3B E0 5E C8 3B A6 3F 90 00 D4 [19:30:55]RAPDU: 14 3B E0 5E C8 3B A6 3F 90 00 [19:30:55]wFMCommunicate OK [19:30:55]SAM_PROTO_SignData done [19:30:55]FM_MakeSignedData done [19:30:55]CreateOFDProtocolMessage [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 11 00 00 [19:30:55]Write to MH i2c: E2 08 00 92 52 80 11 00 00 00 00 00 00 5E [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 17 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 17 00 92 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AB [19:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:55]wFMCommunicate OK [19:30:55]CreateOFDProtocolMessage done [19:30:55]OFDSenderStorePacket 73988 [19:30:55]StoreOFDPacket docnum=73988 [19:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CB 33 07 01 C2 F3 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 A2 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 0E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 0D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 37 00 00 00 00 07 04 06 00 C8 0D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 70 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 21 01 00 35 04 06 00 33 9F 6B 1B C0 5A 14 3B E0 5E C8 3B A6 3F [19:30:55]CheckFolder [19:30:55]dirname=/storage/ofd_packets [19:30:55]CheckFolder done [19:30:55]ProducePacketName [19:30:55]name=ofd_packets/00073988 [19:30:55]NVStorageSaveData ofd_packets/00073988 [19:30:55]File name is /storage/ofd_packets/00073988 [19:30:55]Write 301 bytes [19:30:55]NVStorageSaveData done [19:30:55]OFDSenderStorePacket done [19:30:55]KKMCreateOFDPacket done [19:30:55]NVStorageSaveData kkm_last_timestamp [19:30:55]File name is /storage/kkm_last_timestamp [19:30:55]Write 4 bytes [19:30:55]NVStorageSaveData done [19:30:55]ExternCall_PrintAddStr [19:30:55]wPrintStart [19:30:55]Write to MH i2c: 01 00 00 93 52 E5 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 07 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: 01 07 00 93 52 00 00 00 00 00 FF 0F FA [19:30:55]RasterBufferAndPrint [19:30:55]line Счет N : (1)1963271 [19:30:55]line ИНН: 02508201610067 [19:30:55]line Контрольно-Кассовый Чек [19:30:55]line ПРОДАЖА [19:30:55]line ТРК (МРК, ГНК) : 63 [19:30:55]line Товар: 2710124130 [19:30:55]line Аи-92-К-5 [19:30:55]line 20.130 * 66.90 [19:30:55]line = 1346.70 [19:30:55]line НДС 12% НСП 1% [19:30:55]line > о реализуемом товаре [19:30:55]line ОКРУГЛЕНИЕ: -0.70 [19:30:55]line ИТОГО: 1346.00 [19:30:55]line Внесено: 1500.00 [19:30:55]line СДАЧА: 154.00 [19:30:55]line НСП 1% : 11.92 [19:30:55]line НДС 12% : 143.01 [19:30:55]line Наличными: 1346.00 [19:30:55]line Безнал.: 0.00 [19:30:55]line Место: АЗС № 133 "Партнер Нефть" [19:30:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:30:55]line СНО: Общий режим [19:30:55]line Чек 314 20.10.2024 19:30 [19:30:55]line Смена: 170 ФФД: 1.0 [19:30:55]line ЗНМ: 0300000020 [19:30:55]line РНМ: 0000000000161154 [19:30:55]line Версия ККМ: v1.0 [19:30:55]line ФМ: 0000000000963323 [19:30:55]line ФД: 73988 [19:30:55]line ФПД: 56759789797466 [19:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193056&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73988&fm=56759789797466&tin=02508201610067®Number=0000000000161154&sum=134600 [19:30:55]OFD Sender: Processing packet 73988 [packets to send 15, broken 14] [19:30:55]ProducePacketName [19:30:55]name=ofd_packets/00073988 [19:30:55]OFD Sender: To server: pG, [19:30:55]CommunicateWithHost lk.salyk.kg:30040 [19:30:55]ConnectInit lk.salyk.kg [19:30:55]written 0, free lines is 4095 [19:30:55]Connected sock=10 [19:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CB 33 07 01 C2 F3 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 A2 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 0E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 0D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 37 00 00 00 00 07 04 06 00 C8 0D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 70 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 21 01 00 35 04 06 00 33 9F 6B 1B C0 5A 14 3B E0 5E C8 3B A6 3F [19:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2E 37 47 00 6C 3E 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 39 36 33 33 32 33 10 04 04 00 04 21 01 00 F4 03 04 00 54 03 15 67 B6 04 01 00 00 C6 38 42 D8 B3 CA 89 B8 [19:30:56]CommunicateWithHost err = 0 [19:30:56]CheckOFDResponse [19:30:56]1017 (14) - 77093643461234 [19:30:56]1041 (16) - 0000000000963323 [19:30:56]1040 (4) - 73988 [19:30:56]1012 (4) - 20.10.2024 13:19 [19:30:56]1206 (1) - 0 [19:30:56]OFD Sender: Remove packet 73988 [19:30:56]ProducePacketName [19:30:56]name=ofd_packets/00073988 [19:30:56]NVStorageDeleteData [19:30:56]Write to MH i2c: 01 00 00 BD 52 0F [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 07 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 07 00 BD 52 00 00 00 00 00 CB 0C ED [19:30:56]RasterBufferAndPrint [19:30:56]line [19:30:56]line [19:30:56]line [19:30:56]line [19:30:56]line [19:30:56]written 0, free lines is 3283 [19:30:56]MH_Cut [19:30:56]Write to MH i2c: D1 01 00 C4 52 01 E8 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: D1 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: D1 01 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: D1 01 00 C4 52 00 E7 [19:30:56]Write to MH i2c: 01 00 00 C5 52 17 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]OFD Sender: No OFD packet to send [19:30:56]*** Cut start [19:30:56]*** Partial cut [19:30:56]*** CUTSNS_PIN = 1 [19:30:57]*** CUTSNS_PIN = 0 [19:30:57]*** Brake cut motor [19:30:57]Read from MH i2c: 01 [19:30:57]MH_I2C_Read... [19:30:57]*** Stop cut motor [19:30:57]*** Cut end [19:30:57]Read from MH i2c: 01 07 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: 01 07 00 C5 52 00 00 00 00 00 FF 0F 2C [19:30:57]process_action close_receipt done [19:30:57]requested_data is exist [19:30:57]produce_requested_data [19:30:57]requested_item fm.sn is exist - process it [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 11 00 00 [19:30:57]Write to MH i2c: E2 08 00 C6 52 80 11 00 00 00 00 00 00 92 [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 17 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 17 00 C6 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DF [19:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:30:57]wFMCommunicate OK [19:30:57]requested_item fd.num is exist - process it [19:30:57]SAM_PROTO_GetFieldsCounters [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 13 00 00 [19:30:57]Write to MH i2c: E2 08 00 C7 52 80 13 00 00 00 00 00 00 95 [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 62 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 62 00 C7 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 04 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 04 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:57]wFMCommunicate OK [19:30:57]SAM_PROTO_GetFieldsCounters done [19:30:57]requested_item shift.num is exist - process it [19:30:57]requested_item shift.opened is exist - process it [19:30:57]req_shift_opened [19:30:57]FM_GetShiftState [19:30:57]SAM_PROTO_GetShiftState [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 13 01 00 [19:30:57]Write to MH i2c: E2 08 00 C8 52 80 13 01 00 00 00 00 00 97 [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 0E 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 0E 00 C8 52 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DC [19:30:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:57]wFMCommunicate OK [19:30:57]SAM_PROTO_GetShiftState done [19:30:57]FM_GetShiftState done [19:30:57]req_shift_opened done [19:30:57]requested_item shift.open_date is exist - process it [19:30:57]req_shift_open_date [19:30:57]req_shift_open_date done [19:30:57]produce_requested_data done [19:30:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73988,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:30:57]process_action_free close_receipt [19:30:57]json_value_free [19:30:57]json_value_free done [19:30:57]process_json_proto returns [19:30:57]Send response to host [19:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73988,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:30:57]free response buf [19:30:57]execute_script done [19:30:57]execute_script returns [19:30:57]free content buf [19:30:57]Sock 9.Close socket [19:30:57]Sock 9.Thread stoped [19:30:58]accept exits with 8 [19:30:58]New connection [19:30:58]New thread 3067432292 created [19:30:58]Thread 3067575652 joined [19:30:58]Waiting for new connection... [19:30:58] Sock 8.Parse request [19:30:58]Sock 8.Check first char [19:30:58]Sock 8.First char is OK [19:30:58]request: POST /json_proto HTTP/1.0 [19:30:58]Method: POST [19:30:58]URL: /json_proto [19:30:58]Method is POST - this is cgi request [19:30:58]url: /json_proto [19:30:58]query_string will be loaded in cgi processing [19:30:58]execute_cgi json_proto POST (null) [19:30:58]execute_cgi path=json_proto method=POST [19:30:58]POST find Content-Length [19:30:58]Host: 172.17.44.196:8080 [19:30:58]Content-Length: 678 [19:30:58]Content-Type: application/json [19:30:58] [19:30:58]POST finish read [19:30:58]Found Content-Length = 678 [19:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963273", "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" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:58]execute_script... [19:30: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)1963273", "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" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:58]POST & json_proto [19:30:58]process_json_proto [19:30:58]json parsed OK: [19:30:58]protocol is kg_v1.0 [19:30:58]action value=close_receipt [19:30:58]process_action close_receipt [19:30:58]cmd_close_receipt [19:30:58]MH_GetDate [19:30:58]Write to MH i2c: F0 00 00 C9 52 0A [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: F0 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: F0 09 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: F0 09 00 C9 52 00 75 5A 15 67 E7 19 F8 65 BB [19:30:58]GetLastDocTimeStamp 1729452656 [19:30:58]current date 1729452661 [19:30:58]FM_GetShiftState [19:30:58]SAM_PROTO_GetShiftState [19:30:58]wFMCommunicate request_size=4 [19:30:58]MH_SAM_APDU [19:30:58]CAPDU: 80 13 01 00 [19:30:58]Write to MH i2c: E2 08 00 CA 52 80 13 01 00 00 00 00 00 99 [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:58]Read from MH i2c: E2 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 0E 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 0E 00 CA 52 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DE [19:30:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:30:58]wFMCommunicate OK [19:30:58]SAM_PROTO_GetShiftState done [19:30:58]FM_GetShiftState done [19:30:58]opened in 1729384303 [19:30:58]opened+sec_in_day 1729470703 [19:30:58]quantity*price = 40006 [19:30:58]sum+1 = 40007 [19:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 315 20.10.2024 19:31 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73989 ФПД: 196025551773208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193101&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73989&fm=196025551773208&tin=02508201610067®Number=0000000000161154&sum=40000 [19:30:59]StoreToDocumentArchive [19:30:59]shift 170 fd 73989 [19:30:59]save to /storage/0170/doc_00073989 [19:30:59]save last doc name /storage/0170/doc_00073989 to /storage/kkm_last_doc_name [19:30:59]save OK [19:30:59]Clear old archive folders... [19:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:59]tlvbuf is 003D2250 [19:30:59]SAM_PROTO_ClearQueue [19:30:59]wFMCommunicate request_size=4 [19:30:59]MH_SAM_APDU [19:30:59]CAPDU: 80 09 00 00 [19:30:59]Write to MH i2c: E2 08 00 D7 52 80 09 00 00 00 00 00 00 9B [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:59]Read from MH i2c: E2 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 03 00 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 03 00 D7 52 00 90 00 9D [19:30:59]RAPDU: 90 00 [19:30:59]wFMCommunicate OK [19:30:59]SAM_PROTO_ClearQueue done [19:30:59]KKMCreateOFDPacket [19:30:59]OFDProtocolAddRootSTLVToBuf [19:30:59]FM_MakeSignedData [19:30:59]FM_MakeSignedData [19:30:59]SAM_PROTO_SignData [19:30:59]wFMCommunicate request_size=4 [19:30:59]MH_SAM_APDU [19:30:59]CAPDU: 80 0D 01 02 [19:30:59]Write to MH i2c: E2 08 00 D8 52 80 0D 01 02 00 00 00 00 A3 [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:59]Read from MH i2c: E2 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 03 00 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 03 00 D8 52 00 90 00 9E [19:30:59]RAPDU: 90 00 [19:30:59]wFMCommunicate OK [19:30:59]wFMCommunicate request_size=255 [19:30:59]MH_SAM_APDU [19:30: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 75 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 21 01 00 35 04 06 00 B2 [19:30:59]Write to MH i2c: E2 02 01 D9 52 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 75 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 21 01 00 35 04 06 00 B2 00 00 FE [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 03 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 03 00 D9 52 00 90 00 9F [19:31:00]RAPDU: 90 00 [19:31:00]wFMCommunicate OK [19:31:00]wFMCommunicate request_size=10 [19:31:00]MH_SAM_APDU [19:31:00]CAPDU: 80 0D 02 02 05 48 C1 61 5E 18 [19:31:00]Write to MH i2c: E2 0D 00 DA 52 80 0D 02 02 05 00 48 C1 61 5E 18 00 00 90 [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 03 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 03 00 DA 52 00 90 00 A0 [19:31:00]RAPDU: 90 00 [19:31:00]wFMCommunicate OK [19:31:00]wFMCommunicate request_size=4 [19:31:00]MH_SAM_APDU [19:31:00]CAPDU: 80 0D 03 02 [19:31:00]Write to MH i2c: E2 08 00 DB 52 80 0D 03 02 00 00 00 00 A8 [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 0B 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 0B 00 DB 52 00 AB 42 4F 15 F4 EF 32 CB 90 00 DA [19:31:00]RAPDU: AB 42 4F 15 F4 EF 32 CB 90 00 [19:31:00]wFMCommunicate OK [19:31:00]SAM_PROTO_SignData done [19:31:00]FM_MakeSignedData done [19:31:00]CreateOFDProtocolMessage [19:31:00]wFMCommunicate request_size=4 [19:31:00]MH_SAM_APDU [19:31:00]CAPDU: 80 11 00 00 [19:31:00]Write to MH i2c: E2 08 00 DC 52 80 11 00 00 00 00 00 00 A8 [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 17 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 17 00 DC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [19:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:31:00]wFMCommunicate OK [19:31:00]CreateOFDProtocolMessage done [19:31:00]OFDSenderStorePacket 73989 [19:31:00]StoreOFDPacket docnum=73989 [19:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1A 9C 07 01 28 B5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 75 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 21 01 00 35 04 06 00 B2 48 C1 61 5E 18 AB 42 4F 15 F4 EF 32 CB [19:31:00]CheckFolder [19:31:00]dirname=/storage/ofd_packets [19:31:00]CheckFolder done [19:31:00]ProducePacketName [19:31:00]name=ofd_packets/00073989 [19:31:00]NVStorageSaveData ofd_packets/00073989 [19:31:00]File name is /storage/ofd_packets/00073989 [19:31:00]Write 301 bytes [19:31:00]NVStorageSaveData done [19:31:00]OFDSenderStorePacket done [19:31:00]KKMCreateOFDPacket done [19:31:00]NVStorageSaveData kkm_last_timestamp [19:31:00]File name is /storage/kkm_last_timestamp [19:31:00]Write 4 bytes [19:31:00]NVStorageSaveData done [19:31:00]ExternCall_PrintAddStr [19:31:00]wPrintStart [19:31:00]Write to MH i2c: 01 00 00 DD 52 2F [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 07 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 07 00 DD 52 00 00 00 00 00 FF 0F 44 [19:31:00]RasterBufferAndPrint [19:31:00]line Счет N : (1)1963273 [19:31:00]line ИНН: 02508201610067 [19:31:00]line Контрольно-Кассовый Чек [19:31:00]line ПРОДАЖА [19:31:00]line ТРК (МРК, ГНК) : 53 [19:31:00]line Товар: 2710124130 [19:31:00]line Аи-92-К-5 [19:31:00]line 5.980 * 66.90 [19:31:00]line = 400.06 [19:31:00]line НДС 12% НСП 1% [19:31:00]line > о реализуемом товаре [19:31:00]line ОКРУГЛЕНИЕ: -0.06 [19:31:00]line ИТОГО: 400.00 [19:31:00]line Внесено: 400.00 [19:31:00]line СДАЧА: 0.00 [19:31:00]line НСП 1% : 3.54 [19:31:00]line НДС 12% : 42.48 [19:31:00]line Наличными: 400.00 [19:31:00]line Безнал.: 0.00 [19:31:00]line Место: АЗС № 133 "Партнер Нефть" [19:31:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:31:00]line СНО: Общий режим [19:31:00]line Чек 315 20.10.2024 19:31 [19:31:00]line Смена: 170 ФФД: 1.0 [19:31:00]line ЗНМ: 0300000020 [19:31:00]line РНМ: 0000000000161154 [19:31:00]line Версия ККМ: v1.0 [19:31:00]line ФМ: 0000000000963323 [19:31:00]line ФД: 73989 [19:31:00]line ФПД: 196025551773208 [19:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193101&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73989&fm=196025551773208&tin=02508201610067®Number=0000000000161154&sum=40000 [19:31:00]written 0, free lines is 4095 [19:31:00]OFD Sender: Processing packet 73989 [packets to send 15, broken 14] [19:31:00]ProducePacketName [19:31:00]name=ofd_packets/00073989 [19:31:00]OFD Sender: To server: pG, [19:31:00]CommunicateWithHost lk.salyk.kg:30040 [19:31:00]ConnectInit lk.salyk.kg [19:31:00]Connected sock=10 [19:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1A 9C 07 01 28 B5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 75 5A 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 21 01 00 35 04 06 00 B2 48 C1 61 5E 18 AB 42 4F 15 F4 EF 32 CB [19:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5C 6E 47 00 14 22 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 39 36 33 33 32 33 10 04 04 00 05 21 01 00 F4 03 04 00 59 03 15 67 B6 04 01 00 00 57 09 6C 3B BD B1 AF D4 [19:31:00]CommunicateWithHost err = 0 [19:31:00]CheckOFDResponse [19:31:00]1017 (14) - 77093643461234 [19:31:00]1041 (16) - 0000000000963323 [19:31:00]1040 (4) - 73989 [19:31:00]1012 (4) - 20.10.2024 13:19 [19:31:00]1206 (1) - 0 [19:31:00]OFD Sender: Remove packet 73989 [19:31:00]ProducePacketName [19:31:00]name=ofd_packets/00073989 [19:31:00]NVStorageDeleteData [19:31:00]Write to MH i2c: 01 00 00 07 53 5A [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 07 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 07 00 07 53 00 00 00 00 00 F4 0C 61 [19:31:00]RasterBufferAndPrint [19:31:00]line [19:31:00]line [19:31:00]line [19:31:00]line [19:31:00]line [19:31:00]written 0, free lines is 3336 [19:31:00]MH_Cut [19:31:00]Write to MH i2c: D1 01 00 0E 53 01 33 [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: D1 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: D1 01 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: D1 01 00 0E 53 00 32 [19:31:00]Write to MH i2c: 01 00 00 0F 53 62 [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:01]OFD Sender: No OFD packet to send [19:31:01]*** Cut start [19:31:01]*** Partial cut [19:31:01]*** CUTSNS_PIN = 1 [19:31:01]*** CUTSNS_PIN = 0 [19:31:01]*** Brake cut motor [19:31:02]Read from MH i2c: 01 [19:31:02]MH_I2C_Read... [19:31:02]*** Stop cut motor [19:31:02]*** Cut end [19:31:02]Read from MH i2c: 01 07 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 07 00 0F 53 00 00 00 00 00 FF 0F 77 [19:31:02]process_action close_receipt done [19:31:02]requested_data is exist [19:31:02]produce_requested_data [19:31:02]requested_item fm.sn is exist - process it [19:31:02]wFMCommunicate request_size=4 [19:31:02]MH_SAM_APDU [19:31:02]CAPDU: 80 11 00 00 [19:31:02]Write to MH i2c: E2 08 00 10 53 80 11 00 00 00 00 00 00 DD [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:02]Read from MH i2c: E2 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: E2 17 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: E2 17 00 10 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [19:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:31:02]wFMCommunicate OK [19:31:02]requested_item fd.num is exist - process it [19:31:02]SAM_PROTO_GetFieldsCounters [19:31:02]wFMCommunicate request_size=4 [19:31:02]MH_SAM_APDU [19:31:02]CAPDU: 80 13 00 00 [19:31:02]Write to MH i2c: E2 08 00 11 53 80 13 00 00 00 00 00 00 E0 [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:02]Read from MH i2c: E2 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: E2 62 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: E2 62 00 11 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 05 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 05 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:02]wFMCommunicate OK [19:31:02]SAM_PROTO_GetFieldsCounters done [19:31:02]requested_item shift.num is exist - process it [19:31:02]requested_item shift.opened is exist - process it [19:31:02]req_shift_opened [19:31:02]FM_GetShiftState [19:31:02]SAM_PROTO_GetShiftState [19:31:02]wFMCommunicate request_size=4 [19:31:02]MH_SAM_APDU [19:31:02]CAPDU: 80 13 01 00 [19:31:02]Write to MH i2c: E2 08 00 12 53 80 13 01 00 00 00 00 00 E2 [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:02]Read from MH i2c: E2 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: E2 0E 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: E2 0E 00 12 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 27 [19:31:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:31:02]wFMCommunicate OK [19:31:02]SAM_PROTO_GetShiftState done [19:31:02]FM_GetShiftState done [19:31:02]req_shift_opened done [19:31:02]requested_item shift.open_date is exist - process it [19:31:02]req_shift_open_date [19:31:02]req_shift_open_date done [19:31:02]produce_requested_data done [19:31:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73989,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:31:02]process_action_free close_receipt [19:31:02]json_value_free [19:31:02]json_value_free done [19:31:02]process_json_proto returns [19:31:02]Send response to host [19:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73989,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:31:02]free response buf [19:31:02]execute_script done [19:31:02]execute_script returns [19:31:02]free content buf [19:31:02]Sock 8.Close socket [19:31:02]Sock 8.Thread stoped [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:54]accept exits with 9 [19:40:54]New connection [19:40:54]New thread 3067575652 created [19:40:54]Thread 3067432292 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.44.196:8080 [19:40:54]Content-Length: 683 [19:40:54]Content-Type: application/json [19:40:54] [19:40:54]POST finish read [19:40:54]Found Content-Length = 683 [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)272838", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\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" ] } } [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)272838", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\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" ] } } [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 13 53 55 [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 13 53 00 CA 5C 15 67 E7 19 F8 65 5D [19:40:54]GetLastDocTimeStamp 1729452661 [19:40:54]current date 1729453258 [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 14 53 80 13 01 00 00 00 00 00 E4 [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 14 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 29 [19:40:54]RAPDU: 09 00 01 6F 4F 14 67 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 1729384303 [19:40:54]opened+sec_in_day 1729470703 [19:40:54]quantity*price = 11000 [19:40:54]sum+1 = 11001 [19:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 316 20.10.2024 19:40 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73990 ФПД: 102265332378169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194058&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73990&fm=102265332378169&tin=02508201610067®Number=0000000000161154&sum=11000 0 [19:40:56]StoreToDocumentArchive [19:40:56]shift 170 fd 73990 [19:40:56]save to /storage/0170/doc_00073990 [19:40:56]save last doc name /storage/0170/doc_00073990 to /storage/kkm_last_doc_name [19:40:56]save OK [19:40:56]Clear old archive folders... [19:40:56]ProcessDocumentItem done err = 0, tmpTLVsize=291 [19:40:56]tlvbuf is 0039DD10 [19:40:56]SAM_PROTO_ClearQueue [19:40:56]wFMCommunicate request_size=4 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 09 00 00 [19:40:56]Write to MH i2c: E2 08 00 21 53 80 09 00 00 00 00 00 00 E6 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 09 00 00... 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 21 53 00 90 00 E8 [19:40:56]RAPDU: 90 00 [19:40:56]wFMCommunicate OK [19:40:56]SAM_PROTO_ClearQueue done [19:40:56]KKMCreateOFDPacket [19:40:56]OFDProtocolAddRootSTLVToBuf [19:40:56]FM_MakeSignedData [19:40:56]FM_MakeSignedData [19:40:56]SAM_PROTO_SignData [19:40:56]wFMCommunicate request_size=4 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 0D 01 02 [19:40:56]Write to MH i2c: E2 08 00 22 53 80 0D 01 02 00 00 00 00 EE [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 0D 01 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 22 53 00 90 00 E9 [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 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 3C 01 00 00 F4 03 04 00 CA 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [19:40:56]Write to MH i2c: E2 02 01 23 53 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 3C 01 00 00 F4 03 04 00 CA 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 EA [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 23 53 00 90 00 EA [19:40:56]RAPDU: 90 00 [19:40:56]wFMCommunicate OK [19:40:56]wFMCommunicate request_size=50 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 0D 02 02 2D 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 21 01 00 35 04 06 00 5D 02 80 CF 2A 39 [19:40:56]Write to MH i2c: E2 35 00 24 53 80 0D 02 02 2D 00 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 21 01 00 35 04 06 00 5D 02 80 CF 2A 39 00 00 7C [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 24 53 00 90 00 EB [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 25 53 80 0D 03 02 00 00 00 00 F3 [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 25 53 00 9C EC D7 BA 0E 21 DA 40 90 00 56 [19:40:56]RAPDU: 9C EC D7 BA 0E 21 DA 40 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 26 53 80 11 00 00 00 00 00 00 F3 [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 26 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [19:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:40:56]wFMCommunicate OK [19:40:56]CreateOFDProtocolMessage done [19:40:56]OFDSenderStorePacket 73990 [19:40:56]StoreOFDPacket docnum=73990 [19:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 37 01 00 00 63 28 2F 01 07 D3 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 3C 01 00 00 F4 03 04 00 CA 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 21 01 00 35 04 06 00 5D 02 80 CF 2A 39 9C EC D7 BA 0E 21 DA 40 [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/00073990 [19:40:56]NVStorageSaveData ofd_packets/00073990 [19:40:56]File name is /storage/ofd_packets/00073990 [19:40:56]Write 341 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 27 53 7A [19:40:56]OFD Sender: Processing packet 73990 [packets to send 15, broken 14] [19:40:56]ProducePacketName [19:40:56]name=ofd_packets/00073990 [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]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 27 53 00 00 00 00 00 FF 0F 8F [19:40:56]RasterBufferAndPrint [19:40:56]line Счет N : (3)272838 [19:40:56]line ИНН: 02508201610067 [19:40:56]line Контрольно-Кассовый Чек [19:40:56]line ПРОДАЖА [19:40:56]line Товар: 4870202522015 [19:40:56]line Напиток Maxi Чай Грушевый 1,2л [19:40:56]line 1.000 * 110.00 [19:40:56]line = 110.00 [19:40:56]line НДС 12% НСП 1% [19:40:56]line > о реализуемом товаре [19:40:56]line ИТОГО: 110.00 [19:40:56]line НСП 1% : 0.97 [19:40:56]line НДС 12% : 11.68 [19:40:56]line Наличными: 110.00 [19:40:56]line Безнал.: 0.00 [19:40:56]line Место: АЗС № 133 "Партнер Нефть" [19:40:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:40:56]line СНО: Общий режим [19:40:56]line Чек 316 20.10.2024 19:40 [19:40:56]line Смена: 170 ФФД: 1.0 [19:40:56]line ЗНМ: 0300000020 [19:40:56]line РНМ: 0000000000161154 [19:40:56]line Версия ККМ: v1.0 [19:40:56]line ФМ: 0000000000963323 [19:40:56]line ФД: 73990 [19:40:56]line ФПД: 102265332378169 [19:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194058&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73990&fm=102265332378169&tin=02508201610067®Number=0000000000161154&sum=11000 [19:40:57]line 0 [19:40:57]Connected sock=10 [19:40:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 37 01 00 00 63 28 2F 01 07 D3 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 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 3C 01 00 00 F4 03 04 00 CA 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 written 0, free lines is 4095 [19:40:57]30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 21 01 00 35 04 06 00 5D 02 80 CF 2A 39 9C EC D7 BA 0E 21 DA 40 [19:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 77 07 47 00 9E 7B 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 39 36 33 33 32 33 10 04 04 00 06 21 01 00 F4 03 04 00 AE 05 15 67 B6 04 01 00 00 AD D2 4F 9B 82 E5 E2 11 [19:40:57]CommunicateWithHost err = 0 [19:40:57]CheckOFDResponse [19:40:57]1017 (14) - 77093643461234 [19:40:57]1041 (16) - 0000000000963323 [19:40:57]1040 (4) - 73990 [19:40:57]1012 (4) - 20.10.2024 13:29 [19:40:57]1206 (1) - 0 [19:40:57]OFD Sender: Remove packet 73990 [19:40:57]ProducePacketName [19:40:57]name=ofd_packets/00073990 [19:40:57]NVStorageDeleteData [19:40:57]Write to MH i2c: 01 00 00 4F 53 A2 [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 4F 53 00 00 00 00 00 D3 0C 88 [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 3288 [19:40:57]MH_Cut [19:40:57]Write to MH i2c: D1 01 00 56 53 01 7B [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 56 53 00 7A [19:40:57]Write to MH i2c: 01 00 00 57 53 AA [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]*** Partial cut [19:40:58]*** CUTSNS_PIN = 1 [19:40:58]*** CUTSNS_PIN = 0 [19:40:58]*** Brake cut motor [19:40:58]Read from MH i2c: 01 [19:40:58]MH_I2C_Read... [19:40:58]*** Stop cut motor [19:40:58]*** Cut end [19:40:58]Read from MH i2c: 01 07 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: 01 07 00 57 53 00 00 00 00 00 FF 0F BF [19:40:58]process_action close_receipt done [19:40:58]requested_data is exist [19:40:58]produce_requested_data [19:40:58]requested_item fm.sn is exist - process it [19:40:58]wFMCommunicate request_size=4 [19:40:58]MH_SAM_APDU [19:40:58]CAPDU: 80 11 00 00 [19:40:58]Write to MH i2c: E2 08 00 58 53 80 11 00 00 00 00 00 00 25 [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:58]Read from MH i2c: E2 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 17 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 17 00 58 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 72 [19:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:40:59]wFMCommunicate OK [19:40:59]requested_item fd.num is exist - process it [19:40:59]SAM_PROTO_GetFieldsCounters [19:40:59]wFMCommunicate request_size=4 [19:40:59]MH_SAM_APDU [19:40:59]CAPDU: 80 13 00 00 [19:40:59]Write to MH i2c: E2 08 00 59 53 80 13 00 00 00 00 00 00 28 [19:40:59]Write i2c OK [19:40:59]MH_I2C_Read... [19:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:59]Read from MH i2c: E2 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 62 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 62 00 59 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 06 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [19:40:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 06 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:59]wFMCommunicate OK [19:40:59]SAM_PROTO_GetFieldsCounters done [19:40:59]requested_item shift.num is exist - process it [19:40:59]requested_item shift.opened is exist - process it [19:40:59]req_shift_opened [19:40:59]FM_GetShiftState [19:40:59]SAM_PROTO_GetShiftState [19:40:59]wFMCommunicate request_size=4 [19:40:59]MH_SAM_APDU [19:40:59]CAPDU: 80 13 01 00 [19:40:59]Write to MH i2c: E2 08 00 5A 53 80 13 01 00 00 00 00 00 2A [19:40:59]Write i2c OK [19:40:59]MH_I2C_Read... [19:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:59]Read from MH i2c: E2 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 0E 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 0E 00 5A 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [19:40:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:40:59]wFMCommunicate OK [19:40:59]SAM_PROTO_GetShiftState done [19:40:59]FM_GetShiftState done [19:40:59]req_shift_opened done [19:40:59]requested_item shift.open_date is exist - process it [19:40:59]req_shift_open_date [19:40:59]req_shift_open_date done [19:40:59]produce_requested_data done [19:40:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73990,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:40:59]process_action_free close_receipt [19:40:59]json_value_free [19:40:59]json_value_free done [19:40:59]process_json_proto returns [19:40:59]Send response to host [19:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73990,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:40:59]free response buf [19:40:59]execute_script done [19:40:59]execute_script returns [19:40:59]free content buf [19:40:59]Sock 9.Close socket [19:40:59]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:28]accept exits with 8 [19:41:28]New connection [19:41:28]New thread 3067432292 created [19:41:28]Thread 3067575652 joined [19:41:28]Waiting for new connection... [19:41:28] Sock 8.Parse request [19:41:28]Sock 8.Check first char [19:41:28]Sock 8.First char is OK [19:41:28]request: POST /json_proto HTTP/1.0 [19:41:28]Method: POST [19:41:28]URL: /json_proto [19:41:28]Method is POST - this is cgi request [19:41:28]url: /json_proto [19:41:28]query_string will be loaded in cgi processing [19:41:28]execute_cgi json_proto POST (null) [19:41:28]execute_cgi path=json_proto method=POST [19:41:28]POST find Content-Length [19:41:28]Host: 172.17.44.196:8080 [19:41:28]Content-Length: 619 [19:41:28]Content-Type: application/json [19:41:28] [19:41:28]POST finish read [19:41:28]Found Content-Length = 619 [19:41:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272839", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [19:41:28]execute_script... [19:41: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)272839", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [19:41:28]POST & json_proto [19:41:28]process_json_proto [19:41:28]json parsed OK: [19:41:28]protocol is kg_v1.0 [19:41:28]action value=close_receipt [19:41:28]process_action close_receipt [19:41:28]cmd_close_receipt [19:41:28]MH_GetDate [19:41:28]Write to MH i2c: F0 00 00 5B 53 9D [19:41:28]Write i2c OK [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: F0 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: F0 09 00 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: F0 09 00 5B 53 00 EC 5C 15 67 E7 19 F8 65 C7 [19:41:28]GetLastDocTimeStamp 1729453258 [19:41:28]current date 1729453292 [19:41:28]FM_GetShiftState [19:41:28]SAM_PROTO_GetShiftState [19:41:28]wFMCommunicate request_size=4 [19:41:28]MH_SAM_APDU [19:41:28]CAPDU: 80 13 01 00 [19:41:28]Write to MH i2c: E2 08 00 5C 53 80 13 01 00 00 00 00 00 2C [19:41:28]Write i2c OK [19:41:28]MH_I2C_Read... [19:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:28]Read from MH i2c: E2 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 0E 00 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 0E 00 5C 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [19:41:28]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:41:28]wFMCommunicate OK [19:41:28]SAM_PROTO_GetShiftState done [19:41:28]FM_GetShiftState done [19:41:28]opened in 1729384303 [19:41:28]opened+sec_in_day 1729470703 [19:41:28]quantity*price = 14000 [19:41:28]sum+1 = 14001 [19:41:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 317 20.10.2024 19:41 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73991 ФПД: 48822069157736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194132&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73991&fm=48822069157736&tin=02508201610067®Number=0000000000161154&sum=14000 0 [19:41:30]StoreToDocumentArchive [19:41:30]shift 170 fd 73991 [19:41:30]save to /storage/0170/doc_00073991 [19:41:30]save last doc name /storage/0170/doc_00073991 to /storage/kkm_last_doc_name [19:41:30]save OK [19:41:30]Clear old archive folders... [19:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:41:30]tlvbuf is 003B7030 [19:41:30]SAM_PROTO_ClearQueue [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 09 00 00 [19:41:30]Write to MH i2c: E2 08 00 69 53 80 09 00 00 00 00 00 00 2E [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 69 53 00 90 00 30 [19:41:30]RAPDU: 90 00 [19:41:30]wFMCommunicate OK [19:41:30]SAM_PROTO_ClearQueue done [19:41:30]KKMCreateOFDPacket [19:41:30]OFDProtocolAddRootSTLVToBuf [19:41:30]FM_MakeSignedData [19:41:30]FM_MakeSignedData [19:41:30]SAM_PROTO_SignData [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 0D 01 02 [19:41:30]Write to MH i2c: E2 08 00 6A 53 80 0D 01 02 00 00 00 00 36 [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:30]Read from MH i2c: E2 03 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 6A 53 00 90 00 31 [19:41:30]RAPDU: 90 00 [19:41:30]wFMCommunicate OK [19:41:30]wFMCommunicate request_size=255 [19:41:30]MH_SAM_APDU [19:41:30]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 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 3D 01 00 00 F4 03 04 00 EC 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:41:30]Write to MH i2c: E2 02 01 6B 53 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 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 3D 01 00 00 F4 03 04 00 EC 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 5F [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 6B 53 00 90 00 32 [19:41:30]RAPDU: 90 00 [19:41:30]wFMCommunicate OK [19:41:30]wFMCommunicate request_size=30 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 07 21 01 00 35 04 06 00 2C 67 46 16 DF 68 [19:41:30]Write to MH i2c: E2 21 00 6C 53 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 07 21 01 00 35 04 06 00 2C 67 46 16 DF 68 00 00 8B [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 03 00 6C 53 00 90 00 33 [19:41:30]RAPDU: 90 00 [19:41:30]wFMCommunicate OK [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 0D 03 02 [19:41:30]Write to MH i2c: E2 08 00 6D 53 80 0D 03 02 00 00 00 00 3B [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 0B 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 0B 00 6D 53 00 50 BC E7 B2 60 BE 2D 16 90 00 42 [19:41:30]RAPDU: 50 BC E7 B2 60 BE 2D 16 90 00 [19:41:30]wFMCommunicate OK [19:41:30]SAM_PROTO_SignData done [19:41:30]FM_MakeSignedData done [19:41:30]CreateOFDProtocolMessage [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 11 00 00 [19:41:30]Write to MH i2c: E2 08 00 6E 53 80 11 00 00 00 00 00 00 3B [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 17 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 17 00 6E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [19:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:41:30]wFMCommunicate OK [19:41:30]CreateOFDProtocolMessage done [19:41:30]OFDSenderStorePacket 73991 [19:41:30]StoreOFDPacket docnum=73991 [19:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 6F 3C 1B 01 71 DD 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 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 3D 01 00 00 F4 03 04 00 EC 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 21 01 00 35 04 06 00 2C 67 46 16 DF 68 50 BC E7 B2 60 BE 2D 16 [19:41:30]CheckFolder [19:41:30]dirname=/storage/ofd_packets [19:41:30]CheckFolder done [19:41:30]ProducePacketName [19:41:30]name=ofd_packets/00073991 [19:41:30]NVStorageSaveData ofd_packets/00073991 [19:41:30]File name is /storage/ofd_packets/00073991 [19:41:30]Write 321 bytes [19:41:30]NVStorageSaveData done [19:41:30]OFDSenderStorePacket done [19:41:30]KKMCreateOFDPacket done [19:41:30]NVStorageSaveData kkm_last_timestamp [19:41:30]File name is /storage/kkm_last_timestamp [19:41:30]Write 4 bytes [19:41:30]NVStorageSaveData done [19:41:30]ExternCall_PrintAddStr [19:41:30]wPrintStart [19:41:30]Write to MH i2c: 01 00 00 6F 53 C2 [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: 01 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: 01 07 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: 01 07 00 6F 53 00 00 00 00 00 FF 0F D7 [19:41:30]RasterBufferAndPrint [19:41:30]line Счет N : (3)272839 [19:41:30]line ИНН: 02508201610067 [19:41:30]line Контрольно-Кассовый Чек [19:41:30]line ПРОДАЖА [19:41:30]line Товар: 47802995 [19:41:30]line Сигареты Winston XS Silver [19:41:30]line 1.000 * 140.00 [19:41:30]line = 140.00 [19:41:30]line НДС 12% НСП 1% [19:41:30]line > о реализуемом товаре [19:41:30]line ИТОГО: 140.00 [19:41:30]line НСП 1% : 1.24 [19:41:30]line НДС 12% : 14.87 [19:41:30]line Наличными: 140.00 [19:41:30]line Безнал.: 0.00 [19:41:30]line Место: АЗС № 133 "Партнер Нефть" [19:41:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:41:30]line СНО: Общий режим [19:41:30]line Чек 317 20.10.2024 19:41 [19:41:30]line Смена: 170 ФФД: 1.0 [19:41:30]line ЗНМ: 0300000020 [19:41:30]line РНМ: 0000000000161154 [19:41:30]line Версия ККМ: v1.0 [19:41:30]line ФМ: 0000000000963323 [19:41:30]line ФД: 73991 [19:41:30]line ФПД: 48822069157736 [19:41:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194132&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73991&fm=48822069157736&tin=02508201610067®Number=0000000000161154&sum=14000 [19:41:30]OFD Sender: Processing packet 73991 [packets to send 15, broken 14] [19:41:30]ProducePacketName [19:41:30]name=ofd_packets/00073991 [19:41:30]OFD Sender: To server: pG, [19:41:30]CommunicateWithHost lk.salyk.kg:30040 [19:41:30]ConnectInit lk.salyk.kg [19:41:30]line 0 [19:41:30]written 0, free lines is 4095 [19:41:31]Connected sock=10 [19:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 6F 3C 1B 01 71 DD 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 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 3D 01 00 00 F4 03 04 00 EC 5C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 21 01 00 35 04 06 00 2C 67 46 16 DF 68 50 BC E7 B2 60 BE 2D 16 [19:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B 51 47 00 70 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 39 36 33 33 32 33 10 04 04 00 07 21 01 00 F4 03 04 00 D0 05 15 67 B6 04 01 00 00 06 79 3B 85 16 7D 45 43 [19:41:31]CommunicateWithHost err = 0 [19:41:31]CheckOFDResponse [19:41:31]1017 (14) - 77093643461234 [19:41:31]1041 (16) - 0000000000963323 [19:41:31]1040 (4) - 73991 [19:41:31]1012 (4) - 20.10.2024 13:29 [19:41:31]1206 (1) - 0 [19:41:31]OFD Sender: Remove packet 73991 [19:41:31]ProducePacketName [19:41:31]name=ofd_packets/00073991 [19:41:31]NVStorageDeleteData [19:41:31]Write to MH i2c: 01 00 00 96 53 E9 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: 01 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: 01 07 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: 01 07 00 96 53 00 00 00 00 00 E6 0C E2 [19:41:31]RasterBufferAndPrint [19:41:31]line [19:41:31]line [19:41:31]line [19:41:31]line [19:41:31]line [19:41:31]written 0, free lines is 3306 [19:41:31]MH_Cut [19:41:31]Write to MH i2c: D1 01 00 9D 53 01 C2 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: D1 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: D1 01 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: D1 01 00 9D 53 00 C1 [19:41:31]Write to MH i2c: 01 00 00 9E 53 F1 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]OFD Sender: No OFD packet to send [19:41:32]*** Cut start [19:41:32]*** Partial cut [19:41:32]*** CUTSNS_PIN = 1 [19:41:32]*** CUTSNS_PIN = 0 [19:41:32]*** Brake cut motor [19:41:32]Read from MH i2c: 01 [19:41:32]MH_I2C_Read... [19:41:32]*** Stop cut motor [19:41:32]*** Cut end [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 9E 53 00 00 00 00 00 FF 0F 06 [19:41:32]process_action close_receipt done [19:41:32]requested_data is exist [19:41:32]produce_requested_data [19:41:32]requested_item fm.sn is exist - process it [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 9F 53 80 11 00 00 00 00 00 00 6C [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 9F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B9 [19:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:41:32]wFMCommunicate OK [19:41:32]requested_item fd.num is exist - process it [19:41:32]SAM_PROTO_GetFieldsCounters [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 13 00 00 [19:41:32]Write to MH i2c: E2 08 00 A0 53 80 13 00 00 00 00 00 00 6F [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:33]Read from MH i2c: E2 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: E2 62 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: E2 62 00 A0 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 07 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [19:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 07 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:33]wFMCommunicate OK [19:41:33]SAM_PROTO_GetFieldsCounters done [19:41:33]requested_item shift.num is exist - process it [19:41:33]requested_item shift.opened is exist - process it [19:41:33]req_shift_opened [19:41:33]FM_GetShiftState [19:41:33]SAM_PROTO_GetShiftState [19:41:33]wFMCommunicate request_size=4 [19:41:33]MH_SAM_APDU [19:41:33]CAPDU: 80 13 01 00 [19:41:33]Write to MH i2c: E2 08 00 A1 53 80 13 01 00 00 00 00 00 71 [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:33]Read from MH i2c: E2 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: E2 0E 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: E2 0E 00 A1 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B6 [19:41:33]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:41:33]wFMCommunicate OK [19:41:33]SAM_PROTO_GetShiftState done [19:41:33]FM_GetShiftState done [19:41:33]req_shift_opened done [19:41:33]requested_item shift.open_date is exist - process it [19:41:33]req_shift_open_date [19:41:33]req_shift_open_date done [19:41:33]produce_requested_data done [19:41:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73991,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:41:33]process_action_free close_receipt [19:41:33]json_value_free [19:41:33]json_value_free done [19:41:33]process_json_proto returns [19:41:33]Send response to host [19:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73991,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:41:33]free response buf [19:41:33]execute_script done [19:41:33]execute_script returns [19:41:33]free content buf [19:41:33]Sock 8.Close socket [19:41:33]Sock 8.Thread stoped [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:37]accept exits with 9 [19:43:37]New connection [19:43:37]New thread 3067575652 created [19:43:37]Thread 3067432292 joined [19:43:37]Waiting for new connection... [19:43:37] Sock 9.Parse request [19:43:37]Sock 9.Check first char [19:43:37]Sock 9.First char is OK [19:43:37]request: POST /json_proto HTTP/1.0 [19:43:37]Method: POST [19:43:37]URL: /json_proto [19:43:37]Method is POST - this is cgi request [19:43:37]url: /json_proto [19:43:37]query_string will be loaded in cgi processing [19:43:37]execute_cgi json_proto POST (null) [19:43:37]execute_cgi path=json_proto method=POST [19:43:37]POST find Content-Length [19:43:37]Host: 172.17.44.196:8080 [19:43:37]Content-Length: 678 [19:43:37]Content-Type: application/json [19:43:37] [19:43:37]POST finish read [19:43:37]Found Content-Length = 678 [19:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963285", "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" : 7.480, "sum" : 500.41, "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" ] } } [19:43:37]execute_script... [19:43: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)1963285", "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" : 7.480, "sum" : 500.41, "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" ] } } [19:43:37]POST & json_proto [19:43:37]process_json_proto [19:43:37]json parsed OK: [19:43:37]protocol is kg_v1.0 [19:43:37]action value=close_receipt [19:43:37]process_action close_receipt [19:43:37]cmd_close_receipt [19:43:37]MH_GetDate [19:43:37]Write to MH i2c: F0 00 00 A2 53 E4 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: F0 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: F0 09 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: F0 09 00 A2 53 00 6D 5D 15 67 E7 19 F8 65 90 [19:43:37]GetLastDocTimeStamp 1729453292 [19:43:37]current date 1729453421 [19:43:37]FM_GetShiftState [19:43:37]SAM_PROTO_GetShiftState [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 13 01 00 [19:43:37]Write to MH i2c: E2 08 00 A3 53 80 13 01 00 00 00 00 00 73 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0E 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0E 00 A3 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B8 [19:43:37]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_GetShiftState done [19:43:37]FM_GetShiftState done [19:43:37]opened in 1729384303 [19:43:37]opened+sec_in_day 1729470703 [19:43:37]quantity*price = 50041 [19:43:37]sum+1 = 50042 [19:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 318 20.10.2024 19:43 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73992 ФПД: 85975336088902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194341&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73992&fm=85975336088902&tin=02508201610067®Number=0000000000161154&sum=50000 [19:43:39]StoreToDocumentArchive [19:43:39]shift 170 fd 73992 [19:43:39]save to /storage/0170/doc_00073992 [19:43:39]save last doc name /storage/0170/doc_00073992 to /storage/kkm_last_doc_name [19:43:39]save OK [19:43:39]Clear old archive folders... [19:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:39]tlvbuf is 004CD3D0 [19:43:39]SAM_PROTO_ClearQueue [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 09 00 00 [19:43:39]Write to MH i2c: E2 08 00 B0 53 80 09 00 00 00 00 00 00 75 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 B0 53 00 90 00 77 [19:43:39]RAPDU: 90 00 [19:43:39]wFMCommunicate OK [19:43:39]SAM_PROTO_ClearQueue done [19:43:39]KKMCreateOFDPacket [19:43:39]OFDProtocolAddRootSTLVToBuf [19:43:39]FM_MakeSignedData [19:43:39]FM_MakeSignedData [19:43:39]SAM_PROTO_SignData [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 0D 01 02 [19:43:39]Write to MH i2c: E2 08 00 B1 53 80 0D 01 02 00 00 00 00 7D [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 B1 53 00 90 00 78 [19:43:39]RAPDU: 90 00 [19:43:39]wFMCommunicate OK [19:43:39]wFMCommunicate request_size=255 [19:43:39]MH_SAM_APDU [19:43:39]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3E 01 00 00 F4 03 04 00 6D 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 21 01 00 35 04 06 00 4E [19:43:39]Write to MH i2c: E2 02 01 B2 53 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3E 01 00 00 F4 03 04 00 6D 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 21 01 00 35 04 06 00 4E 00 00 A6 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 B2 53 00 90 00 79 [19:43:39]RAPDU: 90 00 [19:43:39]wFMCommunicate OK [19:43:39]wFMCommunicate request_size=10 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 0D 02 02 05 31 B1 5D F5 46 [19:43:39]Write to MH i2c: E2 0D 00 B3 53 80 0D 02 02 05 00 31 B1 5D F5 46 00 00 04 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 03 00 B3 53 00 90 00 7A [19:43:39]RAPDU: 90 00 [19:43:39]wFMCommunicate OK [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 0D 03 02 [19:43:39]Write to MH i2c: E2 08 00 B4 53 80 0D 03 02 00 00 00 00 82 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 0B 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 0B 00 B4 53 00 FB F6 FA 7A 01 FA 28 83 90 00 8E [19:43:39]RAPDU: FB F6 FA 7A 01 FA 28 83 90 00 [19:43:39]wFMCommunicate OK [19:43:39]SAM_PROTO_SignData done [19:43:39]FM_MakeSignedData done [19:43:39]CreateOFDProtocolMessage [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 11 00 00 [19:43:39]Write to MH i2c: E2 08 00 B5 53 80 11 00 00 00 00 00 00 82 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 B5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CF [19:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:43:39]wFMCommunicate OK [19:43:39]CreateOFDProtocolMessage done [19:43:39]OFDSenderStorePacket 73992 [19:43:39]StoreOFDPacket docnum=73992 [19:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 81 92 07 01 64 12 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3E 01 00 00 F4 03 04 00 6D 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 21 01 00 35 04 06 00 4E 31 B1 5D F5 46 FB F6 FA 7A 01 FA 28 83 [19:43:39]CheckFolder [19:43:39]dirname=/storage/ofd_packets [19:43:39]CheckFolder done [19:43:39]ProducePacketName [19:43:39]name=ofd_packets/00073992 [19:43:39]NVStorageSaveData ofd_packets/00073992 [19:43:39]File name is /storage/ofd_packets/00073992 [19:43:39]Write 301 bytes [19:43:39]NVStorageSaveData done [19:43:39]OFDSenderStorePacket done [19:43:39]KKMCreateOFDPacket done [19:43:39]NVStorageSaveData kkm_last_timestamp [19:43:39]File name is /storage/kkm_last_timestamp [19:43:39]Write 4 bytes [19:43:39]NVStorageSaveData done [19:43:39]ExternCall_PrintAddStr [19:43:39]wPrintStart [19:43:39]Write to MH i2c: 01 00 00 B6 53 09 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 B6 53 00 00 00 00 00 FF 0F 1E [19:43:39]RasterBufferAndPrint [19:43:39]line Счет N : (1)1963285 [19:43:39]line ИНН: 02508201610067 [19:43:39]line Контрольно-Кассовый Чек [19:43:39]line ПРОДАЖА [19:43:39]line ТРК (МРК, ГНК) : 43 [19:43:39]line Товар: 2710124130 [19:43:39]line Аи-92-К-5 [19:43:39]line 7.480 * 66.90 [19:43:39]line = 500.41 [19:43:39]line НДС 12% НСП 1% [19:43:39]line > о реализуемом товаре [19:43:39]line ОКРУГЛЕНИЕ: -0.41 [19:43:39]line ИТОГО: 500.00 [19:43:39]line Внесено: 500.00 [19:43:39]line СДАЧА: 0.00 [19:43:39]line НСП 1% : 4.43 [19:43:39]line НДС 12% : 53.14 [19:43:39]line Наличными: 500.00 [19:43:39]line Безнал.: 0.00 [19:43:39]line Место: АЗС № 133 "Партнер Нефть" [19:43:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:43:39]line СНО: Общий режим [19:43:39]line Чек 318 20.10.2024 19:43 [19:43:39]line Смена: 170 ФФД: 1.0 [19:43:39]line ЗНМ: 0300000020 [19:43:39]line РНМ: 0000000000161154 [19:43:39]line Версия ККМ: v1.0 [19:43:39]line ФМ: 0000000000963323 [19:43:39]line ФД: 73992 [19:43:39]line ФПД: 85975336088902 [19:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194341&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73992&fm=85975336088902&tin=02508201610067®Number=0000000000161154&sum=50000 [19:43:39]OFD Sender: Processing packet 73992 [packets to send 15, broken 14] [19:43:39]ProducePacketName [19:43:39]name=ofd_packets/00073992 [19:43:39]OFD Sender: To server: pG, [19:43:39]CommunicateWithHost lk.salyk.kg:30040 [19:43:39]ConnectInit lk.salyk.kg [19:43:39]written 0, free lines is 4095 [19:43:40]Connected sock=10 [19:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 81 92 07 01 64 12 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 3E 01 00 00 F4 03 04 00 6D 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 21 01 00 35 04 06 00 4E 31 B1 5D F5 46 FB F6 FA 7A 01 FA 28 83 [19:43:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E9 1B 47 00 4C 94 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 39 36 33 33 32 33 10 04 04 00 08 21 01 00 F4 03 04 00 51 06 15 67 B6 04 01 00 00 D9 89 70 AB E6 A6 89 9A [19:43:40]CommunicateWithHost err = 0 [19:43:40]CheckOFDResponse [19:43:40]1017 (14) - 77093643461234 [19:43:40]1041 (16) - 0000000000963323 [19:43:40]1040 (4) - 73992 [19:43:40]1012 (4) - 20.10.2024 13:32 [19:43:40]1206 (1) - 0 [19:43:40]OFD Sender: Remove packet 73992 [19:43:40]ProducePacketName [19:43:40]name=ofd_packets/00073992 [19:43:40]NVStorageDeleteData [19:43:40]Write to MH i2c: 01 00 00 E0 53 33 [19:43:40]Write i2c OK [19:43:40]MH_I2C_Read... [19:43:40]Read from MH i2c: 01 [19:43:40]MH_I2C_Read... [19:43:40]Read from MH i2c: 01 07 00 [19:43:40]MH_I2C_Read... [19:43:40]Read from MH i2c: 01 07 00 E0 53 00 00 00 00 00 B6 0C FC [19:43:40]RasterBufferAndPrint [19:43:40]line [19:43:40]line [19:43:40]line [19:43:40]line [19:43:40]line [19:43:40]written 0, free lines is 3259 [19:43:40]MH_Cut [19:43:40]Write to MH i2c: D1 01 00 E7 53 01 0C [19:43:40]Write i2c OK [19:43:40]MH_I2C_Read... [19:43:40]Read from MH i2c: D1 [19:43:40]MH_I2C_Read... [19:43:40]Read from MH i2c: D1 01 00 [19:43:40]MH_I2C_Read... [19:43:40]Read from MH i2c: D1 01 00 E7 53 00 0B [19:43:40]Write to MH i2c: 01 00 00 E8 53 3B [19:43:40]Write i2c OK [19:43:40]MH_I2C_Read... [19:43:40]OFD Sender: No OFD packet to send [19:43:41]*** Cut start [19:43:41]*** Partial cut [19:43:41]*** CUTSNS_PIN = 1 [19:43:41]*** CUTSNS_PIN = 0 [19:43:41]*** Brake cut motor [19:43:41]Read from MH i2c: 01 [19:43:41]MH_I2C_Read... [19:43:41]*** Stop cut motor [19:43:41]*** Cut end [19:43:41]Read from MH i2c: 01 07 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: 01 07 00 E8 53 00 00 00 00 00 FF 0F 50 [19:43:41]process_action close_receipt done [19:43:41]requested_data is exist [19:43:41]produce_requested_data [19:43:41]requested_item fm.sn is exist - process it [19:43:41]wFMCommunicate request_size=4 [19:43:41]MH_SAM_APDU [19:43:41]CAPDU: 80 11 00 00 [19:43:41]Write to MH i2c: E2 08 00 E9 53 80 11 00 00 00 00 00 00 B6 [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:41]Read from MH i2c: E2 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 17 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 17 00 E9 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [19:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:43:41]wFMCommunicate OK [19:43:41]requested_item fd.num is exist - process it [19:43:41]SAM_PROTO_GetFieldsCounters [19:43:41]wFMCommunicate request_size=4 [19:43:41]MH_SAM_APDU [19:43:41]CAPDU: 80 13 00 00 [19:43:41]Write to MH i2c: E2 08 00 EA 53 80 13 00 00 00 00 00 00 B9 [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 62 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 62 00 EA 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 08 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [19:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 08 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:42]wFMCommunicate OK [19:43:42]SAM_PROTO_GetFieldsCounters done [19:43:42]requested_item shift.num is exist - process it [19:43:42]requested_item shift.opened is exist - process it [19:43:42]req_shift_opened [19:43:42]FM_GetShiftState [19:43:42]SAM_PROTO_GetShiftState [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 13 01 00 [19:43:42]Write to MH i2c: E2 08 00 EB 53 80 13 01 00 00 00 00 00 BB [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0E 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0E 00 EB 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 00 [19:43:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:43:42]wFMCommunicate OK [19:43:42]SAM_PROTO_GetShiftState done [19:43:42]FM_GetShiftState done [19:43:42]req_shift_opened done [19:43:42]requested_item shift.open_date is exist - process it [19:43:42]req_shift_open_date [19:43:42]req_shift_open_date done [19:43:42]produce_requested_data done [19:43:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73992,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:43:42]process_action_free close_receipt [19:43:42]json_value_free [19:43:42]json_value_free done [19:43:42]process_json_proto returns [19:43:42]Send response to host [19:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73992,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:43:42]free response buf [19:43:42]execute_script done [19:43:42]execute_script returns [19:43:42]free content buf [19:43:42]Sock 9.Close socket [19:43:42]Sock 9.Thread stoped [19:43:42]accept exits with 8 [19:43:42]New connection [19:43:42]New thread 3067432292 created [19:43:42]Thread 3067575652 joined [19:43:42]Waiting for new connection... [19:43:42] Sock 8.Parse request [19:43:42]Sock 8.Check first char [19:43:42]Sock 8.First char is OK [19:43:42]request: POST /json_proto HTTP/1.0 [19:43:42]Method: POST [19:43:42]URL: /json_proto [19:43:42]Method is POST - this is cgi request [19:43:42]url: /json_proto [19:43:42]query_string will be loaded in cgi processing [19:43:42]execute_cgi json_proto POST (null) [19:43:42]execute_cgi path=json_proto method=POST [19:43:42]POST find Content-Length [19:43:42]Host: 172.17.44.196:8080 [19:43:42]Content-Length: 767 [19:43:42]Content-Type: application/json [19:43:42] [19:43:42]POST finish read [19:43:42]Found Content-Length = 767 [19:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.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: Mbank", "payments": [ { "type": 1, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:42]execute_script... [19:43: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 : (1)1963283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.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: Mbank", "payments": [ { "type": 1, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:42]POST & json_proto [19:43:42]process_json_proto [19:43:42]json parsed OK: [19:43:42]protocol is kg_v1.0 [19:43:42]action value=close_receipt [19:43:42]process_action close_receipt [19:43:42]cmd_close_receipt [19:43:42]MH_GetDate [19:43:42]Write to MH i2c: F0 00 00 EC 53 2E [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: F0 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: F0 09 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: F0 09 00 EC 53 00 71 5D 15 67 E7 19 F8 65 DE [19:43:42]GetLastDocTimeStamp 1729453421 [19:43:42]current date 1729453425 [19:43:42]FM_GetShiftState [19:43:42]SAM_PROTO_GetShiftState [19:43:42]wFMCommunicate request_size=4 [19:43:42]MH_SAM_APDU [19:43:42]CAPDU: 80 13 01 00 [19:43:42]Write to MH i2c: E2 08 00 ED 53 80 13 01 00 00 00 00 00 BD [19:43:42]Write i2c OK [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 [19:43:42]MH_I2C_Read... [19:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:42]Read from MH i2c: E2 0E 00 [19:43:42]MH_I2C_Read... [19:43:42]Read from MH i2c: E2 0E 00 ED 53 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 02 [19:43:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:43:42]wFMCommunicate OK [19:43:42]SAM_PROTO_GetShiftState done [19:43:42]FM_GetShiftState done [19:43:42]opened in 1729384303 [19:43:42]opened+sec_in_day 1729470703 [19:43:42]quantity*price = 152400 [19:43:42]sum+1 = 152401 [19:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1524.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 0.00 Безнал.: 1524.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 319 20.10.2024 19:43 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73993 ФПД: 216657055904775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194345&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73993&fm=216657055904775&tin=02508201610067®Number=0000000000161154&sum=152400 [19:43:43]StoreToDocumentArchive [19:43:43]shift 170 fd 73993 [19:43:43]save to /storage/0170/doc_00073993 [19:43:43]save last doc name /storage/0170/doc_00073993 to /storage/kkm_last_doc_name [19:43:43]save OK [19:43:43]Clear old archive folders... [19:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:43:43]tlvbuf is 0043E3C0 [19:43:43]SAM_PROTO_ClearQueue [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 09 00 00 [19:43:43]Write to MH i2c: E2 08 00 FA 53 80 09 00 00 00 00 00 00 BF [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 FA 53 00 90 00 C1 [19:43:43]RAPDU: 90 00 [19:43:43]wFMCommunicate OK [19:43:43]SAM_PROTO_ClearQueue done [19:43:43]KKMCreateOFDPacket [19:43:43]OFDProtocolAddRootSTLVToBuf [19:43:43]FM_MakeSignedData [19:43:43]FM_MakeSignedData [19:43:43]SAM_PROTO_SignData [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 0D 01 02 [19:43:43]Write to MH i2c: E2 08 00 FB 53 80 0D 01 02 00 00 00 00 C7 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 03 00 FB 53 00 90 00 C2 [19:43:43]RAPDU: 90 00 [19:43:43]wFMCommunicate OK [19:43:43]wFMCommunicate request_size=255 [19:43:43]MH_SAM_APDU [19:43:43]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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 71 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 21 01 00 35 04 06 00 C5 0C 66 DA [19:43:43]Write to MH i2c: E2 02 01 FC 53 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 71 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 21 01 00 35 04 06 00 C5 0C 66 DA 00 00 86 [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 FC 53 00 90 00 C3 [19:43:44]RAPDU: 90 00 [19:43:44]wFMCommunicate OK [19:43:44]wFMCommunicate request_size=7 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 0D 02 02 02 F4 07 [19:43:44]Write to MH i2c: E2 0A 00 FD 53 80 0D 02 02 02 00 F4 07 00 00 C9 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 FD 53 00 90 00 C4 [19:43:44]RAPDU: 90 00 [19:43:44]wFMCommunicate OK [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 0D 03 02 [19:43:44]Write to MH i2c: E2 08 00 FE 53 80 0D 03 02 00 00 00 00 CC [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0B 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0B 00 FE 53 00 F1 68 73 49 FE 70 30 45 90 00 C5 [19:43:44]RAPDU: F1 68 73 49 FE 70 30 45 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_SignData done [19:43:44]FM_MakeSignedData done [19:43:44]CreateOFDProtocolMessage [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 11 00 00 [19:43:44]Write to MH i2c: E2 08 00 FF 53 80 11 00 00 00 00 00 00 CC [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 17 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 17 00 FF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [19:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:43:44]wFMCommunicate OK [19:43:44]CreateOFDProtocolMessage done [19:43:44]OFDSenderStorePacket 73993 [19:43:44]StoreOFDPacket docnum=73993 [19:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 79 5F 04 01 2A 90 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 71 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 21 01 00 35 04 06 00 C5 0C 66 DA F4 07 F1 68 73 49 FE 70 30 45 [19:43:44]CheckFolder [19:43:44]dirname=/storage/ofd_packets [19:43:44]CheckFolder done [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00073993 [19:43:44]NVStorageSaveData ofd_packets/00073993 [19:43:44]File name is /storage/ofd_packets/00073993 [19:43:44]Write 298 bytes [19:43:44]NVStorageSaveData done [19:43:44]OFDSenderStorePacket done [19:43:44]KKMCreateOFDPacket done [19:43:44]NVStorageSaveData kkm_last_timestamp [19:43:44]File name is /storage/kkm_last_timestamp [19:43:44]Write 4 bytes [19:43:44]NVStorageSaveData done [19:43:44]ExternCall_PrintAddStr [19:43:44]wPrintStart [19:43:44]Write to MH i2c: 01 00 00 00 54 54 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 00 54 00 00 00 00 00 FF 0F 69 [19:43:44]RasterBufferAndPrint [19:43:44]line Счет N : (1)1963283 [19:43:44]line ИНН: 02508201610067 [19:43:44]line Контрольно-Кассовый Чек [19:43:44]line ПРОДАЖА [19:43:44]line ТРК (МРК, ГНК) : 11 [19:43:44]line Товар: 2710194210 [19:43:44]line ДТ-К-5 [19:43:44]line 20.000 * 76.20 [19:43:44]line = 1524.00 [19:43:44]line НДС 12% НСП 1% [19:43:44]line > о реализуемом товаре [19:43:44]line ИТОГО: 1524.00 [19:43:44]line НСП 1% : 13.49 [19:43:44]line НДС 12% : 161.84 [19:43:44]line Наличными: 0.00 [19:43:44]line Безнал.: 1524.00 [19:43:44]line Место: АЗС № 133 "Партнер Нефть" [19:43:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:43:44]line СНО: Общий режим [19:43:44]line Чек 319 20.10.2024 19:43 [19:43:44]line Смена: 170 ФФД: 1.0 [19:43:44]line ЗНМ: 0300000020 [19:43:44]line РНМ: 0000000000161154 [19:43:44]line Версия ККМ: v1.0 [19:43:44]line Платежная система: Mbank [19:43:44]line ФМ: 0000000000963323 [19:43:44]line ФД: 73993 [19:43:44]line ФПД: 216657055904775 [19:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194345&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73993&fm=216657055904775&tin=02508201610067®Number=0000000000161154&sum=152400 [19:43:44]OFD Sender: Processing packet 73993 [packets to send 15, broken 14] [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00073993 [19:43:44]OFD Sender: To server: pG, [19:43:44]CommunicateWithHost lk.salyk.kg:30040 [19:43:44]ConnectInit lk.salyk.kg [19:43:44]written 0, free lines is 4095 [19:43:45]Connected sock=10 [19:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 79 5F 04 01 2A 90 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 71 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 21 01 00 35 04 06 00 C5 0C 66 DA F4 07 F1 68 73 49 FE 70 30 45 [19:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 03 40 47 00 70 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 39 36 33 33 32 33 10 04 04 00 09 21 01 00 F4 03 04 00 56 06 15 67 B6 04 01 00 00 DB 06 DC 8A A3 6B C3 9C [19:43:45]CommunicateWithHost err = 0 [19:43:45]CheckOFDResponse [19:43:45]1017 (14) - 77093643461234 [19:43:45]1041 (16) - 0000000000963323 [19:43:45]1040 (4) - 73993 [19:43:45]1012 (4) - 20.10.2024 13:32 [19:43:45]1206 (1) - 0 [19:43:45]OFD Sender: Remove packet 73993 [19:43:45]ProducePacketName [19:43:45]name=ofd_packets/00073993 [19:43:45]NVStorageDeleteData [19:43:45]Write to MH i2c: 01 00 00 28 54 7C [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 07 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 07 00 28 54 00 00 00 00 00 EC 0C 7B [19:43:45]RasterBufferAndPrint [19:43:45]line [19:43:45]line [19:43:45]line [19:43:45]line [19:43:45]line [19:43:45]written 0, free lines is 3321 [19:43:45]MH_Cut [19:43:45]Write to MH i2c: D1 01 00 2F 54 01 55 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: D1 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: D1 01 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: D1 01 00 2F 54 00 54 [19:43:45]Write to MH i2c: 01 00 00 30 54 84 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]OFD Sender: No OFD packet to send [19:43:46]*** Cut start [19:43:46]*** Partial cut [19:43:46]*** CUTSNS_PIN = 1 [19:43:46]*** CUTSNS_PIN = 0 [19:43:46]*** Brake cut motor [19:43:46]Read from MH i2c: 01 [19:43:46]MH_I2C_Read... [19:43:46]*** Stop cut motor [19:43:46]*** Cut end [19:43:46]Read from MH i2c: 01 07 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: 01 07 00 30 54 00 00 00 00 00 FF 0F 99 [19:43:46]process_action close_receipt done [19:43:46]requested_data is exist [19:43:46]produce_requested_data [19:43:46]requested_item fm.sn is exist - process it [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 11 00 00 [19:43:46]Write to MH i2c: E2 08 00 31 54 80 11 00 00 00 00 00 00 FF [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:46]Read from MH i2c: E2 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 17 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 17 00 31 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [19:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:43:46]wFMCommunicate OK [19:43:46]requested_item fd.num is exist - process it [19:43:46]SAM_PROTO_GetFieldsCounters [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 13 00 00 [19:43:46]Write to MH i2c: E2 08 00 32 54 80 13 00 00 00 00 00 00 02 [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:47]Read from MH i2c: E2 [19:43:47]MH_I2C_Read... [19:43:47]Read from MH i2c: E2 62 00 [19:43:47]MH_I2C_Read... [19:43:47]Read from MH i2c: E2 62 00 32 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 09 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [19:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 09 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:47]wFMCommunicate OK [19:43:47]SAM_PROTO_GetFieldsCounters done [19:43:47]requested_item shift.num is exist - process it [19:43:47]requested_item shift.opened is exist - process it [19:43:47]req_shift_opened [19:43:47]FM_GetShiftState [19:43:47]SAM_PROTO_GetShiftState [19:43:47]wFMCommunicate request_size=4 [19:43:47]MH_SAM_APDU [19:43:47]CAPDU: 80 13 01 00 [19:43:47]Write to MH i2c: E2 08 00 33 54 80 13 01 00 00 00 00 00 04 [19:43:47]Write i2c OK [19:43:47]MH_I2C_Read... [19:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:47]Read from MH i2c: E2 [19:43:47]MH_I2C_Read... [19:43:47]Read from MH i2c: E2 0E 00 [19:43:47]MH_I2C_Read... [19:43:47]Read from MH i2c: E2 0E 00 33 54 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [19:43:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:43:47]wFMCommunicate OK [19:43:47]SAM_PROTO_GetShiftState done [19:43:47]FM_GetShiftState done [19:43:47]req_shift_opened done [19:43:47]requested_item shift.open_date is exist - process it [19:43:47]req_shift_open_date [19:43:47]req_shift_open_date done [19:43:47]produce_requested_data done [19:43:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73993,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:43:47]process_action_free close_receipt [19:43:47]json_value_free [19:43:47]json_value_free done [19:43:47]process_json_proto returns [19:43:47]Send response to host [19:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73993,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:43:47]free response buf [19:43:47]execute_script done [19:43:47]execute_script returns [19:43:47]free content buf [19:43:47]Sock 8.Close socket [19:43:47]Sock 8.Thread stoped [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:34]accept exits with 9 [19:44:34]New connection [19:44:34]New thread 3067575652 created [19:44:34]Thread 3067432292 joined [19:44:34]Waiting for new connection... [19:44:34] Sock 9.Parse request [19:44:34]Sock 9.Check first char [19:44:34]Sock 9.First char is OK [19:44:34]request: POST /json_proto HTTP/1.0 [19:44:34]Method: POST [19:44:34]URL: /json_proto [19:44:34]Method is POST - this is cgi request [19:44:34]url: /json_proto [19:44:34]query_string will be loaded in cgi processing [19:44:34]execute_cgi json_proto POST (null) [19:44:34]execute_cgi path=json_proto method=POST [19:44:34]POST find Content-Length [19:44:34]Host: 172.17.44.196:8080 [19:44:34]Content-Length: 770 [19:44:34]Content-Type: application/json [19:44:34] [19:44:34]POST finish read [19:44:34]Found Content-Length = 770 [19:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963286", "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" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:34]execute_script... [19:44: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 : (1)1963286", "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" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:34]POST & json_proto [19:44:34]process_json_proto [19:44:34]json parsed OK: [19:44:34]protocol is kg_v1.0 [19:44:34]action value=close_receipt [19:44:34]process_action close_receipt [19:44:34]cmd_close_receipt [19:44:34]MH_GetDate [19:44:34]Write to MH i2c: F0 00 00 34 54 77 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: F0 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: F0 09 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: F0 09 00 34 54 00 A6 5D 15 67 E7 19 F8 65 5C [19:44:34]GetLastDocTimeStamp 1729453425 [19:44:34]current date 1729453478 [19:44:34]FM_GetShiftState [19:44:34]SAM_PROTO_GetShiftState [19:44:34]wFMCommunicate request_size=4 [19:44:34]MH_SAM_APDU [19:44:34]CAPDU: 80 13 01 00 [19:44:34]Write to MH i2c: E2 08 00 35 54 80 13 01 00 00 00 00 00 06 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:35]Read from MH i2c: E2 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 0E 00 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 0E 00 35 54 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4B [19:44:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:44:35]wFMCommunicate OK [19:44:35]SAM_PROTO_GetShiftState done [19:44:35]FM_GetShiftState done [19:44:35]opened in 1729384303 [19:44:35]opened+sec_in_day 1729470703 [19:44:35]quantity*price = 100015 [19:44:35]sum+1 = 100017 [19:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 320 20.10.2024 19:44 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73994 ФПД: 233395787376899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194438&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73994&fm=233395787376899&tin=02508201610067®Number=0000000000161154&sum=100016 [19:44:36]StoreToDocumentArchive [19:44:36]shift 170 fd 73994 [19:44:36]save to /storage/0170/doc_00073994 [19:44:36]save last doc name /storage/0170/doc_00073994 to /storage/kkm_last_doc_name [19:44:36]save OK [19:44:36]Clear old archive folders... [19:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:36]tlvbuf is 0039B570 [19:44:36]SAM_PROTO_ClearQueue [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 09 00 00 [19:44:36]Write to MH i2c: E2 08 00 42 54 80 09 00 00 00 00 00 00 08 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 42 54 00 90 00 0A [19:44:36]RAPDU: 90 00 [19:44:36]wFMCommunicate OK [19:44:36]SAM_PROTO_ClearQueue done [19:44:36]KKMCreateOFDPacket [19:44:36]OFDProtocolAddRootSTLVToBuf [19:44:36]FM_MakeSignedData [19:44:36]FM_MakeSignedData [19:44:36]SAM_PROTO_SignData [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 0D 01 02 [19:44:36]Write to MH i2c: E2 08 00 43 54 80 0D 01 02 00 00 00 00 10 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [19:44:36]RAPDU: 90 00 [19:44:36]wFMCommunicate OK [19:44:36]wFMCommunicate request_size=255 [19:44:36]MH_SAM_APDU [19:44:36]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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 A6 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 21 01 00 35 04 06 00 D4 [19:44:36]Write to MH i2c: E2 02 01 44 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 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 A6 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 21 01 00 35 04 06 00 D4 00 00 16 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 44 54 00 90 00 0C [19:44:36]RAPDU: 90 00 [19:44:36]wFMCommunicate OK [19:44:36]wFMCommunicate request_size=10 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 0D 02 02 05 45 B0 FF A9 03 [19:44:36]Write to MH i2c: E2 0D 00 45 54 80 0D 02 02 05 00 45 B0 FF A9 03 00 00 BD [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 03 00 45 54 00 90 00 0D [19:44:36]RAPDU: 90 00 [19:44:36]wFMCommunicate OK [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 0D 03 02 [19:44:36]Write to MH i2c: E2 08 00 46 54 80 0D 03 02 00 00 00 00 15 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 0B 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 0B 00 46 54 00 27 B7 0B 55 59 EF 20 C1 90 00 7D [19:44:36]RAPDU: 27 B7 0B 55 59 EF 20 C1 90 00 [19:44:36]wFMCommunicate OK [19:44:36]SAM_PROTO_SignData done [19:44:36]FM_MakeSignedData done [19:44:36]CreateOFDProtocolMessage [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 11 00 00 [19:44:36]Write to MH i2c: E2 08 00 47 54 80 11 00 00 00 00 00 00 15 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 17 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 17 00 47 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [19:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:44:36]wFMCommunicate OK [19:44:36]CreateOFDProtocolMessage done [19:44:36]OFDSenderStorePacket 73994 [19:44:36]StoreOFDPacket docnum=73994 [19:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 84 A8 07 01 FA 51 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 A6 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 21 01 00 35 04 06 00 D4 45 B0 FF A9 03 27 B7 0B 55 59 EF 20 C1 [19:44:36]CheckFolder [19:44:36]dirname=/storage/ofd_packets [19:44:36]CheckFolder done [19:44:36]ProducePacketName [19:44:36]name=ofd_packets/00073994 [19:44:36]NVStorageSaveData ofd_packets/00073994 [19:44:36]File name is /storage/ofd_packets/00073994 [19:44:36]Write 301 bytes [19:44:36]NVStorageSaveData done [19:44:36]OFDSenderStorePacket done [19:44:36]KKMCreateOFDPacket done [19:44:36]NVStorageSaveData kkm_last_timestamp [19:44:36]File name is /storage/kkm_last_timestamp [19:44:36]Write 4 bytes [19:44:36]NVStorageSaveData done [19:44:36]ExternCall_PrintAddStr [19:44:36]wPrintStart [19:44:36]Write to MH i2c: 01 00 00 48 54 9C [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: 01 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: 01 07 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: 01 07 00 48 54 00 00 00 00 00 FF 0F B1 [19:44:36]RasterBufferAndPrint [19:44:36]line Счет N : (1)1963286 [19:44:36]line ИНН: 02508201610067 [19:44:36]line Контрольно-Кассовый Чек [19:44:36]line ПРОДАЖА [19:44:36]line ТРК (МРК, ГНК) : 53 [19:44:36]line Товар: 2710124130 [19:44:36]line Аи-92-К-5 [19:44:36]line 14.950 * 66.90 [19:44:36]line = 1000.16 [19:44:36]line НДС 12% НСП 1% [19:44:36]line > о реализуемом товаре [19:44:36]line ИТОГО: 1000.16 [19:44:36]line НСП 1% : 8.85 [19:44:36]line НДС 12% : 106.21 [19:44:36]line Наличными: 0.00 [19:44:36]line Безнал.: 1000.16 [19:44:36]line Место: АЗС № 133 "Партнер Нефть" [19:44:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:44:36]line СНО: Общий режим [19:44:36]line Чек 320 20.10.2024 19:44 [19:44:36]line Смена: 170 ФФД: 1.0 [19:44:36]line ЗНМ: 0300000020 [19:44:36]line РНМ: 0000000000161154 [19:44:36]line Версия ККМ: v1.0 [19:44:36]line Платежная система: Mbank [19:44:36]line ФМ: 0000000000963323 [19:44:36]line ФД: 73994 [19:44:36]line ФПД: 233395787376899 [19:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194438&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73994&fm=233395787376899&tin=02508201610067®Number=0000000000161154&sum=100016 [19:44:37]OFD Sender: Processing packet 73994 [packets to send 15, broken 14] [19:44:37]ProducePacketName [19:44:37]name=ofd_packets/00073994 [19:44:37]OFD Sender: To server: pG, [19:44:37]CommunicateWithHost lk.salyk.kg:30040 [19:44:37]ConnectInit lk.salyk.kg [19:44:37]written 0, free lines is 4095 [19:44:37]Connected sock=8 [19:44:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 84 A8 07 01 FA 51 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 A6 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 21 01 00 35 04 06 00 D4 45 B0 FF A9 03 27 B7 0B 55 59 EF 20 C1 [19:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 99 7F 47 00 F4 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 39 36 33 33 32 33 10 04 04 00 0A 21 01 00 F4 03 04 00 8A 06 15 67 B6 04 01 00 00 00 0E 06 90 96 69 F3 8C [19:44:37]CommunicateWithHost err = 0 [19:44:37]CheckOFDResponse [19:44:37]1017 (14) - 77093643461234 [19:44:37]1041 (16) - 0000000000963323 [19:44:37]1040 (4) - 73994 [19:44:37]1012 (4) - 20.10.2024 13:32 [19:44:37]1206 (1) - 0 [19:44:37]OFD Sender: Remove packet 73994 [19:44:37]ProducePacketName [19:44:37]name=ofd_packets/00073994 [19:44:37]NVStorageDeleteData [19:44:37]Write to MH i2c: 01 00 00 70 54 C4 [19:44:37]Write i2c OK [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: 01 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: 01 07 00 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: 01 07 00 70 54 00 00 00 00 00 F3 0C CA [19:44:37]RasterBufferAndPrint [19:44:37]line [19:44:37]line [19:44:37]line [19:44:37]line [19:44:37]line [19:44:37]written 0, free lines is 3319 [19:44:37]MH_Cut [19:44:37]Write to MH i2c: D1 01 00 77 54 01 9D [19:44:37]Write i2c OK [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: D1 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: D1 01 00 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: D1 01 00 77 54 00 9C [19:44:37]Write to MH i2c: 01 00 00 78 54 CC [19:44:37]Write i2c OK [19:44:37]MH_I2C_Read... [19:44:37]OFD Sender: No OFD packet to send [19:44:38]*** Cut start [19:44:38]*** Partial cut [19:44:38]*** CUTSNS_PIN = 1 [19:44:38]*** CUTSNS_PIN = 0 [19:44:38]*** Brake cut motor [19:44:38]Read from MH i2c: 01 [19:44:38]MH_I2C_Read... [19:44:38]*** Stop cut motor [19:44:38]*** Cut end [19:44:38]Read from MH i2c: 01 07 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 07 00 78 54 00 00 00 00 00 FF 0F E1 [19:44:38]process_action close_receipt done [19:44:38]requested_data is exist [19:44:38]produce_requested_data [19:44:38]requested_item fm.sn is exist - process it [19:44:38]wFMCommunicate request_size=4 [19:44:38]MH_SAM_APDU [19:44:38]CAPDU: 80 11 00 00 [19:44:38]Write to MH i2c: E2 08 00 79 54 80 11 00 00 00 00 00 00 47 [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:38]Read from MH i2c: E2 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 17 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 17 00 79 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 94 [19:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:44:38]wFMCommunicate OK [19:44:38]requested_item fd.num is exist - process it [19:44:38]SAM_PROTO_GetFieldsCounters [19:44:38]wFMCommunicate request_size=4 [19:44:38]MH_SAM_APDU [19:44:38]CAPDU: 80 13 00 00 [19:44:38]Write to MH i2c: E2 08 00 7A 54 80 13 00 00 00 00 00 00 4A [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 62 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 62 00 7A 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0A 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [19:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0A 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:39]wFMCommunicate OK [19:44:39]SAM_PROTO_GetFieldsCounters done [19:44:39]requested_item shift.num is exist - process it [19:44:39]requested_item shift.opened is exist - process it [19:44:39]req_shift_opened [19:44:39]FM_GetShiftState [19:44:39]SAM_PROTO_GetShiftState [19:44:39]wFMCommunicate request_size=4 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 13 01 00 [19:44:39]Write to MH i2c: E2 08 00 7B 54 80 13 01 00 00 00 00 00 4C [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 0E 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 0E 00 7B 54 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 91 [19:44:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:44:39]wFMCommunicate OK [19:44:39]SAM_PROTO_GetShiftState done [19:44:39]FM_GetShiftState done [19:44:39]req_shift_opened done [19:44:39]requested_item shift.open_date is exist - process it [19:44:39]req_shift_open_date [19:44:39]req_shift_open_date done [19:44:39]produce_requested_data done [19:44:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73994,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:44:39]process_action_free close_receipt [19:44:39]json_value_free [19:44:39]json_value_free done [19:44:39]process_json_proto returns [19:44:39]Send response to host [19:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73994,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:44:39]free response buf [19:44:39]execute_script done [19:44:39]execute_script returns [19:44:39]free content buf [19:44:39]Sock 9.Close socket [19:44:39]Sock 9.Thread stoped [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:55]accept exits with 10 [19:44:55]New connection [19:44:55]New thread 3067432292 created [19:44:55]Thread 3067575652 joined [19:44:55]Waiting for new connection... [19:44:55] Sock 10.Parse request [19:44:55]Sock 10.Check first char [19:44:55]Sock 10.First char is OK [19:44:55]request: POST /json_proto HTTP/1.0 [19:44:55]Method: POST [19:44:55]URL: /json_proto [19:44:55]Method is POST - this is cgi request [19:44:55]url: /json_proto [19:44:55]query_string will be loaded in cgi processing [19:44:55]execute_cgi json_proto POST (null) [19:44:55]execute_cgi path=json_proto method=POST [19:44:55]POST find Content-Length [19:44:55]Host: 172.17.44.196:8080 [19:44:55]Content-Length: 770 [19:44:55]Content-Type: application/json [19:44:55] [19:44:55]POST finish read [19:44:55]Found Content-Length = 770 [19:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:55]execute_script... [19:44: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)1963287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:55]POST & json_proto [19:44:55]process_json_proto [19:44:55]json parsed OK: [19:44:55]protocol is kg_v1.0 [19:44:55]action value=close_receipt [19:44:55]process_action close_receipt [19:44:55]cmd_close_receipt [19:44:55]MH_GetDate [19:44:55]Write to MH i2c: F0 00 00 7C 54 BF [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: F0 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: F0 09 00 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: F0 09 00 7C 54 00 BA 5D 15 67 E7 19 F8 65 B8 [19:44:55]GetLastDocTimeStamp 1729453478 [19:44:55]current date 1729453498 [19:44:55]FM_GetShiftState [19:44:55]SAM_PROTO_GetShiftState [19:44:55]wFMCommunicate request_size=4 [19:44:55]MH_SAM_APDU [19:44:55]CAPDU: 80 13 01 00 [19:44:55]Write to MH i2c: E2 08 00 7D 54 80 13 01 00 00 00 00 00 4E [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:55]Read from MH i2c: E2 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: E2 0E 00 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: E2 0E 00 7D 54 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 93 [19:44:55]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:44:55]wFMCommunicate OK [19:44:55]SAM_PROTO_GetShiftState done [19:44:55]FM_GetShiftState done [19:44:55]opened in 1729384303 [19:44:55]opened+sec_in_day 1729470703 [19:44:55]quantity*price = 100015 [19:44:55]sum+1 = 100017 [19:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 321 20.10.2024 19:44 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73995 ФПД: 181351043504823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194458&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73995&fm=181351043504823&tin=02508201610067®Number=0000000000161154&sum=100016 [19:44:56]StoreToDocumentArchive [19:44:56]shift 170 fd 73995 [19:44:56]save to /storage/0170/doc_00073995 [19:44:56]save last doc name /storage/0170/doc_00073995 to /storage/kkm_last_doc_name [19:44:56]save OK [19:44:56]Clear old archive folders... [19:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:56]tlvbuf is 00539340 [19:44:56]SAM_PROTO_ClearQueue [19:44:56]wFMCommunicate request_size=4 [19:44:56]MH_SAM_APDU [19:44:56]CAPDU: 80 09 00 00 [19:44:56]Write to MH i2c: E2 08 00 8A 54 80 09 00 00 00 00 00 00 50 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:56]Read from MH i2c: E2 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 03 00 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 03 00 8A 54 00 90 00 52 [19:44:56]RAPDU: 90 00 [19:44:56]wFMCommunicate OK [19:44:56]SAM_PROTO_ClearQueue done [19:44:56]KKMCreateOFDPacket [19:44:56]OFDProtocolAddRootSTLVToBuf [19:44:56]FM_MakeSignedData [19:44:56]FM_MakeSignedData [19:44:56]SAM_PROTO_SignData [19:44:56]wFMCommunicate request_size=4 [19:44:56]MH_SAM_APDU [19:44:56]CAPDU: 80 0D 01 02 [19:44:56]Write to MH i2c: E2 08 00 8B 54 80 0D 01 02 00 00 00 00 58 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:56]Read from MH i2c: E2 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 03 00 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 03 00 8B 54 00 90 00 53 [19:44:56]RAPDU: 90 00 [19:44:56]wFMCommunicate OK [19:44:56]wFMCommunicate request_size=255 [19:44:56]MH_SAM_APDU [19:44:56]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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 21 01 00 35 04 06 00 A4 [19:44:56]Write to MH i2c: E2 02 01 8C 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 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 21 01 00 35 04 06 00 A4 00 00 44 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 8C 54 00 90 00 54 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=10 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 02 02 05 F0 14 87 1A B7 [19:44:57]Write to MH i2c: E2 0D 00 8D 54 80 0D 02 02 05 00 F0 14 87 1A B7 00 00 C1 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 8D 54 00 90 00 55 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 03 02 [19:44:57]Write to MH i2c: E2 08 00 8E 54 80 0D 03 02 00 00 00 00 5D [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0B 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0B 00 8E 54 00 3D AA 5A D8 7B B5 35 14 90 00 F0 [19:44:57]RAPDU: 3D AA 5A D8 7B B5 35 14 90 00 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_SignData done [19:44:57]FM_MakeSignedData done [19:44:57]CreateOFDProtocolMessage [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 11 00 00 [19:44:57]Write to MH i2c: E2 08 00 8F 54 80 11 00 00 00 00 00 00 5D [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 17 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 17 00 8F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AA [19:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:44:57]wFMCommunicate OK [19:44:57]CreateOFDProtocolMessage done [19:44:57]OFDSenderStorePacket 73995 [19:44:57]StoreOFDPacket docnum=73995 [19:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 85 07 01 8D B7 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 21 01 00 35 04 06 00 A4 F0 14 87 1A B7 3D AA 5A D8 7B B5 35 14 [19:44:57]CheckFolder [19:44:57]dirname=/storage/ofd_packets [19:44:57]CheckFolder done [19:44:57]ProducePacketName [19:44:57]name=ofd_packets/00073995 [19:44:57]NVStorageSaveData ofd_packets/00073995 [19:44:57]File name is /storage/ofd_packets/00073995 [19:44:57]Write 301 bytes [19:44:57]NVStorageSaveData done [19:44:57]OFDSenderStorePacket done [19:44:57]KKMCreateOFDPacket done [19:44:57]NVStorageSaveData kkm_last_timestamp [19:44:57]File name is /storage/kkm_last_timestamp [19:44:57]Write 4 bytes [19:44:57]NVStorageSaveData done [19:44:57]ExternCall_PrintAddStr [19:44:57]wPrintStart [19:44:57]Write to MH i2c: 01 00 00 90 54 E4 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: 01 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: 01 07 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: 01 07 00 90 54 00 00 00 00 00 FF 0F F9 [19:44:57]RasterBufferAndPrint [19:44:57]line Счет N : (1)1963287 [19:44:57]line ИНН: 02508201610067 [19:44:57]line Контрольно-Кассовый Чек [19:44:57]line ПРОДАЖА [19:44:57]line ТРК (МРК, ГНК) : 63 [19:44:57]line Товар: 2710124130 [19:44:57]line Аи-92-К-5 [19:44:57]line 14.950 * 66.90 [19:44:57]line = 1000.16 [19:44:57]line НДС 12% НСП 1% [19:44:57]line > о реализуемом товаре [19:44:57]line ИТОГО: 1000.16 [19:44:57]line НСП 1% : 8.85 [19:44:57]line НДС 12% : 106.21 [19:44:57]line Наличными: 0.00 [19:44:57]line Безнал.: 1000.16 [19:44:57]line Место: АЗС № 133 "Партнер Нефть" [19:44:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:44:57]line СНО: Общий режим [19:44:57]line Чек 321 20.10.2024 19:44 [19:44:57]line Смена: 170 ФФД: 1.0 [19:44:57]line ЗНМ: 0300000020 [19:44:57]line РНМ: 0000000000161154 [19:44:57]line Версия ККМ: v1.0 [19:44:57]line Платежная система: Mbank [19:44:57]line ФМ: 0000000000963323 [19:44:57]line ФД: 73995 [19:44:57]line ФПД: 181351043504823 [19:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194458&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73995&fm=181351043504823&tin=02508201610067®Number=0000000000161154&sum=100016 [19:44:57]written 0, free lines is 4095 [19:44:57]OFD Sender: Processing packet 73995 [packets to send 15, broken 14] [19:44:57]ProducePacketName [19:44:57]name=ofd_packets/00073995 [19:44:57]OFD Sender: To server: pG, [19:44:57]CommunicateWithHost lk.salyk.kg:30040 [19:44:57]ConnectInit lk.salyk.kg [19:44:57]Connected sock=9 [19:44:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 85 07 01 8D B7 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 B0 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 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 21 01 00 35 04 06 00 A4 F0 14 87 1A B7 3D AA 5A D8 7B B5 35 14 [19:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 2F 47 00 4E 85 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 39 36 33 33 32 33 10 04 04 00 0B 21 01 00 F4 03 04 00 9E 06 15 67 B6 04 01 00 00 73 E0 38 E6 58 1F 76 42 [19:44:57]CommunicateWithHost err = 0 [19:44:57]CheckOFDResponse [19:44:57]1017 (14) - 77093643461234 [19:44:57]1041 (16) - 0000000000963323 [19:44:57]1040 (4) - 73995 [19:44:57]1012 (4) - 20.10.2024 13:33 [19:44:57]1206 (1) - 0 [19:44:57]OFD Sender: Remove packet 73995 [19:44:57]ProducePacketName [19:44:57]name=ofd_packets/00073995 [19:44:57]NVStorageDeleteData [19:44:58]Write to MH i2c: 01 00 00 B8 54 0C [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 B8 54 00 00 00 00 00 E3 0C 02 [19:44:58]RasterBufferAndPrint [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]written 0, free lines is 3303 [19:44:58]MH_Cut [19:44:58]Write to MH i2c: D1 01 00 BF 54 01 E5 [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 01 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 01 00 BF 54 00 E4 [19:44:58]Write to MH i2c: 01 00 00 C0 54 14 [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]OFD Sender: No OFD packet to send [19:44:58]*** Cut start [19:44:58]*** Partial cut [19:44:58]*** CUTSNS_PIN = 1 [19:44:58]*** CUTSNS_PIN = 0 [19:44:59]*** Brake cut motor [19:44:59]Read from MH i2c: 01 [19:44:59]MH_I2C_Read... [19:44:59]*** Stop cut motor [19:44:59]*** Cut end [19:44:59]Read from MH i2c: 01 07 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: 01 07 00 C0 54 00 00 00 00 00 FF 0F 29 [19:44:59]process_action close_receipt done [19:44:59]requested_data is exist [19:44:59]produce_requested_data [19:44:59]requested_item fm.sn is exist - process it [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 11 00 00 [19:44:59]Write to MH i2c: E2 08 00 C1 54 80 11 00 00 00 00 00 00 8F [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 17 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 17 00 C1 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [19:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:44:59]wFMCommunicate OK [19:44:59]requested_item fd.num is exist - process it [19:44:59]SAM_PROTO_GetFieldsCounters [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 13 00 00 [19:44:59]Write to MH i2c: E2 08 00 C2 54 80 13 00 00 00 00 00 00 92 [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 62 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 62 00 C2 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0B 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:44:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0B 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:59]wFMCommunicate OK [19:44:59]SAM_PROTO_GetFieldsCounters done [19:44:59]requested_item shift.num is exist - process it [19:44:59]requested_item shift.opened is exist - process it [19:44:59]req_shift_opened [19:44:59]FM_GetShiftState [19:44:59]SAM_PROTO_GetShiftState [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 13 01 00 [19:44:59]Write to MH i2c: E2 08 00 C3 54 80 13 01 00 00 00 00 00 94 [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 0E 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 0E 00 C3 54 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 D9 [19:44:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:44:59]wFMCommunicate OK [19:44:59]SAM_PROTO_GetShiftState done [19:44:59]FM_GetShiftState done [19:44:59]req_shift_opened done [19:44:59]requested_item shift.open_date is exist - process it [19:44:59]req_shift_open_date [19:44:59]req_shift_open_date done [19:44:59]produce_requested_data done [19:44:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73995,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:44:59]process_action_free close_receipt [19:44:59]json_value_free [19:44:59]json_value_free done [19:44:59]process_json_proto returns [19:44:59]Send response to host [19:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73995,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:44:59]free response buf [19:44:59]execute_script done [19:44:59]execute_script returns [19:44:59]free content buf [19:44:59]Sock 10.Close socket [19:44:59]Sock 10.Thread stoped [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:42]accept exits with 8 [19:45:42]New connection [19:45:42]New thread 3067575652 created [19:45:42]Thread 3067432292 joined [19:45:42]Waiting for new connection... [19:45:42] Sock 8.Parse request [19:45:42]Sock 8.Check first char [19:45:42]Sock 8.First char is OK [19:45:42]request: POST /json_proto HTTP/1.0 [19:45:42]Method: POST [19:45:42]URL: /json_proto [19:45:42]Method is POST - this is cgi request [19:45:42]url: /json_proto [19:45:42]query_string will be loaded in cgi processing [19:45:42]execute_cgi json_proto POST (null) [19:45:42]execute_cgi path=json_proto method=POST [19:45:42]POST find Content-Length [19:45:42]Host: 172.17.44.196:8080 [19:45:42]Content-Length: 767 [19:45:42]Content-Type: application/json [19:45:42] [19:45:42]POST finish read [19:45:42]Found Content-Length = 767 [19:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963288", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:42]execute_script... [19:45: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 : (1)1963288", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:42]POST & json_proto [19:45:42]process_json_proto [19:45:42]json parsed OK: [19:45:42]protocol is kg_v1.0 [19:45:42]action value=close_receipt [19:45:42]process_action close_receipt [19:45:42]cmd_close_receipt [19:45:42]MH_GetDate [19:45:42]Write to MH i2c: F0 00 00 C4 54 07 [19:45:42]Write i2c OK [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: F0 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: F0 09 00 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: F0 09 00 C4 54 00 EA 5D 15 67 E7 19 F8 65 30 [19:45:42]GetLastDocTimeStamp 1729453498 [19:45:42]current date 1729453546 [19:45:42]FM_GetShiftState [19:45:42]SAM_PROTO_GetShiftState [19:45:42]wFMCommunicate request_size=4 [19:45:42]MH_SAM_APDU [19:45:42]CAPDU: 80 13 01 00 [19:45:42]Write to MH i2c: E2 08 00 C5 54 80 13 01 00 00 00 00 00 96 [19:45:42]Write i2c OK [19:45:42]MH_I2C_Read... [19:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:42]Read from MH i2c: E2 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 0E 00 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 0E 00 C5 54 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DB [19:45:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:45:42]wFMCommunicate OK [19:45:42]SAM_PROTO_GetShiftState done [19:45:42]FM_GetShiftState done [19:45:42]opened in 1729384303 [19:45:42]opened+sec_in_day 1729470703 [19:45:42]quantity*price = 50041 [19:45:42]sum+1 = 50042 [19:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 322 20.10.2024 19:45 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 73996 ФПД: 114275319201837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194546&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73996&fm=114275319201837&tin=02508201610067®Number=0000000000161154&sum=50041 [19:45:43]StoreToDocumentArchive [19:45:43]shift 170 fd 73996 [19:45:43]save to /storage/0170/doc_00073996 [19:45:43]save last doc name /storage/0170/doc_00073996 to /storage/kkm_last_doc_name [19:45:43]save OK [19:45:43]Clear old archive folders... [19:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:43]tlvbuf is 00418130 [19:45:43]SAM_PROTO_ClearQueue [19:45:43]wFMCommunicate request_size=4 [19:45:43]MH_SAM_APDU [19:45:43]CAPDU: 80 09 00 00 [19:45:43]Write to MH i2c: E2 08 00 D2 54 80 09 00 00 00 00 00 00 98 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 D2 54 00 90 00 9A [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]SAM_PROTO_ClearQueue done [19:45:44]KKMCreateOFDPacket [19:45:44]OFDProtocolAddRootSTLVToBuf [19:45:44]FM_MakeSignedData [19:45:44]FM_MakeSignedData [19:45:44]SAM_PROTO_SignData [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 01 02 [19:45:44]Write to MH i2c: E2 08 00 D3 54 80 0D 01 02 00 00 00 00 A0 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 D3 54 00 90 00 9B [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]wFMCommunicate request_size=255 [19:45:44]MH_SAM_APDU [19:45:44]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 EA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 21 01 00 35 04 06 00 67 [19:45:44]Write to MH i2c: E2 02 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 EA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 21 01 00 35 04 06 00 67 00 00 B9 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 D4 54 00 90 00 9C [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]wFMCommunicate request_size=10 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 02 02 05 EE CB CE C0 2D [19:45:44]Write to MH i2c: E2 0D 00 D5 54 80 0D 02 02 05 00 EE CB CE C0 2D 00 00 21 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 D5 54 00 90 00 9D [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 03 02 [19:45:44]Write to MH i2c: E2 08 00 D6 54 80 0D 03 02 00 00 00 00 A5 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 0B 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 0B 00 D6 54 00 20 B9 92 31 6F 68 52 CF 90 00 3A [19:45:44]RAPDU: 20 B9 92 31 6F 68 52 CF 90 00 [19:45:44]wFMCommunicate OK [19:45:44]SAM_PROTO_SignData done [19:45:44]FM_MakeSignedData done [19:45:44]CreateOFDProtocolMessage [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 11 00 00 [19:45:44]Write to MH i2c: E2 08 00 D7 54 80 11 00 00 00 00 00 00 A5 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 17 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 17 00 D7 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [19:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:45:44]wFMCommunicate OK [19:45:44]CreateOFDProtocolMessage done [19:45:44]OFDSenderStorePacket 73996 [19:45:44]StoreOFDPacket docnum=73996 [19:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 1C 07 01 4D FE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 EA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 21 01 00 35 04 06 00 67 EE CB CE C0 2D 20 B9 92 31 6F 68 52 CF [19:45:44]CheckFolder [19:45:44]dirname=/storage/ofd_packets [19:45:44]CheckFolder done [19:45:44]ProducePacketName [19:45:44]name=ofd_packets/00073996 [19:45:44]NVStorageSaveData ofd_packets/00073996 [19:45:44]File name is /storage/ofd_packets/00073996 [19:45:44]Write 301 bytes [19:45:44]NVStorageSaveData done [19:45:44]OFDSenderStorePacket done [19:45:44]KKMCreateOFDPacket done [19:45:44]NVStorageSaveData kkm_last_timestamp [19:45:44]File name is /storage/kkm_last_timestamp [19:45:44]Write 4 bytes [19:45:44]NVStorageSaveData done [19:45:44]ExternCall_PrintAddStr [19:45:44]wPrintStart [19:45:44]Write to MH i2c: 01 00 00 D8 54 2C [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 07 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 07 00 D8 54 00 00 00 00 00 FF 0F 41 [19:45:44]RasterBufferAndPrint [19:45:44]line Счет N : (1)1963288 [19:45:44]line ИНН: 02508201610067 [19:45:44]line Контрольно-Кассовый Чек [19:45:44]line ПРОДАЖА [19:45:44]line ТРК (МРК, ГНК) : 33 [19:45:44]line Товар: 2710124130 [19:45:44]line Аи-92-К-5 [19:45:44]line 7.480 * 66.90 [19:45:44]line = 500.41 [19:45:44]line НДС 12% НСП 1% [19:45:44]line > о реализуемом товаре [19:45:44]line ИТОГО: 500.41 [19:45:44]line НСП 1% : 4.43 [19:45:44]line НДС 12% : 53.14 [19:45:44]line Наличными: 0.00 [19:45:44]line Безнал.: 500.41 [19:45:44]line Место: АЗС № 133 "Партнер Нефть" [19:45:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:45:44]line СНО: Общий режим [19:45:44]line Чек 322 20.10.2024 19:45 [19:45:44]line Смена: 170 ФФД: 1.0 [19:45:44]line ЗНМ: 0300000020 [19:45:44]line РНМ: 0000000000161154 [19:45:44]line Версия ККМ: v1.0 [19:45:44]line Платежная система: Mbank [19:45:44]line ФМ: 0000000000963323 [19:45:44]line ФД: 73996 [19:45:44]line ФПД: 114275319201837 [19:45:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194546&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73996&fm=114275319201837&tin=02508201610067®Number=0000000000161154&sum=50041 [19:45:44]OFD Sender: Processing packet 73996 [packets to send 15, broken 14] [19:45:44]ProducePacketName [19:45:44]name=ofd_packets/00073996 [19:45:44]OFD Sender: To server: pG, [19:45:44]CommunicateWithHost lk.salyk.kg:30040 [19:45:44]ConnectInit lk.salyk.kg [19:45:44]written 0, free lines is 4095 [19:45:44]Connected sock=10 [19:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 1C 07 01 4D FE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 EA 5D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 21 01 00 35 04 06 00 67 EE CB CE C0 2D 20 B9 92 31 6F 68 52 CF [19:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1B 4C 47 00 A1 68 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 39 36 33 33 32 33 10 04 04 00 0C 21 01 00 F4 03 04 00 CE 06 15 67 B6 04 01 00 00 F3 A8 CE 79 44 DB 58 62 [19:45:45]CommunicateWithHost err = 0 [19:45:45]CheckOFDResponse [19:45:45]1017 (14) - 77093643461234 [19:45:45]1041 (16) - 0000000000963323 [19:45:45]1040 (4) - 73996 [19:45:45]1012 (4) - 20.10.2024 13:34 [19:45:45]1206 (1) - 0 [19:45:45]OFD Sender: Remove packet 73996 [19:45:45]ProducePacketName [19:45:45]name=ofd_packets/00073996 [19:45:45]NVStorageDeleteData [19:45:45]Write to MH i2c: 01 00 00 00 55 55 [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 07 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 07 00 00 55 00 00 00 00 00 EA 0C 52 [19:45:45]RasterBufferAndPrint [19:45:45]line [19:45:45]line [19:45:45]line [19:45:45]line [19:45:45]line [19:45:45]written 0, free lines is 3312 [19:45:45]MH_Cut [19:45:45]Write to MH i2c: D1 01 00 07 55 01 2E [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: D1 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: D1 01 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: D1 01 00 07 55 00 2D [19:45:45]Write to MH i2c: 01 00 00 08 55 5D [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]OFD Sender: No OFD packet to send [19:45:46]*** Cut start [19:45:46]*** Partial cut [19:45:46]*** CUTSNS_PIN = 1 [19:45:46]*** CUTSNS_PIN = 0 [19:45:46]*** Brake cut motor [19:45:46]Read from MH i2c: 01 [19:45:46]MH_I2C_Read... [19:45:46]*** Stop cut motor [19:45:46]*** Cut end [19:45:46]Read from MH i2c: 01 07 00 [19:45:46]MH_I2C_Read... [19:45:46]Read from MH i2c: 01 07 00 08 55 00 00 00 00 00 FF 0F 72 [19:45:46]process_action close_receipt done [19:45:46]requested_data is exist [19:45:46]produce_requested_data [19:45:46]requested_item fm.sn is exist - process it [19:45:46]wFMCommunicate request_size=4 [19:45:46]MH_SAM_APDU [19:45:46]CAPDU: 80 11 00 00 [19:45:46]Write to MH i2c: E2 08 00 09 55 80 11 00 00 00 00 00 00 D8 [19:45:46]Write i2c OK [19:45:46]MH_I2C_Read... [19:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:46]Read from MH i2c: E2 [19:45:46]MH_I2C_Read... [19:45:46]Read from MH i2c: E2 17 00 [19:45:46]MH_I2C_Read... [19:45:46]Read from MH i2c: E2 17 00 09 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [19:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:45:46]wFMCommunicate OK [19:45:46]requested_item fd.num is exist - process it [19:45:46]SAM_PROTO_GetFieldsCounters [19:45:46]wFMCommunicate request_size=4 [19:45:46]MH_SAM_APDU [19:45:46]CAPDU: 80 13 00 00 [19:45:46]Write to MH i2c: E2 08 00 0A 55 80 13 00 00 00 00 00 00 DB [19:45:46]Write i2c OK [19:45:46]MH_I2C_Read... [19:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:46]Read from MH i2c: E2 [19:45:46]MH_I2C_Read... [19:45:46]Read from MH i2c: E2 62 00 [19:45:46]MH_I2C_Read... [19:45:46]Read from MH i2c: E2 62 00 0A 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0C 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:45:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0C 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:46]wFMCommunicate OK [19:45:46]SAM_PROTO_GetFieldsCounters done [19:45:46]requested_item shift.num is exist - process it [19:45:46]requested_item shift.opened is exist - process it [19:45:46]req_shift_opened [19:45:46]FM_GetShiftState [19:45:46]SAM_PROTO_GetShiftState [19:45:46]wFMCommunicate request_size=4 [19:45:46]MH_SAM_APDU [19:45:46]CAPDU: 80 13 01 00 [19:45:46]Write to MH i2c: E2 08 00 0B 55 80 13 01 00 00 00 00 00 DD [19:45:46]Write i2c OK [19:45:46]MH_I2C_Read... [19:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:47]Read from MH i2c: E2 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 0E 00 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 0E 00 0B 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 22 [19:45:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:45:47]wFMCommunicate OK [19:45:47]SAM_PROTO_GetShiftState done [19:45:47]FM_GetShiftState done [19:45:47]req_shift_opened done [19:45:47]requested_item shift.open_date is exist - process it [19:45:47]req_shift_open_date [19:45:47]req_shift_open_date done [19:45:47]produce_requested_data done [19:45:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73996,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:45:47]process_action_free close_receipt [19:45:47]json_value_free [19:45:47]json_value_free done [19:45:47]process_json_proto returns [19:45:47]Send response to host [19:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73996,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:45:47]free response buf [19:45:47]execute_script done [19:45:47]execute_script returns [19:45:47]free content buf [19:45:47]Sock 8.Close socket [19:45:47]Sock 8.Thread stoped [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:01]accept exits with 9 [19:47:01]New connection [19:47:01]New thread 3067432292 created [19:47:01]Thread 3067575652 joined [19:47:01]Waiting for new connection... [19:47:01] Sock 9.Parse request [19:47:01]Sock 9.Check first char [19:47:01]Sock 9.First char is OK [19:47:01]request: POST /json_proto HTTP/1.0 [19:47:01]Method: POST [19:47:01]URL: /json_proto [19:47:01]Method is POST - this is cgi request [19:47:01]url: /json_proto [19:47:01]query_string will be loaded in cgi processing [19:47:01]execute_cgi json_proto POST (null) [19:47:01]execute_cgi path=json_proto method=POST [19:47:01]POST find Content-Length [19:47:01]Host: 172.17.44.196:8080 [19:47:01]Content-Length: 918 [19:47:01]Content-Type: application/json [19:47:01] [19:47:01]POST finish read [19:47:01]Found Content-Length = 918 [19:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272840", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:01]execute_script... [19:47:01]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)272840", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:01]POST & json_proto [19:47:01]process_json_proto [19:47:01]json parsed OK: [19:47:01]protocol is kg_v1.0 [19:47:01]action value=close_receipt [19:47:01]process_action close_receipt [19:47:01]cmd_close_receipt [19:47:01]MH_GetDate [19:47:01]Write to MH i2c: F0 00 00 0C 55 50 [19:47:01]Write i2c OK [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: F0 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: F0 09 00 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: F0 09 00 0C 55 00 38 5E 15 67 E7 19 F8 65 C8 [19:47:01]GetLastDocTimeStamp 1729453546 [19:47:01]current date 1729453624 [19:47:01]FM_GetShiftState [19:47:01]SAM_PROTO_GetShiftState [19:47:01]wFMCommunicate request_size=4 [19:47:01]MH_SAM_APDU [19:47:01]CAPDU: 80 13 01 00 [19:47:01]Write to MH i2c: E2 08 00 0D 55 80 13 01 00 00 00 00 00 DF [19:47:01]Write i2c OK [19:47:01]MH_I2C_Read... [19:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:01]Read from MH i2c: E2 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: E2 0E 00 [19:47:01]MH_I2C_Read... [19:47:01]Read from MH i2c: E2 0E 00 0D 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 24 [19:47:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:47:01]wFMCommunicate OK [19:47:01]SAM_PROTO_GetShiftState done [19:47:01]FM_GetShiftState done [19:47:01]opened in 1729384303 [19:47:01]opened+sec_in_day 1729470703 [19:47:01]quantity*price = 21000 [19:47:01]sum+1 = 21001 [19:47:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 335.00 НСП 1% : 2.97 НДС 12% : 35.57 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 323 20.10.2024 19:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73997 ФПД: 196791351347169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194704&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73997&fm=196791351347169&tin=02508201610067®Number=0000000000161154&sum=33500 0 [19:47:02]StoreToDocumentArchive [19:47:02]shift 170 fd 73997 [19:47:02]save to /storage/0170/doc_00073997 [19:47:02]save last doc name /storage/0170/doc_00073997 to /storage/kkm_last_doc_name [19:47:02]save OK [19:47:02]Clear old archive folders... [19:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:47:02]tlvbuf is 00323030 [19:47:02]SAM_PROTO_ClearQueue [19:47:02]wFMCommunicate request_size=4 [19:47:02]MH_SAM_APDU [19:47:02]CAPDU: 80 09 00 00 [19:47:02]Write to MH i2c: E2 08 00 1A 55 80 09 00 00 00 00 00 00 E1 [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:02]Read from MH i2c: E2 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 1A 55 00 90 00 E3 [19:47:02]RAPDU: 90 00 [19:47:02]wFMCommunicate OK [19:47:02]SAM_PROTO_ClearQueue done [19:47:02]KKMCreateOFDPacket [19:47:02]OFDProtocolAddRootSTLVToBuf [19:47:02]FM_MakeSignedData [19:47:02]FM_MakeSignedData [19:47:02]SAM_PROTO_SignData [19:47:02]wFMCommunicate request_size=4 [19:47:02]MH_SAM_APDU [19:47:02]CAPDU: 80 0D 01 02 [19:47:02]Write to MH i2c: E2 08 00 1B 55 80 0D 01 02 00 00 00 00 E9 [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:02]Read from MH i2c: E2 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 1B 55 00 90 00 E4 [19:47:02]RAPDU: 90 00 [19:47:02]wFMCommunicate OK [19:47:02]wFMCommunicate request_size=255 [19:47:02]MH_SAM_APDU [19:47:02]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF [19:47:02]Write to MH i2c: E2 02 01 1C 55 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 00 00 E7 [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:02]Read from MH i2c: E2 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 1C 55 00 90 00 E5 [19:47:02]RAPDU: 90 00 [19:47:02]wFMCommunicate OK [19:47:02]wFMCommunicate request_size=155 [19:47:02]MH_SAM_APDU [19:47:02]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 01 00 00 F4 03 04 00 38 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 21 01 00 35 04 06 00 B2 FB 0E 97 87 E1 [19:47:02]Write to MH i2c: E2 9E 00 1D 55 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 01 00 00 F4 03 04 00 38 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 21 01 00 35 04 06 00 B2 FB 0E 97 87 E1 00 00 A8 [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:02]Read from MH i2c: E2 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 03 00 1D 55 00 90 00 E6 [19:47:02]RAPDU: 90 00 [19:47:02]wFMCommunicate OK [19:47:02]wFMCommunicate request_size=4 [19:47:02]MH_SAM_APDU [19:47:02]CAPDU: 80 0D 03 02 [19:47:02]Write to MH i2c: E2 08 00 1E 55 80 0D 03 02 00 00 00 00 EE [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:02]Read from MH i2c: E2 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 0B 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 0B 00 1E 55 00 C5 F3 ED 15 9B A4 18 C9 90 00 C9 [19:47:02]RAPDU: C5 F3 ED 15 9B A4 18 C9 90 00 [19:47:02]wFMCommunicate OK [19:47:02]SAM_PROTO_SignData done [19:47:02]FM_MakeSignedData done [19:47:02]CreateOFDProtocolMessage [19:47:02]wFMCommunicate request_size=4 [19:47:02]MH_SAM_APDU [19:47:02]CAPDU: 80 11 00 00 [19:47:02]Write to MH i2c: E2 08 00 1F 55 80 11 00 00 00 00 00 00 EE [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:02]Read from MH i2c: E2 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 17 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: E2 17 00 1F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [19:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:47:02]wFMCommunicate OK [19:47:02]CreateOFDProtocolMessage done [19:47:02]OFDSenderStorePacket 73997 [19:47:02]StoreOFDPacket docnum=73997 [19:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 07 F3 98 01 28 19 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 01 00 00 F4 03 04 00 38 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 21 01 00 35 04 06 00 B2 FB 0E 97 87 E1 C5 F3 ED 15 9B A4 18 C9 [19:47:02]CheckFolder [19:47:02]dirname=/storage/ofd_packets [19:47:02]CheckFolder done [19:47:02]ProducePacketName [19:47:02]name=ofd_packets/00073997 [19:47:02]NVStorageSaveData ofd_packets/00073997 [19:47:02]File name is /storage/ofd_packets/00073997 [19:47:02]Write 446 bytes [19:47:02]NVStorageSaveData done [19:47:02]OFDSenderStorePacket done [19:47:02]KKMCreateOFDPacket done [19:47:02]NVStorageSaveData kkm_last_timestamp [19:47:02]File name is /storage/kkm_last_timestamp [19:47:02]Write 4 bytes [19:47:02]NVStorageSaveData done [19:47:02]ExternCall_PrintAddStr [19:47:02]wPrintStart [19:47:02]Write to MH i2c: 01 00 00 20 55 75 [19:47:02]Write i2c OK [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: 01 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: 01 07 00 [19:47:02]MH_I2C_Read... [19:47:02]Read from MH i2c: 01 07 00 20 55 00 00 00 00 00 FF 0F 8A [19:47:02]RasterBufferAndPrint [19:47:02]line Счет N : (3)272840 [19:47:02]line ИНН: 02508201610067 [19:47:02]line Контрольно-Кассовый Чек [19:47:02]line ПРОДАЖА [19:47:03]line Товар: 2000034730018 [19:47:03]line Кофе Американо (GABB TRADE) [19:47:03]line 2.000 * 105.00 [19:47:03]line = 210.00 [19:47:03]line НДС 12% НСП 1% [19:47:03]line > о реализуемом товаре [19:47:03]line Товар: 2000036190018 [19:47:03]line Кофе Американо XL(GABB TRADE) [19:47:03]line 1.000 * 125.00 [19:47:03]line = 125.00 [19:47:03]line НДС 12% НСП 1% [19:47:03]line > о реализуемом товаре [19:47:03]line ИТОГО: 335.00 [19:47:03]line НСП 1% : 2.97 [19:47:03]line НДС 12% : 35.57 [19:47:03]line Наличными: 335.00 [19:47:03]line Безнал.: 0.00 [19:47:03]line Место: АЗС № 133 "Партнер Нефть" [19:47:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:47:03]line СНО: Общий режим [19:47:03]line Чек 323 20.10.2024 19:47 [19:47:03]line Смена: 170 ФФД: 1.0 [19:47:03]line ЗНМ: 0300000020 [19:47:03]line РНМ: 0000000000161154 [19:47:03]line Версия ККМ: v1.0 [19:47:03]line ФМ: 0000000000963323 [19:47:03]line ФД: 73997 [19:47:03]line ФПД: 196791351347169 [19:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194704&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73997&fm=196791351347169&tin=02508201610067®Number=0000000000161154&sum=33500 [19:47:03]line 0 [19:47:03]OFD Sender: Processing packet 73997 [packets to send 15, broken 14] [19:47:03]ProducePacketName [19:47:03]name=ofd_packets/00073997 [19:47:03]OFD Sender: To server: pG, [19:47:03]CommunicateWithHost lk.salyk.kg:30040 [19:47:03]ConnectInit lk.salyk.kg [19:47:03]written 0, free lines is 4095 [19:47:03]Connected sock=10 [19:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 07 F3 98 01 28 19 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 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 01 00 00 F4 03 04 00 38 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 21 01 00 35 04 06 00 B2 FB 0E 97 87 E1 C5 F3 ED 15 9B A4 18 C9 [19:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 52 C0 47 00 96 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 39 36 33 33 32 33 10 04 04 00 0D 21 01 00 F4 03 04 00 1C 07 15 67 B6 04 01 00 00 D1 04 D1 E7 3A 4A ED 38 [19:47:03]CommunicateWithHost err = 0 [19:47:03]CheckOFDResponse [19:47:03]1017 (14) - 77093643461234 [19:47:03]1041 (16) - 0000000000963323 [19:47:03]1040 (4) - 73997 [19:47:03]1012 (4) - 20.10.2024 13:35 [19:47:03]1206 (1) - 0 [19:47:03]OFD Sender: Remove packet 73997 [19:47:03]ProducePacketName [19:47:03]name=ofd_packets/00073997 [19:47:03]NVStorageDeleteData [19:47:03]Write to MH i2c: 01 00 00 4F 55 A4 [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 07 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: 01 07 00 4F 55 00 00 00 00 00 62 0C 19 [19:47:03]RasterBufferAndPrint [19:47:03]line [19:47:03]line [19:47:03]line [19:47:03]line [19:47:03]line [19:47:03]written 0, free lines is 3179 [19:47:03]MH_Cut [19:47:03]Write to MH i2c: D1 01 00 56 55 01 7D [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: D1 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: D1 01 00 [19:47:03]MH_I2C_Read... [19:47:03]Read from MH i2c: D1 01 00 56 55 00 7C [19:47:03]Write to MH i2c: 01 00 00 57 55 AC [19:47:03]Write i2c OK [19:47:03]MH_I2C_Read... [19:47:04]OFD Sender: No OFD packet to send [19:47:04]*** Cut start [19:47:04]*** Partial cut [19:47:04]*** CUTSNS_PIN = 1 [19:47:04]*** CUTSNS_PIN = 0 [19:47:04]*** Brake cut motor [19:47:05]Read from MH i2c: 01 [19:47:05]MH_I2C_Read... [19:47:05]*** Stop cut motor [19:47:05]*** Cut end [19:47:05]Read from MH i2c: 01 07 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: 01 07 00 57 55 00 00 00 00 00 FF 0F C1 [19:47:05]process_action close_receipt done [19:47:05]requested_data is exist [19:47:05]produce_requested_data [19:47:05]requested_item fm.sn is exist - process it [19:47:05]wFMCommunicate request_size=4 [19:47:05]MH_SAM_APDU [19:47:05]CAPDU: 80 11 00 00 [19:47:05]Write to MH i2c: E2 08 00 58 55 80 11 00 00 00 00 00 00 27 [19:47:05]Write i2c OK [19:47:05]MH_I2C_Read... [19:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:05]Read from MH i2c: E2 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 17 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 17 00 58 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [19:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:47:05]wFMCommunicate OK [19:47:05]requested_item fd.num is exist - process it [19:47:05]SAM_PROTO_GetFieldsCounters [19:47:05]wFMCommunicate request_size=4 [19:47:05]MH_SAM_APDU [19:47:05]CAPDU: 80 13 00 00 [19:47:05]Write to MH i2c: E2 08 00 59 55 80 13 00 00 00 00 00 00 2A [19:47:05]Write i2c OK [19:47:05]MH_I2C_Read... [19:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:05]Read from MH i2c: E2 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 62 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 62 00 59 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0D 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0D 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:05]wFMCommunicate OK [19:47:05]SAM_PROTO_GetFieldsCounters done [19:47:05]requested_item shift.num is exist - process it [19:47:05]requested_item shift.opened is exist - process it [19:47:05]req_shift_opened [19:47:05]FM_GetShiftState [19:47:05]SAM_PROTO_GetShiftState [19:47:05]wFMCommunicate request_size=4 [19:47:05]MH_SAM_APDU [19:47:05]CAPDU: 80 13 01 00 [19:47:05]Write to MH i2c: E2 08 00 5A 55 80 13 01 00 00 00 00 00 2C [19:47:05]Write i2c OK [19:47:05]MH_I2C_Read... [19:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:05]Read from MH i2c: E2 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 0E 00 [19:47:05]MH_I2C_Read... [19:47:05]Read from MH i2c: E2 0E 00 5A 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [19:47:05]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:47:05]wFMCommunicate OK [19:47:05]SAM_PROTO_GetShiftState done [19:47:05]FM_GetShiftState done [19:47:05]req_shift_opened done [19:47:05]requested_item shift.open_date is exist - process it [19:47:05]req_shift_open_date [19:47:05]req_shift_open_date done [19:47:05]produce_requested_data done [19:47:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73997,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:47:05]process_action_free close_receipt [19:47:05]json_value_free [19:47:05]json_value_free done [19:47:05]process_json_proto returns [19:47:05]Send response to host [19:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73997,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:47:05]free response buf [19:47:05]execute_script done [19:47:05]execute_script returns [19:47:05]free content buf [19:47:05]Sock 9.Close socket [19:47:05]Sock 9.Thread stoped [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:27]accept exits with 8 [19:47:27]New connection [19:47:27]New thread 3067575652 created [19:47:27]Thread 3067432292 joined [19:47:27]Waiting for new connection... [19:47:27] Sock 8.Parse request [19:47:27]Sock 8.Check first char [19:47:27]Sock 8.First char is OK [19:47:27]request: POST /json_proto HTTP/1.0 [19:47:27]Method: POST [19:47:27]URL: /json_proto [19:47:27]Method is POST - this is cgi request [19:47:27]url: /json_proto [19:47:27]query_string will be loaded in cgi processing [19:47:27]execute_cgi json_proto POST (null) [19:47:27]execute_cgi path=json_proto method=POST [19:47:27]POST find Content-Length [19:47:27]Host: 172.17.44.196:8080 [19:47:27]Content-Length: 678 [19:47:27]Content-Type: application/json [19:47:27] [19:47:27]POST finish read [19:47:27]Found Content-Length = 678 [19:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963289", "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" : 7.480, "sum" : 500.41, "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" ] } } [19:47:27]execute_script... [19:47: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 : (1)1963289", "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" : 7.480, "sum" : 500.41, "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" ] } } [19:47:27]POST & json_proto [19:47:27]process_json_proto [19:47:27]json parsed OK: [19:47:27]protocol is kg_v1.0 [19:47:27]action value=close_receipt [19:47:27]process_action close_receipt [19:47:27]cmd_close_receipt [19:47:27]MH_GetDate [19:47:27]Write to MH i2c: F0 00 00 5B 55 9F [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: F0 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: F0 09 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: F0 09 00 5B 55 00 52 5E 15 67 E7 19 F8 65 31 [19:47:27]GetLastDocTimeStamp 1729453624 [19:47:27]current date 1729453650 [19:47:27]FM_GetShiftState [19:47:27]SAM_PROTO_GetShiftState [19:47:27]wFMCommunicate request_size=4 [19:47:27]MH_SAM_APDU [19:47:27]CAPDU: 80 13 01 00 [19:47:27]Write to MH i2c: E2 08 00 5C 55 80 13 01 00 00 00 00 00 2E [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:27]Read from MH i2c: E2 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 0E 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: E2 0E 00 5C 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [19:47:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:47:27]wFMCommunicate OK [19:47:27]SAM_PROTO_GetShiftState done [19:47:27]FM_GetShiftState done [19:47:27]opened in 1729384303 [19:47:27]opened+sec_in_day 1729470703 [19:47:27]quantity*price = 50041 [19:47:27]sum+1 = 50042 [19:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 324 20.10.2024 19:47 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73998 ФПД: 210075190114193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194730&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73998&fm=210075190114193&tin=02508201610067®Number=0000000000161154&sum=50000 [19:47:28]StoreToDocumentArchive [19:47:28]shift 170 fd 73998 [19:47:28]save to /storage/0170/doc_00073998 [19:47:28]save last doc name /storage/0170/doc_00073998 to /storage/kkm_last_doc_name [19:47:28]save OK [19:47:28]Clear old archive folders... [19:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:28]tlvbuf is 0039B940 [19:47:28]SAM_PROTO_ClearQueue [19:47:28]wFMCommunicate request_size=4 [19:47:28]MH_SAM_APDU [19:47:28]CAPDU: 80 09 00 00 [19:47:28]Write to MH i2c: E2 08 00 69 55 80 09 00 00 00 00 00 00 30 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:28]Read from MH i2c: E2 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 03 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 03 00 69 55 00 90 00 32 [19:47:28]RAPDU: 90 00 [19:47:28]wFMCommunicate OK [19:47:28]SAM_PROTO_ClearQueue done [19:47:28]KKMCreateOFDPacket [19:47:28]OFDProtocolAddRootSTLVToBuf [19:47:28]FM_MakeSignedData [19:47:28]FM_MakeSignedData [19:47:28]SAM_PROTO_SignData [19:47:28]wFMCommunicate request_size=4 [19:47:28]MH_SAM_APDU [19:47:28]CAPDU: 80 0D 01 02 [19:47:28]Write to MH i2c: E2 08 00 6A 55 80 0D 01 02 00 00 00 00 38 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:28]Read from MH i2c: E2 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 03 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 03 00 6A 55 00 90 00 33 [19:47:28]RAPDU: 90 00 [19:47:28]wFMCommunicate OK [19:47:28]wFMCommunicate request_size=255 [19:47:28]MH_SAM_APDU [19:47:28]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 44 01 00 00 F4 03 04 00 52 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 21 01 00 35 04 06 00 BF [19:47:28]Write to MH i2c: E2 02 01 6B 55 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 44 01 00 00 F4 03 04 00 52 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 21 01 00 35 04 06 00 BF 00 00 C4 [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 6B 55 00 90 00 34 [19:47:29]RAPDU: 90 00 [19:47:29]wFMCommunicate OK [19:47:29]wFMCommunicate request_size=10 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 0D 02 02 05 0F F1 15 37 91 [19:47:29]Write to MH i2c: E2 0D 00 6C 55 80 0D 02 02 05 00 0F F1 15 37 91 00 00 22 [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]OFD Sender: No OFD packet to send [19:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 6C 55 00 90 00 35 [19:47:29]RAPDU: 90 00 [19:47:29]wFMCommunicate OK [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 0D 03 02 [19:47:29]Write to MH i2c: E2 08 00 6D 55 80 0D 03 02 00 00 00 00 3D [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0B 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0B 00 6D 55 00 DA 52 B0 FC 80 C1 CF D8 90 00 FE [19:47:29]RAPDU: DA 52 B0 FC 80 C1 CF D8 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_SignData done [19:47:29]FM_MakeSignedData done [19:47:29]CreateOFDProtocolMessage [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 11 00 00 [19:47:29]Write to MH i2c: E2 08 00 6E 55 80 11 00 00 00 00 00 00 3D [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 17 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 17 00 6E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [19:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:47:29]wFMCommunicate OK [19:47:29]CreateOFDProtocolMessage done [19:47:29]OFDSenderStorePacket 73998 [19:47:29]StoreOFDPacket docnum=73998 [19:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FC 70 07 01 BC 87 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 44 01 00 00 F4 03 04 00 52 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 21 01 00 35 04 06 00 BF 0F F1 15 37 91 DA 52 B0 FC 80 C1 CF D8 [19:47:29]CheckFolder [19:47:29]dirname=/storage/ofd_packets [19:47:29]CheckFolder done [19:47:29]ProducePacketName [19:47:29]name=ofd_packets/00073998 [19:47:29]NVStorageSaveData ofd_packets/00073998 [19:47:29]File name is /storage/ofd_packets/00073998 [19:47:29]Write 301 bytes [19:47:29]NVStorageSaveData done [19:47:29]OFDSenderStorePacket done [19:47:29]KKMCreateOFDPacket done [19:47:29]NVStorageSaveData kkm_last_timestamp [19:47:29]File name is /storage/kkm_last_timestamp [19:47:29]Write 4 bytes [19:47:29]NVStorageSaveData done [19:47:29]ExternCall_PrintAddStr [19:47:29]wPrintStart [19:47:29]Write to MH i2c: 01 00 00 6F 55 C4 [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: 01 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: 01 07 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: 01 07 00 6F 55 00 00 00 00 00 FF 0F D9 [19:47:29]RasterBufferAndPrint [19:47:29]line Счет N : (1)1963289 [19:47:29]line ИНН: 02508201610067 [19:47:29]line Контрольно-Кассовый Чек [19:47:29]line ПРОДАЖА [19:47:29]line ТРК (МРК, ГНК) : 43 [19:47:29]line Товар: 2710124130 [19:47:29]line Аи-92-К-5 [19:47:29]line 7.480 * 66.90 [19:47:29]line = 500.41 [19:47:29]line НДС 12% НСП 1% [19:47:29]line > о реализуемом товаре [19:47:29]line ОКРУГЛЕНИЕ: -0.41 [19:47:29]line ИТОГО: 500.00 [19:47:29]line Внесено: 500.00 [19:47:29]line СДАЧА: 0.00 [19:47:29]line НСП 1% : 4.43 [19:47:29]line НДС 12% : 53.14 [19:47:29]line Наличными: 500.00 [19:47:29]line Безнал.: 0.00 [19:47:29]line Место: АЗС № 133 "Партнер Нефть" [19:47:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:47:29]line СНО: Общий режим [19:47:29]line Чек 324 20.10.2024 19:47 [19:47:29]line Смена: 170 ФФД: 1.0 [19:47:29]line ЗНМ: 0300000020 [19:47:29]line РНМ: 0000000000161154 [19:47:29]line Версия ККМ: v1.0 [19:47:29]line ФМ: 0000000000963323 [19:47:29]line ФД: 73998 [19:47:29]line ФПД: 210075190114193 [19:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194730&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73998&fm=210075190114193&tin=02508201610067®Number=0000000000161154&sum=50000 [19:47:29]OFD Sender: Processing packet 73998 [packets to send 15, broken 14] [19:47:29]ProducePacketName [19:47:29]name=ofd_packets/00073998 [19:47:29]OFD Sender: To server: pG, [19:47:29]CommunicateWithHost lk.salyk.kg:30040 [19:47:29]ConnectInit lk.salyk.kg [19:47:29]written 0, free lines is 4095 [19:47:29]Connected sock=10 [19:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FC 70 07 01 BC 87 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 44 01 00 00 F4 03 04 00 52 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 21 01 00 35 04 06 00 BF 0F F1 15 37 91 DA 52 B0 FC 80 C1 CF D8 [19:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A0 80 47 00 81 C3 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 39 36 33 33 32 33 10 04 04 00 0E 21 01 00 F4 03 04 00 36 07 15 67 B6 04 01 00 00 62 1F 5D A0 8F D1 27 42 [19:47:29]CommunicateWithHost err = 0 [19:47:29]CheckOFDResponse [19:47:29]1017 (14) - 77093643461234 [19:47:29]1041 (16) - 0000000000963323 [19:47:29]1040 (4) - 73998 [19:47:29]1012 (4) - 20.10.2024 13:35 [19:47:29]1206 (1) - 0 [19:47:29]OFD Sender: Remove packet 73998 [19:47:29]ProducePacketName [19:47:29]name=ofd_packets/00073998 [19:47:29]NVStorageDeleteData [19:47:30]Write to MH i2c: 01 00 00 99 55 EE [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: 01 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: 01 07 00 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: 01 07 00 99 55 00 00 00 00 00 BA 0C BB [19:47:30]RasterBufferAndPrint [19:47:30]line [19:47:30]line [19:47:30]line [19:47:30]line [19:47:30]line [19:47:30]written 0, free lines is 3263 [19:47:30]MH_Cut [19:47:30]Write to MH i2c: D1 01 00 A0 55 01 C7 [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: D1 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: D1 01 00 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: D1 01 00 A0 55 00 C6 [19:47:30]Write to MH i2c: 01 00 00 A1 55 F6 [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]OFD Sender: No OFD packet to send [19:47:30]*** Cut start [19:47:30]*** Partial cut [19:47:30]*** CUTSNS_PIN = 1 [19:47:30]*** CUTSNS_PIN = 0 [19:47:31]*** Brake cut motor [19:47:31]Read from MH i2c: 01 [19:47:31]MH_I2C_Read... [19:47:31]*** Stop cut motor [19:47:31]*** Cut end [19:47:31]Read from MH i2c: 01 07 00 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: 01 07 00 A1 55 00 00 00 00 00 FF 0F 0B [19:47:31]process_action close_receipt done [19:47:31]requested_data is exist [19:47:31]produce_requested_data [19:47:31]requested_item fm.sn is exist - process it [19:47:31]wFMCommunicate request_size=4 [19:47:31]MH_SAM_APDU [19:47:31]CAPDU: 80 11 00 00 [19:47:31]Write to MH i2c: E2 08 00 A2 55 80 11 00 00 00 00 00 00 71 [19:47:31]Write i2c OK [19:47:31]MH_I2C_Read... [19:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:31]Read from MH i2c: E2 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: E2 17 00 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: E2 17 00 A2 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BE [19:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:47:31]wFMCommunicate OK [19:47:31]requested_item fd.num is exist - process it [19:47:31]SAM_PROTO_GetFieldsCounters [19:47:31]wFMCommunicate request_size=4 [19:47:31]MH_SAM_APDU [19:47:31]CAPDU: 80 13 00 00 [19:47:31]Write to MH i2c: E2 08 00 A3 55 80 13 00 00 00 00 00 00 74 [19:47:31]Write i2c OK [19:47:31]MH_I2C_Read... [19:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:31]Read from MH i2c: E2 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: E2 62 00 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: E2 62 00 A3 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [19:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:31]wFMCommunicate OK [19:47:31]SAM_PROTO_GetFieldsCounters done [19:47:31]requested_item shift.num is exist - process it [19:47:31]requested_item shift.opened is exist - process it [19:47:31]req_shift_opened [19:47:31]FM_GetShiftState [19:47:31]SAM_PROTO_GetShiftState [19:47:31]wFMCommunicate request_size=4 [19:47:31]MH_SAM_APDU [19:47:31]CAPDU: 80 13 01 00 [19:47:31]Write to MH i2c: E2 08 00 A4 55 80 13 01 00 00 00 00 00 76 [19:47:31]Write i2c OK [19:47:31]MH_I2C_Read... [19:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:31]Read from MH i2c: E2 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: E2 0E 00 [19:47:31]MH_I2C_Read... [19:47:31]Read from MH i2c: E2 0E 00 A4 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BB [19:47:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:47:31]wFMCommunicate OK [19:47:31]SAM_PROTO_GetShiftState done [19:47:31]FM_GetShiftState done [19:47:31]req_shift_opened done [19:47:31]requested_item shift.open_date is exist - process it [19:47:31]req_shift_open_date [19:47:31]req_shift_open_date done [19:47:31]produce_requested_data done [19:47:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73998,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:47:31]process_action_free close_receipt [19:47:31]json_value_free [19:47:31]json_value_free done [19:47:31]process_json_proto returns [19:47:31]Send response to host [19:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73998,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:47:31]free response buf [19:47:31]execute_script done [19:47:31]execute_script returns [19:47:31]free content buf [19:47:31]Sock 8.Close socket [19:47:31]Sock 8.Thread stoped [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:20]accept exits with 9 [19:48:20]New connection [19:48:20]New thread 3067432292 created [19:48:20]Thread 3067575652 joined [19:48:20]Waiting for new connection... [19:48:20] Sock 9.Parse request [19:48:20]Sock 9.Check first char [19:48:20]Sock 9.First char is OK [19:48:20]request: POST /json_proto HTTP/1.0 [19:48:20]Method: POST [19:48:20]URL: /json_proto [19:48:20]Method is POST - this is cgi request [19:48:20]url: /json_proto [19:48:20]query_string will be loaded in cgi processing [19:48:20]execute_cgi json_proto POST (null) [19:48:20]execute_cgi path=json_proto method=POST [19:48:20]POST find Content-Length [19:48:20]Host: 172.17.44.196:8080 [19:48:20]Content-Length: 678 [19:48:20]Content-Type: application/json [19:48:20] [19:48:20]POST finish read [19:48:20]Found Content-Length = 678 [19:48:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [19:48:20]execute_script... [19:48: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)1963291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [19:48:20]POST & json_proto [19:48:20]process_json_proto [19:48:20]json parsed OK: [19:48:20]protocol is kg_v1.0 [19:48:20]action value=close_receipt [19:48:20]process_action close_receipt [19:48:20]cmd_close_receipt [19:48:20]MH_GetDate [19:48:20]Write to MH i2c: F0 00 00 A5 55 E9 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: F0 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: F0 09 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: F0 09 00 A5 55 00 88 5E 15 67 E7 19 F8 65 B1 [19:48:20]GetLastDocTimeStamp 1729453650 [19:48:20]current date 1729453704 [19:48:20]FM_GetShiftState [19:48:20]SAM_PROTO_GetShiftState [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 13 01 00 [19:48:20]Write to MH i2c: E2 08 00 A6 55 80 13 01 00 00 00 00 00 78 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 0E 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 0E 00 A6 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BD [19:48:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:48:20]wFMCommunicate OK [19:48:20]SAM_PROTO_GetShiftState done [19:48:20]FM_GetShiftState done [19:48:20]opened in 1729384303 [19:48:20]opened+sec_in_day 1729470703 [19:48:20]quantity*price = 50041 [19:48:20]sum+1 = 50042 [19:48:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 325 20.10.2024 19:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 73999 ФПД: 60049529076936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194824&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73999&fm=60049529076936&tin=02508201610067®Number=0000000000161154&sum=50000 [19:48:21]StoreToDocumentArchive [19:48:21]shift 170 fd 73999 [19:48:21]save to /storage/0170/doc_00073999 [19:48:21]save last doc name /storage/0170/doc_00073999 to /storage/kkm_last_doc_name [19:48:21]save OK [19:48:21]Clear old archive folders... [19:48:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:21]tlvbuf is 004510D0 [19:48:21]SAM_PROTO_ClearQueue [19:48:21]wFMCommunicate request_size=4 [19:48:21]MH_SAM_APDU [19:48:21]CAPDU: 80 09 00 00 [19:48:21]Write to MH i2c: E2 08 00 B3 55 80 09 00 00 00 00 00 00 7A [19:48:21]Write i2c OK [19:48:21]MH_I2C_Read... [19:48:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:21]Read from MH i2c: E2 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: E2 03 00 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: E2 03 00 B3 55 00 90 00 7C [19:48:21]RAPDU: 90 00 [19:48:21]wFMCommunicate OK [19:48:21]SAM_PROTO_ClearQueue done [19:48:21]KKMCreateOFDPacket [19:48:21]OFDProtocolAddRootSTLVToBuf [19:48:21]FM_MakeSignedData [19:48:21]FM_MakeSignedData [19:48:21]SAM_PROTO_SignData [19:48:21]wFMCommunicate request_size=4 [19:48:21]MH_SAM_APDU [19:48:21]CAPDU: 80 0D 01 02 [19:48:21]Write to MH i2c: E2 08 00 B4 55 80 0D 01 02 00 00 00 00 82 [19:48:21]Write i2c OK [19:48:21]MH_I2C_Read... [19:48:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:21]Read from MH i2c: E2 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: E2 03 00 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: E2 03 00 B4 55 00 90 00 7D [19:48:21]RAPDU: 90 00 [19:48:21]wFMCommunicate OK [19:48:21]wFMCommunicate request_size=255 [19:48:21]MH_SAM_APDU [19:48: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 45 01 00 00 F4 03 04 00 88 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 21 01 00 35 04 06 00 36 [19:48:21]Write to MH i2c: E2 02 01 B5 55 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 45 01 00 00 F4 03 04 00 88 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 21 01 00 35 04 06 00 36 00 00 BD [19:48:21]Write i2c OK [19:48:21]MH_I2C_Read... [19:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:22]Read from MH i2c: E2 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 03 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 03 00 B5 55 00 90 00 7E [19:48:22]RAPDU: 90 00 [19:48:22]wFMCommunicate OK [19:48:22]wFMCommunicate request_size=10 [19:48:22]MH_SAM_APDU [19:48:22]CAPDU: 80 0D 02 02 05 9D 5E D9 7C C8 [19:48:22]Write to MH i2c: E2 0D 00 B6 55 80 0D 02 02 05 00 9D 5E D9 7C C8 00 00 A7 [19:48:22]Write i2c OK [19:48:22]MH_I2C_Read... [19:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:22]Read from MH i2c: E2 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 03 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 03 00 B6 55 00 90 00 7F [19:48:22]RAPDU: 90 00 [19:48:22]wFMCommunicate OK [19:48:22]wFMCommunicate request_size=4 [19:48:22]MH_SAM_APDU [19:48:22]CAPDU: 80 0D 03 02 [19:48:22]Write to MH i2c: E2 08 00 B7 55 80 0D 03 02 00 00 00 00 87 [19:48:22]Write i2c OK [19:48:22]MH_I2C_Read... [19:48:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:22]Read from MH i2c: E2 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 0B 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 0B 00 B7 55 00 8F 5B 69 D1 0A AC 0E 6D 90 00 DD [19:48:22]RAPDU: 8F 5B 69 D1 0A AC 0E 6D 90 00 [19:48:22]wFMCommunicate OK [19:48:22]SAM_PROTO_SignData done [19:48:22]FM_MakeSignedData done [19:48:22]CreateOFDProtocolMessage [19:48:22]wFMCommunicate request_size=4 [19:48:22]MH_SAM_APDU [19:48:22]CAPDU: 80 11 00 00 [19:48:22]Write to MH i2c: E2 08 00 B8 55 80 11 00 00 00 00 00 00 87 [19:48:22]Write i2c OK [19:48:22]MH_I2C_Read... [19:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:22]Read from MH i2c: E2 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 17 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 17 00 B8 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [19:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:48:22]wFMCommunicate OK [19:48:22]CreateOFDProtocolMessage done [19:48:22]OFDSenderStorePacket 73999 [19:48:22]StoreOFDPacket docnum=73999 [19:48:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 22 7C 07 01 37 DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 45 01 00 00 F4 03 04 00 88 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 21 01 00 35 04 06 00 36 9D 5E D9 7C C8 8F 5B 69 D1 0A AC 0E 6D [19:48:22]CheckFolder [19:48:22]dirname=/storage/ofd_packets [19:48:22]CheckFolder done [19:48:22]ProducePacketName [19:48:22]name=ofd_packets/00073999 [19:48:22]NVStorageSaveData ofd_packets/00073999 [19:48:22]File name is /storage/ofd_packets/00073999 [19:48:22]Write 301 bytes [19:48:22]NVStorageSaveData done [19:48:22]OFDSenderStorePacket done [19:48:22]KKMCreateOFDPacket done [19:48:22]NVStorageSaveData kkm_last_timestamp [19:48:22]File name is /storage/kkm_last_timestamp [19:48:22]Write 4 bytes [19:48:22]NVStorageSaveData done [19:48:22]ExternCall_PrintAddStr [19:48:22]wPrintStart [19:48:22]Write to MH i2c: 01 00 00 B9 55 0E [19:48:22]Write i2c OK [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: 01 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: 01 07 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: 01 07 00 B9 55 00 00 00 00 00 FF 0F 23 [19:48:22]RasterBufferAndPrint [19:48:22]line Счет N : (1)1963291 [19:48:22]line ИНН: 02508201610067 [19:48:22]line Контрольно-Кассовый Чек [19:48:22]line ПРОДАЖА [19:48:22]line ТРК (МРК, ГНК) : 63 [19:48:22]line Товар: 2710124130 [19:48:22]line Аи-92-К-5 [19:48:22]line 7.480 * 66.90 [19:48:22]line = 500.41 [19:48:22]line НДС 12% НСП 1% [19:48:22]line > о реализуемом товаре [19:48:22]line ОКРУГЛЕНИЕ: -0.41 [19:48:22]line ИТОГО: 500.00 [19:48:22]line Внесено: 500.00 [19:48:22]line СДАЧА: 0.00 [19:48:22]line НСП 1% : 4.43 [19:48:22]line НДС 12% : 53.14 [19:48:22]line Наличными: 500.00 [19:48:22]line Безнал.: 0.00 [19:48:22]line Место: АЗС № 133 "Партнер Нефть" [19:48:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:48:22]line СНО: Общий режим [19:48:22]line Чек 325 20.10.2024 19:48 [19:48:22]line Смена: 170 ФФД: 1.0 [19:48:22]line ЗНМ: 0300000020 [19:48:22]line РНМ: 0000000000161154 [19:48:22]line Версия ККМ: v1.0 [19:48:22]line ФМ: 0000000000963323 [19:48:22]line ФД: 73999 [19:48:22]line ФПД: 60049529076936 [19:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194824&type=1&operation_type=1&fn_number=0000000000963323&fd_number=73999&fm=60049529076936&tin=02508201610067®Number=0000000000161154&sum=50000 [19:48:22]OFD Sender: Processing packet 73999 [packets to send 15, broken 14] [19:48:22]ProducePacketName [19:48:22]name=ofd_packets/00073999 [19:48:22]OFD Sender: To server: pG, [19:48:22]CommunicateWithHost lk.salyk.kg:30040 [19:48:22]ConnectInit lk.salyk.kg [19:48:22]written 0, free lines is 4095 [19:48:22]Connected sock=10 [19:48:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 22 7C 07 01 37 DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 C2 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 45 01 00 00 F4 03 04 00 88 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 21 01 00 35 04 06 00 36 9D 5E D9 7C C8 8F 5B 69 D1 0A AC 0E 6D [19:48:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F5 7C 47 00 0F 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 39 36 33 33 32 33 10 04 04 00 0F 21 01 00 F4 03 04 00 6B 07 15 67 B6 04 01 00 00 38 5C C5 F3 2E 44 3B 60 [19:48:23]CommunicateWithHost err = 0 [19:48:23]CheckOFDResponse [19:48:23]1017 (14) - 77093643461234 [19:48:23]1041 (16) - 0000000000963323 [19:48:23]1040 (4) - 73999 [19:48:23]1012 (4) - 20.10.2024 13:36 [19:48:23]1206 (1) - 0 [19:48:23]OFD Sender: Remove packet 73999 [19:48:23]ProducePacketName [19:48:23]name=ofd_packets/00073999 [19:48:23]NVStorageDeleteData [19:48:23]Write to MH i2c: 01 00 00 E3 55 38 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 07 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 07 00 E3 55 00 00 00 00 00 B7 0C 02 [19:48:23]RasterBufferAndPrint [19:48:23]line [19:48:23]line [19:48:23]line [19:48:23]line [19:48:23]line [19:48:23]written 0, free lines is 3261 [19:48:23]MH_Cut [19:48:23]Write to MH i2c: D1 01 00 EA 55 01 11 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: D1 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: D1 01 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: D1 01 00 EA 55 00 10 [19:48:23]Write to MH i2c: 01 00 00 EB 55 40 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]OFD Sender: No OFD packet to send [19:48:24]*** Cut start [19:48:24]*** Partial cut [19:48:24]*** CUTSNS_PIN = 1 [19:48:24]*** CUTSNS_PIN = 0 [19:48:24]*** Brake cut motor [19:48:24]Read from MH i2c: 01 [19:48:24]MH_I2C_Read... [19:48:24]*** Stop cut motor [19:48:24]*** Cut end [19:48:24]Read from MH i2c: 01 07 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 EB 55 00 00 00 00 00 FF 0F 55 [19:48:24]process_action close_receipt done [19:48:24]requested_data is exist [19:48:24]produce_requested_data [19:48:24]requested_item fm.sn is exist - process it [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 11 00 00 [19:48:24]Write to MH i2c: E2 08 00 EC 55 80 11 00 00 00 00 00 00 BB [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 17 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 17 00 EC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 08 [19:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:48:24]wFMCommunicate OK [19:48:24]requested_item fd.num is exist - process it [19:48:24]SAM_PROTO_GetFieldsCounters [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 13 00 00 [19:48:24]Write to MH i2c: E2 08 00 ED 55 80 13 00 00 00 00 00 00 BE [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 62 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 62 00 ED 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [19:48:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:24]wFMCommunicate OK [19:48:24]SAM_PROTO_GetFieldsCounters done [19:48:24]requested_item shift.num is exist - process it [19:48:24]requested_item shift.opened is exist - process it [19:48:24]req_shift_opened [19:48:24]FM_GetShiftState [19:48:24]SAM_PROTO_GetShiftState [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 13 01 00 [19:48:24]Write to MH i2c: E2 08 00 EE 55 80 13 01 00 00 00 00 00 C0 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 0E 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 0E 00 EE 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 05 [19:48:24]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:48:24]wFMCommunicate OK [19:48:24]SAM_PROTO_GetShiftState done [19:48:24]FM_GetShiftState done [19:48:24]req_shift_opened done [19:48:24]requested_item shift.open_date is exist - process it [19:48:24]req_shift_open_date [19:48:24]req_shift_open_date done [19:48:24]produce_requested_data done [19:48:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":73999,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:48:24]process_action_free close_receipt [19:48:24]json_value_free [19:48:24]json_value_free done [19:48:24]process_json_proto returns [19:48:24]Send response to host [19:48:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":73999,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:48:24]free response buf [19:48:24]execute_script done [19:48:24]execute_script returns [19:48:24]free content buf [19:48:24]Sock 9.Close socket [19:48:24]Sock 9.Thread stoped [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:38]accept exits with 8 [19:48:38]New connection [19:48:38]New thread 3067575652 created [19:48:38]Thread 3067432292 joined [19:48:38]Waiting for new connection... [19:48:38] Sock 8.Parse request [19:48:38]Sock 8.Check first char [19:48:38]Sock 8.First char is OK [19:48:38]request: POST /json_proto HTTP/1.0 [19:48:38]Method: POST [19:48:38]URL: /json_proto [19:48:38]Method is POST - this is cgi request [19:48:38]url: /json_proto [19:48:38]query_string will be loaded in cgi processing [19:48:38]execute_cgi json_proto POST (null) [19:48:38]execute_cgi path=json_proto method=POST [19:48:38]POST find Content-Length [19:48:38]Host: 172.17.44.196:8080 [19:48:38]Content-Length: 650 [19:48:38]Content-Type: application/json [19:48:38] [19:48:38]POST finish read [19:48:38]Found Content-Length = 650 [19:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272841", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "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" ] } } [19:48:38]execute_script... [19:48: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)272841", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "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" ] } } [19:48:38]POST & json_proto [19:48:38]process_json_proto [19:48:38]json parsed OK: [19:48:38]protocol is kg_v1.0 [19:48:38]action value=close_receipt [19:48:38]process_action close_receipt [19:48:38]cmd_close_receipt [19:48:38]MH_GetDate [19:48:38]Write to MH i2c: F0 00 00 EF 55 33 [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: F0 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: F0 09 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: F0 09 00 EF 55 00 9A 5E 15 67 E7 19 F8 65 0D [19:48:38]GetLastDocTimeStamp 1729453704 [19:48:38]current date 1729453722 [19:48:38]FM_GetShiftState [19:48:38]SAM_PROTO_GetShiftState [19:48:38]wFMCommunicate request_size=4 [19:48:38]MH_SAM_APDU [19:48:38]CAPDU: 80 13 01 00 [19:48:38]Write to MH i2c: E2 08 00 F0 55 80 13 01 00 00 00 00 00 C2 [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:39]Read from MH i2c: E2 [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: E2 0E 00 [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: E2 0E 00 F0 55 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 07 [19:48:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:48:39]wFMCommunicate OK [19:48:39]SAM_PROTO_GetShiftState done [19:48:39]FM_GetShiftState done [19:48:39]opened in 1729384303 [19:48:39]opened+sec_in_day 1729470703 [19:48:39]quantity*price = 10500 [19:48:39]sum+1 = 10501 [19:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 326 20.10.2024 19:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74000 ФПД: 244051330134187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194842&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74000&fm=244051330134187&tin=02508201610067®Number=0000000000161154&sum=10500 0 [19:48:40]StoreToDocumentArchive [19:48:40]shift 170 fd 74000 [19:48:40]save to /storage/0170/doc_00074000 [19:48:40]save last doc name /storage/0170/doc_00074000 to /storage/kkm_last_doc_name [19:48:40]save OK [19:48:40]Clear old archive folders... [19:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:48:40]tlvbuf is 004CC920 [19:48:40]SAM_PROTO_ClearQueue [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 09 00 00 [19:48:40]Write to MH i2c: E2 08 00 FD 55 80 09 00 00 00 00 00 00 C4 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 FD 55 00 90 00 C6 [19:48:40]RAPDU: 90 00 [19:48:40]wFMCommunicate OK [19:48:40]SAM_PROTO_ClearQueue done [19:48:40]KKMCreateOFDPacket [19:48:40]OFDProtocolAddRootSTLVToBuf [19:48:40]FM_MakeSignedData [19:48:40]FM_MakeSignedData [19:48:40]SAM_PROTO_SignData [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 0D 01 02 [19:48:40]Write to MH i2c: E2 08 00 FE 55 80 0D 01 02 00 00 00 00 CC [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 FE 55 00 90 00 C7 [19:48:40]RAPDU: 90 00 [19:48:40]wFMCommunicate OK [19:48:40]wFMCommunicate request_size=255 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 46 01 00 00 F4 03 04 00 9A 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [19:48:40]Write to MH i2c: E2 02 01 FF 55 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 46 01 00 00 F4 03 04 00 9A 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 F2 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 FF 55 00 90 00 C8 [19:48:40]RAPDU: 90 00 [19:48:40]wFMCommunicate OK [19:48:40]wFMCommunicate request_size=41 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 21 01 00 35 04 06 00 DD F6 A0 D6 F0 AB [19:48:40]Write to MH i2c: E2 2C 00 00 56 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 21 01 00 35 04 06 00 DD F6 A0 D6 F0 AB 00 00 AF [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 03 00 00 56 00 90 00 CA [19:48:40]RAPDU: 90 00 [19:48:40]wFMCommunicate OK [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 0D 03 02 [19:48:40]Write to MH i2c: E2 08 00 01 56 80 0D 03 02 00 00 00 00 D2 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 0B 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 0B 00 01 56 00 15 1D 90 76 95 5A 9C DA 90 00 70 [19:48:40]RAPDU: 15 1D 90 76 95 5A 9C DA 90 00 [19:48:40]wFMCommunicate OK [19:48:40]SAM_PROTO_SignData done [19:48:40]FM_MakeSignedData done [19:48:40]CreateOFDProtocolMessage [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 11 00 00 [19:48:40]Write to MH i2c: E2 08 00 02 56 80 11 00 00 00 00 00 00 D2 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 17 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 17 00 02 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1F [19:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:48:40]wFMCommunicate OK [19:48:40]CreateOFDProtocolMessage done [19:48:40]OFDSenderStorePacket 74000 [19:48:40]StoreOFDPacket docnum=74000 [19:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 C3 BC 26 01 0C 27 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 46 01 00 00 F4 03 04 00 9A 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 21 01 00 35 04 06 00 DD F6 A0 D6 F0 AB 15 1D 90 76 95 5A 9C DA [19:48:40]CheckFolder [19:48:40]dirname=/storage/ofd_packets [19:48:40]CheckFolder done [19:48:40]ProducePacketName [19:48:40]name=ofd_packets/00074000 [19:48:40]NVStorageSaveData ofd_packets/00074000 [19:48:40]File name is /storage/ofd_packets/00074000 [19:48:40]Write 332 bytes [19:48:40]NVStorageSaveData done [19:48:40]OFDSenderStorePacket done [19:48:40]KKMCreateOFDPacket done [19:48:40]NVStorageSaveData kkm_last_timestamp [19:48:40]File name is /storage/kkm_last_timestamp [19:48:40]Write 4 bytes [19:48:40]NVStorageSaveData done [19:48:40]ExternCall_PrintAddStr [19:48:40]wPrintStart [19:48:40]Write to MH i2c: 01 00 00 03 56 59 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: 01 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: 01 07 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: 01 07 00 03 56 00 00 00 00 00 FF 0F 6E [19:48:40]RasterBufferAndPrint [19:48:40]line Счет N : (3)272841 [19:48:40]line ИНН: 02508201610067 [19:48:40]line Контрольно-Кассовый Чек [19:48:40]line ПРОДАЖА [19:48:40]line Товар: 2000034730018 [19:48:40]line Кофе Американо (GABB TRADE) [19:48:40]line 1.000 * 105.00 [19:48:40]line = 105.00 [19:48:40]line НДС 12% НСП 1% [19:48:40]line > о реализуемом товаре [19:48:40]line ИТОГО: 105.00 [19:48:40]line НСП 1% : 0.93 [19:48:40]line НДС 12% : 11.15 [19:48:40]line Наличными: 105.00 [19:48:40]line Безнал.: 0.00 [19:48:40]line Место: АЗС № 133 "Партнер Нефть" [19:48:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:48:40]line СНО: Общий режим [19:48:40]line Чек 326 20.10.2024 19:48 [19:48:40]line Смена: 170 ФФД: 1.0 [19:48:40]line ЗНМ: 0300000020 [19:48:40]line РНМ: 0000000000161154 [19:48:40]line Версия ККМ: v1.0 [19:48:40]line ФМ: 0000000000963323 [19:48:40]line ФД: 74000 [19:48:40]line ФПД: 244051330134187 [19:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194842&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74000&fm=244051330134187&tin=02508201610067®Number=0000000000161154&sum=10500 [19:48:41]line 0 [19:48:41]OFD Sender: Processing packet 74000 [packets to send 15, broken 14] [19:48:41]ProducePacketName [19:48:41]name=ofd_packets/00074000 [19:48:41]OFD Sender: To server: pG, [19:48:41]CommunicateWithHost lk.salyk.kg:30040 [19:48:41]ConnectInit lk.salyk.kg [19:48:41]written 0, free lines is 4095 [19:48:41]Connected sock=10 [19:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 C3 BC 26 01 0C 27 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 46 01 00 00 F4 03 04 00 9A 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 21 01 00 35 04 06 00 DD F6 A0 D6 F0 AB 15 1D 90 76 95 5A 9C DA [19:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 10 FC 47 00 32 48 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 39 36 33 33 32 33 10 04 04 00 10 21 01 00 F4 03 04 00 7E 07 15 67 B6 04 01 00 00 CC D6 70 D2 19 FF F0 88 [19:48:41]CommunicateWithHost err = 0 [19:48:41]CheckOFDResponse [19:48:41]1017 (14) - 77093643461234 [19:48:41]1041 (16) - 0000000000963323 [19:48:41]1040 (4) - 74000 [19:48:41]1012 (4) - 20.10.2024 13:37 [19:48:41]1206 (1) - 0 [19:48:41]OFD Sender: Remove packet 74000 [19:48:41]ProducePacketName [19:48:41]name=ofd_packets/00074000 [19:48:41]NVStorageDeleteData [19:48:41]Write to MH i2c: 01 00 00 2B 56 81 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: 01 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: 01 07 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: 01 07 00 2B 56 00 00 00 00 00 E8 0C 7C [19:48:41]RasterBufferAndPrint [19:48:41]line [19:48:41]line [19:48:41]line [19:48:41]line [19:48:41]line [19:48:41]written 0, free lines is 3310 [19:48:41]MH_Cut [19:48:41]Write to MH i2c: D1 01 00 32 56 01 5A [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: D1 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: D1 01 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: D1 01 00 32 56 00 59 [19:48:41]Write to MH i2c: 01 00 00 33 56 89 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]OFD Sender: No OFD packet to send [19:48:42]*** Cut start [19:48:42]*** Partial cut [19:48:42]*** CUTSNS_PIN = 1 [19:48:42]*** CUTSNS_PIN = 0 [19:48:42]*** Brake cut motor [19:48:42]Read from MH i2c: 01 [19:48:42]MH_I2C_Read... [19:48:42]*** Stop cut motor [19:48:42]*** Cut end [19:48:42]Read from MH i2c: 01 07 00 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: 01 07 00 33 56 00 00 00 00 00 FF 0F 9E [19:48:42]process_action close_receipt done [19:48:42]requested_data is exist [19:48:42]produce_requested_data [19:48:42]requested_item fm.sn is exist - process it [19:48:42]wFMCommunicate request_size=4 [19:48:42]MH_SAM_APDU [19:48:42]CAPDU: 80 11 00 00 [19:48:42]Write to MH i2c: E2 08 00 34 56 80 11 00 00 00 00 00 00 04 [19:48:42]Write i2c OK [19:48:42]MH_I2C_Read... [19:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:42]Read from MH i2c: E2 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: E2 17 00 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: E2 17 00 34 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [19:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:48:42]wFMCommunicate OK [19:48:42]requested_item fd.num is exist - process it [19:48:42]SAM_PROTO_GetFieldsCounters [19:48:42]wFMCommunicate request_size=4 [19:48:42]MH_SAM_APDU [19:48:42]CAPDU: 80 13 00 00 [19:48:42]Write to MH i2c: E2 08 00 35 56 80 13 00 00 00 00 00 00 07 [19:48:42]Write i2c OK [19:48:42]MH_I2C_Read... [19:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:43]Read from MH i2c: E2 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 62 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 62 00 35 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [19:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:43]wFMCommunicate OK [19:48:43]SAM_PROTO_GetFieldsCounters done [19:48:43]requested_item shift.num is exist - process it [19:48:43]requested_item shift.opened is exist - process it [19:48:43]req_shift_opened [19:48:43]FM_GetShiftState [19:48:43]SAM_PROTO_GetShiftState [19:48:43]wFMCommunicate request_size=4 [19:48:43]MH_SAM_APDU [19:48:43]CAPDU: 80 13 01 00 [19:48:43]Write to MH i2c: E2 08 00 36 56 80 13 01 00 00 00 00 00 09 [19:48:43]Write i2c OK [19:48:43]MH_I2C_Read... [19:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:43]Read from MH i2c: E2 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 0E 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 0E 00 36 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4E [19:48:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:48:43]wFMCommunicate OK [19:48:43]SAM_PROTO_GetShiftState done [19:48:43]FM_GetShiftState done [19:48:43]req_shift_opened done [19:48:43]requested_item shift.open_date is exist - process it [19:48:43]req_shift_open_date [19:48:43]req_shift_open_date done [19:48:43]produce_requested_data done [19:48:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74000,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:48:43]process_action_free close_receipt [19:48:43]json_value_free [19:48:43]json_value_free done [19:48:43]process_json_proto returns [19:48:43]Send response to host [19:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74000,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:48:43]free response buf [19:48:43]execute_script done [19:48:43]execute_script returns [19:48:43]free content buf [19:48:43]Sock 8.Close socket [19:48:43]Sock 8.Thread stoped [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:18]accept exits with 9 [19:49:18]New connection [19:49:18]New thread 3067432292 created [19:49:18]Thread 3067575652 joined [19:49:18]Waiting for new connection... [19:49:18] Sock 9.Parse request [19:49:18]Sock 9.Check first char [19:49:18]Sock 9.First char is OK [19:49:18]request: POST /json_proto HTTP/1.0 [19:49:18]Method: POST [19:49:18]URL: /json_proto [19:49:18]Method is POST - this is cgi request [19:49:18]url: /json_proto [19:49:18]query_string will be loaded in cgi processing [19:49:18]execute_cgi json_proto POST (null) [19:49:18]execute_cgi path=json_proto method=POST [19:49:18]POST find Content-Length [19:49:18]Host: 172.17.44.196:8080 [19:49:18]Content-Length: 678 [19:49:18]Content-Type: application/json [19:49:18] [19:49:18]POST finish read [19:49:18]Found Content-Length = 678 [19:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963293", "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" : 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" ] } } [19:49:18]execute_script... [19:49: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 : (1)1963293", "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" : 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" ] } } [19:49:18]POST & json_proto [19:49:18]process_json_proto [19:49:18]json parsed OK: [19:49:18]protocol is kg_v1.0 [19:49:18]action value=close_receipt [19:49:18]process_action close_receipt [19:49:18]cmd_close_receipt [19:49:18]MH_GetDate [19:49:18]Write to MH i2c: F0 00 00 37 56 7C [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: F0 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: F0 09 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: F0 09 00 37 56 00 C1 5E 15 67 E7 19 F8 65 7D [19:49:18]GetLastDocTimeStamp 1729453722 [19:49:18]current date 1729453761 [19:49:18]FM_GetShiftState [19:49:18]SAM_PROTO_GetShiftState [19:49:18]wFMCommunicate request_size=4 [19:49:18]MH_SAM_APDU [19:49:18]CAPDU: 80 13 01 00 [19:49:18]Write to MH i2c: E2 08 00 38 56 80 13 01 00 00 00 00 00 0B [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:18]Read from MH i2c: E2 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 0E 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 0E 00 38 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 50 [19:49:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:49:18]wFMCommunicate OK [19:49:18]SAM_PROTO_GetShiftState done [19:49:18]FM_GetShiftState done [19:49:18]opened in 1729384303 [19:49:18]opened+sec_in_day 1729470703 [19:49:18]quantity*price = 20003 [19:49:18]sum+1 = 20004 [19:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 327 20.10.2024 19:49 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74001 ФПД: 155246227044739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194921&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74001&fm=155246227044739&tin=02508201610067®Number=0000000000161154&sum=20000 [19:49:19]StoreToDocumentArchive [19:49:19]shift 170 fd 74001 [19:49:19]save to /storage/0170/doc_00074001 [19:49:19]save last doc name /storage/0170/doc_00074001 to /storage/kkm_last_doc_name [19:49:19]save OK [19:49:19]Clear old archive folders... [19:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:19]tlvbuf is 00382D70 [19:49:19]SAM_PROTO_ClearQueue [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 09 00 00 [19:49:19]Write to MH i2c: E2 08 00 45 56 80 09 00 00 00 00 00 00 0D [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 45 56 00 90 00 0F [19:49:19]RAPDU: 90 00 [19:49:19]wFMCommunicate OK [19:49:19]SAM_PROTO_ClearQueue done [19:49:19]KKMCreateOFDPacket [19:49:19]OFDProtocolAddRootSTLVToBuf [19:49:19]FM_MakeSignedData [19:49:19]FM_MakeSignedData [19:49:19]SAM_PROTO_SignData [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 0D 01 02 [19:49:19]Write to MH i2c: E2 08 00 46 56 80 0D 01 02 00 00 00 00 15 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 46 56 00 90 00 10 [19:49:19]RAPDU: 90 00 [19:49:19]wFMCommunicate OK [19:49:19]wFMCommunicate request_size=255 [19:49:19]MH_SAM_APDU [19:49:19]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 47 01 00 00 F4 03 04 00 C1 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 21 01 00 35 04 06 00 8D [19:49:19]Write to MH i2c: E2 02 01 47 56 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 47 01 00 00 F4 03 04 00 C1 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 21 01 00 35 04 06 00 8D 00 00 A6 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 47 56 00 90 00 11 [19:49:19]RAPDU: 90 00 [19:49:19]wFMCommunicate OK [19:49:19]wFMCommunicate request_size=10 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 0D 02 02 05 32 14 37 39 83 [19:49:19]Write to MH i2c: E2 0D 00 48 56 80 0D 02 02 05 00 32 14 37 39 83 00 00 5B [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 48 56 00 90 00 12 [19:49:19]RAPDU: 90 00 [19:49:19]wFMCommunicate OK [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 0D 03 02 [19:49:19]Write to MH i2c: E2 08 00 49 56 80 0D 03 02 00 00 00 00 1A [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 0B 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 0B 00 49 56 00 77 B1 F9 C1 B9 B9 75 1E 90 00 02 [19:49:19]RAPDU: 77 B1 F9 C1 B9 B9 75 1E 90 00 [19:49:19]wFMCommunicate OK [19:49:19]SAM_PROTO_SignData done [19:49:19]FM_MakeSignedData done [19:49:19]CreateOFDProtocolMessage [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 11 00 00 [19:49:19]Write to MH i2c: E2 08 00 4A 56 80 11 00 00 00 00 00 00 1A [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 17 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 17 00 4A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [19:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:49:19]wFMCommunicate OK [19:49:19]CreateOFDProtocolMessage done [19:49:19]OFDSenderStorePacket 74001 [19:49:19]StoreOFDPacket docnum=74001 [19:49:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4F 9A 07 01 7F C4 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 47 01 00 00 F4 03 04 00 C1 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 21 01 00 35 04 06 00 8D 32 14 37 39 83 77 B1 F9 C1 B9 B9 75 1E [19:49:19]CheckFolder [19:49:19]dirname=/storage/ofd_packets [19:49:19]CheckFolder done [19:49:19]ProducePacketName [19:49:19]name=ofd_packets/00074001 [19:49:19]NVStorageSaveData ofd_packets/00074001 [19:49:19]File name is /storage/ofd_packets/00074001 [19:49:19]Write 301 bytes [19:49:19]NVStorageSaveData done [19:49:19]OFDSenderStorePacket done [19:49:19]KKMCreateOFDPacket done [19:49:19]NVStorageSaveData kkm_last_timestamp [19:49:19]File name is /storage/kkm_last_timestamp [19:49:19]Write 4 bytes [19:49:19]NVStorageSaveData done [19:49:19]ExternCall_PrintAddStr [19:49:19]wPrintStart [19:49:19]Write to MH i2c: 01 00 00 4B 56 A1 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 4B 56 00 00 00 00 00 FF 0F B6 [19:49:19]RasterBufferAndPrint [19:49:19]line Счет N : (1)1963293 [19:49:19]line ИНН: 02508201610067 [19:49:19]line Контрольно-Кассовый Чек [19:49:19]line ПРОДАЖА [19:49:19]line ТРК (МРК, ГНК) : 33 [19:49:19]line Товар: 2710124130 [19:49:19]line Аи-92-К-5 [19:49:19]line 2.990 * 66.90 [19:49:19]line = 200.03 [19:49:19]line НДС 12% НСП 1% [19:49:19]line > о реализуемом товаре [19:49:19]line ОКРУГЛЕНИЕ: -0.03 [19:49:19]line ИТОГО: 200.00 [19:49:19]line Внесено: 200.00 [19:49:19]line СДАЧА: 0.00 [19:49:19]line НСП 1% : 1.77 [19:49:19]line НДС 12% : 21.24 [19:49:19]line Наличными: 200.00 [19:49:19]line Безнал.: 0.00 [19:49:19]line Место: АЗС № 133 "Партнер Нефть" [19:49:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:49:19]line СНО: Общий режим [19:49:19]line Чек 327 20.10.2024 19:49 [19:49:19]line Смена: 170 ФФД: 1.0 [19:49:19]line ЗНМ: 0300000020 [19:49:19]line РНМ: 0000000000161154 [19:49:19]line Версия ККМ: v1.0 [19:49:19]line ФМ: 0000000000963323 [19:49:19]line ФД: 74001 [19:49:19]line ФПД: 155246227044739 [19:49:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194921&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74001&fm=155246227044739&tin=02508201610067®Number=0000000000161154&sum=20000 [19:49:20]OFD Sender: Processing packet 74001 [packets to send 15, broken 14] [19:49:20]ProducePacketName [19:49:20]name=ofd_packets/00074001 [19:49:20]OFD Sender: To server: pG, [19:49:20]CommunicateWithHost lk.salyk.kg:30040 [19:49:20]ConnectInit lk.salyk.kg [19:49:20]written 0, free lines is 4095 [19:49:20]Connected sock=10 [19:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4F 9A 07 01 7F C4 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 47 01 00 00 F4 03 04 00 C1 5E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 21 01 00 35 04 06 00 8D 32 14 37 39 83 77 B1 F9 C1 B9 B9 75 1E [19:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 49 F3 47 00 26 7A 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 39 36 33 33 32 33 10 04 04 00 11 21 01 00 F4 03 04 00 A5 07 15 67 B6 04 01 00 00 C1 D1 4A 37 8D A5 0E 67 [19:49:20]CommunicateWithHost err = 0 [19:49:20]CheckOFDResponse [19:49:20]1017 (14) - 77093643461234 [19:49:20]1041 (16) - 0000000000963323 [19:49:20]1040 (4) - 74001 [19:49:20]1012 (4) - 20.10.2024 13:37 [19:49:20]1206 (1) - 0 [19:49:20]OFD Sender: Remove packet 74001 [19:49:20]ProducePacketName [19:49:20]name=ofd_packets/00074001 [19:49:20]NVStorageDeleteData [19:49:20]Write to MH i2c: 01 00 00 75 56 CB [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 75 56 00 00 00 00 00 B9 0C 97 [19:49:20]RasterBufferAndPrint [19:49:20]line [19:49:20]line [19:49:20]line [19:49:20]line [19:49:20]line [19:49:20]written 0, free lines is 3261 [19:49:20]MH_Cut [19:49:20]Write to MH i2c: D1 01 00 7C 56 01 A4 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D1 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D1 01 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D1 01 00 7C 56 00 A3 [19:49:20]Write to MH i2c: 01 00 00 7D 56 D3 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:21]OFD Sender: No OFD packet to send [19:49:21]*** Cut start [19:49:21]*** Partial cut [19:49:21]*** CUTSNS_PIN = 1 [19:49:21]*** CUTSNS_PIN = 0 [19:49:21]*** Brake cut motor [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]*** Stop cut motor [19:49:22]*** Cut end [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 7D 56 00 00 00 00 00 FF 0F E8 [19:49:22]process_action close_receipt done [19:49:22]requested_data is exist [19:49:22]produce_requested_data [19:49:22]requested_item fm.sn is exist - process it [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 11 00 00 [19:49:22]Write to MH i2c: E2 08 00 7E 56 80 11 00 00 00 00 00 00 4E [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 17 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 17 00 7E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [19:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:49:22]wFMCommunicate OK [19:49:22]requested_item fd.num is exist - process it [19:49:22]SAM_PROTO_GetFieldsCounters [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 13 00 00 [19:49:22]Write to MH i2c: E2 08 00 7F 56 80 13 00 00 00 00 00 00 51 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 62 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 62 00 7F 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_GetFieldsCounters done [19:49:22]requested_item shift.num is exist - process it [19:49:22]requested_item shift.opened is exist - process it [19:49:22]req_shift_opened [19:49:22]FM_GetShiftState [19:49:22]SAM_PROTO_GetShiftState [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 13 01 00 [19:49:22]Write to MH i2c: E2 08 00 80 56 80 13 01 00 00 00 00 00 53 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0E 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0E 00 80 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 98 [19:49:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_GetShiftState done [19:49:22]FM_GetShiftState done [19:49:22]req_shift_opened done [19:49:22]requested_item shift.open_date is exist - process it [19:49:22]req_shift_open_date [19:49:22]req_shift_open_date done [19:49:22]produce_requested_data done [19:49:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74001,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:49:22]process_action_free close_receipt [19:49:22]json_value_free [19:49:22]json_value_free done [19:49:22]process_json_proto returns [19:49:22]Send response to host [19:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74001,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:49:22]free response buf [19:49:22]execute_script done [19:49:22]execute_script returns [19:49:22]free content buf [19:49:22]Sock 9.Close socket [19:49:22]Sock 9.Thread stoped [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:47]accept exits with 8 [19:53:47]New connection [19:53:47]New thread 3067575652 created [19:53:47]Thread 3067432292 joined [19:53:47]Waiting for new connection... [19:53:47] Sock 8.Parse request [19:53:47]Sock 8.Check first char [19:53:47]Sock 8.First char is OK [19:53:47]request: POST /json_proto HTTP/1.0 [19:53:47]Method: POST [19:53:47]URL: /json_proto [19:53:47]Method is POST - this is cgi request [19:53:47]url: /json_proto [19:53:47]query_string will be loaded in cgi processing [19:53:47]execute_cgi json_proto POST (null) [19:53:47]execute_cgi path=json_proto method=POST [19:53:47]POST find Content-Length [19:53:47]Host: 172.17.44.196:8080 [19:53:47]Content-Length: 570 [19:53:47]Content-Type: application/json [19:53:47] [19:53:47]POST finish read [19:53:47]Found Content-Length = 570 [19:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272842", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "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" ] } } [19:53:47]execute_script... [19:53: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)272842", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "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" ] } } [19:53:47]POST & json_proto [19:53:47]process_json_proto [19:53:47]json parsed OK: [19:53:47]protocol is kg_v1.0 [19:53:47]action value=close_receipt [19:53:47]process_action close_receipt [19:53:47]cmd_close_receipt [19:53:47]MH_GetDate [19:53:47]Write to MH i2c: F0 00 00 81 56 C6 [19:53:47]Write i2c OK [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: F0 [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: F0 09 00 [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: F0 09 00 81 56 00 CF 5F 15 67 E7 19 F8 65 D6 [19:53:47]GetLastDocTimeStamp 1729453761 [19:53:47]current date 1729454031 [19:53:47]FM_GetShiftState [19:53:47]SAM_PROTO_GetShiftState [19:53:47]wFMCommunicate request_size=4 [19:53:47]MH_SAM_APDU [19:53:47]CAPDU: 80 13 01 00 [19:53:47]Write to MH i2c: E2 08 00 82 56 80 13 01 00 00 00 00 00 55 [19:53:47]Write i2c OK [19:53:47]MH_I2C_Read... [19:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:47]Read from MH i2c: E2 [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: E2 0E 00 [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: E2 0E 00 82 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 9A [19:53:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:53:47]wFMCommunicate OK [19:53:47]SAM_PROTO_GetShiftState done [19:53:47]FM_GetShiftState done [19:53:47]opened in 1729384303 [19:53:47]opened+sec_in_day 1729470703 [19:53:47]quantity*price = 13000 [19:53:47]sum+1 = 13001 [19:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 328 20.10.2024 19:53 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74002 ФПД: 24142856327235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195351&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74002&fm=24142856327235&tin=02508201610067®Number=0000000000161154&sum=13000 0 [19:53:48]StoreToDocumentArchive [19:53:48]shift 170 fd 74002 [19:53:48]save to /storage/0170/doc_00074002 [19:53:48]save last doc name /storage/0170/doc_00074002 to /storage/kkm_last_doc_name [19:53:48]save OK [19:53:48]Clear old archive folders... [19:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=254 [19:53:48]tlvbuf is 00338380 [19:53:48]SAM_PROTO_ClearQueue [19:53:48]wFMCommunicate request_size=4 [19:53:48]MH_SAM_APDU [19:53:48]CAPDU: 80 09 00 00 [19:53:48]Write to MH i2c: E2 08 00 8F 56 80 09 00 00 00 00 00 00 57 [19:53:48]Write i2c OK [19:53:48]MH_I2C_Read... [19:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:48]Read from MH i2c: E2 [19:53:48]MH_I2C_Read... [19:53:48]Read from MH i2c: E2 03 00 [19:53:48]MH_I2C_Read... [19:53:48]Read from MH i2c: E2 03 00 8F 56 00 90 00 59 [19:53:48]RAPDU: 90 00 [19:53:48]wFMCommunicate OK [19:53:48]SAM_PROTO_ClearQueue done [19:53:48]KKMCreateOFDPacket [19:53:48]OFDProtocolAddRootSTLVToBuf [19:53:48]FM_MakeSignedData [19:53:48]FM_MakeSignedData [19:53:48]SAM_PROTO_SignData [19:53:48]wFMCommunicate request_size=4 [19:53:48]MH_SAM_APDU [19:53:48]CAPDU: 80 0D 01 02 [19:53:48]Write to MH i2c: E2 08 00 90 56 80 0D 01 02 00 00 00 00 5F [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 90 56 00 90 00 5A [19:53:49]RAPDU: 90 00 [19:53:49]wFMCommunicate OK [19:53:49]wFMCommunicate request_size=255 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 48 01 00 00 F4 03 04 00 CF 5F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 21 01 00 35 04 [19:53:49]Write to MH i2c: E2 02 01 91 56 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 48 01 00 00 F4 03 04 00 CF 5F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 21 01 00 35 04 00 00 27 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 91 56 00 90 00 5B [19:53:49]RAPDU: 90 00 [19:53:49]wFMCommunicate OK [19:53:49]wFMCommunicate request_size=13 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 0D 02 02 08 06 00 15 F5 32 60 10 43 [19:53:49]Write to MH i2c: E2 10 00 92 56 80 0D 02 02 08 00 06 00 15 F5 32 60 10 43 00 00 67 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 92 56 00 90 00 5C [19:53:49]RAPDU: 90 00 [19:53:49]wFMCommunicate OK [19:53:49]wFMCommunicate request_size=4 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 0D 03 02 [19:53:49]Write to MH i2c: E2 08 00 93 56 80 0D 03 02 00 00 00 00 64 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 0B 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 0B 00 93 56 00 95 E5 71 3F 68 74 26 C5 90 00 56 [19:53:49]RAPDU: 95 E5 71 3F 68 74 26 C5 90 00 [19:53:49]wFMCommunicate OK [19:53:49]SAM_PROTO_SignData done [19:53:49]FM_MakeSignedData done [19:53:49]CreateOFDProtocolMessage [19:53:49]wFMCommunicate request_size=4 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 11 00 00 [19:53:49]Write to MH i2c: E2 08 00 94 56 80 11 00 00 00 00 00 00 64 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 17 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 17 00 94 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B1 [19:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:53:49]wFMCommunicate OK [19:53:49]CreateOFDProtocolMessage done [19:53:49]OFDSenderStorePacket 74002 [19:53:49]StoreOFDPacket docnum=74002 [19:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 12 01 00 00 88 75 0A 01 AB A0 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 48 01 00 00 F4 03 04 00 CF 5F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 21 01 00 35 04 06 00 15 F5 32 60 10 43 95 E5 71 3F 68 74 26 C5 [19:53:49]CheckFolder [19:53:49]dirname=/storage/ofd_packets [19:53:49]CheckFolder done [19:53:49]ProducePacketName [19:53:49]name=ofd_packets/00074002 [19:53:49]NVStorageSaveData ofd_packets/00074002 [19:53:49]File name is /storage/ofd_packets/00074002 [19:53:49]Write 304 bytes [19:53:49]NVStorageSaveData done [19:53:49]OFDSenderStorePacket done [19:53:49]KKMCreateOFDPacket done [19:53:49]NVStorageSaveData kkm_last_timestamp [19:53:49]File name is /storage/kkm_last_timestamp [19:53:49]Write 4 bytes [19:53:49]NVStorageSaveData done [19:53:49]ExternCall_PrintAddStr [19:53:49]wPrintStart [19:53:49]Write to MH i2c: 01 00 00 95 56 EB [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 95 56 00 00 00 00 00 FF 0F 00 [19:53:49]RasterBufferAndPrint [19:53:49]line Счет N : (3)272842 [19:53:49]line ИНН: 02508201610067 [19:53:49]line Контрольно-Кассовый Чек [19:53:49]line ПРОДАЖА [19:53:49]line Товар: 48744546 [19:53:49]line LD Compact Silver [19:53:49]line 1.000 * 130.00 [19:53:49]line = 130.00 [19:53:49]line НДС 12% НСП 1% [19:53:49]line > о реализуемом товаре [19:53:49]line ИТОГО: 130.00 [19:53:49]line НСП 1% : 1.15 [19:53:49]line НДС 12% : 13.80 [19:53:49]line Наличными: 130.00 [19:53:49]line Безнал.: 0.00 [19:53:49]line Место: АЗС № 133 "Партнер Нефть" [19:53:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:53:49]line СНО: Общий режим [19:53:49]line Чек 328 20.10.2024 19:53 [19:53:49]line Смена: 170 ФФД: 1.0 [19:53:49]line ЗНМ: 0300000020 [19:53:49]line РНМ: 0000000000161154 [19:53:49]line Версия ККМ: v1.0 [19:53:49]line ФМ: 0000000000963323 [19:53:49]line ФД: 74002 [19:53:49]line ФПД: 24142856327235 [19:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195351&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74002&fm=24142856327235&tin=02508201610067®Number=0000000000161154&sum=13000 [19:53:49]line 0 [19:53:49]written 0, free lines is 4095 [19:53:49]OFD Sender: Processing packet 74002 [packets to send 15, broken 14] [19:53:49]ProducePacketName [19:53:49]name=ofd_packets/00074002 [19:53:49]OFD Sender: To server: pG, [19:53:49]CommunicateWithHost lk.salyk.kg:30040 [19:53:49]ConnectInit lk.salyk.kg [19:53:49]Connected sock=10 [19:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 12 01 00 00 88 75 0A 01 AB A0 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 48 01 00 00 F4 03 04 00 CF 5F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 21 01 00 35 04 06 00 15 F5 32 60 10 43 95 E5 71 3F 68 74 26 C5 [19:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3C BA 47 00 17 C9 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 39 36 33 33 32 33 10 04 04 00 12 21 01 00 F4 03 04 00 B2 08 15 67 B6 04 01 00 00 D4 87 B9 68 59 54 54 9B [19:53:49]CommunicateWithHost err = 0 [19:53:49]CheckOFDResponse [19:53:49]1017 (14) - 77093643461234 [19:53:49]1041 (16) - 0000000000963323 [19:53:49]1040 (4) - 74002 [19:53:49]1012 (4) - 20.10.2024 13:42 [19:53:49]1206 (1) - 0 [19:53:49]OFD Sender: Remove packet 74002 [19:53:49]ProducePacketName [19:53:49]name=ofd_packets/00074002 [19:53:49]NVStorageDeleteData [19:53:49]Write to MH i2c: 01 00 00 BC 56 12 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 BC 56 00 00 00 00 00 EB 0C 10 [19:53:49]RasterBufferAndPrint [19:53:49]line [19:53:49]line [19:53:49]line [19:53:49]line [19:53:49]line [19:53:49]written 0, free lines is 3313 [19:53:49]MH_Cut [19:53:49]Write to MH i2c: D1 01 00 C3 56 01 EB [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: D1 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: D1 01 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: D1 01 00 C3 56 00 EA [19:53:49]Write to MH i2c: 01 00 00 C4 56 1A [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]OFD Sender: No OFD packet to send [19:53:50]*** Cut start [19:53:50]*** Partial cut [19:53:50]*** CUTSNS_PIN = 1 [19:53:50]*** CUTSNS_PIN = 0 [19:53:51]*** Brake cut motor [19:53:51]Read from MH i2c: 01 [19:53:51]MH_I2C_Read... [19:53:51]*** Stop cut motor [19:53:51]*** Cut end [19:53:51]Read from MH i2c: 01 07 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: 01 07 00 C4 56 00 00 00 00 00 FF 0F 2F [19:53:51]process_action close_receipt done [19:53:51]requested_data is exist [19:53:51]produce_requested_data [19:53:51]requested_item fm.sn is exist - process it [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 11 00 00 [19:53:51]Write to MH i2c: E2 08 00 C5 56 80 11 00 00 00 00 00 00 95 [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 17 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 17 00 C5 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E2 [19:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:53:51]wFMCommunicate OK [19:53:51]requested_item fd.num is exist - process it [19:53:51]SAM_PROTO_GetFieldsCounters [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 13 00 00 [19:53:51]Write to MH i2c: E2 08 00 C6 56 80 13 00 00 00 00 00 00 98 [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 62 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 62 00 C6 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [19:53:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:51]wFMCommunicate OK [19:53:51]SAM_PROTO_GetFieldsCounters done [19:53:51]requested_item shift.num is exist - process it [19:53:51]requested_item shift.opened is exist - process it [19:53:51]req_shift_opened [19:53:51]FM_GetShiftState [19:53:51]SAM_PROTO_GetShiftState [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 13 01 00 [19:53:51]Write to MH i2c: E2 08 00 C7 56 80 13 01 00 00 00 00 00 9A [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 0E 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 0E 00 C7 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DF [19:53:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [19:53:51]wFMCommunicate OK [19:53:51]SAM_PROTO_GetShiftState done [19:53:51]FM_GetShiftState done [19:53:51]req_shift_opened done [19:53:51]requested_item shift.open_date is exist - process it [19:53:51]req_shift_open_date [19:53:51]req_shift_open_date done [19:53:51]produce_requested_data done [19:53:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74002,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [19:53:51]process_action_free close_receipt [19:53:51]json_value_free [19:53:51]json_value_free done [19:53:51]process_json_proto returns [19:53:51]Send response to host [19:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74002,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [19:53:51]free response buf [19:53:51]execute_script done [19:53:51]execute_script returns [19:53:51]free content buf [19:53:51]Sock 8.Close socket [19:53:51]Sock 8.Thread stoped [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:34]accept exits with 9 [20:02:34]New connection [20:02:34]New thread 3067432292 created [20:02:34]Thread 3067575652 joined [20:02:34]Waiting for new connection... [20:02:34] Sock 9.Parse request [20:02:34]Sock 9.Check first char [20:02:34]Sock 9.First char is OK [20:02:34]request: POST /json_proto HTTP/1.0 [20:02:34]Method: POST [20:02:34]URL: /json_proto [20:02:34]Method is POST - this is cgi request [20:02:34]url: /json_proto [20:02:34]query_string will be loaded in cgi processing [20:02:34]execute_cgi json_proto POST (null) [20:02:34]execute_cgi path=json_proto method=POST [20:02:34]POST find Content-Length [20:02:34]Host: 172.17.44.196:8080 [20:02:34]Content-Length: 633 [20:02:34]Content-Type: application/json [20:02:34] [20:02:34]POST finish read [20:02:34]Found Content-Length = 633 [20:02:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272843", "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 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:34]execute_script... [20: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)272843", "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 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:34]POST & json_proto [20:02:34]process_json_proto [20:02:34]json parsed OK: [20:02:34]protocol is kg_v1.0 [20:02:34]action value=close_receipt [20:02:34]process_action close_receipt [20:02:34]cmd_close_receipt [20:02:34]MH_GetDate [20:02:34]Write to MH i2c: F0 00 00 C8 56 0D [20:02:34]Write i2c OK [20:02:34]MH_I2C_Read... [20:02:34]Read from MH i2c: F0 [20:02:34]MH_I2C_Read... [20:02:34]Read from MH i2c: F0 09 00 [20:02:34]MH_I2C_Read... [20:02:34]Read from MH i2c: F0 09 00 C8 56 00 DE 61 15 67 E7 19 F8 65 2E [20:02:34]GetLastDocTimeStamp 1729454031 [20:02:34]current date 1729454558 [20:02:34]FM_GetShiftState [20:02:34]SAM_PROTO_GetShiftState [20:02:34]wFMCommunicate request_size=4 [20:02:34]MH_SAM_APDU [20:02:34]CAPDU: 80 13 01 00 [20:02:34]Write to MH i2c: E2 08 00 C9 56 80 13 01 00 00 00 00 00 9C [20:02:34]Write i2c OK [20:02:34]MH_I2C_Read... [20:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:34]Read from MH i2c: E2 [20:02:34]MH_I2C_Read... [20:02:34]Read from MH i2c: E2 0E 00 [20:02:34]MH_I2C_Read... [20:02:34]Read from MH i2c: E2 0E 00 C9 56 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E1 [20:02:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:02:34]wFMCommunicate OK [20:02:34]SAM_PROTO_GetShiftState done [20:02:34]FM_GetShiftState done [20:02:34]opened in 1729384303 [20:02:34]opened+sec_in_day 1729470703 [20:02:34]quantity*price = 7500 [20:02:34]sum+1 = 7501 [20:02:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 329 20.10.2024 20:02 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74003 ФПД: 203084115900250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200238&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74003&fm=203084115900250&tin=02508201610067®Number=0000000000161154&sum=7500 0 [20:02:36]StoreToDocumentArchive [20:02:36]shift 170 fd 74003 [20:02:36]save to /storage/0170/doc_00074003 [20:02:36]save last doc name /storage/0170/doc_00074003 to /storage/kkm_last_doc_name [20:02:36]save OK [20:02:36]Clear old archive folders... [20:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=268 [20:02:36]tlvbuf is 004EC050 [20:02:36]SAM_PROTO_ClearQueue [20:02:36]wFMCommunicate request_size=4 [20:02:36]MH_SAM_APDU [20:02:36]CAPDU: 80 09 00 00 [20:02:36]Write to MH i2c: E2 08 00 D6 56 80 09 00 00 00 00 00 00 9E [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:36]Read from MH i2c: E2 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 D6 56 00 90 00 A0 [20:02:36]RAPDU: 90 00 [20:02:36]wFMCommunicate OK [20:02:36]SAM_PROTO_ClearQueue done [20:02:36]KKMCreateOFDPacket [20:02:36]OFDProtocolAddRootSTLVToBuf [20:02:36]FM_MakeSignedData [20:02:36]FM_MakeSignedData [20:02:36]SAM_PROTO_SignData [20:02:36]wFMCommunicate request_size=4 [20:02:36]MH_SAM_APDU [20:02:36]CAPDU: 80 0D 01 02 [20:02:36]Write to MH i2c: E2 08 00 D7 56 80 0D 01 02 00 00 00 00 A6 [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:36]Read from MH i2c: E2 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 D7 56 00 90 00 A1 [20:02:36]RAPDU: 90 00 [20:02:36]wFMCommunicate OK [20:02:36]wFMCommunicate request_size=255 [20:02:36]MH_SAM_APDU [20:02:36]CAPDU: 80 0D 02 02 FA 03 00 0C 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 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 49 01 00 00 F4 03 04 00 DE 61 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [20:02:36]Write to MH i2c: E2 02 01 D8 56 80 0D 02 02 FA 00 03 00 0C 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 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 49 01 00 00 F4 03 04 00 DE 61 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 A9 [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:36]Read from MH i2c: E2 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 D8 56 00 90 00 A2 [20:02:36]RAPDU: 90 00 [20:02:36]wFMCommunicate OK [20:02:36]wFMCommunicate request_size=27 [20:02:36]MH_SAM_APDU [20:02:36]CAPDU: 80 0D 02 02 16 33 33 32 33 10 04 04 00 13 21 01 00 35 04 06 00 B8 B4 34 96 77 5A [20:02:36]Write to MH i2c: E2 1E 00 D9 56 80 0D 02 02 16 00 33 33 32 33 10 04 04 00 13 21 01 00 35 04 06 00 B8 B4 34 96 77 5A 00 00 33 [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:36]Read from MH i2c: E2 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 03 00 D9 56 00 90 00 A3 [20:02:36]RAPDU: 90 00 [20:02:36]wFMCommunicate OK [20:02:36]wFMCommunicate request_size=4 [20:02:36]MH_SAM_APDU [20:02:36]CAPDU: 80 0D 03 02 [20:02:36]Write to MH i2c: E2 08 00 DA 56 80 0D 03 02 00 00 00 00 AB [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:36]Read from MH i2c: E2 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 0B 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 0B 00 DA 56 00 AD C1 DA DB A9 B7 03 98 90 00 CA [20:02:36]RAPDU: AD C1 DA DB A9 B7 03 98 90 00 [20:02:36]wFMCommunicate OK [20:02:36]SAM_PROTO_SignData done [20:02:36]FM_MakeSignedData done [20:02:36]CreateOFDProtocolMessage [20:02:36]wFMCommunicate request_size=4 [20:02:36]MH_SAM_APDU [20:02:36]CAPDU: 80 11 00 00 [20:02:36]Write to MH i2c: E2 08 00 DB 56 80 11 00 00 00 00 00 00 AB [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:36]Read from MH i2c: E2 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 17 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: E2 17 00 DB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F8 [20:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:02:36]wFMCommunicate OK [20:02:36]CreateOFDProtocolMessage done [20:02:36]OFDSenderStorePacket 74003 [20:02:36]StoreOFDPacket docnum=74003 [20:02:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 48 33 18 01 66 89 5A 03 01 00 03 00 0C 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 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 49 01 00 00 F4 03 04 00 DE 61 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 21 01 00 35 04 06 00 B8 B4 34 96 77 5A AD C1 DA DB A9 B7 03 98 [20:02:36]CheckFolder [20:02:36]dirname=/storage/ofd_packets [20:02:36]CheckFolder done [20:02:36]ProducePacketName [20:02:36]name=ofd_packets/00074003 [20:02:36]NVStorageSaveData ofd_packets/00074003 [20:02:36]File name is /storage/ofd_packets/00074003 [20:02:36]Write 318 bytes [20:02:36]NVStorageSaveData done [20:02:36]OFDSenderStorePacket done [20:02:36]KKMCreateOFDPacket done [20:02:36]NVStorageSaveData kkm_last_timestamp [20:02:36]File name is /storage/kkm_last_timestamp [20:02:36]Write 4 bytes [20:02:36]NVStorageSaveData done [20:02:36]ExternCall_PrintAddStr [20:02:36]wPrintStart [20:02:36]Write to MH i2c: 01 00 00 DC 56 32 [20:02:36]Write i2c OK [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: 01 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: 01 07 00 [20:02:36]MH_I2C_Read... [20:02:36]Read from MH i2c: 01 07 00 DC 56 00 00 00 00 00 FF 0F 47 [20:02:36]RasterBufferAndPrint [20:02:36]line Счет N : (3)272843 [20:02:36]line ИНН: 02508201610067 [20:02:36]line Контрольно-Кассовый Чек [20:02:36]line ПРОДАЖА [20:02:36]line Товар: 40822938 [20:02:36]line Напиток Фанта 0,5л [20:02:36]line 1.000 * 75.00 [20:02:36]line = 75.00 [20:02:36]line НДС 12% НСП 1% [20:02:36]line > о реализуемом товаре [20:02:36]line ИТОГО: 75.00 [20:02:36]line НСП 1% : 0.66 [20:02:36]line НДС 12% : 7.96 [20:02:36]line Наличными: 75.00 [20:02:36]line Безнал.: 0.00 [20:02:36]line Место: АЗС № 133 "Партнер Нефть" [20:02:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:02:36]line СНО: Общий режим [20:02:36]line Чек 329 20.10.2024 20:02 [20:02:36]line Смена: 170 ФФД: 1.0 [20:02:36]line ЗНМ: 0300000020 [20:02:36]line РНМ: 0000000000161154 [20:02:36]line Версия ККМ: v1.0 [20:02:36]line ФМ: 0000000000963323 [20:02:36]line ФД: 74003 [20:02:36]line ФПД: 203084115900250 [20:02:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200238&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74003&fm=203084115900250&tin=02508201610067®Number=0000000000161154&sum=7500 [20:02:36]line 0 [20:02:36]OFD Sender: Processing packet 74003 [packets to send 15, broken 14] [20:02:36]ProducePacketName [20:02:36]name=ofd_packets/00074003 [20:02:36]OFD Sender: To server: pG, [20:02:36]CommunicateWithHost lk.salyk.kg:30040 [20:02:36]ConnectInit lk.salyk.kg [20:02:36]written 0, free lines is 4095 [20:02:37]Connected sock=10 [20:02:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 20 01 00 00 48 33 18 01 66 89 5A 03 01 00 03 00 0C 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 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 49 01 00 00 F4 03 04 00 DE 61 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 21 01 00 35 04 06 00 B8 B4 34 96 77 5A AD C1 DA DB A9 B7 03 98 [20:02:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C6 9B 47 00 B6 93 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 39 36 33 33 32 33 10 04 04 00 13 21 01 00 F4 03 04 00 C2 0A 15 67 B6 04 01 00 00 8A 35 4F 25 D8 E4 D7 3F [20:02:37]CommunicateWithHost err = 0 [20:02:37]CheckOFDResponse [20:02:37]1017 (14) - 77093643461234 [20:02:37]1041 (16) - 0000000000963323 [20:02:37]1040 (4) - 74003 [20:02:37]1012 (4) - 20.10.2024 13:50 [20:02:37]1206 (1) - 0 [20:02:37]OFD Sender: Remove packet 74003 [20:02:37]ProducePacketName [20:02:37]name=ofd_packets/00074003 [20:02:37]NVStorageDeleteData [20:02:37]Write to MH i2c: 01 00 00 03 57 5A [20:02:37]Write i2c OK [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: 01 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: 01 07 00 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: 01 07 00 03 57 00 00 00 00 00 E2 0C 4F [20:02:37]RasterBufferAndPrint [20:02:37]line [20:02:37]line [20:02:37]line [20:02:37]line [20:02:37]line [20:02:37]written 0, free lines is 3304 [20:02:37]MH_Cut [20:02:37]Write to MH i2c: D1 01 00 0A 57 01 33 [20:02:37]Write i2c OK [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: D1 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: D1 01 00 [20:02:37]MH_I2C_Read... [20:02:37]Read from MH i2c: D1 01 00 0A 57 00 32 [20:02:37]Write to MH i2c: 01 00 00 0B 57 62 [20:02:37]Write i2c OK [20:02:37]MH_I2C_Read... [20:02:37]OFD Sender: No OFD packet to send [20:02:38]*** Cut start [20:02:38]*** Partial cut [20:02:38]*** CUTSNS_PIN = 1 [20:02:38]*** CUTSNS_PIN = 0 [20:02:38]*** Brake cut motor [20:02:38]Read from MH i2c: 01 [20:02:38]MH_I2C_Read... [20:02:38]*** Stop cut motor [20:02:38]*** Cut end [20:02:38]Read from MH i2c: 01 07 00 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: 01 07 00 0B 57 00 00 00 00 00 FF 0F 77 [20:02:38]process_action close_receipt done [20:02:38]requested_data is exist [20:02:38]produce_requested_data [20:02:38]requested_item fm.sn is exist - process it [20:02:38]wFMCommunicate request_size=4 [20:02:38]MH_SAM_APDU [20:02:38]CAPDU: 80 11 00 00 [20:02:38]Write to MH i2c: E2 08 00 0C 57 80 11 00 00 00 00 00 00 DD [20:02:38]Write i2c OK [20:02:38]MH_I2C_Read... [20:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:38]Read from MH i2c: E2 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: E2 17 00 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: E2 17 00 0C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [20:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:02:38]wFMCommunicate OK [20:02:38]requested_item fd.num is exist - process it [20:02:38]SAM_PROTO_GetFieldsCounters [20:02:38]wFMCommunicate request_size=4 [20:02:38]MH_SAM_APDU [20:02:38]CAPDU: 80 13 00 00 [20:02:38]Write to MH i2c: E2 08 00 0D 57 80 13 00 00 00 00 00 00 E0 [20:02:38]Write i2c OK [20:02:38]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 62 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 62 00 0D 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [20:02:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:39]wFMCommunicate OK [20:02:39]SAM_PROTO_GetFieldsCounters done [20:02:39]requested_item shift.num is exist - process it [20:02:39]requested_item shift.opened is exist - process it [20:02:39]req_shift_opened [20:02:39]FM_GetShiftState [20:02:39]SAM_PROTO_GetShiftState [20:02:39]wFMCommunicate request_size=4 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 13 01 00 [20:02:39]Write to MH i2c: E2 08 00 0E 57 80 13 01 00 00 00 00 00 E2 [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 0E 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 0E 00 0E 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 27 [20:02:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:02:39]wFMCommunicate OK [20:02:39]SAM_PROTO_GetShiftState done [20:02:39]FM_GetShiftState done [20:02:39]req_shift_opened done [20:02:39]requested_item shift.open_date is exist - process it [20:02:39]req_shift_open_date [20:02:39]req_shift_open_date done [20:02:39]produce_requested_data done [20:02:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74003,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:02:39]process_action_free close_receipt [20:02:39]json_value_free [20:02:39]json_value_free done [20:02:39]process_json_proto returns [20:02:39]Send response to host [20:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74003,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:02:39]free response buf [20:02:39]execute_script done [20:02:39]execute_script returns [20:02:39]free content buf [20:02:39]Sock 9.Close socket [20:02:39]Sock 9.Thread stoped [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:55]accept exits with 8 [20:07:55]New connection [20:07:55]New thread 3067575652 created [20:07:55]Thread 3067432292 joined [20:07:55]Waiting for new connection... [20:07:55] Sock 8.Parse request [20:07:55]Sock 8.Check first char [20:07:55]Sock 8.First char is OK [20:07:55]request: POST /json_proto HTTP/1.0 [20:07:55]Method: POST [20:07:55]URL: /json_proto [20:07:55]Method is POST - this is cgi request [20:07:55]url: /json_proto [20:07:55]query_string will be loaded in cgi processing [20:07:55]execute_cgi json_proto POST (null) [20:07:55]execute_cgi path=json_proto method=POST [20:07:55]POST find Content-Length [20:07:55]Host: 172.17.44.196:8080 [20:07:55]Content-Length: 718 [20:07:55]Content-Type: application/json [20:07:55] [20:07:55]POST finish read [20:07:55]Found Content-Length = 718 [20:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272844", "tax_sys" : 0, "items" : [ { "code": "4870069000374", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u043A\u0443\u043A\u0443\u0440\u0443\u0437\u043D\u044B\u0435 \u0421\u043B\u0430\u0441\u0442\u0435\u043D\u0430 50\u0433", "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" ] } } [20:07:55]execute_script... [20:07: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 : (3)272844", "tax_sys" : 0, "items" : [ { "code": "4870069000374", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u043A\u0443\u043A\u0443\u0440\u0443\u0437\u043D\u044B\u0435 \u0421\u043B\u0430\u0441\u0442\u0435\u043D\u0430 50\u0433", "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" ] } } [20:07:55]POST & json_proto [20:07:55]process_json_proto [20:07:55]json parsed OK: [20:07:55]protocol is kg_v1.0 [20:07:55]action value=close_receipt [20:07:55]process_action close_receipt [20:07:55]cmd_close_receipt [20:07:55]MH_GetDate [20:07:55]Write to MH i2c: F0 00 00 0F 57 55 [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: F0 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: F0 09 00 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: F0 09 00 0F 57 00 1F 63 15 67 E7 19 F8 65 B9 [20:07:55]GetLastDocTimeStamp 1729454558 [20:07:55]current date 1729454879 [20:07:55]FM_GetShiftState [20:07:55]SAM_PROTO_GetShiftState [20:07:55]wFMCommunicate request_size=4 [20:07:55]MH_SAM_APDU [20:07:55]CAPDU: 80 13 01 00 [20:07:55]Write to MH i2c: E2 08 00 10 57 80 13 01 00 00 00 00 00 E4 [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:56]Read from MH i2c: E2 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: E2 0E 00 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: E2 0E 00 10 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 29 [20:07:56]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:07:56]wFMCommunicate OK [20:07:56]SAM_PROTO_GetShiftState done [20:07:56]FM_GetShiftState done [20:07:56]opened in 1729384303 [20:07:56]opened+sec_in_day 1729470703 [20:07:56]quantity*price = 16000 [20:07:56]sum+1 = 16001 [20:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 330 20.10.2024 20:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74004 ФПД: 147459443430893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200759&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74004&fm=147459443430893&tin=02508201610067®Number=0000000000161154&sum=16000 0 [20:07:57]StoreToDocumentArchive [20:07:57]shift 170 fd 74004 [20:07:57]save to /storage/0170/doc_00074004 [20:07:57]save last doc name /storage/0170/doc_00074004 to /storage/kkm_last_doc_name [20:07:57]save OK [20:07:57]Clear old archive folders... [20:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=299 [20:07:57]tlvbuf is 0039DD20 [20:07:57]SAM_PROTO_ClearQueue [20:07:57]wFMCommunicate request_size=4 [20:07:57]MH_SAM_APDU [20:07:57]CAPDU: 80 09 00 00 [20:07:57]Write to MH i2c: E2 08 00 1D 57 80 09 00 00 00 00 00 00 E6 [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:57]Read from MH i2c: E2 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 1D 57 00 90 00 E8 [20:07:57]RAPDU: 90 00 [20:07:57]wFMCommunicate OK [20:07:57]SAM_PROTO_ClearQueue done [20:07:57]KKMCreateOFDPacket [20:07:57]OFDProtocolAddRootSTLVToBuf [20:07:57]FM_MakeSignedData [20:07:57]FM_MakeSignedData [20:07:57]SAM_PROTO_SignData [20:07:57]wFMCommunicate request_size=4 [20:07:57]MH_SAM_APDU [20:07:57]CAPDU: 80 0D 01 02 [20:07:57]Write to MH i2c: E2 08 00 1E 57 80 0D 01 02 00 00 00 00 EE [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:57]Read from MH i2c: E2 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 1E 57 00 90 00 E9 [20:07:57]RAPDU: 90 00 [20:07:57]wFMCommunicate OK [20:07:57]wFMCommunicate request_size=255 [20:07:57]MH_SAM_APDU [20:07: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 38 37 30 30 36 39 30 30 30 33 37 34 06 04 39 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 35 30 D0 B3 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 4A 01 00 00 F4 03 04 00 1F 63 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [20:07:57]Write to MH i2c: E2 02 01 1F 57 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 36 39 30 30 30 33 37 34 06 04 39 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 35 30 D0 B3 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 4A 01 00 00 F4 03 04 00 1F 63 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 BB [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:57]Read from MH i2c: E2 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 1F 57 00 90 00 EA [20:07:57]RAPDU: 90 00 [20:07:57]wFMCommunicate OK [20:07:57]wFMCommunicate request_size=58 [20:07:57]MH_SAM_APDU [20:07:57]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 21 01 00 35 04 06 00 86 1D 13 BE 95 ED [20:07:57]Write to MH i2c: E2 3D 00 20 57 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 21 01 00 35 04 06 00 86 1D 13 BE 95 ED 00 00 FF [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:57]Read from MH i2c: E2 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 03 00 20 57 00 90 00 EB [20:07:57]RAPDU: 90 00 [20:07:57]wFMCommunicate OK [20:07:57]wFMCommunicate request_size=4 [20:07:57]MH_SAM_APDU [20:07:57]CAPDU: 80 0D 03 02 [20:07:57]Write to MH i2c: E2 08 00 21 57 80 0D 03 02 00 00 00 00 F3 [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:57]Read from MH i2c: E2 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 0B 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 0B 00 21 57 00 71 0E 21 D3 4C 4E 6F 66 90 00 D6 [20:07:57]RAPDU: 71 0E 21 D3 4C 4E 6F 66 90 00 [20:07:57]wFMCommunicate OK [20:07:57]SAM_PROTO_SignData done [20:07:57]FM_MakeSignedData done [20:07:57]CreateOFDProtocolMessage [20:07:57]wFMCommunicate request_size=4 [20:07:57]MH_SAM_APDU [20:07:57]CAPDU: 80 11 00 00 [20:07:57]Write to MH i2c: E2 08 00 22 57 80 11 00 00 00 00 00 00 F3 [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:57]Read from MH i2c: E2 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 17 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: E2 17 00 22 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [20:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:07:57]wFMCommunicate OK [20:07:57]CreateOFDProtocolMessage done [20:07:57]OFDSenderStorePacket 74004 [20:07:57]StoreOFDPacket docnum=74004 [20:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3F 01 00 00 5D FC 37 01 ED 2D 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 36 39 30 30 30 33 37 34 06 04 39 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 35 30 D0 B3 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 4A 01 00 00 F4 03 04 00 1F 63 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 21 01 00 35 04 06 00 86 1D 13 BE 95 ED 71 0E 21 D3 4C 4E 6F 66 [20:07:57]CheckFolder [20:07:57]dirname=/storage/ofd_packets [20:07:57]CheckFolder done [20:07:57]ProducePacketName [20:07:57]name=ofd_packets/00074004 [20:07:57]NVStorageSaveData ofd_packets/00074004 [20:07:57]File name is /storage/ofd_packets/00074004 [20:07:57]Write 349 bytes [20:07:57]NVStorageSaveData done [20:07:57]OFDSenderStorePacket done [20:07:57]KKMCreateOFDPacket done [20:07:57]NVStorageSaveData kkm_last_timestamp [20:07:57]File name is /storage/kkm_last_timestamp [20:07:57]Write 4 bytes [20:07:57]NVStorageSaveData done [20:07:57]ExternCall_PrintAddStr [20:07:57]wPrintStart [20:07:57]Write to MH i2c: 01 00 00 23 57 7A [20:07:57]Write i2c OK [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: 01 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: 01 07 00 [20:07:57]MH_I2C_Read... [20:07:57]Read from MH i2c: 01 07 00 23 57 00 00 00 00 00 FF 0F 8F [20:07:57]RasterBufferAndPrint [20:07:57]line Счет N : (3)272844 [20:07:57]line ИНН: 02508201610067 [20:07:57]line Контрольно-Кассовый Чек [20:07:57]line ПРОДАЖА [20:07:57]line Товар: 4870069000374 [20:07:57]line Палочки кукурузные Сластена 50г [20:07:57]line 4.000 * 40.00 [20:07:57]line = 160.00 [20:07:57]line НДС 12% НСП 1% [20:07:57]line > о реализуемом товаре [20:07:57]line ИТОГО: 160.00 [20:07:57]line НСП 1% : 1.42 [20:07:57]line НДС 12% : 16.99 [20:07:57]line Наличными: 160.00 [20:07:57]line Безнал.: 0.00 [20:07:57]line Место: АЗС № 133 "Партнер Нефть" [20:07:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:07:57]line СНО: Общий режим [20:07:57]line Чек 330 20.10.2024 20:07 [20:07:57]line Смена: 170 ФФД: 1.0 [20:07:57]line ЗНМ: 0300000020 [20:07:57]line РНМ: 0000000000161154 [20:07:57]line Версия ККМ: v1.0 [20:07:57]line ФМ: 0000000000963323 [20:07:57]line ФД: 74004 [20:07:57]line ФПД: 147459443430893 [20:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200759&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74004&fm=147459443430893&tin=02508201610067®Number=0000000000161154&sum=16000 [20:07:58]line 0 [20:07:58]OFD Sender: Processing packet 74004 [packets to send 15, broken 14] [20:07:58]ProducePacketName [20:07:58]name=ofd_packets/00074004 [20:07:58]OFD Sender: To server: pG, [20:07:58]CommunicateWithHost lk.salyk.kg:30040 [20:07:58]ConnectInit lk.salyk.kg [20:07:58]written 0, free lines is 4095 [20:07:58]Connected sock=10 [20:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3F 01 00 00 5D FC 37 01 ED 2D 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 36 39 30 30 30 33 37 34 06 04 39 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 35 30 D0 B3 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 4A 01 00 00 F4 03 04 00 1F 63 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 21 01 00 35 04 06 00 86 1D 13 BE 95 ED 71 0E 21 D3 4C 4E 6F 66 [20:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5F 31 47 00 AD 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 39 36 33 33 32 33 10 04 04 00 14 21 01 00 F4 03 04 00 03 0C 15 67 B6 04 01 00 00 F4 A7 D9 03 2A 41 17 82 [20:07:58]CommunicateWithHost err = 0 [20:07:58]CheckOFDResponse [20:07:58]1017 (14) - 77093643461234 [20:07:58]1041 (16) - 0000000000963323 [20:07:58]1040 (4) - 74004 [20:07:58]1012 (4) - 20.10.2024 13:56 [20:07:58]1206 (1) - 0 [20:07:58]OFD Sender: Remove packet 74004 [20:07:58]ProducePacketName [20:07:58]name=ofd_packets/00074004 [20:07:58]NVStorageDeleteData [20:07:58]Write to MH i2c: 01 00 00 4B 57 A2 [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: 01 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: 01 07 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: 01 07 00 4B 57 00 00 00 00 00 D5 0C 8A [20:07:58]RasterBufferAndPrint [20:07:58]line [20:07:58]line [20:07:58]line [20:07:58]line [20:07:58]line [20:07:58]written 0, free lines is 3291 [20:07:58]MH_Cut [20:07:58]Write to MH i2c: D1 01 00 52 57 01 7B [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: D1 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: D1 01 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: D1 01 00 52 57 00 7A [20:07:58]Write to MH i2c: 01 00 00 53 57 AA [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]OFD Sender: No OFD packet to send [20:07:59]*** Cut start [20:07:59]*** Partial cut [20:07:59]*** CUTSNS_PIN = 1 [20:07:59]*** CUTSNS_PIN = 0 [20:07:59]*** Brake cut motor [20:07:59]Read from MH i2c: 01 [20:07:59]MH_I2C_Read... [20:07:59]*** Stop cut motor [20:07:59]*** Cut end [20:07:59]Read from MH i2c: 01 07 00 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: 01 07 00 53 57 00 00 00 00 00 FF 0F BF [20:07:59]process_action close_receipt done [20:07:59]requested_data is exist [20:07:59]produce_requested_data [20:07:59]requested_item fm.sn is exist - process it [20:07:59]wFMCommunicate request_size=4 [20:07:59]MH_SAM_APDU [20:07:59]CAPDU: 80 11 00 00 [20:07:59]Write to MH i2c: E2 08 00 54 57 80 11 00 00 00 00 00 00 25 [20:07:59]Write i2c OK [20:07:59]MH_I2C_Read... [20:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:59]Read from MH i2c: E2 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: E2 17 00 [20:07:59]MH_I2C_Read... [20:07:59]Read from MH i2c: E2 17 00 54 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 72 [20:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:07:59]wFMCommunicate OK [20:07:59]requested_item fd.num is exist - process it [20:07:59]SAM_PROTO_GetFieldsCounters [20:07:59]wFMCommunicate request_size=4 [20:07:59]MH_SAM_APDU [20:07:59]CAPDU: 80 13 00 00 [20:07:59]Write to MH i2c: E2 08 00 55 57 80 13 00 00 00 00 00 00 28 [20:08:00]Write i2c OK [20:08:00]MH_I2C_Read... [20:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:00]Read from MH i2c: E2 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 62 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 62 00 55 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:00]wFMCommunicate OK [20:08:00]SAM_PROTO_GetFieldsCounters done [20:08:00]requested_item shift.num is exist - process it [20:08:00]requested_item shift.opened is exist - process it [20:08:00]req_shift_opened [20:08:00]FM_GetShiftState [20:08:00]SAM_PROTO_GetShiftState [20:08:00]wFMCommunicate request_size=4 [20:08:00]MH_SAM_APDU [20:08:00]CAPDU: 80 13 01 00 [20:08:00]Write to MH i2c: E2 08 00 56 57 80 13 01 00 00 00 00 00 2A [20:08:00]Write i2c OK [20:08:00]MH_I2C_Read... [20:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:00]Read from MH i2c: E2 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 0E 00 [20:08:00]MH_I2C_Read... [20:08:00]Read from MH i2c: E2 0E 00 56 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 6F [20:08:00]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:08:00]wFMCommunicate OK [20:08:00]SAM_PROTO_GetShiftState done [20:08:00]FM_GetShiftState done [20:08:00]req_shift_opened done [20:08:00]requested_item shift.open_date is exist - process it [20:08:00]req_shift_open_date [20:08:00]req_shift_open_date done [20:08:00]produce_requested_data done [20:08:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74004,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:08:00]process_action_free close_receipt [20:08:00]json_value_free [20:08:00]json_value_free done [20:08:00]process_json_proto returns [20:08:00]Send response to host [20:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74004,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:08:00]free response buf [20:08:00]execute_script done [20:08:00]execute_script returns [20:08:00]free content buf [20:08:00]Sock 8.Close socket [20:08:00]Sock 8.Thread stoped [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:39]accept exits with 9 [20:15:39]New connection [20:15:39]New thread 3067432292 created [20:15:39]Thread 3067575652 joined [20:15:39]Waiting for new connection... [20:15:39] Sock 9.Parse request [20:15:39]Sock 9.Check first char [20:15:39]Sock 9.First char is OK [20:15:39]request: POST /json_proto HTTP/1.0 [20:15:39]Method: POST [20:15:39]URL: /json_proto [20:15:39]Method is POST - this is cgi request [20:15:39]url: /json_proto [20:15:39]query_string will be loaded in cgi processing [20:15:39]execute_cgi json_proto POST (null) [20:15:39]execute_cgi path=json_proto method=POST [20:15:39]POST find Content-Length [20:15:39]Host: 172.17.44.196:8080 [20:15:39]Content-Length: 663 [20:15:39]Content-Type: application/json [20:15:39] [20:15:39]POST finish read [20:15:39]Found Content-Length = 663 [20:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272845", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:39]execute_script... [20:15:39]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)272845", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:39]POST & json_proto [20:15:39]process_json_proto [20:15:39]json parsed OK: [20:15:39]protocol is kg_v1.0 [20:15:39]action value=close_receipt [20:15:39]process_action close_receipt [20:15:39]cmd_close_receipt [20:15:39]MH_GetDate [20:15:39]Write to MH i2c: F0 00 00 57 57 9D [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: F0 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: F0 09 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: F0 09 00 57 57 00 EF 64 15 67 E7 19 F8 65 D2 [20:15:39]GetLastDocTimeStamp 1729454879 [20:15:39]current date 1729455343 [20:15:39]FM_GetShiftState [20:15:39]SAM_PROTO_GetShiftState [20:15:39]wFMCommunicate request_size=4 [20:15:39]MH_SAM_APDU [20:15:39]CAPDU: 80 13 01 00 [20:15:39]Write to MH i2c: E2 08 00 58 57 80 13 01 00 00 00 00 00 2C [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:39]Read from MH i2c: E2 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 0E 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 0E 00 58 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [20:15:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:15:39]wFMCommunicate OK [20:15:39]SAM_PROTO_GetShiftState done [20:15:39]FM_GetShiftState done [20:15:39]opened in 1729384303 [20:15:39]opened+sec_in_day 1729470703 [20:15:39]quantity*price = 2500 [20:15:39]sum+1 = 2501 [20:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 25.00 НСП 1% : 0.22 НДС 12% : 2.65 Наличными: 25.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 331 20.10.2024 20:15 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74005 ФПД: 177915014429023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201543&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74005&fm=177915014429023&tin=02508201610067®Number=0000000000161154&sum=2500 0 [20:15:40]StoreToDocumentArchive [20:15:40]shift 170 fd 74005 [20:15:40]save to /storage/0170/doc_00074005 [20:15:40]save last doc name /storage/0170/doc_00074005 to /storage/kkm_last_doc_name [20:15:40]save OK [20:15:40]Clear old archive folders... [20:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=286 [20:15:40]tlvbuf is 0039DBF0 [20:15:40]SAM_PROTO_ClearQueue [20:15:40]wFMCommunicate request_size=4 [20:15:40]MH_SAM_APDU [20:15:40]CAPDU: 80 09 00 00 [20:15:40]Write to MH i2c: E2 08 00 65 57 80 09 00 00 00 00 00 00 2E [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 65 57 00 90 00 30 [20:15:41]RAPDU: 90 00 [20:15:41]wFMCommunicate OK [20:15:41]SAM_PROTO_ClearQueue done [20:15:41]KKMCreateOFDPacket [20:15:41]OFDProtocolAddRootSTLVToBuf [20:15:41]FM_MakeSignedData [20:15:41]FM_MakeSignedData [20:15:41]SAM_PROTO_SignData [20:15:41]wFMCommunicate request_size=4 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 0D 01 02 [20:15:41]Write to MH i2c: E2 08 00 66 57 80 0D 01 02 00 00 00 00 36 [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 66 57 00 90 00 31 [20:15:41]RAPDU: 90 00 [20:15:41]wFMCommunicate OK [20:15:41]wFMCommunicate request_size=255 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 01 00 00 F4 03 04 00 EF 64 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 [20:15:41]Write to MH i2c: E2 02 01 67 57 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 01 00 00 F4 03 04 00 EF 64 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 00 00 98 [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 67 57 00 90 00 32 [20:15:41]RAPDU: 90 00 [20:15:41]wFMCommunicate OK [20:15:41]wFMCommunicate request_size=45 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 0D 02 02 28 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 21 01 00 35 04 06 00 A1 D0 11 3C 39 5F [20:15:41]Write to MH i2c: E2 30 00 68 57 80 0D 02 02 28 00 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 21 01 00 35 04 06 00 A1 D0 11 3C 39 5F 00 00 15 [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 68 57 00 90 00 33 [20:15:41]RAPDU: 90 00 [20:15:41]wFMCommunicate OK [20:15:41]wFMCommunicate request_size=4 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 0D 03 02 [20:15:41]Write to MH i2c: E2 08 00 69 57 80 0D 03 02 00 00 00 00 3B [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 0B 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 0B 00 69 57 00 D5 EE 6B A0 ED 89 5B 5A 90 00 35 [20:15:41]RAPDU: D5 EE 6B A0 ED 89 5B 5A 90 00 [20:15:41]wFMCommunicate OK [20:15:41]SAM_PROTO_SignData done [20:15:41]FM_MakeSignedData done [20:15:41]CreateOFDProtocolMessage [20:15:41]wFMCommunicate request_size=4 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 11 00 00 [20:15:41]Write to MH i2c: E2 08 00 6A 57 80 11 00 00 00 00 00 00 3B [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 17 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 17 00 6A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [20:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:15:41]wFMCommunicate OK [20:15:41]CreateOFDProtocolMessage done [20:15:41]OFDSenderStorePacket 74005 [20:15:41]StoreOFDPacket docnum=74005 [20:15:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 32 01 00 00 05 3A 2A 01 D8 F2 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 01 00 00 F4 03 04 00 EF 64 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 21 01 00 35 04 06 00 A1 D0 11 3C 39 5F D5 EE 6B A0 ED 89 5B 5A [20:15:41]CheckFolder [20:15:41]dirname=/storage/ofd_packets [20:15:41]CheckFolder done [20:15:41]ProducePacketName [20:15:41]name=ofd_packets/00074005 [20:15:41]NVStorageSaveData ofd_packets/00074005 [20:15:41]File name is /storage/ofd_packets/00074005 [20:15:41]Write 336 bytes [20:15:41]NVStorageSaveData done [20:15:41]OFDSenderStorePacket done [20:15:41]KKMCreateOFDPacket done [20:15:41]NVStorageSaveData kkm_last_timestamp [20:15:41]File name is /storage/kkm_last_timestamp [20:15:41]Write 4 bytes [20:15:41]NVStorageSaveData done [20:15:41]ExternCall_PrintAddStr [20:15:41]wPrintStart [20:15:41]Write to MH i2c: 01 00 00 6B 57 C2 [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 07 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 07 00 6B 57 00 00 00 00 00 FF 0F D7 [20:15:41]RasterBufferAndPrint [20:15:41]line Счет N : (3)272845 [20:15:41]line ИНН: 02508201610067 [20:15:41]line Контрольно-Кассовый Чек [20:15:41]line ПРОДАЖА [20:15:41]line Товар: 4607120854177 [20:15:41]line Снек Орехи BEERKa Арахис 30г [20:15:41]line 1.000 * 25.00 [20:15:41]line = 25.00 [20:15:41]line НДС 12% НСП 1% [20:15:41]line > о реализуемом товаре [20:15:41]line ИТОГО: 25.00 [20:15:41]line НСП 1% : 0.22 [20:15:41]line НДС 12% : 2.65 [20:15:41]line Наличными: 25.00 [20:15:41]line Безнал.: 0.00 [20:15:41]line Место: АЗС № 133 "Партнер Нефть" [20:15:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:15:41]line СНО: Общий режим [20:15:41]line Чек 331 20.10.2024 20:15 [20:15:41]line Смена: 170 ФФД: 1.0 [20:15:41]line ЗНМ: 0300000020 [20:15:41]line РНМ: 0000000000161154 [20:15:41]line Версия ККМ: v1.0 [20:15:41]line ФМ: 0000000000963323 [20:15:41]line ФД: 74005 [20:15:41]line ФПД: 177915014429023 [20:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201543&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74005&fm=177915014429023&tin=02508201610067®Number=0000000000161154&sum=2500 [20:15:41]line 0 [20:15:41]OFD Sender: Processing packet 74005 [packets to send 15, broken 14] [20:15:41]ProducePacketName [20:15:41]name=ofd_packets/00074005 [20:15:41]OFD Sender: To server: pG, [20:15:41]CommunicateWithHost lk.salyk.kg:30040 [20:15:41]ConnectInit lk.salyk.kg [20:15:41]written 0, free lines is 4095 [20:15:41]Connected sock=10 [20:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 32 01 00 00 05 3A 2A 01 D8 F2 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 01 00 00 F4 03 04 00 EF 64 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 21 01 00 35 04 06 00 A1 D0 11 3C 39 5F D5 EE 6B A0 ED 89 5B 5A [20:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DC A6 47 00 FA 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 39 36 33 33 32 33 10 04 04 00 15 21 01 00 F4 03 04 00 D3 0D 15 67 B6 04 01 00 00 15 9D 47 C2 55 B8 68 F7 [20:15:42]CommunicateWithHost err = 0 [20:15:42]CheckOFDResponse [20:15:42]1017 (14) - 77093643461234 [20:15:42]1041 (16) - 0000000000963323 [20:15:42]1040 (4) - 74005 [20:15:42]1012 (4) - 20.10.2024 14:04 [20:15:42]1206 (1) - 0 [20:15:42]OFD Sender: Remove packet 74005 [20:15:42]ProducePacketName [20:15:42]name=ofd_packets/00074005 [20:15:42]NVStorageDeleteData [20:15:42]Write to MH i2c: 01 00 00 93 57 EA [20:15:42]Write i2c OK [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: 01 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: 01 07 00 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: 01 07 00 93 57 00 00 00 00 00 CC 0C C9 [20:15:42]RasterBufferAndPrint [20:15:42]line [20:15:42]line [20:15:42]line [20:15:42]line [20:15:42]line [20:15:42]written 0, free lines is 3280 [20:15:42]MH_Cut [20:15:42]Write to MH i2c: D1 01 00 9A 57 01 C3 [20:15:42]Write i2c OK [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: D1 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: D1 01 00 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: D1 01 00 9A 57 00 C2 [20:15:42]Write to MH i2c: 01 00 00 9B 57 F2 [20:15:42]Write i2c OK [20:15:42]MH_I2C_Read... [20:15:42]OFD Sender: No OFD packet to send [20:15:43]*** Cut start [20:15:43]*** Partial cut [20:15:43]*** CUTSNS_PIN = 1 [20:15:43]*** CUTSNS_PIN = 0 [20:15:43]*** Brake cut motor [20:15:43]Read from MH i2c: 01 [20:15:43]MH_I2C_Read... [20:15:43]*** Stop cut motor [20:15:43]*** Cut end [20:15:43]Read from MH i2c: 01 07 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: 01 07 00 9B 57 00 00 00 00 00 FF 0F 07 [20:15:43]process_action close_receipt done [20:15:43]requested_data is exist [20:15:43]produce_requested_data [20:15:43]requested_item fm.sn is exist - process it [20:15:43]wFMCommunicate request_size=4 [20:15:43]MH_SAM_APDU [20:15:43]CAPDU: 80 11 00 00 [20:15:43]Write to MH i2c: E2 08 00 9C 57 80 11 00 00 00 00 00 00 6D [20:15:43]Write i2c OK [20:15:43]MH_I2C_Read... [20:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:43]Read from MH i2c: E2 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 17 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 17 00 9C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BA [20:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:15:43]wFMCommunicate OK [20:15:43]requested_item fd.num is exist - process it [20:15:43]SAM_PROTO_GetFieldsCounters [20:15:43]wFMCommunicate request_size=4 [20:15:43]MH_SAM_APDU [20:15:43]CAPDU: 80 13 00 00 [20:15:43]Write to MH i2c: E2 08 00 9D 57 80 13 00 00 00 00 00 00 70 [20:15:43]Write i2c OK [20:15:43]MH_I2C_Read... [20:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:43]Read from MH i2c: E2 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 62 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 62 00 9D 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [20:15:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:43]wFMCommunicate OK [20:15:43]SAM_PROTO_GetFieldsCounters done [20:15:43]requested_item shift.num is exist - process it [20:15:43]requested_item shift.opened is exist - process it [20:15:43]req_shift_opened [20:15:43]FM_GetShiftState [20:15:43]SAM_PROTO_GetShiftState [20:15:43]wFMCommunicate request_size=4 [20:15:43]MH_SAM_APDU [20:15:43]CAPDU: 80 13 01 00 [20:15:43]Write to MH i2c: E2 08 00 9E 57 80 13 01 00 00 00 00 00 72 [20:15:43]Write i2c OK [20:15:43]MH_I2C_Read... [20:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:44]Read from MH i2c: E2 [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: E2 0E 00 [20:15:44]MH_I2C_Read... [20:15:44]Read from MH i2c: E2 0E 00 9E 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B7 [20:15:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:15:44]wFMCommunicate OK [20:15:44]SAM_PROTO_GetShiftState done [20:15:44]FM_GetShiftState done [20:15:44]req_shift_opened done [20:15:44]requested_item shift.open_date is exist - process it [20:15:44]req_shift_open_date [20:15:44]req_shift_open_date done [20:15:44]produce_requested_data done [20:15:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74005,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:15:44]process_action_free close_receipt [20:15:44]json_value_free [20:15:44]json_value_free done [20:15:44]process_json_proto returns [20:15:44]Send response to host [20:15:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74005,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:15:44]free response buf [20:15:44]execute_script done [20:15:44]execute_script returns [20:15:44]free content buf [20:15:44]Sock 9.Close socket [20:15:44]Sock 9.Thread stoped [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:48]accept exits with 8 [20:22:48]New connection [20:22:48]New thread 3067575652 created [20:22:48]Thread 3067432292 joined [20:22:48]Waiting for new connection... [20:22:48] Sock 8.Parse request [20:22:48]Sock 8.Check first char [20:22:48]Sock 8.First char is OK [20:22:48]request: POST /json_proto HTTP/1.0 [20:22:48]Method: POST [20:22:48]URL: /json_proto [20:22:48]Method is POST - this is cgi request [20:22:48]url: /json_proto [20:22:48]query_string will be loaded in cgi processing [20:22:48]execute_cgi json_proto POST (null) [20:22:48]execute_cgi path=json_proto method=POST [20:22:48]POST find Content-Length [20:22:48]Host: 172.17.44.196:8080 [20:22:48]Content-Length: 622 [20:22:48]Content-Type: application/json [20:22:48] [20:22:48]POST finish read [20:22:48]Found Content-Length = 622 [20:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272846", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:48]execute_script... [20:22: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)272846", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:48]POST & json_proto [20:22:48]process_json_proto [20:22:48]json parsed OK: [20:22:48]protocol is kg_v1.0 [20:22:48]action value=close_receipt [20:22:48]process_action close_receipt [20:22:48]cmd_close_receipt [20:22:48]MH_GetDate [20:22:48]Write to MH i2c: F0 00 00 9F 57 E5 [20:22:48]Write i2c OK [20:22:48]MH_I2C_Read... [20:22:48]Read from MH i2c: F0 [20:22:48]MH_I2C_Read... [20:22:48]Read from MH i2c: F0 09 00 [20:22:48]MH_I2C_Read... [20:22:48]Read from MH i2c: F0 09 00 9F 57 00 9C 66 15 67 E7 19 F8 65 C9 [20:22:48]GetLastDocTimeStamp 1729455343 [20:22:48]current date 1729455772 [20:22:48]FM_GetShiftState [20:22:48]SAM_PROTO_GetShiftState [20:22:48]wFMCommunicate request_size=4 [20:22:48]MH_SAM_APDU [20:22:48]CAPDU: 80 13 01 00 [20:22:48]Write to MH i2c: E2 08 00 A0 57 80 13 01 00 00 00 00 00 74 [20:22:48]Write i2c OK [20:22:48]MH_I2C_Read... [20:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:48]Read from MH i2c: E2 [20:22:48]MH_I2C_Read... [20:22:48]Read from MH i2c: E2 0E 00 [20:22:48]MH_I2C_Read... [20:22:48]Read from MH i2c: E2 0E 00 A0 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B9 [20:22:48]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:22:48]wFMCommunicate OK [20:22:48]SAM_PROTO_GetShiftState done [20:22:48]FM_GetShiftState done [20:22:48]opened in 1729384303 [20:22:48]opened+sec_in_day 1729470703 [20:22:48]quantity*price = 15100 [20:22:48]sum+1 = 15101 [20:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 332 20.10.2024 20:22 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74006 ФПД: 73020125305241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74006&fm=73020125305241&tin=02508201610067®Number=0000000000161154&sum=15100 0 [20:22:49]StoreToDocumentArchive [20:22:49]shift 170 fd 74006 [20:22:49]save to /storage/0170/doc_00074006 [20:22:49]save last doc name /storage/0170/doc_00074006 to /storage/kkm_last_doc_name [20:22:49]save OK [20:22:49]Clear old archive folders... [20:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:22:49]tlvbuf is 005237C0 [20:22:49]SAM_PROTO_ClearQueue [20:22:49]wFMCommunicate request_size=4 [20:22:49]MH_SAM_APDU [20:22:49]CAPDU: 80 09 00 00 [20:22:49]Write to MH i2c: E2 08 00 AD 57 80 09 00 00 00 00 00 00 76 [20:22:49]Write i2c OK [20:22:49]MH_I2C_Read... [20:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:49]Read from MH i2c: E2 [20:22:49]MH_I2C_Read... [20:22:49]Read from MH i2c: E2 03 00 [20:22:49]MH_I2C_Read... [20:22:49]Read from MH i2c: E2 03 00 AD 57 00 90 00 78 [20:22:49]RAPDU: 90 00 [20:22:49]wFMCommunicate OK [20:22:49]SAM_PROTO_ClearQueue done [20:22:49]KKMCreateOFDPacket [20:22:49]OFDProtocolAddRootSTLVToBuf [20:22:49]FM_MakeSignedData [20:22:49]FM_MakeSignedData [20:22:49]SAM_PROTO_SignData [20:22:49]wFMCommunicate request_size=4 [20:22:49]MH_SAM_APDU [20:22:49]CAPDU: 80 0D 01 02 [20:22:49]Write to MH i2c: E2 08 00 AE 57 80 0D 01 02 00 00 00 00 7E [20:22:49]Write i2c OK [20:22:49]MH_I2C_Read... [20:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:50]Read from MH i2c: E2 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 03 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 03 00 AE 57 00 90 00 79 [20:22:50]RAPDU: 90 00 [20:22:50]wFMCommunicate OK [20:22:50]wFMCommunicate request_size=255 [20:22:50]MH_SAM_APDU [20:22:50]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 4C 01 00 00 F4 03 04 00 9C 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [20:22:50]Write to MH i2c: E2 02 01 AF 57 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 4C 01 00 00 F4 03 04 00 9C 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 B5 [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:50]Read from MH i2c: E2 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 03 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 03 00 AF 57 00 90 00 7A [20:22:50]RAPDU: 90 00 [20:22:50]wFMCommunicate OK [20:22:50]wFMCommunicate request_size=33 [20:22:50]MH_SAM_APDU [20:22:50]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 21 01 00 35 04 06 00 42 69 52 A1 59 99 [20:22:50]Write to MH i2c: E2 24 00 B0 57 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 21 01 00 35 04 06 00 42 69 52 A1 59 99 00 00 D2 [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:50]Read from MH i2c: E2 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 03 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 03 00 B0 57 00 90 00 7B [20:22:50]RAPDU: 90 00 [20:22:50]wFMCommunicate OK [20:22:50]wFMCommunicate request_size=4 [20:22:50]MH_SAM_APDU [20:22:50]CAPDU: 80 0D 03 02 [20:22:50]Write to MH i2c: E2 08 00 B1 57 80 0D 03 02 00 00 00 00 83 [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:50]Read from MH i2c: E2 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 0B 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 0B 00 B1 57 00 0B 2D 78 F5 34 2C 48 DF 90 00 B0 [20:22:50]RAPDU: 0B 2D 78 F5 34 2C 48 DF 90 00 [20:22:50]wFMCommunicate OK [20:22:50]SAM_PROTO_SignData done [20:22:50]FM_MakeSignedData done [20:22:50]CreateOFDProtocolMessage [20:22:50]wFMCommunicate request_size=4 [20:22:50]MH_SAM_APDU [20:22:50]CAPDU: 80 11 00 00 [20:22:50]Write to MH i2c: E2 08 00 B2 57 80 11 00 00 00 00 00 00 83 [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:50]Read from MH i2c: E2 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 17 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: E2 17 00 B2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D0 [20:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:22:50]wFMCommunicate OK [20:22:50]CreateOFDProtocolMessage done [20:22:50]OFDSenderStorePacket 74006 [20:22:50]StoreOFDPacket docnum=74006 [20:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 41 28 1E 01 4E BB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 4C 01 00 00 F4 03 04 00 9C 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 21 01 00 35 04 06 00 42 69 52 A1 59 99 0B 2D 78 F5 34 2C 48 DF [20:22:50]CheckFolder [20:22:50]dirname=/storage/ofd_packets [20:22:50]CheckFolder done [20:22:50]ProducePacketName [20:22:50]name=ofd_packets/00074006 [20:22:50]NVStorageSaveData ofd_packets/00074006 [20:22:50]File name is /storage/ofd_packets/00074006 [20:22:50]Write 324 bytes [20:22:50]NVStorageSaveData done [20:22:50]OFDSenderStorePacket done [20:22:50]KKMCreateOFDPacket done [20:22:50]NVStorageSaveData kkm_last_timestamp [20:22:50]File name is /storage/kkm_last_timestamp [20:22:50]Write 4 bytes [20:22:50]NVStorageSaveData done [20:22:50]ExternCall_PrintAddStr [20:22:50]wPrintStart [20:22:50]Write to MH i2c: 01 00 00 B3 57 0A [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 07 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 07 00 B3 57 00 00 00 00 00 FF 0F 1F [20:22:50]RasterBufferAndPrint [20:22:50]line Счет N : (3)272846 [20:22:50]line ИНН: 02508201610067 [20:22:50]line Контрольно-Кассовый Чек [20:22:50]line ПРОДАЖА [20:22:50]line Товар: 48741958 [20:22:50]line Сигареты Parliament Aqua Blue [20:22:50]line 1.000 * 151.00 [20:22:50]line = 151.00 [20:22:50]line НДС 12% НСП 1% [20:22:50]line > о реализуемом товаре [20:22:50]line ИТОГО: 151.00 [20:22:50]line НСП 1% : 1.34 [20:22:50]line НДС 12% : 16.03 [20:22:50]line Наличными: 151.00 [20:22:50]line Безнал.: 0.00 [20:22:50]line Место: АЗС № 133 "Партнер Нефть" [20:22:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:22:50]line СНО: Общий режим [20:22:50]line Чек 332 20.10.2024 20:22 [20:22:50]line Смена: 170 ФФД: 1.0 [20:22:50]line ЗНМ: 0300000020 [20:22:50]line РНМ: 0000000000161154 [20:22:50]line Версия ККМ: v1.0 [20:22:50]line ФМ: 0000000000963323 [20:22:50]line ФД: 74006 [20:22:50]line ФПД: 73020125305241 [20:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74006&fm=73020125305241&tin=02508201610067®Number=0000000000161154&sum=15100 [20:22:50]line 0 [20:22:50]OFD Sender: Processing packet 74006 [packets to send 15, broken 14] [20:22:50]ProducePacketName [20:22:50]name=ofd_packets/00074006 [20:22:50]OFD Sender: To server: pG, [20:22:50]CommunicateWithHost lk.salyk.kg:30040 [20:22:50]ConnectInit lk.salyk.kg [20:22:50]written 0, free lines is 4095 [20:22:50]Connected sock=10 [20:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 41 28 1E 01 4E BB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 4C 01 00 00 F4 03 04 00 9C 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 21 01 00 35 04 06 00 42 69 52 A1 59 99 0B 2D 78 F5 34 2C 48 DF [20:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 42 67 47 00 F4 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 39 36 33 33 32 33 10 04 04 00 16 21 01 00 F4 03 04 00 80 0F 15 67 B6 04 01 00 00 F7 4E 45 FA 2D 80 7E 16 [20:22:51]CommunicateWithHost err = 0 [20:22:51]CheckOFDResponse [20:22:51]1017 (14) - 77093643461234 [20:22:51]1041 (16) - 0000000000963323 [20:22:51]1040 (4) - 74006 [20:22:51]1012 (4) - 20.10.2024 14:11 [20:22:51]1206 (1) - 0 [20:22:51]OFD Sender: Remove packet 74006 [20:22:51]ProducePacketName [20:22:51]name=ofd_packets/00074006 [20:22:51]NVStorageDeleteData [20:22:51]Write to MH i2c: 01 00 00 DB 57 32 [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 DB 57 00 00 00 00 00 D0 0C 15 [20:22:51]RasterBufferAndPrint [20:22:51]line [20:22:51]line [20:22:51]line [20:22:51]line [20:22:51]line [20:22:51]written 0, free lines is 3284 [20:22:51]MH_Cut [20:22:51]Write to MH i2c: D1 01 00 E2 57 01 0B [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: D1 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: D1 01 00 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: D1 01 00 E2 57 00 0A [20:22:51]Write to MH i2c: 01 00 00 E3 57 3A [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]OFD Sender: No OFD packet to send [20:22:52]*** Cut start [20:22:52]*** Partial cut [20:22:52]*** CUTSNS_PIN = 1 [20:22:52]*** CUTSNS_PIN = 0 [20:22:52]*** Brake cut motor [20:22:52]Read from MH i2c: 01 [20:22:52]MH_I2C_Read... [20:22:52]*** Stop cut motor [20:22:52]*** Cut end [20:22:52]Read from MH i2c: 01 07 00 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: 01 07 00 E3 57 00 00 00 00 00 FF 0F 4F [20:22:52]process_action close_receipt done [20:22:52]requested_data is exist [20:22:52]produce_requested_data [20:22:52]requested_item fm.sn is exist - process it [20:22:52]wFMCommunicate request_size=4 [20:22:52]MH_SAM_APDU [20:22:52]CAPDU: 80 11 00 00 [20:22:52]Write to MH i2c: E2 08 00 E4 57 80 11 00 00 00 00 00 00 B5 [20:22:52]Write i2c OK [20:22:52]MH_I2C_Read... [20:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:52]Read from MH i2c: E2 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: E2 17 00 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: E2 17 00 E4 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [20:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:22:52]wFMCommunicate OK [20:22:52]requested_item fd.num is exist - process it [20:22:52]SAM_PROTO_GetFieldsCounters [20:22:52]wFMCommunicate request_size=4 [20:22:52]MH_SAM_APDU [20:22:52]CAPDU: 80 13 00 00 [20:22:52]Write to MH i2c: E2 08 00 E5 57 80 13 00 00 00 00 00 00 B8 [20:22:52]Write i2c OK [20:22:52]MH_I2C_Read... [20:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:52]Read from MH i2c: E2 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: E2 62 00 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: E2 62 00 E5 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [20:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:52]wFMCommunicate OK [20:22:52]SAM_PROTO_GetFieldsCounters done [20:22:52]requested_item shift.num is exist - process it [20:22:52]requested_item shift.opened is exist - process it [20:22:52]req_shift_opened [20:22:52]FM_GetShiftState [20:22:52]SAM_PROTO_GetShiftState [20:22:52]wFMCommunicate request_size=4 [20:22:52]MH_SAM_APDU [20:22:52]CAPDU: 80 13 01 00 [20:22:52]Write to MH i2c: E2 08 00 E6 57 80 13 01 00 00 00 00 00 BA [20:22:52]Write i2c OK [20:22:52]MH_I2C_Read... [20:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:52]Read from MH i2c: E2 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: E2 0E 00 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: E2 0E 00 E6 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [20:22:52]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:22:52]wFMCommunicate OK [20:22:52]SAM_PROTO_GetShiftState done [20:22:52]FM_GetShiftState done [20:22:52]req_shift_opened done [20:22:52]requested_item shift.open_date is exist - process it [20:22:52]req_shift_open_date [20:22:52]req_shift_open_date done [20:22:52]produce_requested_data done [20:22:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74006,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:22:52]process_action_free close_receipt [20:22:52]json_value_free [20:22:52]json_value_free done [20:22:52]process_json_proto returns [20:22:52]Send response to host [20:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74006,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:22:52]free response buf [20:22:52]execute_script done [20:22:52]execute_script returns [20:22:52]free content buf [20:22:52]Sock 8.Close socket [20:22:52]Sock 8.Thread stoped [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:29]accept exits with 9 [20:23:29]New connection [20:23:29]New thread 3067432292 created [20:23:29]Thread 3067575652 joined [20:23:29]Waiting for new connection... [20:23:29] Sock 9.Parse request [20:23:29]Sock 9.Check first char [20:23:29]Sock 9.First char is OK [20:23:29]request: POST /json_proto HTTP/1.0 [20:23:29]Method: POST [20:23:29]URL: /json_proto [20:23:29]Method is POST - this is cgi request [20:23:29]url: /json_proto [20:23:29]query_string will be loaded in cgi processing [20:23:29]execute_cgi json_proto POST (null) [20:23:29]execute_cgi path=json_proto method=POST [20:23:29]POST find Content-Length [20:23:29]Host: 172.17.44.196:8080 [20:23:29]Content-Length: 621 [20:23:29]Content-Type: application/json [20:23:29] [20:23:29]POST finish read [20:23:29]Found Content-Length = 621 [20:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272847", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True 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" ] } } [20:23:29]execute_script... [20:23: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)272847", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True 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" ] } } [20:23:29]POST & json_proto [20:23:29]process_json_proto [20:23:29]json parsed OK: [20:23:29]protocol is kg_v1.0 [20:23:29]action value=close_receipt [20:23:29]process_action close_receipt [20:23:29]cmd_close_receipt [20:23:29]MH_GetDate [20:23:29]Write to MH i2c: F0 00 00 E7 57 2D [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: F0 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: F0 09 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: F0 09 00 E7 57 00 C5 66 15 67 E7 19 F8 65 3A [20:23:29]GetLastDocTimeStamp 1729455772 [20:23:29]current date 1729455813 [20:23:29]FM_GetShiftState [20:23:29]SAM_PROTO_GetShiftState [20:23:29]wFMCommunicate request_size=4 [20:23:29]MH_SAM_APDU [20:23:29]CAPDU: 80 13 01 00 [20:23:29]Write to MH i2c: E2 08 00 E8 57 80 13 01 00 00 00 00 00 BC [20:23:29]Write i2c OK [20:23:29]MH_I2C_Read... [20:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:29]Read from MH i2c: E2 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 0E 00 [20:23:29]MH_I2C_Read... [20:23:29]Read from MH i2c: E2 0E 00 E8 57 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [20:23:29]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:23:29]wFMCommunicate OK [20:23:29]SAM_PROTO_GetShiftState done [20:23:29]FM_GetShiftState done [20:23:29]opened in 1729384303 [20:23:29]opened+sec_in_day 1729470703 [20:23:29]quantity*price = 14000 [20:23:29]sum+1 = 14001 [20:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 333 20.10.2024 20:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74007 ФПД: 116809879947045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202333&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74007&fm=116809879947045&tin=02508201610067®Number=0000000000161154&sum=14000 0 [20:23:31]StoreToDocumentArchive [20:23:31]shift 170 fd 74007 [20:23:31]save to /storage/0170/doc_00074007 [20:23:31]save last doc name /storage/0170/doc_00074007 to /storage/kkm_last_doc_name [20:23:31]save OK [20:23:31]Clear old archive folders... [20:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:23:31]tlvbuf is 0040F330 [20:23:31]SAM_PROTO_ClearQueue [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 09 00 00 [20:23:31]Write to MH i2c: E2 08 00 F5 57 80 09 00 00 00 00 00 00 BE [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 F5 57 00 90 00 C0 [20:23:31]RAPDU: 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_ClearQueue done [20:23:31]KKMCreateOFDPacket [20:23:31]OFDProtocolAddRootSTLVToBuf [20:23:31]FM_MakeSignedData [20:23:31]FM_MakeSignedData [20:23:31]SAM_PROTO_SignData [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 0D 01 02 [20:23:31]Write to MH i2c: E2 08 00 F6 57 80 0D 01 02 00 00 00 00 C6 [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 F6 57 00 90 00 C1 [20:23:31]RAPDU: 90 00 [20:23:31]wFMCommunicate OK [20:23:31]wFMCommunicate request_size=255 [20:23:31]MH_SAM_APDU [20:23:31]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 36 36 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 54 72 75 65 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 4D 01 00 00 F4 03 04 00 C5 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [20:23:31]Write to MH i2c: E2 02 01 F7 57 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 36 36 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 54 72 75 65 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 4D 01 00 00 F4 03 04 00 C5 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 7B [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 F7 57 00 90 00 C2 [20:23:31]RAPDU: 90 00 [20:23:31]wFMCommunicate OK [20:23:31]wFMCommunicate request_size=32 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 17 21 01 00 35 04 06 00 6A 3C EB 66 87 25 [20:23:31]Write to MH i2c: E2 23 00 F8 57 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 17 21 01 00 35 04 06 00 6A 3C EB 66 87 25 00 00 FC [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 03 00 F8 57 00 90 00 C3 [20:23:31]RAPDU: 90 00 [20:23:31]wFMCommunicate OK [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 0D 03 02 [20:23:31]Write to MH i2c: E2 08 00 F9 57 80 0D 03 02 00 00 00 00 CB [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0B 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 0B 00 F9 57 00 89 D1 F4 0D F2 1E D5 37 90 00 43 [20:23:31]RAPDU: 89 D1 F4 0D F2 1E D5 37 90 00 [20:23:31]wFMCommunicate OK [20:23:31]SAM_PROTO_SignData done [20:23:31]FM_MakeSignedData done [20:23:31]CreateOFDProtocolMessage [20:23:31]wFMCommunicate request_size=4 [20:23:31]MH_SAM_APDU [20:23:31]CAPDU: 80 11 00 00 [20:23:31]Write to MH i2c: E2 08 00 FA 57 80 11 00 00 00 00 00 00 CB [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:31]Read from MH i2c: E2 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 17 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: E2 17 00 FA 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [20:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:23:31]wFMCommunicate OK [20:23:31]CreateOFDProtocolMessage done [20:23:31]OFDSenderStorePacket 74007 [20:23:31]StoreOFDPacket docnum=74007 [20:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 BC 79 1D 01 5B 81 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 36 36 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 54 72 75 65 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 4D 01 00 00 F4 03 04 00 C5 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 21 01 00 35 04 06 00 6A 3C EB 66 87 25 89 D1 F4 0D F2 1E D5 37 [20:23:31]CheckFolder [20:23:31]dirname=/storage/ofd_packets [20:23:31]CheckFolder done [20:23:31]ProducePacketName [20:23:31]name=ofd_packets/00074007 [20:23:31]NVStorageSaveData ofd_packets/00074007 [20:23:31]File name is /storage/ofd_packets/00074007 [20:23:31]Write 323 bytes [20:23:31]NVStorageSaveData done [20:23:31]OFDSenderStorePacket done [20:23:31]KKMCreateOFDPacket done [20:23:31]NVStorageSaveData kkm_last_timestamp [20:23:31]File name is /storage/kkm_last_timestamp [20:23:31]Write 4 bytes [20:23:31]NVStorageSaveData done [20:23:31]ExternCall_PrintAddStr [20:23:31]wPrintStart [20:23:31]Write to MH i2c: 01 00 00 FB 57 52 [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 07 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 07 00 FB 57 00 00 00 00 00 FF 0F 67 [20:23:31]RasterBufferAndPrint [20:23:31]line Счет N : (3)272847 [20:23:31]line ИНН: 02508201610067 [20:23:31]line Контрольно-Кассовый Чек [20:23:31]line ПРОДАЖА [20:23:31]line Товар: 48747066 [20:23:31]line Сигареты Winston True Silver [20:23:31]line 1.000 * 140.00 [20:23:31]line = 140.00 [20:23:31]line НДС 12% НСП 1% [20:23:31]line > о реализуемом товаре [20:23:31]line ИТОГО: 140.00 [20:23:31]line НСП 1% : 1.24 [20:23:31]line НДС 12% : 14.87 [20:23:31]line Наличными: 140.00 [20:23:31]line Безнал.: 0.00 [20:23:31]line Место: АЗС № 133 "Партнер Нефть" [20:23:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:23:31]line СНО: Общий режим [20:23:31]line Чек 333 20.10.2024 20:23 [20:23:31]line Смена: 170 ФФД: 1.0 [20:23:31]line ЗНМ: 0300000020 [20:23:31]line РНМ: 0000000000161154 [20:23:31]line Версия ККМ: v1.0 [20:23:31]line ФМ: 0000000000963323 [20:23:31]line ФД: 74007 [20:23:31]line ФПД: 116809879947045 [20:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202333&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74007&fm=116809879947045&tin=02508201610067®Number=0000000000161154&sum=14000 [20:23:32]OFD Sender: Processing packet 74007 [packets to send 15, broken 14] [20:23:32]ProducePacketName [20:23:32]name=ofd_packets/00074007 [20:23:32]OFD Sender: To server: pG, [20:23:32]CommunicateWithHost lk.salyk.kg:30040 [20:23:32]ConnectInit lk.salyk.kg [20:23:32]line 0 [20:23:32]written 0, free lines is 4095 [20:23:32]Connected sock=10 [20:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 BC 79 1D 01 5B 81 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 36 36 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 54 72 75 65 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 4D 01 00 00 F4 03 04 00 C5 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 21 01 00 35 04 06 00 6A 3C EB 66 87 25 89 D1 F4 0D F2 1E D5 37 [20:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A5 CE 47 00 24 D3 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 39 36 33 33 32 33 10 04 04 00 17 21 01 00 F4 03 04 00 A9 0F 15 67 B6 04 01 00 00 DB 29 29 5C 63 A9 46 FA [20:23:32]CommunicateWithHost err = 0 [20:23:32]CheckOFDResponse [20:23:32]1017 (14) - 77093643461234 [20:23:32]1041 (16) - 0000000000963323 [20:23:32]1040 (4) - 74007 [20:23:32]1012 (4) - 20.10.2024 14:11 [20:23:32]1206 (1) - 0 [20:23:32]OFD Sender: Remove packet 74007 [20:23:32]ProducePacketName [20:23:32]name=ofd_packets/00074007 [20:23:32]NVStorageDeleteData [20:23:32]Write to MH i2c: 01 00 00 22 58 7A [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: 01 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: 01 07 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: 01 07 00 22 58 00 00 00 00 00 EA 0C 77 [20:23:32]RasterBufferAndPrint [20:23:32]line [20:23:32]line [20:23:32]line [20:23:32]line [20:23:32]line [20:23:32]written 0, free lines is 3312 [20:23:32]MH_Cut [20:23:32]Write to MH i2c: D1 01 00 29 58 01 53 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: D1 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: D1 01 00 [20:23:32]MH_I2C_Read... [20:23:32]Read from MH i2c: D1 01 00 29 58 00 52 [20:23:32]Write to MH i2c: 01 00 00 2A 58 82 [20:23:32]Write i2c OK [20:23:32]MH_I2C_Read... [20:23:32]OFD Sender: No OFD packet to send [20:23:33]*** Cut start [20:23:33]*** Partial cut [20:23:33]*** CUTSNS_PIN = 1 [20:23:33]*** CUTSNS_PIN = 0 [20:23:33]*** Brake cut motor [20:23:33]Read from MH i2c: 01 [20:23:33]MH_I2C_Read... [20:23:33]*** Stop cut motor [20:23:33]*** Cut end [20:23:33]Read from MH i2c: 01 07 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: 01 07 00 2A 58 00 00 00 00 00 FF 0F 97 [20:23:33]process_action close_receipt done [20:23:33]requested_data is exist [20:23:33]produce_requested_data [20:23:33]requested_item fm.sn is exist - process it [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 11 00 00 [20:23:33]Write to MH i2c: E2 08 00 2B 58 80 11 00 00 00 00 00 00 FD [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 17 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 17 00 2B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4A [20:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:23:33]wFMCommunicate OK [20:23:33]requested_item fd.num is exist - process it [20:23:33]SAM_PROTO_GetFieldsCounters [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 13 00 00 [20:23:33]Write to MH i2c: E2 08 00 2C 58 80 13 00 00 00 00 00 00 00 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:34]Read from MH i2c: E2 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 62 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 62 00 2C 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [20:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:34]wFMCommunicate OK [20:23:34]SAM_PROTO_GetFieldsCounters done [20:23:34]requested_item shift.num is exist - process it [20:23:34]requested_item shift.opened is exist - process it [20:23:34]req_shift_opened [20:23:34]FM_GetShiftState [20:23:34]SAM_PROTO_GetShiftState [20:23:34]wFMCommunicate request_size=4 [20:23:34]MH_SAM_APDU [20:23:34]CAPDU: 80 13 01 00 [20:23:34]Write to MH i2c: E2 08 00 2D 58 80 13 01 00 00 00 00 00 02 [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:34]Read from MH i2c: E2 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 0E 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 0E 00 2D 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 47 [20:23:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:23:34]wFMCommunicate OK [20:23:34]SAM_PROTO_GetShiftState done [20:23:34]FM_GetShiftState done [20:23:34]req_shift_opened done [20:23:34]requested_item shift.open_date is exist - process it [20:23:34]req_shift_open_date [20:23:34]req_shift_open_date done [20:23:34]produce_requested_data done [20:23:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74007,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:23:34]process_action_free close_receipt [20:23:34]json_value_free [20:23:34]json_value_free done [20:23:34]process_json_proto returns [20:23:34]Send response to host [20:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74007,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:23:34]free response buf [20:23:34]execute_script done [20:23:34]execute_script returns [20:23:34]free content buf [20:23:34]Sock 9.Close socket [20:23:34]Sock 9.Thread stoped [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:23]accept exits with 8 [20:24:23]New connection [20:24:23]New thread 3067575652 created [20:24:23]Thread 3067432292 joined [20:24:23]Waiting for new connection... [20:24:23] Sock 8.Parse request [20:24:23]Sock 8.Check first char [20:24:23]Sock 8.First char is OK [20:24:23]request: POST /json_proto HTTP/1.0 [20:24:23]Method: POST [20:24:23]URL: /json_proto [20:24:23]Method is POST - this is cgi request [20:24:23]url: /json_proto [20:24:23]query_string will be loaded in cgi processing [20:24:23]execute_cgi json_proto POST (null) [20:24:23]execute_cgi path=json_proto method=POST [20:24:23]POST find Content-Length [20:24:23]Host: 172.17.44.196:8080 [20:24:23]Content-Length: 983 [20:24:23]Content-Type: application/json [20:24:23] [20:24:23]POST finish read [20:24:23]Found Content-Length = 983 [20:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272848", "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" : 1.000, "sum" : 65.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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:23]execute_script... [20:24: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)272848", "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" : 1.000, "sum" : 65.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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:23]POST & json_proto [20:24:23]process_json_proto [20:24:23]json parsed OK: [20:24:23]protocol is kg_v1.0 [20:24:23]action value=close_receipt [20:24:23]process_action close_receipt [20:24:23]cmd_close_receipt [20:24:23]MH_GetDate [20:24:23]Write to MH i2c: F0 00 00 2E 58 75 [20:24:23]Write i2c OK [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: F0 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: F0 09 00 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: F0 09 00 2E 58 00 FA 66 15 67 E7 19 F8 65 B7 [20:24:23]GetLastDocTimeStamp 1729455813 [20:24:23]current date 1729455866 [20:24:23]FM_GetShiftState [20:24:23]SAM_PROTO_GetShiftState [20:24:23]wFMCommunicate request_size=4 [20:24:23]MH_SAM_APDU [20:24:23]CAPDU: 80 13 01 00 [20:24:23]Write to MH i2c: E2 08 00 2F 58 80 13 01 00 00 00 00 00 04 [20:24:23]Write i2c OK [20:24:23]MH_I2C_Read... [20:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:23]Read from MH i2c: E2 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 0E 00 [20:24:23]MH_I2C_Read... [20:24:23]Read from MH i2c: E2 0E 00 2F 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [20:24:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:24:23]wFMCommunicate OK [20:24:23]SAM_PROTO_GetShiftState done [20:24:23]FM_GetShiftState done [20:24:23]opened in 1729384303 [20:24:23]opened+sec_in_day 1729470703 [20:24:23]quantity*price = 6500 [20:24:23]sum+1 = 6501 [20:24:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 334 20.10.2024 20:24 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74008 ФПД: 182531570978121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202426&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74008&fm=182531570978121&tin=02508201610067®Number=0000000000161154&sum=15000 0 [20:24:24]StoreToDocumentArchive [20:24:24]shift 170 fd 74008 [20:24:24]save to /storage/0170/doc_00074008 [20:24:24]save last doc name /storage/0170/doc_00074008 to /storage/kkm_last_doc_name [20:24:24]save OK [20:24:24]Clear old archive folders... [20:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=409 [20:24:24]tlvbuf is 00329F50 [20:24:24]SAM_PROTO_ClearQueue [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 09 00 00 [20:24:24]Write to MH i2c: E2 08 00 3C 58 80 09 00 00 00 00 00 00 06 [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 3C 58 00 90 00 08 [20:24:24]RAPDU: 90 00 [20:24:24]wFMCommunicate OK [20:24:24]SAM_PROTO_ClearQueue done [20:24:24]KKMCreateOFDPacket [20:24:24]OFDProtocolAddRootSTLVToBuf [20:24:24]FM_MakeSignedData [20:24:24]FM_MakeSignedData [20:24:24]SAM_PROTO_SignData [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 0D 01 02 [20:24:24]Write to MH i2c: E2 08 00 3D 58 80 0D 01 02 00 00 00 00 0E [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 3D 58 00 90 00 09 [20:24:24]RAPDU: 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=255 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 0D 02 02 FA 03 00 99 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 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 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 FC 03 [20:24:24]Write to MH i2c: E2 02 01 3E 58 80 0D 02 02 FA 00 03 00 99 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 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 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 FC 03 00 00 1B [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 3E 58 00 90 00 0A [20:24:24]RAPDU: 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=168 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 0D 02 02 A3 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 84 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 4E 01 00 00 F4 03 04 00 FA 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 21 01 00 35 04 06 00 A6 02 F1 72 CD 49 [20:24:24]Write to MH i2c: E2 AB 00 3F 58 80 0D 02 02 A3 00 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 84 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 4E 01 00 00 F4 03 04 00 FA 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 21 01 00 35 04 06 00 A6 02 F1 72 CD 49 00 00 24 [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 03 00 3F 58 00 90 00 0B [20:24:24]RAPDU: 90 00 [20:24:24]wFMCommunicate OK [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 0D 03 02 [20:24:24]Write to MH i2c: E2 08 00 40 58 80 0D 03 02 00 00 00 00 13 [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 0B 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 0B 00 40 58 00 55 A2 09 89 80 C3 47 EE 90 00 15 [20:24:24]RAPDU: 55 A2 09 89 80 C3 47 EE 90 00 [20:24:24]wFMCommunicate OK [20:24:24]SAM_PROTO_SignData done [20:24:24]FM_MakeSignedData done [20:24:24]CreateOFDProtocolMessage [20:24:24]wFMCommunicate request_size=4 [20:24:24]MH_SAM_APDU [20:24:24]CAPDU: 80 11 00 00 [20:24:24]Write to MH i2c: E2 08 00 41 58 80 11 00 00 00 00 00 00 13 [20:24:24]Write i2c OK [20:24:24]MH_I2C_Read... [20:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:24]Read from MH i2c: E2 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 17 00 [20:24:24]MH_I2C_Read... [20:24:24]Read from MH i2c: E2 17 00 41 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 60 [20:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:24:24]wFMCommunicate OK [20:24:24]CreateOFDProtocolMessage done [20:24:24]OFDSenderStorePacket 74008 [20:24:24]StoreOFDPacket docnum=74008 [20:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 AD 01 00 00 A2 C1 A5 01 C2 83 5A 03 01 00 03 00 99 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 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 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 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 84 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 4E 01 00 00 F4 03 04 00 FA 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 21 01 00 35 04 06 00 A6 02 F1 72 CD 49 55 A2 09 89 80 C3 47 EE [20:24:24]CheckFolder [20:24:24]dirname=/storage/ofd_packets [20:24:24]CheckFolder done [20:24:24]ProducePacketName [20:24:24]name=ofd_packets/00074008 [20:24:24]NVStorageSaveData ofd_packets/00074008 [20:24:24]File name is /storage/ofd_packets/00074008 [20:24:24]Write 459 bytes [20:24:24]NVStorageSaveData done [20:24:24]OFDSenderStorePacket done [20:24:24]KKMCreateOFDPacket done [20:24:24]NVStorageSaveData kkm_last_timestamp [20:24:24]File name is /storage/kkm_last_timestamp [20:24:24]Write 4 bytes [20:24:24]NVStorageSaveData done [20:24:24]ExternCall_PrintAddStr [20:24:24]wPrintStart [20:24:24]Write to MH i2c: 01 00 00 42 58 9A [20:24:25]OFD Sender: Processing packet 74008 [packets to send 15, broken 14] [20:24:25]ProducePacketName [20:24:25]name=ofd_packets/00074008 [20:24:25]OFD Sender: To server: pG, [20:24:25]CommunicateWithHost lk.salyk.kg:30040 [20:24:25]ConnectInit lk.salyk.kg [20:24:25]Write i2c OK [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: 01 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: 01 07 00 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: 01 07 00 42 58 00 00 00 00 00 FF 0F AF [20:24:25]RasterBufferAndPrint [20:24:25]line Счет N : (3)272848 [20:24:25]line ИНН: 02508201610067 [20:24:25]line Контрольно-Кассовый Чек [20:24:25]line ПРОДАЖА [20:24:25]line Товар: 4600338000183 [20:24:25]line Сок Фруто НЯНЯ яблоко освет 0,2л [20:24:25]line 1.000 * 65.00 [20:24:25]line = 65.00 [20:24:25]line НДС 12% НСП 1% [20:24:25]line > о реализуемом товаре [20:24:25]line Товар: 5449000000996 [20:24:25]line Напиток Кока-Кола 0,33л [20:24:25]line 1.000 * 85.00 [20:24:25]line = 85.00 [20:24:25]line НДС 12% НСП 1% [20:24:25]line > о реализуемом товаре [20:24:25]line ИТОГО: 150.00 [20:24:25]line НСП 1% : 1.32 [20:24:25]line НДС 12% : 15.93 [20:24:25]line Наличными: 150.00 [20:24:25]line Безнал.: 0.00 [20:24:25]line Место: АЗС № 133 "Партнер Нефть" [20:24:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:24:25]line СНО: Общий режим [20:24:25]line Чек 334 20.10.2024 20:24 [20:24:25]line Смена: 170 ФФД: 1.0 [20:24:25]line ЗНМ: 0300000020 [20:24:25]line РНМ: 0000000000161154 [20:24:25]line Версия ККМ: v1.0 [20:24:25]line ФМ: 0000000000963323 [20:24:25]line ФД: 74008 [20:24:25]line ФПД: 182531570978121 [20:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202426&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74008&fm=182531570978121&tin=02508201610067®Number=0000000000161154&sum=15000 [20:24:25]line 0 [20:24:25]written 0, free lines is 4095 [20:24:25]Connected sock=10 [20:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 AD 01 00 00 A2 C1 A5 01 C2 83 5A 03 01 00 03 00 99 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 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 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 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 84 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 4E 01 00 00 F4 03 04 00 FA 66 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 21 01 00 35 04 06 00 A6 02 F1 72 CD 49 55 A2 09 89 80 C3 47 EE [20:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 48 70 47 00 B2 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 39 36 33 33 32 33 10 04 04 00 18 21 01 00 F4 03 04 00 DE 0F 15 67 B6 04 01 00 00 31 D9 91 7E E8 67 FD 61 [20:24:25]CommunicateWithHost err = 0 [20:24:25]CheckOFDResponse [20:24:25]1017 (14) - 77093643461234 [20:24:25]1041 (16) - 0000000000963323 [20:24:25]1040 (4) - 74008 [20:24:25]1012 (4) - 20.10.2024 14:12 [20:24:25]1206 (1) - 0 [20:24:25]OFD Sender: Remove packet 74008 [20:24:25]ProducePacketName [20:24:25]name=ofd_packets/00074008 [20:24:25]NVStorageDeleteData [20:24:25]Write to MH i2c: 01 00 00 70 58 C8 [20:24:25]Write i2c OK [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: 01 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: 01 07 00 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: 01 07 00 70 58 00 00 00 00 00 7C 0C 57 [20:24:25]RasterBufferAndPrint [20:24:25]line [20:24:25]line [20:24:25]line [20:24:25]line [20:24:25]line [20:24:25]written 0, free lines is 3205 [20:24:25]MH_Cut [20:24:25]Write to MH i2c: D1 01 00 77 58 01 A1 [20:24:25]Write i2c OK [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: D1 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: D1 01 00 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: D1 01 00 77 58 00 A0 [20:24:25]Write to MH i2c: 01 00 00 78 58 D0 [20:24:25]Write i2c OK [20:24:25]MH_I2C_Read... [20:24:26]OFD Sender: No OFD packet to send [20:24:26]*** Cut start [20:24:26]*** Partial cut [20:24:26]*** CUTSNS_PIN = 1 [20:24:26]*** CUTSNS_PIN = 0 [20:24:26]*** Brake cut motor [20:24:27]Read from MH i2c: 01 [20:24:27]MH_I2C_Read... [20:24:27]*** Stop cut motor [20:24:27]*** Cut end [20:24:27]Read from MH i2c: 01 07 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 78 58 00 00 00 00 00 FF 0F E5 [20:24:27]process_action close_receipt done [20:24:27]requested_data is exist [20:24:27]produce_requested_data [20:24:27]requested_item fm.sn is exist - process it [20:24:27]wFMCommunicate request_size=4 [20:24:27]MH_SAM_APDU [20:24:27]CAPDU: 80 11 00 00 [20:24:27]Write to MH i2c: E2 08 00 79 58 80 11 00 00 00 00 00 00 4B [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:27]Read from MH i2c: E2 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 17 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 17 00 79 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 98 [20:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:24:27]wFMCommunicate OK [20:24:27]requested_item fd.num is exist - process it [20:24:27]SAM_PROTO_GetFieldsCounters [20:24:27]wFMCommunicate request_size=4 [20:24:27]MH_SAM_APDU [20:24:27]CAPDU: 80 13 00 00 [20:24:27]Write to MH i2c: E2 08 00 7A 58 80 13 00 00 00 00 00 00 4E [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:27]Read from MH i2c: E2 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 62 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 62 00 7A 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [20:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:27]wFMCommunicate OK [20:24:27]SAM_PROTO_GetFieldsCounters done [20:24:27]requested_item shift.num is exist - process it [20:24:27]requested_item shift.opened is exist - process it [20:24:27]req_shift_opened [20:24:27]FM_GetShiftState [20:24:27]SAM_PROTO_GetShiftState [20:24:27]wFMCommunicate request_size=4 [20:24:27]MH_SAM_APDU [20:24:27]CAPDU: 80 13 01 00 [20:24:27]Write to MH i2c: E2 08 00 7B 58 80 13 01 00 00 00 00 00 50 [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:27]Read from MH i2c: E2 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 0E 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 0E 00 7B 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 95 [20:24:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:24:27]wFMCommunicate OK [20:24:27]SAM_PROTO_GetShiftState done [20:24:27]FM_GetShiftState done [20:24:27]req_shift_opened done [20:24:27]requested_item shift.open_date is exist - process it [20:24:27]req_shift_open_date [20:24:27]req_shift_open_date done [20:24:27]produce_requested_data done [20:24:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74008,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:24:27]process_action_free close_receipt [20:24:27]json_value_free [20:24:27]json_value_free done [20:24:27]process_json_proto returns [20:24:27]Send response to host [20:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74008,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:24:27]free response buf [20:24:27]execute_script done [20:24:27]execute_script returns [20:24:27]free content buf [20:24:27]Sock 8.Close socket [20:24:27]Sock 8.Thread stoped [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:23]accept exits with 9 [20:28:23]New connection [20:28:23]New thread 3067432292 created [20:28:23]Thread 3067575652 joined [20:28:23]Waiting for new connection... [20:28:23] Sock 9.Parse request [20:28:23]Sock 9.Check first char [20:28:23]Sock 9.First char is OK [20:28:23]request: POST /json_proto HTTP/1.0 [20:28:23]Method: POST [20:28:23]URL: /json_proto [20:28:23]Method is POST - this is cgi request [20:28:23]url: /json_proto [20:28:23]query_string will be loaded in cgi processing [20:28:23]execute_cgi json_proto POST (null) [20:28:23]execute_cgi path=json_proto method=POST [20:28:23]POST find Content-Length [20:28:23]Host: 172.17.44.196:8080 [20:28:23]Content-Length: 933 [20:28:23]Content-Type: application/json [20:28:23] [20:28:23]POST finish read [20:28:23]Found Content-Length = 933 [20:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272849", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 223.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:23]execute_script... [20:28: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)272849", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 223.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:23]POST & json_proto [20:28:23]process_json_proto [20:28:23]json parsed OK: [20:28:23]protocol is kg_v1.0 [20:28:23]action value=close_receipt [20:28:23]process_action close_receipt [20:28:23]cmd_close_receipt [20:28:23]MH_GetDate [20:28:23]Write to MH i2c: F0 00 00 7C 58 C3 [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: F0 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: F0 09 00 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: F0 09 00 7C 58 00 EA 67 15 67 E7 19 F8 65 F6 [20:28:23]GetLastDocTimeStamp 1729455866 [20:28:23]current date 1729456106 [20:28:23]FM_GetShiftState [20:28:23]SAM_PROTO_GetShiftState [20:28:23]wFMCommunicate request_size=4 [20:28:23]MH_SAM_APDU [20:28:23]CAPDU: 80 13 01 00 [20:28:23]Write to MH i2c: E2 08 00 7D 58 80 13 01 00 00 00 00 00 52 [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:23]Read from MH i2c: E2 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 0E 00 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 0E 00 7D 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 97 [20:28:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:28:23]wFMCommunicate OK [20:28:23]SAM_PROTO_GetShiftState done [20:28:23]FM_GetShiftState done [20:28:23]opened in 1729384303 [20:28:23]opened+sec_in_day 1729470703 [20:28:23]quantity*price = 13000 [20:28:23]sum+1 = 13001 [20:28:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 223.00 НСП 1% : 1.97 НДС 12% : 23.68 Наличными: 223.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 335 20.10.2024 20:28 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74009 ФПД: 238646883596669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202826&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74009&fm=238646883596669&tin=02508201610067®Number=0000000000161154&sum=22300 0 [20:28:24]StoreToDocumentArchive [20:28:24]shift 170 fd 74009 [20:28:24]save to /storage/0170/doc_00074009 [20:28:24]save last doc name /storage/0170/doc_00074009 to /storage/kkm_last_doc_name [20:28:24]save OK [20:28:24]Clear old archive folders... [20:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=401 [20:28:24]tlvbuf is 004E9F30 [20:28:24]SAM_PROTO_ClearQueue [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 09 00 00 [20:28:24]Write to MH i2c: E2 08 00 8A 58 80 09 00 00 00 00 00 00 54 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 8A 58 00 90 00 56 [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]SAM_PROTO_ClearQueue done [20:28:24]KKMCreateOFDPacket [20:28:24]OFDProtocolAddRootSTLVToBuf [20:28:24]FM_MakeSignedData [20:28:24]FM_MakeSignedData [20:28:24]SAM_PROTO_SignData [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 01 02 [20:28:24]Write to MH i2c: E2 08 00 8B 58 80 0D 01 02 00 00 00 00 5C [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 8B 58 00 90 00 57 [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]wFMCommunicate request_size=255 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 [20:28:24]Write to MH i2c: E2 02 01 8C 58 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 00 00 A4 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 8C 58 00 90 00 58 [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]wFMCommunicate request_size=160 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 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 4F 01 00 00 F4 03 04 00 EA 67 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 21 01 00 35 04 06 00 D9 0C 4E B9 39 7D [20:28:24]Write to MH i2c: E2 A3 00 8D 58 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 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 4F 01 00 00 F4 03 04 00 EA 67 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 21 01 00 35 04 06 00 D9 0C 4E B9 39 7D 00 00 EA [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 8D 58 00 90 00 59 [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 03 02 [20:28:24]Write to MH i2c: E2 08 00 8E 58 80 0D 03 02 00 00 00 00 61 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 0B 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 0B 00 8E 58 00 9C 06 70 FC 88 60 64 97 90 00 53 [20:28:24]RAPDU: 9C 06 70 FC 88 60 64 97 90 00 [20:28:24]wFMCommunicate OK [20:28:24]SAM_PROTO_SignData done [20:28:24]FM_MakeSignedData done [20:28:24]CreateOFDProtocolMessage [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 11 00 00 [20:28:24]Write to MH i2c: E2 08 00 8F 58 80 11 00 00 00 00 00 00 61 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 17 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 17 00 8F 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AE [20:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:28:24]wFMCommunicate OK [20:28:24]CreateOFDProtocolMessage done [20:28:24]OFDSenderStorePacket 74009 [20:28:24]StoreOFDPacket docnum=74009 [20:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A5 01 00 00 4F F3 9D 01 EE 89 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 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 4F 01 00 00 F4 03 04 00 EA 67 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 21 01 00 35 04 06 00 D9 0C 4E B9 39 7D 9C 06 70 FC 88 60 64 97 [20:28:24]CheckFolder [20:28:24]dirname=/storage/ofd_packets [20:28:24]CheckFolder done [20:28:24]ProducePacketName [20:28:24]name=ofd_packets/00074009 [20:28:24]NVStorageSaveData ofd_packets/00074009 [20:28:24]File name is /storage/ofd_packets/00074009 [20:28:24]Write 451 bytes [20:28:24]NVStorageSaveData done [20:28:24]OFDSenderStorePacket done [20:28:24]KKMCreateOFDPacket done [20:28:24]NVStorageSaveData kkm_last_timestamp [20:28:24]File name is /storage/kkm_last_timestamp [20:28:24]Write 4 bytes [20:28:24]NVStorageSaveData done [20:28:24]ExternCall_PrintAddStr [20:28:24]wPrintStart [20:28:24]Write to MH i2c: 01 00 00 90 58 E8 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]OFD Sender: Processing packet 74009 [packets to send 15, broken 14] [20:28:25]ProducePacketName [20:28:25]name=ofd_packets/00074009 [20:28:25]OFD Sender: To server: pG, [20:28:25]CommunicateWithHost lk.salyk.kg:30040 [20:28:25]ConnectInit lk.salyk.kg [20:28:25]Read from MH i2c: 01 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 90 58 00 00 00 00 00 FF 0F FD [20:28:25]RasterBufferAndPrint [20:28:25]line Счет N : (3)272849 [20:28:25]line ИНН: 02508201610067 [20:28:25]line Контрольно-Кассовый Чек [20:28:25]line ПРОДАЖА [20:28:25]line Товар: 2000036220012 [20:28:25]line Кофе Капучино XL(GABB TRADE) [20:28:25]line 1.000 * 130.00 [20:28:25]line = 130.00 [20:28:25]line НДС 12% НСП 1% [20:28:25]line > о реализуемом товаре [20:28:25]line Товар: 4603290004862 [20:28:25]line Печ.сах.FORSITE Сэнд.шок-ор.вк [20:28:25]line 1.000 * 93.00 [20:28:25]line = 93.00 [20:28:25]line НДС 12% НСП 1% [20:28:25]line > о реализуемом товаре [20:28:25]line ИТОГО: 223.00 [20:28:25]line НСП 1% : 1.97 [20:28:25]line НДС 12% : 23.68 [20:28:25]line Наличными: 223.00 [20:28:25]line Безнал.: 0.00 [20:28:25]line Место: АЗС № 133 "Партнер Нефть" [20:28:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:28:25]line СНО: Общий режим [20:28:25]line Чек 335 20.10.2024 20:28 [20:28:25]line Смена: 170 ФФД: 1.0 [20:28:25]line ЗНМ: 0300000020 [20:28:25]line РНМ: 0000000000161154 [20:28:25]line Версия ККМ: v1.0 [20:28:25]line ФМ: 0000000000963323 [20:28:25]line ФД: 74009 [20:28:25]line ФПД: 238646883596669 [20:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202826&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74009&fm=238646883596669&tin=02508201610067®Number=0000000000161154&sum=22300 [20:28:25]line 0 [20:28:25]written 0, free lines is 4095 [20:28:25]Connected sock=10 [20:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A5 01 00 00 4F F3 9D 01 EE 89 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 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 4F 01 00 00 F4 03 04 00 EA 67 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 21 01 00 35 04 06 00 D9 0C 4E B9 39 7D 9C 06 70 FC 88 60 64 97 [20:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 82 47 00 51 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 39 36 33 33 32 33 10 04 04 00 19 21 01 00 F4 03 04 00 CE 10 15 67 B6 04 01 00 00 25 57 18 BC D9 D8 4A B2 [20:28:25]CommunicateWithHost err = 0 [20:28:25]CheckOFDResponse [20:28:25]1017 (14) - 77093643461234 [20:28:25]1041 (16) - 0000000000963323 [20:28:25]1040 (4) - 74009 [20:28:25]1012 (4) - 20.10.2024 14:16 [20:28:25]1206 (1) - 0 [20:28:25]OFD Sender: Remove packet 74009 [20:28:25]ProducePacketName [20:28:25]name=ofd_packets/00074009 [20:28:25]NVStorageDeleteData [20:28:25]Write to MH i2c: 01 00 00 BF 58 17 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 BF 58 00 00 00 00 00 52 0C 7C [20:28:25]RasterBufferAndPrint [20:28:25]line [20:28:25]line [20:28:25]line [20:28:25]line [20:28:25]line [20:28:25]written 0, free lines is 3158 [20:28:25]MH_Cut [20:28:25]Write to MH i2c: D1 01 00 C6 58 01 F0 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: D1 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: D1 01 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: D1 01 00 C6 58 00 EF [20:28:25]Write to MH i2c: 01 00 00 C7 58 1F [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:26]OFD Sender: No OFD packet to send [20:28:26]*** Cut start [20:28:26]*** Partial cut [20:28:26]*** CUTSNS_PIN = 1 [20:28:26]*** CUTSNS_PIN = 0 [20:28:26]*** Brake cut motor [20:28:27]Read from MH i2c: 01 [20:28:27]MH_I2C_Read... [20:28:27]*** Stop cut motor [20:28:27]*** Cut end [20:28:27]Read from MH i2c: 01 07 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 C7 58 00 00 00 00 00 FF 0F 34 [20:28:27]process_action close_receipt done [20:28:27]requested_data is exist [20:28:27]produce_requested_data [20:28:27]requested_item fm.sn is exist - process it [20:28:27]wFMCommunicate request_size=4 [20:28:27]MH_SAM_APDU [20:28:27]CAPDU: 80 11 00 00 [20:28:27]Write to MH i2c: E2 08 00 C8 58 80 11 00 00 00 00 00 00 9A [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:27]Read from MH i2c: E2 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 17 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 17 00 C8 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E7 [20:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:28:27]wFMCommunicate OK [20:28:27]requested_item fd.num is exist - process it [20:28:27]SAM_PROTO_GetFieldsCounters [20:28:27]wFMCommunicate request_size=4 [20:28:27]MH_SAM_APDU [20:28:27]CAPDU: 80 13 00 00 [20:28:27]Write to MH i2c: E2 08 00 C9 58 80 13 00 00 00 00 00 00 9D [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:27]Read from MH i2c: E2 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 62 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 62 00 C9 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [20:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:27]wFMCommunicate OK [20:28:27]SAM_PROTO_GetFieldsCounters done [20:28:27]requested_item shift.num is exist - process it [20:28:27]requested_item shift.opened is exist - process it [20:28:27]req_shift_opened [20:28:27]FM_GetShiftState [20:28:27]SAM_PROTO_GetShiftState [20:28:27]wFMCommunicate request_size=4 [20:28:27]MH_SAM_APDU [20:28:27]CAPDU: 80 13 01 00 [20:28:27]Write to MH i2c: E2 08 00 CA 58 80 13 01 00 00 00 00 00 9F [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:27]Read from MH i2c: E2 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 0E 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 0E 00 CA 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E4 [20:28:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:28:27]wFMCommunicate OK [20:28:27]SAM_PROTO_GetShiftState done [20:28:27]FM_GetShiftState done [20:28:27]req_shift_opened done [20:28:27]requested_item shift.open_date is exist - process it [20:28:27]req_shift_open_date [20:28:27]req_shift_open_date done [20:28:27]produce_requested_data done [20:28:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74009,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:28:27]process_action_free close_receipt [20:28:27]json_value_free [20:28:27]json_value_free done [20:28:27]process_json_proto returns [20:28:27]Send response to host [20:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74009,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:28:27]free response buf [20:28:27]execute_script done [20:28:27]execute_script returns [20:28:27]free content buf [20:28:27]Sock 9.Close socket [20:28:27]Sock 9.Thread stoped [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:07]accept exits with 8 [20:30:07]New connection [20:30:07]New thread 3067575652 created [20:30:07]Thread 3067432292 joined [20:30:07]Waiting for new connection... [20:30:07] Sock 8.Parse request [20:30:07]Sock 8.Check first char [20:30:07]Sock 8.First char is OK [20:30:07]request: POST /json_proto HTTP/1.0 [20:30:07]Method: POST [20:30:07]URL: /json_proto [20:30:07]Method is POST - this is cgi request [20:30:07]url: /json_proto [20:30:07]query_string will be loaded in cgi processing [20:30:07]execute_cgi json_proto POST (null) [20:30:07]execute_cgi path=json_proto method=POST [20:30:07]POST find Content-Length [20:30:07]Host: 172.17.44.196:8080 [20:30:07]Content-Length: 620 [20:30:07]Content-Type: application/json [20:30:07] [20:30:07]POST finish read [20:30:07]Found Content-Length = 620 [20:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272850", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:07]execute_script... [20:30: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)272850", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:07]POST & json_proto [20:30:07]process_json_proto [20:30:07]json parsed OK: [20:30:07]protocol is kg_v1.0 [20:30:07]action value=close_receipt [20:30:07]process_action close_receipt [20:30:07]cmd_close_receipt [20:30:07]MH_GetDate [20:30:07]Write to MH i2c: F0 00 00 CB 58 12 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: F0 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: F0 09 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: F0 09 00 CB 58 00 53 68 15 67 E7 19 F8 65 AF [20:30:07]GetLastDocTimeStamp 1729456106 [20:30:07]current date 1729456211 [20:30:07]FM_GetShiftState [20:30:07]SAM_PROTO_GetShiftState [20:30:07]wFMCommunicate request_size=4 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 13 01 00 [20:30:07]Write to MH i2c: E2 08 00 CC 58 80 13 01 00 00 00 00 00 A1 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 0E 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 0E 00 CC 58 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E6 [20:30:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:30:07]wFMCommunicate OK [20:30:07]SAM_PROTO_GetShiftState done [20:30:07]FM_GetShiftState done [20:30:07]opened in 1729384303 [20:30:07]opened+sec_in_day 1729470703 [20:30:07]quantity*price = 13500 [20:30:07]sum+1 = 13501 [20:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 336 20.10.2024 20:30 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74010 ФПД: 64786279970593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203011&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74010&fm=64786279970593&tin=02508201610067®Number=0000000000161154&sum=13500 0 [20:30:09]StoreToDocumentArchive [20:30:09]shift 170 fd 74010 [20:30:09]save to /storage/0170/doc_00074010 [20:30:09]save last doc name /storage/0170/doc_00074010 to /storage/kkm_last_doc_name [20:30:09]save OK [20:30:09]Clear old archive folders... [20:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:30:09]tlvbuf is 0040F880 [20:30:09]SAM_PROTO_ClearQueue [20:30:09]wFMCommunicate request_size=4 [20:30:09]MH_SAM_APDU [20:30:09]CAPDU: 80 09 00 00 [20:30:09]Write to MH i2c: E2 08 00 D9 58 80 09 00 00 00 00 00 00 A3 [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:09]Read from MH i2c: E2 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 D9 58 00 90 00 A5 [20:30:09]RAPDU: 90 00 [20:30:09]wFMCommunicate OK [20:30:09]SAM_PROTO_ClearQueue done [20:30:09]KKMCreateOFDPacket [20:30:09]OFDProtocolAddRootSTLVToBuf [20:30:09]FM_MakeSignedData [20:30:09]FM_MakeSignedData [20:30:09]SAM_PROTO_SignData [20:30:09]wFMCommunicate request_size=4 [20:30:09]MH_SAM_APDU [20:30:09]CAPDU: 80 0D 01 02 [20:30:09]Write to MH i2c: E2 08 00 DA 58 80 0D 01 02 00 00 00 00 AB [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:09]Read from MH i2c: E2 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 DA 58 00 90 00 A6 [20:30:09]RAPDU: 90 00 [20:30:09]wFMCommunicate OK [20:30:09]wFMCommunicate request_size=255 [20:30:09]MH_SAM_APDU [20:30:09]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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 53 68 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [20:30:09]Write to MH i2c: E2 02 01 DB 58 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 53 68 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 91 [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:09]Read from MH i2c: E2 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 DB 58 00 90 00 A7 [20:30:09]RAPDU: 90 00 [20:30:09]wFMCommunicate OK [20:30:09]wFMCommunicate request_size=31 [20:30:09]MH_SAM_APDU [20:30:09]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 1A 21 01 00 35 04 06 00 3A EC 3B 34 37 21 [20:30:09]Write to MH i2c: E2 22 00 DC 58 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 1A 21 01 00 35 04 06 00 3A EC 3B 34 37 21 00 00 FC [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:09]Read from MH i2c: E2 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 03 00 DC 58 00 90 00 A8 [20:30:09]RAPDU: 90 00 [20:30:09]wFMCommunicate OK [20:30:09]wFMCommunicate request_size=4 [20:30:09]MH_SAM_APDU [20:30:09]CAPDU: 80 0D 03 02 [20:30:09]Write to MH i2c: E2 08 00 DD 58 80 0D 03 02 00 00 00 00 B0 [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:09]Read from MH i2c: E2 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 0B 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 0B 00 DD 58 00 CE DD A4 8A 88 00 7A 2E 90 00 BA [20:30:09]RAPDU: CE DD A4 8A 88 00 7A 2E 90 00 [20:30:09]wFMCommunicate OK [20:30:09]SAM_PROTO_SignData done [20:30:09]FM_MakeSignedData done [20:30:09]CreateOFDProtocolMessage [20:30:09]wFMCommunicate request_size=4 [20:30:09]MH_SAM_APDU [20:30:09]CAPDU: 80 11 00 00 [20:30:09]Write to MH i2c: E2 08 00 DE 58 80 11 00 00 00 00 00 00 B0 [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:09]Read from MH i2c: E2 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 17 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: E2 17 00 DE 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [20:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:30:09]wFMCommunicate OK [20:30:09]CreateOFDProtocolMessage done [20:30:09]OFDSenderStorePacket 74010 [20:30:09]StoreOFDPacket docnum=74010 [20:30:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 5B 1B 1C 01 50 32 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 53 68 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 21 01 00 35 04 06 00 3A EC 3B 34 37 21 CE DD A4 8A 88 00 7A 2E [20:30:09]CheckFolder [20:30:09]dirname=/storage/ofd_packets [20:30:09]CheckFolder done [20:30:09]ProducePacketName [20:30:09]name=ofd_packets/00074010 [20:30:09]NVStorageSaveData ofd_packets/00074010 [20:30:09]File name is /storage/ofd_packets/00074010 [20:30:09]Write 322 bytes [20:30:09]NVStorageSaveData done [20:30:09]OFDSenderStorePacket done [20:30:09]KKMCreateOFDPacket done [20:30:09]NVStorageSaveData kkm_last_timestamp [20:30:09]File name is /storage/kkm_last_timestamp [20:30:09]Write 4 bytes [20:30:09]NVStorageSaveData done [20:30:09]ExternCall_PrintAddStr [20:30:09]wPrintStart [20:30:09]Write to MH i2c: 01 00 00 DF 58 37 [20:30:09]Write i2c OK [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: 01 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: 01 07 00 [20:30:09]MH_I2C_Read... [20:30:09]Read from MH i2c: 01 07 00 DF 58 00 00 00 00 00 FF 0F 4C [20:30:09]RasterBufferAndPrint [20:30:09]line Счет N : (3)272850 [20:30:09]line ИНН: 02508201610067 [20:30:09]line Контрольно-Кассовый Чек [20:30:09]line ПРОДАЖА [20:30:09]line Товар: 48745000 [20:30:09]line Сигареты Winston Purple Mix [20:30:09]line 1.000 * 135.00 [20:30:09]line = 135.00 [20:30:09]line НДС 12% НСП 1% [20:30:09]line > о реализуемом товаре [20:30:09]line ИТОГО: 135.00 [20:30:09]line НСП 1% : 1.19 [20:30:09]line НДС 12% : 14.34 [20:30:09]line Наличными: 135.00 [20:30:09]line Безнал.: 0.00 [20:30:09]line Место: АЗС № 133 "Партнер Нефть" [20:30:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:30:09]line СНО: Общий режим [20:30:09]line Чек 336 20.10.2024 20:30 [20:30:09]line Смена: 170 ФФД: 1.0 [20:30:09]line ЗНМ: 0300000020 [20:30:09]line РНМ: 0000000000161154 [20:30:09]line Версия ККМ: v1.0 [20:30:09]line ФМ: 0000000000963323 [20:30:09]line ФД: 74010 [20:30:09]line ФПД: 64786279970593 [20:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203011&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74010&fm=64786279970593&tin=02508201610067®Number=0000000000161154&sum=13500 [20:30:09]line 0 [20:30:09]OFD Sender: Processing packet 74010 [packets to send 15, broken 14] [20:30:09]ProducePacketName [20:30:09]name=ofd_packets/00074010 [20:30:09]OFD Sender: To server: pG, [20:30:09]CommunicateWithHost lk.salyk.kg:30040 [20:30:09]ConnectInit lk.salyk.kg [20:30:09]written 0, free lines is 4095 [20:30:09]Connected sock=10 [20:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 5B 1B 1C 01 50 32 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 01 00 00 F4 03 04 00 53 68 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 21 01 00 35 04 06 00 3A EC 3B 34 37 21 CE DD A4 8A 88 00 7A 2E [20:30:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 CD 47 00 74 C8 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 39 36 33 33 32 33 10 04 04 00 1A 21 01 00 F4 03 04 00 37 11 15 67 B6 04 01 00 00 B1 CA 2A E8 25 90 F5 FE [20:30:10]CommunicateWithHost err = 0 [20:30:10]CheckOFDResponse [20:30:10]1017 (14) - 77093643461234 [20:30:10]1041 (16) - 0000000000963323 [20:30:10]1040 (4) - 74010 [20:30:10]1012 (4) - 20.10.2024 14:18 [20:30:10]1206 (1) - 0 [20:30:10]OFD Sender: Remove packet 74010 [20:30:10]ProducePacketName [20:30:10]name=ofd_packets/00074010 [20:30:10]NVStorageDeleteData [20:30:10]Write to MH i2c: 01 00 00 06 59 5F [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: 01 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: 01 07 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: 01 07 00 06 59 00 00 00 00 00 D6 0C 48 [20:30:10]RasterBufferAndPrint [20:30:10]line [20:30:10]line [20:30:10]line [20:30:10]line [20:30:10]line [20:30:10]written 0, free lines is 3290 [20:30:10]MH_Cut [20:30:10]Write to MH i2c: D1 01 00 0D 59 01 38 [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: D1 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: D1 01 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: D1 01 00 0D 59 00 37 [20:30:10]Write to MH i2c: 01 00 00 0E 59 67 [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]OFD Sender: No OFD packet to send [20:30:11]*** Cut start [20:30:11]*** Partial cut [20:30:11]*** CUTSNS_PIN = 1 [20:30:11]*** CUTSNS_PIN = 0 [20:30:11]*** Brake cut motor [20:30:11]Read from MH i2c: 01 [20:30:11]MH_I2C_Read... [20:30:11]*** Stop cut motor [20:30:11]*** Cut end [20:30:11]Read from MH i2c: 01 07 00 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: 01 07 00 0E 59 00 00 00 00 00 FF 0F 7C [20:30:11]process_action close_receipt done [20:30:11]requested_data is exist [20:30:11]produce_requested_data [20:30:11]requested_item fm.sn is exist - process it [20:30:11]wFMCommunicate request_size=4 [20:30:11]MH_SAM_APDU [20:30:11]CAPDU: 80 11 00 00 [20:30:11]Write to MH i2c: E2 08 00 0F 59 80 11 00 00 00 00 00 00 E2 [20:30:11]Write i2c OK [20:30:11]MH_I2C_Read... [20:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:11]Read from MH i2c: E2 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: E2 17 00 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: E2 17 00 0F 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [20:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:30:11]wFMCommunicate OK [20:30:11]requested_item fd.num is exist - process it [20:30:11]SAM_PROTO_GetFieldsCounters [20:30:11]wFMCommunicate request_size=4 [20:30:11]MH_SAM_APDU [20:30:11]CAPDU: 80 13 00 00 [20:30:11]Write to MH i2c: E2 08 00 10 59 80 13 00 00 00 00 00 00 E5 [20:30:11]Write i2c OK [20:30:11]MH_I2C_Read... [20:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:11]Read from MH i2c: E2 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: E2 62 00 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: E2 62 00 10 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [20:30:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:11]wFMCommunicate OK [20:30:11]SAM_PROTO_GetFieldsCounters done [20:30:11]requested_item shift.num is exist - process it [20:30:11]requested_item shift.opened is exist - process it [20:30:11]req_shift_opened [20:30:11]FM_GetShiftState [20:30:11]SAM_PROTO_GetShiftState [20:30:11]wFMCommunicate request_size=4 [20:30:11]MH_SAM_APDU [20:30:11]CAPDU: 80 13 01 00 [20:30:11]Write to MH i2c: E2 08 00 11 59 80 13 01 00 00 00 00 00 E7 [20:30:11]Write i2c OK [20:30:11]MH_I2C_Read... [20:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:12]Read from MH i2c: E2 [20:30:12]MH_I2C_Read... [20:30:12]Read from MH i2c: E2 0E 00 [20:30:12]MH_I2C_Read... [20:30:12]Read from MH i2c: E2 0E 00 11 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2C [20:30:12]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:30:12]wFMCommunicate OK [20:30:12]SAM_PROTO_GetShiftState done [20:30:12]FM_GetShiftState done [20:30:12]req_shift_opened done [20:30:12]requested_item shift.open_date is exist - process it [20:30:12]req_shift_open_date [20:30:12]req_shift_open_date done [20:30:12]produce_requested_data done [20:30:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74010,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:30:12]process_action_free close_receipt [20:30:12]json_value_free [20:30:12]json_value_free done [20:30:12]process_json_proto returns [20:30:12]Send response to host [20:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74010,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:30:12]free response buf [20:30:12]execute_script done [20:30:12]execute_script returns [20:30:12]free content buf [20:30:12]Sock 8.Close socket [20:30:12]Sock 8.Thread stoped [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]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:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:03]accept exits with 9 [20:42:03]New connection [20:42:03]New thread 3067432292 created [20:42:03]Thread 3067575652 joined [20:42:03]Waiting for new connection... [20:42:03] Sock 9.Parse request [20:42:03]Sock 9.Check first char [20:42:03]Sock 9.First char is OK [20:42:03]request: POST /json_proto HTTP/1.0 [20:42:03]Method: POST [20:42:03]URL: /json_proto [20:42:03]Method is POST - this is cgi request [20:42:03]url: /json_proto [20:42:03]query_string will be loaded in cgi processing [20:42:03]execute_cgi json_proto POST (null) [20:42:03]execute_cgi path=json_proto method=POST [20:42:03]POST find Content-Length [20:42:03]Host: 172.17.44.196:8080 [20:42:03]Content-Length: 661 [20:42:03]Content-Type: application/json [20:42:03] [20:42:03]POST finish read [20:42:03]Found Content-Length = 661 [20:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272851", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "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" ] } } [20:42:03]execute_script... [20:42: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)272851", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "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" ] } } [20:42:03]POST & json_proto [20:42:03]process_json_proto [20:42:03]json parsed OK: [20:42:03]protocol is kg_v1.0 [20:42:03]action value=close_receipt [20:42:03]process_action close_receipt [20:42:03]cmd_close_receipt [20:42:03]MH_GetDate [20:42:03]Write to MH i2c: F0 00 00 12 59 5A [20:42:03]Write i2c OK [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: F0 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: F0 09 00 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: F0 09 00 12 59 00 1F 6B 15 67 E7 19 F8 65 C6 [20:42:03]GetLastDocTimeStamp 1729456211 [20:42:03]current date 1729456927 [20:42:03]FM_GetShiftState [20:42:03]SAM_PROTO_GetShiftState [20:42:03]wFMCommunicate request_size=4 [20:42:03]MH_SAM_APDU [20:42:03]CAPDU: 80 13 01 00 [20:42:03]Write to MH i2c: E2 08 00 13 59 80 13 01 00 00 00 00 00 E9 [20:42:03]Write i2c OK [20:42:03]MH_I2C_Read... [20:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:03]Read from MH i2c: E2 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: E2 0E 00 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: E2 0E 00 13 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2E [20:42:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:42:03]wFMCommunicate OK [20:42:03]SAM_PROTO_GetShiftState done [20:42:03]FM_GetShiftState done [20:42:03]opened in 1729384303 [20:42:03]opened+sec_in_day 1729470703 [20:42:03]quantity*price = 6700 [20:42:03]sum+1 = 6701 [20:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 337 20.10.2024 20:42 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74011 ФПД: 31740799775167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204207&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74011&fm=31740799775167&tin=02508201610067®Number=0000000000161154&sum=6700 0 [20:42:05]StoreToDocumentArchive [20:42:05]shift 170 fd 74011 [20:42:05]save to /storage/0170/doc_00074011 [20:42:05]save last doc name /storage/0170/doc_00074011 to /storage/kkm_last_doc_name [20:42:05]save OK [20:42:05]Clear old archive folders... [20:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=284 [20:42:05]tlvbuf is 0047D5B0 [20:42:05]SAM_PROTO_ClearQueue [20:42:05]wFMCommunicate request_size=4 [20:42:05]MH_SAM_APDU [20:42:05]CAPDU: 80 09 00 00 [20:42:05]Write to MH i2c: E2 08 00 20 59 80 09 00 00 00 00 00 00 EB [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:05]Read from MH i2c: E2 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 20 59 00 90 00 ED [20:42:05]RAPDU: 90 00 [20:42:05]wFMCommunicate OK [20:42:05]SAM_PROTO_ClearQueue done [20:42:05]KKMCreateOFDPacket [20:42:05]OFDProtocolAddRootSTLVToBuf [20:42:05]FM_MakeSignedData [20:42:05]FM_MakeSignedData [20:42:05]SAM_PROTO_SignData [20:42:05]wFMCommunicate request_size=4 [20:42:05]MH_SAM_APDU [20:42:05]CAPDU: 80 0D 01 02 [20:42:05]Write to MH i2c: E2 08 00 21 59 80 0D 01 02 00 00 00 00 F3 [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:05]Read from MH i2c: E2 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 21 59 00 90 00 EE [20:42:05]RAPDU: 90 00 [20:42:05]wFMCommunicate OK [20:42:05]wFMCommunicate request_size=255 [20:42:05]MH_SAM_APDU [20:42:05]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 01 00 00 F4 03 04 00 1F 6B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 [20:42:05]Write to MH i2c: E2 02 01 22 59 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 01 00 00 F4 03 04 00 1F 6B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 00 00 0F [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:05]Read from MH i2c: E2 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 22 59 00 90 00 EF [20:42:05]RAPDU: 90 00 [20:42:05]wFMCommunicate OK [20:42:05]wFMCommunicate request_size=43 [20:42:05]MH_SAM_APDU [20:42:05]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 21 01 00 35 04 06 00 1C DE 3B 18 71 BF [20:42:05]Write to MH i2c: E2 2E 00 23 59 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 21 01 00 35 04 06 00 1C DE 3B 18 71 BF 00 00 92 [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:05]Read from MH i2c: E2 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 03 00 23 59 00 90 00 F0 [20:42:05]RAPDU: 90 00 [20:42:05]wFMCommunicate OK [20:42:05]wFMCommunicate request_size=4 [20:42:05]MH_SAM_APDU [20:42:05]CAPDU: 80 0D 03 02 [20:42:05]Write to MH i2c: E2 08 00 24 59 80 0D 03 02 00 00 00 00 F8 [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:05]Read from MH i2c: E2 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 0B 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 0B 00 24 59 00 D9 DC 4D 2F 15 2A 31 9A 90 00 34 [20:42:05]RAPDU: D9 DC 4D 2F 15 2A 31 9A 90 00 [20:42:05]wFMCommunicate OK [20:42:05]SAM_PROTO_SignData done [20:42:05]FM_MakeSignedData done [20:42:05]CreateOFDProtocolMessage [20:42:05]wFMCommunicate request_size=4 [20:42:05]MH_SAM_APDU [20:42:05]CAPDU: 80 11 00 00 [20:42:05]Write to MH i2c: E2 08 00 25 59 80 11 00 00 00 00 00 00 F8 [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:05]Read from MH i2c: E2 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 17 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: E2 17 00 25 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 45 [20:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:42:05]wFMCommunicate OK [20:42:05]CreateOFDProtocolMessage done [20:42:05]OFDSenderStorePacket 74011 [20:42:05]StoreOFDPacket docnum=74011 [20:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 30 01 00 00 D2 FD 28 01 71 13 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 01 00 00 F4 03 04 00 1F 6B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 21 01 00 35 04 06 00 1C DE 3B 18 71 BF D9 DC 4D 2F 15 2A 31 9A [20:42:05]CheckFolder [20:42:05]dirname=/storage/ofd_packets [20:42:05]CheckFolder done [20:42:05]ProducePacketName [20:42:05]name=ofd_packets/00074011 [20:42:05]NVStorageSaveData ofd_packets/00074011 [20:42:05]File name is /storage/ofd_packets/00074011 [20:42:05]Write 334 bytes [20:42:05]NVStorageSaveData done [20:42:05]OFDSenderStorePacket done [20:42:05]KKMCreateOFDPacket done [20:42:05]NVStorageSaveData kkm_last_timestamp [20:42:05]File name is /storage/kkm_last_timestamp [20:42:05]Write 4 bytes [20:42:05]NVStorageSaveData done [20:42:05]ExternCall_PrintAddStr [20:42:05]wPrintStart [20:42:05]Write to MH i2c: 01 00 00 26 59 7F [20:42:05]Write i2c OK [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: 01 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: 01 07 00 [20:42:05]MH_I2C_Read... [20:42:05]Read from MH i2c: 01 07 00 26 59 00 00 00 00 00 FF 0F 94 [20:42:05]RasterBufferAndPrint [20:42:05]line Счет N : (3)272851 [20:42:05]line ИНН: 02508201610067 [20:42:05]line Контрольно-Кассовый Чек [20:42:05]line ПРОДАЖА [20:42:05]line Товар: 6931280300549 [20:42:05]line Зажигалка Cricket ПН пьезо [20:42:05]line 1.000 * 67.00 [20:42:05]line = 67.00 [20:42:05]line НДС 12% НСП 1% [20:42:05]line > о реализуемом товаре [20:42:05]line ИТОГО: 67.00 [20:42:05]line НСП 1% : 0.59 [20:42:05]line НДС 12% : 7.11 [20:42:05]line Наличными: 67.00 [20:42:05]line Безнал.: 0.00 [20:42:05]line Место: АЗС № 133 "Партнер Нефть" [20:42:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:42:05]line СНО: Общий режим [20:42:05]line Чек 337 20.10.2024 20:42 [20:42:05]line Смена: 170 ФФД: 1.0 [20:42:05]line ЗНМ: 0300000020 [20:42:05]line РНМ: 0000000000161154 [20:42:05]line Версия ККМ: v1.0 [20:42:05]line ФМ: 0000000000963323 [20:42:05]line ФД: 74011 [20:42:05]line ФПД: 31740799775167 [20:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204207&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74011&fm=31740799775167&tin=02508201610067®Number=0000000000161154&sum=6700 [20:42:05]line 0 [20:42:05]OFD Sender: Processing packet 74011 [packets to send 15, broken 14] [20:42:05]ProducePacketName [20:42:05]name=ofd_packets/00074011 [20:42:05]OFD Sender: To server: pG, [20:42:05]CommunicateWithHost lk.salyk.kg:30040 [20:42:05]ConnectInit lk.salyk.kg [20:42:05]written 0, free lines is 4095 [20:42:06]Connected sock=10 [20:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 30 01 00 00 D2 FD 28 01 71 13 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 01 00 00 F4 03 04 00 1F 6B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 21 01 00 35 04 06 00 1C DE 3B 18 71 BF D9 DC 4D 2F 15 2A 31 9A [20:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 98 59 47 00 37 34 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 39 36 33 33 32 33 10 04 04 00 1B 21 01 00 F4 03 04 00 03 14 15 67 B6 04 01 00 00 08 5F E0 C7 3F 5F 99 D5 [20:42:06]CommunicateWithHost err = 0 [20:42:06]CheckOFDResponse [20:42:06]1017 (14) - 77093643461234 [20:42:06]1041 (16) - 0000000000963323 [20:42:06]1040 (4) - 74011 [20:42:06]1012 (4) - 20.10.2024 14:30 [20:42:06]1206 (1) - 0 [20:42:06]OFD Sender: Remove packet 74011 [20:42:06]ProducePacketName [20:42:06]name=ofd_packets/00074011 [20:42:06]NVStorageDeleteData [20:42:06]Write to MH i2c: 01 00 00 4D 59 A6 [20:42:06]Write i2c OK [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: 01 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: 01 07 00 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: 01 07 00 4D 59 00 00 00 00 00 E2 0C 9B [20:42:06]RasterBufferAndPrint [20:42:06]line [20:42:06]line [20:42:06]line [20:42:06]line [20:42:06]line [20:42:06]written 0, free lines is 3304 [20:42:06]MH_Cut [20:42:06]Write to MH i2c: D1 01 00 54 59 01 7F [20:42:06]Write i2c OK [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: D1 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: D1 01 00 [20:42:06]MH_I2C_Read... [20:42:06]Read from MH i2c: D1 01 00 54 59 00 7E [20:42:06]Write to MH i2c: 01 00 00 55 59 AE [20:42:06]Write i2c OK [20:42:06]MH_I2C_Read... [20:42:06]OFD Sender: No OFD packet to send [20:42:07]*** Cut start [20:42:07]*** Partial cut [20:42:07]*** CUTSNS_PIN = 1 [20:42:07]*** CUTSNS_PIN = 0 [20:42:07]*** Brake cut motor [20:42:07]Read from MH i2c: 01 [20:42:07]MH_I2C_Read... [20:42:07]*** Stop cut motor [20:42:07]*** Cut end [20:42:07]Read from MH i2c: 01 07 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: 01 07 00 55 59 00 00 00 00 00 FF 0F C3 [20:42:07]process_action close_receipt done [20:42:07]requested_data is exist [20:42:07]produce_requested_data [20:42:07]requested_item fm.sn is exist - process it [20:42:07]wFMCommunicate request_size=4 [20:42:07]MH_SAM_APDU [20:42:07]CAPDU: 80 11 00 00 [20:42:07]Write to MH i2c: E2 08 00 56 59 80 11 00 00 00 00 00 00 29 [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:07]Read from MH i2c: E2 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 17 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 17 00 56 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 76 [20:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:42:07]wFMCommunicate OK [20:42:07]requested_item fd.num is exist - process it [20:42:07]SAM_PROTO_GetFieldsCounters [20:42:07]wFMCommunicate request_size=4 [20:42:07]MH_SAM_APDU [20:42:07]CAPDU: 80 13 00 00 [20:42:07]Write to MH i2c: E2 08 00 57 59 80 13 00 00 00 00 00 00 2C [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 62 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 62 00 57 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [20:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:08]wFMCommunicate OK [20:42:08]SAM_PROTO_GetFieldsCounters done [20:42:08]requested_item shift.num is exist - process it [20:42:08]requested_item shift.opened is exist - process it [20:42:08]req_shift_opened [20:42:08]FM_GetShiftState [20:42:08]SAM_PROTO_GetShiftState [20:42:08]wFMCommunicate request_size=4 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 13 01 00 [20:42:08]Write to MH i2c: E2 08 00 58 59 80 13 01 00 00 00 00 00 2E [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 0E 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 0E 00 58 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [20:42:08]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:42:08]wFMCommunicate OK [20:42:08]SAM_PROTO_GetShiftState done [20:42:08]FM_GetShiftState done [20:42:08]req_shift_opened done [20:42:08]requested_item shift.open_date is exist - process it [20:42:08]req_shift_open_date [20:42:08]req_shift_open_date done [20:42:08]produce_requested_data done [20:42:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74011,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:42:08]process_action_free close_receipt [20:42:08]json_value_free [20:42:08]json_value_free done [20:42:08]process_json_proto returns [20:42:08]Send response to host [20:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74011,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:42:08]free response buf [20:42:08]execute_script done [20:42:08]execute_script returns [20:42:08]free content buf [20:42:08]Sock 9.Close socket [20:42:08]Sock 9.Thread stoped [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:10]accept exits with 8 [20:48:10]New connection [20:48:10]New thread 3067575652 created [20:48:10]Thread 3067432292 joined [20:48:10]Waiting for new connection... [20:48:10] Sock 8.Parse request [20:48:10]Sock 8.Check first char [20:48:10]Sock 8.First char is OK [20:48:10]request: POST /json_proto HTTP/1.0 [20:48:10]Method: POST [20:48:10]URL: /json_proto [20:48:10]Method is POST - this is cgi request [20:48:10]url: /json_proto [20:48:10]query_string will be loaded in cgi processing [20:48:10]execute_cgi json_proto POST (null) [20:48:10]execute_cgi path=json_proto method=POST [20:48:10]POST find Content-Length [20:48:10]Host: 172.17.44.196:8080 [20:48:10]Content-Length: 641 [20:48:10]Content-Type: application/json [20:48:10] [20:48:10]POST finish read [20:48:10]Found Content-Length = 641 [20:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272852", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:10]execute_script... [20:48: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)272852", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:10]POST & json_proto [20:48:10]process_json_proto [20:48:10]json parsed OK: [20:48:10]protocol is kg_v1.0 [20:48:10]action value=close_receipt [20:48:10]process_action close_receipt [20:48:10]cmd_close_receipt [20:48:10]MH_GetDate [20:48:10]Write to MH i2c: F0 00 00 59 59 A1 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: F0 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: F0 09 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: F0 09 00 59 59 00 8E 6C 15 67 E7 19 F8 65 7D [20:48:10]GetLastDocTimeStamp 1729456927 [20:48:10]current date 1729457294 [20:48:10]FM_GetShiftState [20:48:10]SAM_PROTO_GetShiftState [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 13 01 00 [20:48:10]Write to MH i2c: E2 08 00 5A 59 80 13 01 00 00 00 00 00 30 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 0E 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 0E 00 5A 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 75 [20:48:10]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:48:10]wFMCommunicate OK [20:48:10]SAM_PROTO_GetShiftState done [20:48:10]FM_GetShiftState done [20:48:10]opened in 1729384303 [20:48:10]opened+sec_in_day 1729470703 [20:48:10]quantity*price = 33000 [20:48:10]sum+1 = 33001 [20:48:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 338 20.10.2024 20:48 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74012 ФПД: 203874447464892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204814&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74012&fm=203874447464892&tin=02508201610067®Number=0000000000161154&sum=33000 0 [20:48:11]StoreToDocumentArchive [20:48:11]shift 170 fd 74012 [20:48:11]save to /storage/0170/doc_00074012 [20:48:11]save last doc name /storage/0170/doc_00074012 to /storage/kkm_last_doc_name [20:48:11]save OK [20:48:11]Clear old archive folders... [20:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:48:11]tlvbuf is 00313530 [20:48:11]SAM_PROTO_ClearQueue [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 09 00 00 [20:48:11]Write to MH i2c: E2 08 00 67 59 80 09 00 00 00 00 00 00 32 [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 67 59 00 90 00 34 [20:48:11]RAPDU: 90 00 [20:48:11]wFMCommunicate OK [20:48:11]SAM_PROTO_ClearQueue done [20:48:11]KKMCreateOFDPacket [20:48:11]OFDProtocolAddRootSTLVToBuf [20:48:11]FM_MakeSignedData [20:48:11]FM_MakeSignedData [20:48:11]SAM_PROTO_SignData [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 0D 01 02 [20:48:11]Write to MH i2c: E2 08 00 68 59 80 0D 01 02 00 00 00 00 3A [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 68 59 00 90 00 35 [20:48:11]RAPDU: 90 00 [20:48:11]wFMCommunicate OK [20:48:11]wFMCommunicate request_size=255 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 01 00 00 F4 03 04 00 8E 6C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [20:48:11]Write to MH i2c: E2 02 01 69 59 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 01 00 00 F4 03 04 00 8E 6C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 5D [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:12]OFD Sender: No OFD packet to send [20:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:12]Read from MH i2c: E2 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 03 00 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 03 00 69 59 00 90 00 36 [20:48:12]RAPDU: 90 00 [20:48:12]wFMCommunicate OK [20:48:12]wFMCommunicate request_size=32 [20:48:12]MH_SAM_APDU [20:48:12]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 21 01 00 35 04 06 00 B9 6C 38 05 19 BC [20:48:12]Write to MH i2c: E2 23 00 6A 59 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 21 01 00 35 04 06 00 B9 6C 38 05 19 BC 00 00 09 [20:48:12]Write i2c OK [20:48:12]MH_I2C_Read... [20:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:12]Read from MH i2c: E2 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 03 00 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 03 00 6A 59 00 90 00 37 [20:48:12]RAPDU: 90 00 [20:48:12]wFMCommunicate OK [20:48:12]wFMCommunicate request_size=4 [20:48:12]MH_SAM_APDU [20:48:12]CAPDU: 80 0D 03 02 [20:48:12]Write to MH i2c: E2 08 00 6B 59 80 0D 03 02 00 00 00 00 3F [20:48:12]Write i2c OK [20:48:12]MH_I2C_Read... [20:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:12]Read from MH i2c: E2 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 0B 00 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 0B 00 6B 59 00 AF 49 98 91 98 60 A3 86 90 00 82 [20:48:12]RAPDU: AF 49 98 91 98 60 A3 86 90 00 [20:48:12]wFMCommunicate OK [20:48:12]SAM_PROTO_SignData done [20:48:12]FM_MakeSignedData done [20:48:12]CreateOFDProtocolMessage [20:48:12]wFMCommunicate request_size=4 [20:48:12]MH_SAM_APDU [20:48:12]CAPDU: 80 11 00 00 [20:48:12]Write to MH i2c: E2 08 00 6C 59 80 11 00 00 00 00 00 00 3F [20:48:12]Write i2c OK [20:48:12]MH_I2C_Read... [20:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:12]Read from MH i2c: E2 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 17 00 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: E2 17 00 6C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8C [20:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:48:12]wFMCommunicate OK [20:48:12]CreateOFDProtocolMessage done [20:48:12]OFDSenderStorePacket 74012 [20:48:12]StoreOFDPacket docnum=74012 [20:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 66 CC 1D 01 E8 F9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 01 00 00 F4 03 04 00 8E 6C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 21 01 00 35 04 06 00 B9 6C 38 05 19 BC AF 49 98 91 98 60 A3 86 [20:48:12]CheckFolder [20:48:12]dirname=/storage/ofd_packets [20:48:12]CheckFolder done [20:48:12]ProducePacketName [20:48:12]name=ofd_packets/00074012 [20:48:12]NVStorageSaveData ofd_packets/00074012 [20:48:12]File name is /storage/ofd_packets/00074012 [20:48:12]Write 323 bytes [20:48:12]NVStorageSaveData done [20:48:12]OFDSenderStorePacket done [20:48:12]KKMCreateOFDPacket done [20:48:12]NVStorageSaveData kkm_last_timestamp [20:48:12]File name is /storage/kkm_last_timestamp [20:48:12]Write 4 bytes [20:48:12]NVStorageSaveData done [20:48:12]ExternCall_PrintAddStr [20:48:12]wPrintStart [20:48:12]Write to MH i2c: 01 00 00 6D 59 C6 [20:48:12]Write i2c OK [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: 01 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: 01 07 00 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: 01 07 00 6D 59 00 00 00 00 00 FF 0F DB [20:48:12]RasterBufferAndPrint [20:48:12]line Счет N : (3)272852 [20:48:12]line ИНН: 02508201610067 [20:48:12]line Контрольно-Кассовый Чек [20:48:12]line ПРОДАЖА [20:48:12]line Товар: 4700001060169 [20:48:12]line Коньяк Бишкек 0,2л [20:48:12]line 1.000 * 330.00 [20:48:12]line = 330.00 [20:48:12]line НДС 12% НСП 1% [20:48:12]line > о реализуемом товаре [20:48:12]line ИТОГО: 330.00 [20:48:12]line НСП 1% : 2.92 [20:48:12]line НДС 12% : 35.04 [20:48:12]line Наличными: 330.00 [20:48:12]line Безнал.: 0.00 [20:48:12]line Место: АЗС № 133 "Партнер Нефть" [20:48:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:48:12]line СНО: Общий режим [20:48:12]line Чек 338 20.10.2024 20:48 [20:48:12]line Смена: 170 ФФД: 1.0 [20:48:12]line ЗНМ: 0300000020 [20:48:12]line РНМ: 0000000000161154 [20:48:12]line Версия ККМ: v1.0 [20:48:12]line ФМ: 0000000000963323 [20:48:12]line ФД: 74012 [20:48:12]line ФПД: 203874447464892 [20:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204814&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74012&fm=203874447464892&tin=02508201610067®Number=0000000000161154&sum=33000 [20:48:12]line 0 [20:48:12]OFD Sender: Processing packet 74012 [packets to send 15, broken 14] [20:48:12]ProducePacketName [20:48:12]name=ofd_packets/00074012 [20:48:12]OFD Sender: To server: pG, [20:48:12]CommunicateWithHost lk.salyk.kg:30040 [20:48:12]ConnectInit lk.salyk.kg [20:48:12]written 0, free lines is 4095 [20:48:12]Connected sock=10 [20:48:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 66 CC 1D 01 E8 F9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 01 00 00 F4 03 04 00 8E 6C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 21 01 00 35 04 06 00 B9 6C 38 05 19 BC AF 49 98 91 98 60 A3 86 [20:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F2 6C 47 00 65 CC 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 39 36 33 33 32 33 10 04 04 00 1C 21 01 00 F4 03 04 00 72 15 15 67 B6 04 01 00 00 FD 5D 83 26 F0 01 73 0F [20:48:13]CommunicateWithHost err = 0 [20:48:13]CheckOFDResponse [20:48:13]1017 (14) - 77093643461234 [20:48:13]1041 (16) - 0000000000963323 [20:48:13]1040 (4) - 74012 [20:48:13]1012 (4) - 20.10.2024 14:36 [20:48:13]1206 (1) - 0 [20:48:13]OFD Sender: Remove packet 74012 [20:48:13]ProducePacketName [20:48:13]name=ofd_packets/00074012 [20:48:13]NVStorageDeleteData [20:48:13]Write to MH i2c: 01 00 00 94 59 ED [20:48:13]Write i2c OK [20:48:13]MH_I2C_Read... [20:48:13]Read from MH i2c: 01 [20:48:13]MH_I2C_Read... [20:48:13]Read from MH i2c: 01 07 00 [20:48:13]MH_I2C_Read... [20:48:13]Read from MH i2c: 01 07 00 94 59 00 00 00 00 00 EA 0C EA [20:48:13]RasterBufferAndPrint [20:48:13]line [20:48:13]line [20:48:13]line [20:48:13]line [20:48:13]line [20:48:13]written 0, free lines is 3310 [20:48:13]MH_Cut [20:48:13]Write to MH i2c: D1 01 00 9B 59 01 C6 [20:48:13]Write i2c OK [20:48:13]MH_I2C_Read... [20:48:13]Read from MH i2c: D1 [20:48:13]MH_I2C_Read... [20:48:13]Read from MH i2c: D1 01 00 [20:48:13]MH_I2C_Read... [20:48:13]Read from MH i2c: D1 01 00 9B 59 00 C5 [20:48:13]Write to MH i2c: 01 00 00 9C 59 F5 [20:48:13]Write i2c OK [20:48:13]MH_I2C_Read... [20:48:13]OFD Sender: No OFD packet to send [20:48:14]*** Cut start [20:48:14]*** Partial cut [20:48:14]*** CUTSNS_PIN = 1 [20:48:14]*** CUTSNS_PIN = 0 [20:48:14]*** Brake cut motor [20:48:14]Read from MH i2c: 01 [20:48:14]MH_I2C_Read... [20:48:14]*** Stop cut motor [20:48:14]*** Cut end [20:48:14]Read from MH i2c: 01 07 00 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: 01 07 00 9C 59 00 00 00 00 00 FF 0F 0A [20:48:14]process_action close_receipt done [20:48:14]requested_data is exist [20:48:14]produce_requested_data [20:48:14]requested_item fm.sn is exist - process it [20:48:14]wFMCommunicate request_size=4 [20:48:14]MH_SAM_APDU [20:48:14]CAPDU: 80 11 00 00 [20:48:14]Write to MH i2c: E2 08 00 9D 59 80 11 00 00 00 00 00 00 70 [20:48:14]Write i2c OK [20:48:14]MH_I2C_Read... [20:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:14]Read from MH i2c: E2 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: E2 17 00 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: E2 17 00 9D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BD [20:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:48:14]wFMCommunicate OK [20:48:14]requested_item fd.num is exist - process it [20:48:14]SAM_PROTO_GetFieldsCounters [20:48:14]wFMCommunicate request_size=4 [20:48:14]MH_SAM_APDU [20:48:14]CAPDU: 80 13 00 00 [20:48:14]Write to MH i2c: E2 08 00 9E 59 80 13 00 00 00 00 00 00 73 [20:48:14]Write i2c OK [20:48:14]MH_I2C_Read... [20:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:14]Read from MH i2c: E2 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: E2 62 00 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: E2 62 00 9E 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [20:48:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:14]wFMCommunicate OK [20:48:14]SAM_PROTO_GetFieldsCounters done [20:48:14]requested_item shift.num is exist - process it [20:48:14]requested_item shift.opened is exist - process it [20:48:14]req_shift_opened [20:48:14]FM_GetShiftState [20:48:14]SAM_PROTO_GetShiftState [20:48:14]wFMCommunicate request_size=4 [20:48:14]MH_SAM_APDU [20:48:14]CAPDU: 80 13 01 00 [20:48:14]Write to MH i2c: E2 08 00 9F 59 80 13 01 00 00 00 00 00 75 [20:48:14]Write i2c OK [20:48:14]MH_I2C_Read... [20:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:14]Read from MH i2c: E2 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: E2 0E 00 [20:48:14]MH_I2C_Read... [20:48:14]Read from MH i2c: E2 0E 00 9F 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BA [20:48:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:48:14]wFMCommunicate OK [20:48:14]SAM_PROTO_GetShiftState done [20:48:14]FM_GetShiftState done [20:48:14]req_shift_opened done [20:48:14]requested_item shift.open_date is exist - process it [20:48:14]req_shift_open_date [20:48:14]req_shift_open_date done [20:48:14]produce_requested_data done [20:48:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74012,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:48:14]process_action_free close_receipt [20:48:14]json_value_free [20:48:14]json_value_free done [20:48:14]process_json_proto returns [20:48:14]Send response to host [20:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74012,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:48:14]free response buf [20:48:14]execute_script done [20:48:14]execute_script returns [20:48:14]free content buf [20:48:14]Sock 8.Close socket [20:48:14]Sock 8.Thread stoped [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]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:47]accept exits with 9 [20:54:47]New connection [20:54:47]New thread 3067432292 created [20:54:47]Thread 3067575652 joined [20:54:47]Waiting for new connection... [20:54:47] Sock 9.Parse request [20:54:47]Sock 9.Check first char [20:54:47]Sock 9.First char is OK [20:54:47]request: POST /json_proto HTTP/1.0 [20:54:47]Method: POST [20:54:47]URL: /json_proto [20:54:47]Method is POST - this is cgi request [20:54:47]url: /json_proto [20:54:47]query_string will be loaded in cgi processing [20:54:47]execute_cgi json_proto POST (null) [20:54:47]execute_cgi path=json_proto method=POST [20:54:47]POST find Content-Length [20:54:47]Host: 172.17.44.196:8080 [20:54:47]Content-Length: 619 [20:54:47]Content-Type: application/json [20:54:47] [20:54:47]POST finish read [20:54:47]Found Content-Length = 619 [20:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272853", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [20:54:47]execute_script... [20:54: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)272853", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [20:54:47]POST & json_proto [20:54:47]process_json_proto [20:54:47]json parsed OK: [20:54:47]protocol is kg_v1.0 [20:54:47]action value=close_receipt [20:54:47]process_action close_receipt [20:54:47]cmd_close_receipt [20:54:47]MH_GetDate [20:54:47]Write to MH i2c: F0 00 00 A0 59 E8 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: F0 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: F0 09 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: F0 09 00 A0 59 00 1B 6E 15 67 E7 19 F8 65 53 [20:54:47]GetLastDocTimeStamp 1729457294 [20:54:47]current date 1729457691 [20:54:47]FM_GetShiftState [20:54:47]SAM_PROTO_GetShiftState [20:54:47]wFMCommunicate request_size=4 [20:54:47]MH_SAM_APDU [20:54:47]CAPDU: 80 13 01 00 [20:54:47]Write to MH i2c: E2 08 00 A1 59 80 13 01 00 00 00 00 00 77 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 0E 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 0E 00 A1 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BC [20:54:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:54:47]wFMCommunicate OK [20:54:47]SAM_PROTO_GetShiftState done [20:54:47]FM_GetShiftState done [20:54:47]opened in 1729384303 [20:54:47]opened+sec_in_day 1729470703 [20:54:47]quantity*price = 14000 [20:54:47]sum+1 = 14001 [20:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 339 20.10.2024 20:54 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74013 ФПД: 144446745694319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205451&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74013&fm=144446745694319&tin=02508201610067®Number=0000000000161154&sum=14000 0 [20:54:48]StoreToDocumentArchive [20:54:48]shift 170 fd 74013 [20:54:48]save to /storage/0170/doc_00074013 [20:54:48]save last doc name /storage/0170/doc_00074013 to /storage/kkm_last_doc_name [20:54:48]save OK [20:54:48]Clear old archive folders... [20:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=271 [20:54:48]tlvbuf is 003540C0 [20:54:48]SAM_PROTO_ClearQueue [20:54:48]wFMCommunicate request_size=4 [20:54:48]MH_SAM_APDU [20:54:48]CAPDU: 80 09 00 00 [20:54:48]Write to MH i2c: E2 08 00 AE 59 80 09 00 00 00 00 00 00 79 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:48]Read from MH i2c: E2 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: E2 03 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: E2 03 00 AE 59 00 90 00 7B [20:54:48]RAPDU: 90 00 [20:54:48]wFMCommunicate OK [20:54:48]SAM_PROTO_ClearQueue done [20:54:48]KKMCreateOFDPacket [20:54:48]OFDProtocolAddRootSTLVToBuf [20:54:48]FM_MakeSignedData [20:54:48]FM_MakeSignedData [20:54:48]SAM_PROTO_SignData [20:54:48]wFMCommunicate request_size=4 [20:54:48]MH_SAM_APDU [20:54:48]CAPDU: 80 0D 01 02 [20:54:48]Write to MH i2c: E2 08 00 AF 59 80 0D 01 02 00 00 00 00 81 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:49]Read from MH i2c: E2 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 03 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 03 00 AF 59 00 90 00 7C [20:54:49]RAPDU: 90 00 [20:54:49]wFMCommunicate OK [20:54:49]wFMCommunicate request_size=255 [20:54:49]MH_SAM_APDU [20:54:49]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 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 53 01 00 00 F4 03 04 00 1B 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [20:54:49]Write to MH i2c: E2 02 01 B0 59 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 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 53 01 00 00 F4 03 04 00 1B 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 01 [20:54:49]Write i2c OK [20:54:49]MH_I2C_Read... [20:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:49]Read from MH i2c: E2 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 03 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 03 00 B0 59 00 90 00 7D [20:54:49]RAPDU: 90 00 [20:54:49]wFMCommunicate OK [20:54:49]wFMCommunicate request_size=30 [20:54:49]MH_SAM_APDU [20:54:49]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 1D 21 01 00 35 04 06 00 83 5F A0 F7 50 6F [20:54:49]Write to MH i2c: E2 21 00 B1 59 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 1D 21 01 00 35 04 06 00 83 5F A0 F7 50 6F 00 00 EE [20:54:49]Write i2c OK [20:54:49]MH_I2C_Read... [20:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:49]Read from MH i2c: E2 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 03 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 03 00 B1 59 00 90 00 7E [20:54:49]RAPDU: 90 00 [20:54:49]wFMCommunicate OK [20:54:49]wFMCommunicate request_size=4 [20:54:49]MH_SAM_APDU [20:54:49]CAPDU: 80 0D 03 02 [20:54:49]Write to MH i2c: E2 08 00 B2 59 80 0D 03 02 00 00 00 00 86 [20:54:49]Write i2c OK [20:54:49]MH_I2C_Read... [20:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:49]Read from MH i2c: E2 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 0B 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 0B 00 B2 59 00 35 47 BF 39 73 0C 33 E7 90 00 94 [20:54:49]RAPDU: 35 47 BF 39 73 0C 33 E7 90 00 [20:54:49]wFMCommunicate OK [20:54:49]SAM_PROTO_SignData done [20:54:49]FM_MakeSignedData done [20:54:49]CreateOFDProtocolMessage [20:54:49]wFMCommunicate request_size=4 [20:54:49]MH_SAM_APDU [20:54:49]CAPDU: 80 11 00 00 [20:54:49]Write to MH i2c: E2 08 00 B3 59 80 11 00 00 00 00 00 00 86 [20:54:49]Write i2c OK [20:54:49]MH_I2C_Read... [20:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:49]Read from MH i2c: E2 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 17 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: E2 17 00 B3 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D3 [20:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:54:49]wFMCommunicate OK [20:54:49]CreateOFDProtocolMessage done [20:54:49]OFDSenderStorePacket 74013 [20:54:49]StoreOFDPacket docnum=74013 [20:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 0F 06 1B 01 80 0D 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 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 53 01 00 00 F4 03 04 00 1B 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 21 01 00 35 04 06 00 83 5F A0 F7 50 6F 35 47 BF 39 73 0C 33 E7 [20:54:49]CheckFolder [20:54:49]dirname=/storage/ofd_packets [20:54:49]CheckFolder done [20:54:49]ProducePacketName [20:54:49]name=ofd_packets/00074013 [20:54:49]NVStorageSaveData ofd_packets/00074013 [20:54:49]File name is /storage/ofd_packets/00074013 [20:54:49]Write 321 bytes [20:54:49]NVStorageSaveData done [20:54:49]OFDSenderStorePacket done [20:54:49]KKMCreateOFDPacket done [20:54:49]NVStorageSaveData kkm_last_timestamp [20:54:49]File name is /storage/kkm_last_timestamp [20:54:49]Write 4 bytes [20:54:49]NVStorageSaveData done [20:54:49]ExternCall_PrintAddStr [20:54:49]wPrintStart [20:54:49]Write to MH i2c: 01 00 00 B4 59 0D [20:54:49]Write i2c OK [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: 01 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: 01 07 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: 01 07 00 B4 59 00 00 00 00 00 FF 0F 22 [20:54:49]RasterBufferAndPrint [20:54:49]line Счет N : (3)272853 [20:54:49]line ИНН: 02508201610067 [20:54:49]line Контрольно-Кассовый Чек [20:54:49]line ПРОДАЖА [20:54:49]line Товар: 47802995 [20:54:49]line Сигареты Winston XS Silver [20:54:49]line 1.000 * 140.00 [20:54:49]line = 140.00 [20:54:49]line НДС 12% НСП 1% [20:54:49]line > о реализуемом товаре [20:54:49]line ИТОГО: 140.00 [20:54:49]line НСП 1% : 1.24 [20:54:49]line НДС 12% : 14.87 [20:54:49]line Наличными: 140.00 [20:54:49]line Безнал.: 0.00 [20:54:49]line Место: АЗС № 133 "Партнер Нефть" [20:54:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:54:49]line СНО: Общий режим [20:54:49]line Чек 339 20.10.2024 20:54 [20:54:49]line Смена: 170 ФФД: 1.0 [20:54:49]line ЗНМ: 0300000020 [20:54:49]line РНМ: 0000000000161154 [20:54:49]line Версия ККМ: v1.0 [20:54:49]line ФМ: 0000000000963323 [20:54:49]line ФД: 74013 [20:54:49]line ФПД: 144446745694319 [20:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205451&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74013&fm=144446745694319&tin=02508201610067®Number=0000000000161154&sum=14000 [20:54:49]line 0 [20:54:49]OFD Sender: Processing packet 74013 [packets to send 15, broken 14] [20:54:49]ProducePacketName [20:54:49]name=ofd_packets/00074013 [20:54:49]OFD Sender: To server: pG, [20:54:49]CommunicateWithHost lk.salyk.kg:30040 [20:54:49]ConnectInit lk.salyk.kg [20:54:49]written 0, free lines is 4095 [20:54:49]Connected sock=10 [20:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 0F 06 1B 01 80 0D 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 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 53 01 00 00 F4 03 04 00 1B 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 21 01 00 35 04 06 00 83 5F A0 F7 50 6F 35 47 BF 39 73 0C 33 E7 [20:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 82 9D 47 00 83 95 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 39 36 33 33 32 33 10 04 04 00 1D 21 01 00 F4 03 04 00 FF 16 15 67 B6 04 01 00 00 FD F9 DD 13 E9 BE FC D0 [20:54:50]CommunicateWithHost err = 0 [20:54:50]CheckOFDResponse [20:54:50]1017 (14) - 77093643461234 [20:54:50]1041 (16) - 0000000000963323 [20:54:50]1040 (4) - 74013 [20:54:50]1012 (4) - 20.10.2024 14:43 [20:54:50]1206 (1) - 0 [20:54:50]OFD Sender: Remove packet 74013 [20:54:50]ProducePacketName [20:54:50]name=ofd_packets/00074013 [20:54:50]NVStorageDeleteData [20:54:50]Write to MH i2c: 01 00 00 DB 59 34 [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: 01 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: 01 07 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: 01 07 00 DB 59 00 00 00 00 00 E3 0C 2A [20:54:50]RasterBufferAndPrint [20:54:50]line [20:54:50]line [20:54:50]line [20:54:50]line [20:54:50]line [20:54:50]written 0, free lines is 3303 [20:54:50]MH_Cut [20:54:50]Write to MH i2c: D1 01 00 E2 59 01 0D [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: D1 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: D1 01 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: D1 01 00 E2 59 00 0C [20:54:50]Write to MH i2c: 01 00 00 E3 59 3C [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]OFD Sender: No OFD packet to send [20:54:51]*** Cut start [20:54:51]*** Partial cut [20:54:51]*** CUTSNS_PIN = 1 [20:54:51]*** CUTSNS_PIN = 0 [20:54:51]*** Brake cut motor [20:54:51]Read from MH i2c: 01 [20:54:51]MH_I2C_Read... [20:54:51]*** Stop cut motor [20:54:51]*** Cut end [20:54:51]Read from MH i2c: 01 07 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: 01 07 00 E3 59 00 00 00 00 00 FF 0F 51 [20:54:51]process_action close_receipt done [20:54:51]requested_data is exist [20:54:51]produce_requested_data [20:54:51]requested_item fm.sn is exist - process it [20:54:51]wFMCommunicate request_size=4 [20:54:51]MH_SAM_APDU [20:54:51]CAPDU: 80 11 00 00 [20:54:51]Write to MH i2c: E2 08 00 E4 59 80 11 00 00 00 00 00 00 B7 [20:54:51]Write i2c OK [20:54:51]MH_I2C_Read... [20:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:51]Read from MH i2c: E2 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 17 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 17 00 E4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 04 [20:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:54:51]wFMCommunicate OK [20:54:51]requested_item fd.num is exist - process it [20:54:51]SAM_PROTO_GetFieldsCounters [20:54:51]wFMCommunicate request_size=4 [20:54:51]MH_SAM_APDU [20:54:51]CAPDU: 80 13 00 00 [20:54:51]Write to MH i2c: E2 08 00 E5 59 80 13 00 00 00 00 00 00 BA [20:54:51]Write i2c OK [20:54:51]MH_I2C_Read... [20:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:51]Read from MH i2c: E2 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 62 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 62 00 E5 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [20:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:51]wFMCommunicate OK [20:54:51]SAM_PROTO_GetFieldsCounters done [20:54:51]requested_item shift.num is exist - process it [20:54:51]requested_item shift.opened is exist - process it [20:54:51]req_shift_opened [20:54:51]FM_GetShiftState [20:54:51]SAM_PROTO_GetShiftState [20:54:51]wFMCommunicate request_size=4 [20:54:51]MH_SAM_APDU [20:54:51]CAPDU: 80 13 01 00 [20:54:51]Write to MH i2c: E2 08 00 E6 59 80 13 01 00 00 00 00 00 BC [20:54:51]Write i2c OK [20:54:51]MH_I2C_Read... [20:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:51]Read from MH i2c: E2 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 0E 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 0E 00 E6 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [20:54:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:54:51]wFMCommunicate OK [20:54:51]SAM_PROTO_GetShiftState done [20:54:51]FM_GetShiftState done [20:54:51]req_shift_opened done [20:54:51]requested_item shift.open_date is exist - process it [20:54:51]req_shift_open_date [20:54:51]req_shift_open_date done [20:54:51]produce_requested_data done [20:54:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74013,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:54:51]process_action_free close_receipt [20:54:51]json_value_free [20:54:51]json_value_free done [20:54:51]process_json_proto returns [20:54:51]Send response to host [20:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74013,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:54:51]free response buf [20:54:51]execute_script done [20:54:51]execute_script returns [20:54:51]free content buf [20:54:51]Sock 9.Close socket [20:54:51]Sock 9.Thread stoped [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]accept exits with 8 [20:56:35]New connection [20:56:35]New thread 3067575652 created [20:56:35]Thread 3067432292 joined [20:56:35]Waiting for new connection... [20:56:35] Sock 8.Parse request [20:56:35]Sock 8.Check first char [20:56:35]Sock 8.First char is OK [20:56:35]request: POST /json_proto HTTP/1.0 [20:56:35]Method: POST [20:56:35]URL: /json_proto [20:56:35]Method is POST - this is cgi request [20:56:35]url: /json_proto [20:56:35]query_string will be loaded in cgi processing [20:56:35]execute_cgi json_proto POST (null) [20:56:35]execute_cgi path=json_proto method=POST [20:56:35]POST find Content-Length [20:56:35]Host: 172.17.44.196:8080 [20:56:35]Content-Length: 645 [20:56:35]Content-Type: application/json [20:56:35] [20:56:35]POST finish read [20:56:35]Found Content-Length = 645 [20:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272854", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:35]execute_script... [20:56:35]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)272854", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:35]POST & json_proto [20:56:35]process_json_proto [20:56:35]json parsed OK: [20:56:35]protocol is kg_v1.0 [20:56:35]action value=close_receipt [20:56:35]process_action close_receipt [20:56:35]cmd_close_receipt [20:56:35]MH_GetDate [20:56:35]Write to MH i2c: F0 00 00 E7 59 2F [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: F0 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: F0 09 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: F0 09 00 E7 59 00 87 6E 15 67 E7 19 F8 65 06 [20:56:35]GetLastDocTimeStamp 1729457691 [20:56:35]current date 1729457799 [20:56:35]FM_GetShiftState [20:56:35]SAM_PROTO_GetShiftState [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 13 01 00 [20:56:35]Write to MH i2c: E2 08 00 E8 59 80 13 01 00 00 00 00 00 BE [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]OFD Sender: No OFD packet to send [20:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 0E 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 0E 00 E8 59 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 03 [20:56:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:56:35]wFMCommunicate OK [20:56:35]SAM_PROTO_GetShiftState done [20:56:35]FM_GetShiftState done [20:56:35]opened in 1729384303 [20:56:35]opened+sec_in_day 1729470703 [20:56:35]quantity*price = 6500 [20:56:35]sum+1 = 6501 [20:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 340 20.10.2024 20:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74014 ФПД: 4294658582226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74014&fm=4294658582226&tin=02508201610067®Number=0000000000161154&sum=6500 0 [20:56:36]StoreToDocumentArchive [20:56:36]shift 170 fd 74014 [20:56:36]save to /storage/0170/doc_00074014 [20:56:36]save last doc name /storage/0170/doc_00074014 to /storage/kkm_last_doc_name [20:56:36]save OK [20:56:36]Clear old archive folders... [20:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:56:36]tlvbuf is 003D60C0 [20:56:36]SAM_PROTO_ClearQueue [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 09 00 00 [20:56:36]Write to MH i2c: E2 08 00 F5 59 80 09 00 00 00 00 00 00 C0 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 F5 59 00 90 00 C2 [20:56:36]RAPDU: 90 00 [20:56:36]wFMCommunicate OK [20:56:36]SAM_PROTO_ClearQueue done [20:56:36]KKMCreateOFDPacket [20:56:36]OFDProtocolAddRootSTLVToBuf [20:56:36]FM_MakeSignedData [20:56:36]FM_MakeSignedData [20:56:36]SAM_PROTO_SignData [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 0D 01 02 [20:56:36]Write to MH i2c: E2 08 00 F6 59 80 0D 01 02 00 00 00 00 C8 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 F6 59 00 90 00 C3 [20:56:36]RAPDU: 90 00 [20:56:36]wFMCommunicate OK [20:56:36]wFMCommunicate request_size=255 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 87 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [20:56:36]Write to MH i2c: E2 02 01 F7 59 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 87 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7D [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 03 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 03 00 F7 59 00 90 00 C4 [20:56:37]RAPDU: 90 00 [20:56:37]wFMCommunicate OK [20:56:37]wFMCommunicate request_size=31 [20:56:37]MH_SAM_APDU [20:56:37]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 1E 21 01 00 35 04 06 00 03 E7 ED 99 66 D2 [20:56:37]Write to MH i2c: E2 22 00 F8 59 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 1E 21 01 00 35 04 06 00 03 E7 ED 99 66 D2 00 00 D8 [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 03 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 03 00 F8 59 00 90 00 C5 [20:56:37]RAPDU: 90 00 [20:56:37]wFMCommunicate OK [20:56:37]wFMCommunicate request_size=4 [20:56:37]MH_SAM_APDU [20:56:37]CAPDU: 80 0D 03 02 [20:56:37]Write to MH i2c: E2 08 00 F9 59 80 0D 03 02 00 00 00 00 CD [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 0B 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 0B 00 F9 59 00 95 E0 07 E5 22 62 1F 33 90 00 05 [20:56:37]RAPDU: 95 E0 07 E5 22 62 1F 33 90 00 [20:56:37]wFMCommunicate OK [20:56:37]SAM_PROTO_SignData done [20:56:37]FM_MakeSignedData done [20:56:37]CreateOFDProtocolMessage [20:56:37]wFMCommunicate request_size=4 [20:56:37]MH_SAM_APDU [20:56:37]CAPDU: 80 11 00 00 [20:56:37]Write to MH i2c: E2 08 00 FA 59 80 11 00 00 00 00 00 00 CD [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 17 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 17 00 FA 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [20:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:56:37]wFMCommunicate OK [20:56:37]CreateOFDProtocolMessage done [20:56:37]OFDSenderStorePacket 74014 [20:56:37]StoreOFDPacket docnum=74014 [20:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 4A 87 1C 01 BC 94 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 87 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 21 01 00 35 04 06 00 03 E7 ED 99 66 D2 95 E0 07 E5 22 62 1F 33 [20:56:37]CheckFolder [20:56:37]dirname=/storage/ofd_packets [20:56:37]CheckFolder done [20:56:37]ProducePacketName [20:56:37]name=ofd_packets/00074014 [20:56:37]NVStorageSaveData ofd_packets/00074014 [20:56:37]File name is /storage/ofd_packets/00074014 [20:56:37]Write 322 bytes [20:56:37]NVStorageSaveData done [20:56:37]OFDSenderStorePacket done [20:56:37]KKMCreateOFDPacket done [20:56:37]NVStorageSaveData kkm_last_timestamp [20:56:37]File name is /storage/kkm_last_timestamp [20:56:37]Write 4 bytes [20:56:37]NVStorageSaveData done [20:56:37]ExternCall_PrintAddStr [20:56:37]wPrintStart [20:56:37]Write to MH i2c: 01 00 00 FB 59 54 [20:56:37]OFD Sender: Processing packet 74014 [packets to send 15, broken 14] [20:56:37]ProducePacketName [20:56:37]name=ofd_packets/00074014 [20:56:37]OFD Sender: To server: pG, [20:56:37]CommunicateWithHost lk.salyk.kg:30040 [20:56:37]ConnectInit lk.salyk.kg [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 FB 59 00 00 00 00 00 FF 0F 69 [20:56:37]RasterBufferAndPrint [20:56:37]line Счет N : (3)272854 [20:56:37]line ИНН: 02508201610067 [20:56:37]line Контрольно-Кассовый Чек [20:56:37]line ПРОДАЖА [20:56:37]line Товар: 47011656 [20:56:37]line Водка Пшеничная 0,1л [20:56:37]line 1.000 * 65.00 [20:56:37]line = 65.00 [20:56:37]line НДС 12% НСП 1% [20:56:37]line > о реализуемом товаре [20:56:37]line ИТОГО: 65.00 [20:56:37]line НСП 1% : 0.57 [20:56:37]line НДС 12% : 6.90 [20:56:37]line Наличными: 65.00 [20:56:37]line Безнал.: 0.00 [20:56:37]line Место: АЗС № 133 "Партнер Нефть" [20:56:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:56:37]line СНО: Общий режим [20:56:37]line Чек 340 20.10.2024 20:56 [20:56:37]line Смена: 170 ФФД: 1.0 [20:56:37]line ЗНМ: 0300000020 [20:56:37]line РНМ: 0000000000161154 [20:56:37]line Версия ККМ: v1.0 [20:56:37]line ФМ: 0000000000963323 [20:56:37]line ФД: 74014 [20:56:37]line ФПД: 4294658582226 [20:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74014&fm=4294658582226&tin=02508201610067®Number=0000000000161154&sum=6500 [20:56:37]line 0 [20:56:37]written 0, free lines is 4095 [20:56:37]Connected sock=10 [20:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 4A 87 1C 01 BC 94 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 87 6E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 21 01 00 35 04 06 00 03 E7 ED 99 66 D2 95 E0 07 E5 22 62 1F 33 [20:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F7 C3 47 00 48 CB 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 39 36 33 33 32 33 10 04 04 00 1E 21 01 00 F4 03 04 00 6A 17 15 67 B6 04 01 00 00 BE 7F CB 12 3E 57 35 64 [20:56:37]CommunicateWithHost err = 0 [20:56:37]CheckOFDResponse [20:56:37]1017 (14) - 77093643461234 [20:56:37]1041 (16) - 0000000000963323 [20:56:37]1040 (4) - 74014 [20:56:37]1012 (4) - 20.10.2024 14:44 [20:56:37]1206 (1) - 0 [20:56:37]OFD Sender: Remove packet 74014 [20:56:37]ProducePacketName [20:56:37]name=ofd_packets/00074014 [20:56:37]NVStorageDeleteData [20:56:37]Write to MH i2c: 01 00 00 22 5A 7C [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 22 5A 00 00 00 00 00 EB 0C 7A [20:56:37]RasterBufferAndPrint [20:56:37]line [20:56:37]line [20:56:37]line [20:56:37]line [20:56:37]line [20:56:37]written 0, free lines is 3313 [20:56:37]MH_Cut [20:56:37]Write to MH i2c: D1 01 00 29 5A 01 55 [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: D1 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: D1 01 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: D1 01 00 29 5A 00 54 [20:56:37]Write to MH i2c: 01 00 00 2A 5A 84 [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:38]OFD Sender: No OFD packet to send [20:56:38]*** Cut start [20:56:38]*** Partial cut [20:56:38]*** CUTSNS_PIN = 1 [20:56:38]*** CUTSNS_PIN = 0 [20:56:38]*** Brake cut motor [20:56:39]Read from MH i2c: 01 [20:56:39]MH_I2C_Read... [20:56:39]*** Stop cut motor [20:56:39]*** Cut end [20:56:39]Read from MH i2c: 01 07 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: 01 07 00 2A 5A 00 00 00 00 00 FF 0F 99 [20:56:39]process_action close_receipt done [20:56:39]requested_data is exist [20:56:39]produce_requested_data [20:56:39]requested_item fm.sn is exist - process it [20:56:39]wFMCommunicate request_size=4 [20:56:39]MH_SAM_APDU [20:56:39]CAPDU: 80 11 00 00 [20:56:39]Write to MH i2c: E2 08 00 2B 5A 80 11 00 00 00 00 00 00 FF [20:56:39]Write i2c OK [20:56:39]MH_I2C_Read... [20:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:39]Read from MH i2c: E2 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 17 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 17 00 2B 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [20:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:56:39]wFMCommunicate OK [20:56:39]requested_item fd.num is exist - process it [20:56:39]SAM_PROTO_GetFieldsCounters [20:56:39]wFMCommunicate request_size=4 [20:56:39]MH_SAM_APDU [20:56:39]CAPDU: 80 13 00 00 [20:56:39]Write to MH i2c: E2 08 00 2C 5A 80 13 00 00 00 00 00 00 02 [20:56:39]Write i2c OK [20:56:39]MH_I2C_Read... [20:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:39]Read from MH i2c: E2 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 62 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 62 00 2C 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [20:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:39]wFMCommunicate OK [20:56:39]SAM_PROTO_GetFieldsCounters done [20:56:39]requested_item shift.num is exist - process it [20:56:39]requested_item shift.opened is exist - process it [20:56:39]req_shift_opened [20:56:39]FM_GetShiftState [20:56:39]SAM_PROTO_GetShiftState [20:56:39]wFMCommunicate request_size=4 [20:56:39]MH_SAM_APDU [20:56:39]CAPDU: 80 13 01 00 [20:56:39]Write to MH i2c: E2 08 00 2D 5A 80 13 01 00 00 00 00 00 04 [20:56:39]Write i2c OK [20:56:39]MH_I2C_Read... [20:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:39]Read from MH i2c: E2 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 0E 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 0E 00 2D 5A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [20:56:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [20:56:39]wFMCommunicate OK [20:56:39]SAM_PROTO_GetShiftState done [20:56:39]FM_GetShiftState done [20:56:39]req_shift_opened done [20:56:39]requested_item shift.open_date is exist - process it [20:56:39]req_shift_open_date [20:56:39]req_shift_open_date done [20:56:39]produce_requested_data done [20:56:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74014,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [20:56:39]process_action_free close_receipt [20:56:39]json_value_free [20:56:39]json_value_free done [20:56:39]process_json_proto returns [20:56:39]Send response to host [20:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74014,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [20:56:39]free response buf [20:56:39]execute_script done [20:56:39]execute_script returns [20:56:39]free content buf [20:56:39]Sock 8.Close socket [20:56:39]Sock 8.Thread stoped [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:17]accept exits with 9 [21:06:17]New connection [21:06:17]New thread 3067432292 created [21:06:17]Thread 3067575652 joined [21:06:17]Waiting for new connection... [21:06:17] Sock 9.Parse request [21:06:17]Sock 9.Check first char [21:06:17]Sock 9.First char is OK [21:06:17]request: POST /json_proto HTTP/1.0 [21:06:17]Method: POST [21:06:17]URL: /json_proto [21:06:17]Method is POST - this is cgi request [21:06:17]url: /json_proto [21:06:17]query_string will be loaded in cgi processing [21:06:17]execute_cgi json_proto POST (null) [21:06:17]execute_cgi path=json_proto method=POST [21:06:17]POST find Content-Length [21:06:17]Host: 172.17.44.196:8080 [21:06:17]Content-Length: 927 [21:06:17]Content-Type: application/json [21:06:17] [21:06:17]POST finish read [21:06:17]Found Content-Length = 927 [21:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272855", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:17]execute_script... [21:06: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)272855", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:17]POST & json_proto [21:06:17]process_json_proto [21:06:17]json parsed OK: [21:06:17]protocol is kg_v1.0 [21:06:17]action value=close_receipt [21:06:17]process_action close_receipt [21:06:17]cmd_close_receipt [21:06:17]MH_GetDate [21:06:17]Write to MH i2c: F0 00 00 2E 5A 77 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: F0 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: F0 09 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: F0 09 00 2E 5A 00 CD 70 15 67 E7 19 F8 65 96 [21:06:17]GetLastDocTimeStamp 1729457799 [21:06:17]current date 1729458381 [21:06:17]FM_GetShiftState [21:06:17]SAM_PROTO_GetShiftState [21:06:17]wFMCommunicate request_size=4 [21:06:17]MH_SAM_APDU [21:06:17]CAPDU: 80 13 01 00 [21:06:17]Write to MH i2c: E2 08 00 2F 5A 80 13 01 00 00 00 00 00 06 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 0E 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 0E 00 2F 5A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4B [21:06:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:06:18]wFMCommunicate OK [21:06:18]SAM_PROTO_GetShiftState done [21:06:18]FM_GetShiftState done [21:06:18]opened in 1729384303 [21:06:18]opened+sec_in_day 1729470703 [21:06:18]quantity*price = 12500 [21:06:18]sum+1 = 12501 [21:06:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006995702 Водка Зеленая Марка 0,1л 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 341 20.10.2024 21:06 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74015 ФПД: 73855572115484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210621&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74015&fm=73855572115484&tin=02508201610067®Number=0000000000161154&sum=25500 0 [21:06:19]StoreToDocumentArchive [21:06:19]shift 170 fd 74015 [21:06:19]save to /storage/0170/doc_00074015 [21:06:19]save last doc name /storage/0170/doc_00074015 to /storage/kkm_last_doc_name [21:06:19]save OK [21:06:19]Clear old archive folders... [21:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=385 [21:06:19]tlvbuf is 003420B0 [21:06:19]SAM_PROTO_ClearQueue [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 09 00 00 [21:06:19]Write to MH i2c: E2 08 00 3C 5A 80 09 00 00 00 00 00 00 08 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 3C 5A 00 90 00 0A [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]SAM_PROTO_ClearQueue done [21:06:19]KKMCreateOFDPacket [21:06:19]OFDProtocolAddRootSTLVToBuf [21:06:19]FM_MakeSignedData [21:06:19]FM_MakeSignedData [21:06:19]SAM_PROTO_SignData [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 01 02 [21:06:19]Write to MH i2c: E2 08 00 3D 5A 80 0D 01 02 00 00 00 00 10 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 3D 5A 00 90 00 0B [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]wFMCommunicate request_size=255 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 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 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [21:06:19]Write to MH i2c: E2 02 01 3E 5A 80 0D 02 02 FA 00 03 00 81 01 1E 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 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1F [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 3E 5A 00 90 00 0C [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]wFMCommunicate request_size=144 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 02 02 8B 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 01 00 00 F4 03 04 00 CD 70 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 21 01 00 35 04 06 00 43 2B D7 24 00 1C [21:06:19]Write to MH i2c: E2 93 00 3F 5A 80 0D 02 02 8B 00 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 01 00 00 F4 03 04 00 CD 70 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 21 01 00 35 04 06 00 43 2B D7 24 00 1C 00 00 46 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 3F 5A 00 90 00 0D [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 03 02 [21:06:19]Write to MH i2c: E2 08 00 40 5A 80 0D 03 02 00 00 00 00 15 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 0B 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 0B 00 40 5A 00 14 FA 80 B6 62 0A 57 A3 90 00 C0 [21:06:19]RAPDU: 14 FA 80 B6 62 0A 57 A3 90 00 [21:06:19]wFMCommunicate OK [21:06:19]SAM_PROTO_SignData done [21:06:19]FM_MakeSignedData done [21:06:19]CreateOFDProtocolMessage [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 11 00 00 [21:06:19]Write to MH i2c: E2 08 00 41 5A 80 11 00 00 00 00 00 00 15 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 17 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 17 00 41 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [21:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:06:19]wFMCommunicate OK [21:06:19]CreateOFDProtocolMessage done [21:06:19]OFDSenderStorePacket 74015 [21:06:19]StoreOFDPacket docnum=74015 [21:06:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 95 01 00 00 20 9F 8D 01 74 C8 5A 03 01 00 03 00 81 01 1E 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 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 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 93 0A 00 00 00 00 07 04 06 00 9C 63 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 01 00 00 F4 03 04 00 CD 70 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 21 01 00 35 04 06 00 43 2B D7 24 00 1C 14 FA 80 B6 62 0A 57 A3 [21:06:19]CheckFolder [21:06:19]dirname=/storage/ofd_packets [21:06:19]CheckFolder done [21:06:19]ProducePacketName [21:06:19]name=ofd_packets/00074015 [21:06:19]NVStorageSaveData ofd_packets/00074015 [21:06:19]File name is /storage/ofd_packets/00074015 [21:06:19]Write 435 bytes [21:06:19]NVStorageSaveData done [21:06:19]OFDSenderStorePacket done [21:06:19]KKMCreateOFDPacket done [21:06:19]NVStorageSaveData kkm_last_timestamp [21:06:19]File name is /storage/kkm_last_timestamp [21:06:19]Write 4 bytes [21:06:19]NVStorageSaveData done [21:06:19]ExternCall_PrintAddStr [21:06:19]wPrintStart [21:06:19]Write to MH i2c: 01 00 00 42 5A 9C [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 42 5A 00 00 00 00 00 FF 0F B1 [21:06:19]RasterBufferAndPrint [21:06:19]line Счет N : (3)272855 [21:06:20]line ИНН: 02508201610067 [21:06:20]line Контрольно-Кассовый Чек [21:06:20]line ПРОДАЖА [21:06:20]line Товар: 5449000006271 [21:06:20]line Напиток Фанта 1л [21:06:20]line 1.000 * 125.00 [21:06:20]line = 125.00 [21:06:20]line НДС 12% НСП 1% [21:06:20]line > о реализуемом товаре [21:06:20]line Товар: 4620006995702 [21:06:20]line Водка Зеленая Марка 0,1л [21:06:20]line 1.000 * 130.00 [21:06:20]line = 130.00 [21:06:20]line НДС 12% НСП 1% [21:06:20]line > о реализуемом товаре [21:06:20]line ИТОГО: 255.00 [21:06:20]line НСП 1% : 2.26 [21:06:20]line НДС 12% : 27.07 [21:06:20]line Наличными: 255.00 [21:06:20]line Безнал.: 0.00 [21:06:20]line Место: АЗС № 133 "Партнер Нефть" [21:06:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:06:20]line СНО: Общий режим [21:06:20]line Чек 341 20.10.2024 21:06 [21:06:20]line Смена: 170 ФФД: 1.0 [21:06:20]line ЗНМ: 0300000020 [21:06:20]line РНМ: 0000000000161154 [21:06:20]line Версия ККМ: v1.0 [21:06:20]line ФМ: 0000000000963323 [21:06:20]line ФД: 74015 [21:06:20]line ФПД: 73855572115484 [21:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210621&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74015&fm=73855572115484&tin=02508201610067®Number=0000000000161154&sum=25500 [21:06:20]OFD Sender: Processing packet 74015 [packets to send 15, broken 14] [21:06:20]ProducePacketName [21:06:20]name=ofd_packets/00074015 [21:06:20]OFD Sender: To server: pG, [21:06:20]CommunicateWithHost lk.salyk.kg:30040 [21:06:20]ConnectInit lk.salyk.kg [21:06:20]line 0 [21:06:20]written 0, free lines is 4095 [21:06:20]Connected sock=10 [21:06:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 95 01 00 00 20 9F 8D 01 74 C8 5A 03 01 00 03 00 81 01 1E 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 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 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 93 0A 00 00 00 00 07 04 06 00 9C 63 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 01 00 00 F4 03 04 00 CD 70 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 21 01 00 35 04 06 00 43 2B D7 24 00 1C 14 FA 80 B6 62 0A 57 A3 [21:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8D 0E 47 00 00 C6 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 39 36 33 33 32 33 10 04 04 00 1F 21 01 00 F4 03 04 00 B1 19 15 67 B6 04 01 00 00 30 85 7F 6E 29 0C 8A D6 [21:06:20]CommunicateWithHost err = 0 [21:06:20]CheckOFDResponse [21:06:20]1017 (14) - 77093643461234 [21:06:20]1041 (16) - 0000000000963323 [21:06:20]1040 (4) - 74015 [21:06:20]1012 (4) - 20.10.2024 14:54 [21:06:20]1206 (1) - 0 [21:06:20]OFD Sender: Remove packet 74015 [21:06:20]ProducePacketName [21:06:20]name=ofd_packets/00074015 [21:06:20]NVStorageDeleteData [21:06:20]Write to MH i2c: 01 00 00 6F 5A C9 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 6F 5A 00 00 00 00 00 8A 0C 66 [21:06:20]RasterBufferAndPrint [21:06:20]line [21:06:20]line [21:06:20]line [21:06:20]line [21:06:20]line [21:06:20]written 0, free lines is 3218 [21:06:20]MH_Cut [21:06:20]Write to MH i2c: D1 01 00 76 5A 01 A2 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: D1 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: D1 01 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: D1 01 00 76 5A 00 A1 [21:06:20]Write to MH i2c: 01 00 00 77 5A D1 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]OFD Sender: No OFD packet to send [21:06:21]*** Cut start [21:06:21]*** Partial cut [21:06:21]*** CUTSNS_PIN = 1 [21:06:21]*** CUTSNS_PIN = 0 [21:06:21]*** Brake cut motor [21:06:22]Read from MH i2c: 01 [21:06:22]MH_I2C_Read... [21:06:22]*** Stop cut motor [21:06:22]*** Cut end [21:06:22]Read from MH i2c: 01 07 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: 01 07 00 77 5A 00 00 00 00 00 FF 0F E6 [21:06:22]process_action close_receipt done [21:06:22]requested_data is exist [21:06:22]produce_requested_data [21:06:22]requested_item fm.sn is exist - process it [21:06:22]wFMCommunicate request_size=4 [21:06:22]MH_SAM_APDU [21:06:22]CAPDU: 80 11 00 00 [21:06:22]Write to MH i2c: E2 08 00 78 5A 80 11 00 00 00 00 00 00 4C [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:22]Read from MH i2c: E2 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 17 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 17 00 78 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 99 [21:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:06:22]wFMCommunicate OK [21:06:22]requested_item fd.num is exist - process it [21:06:22]SAM_PROTO_GetFieldsCounters [21:06:22]wFMCommunicate request_size=4 [21:06:22]MH_SAM_APDU [21:06:22]CAPDU: 80 13 00 00 [21:06:22]Write to MH i2c: E2 08 00 79 5A 80 13 00 00 00 00 00 00 4F [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:22]Read from MH i2c: E2 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 62 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 62 00 79 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:22]wFMCommunicate OK [21:06:22]SAM_PROTO_GetFieldsCounters done [21:06:22]requested_item shift.num is exist - process it [21:06:22]requested_item shift.opened is exist - process it [21:06:22]req_shift_opened [21:06:22]FM_GetShiftState [21:06:22]SAM_PROTO_GetShiftState [21:06:22]wFMCommunicate request_size=4 [21:06:22]MH_SAM_APDU [21:06:22]CAPDU: 80 13 01 00 [21:06:22]Write to MH i2c: E2 08 00 7A 5A 80 13 01 00 00 00 00 00 51 [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:22]Read from MH i2c: E2 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 0E 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 0E 00 7A 5A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 96 [21:06:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:06:22]wFMCommunicate OK [21:06:22]SAM_PROTO_GetShiftState done [21:06:22]FM_GetShiftState done [21:06:22]req_shift_opened done [21:06:22]requested_item shift.open_date is exist - process it [21:06:22]req_shift_open_date [21:06:22]req_shift_open_date done [21:06:22]produce_requested_data done [21:06:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74015,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:06:22]process_action_free close_receipt [21:06:22]json_value_free [21:06:22]json_value_free done [21:06:22]process_json_proto returns [21:06:22]Send response to host [21:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74015,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:06:22]free response buf [21:06:22]execute_script done [21:06:22]execute_script returns [21:06:22]free content buf [21:06:22]Sock 9.Close socket [21:06:22]Sock 9.Thread stoped [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:38]accept exits with 8 [21:16:38]New connection [21:16:38]New thread 3067575652 created [21:16:38]Thread 3067432292 joined [21:16:38]Waiting for new connection... [21:16:38] Sock 8.Parse request [21:16:38]Sock 8.Check first char [21:16:38]Sock 8.First char is OK [21:16:38]request: POST /json_proto HTTP/1.0 [21:16:38]Method: POST [21:16:38]URL: /json_proto [21:16:38]Method is POST - this is cgi request [21:16:38]url: /json_proto [21:16:38]query_string will be loaded in cgi processing [21:16:38]execute_cgi json_proto POST (null) [21:16:38]execute_cgi path=json_proto method=POST [21:16:38]POST find Content-Length [21:16:38]Host: 172.17.44.196:8080 [21:16:38]Content-Length: 1169 [21:16:38]Content-Type: application/json [21:16:38] [21:16:38]POST finish read [21:16:38]Found Content-Length = 1169 [21:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272856", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:38]execute_script... [21:16: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)272856", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:38]POST & json_proto [21:16:38]process_json_proto [21:16:38]json parsed OK: [21:16:38]protocol is kg_v1.0 [21:16:38]action value=close_receipt [21:16:38]process_action close_receipt [21:16:38]cmd_close_receipt [21:16:38]MH_GetDate [21:16:38]Write to MH i2c: F0 00 00 7B 5A C4 [21:16:38]Write i2c OK [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: F0 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: F0 09 00 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: F0 09 00 7B 5A 00 39 73 15 67 E7 19 F8 65 52 [21:16:38]GetLastDocTimeStamp 1729458381 [21:16:38]current date 1729459001 [21:16:38]FM_GetShiftState [21:16:38]SAM_PROTO_GetShiftState [21:16:38]wFMCommunicate request_size=4 [21:16:38]MH_SAM_APDU [21:16:38]CAPDU: 80 13 01 00 [21:16:38]Write to MH i2c: E2 08 00 7C 5A 80 13 01 00 00 00 00 00 53 [21:16:38]Write i2c OK [21:16:38]MH_I2C_Read... [21:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:38]Read from MH i2c: E2 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 0E 00 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 0E 00 7C 5A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 98 [21:16:38]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:16:38]wFMCommunicate OK [21:16:38]SAM_PROTO_GetShiftState done [21:16:38]FM_GetShiftState done [21:16:38]opened in 1729384303 [21:16:38]opened+sec_in_day 1729470703 [21:16:38]quantity*price = 14000 [21:16:38]sum+1 = 14001 [21:16:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 342 20.10.2024 21:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74016 ФПД: 18889086983572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211641&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74016&fm=18889086983572&tin=02508201610067®Number=0000000000161154&sum=32000 0 [21:16:39]StoreToDocumentArchive [21:16:39]shift 170 fd 74016 [21:16:39]save to /storage/0170/doc_00074016 [21:16:39]save last doc name /storage/0170/doc_00074016 to /storage/kkm_last_doc_name [21:16:39]save OK [21:16:39]Clear old archive folders... [21:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=495 [21:16:39]tlvbuf is 003DA7B0 [21:16:39]SAM_PROTO_ClearQueue [21:16:39]wFMCommunicate request_size=4 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 09 00 00 [21:16:39]Write to MH i2c: E2 08 00 89 5A 80 09 00 00 00 00 00 00 55 [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 89 5A 00 90 00 57 [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]SAM_PROTO_ClearQueue done [21:16:39]KKMCreateOFDPacket [21:16:39]OFDProtocolAddRootSTLVToBuf [21:16:39]FM_MakeSignedData [21:16:39]FM_MakeSignedData [21:16:39]SAM_PROTO_SignData [21:16:39]wFMCommunicate request_size=4 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 01 02 [21:16:39]Write to MH i2c: E2 08 00 8A 5A 80 0D 01 02 00 00 00 00 5D [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 8A 5A 00 90 00 58 [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]wFMCommunicate request_size=255 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 02 02 FA 03 00 EF 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 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 [21:16:39]Write to MH i2c: E2 02 01 8B 5A 80 0D 02 02 FA 00 03 00 EF 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 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 00 00 89 [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 8B 5A 00 90 00 59 [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]wFMCommunicate request_size=254 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 02 02 F9 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 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 01 00 00 F4 03 04 00 39 73 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 21 01 00 35 04 06 00 11 2D F5 51 DD 94 [21:16:39]Write to MH i2c: E2 01 01 8C 5A 80 0D 02 02 F9 00 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 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 01 00 00 F4 03 04 00 39 73 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 21 01 00 35 04 06 00 11 2D F5 51 DD 94 00 00 D6 [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 8C 5A 00 90 00 5A [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 0D 03 02 [21:16:40]Write to MH i2c: E2 08 00 8D 5A 80 0D 03 02 00 00 00 00 62 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 0B 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 0B 00 8D 5A 00 0D E5 D4 6C 92 F2 14 64 90 00 91 [21:16:40]RAPDU: 0D E5 D4 6C 92 F2 14 64 90 00 [21:16:40]wFMCommunicate OK [21:16:40]SAM_PROTO_SignData done [21:16:40]FM_MakeSignedData done [21:16:40]CreateOFDProtocolMessage [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 11 00 00 [21:16:40]Write to MH i2c: E2 08 00 8E 5A 80 11 00 00 00 00 00 00 62 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:40]Read from MH i2c: E2 17 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 8E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AF [21:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:16:40]wFMCommunicate OK [21:16:40]CreateOFDProtocolMessage done [21:16:40]OFDSenderStorePacket 74016 [21:16:40]StoreOFDPacket docnum=74016 [21:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 03 02 00 00 FF 43 FB 01 66 75 5A 03 01 00 03 00 EF 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 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 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 01 00 00 F4 03 04 00 39 73 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 21 01 00 35 04 06 00 11 2D F5 51 DD 94 0D E5 D4 6C 92 F2 14 64 [21:16:40]CheckFolder [21:16:40]dirname=/storage/ofd_packets [21:16:40]CheckFolder done [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00074016 [21:16:40]NVStorageSaveData ofd_packets/00074016 [21:16:40]File name is /storage/ofd_packets/00074016 [21:16:40]Write 545 bytes [21:16:40]NVStorageSaveData done [21:16:40]OFDSenderStorePacket done [21:16:40]KKMCreateOFDPacket done [21:16:40]NVStorageSaveData kkm_last_timestamp [21:16:40]File name is /storage/kkm_last_timestamp [21:16:40]Write 4 bytes [21:16:40]NVStorageSaveData done [21:16:40]ExternCall_PrintAddStr [21:16:40]wPrintStart [21:16:40]Write to MH i2c: 01 00 00 8F 5A E9 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 8F 5A 00 00 00 00 00 FF 0F FE [21:16:40]RasterBufferAndPrint [21:16:40]line Счет N : (3)272856 [21:16:40]line ИНН: 02508201610067 [21:16:40]line Контрольно-Кассовый Чек [21:16:40]line ПРОДАЖА [21:16:40]line Товар: 48743570 [21:16:40]line Сигареты Winston XStyle Blue [21:16:40]line 1.000 * 140.00 [21:16:40]line = 140.00 [21:16:40]line НДС 12% НСП 1% [21:16:40]line > о реализуемом товаре [21:16:40]line Товар: 4700000480357 [21:16:40]line Пиво шахтерское 1л ПЭТ [21:16:40]line 1.000 * 170.00 [21:16:40]line = 170.00 [21:16:40]line НДС 12% НСП 1% [21:16:40]line > о реализуемом товаре [21:16:40]line Товар: 46226617 [21:16:40]line Mentos ПВ Нежная Мята 6*100*2г [21:16:40]line 1.000 * 10.00 [21:16:40]line = 10.00 [21:16:40]line НДС 12% НСП 1% [21:16:40]line > о реализуемом товаре [21:16:40]line ИТОГО: 320.00 [21:16:40]line НСП 1% : 2.83 [21:16:40]line НДС 12% : 33.98 [21:16:40]line Наличными: 320.00 [21:16:40]line Безнал.: 0.00 [21:16:40]line Место: АЗС № 133 "Партнер Нефть" [21:16:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:16:40]line СНО: Общий режим [21:16:40]line Чек 342 20.10.2024 21:16 [21:16:40]line Смена: 170 ФФД: 1.0 [21:16:40]line ЗНМ: 0300000020 [21:16:40]line РНМ: 0000000000161154 [21:16:40]line Версия ККМ: v1.0 [21:16:40]line ФМ: 0000000000963323 [21:16:40]line ФД: 74016 [21:16:40]line ФПД: 18889086983572 [21:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211641&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74016&fm=18889086983572&tin=02508201610067®Number=0000000000161154&sum=32000 [21:16:40]line 0 [21:16:40]written 0, free lines is 4095 [21:16:40]OFD Sender: Processing packet 74016 [packets to send 15, broken 14] [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00074016 [21:16:40]OFD Sender: To server: pG, [21:16:40]CommunicateWithHost lk.salyk.kg:30040 [21:16:40]ConnectInit lk.salyk.kg [21:16:40]Connected sock=10 [21:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 03 02 00 00 FF 43 FB 01 66 75 5A 03 01 00 03 00 EF 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 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 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 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 01 00 00 F4 03 04 00 39 73 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 21 01 00 35 04 06 00 11 2D F5 51 DD 94 0D E5 D4 6C 92 F2 14 64 [21:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C4 47 47 00 DD 66 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 39 36 33 33 32 33 10 04 04 00 20 21 01 00 F4 03 04 00 1D 1C 15 67 B6 04 01 00 00 CC 63 A3 B6 FD 34 A5 A1 [21:16:40]CommunicateWithHost err = 0 [21:16:40]CheckOFDResponse [21:16:40]1017 (14) - 77093643461234 [21:16:40]1041 (16) - 0000000000963323 [21:16:40]1040 (4) - 74016 [21:16:40]1012 (4) - 20.10.2024 15:05 [21:16:40]1206 (1) - 0 [21:16:40]OFD Sender: Remove packet 74016 [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00074016 [21:16:40]NVStorageDeleteData [21:16:40]Write to MH i2c: 01 00 00 C3 5A 1D [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 C3 5A 00 00 00 00 00 0A 0C 3A [21:16:40]RasterBufferAndPrint [21:16:40]line [21:16:40]line [21:16:40]line [21:16:40]line [21:16:40]line [21:16:40]written 0, free lines is 3088 [21:16:40]MH_Cut [21:16:40]Write to MH i2c: D1 01 00 CA 5A 01 F6 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: D1 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: D1 01 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: D1 01 00 CA 5A 00 F5 [21:16:40]Write to MH i2c: 01 00 00 CB 5A 25 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:41]OFD Sender: No OFD packet to send [21:16:41]*** Cut start [21:16:41]*** Partial cut [21:16:41]*** CUTSNS_PIN = 1 [21:16:41]*** CUTSNS_PIN = 0 [21:16:42]*** Brake cut motor [21:16:42]Read from MH i2c: 01 [21:16:42]MH_I2C_Read... [21:16:42]*** Stop cut motor [21:16:42]*** Cut end [21:16:42]Read from MH i2c: 01 07 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: 01 07 00 CB 5A 00 00 00 00 00 FF 0F 3A [21:16:42]process_action close_receipt done [21:16:42]requested_data is exist [21:16:42]produce_requested_data [21:16:42]requested_item fm.sn is exist - process it [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 11 00 00 [21:16:42]Write to MH i2c: E2 08 00 CC 5A 80 11 00 00 00 00 00 00 A0 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 17 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 17 00 CC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 ED [21:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:16:42]wFMCommunicate OK [21:16:42]requested_item fd.num is exist - process it [21:16:42]SAM_PROTO_GetFieldsCounters [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 00 00 [21:16:42]Write to MH i2c: E2 08 00 CD 5A 80 13 00 00 00 00 00 00 A3 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 CD 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [21:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetFieldsCounters done [21:16:42]requested_item shift.num is exist - process it [21:16:42]requested_item shift.opened is exist - process it [21:16:42]req_shift_opened [21:16:42]FM_GetShiftState [21:16:42]SAM_PROTO_GetShiftState [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 01 00 [21:16:42]Write to MH i2c: E2 08 00 CE 5A 80 13 01 00 00 00 00 00 A5 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 CE 5A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EA [21:16:42]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetShiftState done [21:16:42]FM_GetShiftState done [21:16:42]req_shift_opened done [21:16:42]requested_item shift.open_date is exist - process it [21:16:42]req_shift_open_date [21:16:42]req_shift_open_date done [21:16:42]produce_requested_data done [21:16:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74016,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:16:42]process_action_free close_receipt [21:16:42]json_value_free [21:16:42]json_value_free done [21:16:42]process_json_proto returns [21:16:42]Send response to host [21:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74016,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:16:42]free response buf [21:16:42]execute_script done [21:16:42]execute_script returns [21:16:42]free content buf [21:16:42]Sock 8.Close socket [21:16:42]Sock 8.Thread stoped [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:15]accept exits with 9 [21:23:15]New connection [21:23:15]New thread 3067432292 created [21:23:15]Thread 3067575652 joined [21:23:15]Waiting for new connection... [21:23:15] Sock 9.Parse request [21:23:15]Sock 9.Check first char [21:23:15]Sock 9.First char is OK [21:23:15]request: POST /json_proto HTTP/1.0 [21:23:15]Method: POST [21:23:15]URL: /json_proto [21:23:15]Method is POST - this is cgi request [21:23:15]url: /json_proto [21:23:15]query_string will be loaded in cgi processing [21:23:15]execute_cgi json_proto POST (null) [21:23:15]execute_cgi path=json_proto method=POST [21:23:15]POST find Content-Length [21:23:15]Host: 172.17.44.196:8080 [21:23:15]Content-Length: 633 [21:23:15]Content-Type: application/json [21:23:15] [21:23:15]POST finish read [21:23:15]Found Content-Length = 633 [21:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272857", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:15]execute_script... [21:23:15]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)272857", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:15]POST & json_proto [21:23:15]process_json_proto [21:23:15]json parsed OK: [21:23:15]protocol is kg_v1.0 [21:23:15]action value=close_receipt [21:23:15]process_action close_receipt [21:23:15]cmd_close_receipt [21:23:15]MH_GetDate [21:23:15]Write to MH i2c: F0 00 00 CF 5A 18 [21:23:15]Write i2c OK [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: F0 [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: F0 09 00 [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: F0 09 00 CF 5A 00 C7 74 15 67 E7 19 F8 65 35 [21:23:15]GetLastDocTimeStamp 1729459001 [21:23:15]current date 1729459399 [21:23:15]FM_GetShiftState [21:23:15]SAM_PROTO_GetShiftState [21:23:15]wFMCommunicate request_size=4 [21:23:15]MH_SAM_APDU [21:23:15]CAPDU: 80 13 01 00 [21:23:15]Write to MH i2c: E2 08 00 D0 5A 80 13 01 00 00 00 00 00 A7 [21:23:15]Write i2c OK [21:23:15]MH_I2C_Read... [21:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:15]Read from MH i2c: E2 [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: E2 0E 00 [21:23:15]MH_I2C_Read... [21:23:15]Read from MH i2c: E2 0E 00 D0 5A 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EC [21:23:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:23:15]wFMCommunicate OK [21:23:15]SAM_PROTO_GetShiftState done [21:23:15]FM_GetShiftState done [21:23:15]opened in 1729384303 [21:23:15]opened+sec_in_day 1729470703 [21:23:15]quantity*price = 14300 [21:23:15]sum+1 = 14301 [21:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 343 20.10.2024 21:23 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74017 ФПД: 175523476482423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212319&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74017&fm=175523476482423&tin=02508201610067®Number=0000000000161154&sum=14300 0 [21:23:16]StoreToDocumentArchive [21:23:16]shift 170 fd 74017 [21:23:16]save to /storage/0170/doc_00074017 [21:23:16]save last doc name /storage/0170/doc_00074017 to /storage/kkm_last_doc_name [21:23:16]save OK [21:23:16]Clear old archive folders... [21:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=285 [21:23:16]tlvbuf is 0039B480 [21:23:16]SAM_PROTO_ClearQueue [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 09 00 00 [21:23:16]Write to MH i2c: E2 08 00 DD 5A 80 09 00 00 00 00 00 00 A9 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 DD 5A 00 90 00 AB [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]SAM_PROTO_ClearQueue done [21:23:16]KKMCreateOFDPacket [21:23:16]OFDProtocolAddRootSTLVToBuf [21:23:16]FM_MakeSignedData [21:23:16]FM_MakeSignedData [21:23:16]SAM_PROTO_SignData [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 01 02 [21:23:16]Write to MH i2c: E2 08 00 DE 5A 80 0D 01 02 00 00 00 00 B1 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 03 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 03 00 DE 5A 00 90 00 AC [21:23:17]RAPDU: 90 00 [21:23:17]wFMCommunicate OK [21:23:17]wFMCommunicate request_size=255 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 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 01 00 00 F4 03 04 00 C7 74 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 [21:23:17]Write to MH i2c: E2 02 01 DF 5A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 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 01 00 00 F4 03 04 00 C7 74 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 00 00 4A [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 03 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 03 00 DF 5A 00 90 00 AD [21:23:17]RAPDU: 90 00 [21:23:17]wFMCommunicate OK [21:23:17]wFMCommunicate request_size=44 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 0D 02 02 27 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 21 01 00 35 04 06 00 9F A3 3E 77 29 77 [21:23:17]Write to MH i2c: E2 2F 00 E0 5A 80 0D 02 02 27 00 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 21 01 00 35 04 06 00 9F A3 3E 77 29 77 00 00 A6 [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 03 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 03 00 E0 5A 00 90 00 AE [21:23:17]RAPDU: 90 00 [21:23:17]wFMCommunicate OK [21:23:17]wFMCommunicate request_size=4 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 0D 03 02 [21:23:17]Write to MH i2c: E2 08 00 E1 5A 80 0D 03 02 00 00 00 00 B6 [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 0B 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 0B 00 E1 5A 00 28 5B E9 0F F3 E7 E7 AB 90 00 9E [21:23:17]RAPDU: 28 5B E9 0F F3 E7 E7 AB 90 00 [21:23:17]wFMCommunicate OK [21:23:17]SAM_PROTO_SignData done [21:23:17]FM_MakeSignedData done [21:23:17]CreateOFDProtocolMessage [21:23:17]wFMCommunicate request_size=4 [21:23:17]MH_SAM_APDU [21:23:17]CAPDU: 80 11 00 00 [21:23:17]Write to MH i2c: E2 08 00 E2 5A 80 11 00 00 00 00 00 00 B6 [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:17]Read from MH i2c: E2 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 17 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: E2 17 00 E2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [21:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:23:17]wFMCommunicate OK [21:23:17]CreateOFDProtocolMessage done [21:23:17]OFDSenderStorePacket 74017 [21:23:17]StoreOFDPacket docnum=74017 [21:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 31 01 00 00 55 B4 29 01 F3 4C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 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 01 00 00 F4 03 04 00 C7 74 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 21 01 00 35 04 06 00 9F A3 3E 77 29 77 28 5B E9 0F F3 E7 E7 AB [21:23:17]CheckFolder [21:23:17]dirname=/storage/ofd_packets [21:23:17]CheckFolder done [21:23:17]ProducePacketName [21:23:17]name=ofd_packets/00074017 [21:23:17]NVStorageSaveData ofd_packets/00074017 [21:23:17]File name is /storage/ofd_packets/00074017 [21:23:17]Write 335 bytes [21:23:17]NVStorageSaveData done [21:23:17]OFDSenderStorePacket done [21:23:17]KKMCreateOFDPacket done [21:23:17]NVStorageSaveData kkm_last_timestamp [21:23:17]File name is /storage/kkm_last_timestamp [21:23:17]Write 4 bytes [21:23:17]NVStorageSaveData done [21:23:17]ExternCall_PrintAddStr [21:23:17]wPrintStart [21:23:17]Write to MH i2c: 01 00 00 E3 5A 3D [21:23:17]OFD Sender: Processing packet 74017 [packets to send 15, broken 14] [21:23:17]ProducePacketName [21:23:17]name=ofd_packets/00074017 [21:23:17]OFD Sender: To server: pG, [21:23:17]CommunicateWithHost lk.salyk.kg:30040 [21:23:17]ConnectInit lk.salyk.kg [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 07 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 07 00 E3 5A 00 00 00 00 00 FF 0F 52 [21:23:17]RasterBufferAndPrint [21:23:17]line Счет N : (3)272857 [21:23:17]line ИНН: 02508201610067 [21:23:17]line Контрольно-Кассовый Чек [21:23:17]line ПРОДАЖА [21:23:17]line Товар: 48746717 [21:23:17]line Сигареты Winston XStyle Caster + Dream M [21:23:17]line 1.000 * 143.00 [21:23:17]line = 143.00 [21:23:17]line НДС 12% НСП 1% [21:23:17]line > о реализуемом товаре [21:23:17]line ИТОГО: 143.00 [21:23:17]line НСП 1% : 1.26 [21:23:17]line НДС 12% : 15.19 [21:23:17]line Наличными: 143.00 [21:23:17]line Безнал.: 0.00 [21:23:17]line Место: АЗС № 133 "Партнер Нефть" [21:23:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:23:17]line СНО: Общий режим [21:23:17]line Чек 343 20.10.2024 21:23 [21:23:17]line Смена: 170 ФФД: 1.0 [21:23:17]line ЗНМ: 0300000020 [21:23:17]line РНМ: 0000000000161154 [21:23:17]line Версия ККМ: v1.0 [21:23:17]line ФМ: 0000000000963323 [21:23:17]line ФД: 74017 [21:23:17]line ФПД: 175523476482423 [21:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212319&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74017&fm=175523476482423&tin=02508201610067®Number=0000000000161154&sum=14300 [21:23:17]line 0 [21:23:17]Connected sock=10 [21:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 31 01 00 00 55 B4 29 01 F3 4C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 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 01 00 00 F4 03 04 00 C7 74 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 21 01 00 35 04 06 00 9F A3 3E 77 29 written 0, free lines is 4095 [21:23:17]77 28 5B E9 0F F3 E7 E7 AB [21:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1B 40 47 00 BA 78 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 39 36 33 33 32 33 10 04 04 00 21 21 01 00 F4 03 04 00 AB 1D 15 67 B6 04 01 00 00 01 74 6F 37 73 CF 5A B6 [21:23:18]CommunicateWithHost err = 0 [21:23:18]CheckOFDResponse [21:23:18]1017 (14) - 77093643461234 [21:23:18]1041 (16) - 0000000000963323 [21:23:18]1040 (4) - 74017 [21:23:18]1012 (4) - 20.10.2024 15:11 [21:23:18]1206 (1) - 0 [21:23:18]OFD Sender: Remove packet 74017 [21:23:18]ProducePacketName [21:23:18]name=ofd_packets/00074017 [21:23:18]NVStorageDeleteData [21:23:18]Write to MH i2c: 01 00 00 0B 5B 66 [21:23:18]Write i2c OK [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: 01 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: 01 07 00 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: 01 07 00 0B 5B 00 00 00 00 00 DF 0C 58 [21:23:18]RasterBufferAndPrint [21:23:18]line [21:23:18]line [21:23:18]line [21:23:18]line [21:23:18]line [21:23:18]written 0, free lines is 3302 [21:23:18]MH_Cut [21:23:18]Write to MH i2c: D1 01 00 12 5B 01 3F [21:23:18]Write i2c OK [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: D1 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: D1 01 00 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: D1 01 00 12 5B 00 3E [21:23:18]Write to MH i2c: 01 00 00 13 5B 6E [21:23:18]Write i2c OK [21:23:18]MH_I2C_Read... [21:23:18]OFD Sender: No OFD packet to send [21:23:19]*** Cut start [21:23:19]*** Partial cut [21:23:19]*** CUTSNS_PIN = 1 [21:23:19]*** CUTSNS_PIN = 0 [21:23:19]*** Brake cut motor [21:23:19]Read from MH i2c: 01 [21:23:19]MH_I2C_Read... [21:23:19]*** Stop cut motor [21:23:19]*** Cut end [21:23:19]Read from MH i2c: 01 07 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 07 00 13 5B 00 00 00 00 00 FF 0F 83 [21:23:19]process_action close_receipt done [21:23:19]requested_data is exist [21:23:19]produce_requested_data [21:23:19]requested_item fm.sn is exist - process it [21:23:19]wFMCommunicate request_size=4 [21:23:19]MH_SAM_APDU [21:23:19]CAPDU: 80 11 00 00 [21:23:19]Write to MH i2c: E2 08 00 14 5B 80 11 00 00 00 00 00 00 E9 [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:19]Read from MH i2c: E2 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: E2 17 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: E2 17 00 14 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 36 [21:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:23:19]wFMCommunicate OK [21:23:19]requested_item fd.num is exist - process it [21:23:19]SAM_PROTO_GetFieldsCounters [21:23:19]wFMCommunicate request_size=4 [21:23:19]MH_SAM_APDU [21:23:19]CAPDU: 80 13 00 00 [21:23:19]Write to MH i2c: E2 08 00 15 5B 80 13 00 00 00 00 00 00 EC [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:19]Read from MH i2c: E2 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: E2 62 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: E2 62 00 15 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [21:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:19]wFMCommunicate OK [21:23:19]SAM_PROTO_GetFieldsCounters done [21:23:19]requested_item shift.num is exist - process it [21:23:19]requested_item shift.opened is exist - process it [21:23:19]req_shift_opened [21:23:19]FM_GetShiftState [21:23:19]SAM_PROTO_GetShiftState [21:23:19]wFMCommunicate request_size=4 [21:23:19]MH_SAM_APDU [21:23:19]CAPDU: 80 13 01 00 [21:23:19]Write to MH i2c: E2 08 00 16 5B 80 13 01 00 00 00 00 00 EE [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 0E 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 0E 00 16 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 33 [21:23:20]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:23:20]wFMCommunicate OK [21:23:20]SAM_PROTO_GetShiftState done [21:23:20]FM_GetShiftState done [21:23:20]req_shift_opened done [21:23:20]requested_item shift.open_date is exist - process it [21:23:20]req_shift_open_date [21:23:20]req_shift_open_date done [21:23:20]produce_requested_data done [21:23:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74017,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:23:20]process_action_free close_receipt [21:23:20]json_value_free [21:23:20]json_value_free done [21:23:20]process_json_proto returns [21:23:20]Send response to host [21:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74017,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:23:20]free response buf [21:23:20]execute_script done [21:23:20]execute_script returns [21:23:20]free content buf [21:23:20]Sock 9.Close socket [21:23:20]Sock 9.Thread stoped [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:26]accept exits with 8 [21:27:26]New connection [21:27:26]New thread 3067575652 created [21:27:26]Thread 3067432292 joined [21:27:26]Waiting for new connection... [21:27:26] Sock 8.Parse request [21:27:26]Sock 8.Check first char [21:27:26]Sock 8.First char is OK [21:27:26]request: POST /json_proto HTTP/1.0 [21:27:26]Method: POST [21:27:26]URL: /json_proto [21:27:26]Method is POST - this is cgi request [21:27:26]url: /json_proto [21:27:26]query_string will be loaded in cgi processing [21:27:26]execute_cgi json_proto POST (null) [21:27:26]execute_cgi path=json_proto method=POST [21:27:26]POST find Content-Length [21:27:26]Host: 172.17.44.196:8080 [21:27:26]Content-Length: 753 [21:27:26]Content-Type: application/json [21:27:26] [21:27:26]POST finish read [21:27:26]Found Content-Length = 753 [21:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272858", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:26]execute_script... [21:27: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)272858", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:26]POST & json_proto [21:27:26]process_json_proto [21:27:26]json parsed OK: [21:27:26]protocol is kg_v1.0 [21:27:26]action value=close_receipt [21:27:26]process_action close_receipt [21:27:26]cmd_close_receipt [21:27:26]MH_GetDate [21:27:26]Write to MH i2c: F0 00 00 17 5B 61 [21:27:26]Write i2c OK [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: F0 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: F0 09 00 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: F0 09 00 17 5B 00 C2 75 15 67 E7 19 F8 65 7A [21:27:26]GetLastDocTimeStamp 1729459399 [21:27:26]current date 1729459650 [21:27:26]FM_GetShiftState [21:27:26]SAM_PROTO_GetShiftState [21:27:26]wFMCommunicate request_size=4 [21:27:26]MH_SAM_APDU [21:27:26]CAPDU: 80 13 01 00 [21:27:26]Write to MH i2c: E2 08 00 18 5B 80 13 01 00 00 00 00 00 F0 [21:27:26]Write i2c OK [21:27:26]MH_I2C_Read... [21:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:26]Read from MH i2c: E2 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: E2 0E 00 [21:27:26]MH_I2C_Read... [21:27:26]Read from MH i2c: E2 0E 00 18 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 35 [21:27:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:27:26]wFMCommunicate OK [21:27:26]SAM_PROTO_GetShiftState done [21:27:26]FM_GetShiftState done [21:27:26]opened in 1729384303 [21:27:26]opened+sec_in_day 1729470703 [21:27:26]quantity*price = 15000 [21:27:26]sum+1 = 15001 [21:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 344 20.10.2024 21:27 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 74018 ФПД: 265078067079951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212730&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74018&fm=265078067079951&tin=02508201610067®Number=0000000000161154&sum=15000 0 [21:27:27]StoreToDocumentArchive [21:27:27]shift 170 fd 74018 [21:27:27]save to /storage/0170/doc_00074018 [21:27:27]save last doc name /storage/0170/doc_00074018 to /storage/kkm_last_doc_name [21:27:27]save OK [21:27:27]Clear old archive folders... [21:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:27:27]tlvbuf is 003DA240 [21:27:27]SAM_PROTO_ClearQueue [21:27:27]wFMCommunicate request_size=4 [21:27:27]MH_SAM_APDU [21:27:27]CAPDU: 80 09 00 00 [21:27:27]Write to MH i2c: E2 08 00 25 5B 80 09 00 00 00 00 00 00 F2 [21:27:27]Write i2c OK [21:27:27]MH_I2C_Read... [21:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:27]Read from MH i2c: E2 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 03 00 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 03 00 25 5B 00 90 00 F4 [21:27:27]RAPDU: 90 00 [21:27:27]wFMCommunicate OK [21:27:27]SAM_PROTO_ClearQueue done [21:27:27]KKMCreateOFDPacket [21:27:27]OFDProtocolAddRootSTLVToBuf [21:27:27]FM_MakeSignedData [21:27:27]FM_MakeSignedData [21:27:27]SAM_PROTO_SignData [21:27:27]wFMCommunicate request_size=4 [21:27:27]MH_SAM_APDU [21:27:27]CAPDU: 80 0D 01 02 [21:27:27]Write to MH i2c: E2 08 00 26 5B 80 0D 01 02 00 00 00 00 FA [21:27:27]Write i2c OK [21:27:27]MH_I2C_Read... [21:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:27]Read from MH i2c: E2 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 03 00 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 03 00 26 5B 00 90 00 F5 [21:27:27]RAPDU: 90 00 [21:27:27]wFMCommunicate OK [21:27:27]wFMCommunicate request_size=255 [21:27:27]MH_SAM_APDU [21:27:27]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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C2 75 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [21:27:27]Write to MH i2c: E2 02 01 27 5B 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C2 75 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 CE [21:27:27]Write i2c OK [21:27:27]MH_I2C_Read... [21:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:28]Read from MH i2c: E2 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 03 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 03 00 27 5B 00 90 00 F6 [21:27:28]RAPDU: 90 00 [21:27:28]wFMCommunicate OK [21:27:28]wFMCommunicate request_size=37 [21:27:28]MH_SAM_APDU [21:27:28]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 21 01 00 35 04 06 00 F1 16 4C 06 AB 0F [21:27:28]Write to MH i2c: E2 28 00 28 5B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 21 01 00 35 04 06 00 F1 16 4C 06 AB 0F 00 00 A5 [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:28]Read from MH i2c: E2 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 03 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 03 00 28 5B 00 90 00 F7 [21:27:28]RAPDU: 90 00 [21:27:28]wFMCommunicate OK [21:27:28]wFMCommunicate request_size=4 [21:27:28]MH_SAM_APDU [21:27:28]CAPDU: 80 0D 03 02 [21:27:28]Write to MH i2c: E2 08 00 29 5B 80 0D 03 02 00 00 00 00 FF [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:28]Read from MH i2c: E2 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 0B 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 0B 00 29 5B 00 05 35 C9 52 79 F4 C4 B2 90 00 38 [21:27:28]RAPDU: 05 35 C9 52 79 F4 C4 B2 90 00 [21:27:28]wFMCommunicate OK [21:27:28]SAM_PROTO_SignData done [21:27:28]FM_MakeSignedData done [21:27:28]CreateOFDProtocolMessage [21:27:28]wFMCommunicate request_size=4 [21:27:28]MH_SAM_APDU [21:27:28]CAPDU: 80 11 00 00 [21:27:28]Write to MH i2c: E2 08 00 2A 5B 80 11 00 00 00 00 00 00 FF [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:28]Read from MH i2c: E2 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 17 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: E2 17 00 2A 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [21:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:27:28]wFMCommunicate OK [21:27:28]CreateOFDProtocolMessage done [21:27:28]OFDSenderStorePacket 74018 [21:27:28]StoreOFDPacket docnum=74018 [21:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 23 2F 22 01 54 D6 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C2 75 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 21 01 00 35 04 06 00 F1 16 4C 06 AB 0F 05 35 C9 52 79 F4 C4 B2 [21:27:28]CheckFolder [21:27:28]dirname=/storage/ofd_packets [21:27:28]CheckFolder done [21:27:28]ProducePacketName [21:27:28]name=ofd_packets/00074018 [21:27:28]NVStorageSaveData ofd_packets/00074018 [21:27:28]File name is /storage/ofd_packets/00074018 [21:27:28]Write 328 bytes [21:27:28]NVStorageSaveData done [21:27:28]OFDSenderStorePacket done [21:27:28]KKMCreateOFDPacket done [21:27:28]NVStorageSaveData kkm_last_timestamp [21:27:28]File name is /storage/kkm_last_timestamp [21:27:28]Write 4 bytes [21:27:28]NVStorageSaveData done [21:27:28]ExternCall_PrintAddStr [21:27:28]wPrintStart [21:27:28]Write to MH i2c: 01 00 00 2B 5B 86 [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 07 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 07 00 2B 5B 00 00 00 00 00 FF 0F 9B [21:27:28]RasterBufferAndPrint [21:27:28]line Счет N : (3)272858 [21:27:28]line ИНН: 02508201610067 [21:27:28]line Контрольно-Кассовый Чек [21:27:28]line ПРОДАЖА [21:27:28]line Товар: 4640030092499 [21:27:28]line Сигареты ESSE SENSE Himalaya [21:27:28]line 1.000 * 150.00 [21:27:28]line = 150.00 [21:27:28]line НДС 12% НСП 1% [21:27:28]line > о реализуемом товаре [21:27:28]line ИТОГО: 150.00 [21:27:28]line НСП 1% : 1.33 [21:27:28]line НДС 12% : 15.93 [21:27:28]line Наличными: 0.00 [21:27:28]line Безнал.: 150.00 [21:27:28]line Место: АЗС № 133 "Партнер Нефть" [21:27:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:27:28]line СНО: Общий режим [21:27:28]line Чек 344 20.10.2024 21:27 [21:27:28]line Смена: 170 ФФД: 1.0 [21:27:28]line ЗНМ: 0300000020 [21:27:28]line РНМ: 0000000000161154 [21:27:28]line Версия ККМ: v1.0 [21:27:28]line Платежная система: Mbank [21:27:28]line ФМ: 0000000000963323 [21:27:28]line ФД: 74018 [21:27:28]line ФПД: 265078067079951 [21:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212730&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74018&fm=265078067079951&tin=02508201610067®Number=0000000000161154&sum=15000 [21:27:28]line 0 [21:27:28]OFD Sender: Processing packet 74018 [packets to send 15, broken 14] [21:27:28]ProducePacketName [21:27:28]name=ofd_packets/00074018 [21:27:28]OFD Sender: To server: pG, [21:27:28]CommunicateWithHost lk.salyk.kg:30040 [21:27:28]ConnectInit lk.salyk.kg [21:27:28]written 0, free lines is 4095 [21:27:28]Connected sock=10 [21:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 23 2F 22 01 54 D6 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C2 75 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 21 01 00 35 04 06 00 F1 16 4C 06 AB 0F 05 35 C9 52 79 F4 C4 B2 [21:27:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BB 7A 47 00 A5 E6 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 39 36 33 33 32 33 10 04 04 00 22 21 01 00 F4 03 04 00 A6 1E 15 67 B6 04 01 00 00 28 45 AE 16 24 B7 F9 ED [21:27:29]CommunicateWithHost err = 0 [21:27:29]CheckOFDResponse [21:27:29]1017 (14) - 77093643461234 [21:27:29]1041 (16) - 0000000000963323 [21:27:29]1040 (4) - 74018 [21:27:29]1012 (4) - 20.10.2024 15:15 [21:27:29]1206 (1) - 0 [21:27:29]OFD Sender: Remove packet 74018 [21:27:29]ProducePacketName [21:27:29]name=ofd_packets/00074018 [21:27:29]NVStorageDeleteData [21:27:29]Write to MH i2c: 01 00 00 54 5B AF [21:27:29]Write i2c OK [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: 01 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: 01 07 00 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: 01 07 00 54 5B 00 00 00 00 00 C5 0C 87 [21:27:29]RasterBufferAndPrint [21:27:29]line [21:27:29]line [21:27:29]line [21:27:29]line [21:27:29]line [21:27:29]written 0, free lines is 3272 [21:27:29]MH_Cut [21:27:29]Write to MH i2c: D1 01 00 5B 5B 01 88 [21:27:29]Write i2c OK [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: D1 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: D1 01 00 [21:27:29]MH_I2C_Read... [21:27:29]Read from MH i2c: D1 01 00 5B 5B 00 87 [21:27:29]Write to MH i2c: 01 00 00 5C 5B B7 [21:27:29]Write i2c OK [21:27:29]MH_I2C_Read... [21:27:29]OFD Sender: No OFD packet to send [21:27:30]*** Cut start [21:27:30]*** Partial cut [21:27:30]*** CUTSNS_PIN = 1 [21:27:30]*** CUTSNS_PIN = 0 [21:27:30]*** Brake cut motor [21:27:30]Read from MH i2c: 01 [21:27:30]MH_I2C_Read... [21:27:30]*** Stop cut motor [21:27:30]*** Cut end [21:27:30]Read from MH i2c: 01 07 00 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: 01 07 00 5C 5B 00 00 00 00 00 FF 0F CC [21:27:30]process_action close_receipt done [21:27:30]requested_data is exist [21:27:30]produce_requested_data [21:27:30]requested_item fm.sn is exist - process it [21:27:30]wFMCommunicate request_size=4 [21:27:30]MH_SAM_APDU [21:27:30]CAPDU: 80 11 00 00 [21:27:30]Write to MH i2c: E2 08 00 5D 5B 80 11 00 00 00 00 00 00 32 [21:27:30]Write i2c OK [21:27:30]MH_I2C_Read... [21:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:30]Read from MH i2c: E2 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: E2 17 00 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: E2 17 00 5D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [21:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:27:30]wFMCommunicate OK [21:27:30]requested_item fd.num is exist - process it [21:27:30]SAM_PROTO_GetFieldsCounters [21:27:30]wFMCommunicate request_size=4 [21:27:30]MH_SAM_APDU [21:27:30]CAPDU: 80 13 00 00 [21:27:30]Write to MH i2c: E2 08 00 5E 5B 80 13 00 00 00 00 00 00 35 [21:27:30]Write i2c OK [21:27:30]MH_I2C_Read... [21:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:30]Read from MH i2c: E2 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: E2 62 00 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: E2 62 00 5E 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [21:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:30]wFMCommunicate OK [21:27:30]SAM_PROTO_GetFieldsCounters done [21:27:30]requested_item shift.num is exist - process it [21:27:30]requested_item shift.opened is exist - process it [21:27:30]req_shift_opened [21:27:30]FM_GetShiftState [21:27:30]SAM_PROTO_GetShiftState [21:27:30]wFMCommunicate request_size=4 [21:27:30]MH_SAM_APDU [21:27:30]CAPDU: 80 13 01 00 [21:27:30]Write to MH i2c: E2 08 00 5F 5B 80 13 01 00 00 00 00 00 37 [21:27:30]Write i2c OK [21:27:30]MH_I2C_Read... [21:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:30]Read from MH i2c: E2 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: E2 0E 00 [21:27:30]MH_I2C_Read... [21:27:30]Read from MH i2c: E2 0E 00 5F 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7C [21:27:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:27:30]wFMCommunicate OK [21:27:30]SAM_PROTO_GetShiftState done [21:27:30]FM_GetShiftState done [21:27:30]req_shift_opened done [21:27:30]requested_item shift.open_date is exist - process it [21:27:30]req_shift_open_date [21:27:30]req_shift_open_date done [21:27:30]produce_requested_data done [21:27:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74018,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:27:30]process_action_free close_receipt [21:27:30]json_value_free [21:27:30]json_value_free done [21:27:30]process_json_proto returns [21:27:30]Send response to host [21:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74018,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:27:30]free response buf [21:27:30]execute_script done [21:27:30]execute_script returns [21:27:30]free content buf [21:27:30]Sock 8.Close socket [21:27:30]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:14]accept exits with 9 [21:45:14]New connection [21:45:14]New thread 3067432292 created [21:45:14]Thread 3067575652 joined [21:45:14]Waiting for new connection... [21:45:14] Sock 9.Parse request [21:45:14]Sock 9.Check first char [21:45:14]Sock 9.First char is OK [21:45:14]request: POST /json_proto HTTP/1.0 [21:45:14]Method: POST [21:45:14]URL: /json_proto [21:45:14]Method is POST - this is cgi request [21:45:14]url: /json_proto [21:45:14]query_string will be loaded in cgi processing [21:45:14]execute_cgi json_proto POST (null) [21:45:14]execute_cgi path=json_proto method=POST [21:45:14]POST find Content-Length [21:45:14]Host: 172.17.44.196:8080 [21:45:14]Content-Length: 683 [21:45:14]Content-Type: application/json [21:45:14] [21:45:14]POST finish read [21:45:14]Found Content-Length = 683 [21:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272859", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:14]execute_script... [21:45: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)272859", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:14]POST & json_proto [21:45:14]process_json_proto [21:45:14]json parsed OK: [21:45:14]protocol is kg_v1.0 [21:45:14]action value=close_receipt [21:45:14]process_action close_receipt [21:45:14]cmd_close_receipt [21:45:14]MH_GetDate [21:45:14]Write to MH i2c: F0 00 00 60 5B AA [21:45:14]Write i2c OK [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: F0 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: F0 09 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: F0 09 00 60 5B 00 EE 79 15 67 E7 19 F8 65 F3 [21:45:14]GetLastDocTimeStamp 1729459650 [21:45:14]current date 1729460718 [21:45:14]FM_GetShiftState [21:45:14]SAM_PROTO_GetShiftState [21:45:14]wFMCommunicate request_size=4 [21:45:14]MH_SAM_APDU [21:45:14]CAPDU: 80 13 01 00 [21:45:14]Write to MH i2c: E2 08 00 61 5B 80 13 01 00 00 00 00 00 39 [21:45:14]Write i2c OK [21:45:14]MH_I2C_Read... [21:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:14]Read from MH i2c: E2 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 0E 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 0E 00 61 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 7E [21:45:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:45:14]wFMCommunicate OK [21:45:14]SAM_PROTO_GetShiftState done [21:45:14]FM_GetShiftState done [21:45:14]opened in 1729384303 [21:45:14]opened+sec_in_day 1729470703 [21:45:14]quantity*price = 10000 [21:45:14]sum+1 = 10001 [21:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 345 20.10.2024 21:45 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74019 ФПД: 73835224625461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214518&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74019&fm=73835224625461&tin=02508201610067®Number=0000000000161154&sum=10000 0 [21:45:15]StoreToDocumentArchive [21:45:15]shift 170 fd 74019 [21:45:15]save to /storage/0170/doc_00074019 [21:45:15]save last doc name /storage/0170/doc_00074019 to /storage/kkm_last_doc_name [21:45:15]save OK [21:45:15]Clear old archive folders... [21:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=291 [21:45:15]tlvbuf is 0047FFC0 [21:45:15]SAM_PROTO_ClearQueue [21:45:15]wFMCommunicate request_size=4 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 09 00 00 [21:45:15]Write to MH i2c: E2 08 00 6E 5B 80 09 00 00 00 00 00 00 3B [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:15]Read from MH i2c: E2 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 6E 5B 00 90 00 3D [21:45:15]RAPDU: 90 00 [21:45:15]wFMCommunicate OK [21:45:15]SAM_PROTO_ClearQueue done [21:45:15]KKMCreateOFDPacket [21:45:15]OFDProtocolAddRootSTLVToBuf [21:45:15]FM_MakeSignedData [21:45:15]FM_MakeSignedData [21:45:15]SAM_PROTO_SignData [21:45:15]wFMCommunicate request_size=4 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 0D 01 02 [21:45:15]Write to MH i2c: E2 08 00 6F 5B 80 0D 01 02 00 00 00 00 43 [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:15]Read from MH i2c: E2 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 6F 5B 00 90 00 3E [21:45:15]RAPDU: 90 00 [21:45:15]wFMCommunicate OK [21:45:15]wFMCommunicate request_size=255 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 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 01 00 00 F4 03 04 00 EE 79 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [21:45:15]Write to MH i2c: E2 02 01 70 5B 80 0D 02 02 FA 00 03 00 23 01 1E 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 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 01 00 00 F4 03 04 00 EE 79 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 4E [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 70 5B 00 90 00 3F [21:45:16]RAPDU: 90 00 [21:45:16]wFMCommunicate OK [21:45:16]wFMCommunicate request_size=50 [21:45:16]MH_SAM_APDU [21:45:16]CAPDU: 80 0D 02 02 2D 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 21 01 00 35 04 06 00 43 27 1A 55 F1 35 [21:45:16]Write to MH i2c: E2 35 00 71 5B 80 0D 02 02 2D 00 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 21 01 00 35 04 06 00 43 27 1A 55 F1 35 00 00 DC [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 71 5B 00 90 00 40 [21:45:16]RAPDU: 90 00 [21:45:16]wFMCommunicate OK [21:45:16]wFMCommunicate request_size=4 [21:45:16]MH_SAM_APDU [21:45:16]CAPDU: 80 0D 03 02 [21:45:16]Write to MH i2c: E2 08 00 72 5B 80 0D 03 02 00 00 00 00 48 [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 0B 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 0B 00 72 5B 00 67 C3 EF 6D 0E 77 6F D3 90 00 96 [21:45:16]RAPDU: 67 C3 EF 6D 0E 77 6F D3 90 00 [21:45:16]wFMCommunicate OK [21:45:16]SAM_PROTO_SignData done [21:45:16]FM_MakeSignedData done [21:45:16]CreateOFDProtocolMessage [21:45:16]wFMCommunicate request_size=4 [21:45:16]MH_SAM_APDU [21:45:16]CAPDU: 80 11 00 00 [21:45:16]Write to MH i2c: E2 08 00 73 5B 80 11 00 00 00 00 00 00 48 [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 17 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 17 00 73 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [21:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:45:16]wFMCommunicate OK [21:45:16]CreateOFDProtocolMessage done [21:45:16]OFDSenderStorePacket 74019 [21:45:16]StoreOFDPacket docnum=74019 [21:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 37 01 00 00 5D F1 2F 01 0D D7 5A 03 01 00 03 00 23 01 1E 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 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 01 00 00 F4 03 04 00 EE 79 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 21 01 00 35 04 06 00 43 27 1A 55 F1 35 67 C3 EF 6D 0E 77 6F D3 [21:45:16]CheckFolder [21:45:16]dirname=/storage/ofd_packets [21:45:16]CheckFolder done [21:45:16]ProducePacketName [21:45:16]name=ofd_packets/00074019 [21:45:16]NVStorageSaveData ofd_packets/00074019 [21:45:16]File name is /storage/ofd_packets/00074019 [21:45:16]Write 341 bytes [21:45:16]NVStorageSaveData done [21:45:16]OFDSenderStorePacket done [21:45:16]KKMCreateOFDPacket done [21:45:16]NVStorageSaveData kkm_last_timestamp [21:45:16]File name is /storage/kkm_last_timestamp [21:45:16]Write 4 bytes [21:45:16]NVStorageSaveData done [21:45:16]ExternCall_PrintAddStr [21:45:16]wPrintStart [21:45:16]Write to MH i2c: 01 00 00 74 5B CF [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: 01 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: 01 07 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: 01 07 00 74 5B 00 00 00 00 00 FF 0F E4 [21:45:16]RasterBufferAndPrint [21:45:16]line Счет N : (3)272859 [21:45:16]line ИНН: 02508201610067 [21:45:16]line Контрольно-Кассовый Чек [21:45:16]line ПРОДАЖА [21:45:16]line Товар: 4870002328398 [21:45:16]line Вода ASU пит н.газ мята ПЭТ 1л [21:45:16]line 1.000 * 100.00 [21:45:16]line = 100.00 [21:45:16]line НДС 12% НСП 1% [21:45:16]line > о реализуемом товаре [21:45:16]line ИТОГО: 100.00 [21:45:16]line НСП 1% : 0.88 [21:45:16]line НДС 12% : 10.62 [21:45:16]line Наличными: 100.00 [21:45:16]line Безнал.: 0.00 [21:45:16]line Место: АЗС № 133 "Партнер Нефть" [21:45:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:45:16]line СНО: Общий режим [21:45:16]line Чек 345 20.10.2024 21:45 [21:45:16]line Смена: 170 ФФД: 1.0 [21:45:16]line ЗНМ: 0300000020 [21:45:16]line РНМ: 0000000000161154 [21:45:16]line Версия ККМ: v1.0 [21:45:16]line ФМ: 0000000000963323 [21:45:16]line ФД: 74019 [21:45:16]line ФПД: 73835224625461 [21:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214518&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74019&fm=73835224625461&tin=02508201610067®Number=0000000000161154&sum=10000 [21:45:16]line 0 [21:45:16]OFD Sender: Processing packet 74019 [packets to send 15, broken 14] [21:45:16]ProducePacketName [21:45:16]name=ofd_packets/00074019 [21:45:16]OFD Sender: To server: pG, [21:45:16]CommunicateWithHost lk.salyk.kg:30040 [21:45:16]ConnectInit lk.salyk.kg [21:45:16]written 0, free lines is 4095 [21:45:16]Connected sock=10 [21:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 37 01 00 00 5D F1 2F 01 0D D7 5A 03 01 00 03 00 23 01 1E 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 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 01 00 00 F4 03 04 00 EE 79 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 21 01 00 35 04 06 00 43 27 1A 55 F1 35 67 C3 EF 6D 0E 77 6F D3 [21:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 46 F5 47 00 9E 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 39 36 33 33 32 33 10 04 04 00 23 21 01 00 F4 03 04 00 D2 22 15 67 B6 04 01 00 00 EF 00 A5 8D 43 8A 1D 20 [21:45:16]CommunicateWithHost err = 0 [21:45:16]CheckOFDResponse [21:45:16]1017 (14) - 77093643461234 [21:45:16]1041 (16) - 0000000000963323 [21:45:16]1040 (4) - 74019 [21:45:16]1012 (4) - 20.10.2024 15:33 [21:45:16]1206 (1) - 0 [21:45:16]OFD Sender: Remove packet 74019 [21:45:16]ProducePacketName [21:45:16]name=ofd_packets/00074019 [21:45:16]NVStorageDeleteData [21:45:17]Write to MH i2c: 01 00 00 9C 5B F7 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 07 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 07 00 9C 5B 00 00 00 00 00 CE 0C D8 [21:45:17]RasterBufferAndPrint [21:45:17]line [21:45:17]line [21:45:17]line [21:45:17]line [21:45:17]line [21:45:17]written 0, free lines is 3282 [21:45:17]MH_Cut [21:45:17]Write to MH i2c: D1 01 00 A3 5B 01 D0 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: D1 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: D1 01 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: D1 01 00 A3 5B 00 CF [21:45:17]Write to MH i2c: 01 00 00 A4 5B FF [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]OFD Sender: No OFD packet to send [21:45:17]*** Cut start [21:45:17]*** Partial cut [21:45:17]*** CUTSNS_PIN = 1 [21:45:18]*** CUTSNS_PIN = 0 [21:45:18]*** Brake cut motor [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]*** Stop cut motor [21:45:18]*** Cut end [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 A4 5B 00 00 00 00 00 FF 0F 14 [21:45:18]process_action close_receipt done [21:45:18]requested_data is exist [21:45:18]produce_requested_data [21:45:18]requested_item fm.sn is exist - process it [21:45:18]wFMCommunicate request_size=4 [21:45:18]MH_SAM_APDU [21:45:18]CAPDU: 80 11 00 00 [21:45:18]Write to MH i2c: E2 08 00 A5 5B 80 11 00 00 00 00 00 00 7A [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:18]Read from MH i2c: E2 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 17 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 17 00 A5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C7 [21:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:45:18]wFMCommunicate OK [21:45:18]requested_item fd.num is exist - process it [21:45:18]SAM_PROTO_GetFieldsCounters [21:45:18]wFMCommunicate request_size=4 [21:45:18]MH_SAM_APDU [21:45:18]CAPDU: 80 13 00 00 [21:45:18]Write to MH i2c: E2 08 00 A6 5B 80 13 00 00 00 00 00 00 7D [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:18]Read from MH i2c: E2 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 62 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 62 00 A6 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [21:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:18]wFMCommunicate OK [21:45:18]SAM_PROTO_GetFieldsCounters done [21:45:18]requested_item shift.num is exist - process it [21:45:18]requested_item shift.opened is exist - process it [21:45:18]req_shift_opened [21:45:18]FM_GetShiftState [21:45:18]SAM_PROTO_GetShiftState [21:45:18]wFMCommunicate request_size=4 [21:45:18]MH_SAM_APDU [21:45:18]CAPDU: 80 13 01 00 [21:45:18]Write to MH i2c: E2 08 00 A7 5B 80 13 01 00 00 00 00 00 7F [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:18]Read from MH i2c: E2 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 0E 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 0E 00 A7 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C4 [21:45:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:45:18]wFMCommunicate OK [21:45:18]SAM_PROTO_GetShiftState done [21:45:18]FM_GetShiftState done [21:45:18]req_shift_opened done [21:45:18]requested_item shift.open_date is exist - process it [21:45:18]req_shift_open_date [21:45:18]req_shift_open_date done [21:45:18]produce_requested_data done [21:45:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74019,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:45:18]process_action_free close_receipt [21:45:18]json_value_free [21:45:18]json_value_free done [21:45:18]process_json_proto returns [21:45:18]Send response to host [21:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74019,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:45:18]free response buf [21:45:18]execute_script done [21:45:18]execute_script returns [21:45:18]free content buf [21:45:18]Sock 9.Close socket [21:45:18]Sock 9.Thread stoped [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:49]accept exits with 8 [21:53:49]New connection [21:53:49]New thread 3067575652 created [21:53:49]Thread 3067432292 joined [21:53:49]Waiting for new connection... [21:53:49] Sock 8.Parse request [21:53:49]Sock 8.Check first char [21:53:49]Sock 8.First char is OK [21:53:49]request: POST /json_proto HTTP/1.0 [21:53:49]Method: POST [21:53:49]URL: /json_proto [21:53:49]Method is POST - this is cgi request [21:53:49]url: /json_proto [21:53:49]query_string will be loaded in cgi processing [21:53:49]execute_cgi json_proto POST (null) [21:53:49]execute_cgi path=json_proto method=POST [21:53:49]POST find Content-Length [21:53:49]Host: 172.17.44.196:8080 [21:53:49]Content-Length: 893 [21:53:49]Content-Type: application/json [21:53:49] [21:53:49]POST finish read [21:53:49]Found Content-Length = 893 [21:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272860", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [21:53:49]execute_script... [21:53: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)272860", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [21:53:49]POST & json_proto [21:53:49]process_json_proto [21:53:49]json parsed OK: [21:53:49]protocol is kg_v1.0 [21:53:49]action value=close_receipt [21:53:49]process_action close_receipt [21:53:49]cmd_close_receipt [21:53:49]MH_GetDate [21:53:49]Write to MH i2c: F0 00 00 A8 5B F2 [21:53:49]Write i2c OK [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: F0 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: F0 09 00 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: F0 09 00 A8 5B 00 F1 7B 15 67 E7 19 F8 65 40 [21:53:49]GetLastDocTimeStamp 1729460718 [21:53:49]current date 1729461233 [21:53:49]FM_GetShiftState [21:53:49]SAM_PROTO_GetShiftState [21:53:49]wFMCommunicate request_size=4 [21:53:49]MH_SAM_APDU [21:53:49]CAPDU: 80 13 01 00 [21:53:49]Write to MH i2c: E2 08 00 A9 5B 80 13 01 00 00 00 00 00 81 [21:53:49]Write i2c OK [21:53:49]MH_I2C_Read... [21:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:49]Read from MH i2c: E2 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: E2 0E 00 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: E2 0E 00 A9 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C6 [21:53:49]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:53:49]wFMCommunicate OK [21:53:49]SAM_PROTO_GetShiftState done [21:53:49]FM_GetShiftState done [21:53:49]opened in 1729384303 [21:53:49]opened+sec_in_day 1729470703 [21:53:49]quantity*price = 11500 [21:53:49]sum+1 = 11501 [21:53:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 346 20.10.2024 21:53 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74020 ФПД: 99264109765567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215353&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74020&fm=99264109765567&tin=02508201610067®Number=0000000000161154&sum=24500 0 [21:53:51]StoreToDocumentArchive [21:53:51]shift 170 fd 74020 [21:53:51]save to /storage/0170/doc_00074020 [21:53:51]save last doc name /storage/0170/doc_00074020 to /storage/kkm_last_doc_name [21:53:51]save OK [21:53:51]Clear old archive folders... [21:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=395 [21:53:51]tlvbuf is 0037B0B0 [21:53:51]SAM_PROTO_ClearQueue [21:53:51]wFMCommunicate request_size=4 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 09 00 00 [21:53:51]Write to MH i2c: E2 08 00 B6 5B 80 09 00 00 00 00 00 00 83 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 B6 5B 00 90 00 85 [21:53:51]RAPDU: 90 00 [21:53:51]wFMCommunicate OK [21:53:51]SAM_PROTO_ClearQueue done [21:53:51]KKMCreateOFDPacket [21:53:51]OFDProtocolAddRootSTLVToBuf [21:53:51]FM_MakeSignedData [21:53:51]FM_MakeSignedData [21:53:51]SAM_PROTO_SignData [21:53:51]wFMCommunicate request_size=4 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 0D 01 02 [21:53:51]Write to MH i2c: E2 08 00 B7 5B 80 0D 01 02 00 00 00 00 8B [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 B7 5B 00 90 00 86 [21:53:51]RAPDU: 90 00 [21:53:51]wFMCommunicate OK [21:53:51]wFMCommunicate request_size=255 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 [21:53:51]Write to MH i2c: E2 02 01 B8 5B 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 00 00 79 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 B8 5B 00 90 00 87 [21:53:51]RAPDU: 90 00 [21:53:51]wFMCommunicate OK [21:53:51]wFMCommunicate request_size=154 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 D9 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 5A 01 00 00 F4 03 04 00 F1 7B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 21 01 00 35 04 06 00 5A 47 BA 00 63 BF [21:53:51]Write to MH i2c: E2 9D 00 B9 5B 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 D9 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 5A 01 00 00 F4 03 04 00 F1 7B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 21 01 00 35 04 06 00 5A 47 BA 00 63 BF 00 00 B1 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 03 00 B9 5B 00 90 00 88 [21:53:51]RAPDU: 90 00 [21:53:51]wFMCommunicate OK [21:53:51]wFMCommunicate request_size=4 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 0D 03 02 [21:53:51]Write to MH i2c: E2 08 00 BA 5B 80 0D 03 02 00 00 00 00 90 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 0B 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 0B 00 BA 5B 00 1E 87 B4 D5 79 C4 79 A2 90 00 17 [21:53:51]RAPDU: 1E 87 B4 D5 79 C4 79 A2 90 00 [21:53:51]wFMCommunicate OK [21:53:51]SAM_PROTO_SignData done [21:53:51]FM_MakeSignedData done [21:53:51]CreateOFDProtocolMessage [21:53:51]wFMCommunicate request_size=4 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 11 00 00 [21:53:51]Write to MH i2c: E2 08 00 BB 5B 80 11 00 00 00 00 00 00 90 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 17 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 17 00 BB 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DD [21:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:53:51]wFMCommunicate OK [21:53:51]CreateOFDProtocolMessage done [21:53:51]OFDSenderStorePacket 74020 [21:53:51]StoreOFDPacket docnum=74020 [21:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9F 01 00 00 7D A8 97 01 45 2D 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 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 5A 01 00 00 F4 03 04 00 F1 7B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 21 01 00 35 04 06 00 5A 47 BA 00 63 BF 1E 87 B4 D5 79 C4 79 A2 [21:53:51]CheckFolder [21:53:51]dirname=/storage/ofd_packets [21:53:51]CheckFolder done [21:53:51]ProducePacketName [21:53:51]name=ofd_packets/00074020 [21:53:51]NVStorageSaveData ofd_packets/00074020 [21:53:51]File name is /storage/ofd_packets/00074020 [21:53:51]Write 445 bytes [21:53:51]NVStorageSaveData done [21:53:51]OFDSenderStorePacket done [21:53:51]KKMCreateOFDPacket done [21:53:51]NVStorageSaveData kkm_last_timestamp [21:53:51]File name is /storage/kkm_last_timestamp [21:53:51]Write 4 bytes [21:53:51]NVStorageSaveData done [21:53:51]ExternCall_PrintAddStr [21:53:51]wPrintStart [21:53:51]Write to MH i2c: 01 00 00 BC 5B 17 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: 01 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: 01 07 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: 01 07 00 BC 5B 00 00 00 00 00 FF 0F 2C [21:53:51]RasterBufferAndPrint [21:53:51]line Счет N : (3)272860 [21:53:51]line ИНН: 02508201610067 [21:53:52]line Контрольно-Кассовый Чек [21:53:52]line ПРОДАЖА [21:53:52]line Товар: 2000036210013 [21:53:52]line Кофе Капучино (GABB TRADE) [21:53:52]line 1.000 * 115.00 [21:53:52]line = 115.00 [21:53:52]line НДС 12% НСП 1% [21:53:52]line > о реализуемом товаре [21:53:52]line Товар: 48745291 [21:53:52]line Сигареты Parliament SOHO NYC COMPACT BLU [21:53:52]line 1.000 * 130.00 [21:53:52]line = 130.00 [21:53:52]line НДС 12% НСП 1% [21:53:52]line > о реализуемом товаре [21:53:52]line ИТОГО: 245.00 [21:53:52]line НСП 1% : 2.17 [21:53:52]line НДС 12% : 26.01 [21:53:52]line Наличными: 245.00 [21:53:52]line Безнал.: 0.00 [21:53:52]line Место: АЗС № 133 "Партнер Нефть" [21:53:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:53:52]line СНО: Общий режим [21:53:52]line Чек 346 20.10.2024 21:53 [21:53:52]line Смена: 170 ФФД: 1.0 [21:53:52]line ЗНМ: 0300000020 [21:53:52]line РНМ: 0000000000161154 [21:53:52]line Версия ККМ: v1.0 [21:53:52]line ФМ: 0000000000963323 [21:53:52]line ФД: 74020 [21:53:52]line ФПД: 99264109765567 [21:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215353&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74020&fm=99264109765567&tin=02508201610067®Number=0000000000161154&sum=24500 [21:53:52]OFD Sender: Processing packet 74020 [packets to send 15, broken 14] [21:53:52]ProducePacketName [21:53:52]name=ofd_packets/00074020 [21:53:52]OFD Sender: To server: pG, [21:53:52]CommunicateWithHost lk.salyk.kg:30040 [21:53:52]ConnectInit lk.salyk.kg [21:53:52]line 0 [21:53:52]written 0, free lines is 4095 [21:53:52]Connected sock=10 [21:53:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9F 01 00 00 7D A8 97 01 45 2D 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 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 5A 01 00 00 F4 03 04 00 F1 7B 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 21 01 00 35 04 06 00 5A 47 BA 00 63 BF 1E 87 B4 D5 79 C4 79 A2 [21:53:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 34 B4 47 00 F3 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 39 36 33 33 32 33 10 04 04 00 24 21 01 00 F4 03 04 00 D5 24 15 67 B6 04 01 00 00 E5 17 D9 7C 18 E8 67 98 [21:53:52]CommunicateWithHost err = 0 [21:53:52]CheckOFDResponse [21:53:52]1017 (14) - 77093643461234 [21:53:52]1041 (16) - 0000000000963323 [21:53:52]1040 (4) - 74020 [21:53:52]1012 (4) - 20.10.2024 15:42 [21:53:52]1206 (1) - 0 [21:53:52]OFD Sender: Remove packet 74020 [21:53:52]ProducePacketName [21:53:52]name=ofd_packets/00074020 [21:53:52]NVStorageDeleteData [21:53:52]Write to MH i2c: 01 00 00 EA 5B 45 [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 07 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 07 00 EA 5B 00 00 00 00 00 75 0C CD [21:53:52]RasterBufferAndPrint [21:53:52]line [21:53:52]line [21:53:52]line [21:53:52]line [21:53:52]line [21:53:52]written 0, free lines is 3199 [21:53:52]MH_Cut [21:53:52]Write to MH i2c: D1 01 00 F1 5B 01 1E [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: D1 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: D1 01 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: D1 01 00 F1 5B 00 1D [21:53:52]Write to MH i2c: 01 00 00 F2 5B 4D [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]OFD Sender: No OFD packet to send [21:53:53]*** Cut start [21:53:53]*** Partial cut [21:53:53]*** CUTSNS_PIN = 1 [21:53:53]*** CUTSNS_PIN = 0 [21:53:53]*** Brake cut motor [21:53:54]Read from MH i2c: 01 [21:53:54]MH_I2C_Read... [21:53:54]*** Stop cut motor [21:53:54]*** Cut end [21:53:54]Read from MH i2c: 01 07 00 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: 01 07 00 F2 5B 00 00 00 00 00 FF 0F 62 [21:53:54]process_action close_receipt done [21:53:54]requested_data is exist [21:53:54]produce_requested_data [21:53:54]requested_item fm.sn is exist - process it [21:53:54]wFMCommunicate request_size=4 [21:53:54]MH_SAM_APDU [21:53:54]CAPDU: 80 11 00 00 [21:53:54]Write to MH i2c: E2 08 00 F3 5B 80 11 00 00 00 00 00 00 C8 [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:54]Read from MH i2c: E2 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: E2 17 00 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: E2 17 00 F3 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [21:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:53:54]wFMCommunicate OK [21:53:54]requested_item fd.num is exist - process it [21:53:54]SAM_PROTO_GetFieldsCounters [21:53:54]wFMCommunicate request_size=4 [21:53:54]MH_SAM_APDU [21:53:54]CAPDU: 80 13 00 00 [21:53:54]Write to MH i2c: E2 08 00 F4 5B 80 13 00 00 00 00 00 00 CB [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:54]Read from MH i2c: E2 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: E2 62 00 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: E2 62 00 F4 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [21:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:54]wFMCommunicate OK [21:53:54]SAM_PROTO_GetFieldsCounters done [21:53:54]requested_item shift.num is exist - process it [21:53:54]requested_item shift.opened is exist - process it [21:53:54]req_shift_opened [21:53:54]FM_GetShiftState [21:53:54]SAM_PROTO_GetShiftState [21:53:54]wFMCommunicate request_size=4 [21:53:54]MH_SAM_APDU [21:53:54]CAPDU: 80 13 01 00 [21:53:54]Write to MH i2c: E2 08 00 F5 5B 80 13 01 00 00 00 00 00 CD [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: E2 [21:53:54]MH_I2C_Read... [21:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:54]Read from MH i2c: E2 0E 00 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: E2 0E 00 F5 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 12 [21:53:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:53:54]wFMCommunicate OK [21:53:54]SAM_PROTO_GetShiftState done [21:53:54]FM_GetShiftState done [21:53:54]req_shift_opened done [21:53:54]requested_item shift.open_date is exist - process it [21:53:54]req_shift_open_date [21:53:54]req_shift_open_date done [21:53:54]produce_requested_data done [21:53:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74020,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:53:54]process_action_free close_receipt [21:53:54]json_value_free [21:53:54]json_value_free done [21:53:54]process_json_proto returns [21:53:54]Send response to host [21:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74020,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:53:54]free response buf [21:53:54]execute_script done [21:53:54]execute_script returns [21:53:54]free content buf [21:53:54]Sock 8.Close socket [21:53:54]Sock 8.Thread stoped [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]accept exits with 9 [21:55:57]New connection [21:55:57]New thread 3067432292 created [21:55:57]Thread 3067575652 joined [21:55:57]Waiting for new connection... [21:55:57] Sock 9.Parse request [21:55:57]Sock 9.Check first char [21:55:57]Sock 9.First char is OK [21:55:57]request: POST /json_proto HTTP/1.0 [21:55:57]Method: POST [21:55:57]URL: /json_proto [21:55:57]Method is POST - this is cgi request [21:55:57]url: /json_proto [21:55:57]query_string will be loaded in cgi processing [21:55:57]execute_cgi json_proto POST (null) [21:55:57]execute_cgi path=json_proto method=POST [21:55:57]POST find Content-Length [21:55:57]Host: 172.17.44.196:8080 [21:55:57]Content-Length: 691 [21:55:57]Content-Type: application/json [21:55:57] [21:55:57]POST finish read [21:55:57]Found Content-Length = 691 [21:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272861", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\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" ] } } [21:55:57]execute_script... [21:55: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)272861", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\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" ] } } [21:55:57]POST & json_proto [21:55:57]process_json_proto [21:55:57]json parsed OK: [21:55:57]protocol is kg_v1.0 [21:55:57]action value=close_receipt [21:55:57]process_action close_receipt [21:55:57]cmd_close_receipt [21:55:57]MH_GetDate [21:55:57]Write to MH i2c: F0 00 00 F6 5B 40 [21:55:57]Write i2c OK [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: F0 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: F0 09 00 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: F0 09 00 F6 5B 00 71 7C 15 67 E7 19 F8 65 0F [21:55:57]GetLastDocTimeStamp 1729461233 [21:55:57]current date 1729461361 [21:55:57]FM_GetShiftState [21:55:57]SAM_PROTO_GetShiftState [21:55:57]wFMCommunicate request_size=4 [21:55:57]MH_SAM_APDU [21:55:57]CAPDU: 80 13 01 00 [21:55:57]Write to MH i2c: E2 08 00 F7 5B 80 13 01 00 00 00 00 00 CF [21:55:57]Write i2c OK [21:55:57]MH_I2C_Read... [21:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:57]Read from MH i2c: E2 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: E2 0E 00 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: E2 0E 00 F7 5B 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 14 [21:55:57]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:55:57]wFMCommunicate OK [21:55:57]SAM_PROTO_GetShiftState done [21:55:57]FM_GetShiftState done [21:55:57]opened in 1729384303 [21:55:57]opened+sec_in_day 1729470703 [21:55:57]quantity*price = 7500 [21:55:57]sum+1 = 7501 [21:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 347 20.10.2024 21:56 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74021 ФПД: 152290615494096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215601&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74021&fm=152290615494096&tin=02508201610067®Number=0000000000161154&sum=7500 0 [21:55:58]StoreToDocumentArchive [21:55:58]shift 170 fd 74021 [21:55:58]save to /storage/0170/doc_00074021 [21:55:58]save last doc name /storage/0170/doc_00074021 to /storage/kkm_last_doc_name [21:55:58]save OK [21:55:58]Clear old archive folders... [21:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=290 [21:55:58]tlvbuf is 005234B0 [21:55:58]SAM_PROTO_ClearQueue [21:55:58]wFMCommunicate request_size=4 [21:55:58]MH_SAM_APDU [21:55:58]CAPDU: 80 09 00 00 [21:55:58]Write to MH i2c: E2 08 00 04 5C 80 09 00 00 00 00 00 00 D2 [21:55:58]Write i2c OK [21:55:58]MH_I2C_Read... [21:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:58]Read from MH i2c: E2 [21:55:58]MH_I2C_Read... [21:55:58]Read from MH i2c: E2 03 00 [21:55:58]MH_I2C_Read... [21:55:58]Read from MH i2c: E2 03 00 04 5C 00 90 00 D4 [21:55:58]RAPDU: 90 00 [21:55:58]wFMCommunicate OK [21:55:58]SAM_PROTO_ClearQueue done [21:55:58]KKMCreateOFDPacket [21:55:58]OFDProtocolAddRootSTLVToBuf [21:55:58]FM_MakeSignedData [21:55:58]FM_MakeSignedData [21:55:58]SAM_PROTO_SignData [21:55:58]wFMCommunicate request_size=4 [21:55:58]MH_SAM_APDU [21:55:58]CAPDU: 80 0D 01 02 [21:55:58]Write to MH i2c: E2 08 00 05 5C 80 0D 01 02 00 00 00 00 DA [21:55:58]Write i2c OK [21:55:58]MH_I2C_Read... [21:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:58]Read from MH i2c: E2 [21:55:58]MH_I2C_Read... [21:55:58]Read from MH i2c: E2 03 00 [21:55:58]MH_I2C_Read... [21:55:58]Read from MH i2c: E2 03 00 05 5C 00 90 00 D5 [21:55:58]RAPDU: 90 00 [21:55:58]wFMCommunicate OK [21:55:58]wFMCommunicate request_size=255 [21:55:58]MH_SAM_APDU [21:55:58]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 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 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 5B 01 00 00 F4 03 04 00 71 7C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [21:55:58]Write to MH i2c: E2 02 01 06 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 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 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 5B 01 00 00 F4 03 04 00 71 7C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 93 [21:55:58]Write i2c OK [21:55:58]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 06 5C 00 90 00 D6 [21:55:59]RAPDU: 90 00 [21:55:59]wFMCommunicate OK [21:55:59]wFMCommunicate request_size=49 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 0D 02 02 2C 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 21 01 00 35 04 06 00 8A 81 EC 0A 05 D0 [21:55:59]Write to MH i2c: E2 34 00 07 5C 80 0D 02 02 2C 00 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 21 01 00 35 04 06 00 8A 81 EC 0A 05 D0 00 00 1A [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 07 5C 00 90 00 D7 [21:55:59]RAPDU: 90 00 [21:55:59]wFMCommunicate OK [21:55:59]wFMCommunicate request_size=4 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 0D 03 02 [21:55:59]Write to MH i2c: E2 08 00 08 5C 80 0D 03 02 00 00 00 00 DF [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 0B 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 0B 00 08 5C 00 07 A7 E6 01 19 71 0A 40 90 00 49 [21:55:59]RAPDU: 07 A7 E6 01 19 71 0A 40 90 00 [21:55:59]wFMCommunicate OK [21:55:59]SAM_PROTO_SignData done [21:55:59]FM_MakeSignedData done [21:55:59]CreateOFDProtocolMessage [21:55:59]wFMCommunicate request_size=4 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 11 00 00 [21:55:59]Write to MH i2c: E2 08 00 09 5C 80 11 00 00 00 00 00 00 DF [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 17 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 17 00 09 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [21:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:55:59]wFMCommunicate OK [21:55:59]CreateOFDProtocolMessage done [21:55:59]OFDSenderStorePacket 74021 [21:55:59]StoreOFDPacket docnum=74021 [21:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 36 01 00 00 69 A1 2E 01 6D 1E 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 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 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 5B 01 00 00 F4 03 04 00 71 7C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 21 01 00 35 04 06 00 8A 81 EC 0A 05 D0 07 A7 E6 01 19 71 0A 40 [21:55:59]CheckFolder [21:55:59]dirname=/storage/ofd_packets [21:55:59]CheckFolder done [21:55:59]ProducePacketName [21:55:59]name=ofd_packets/00074021 [21:55:59]NVStorageSaveData ofd_packets/00074021 [21:55:59]File name is /storage/ofd_packets/00074021 [21:55:59]Write 340 bytes [21:55:59]NVStorageSaveData done [21:55:59]OFDSenderStorePacket done [21:55:59]KKMCreateOFDPacket done [21:55:59]NVStorageSaveData kkm_last_timestamp [21:55:59]File name is /storage/kkm_last_timestamp [21:55:59]Write 4 bytes [21:55:59]OFD Sender: Processing packet 74021 [packets to send 15, broken 14] [21:55:59]ProducePacketName [21:55:59]name=ofd_packets/00074021 [21:55:59]OFD Sender: To server: pG, [21:55:59]CommunicateWithHost lk.salyk.kg:30040 [21:55:59]ConnectInit lk.salyk.kg [21:55:59]NVStorageSaveData done [21:55:59]ExternCall_PrintAddStr [21:55:59]wPrintStart [21:55:59]Write to MH i2c: 01 00 00 0A 5C 66 [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: 01 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: 01 07 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: 01 07 00 0A 5C 00 00 00 00 00 FF 0F 7B [21:55:59]RasterBufferAndPrint [21:55:59]line Счет N : (3)272861 [21:55:59]line ИНН: 02508201610067 [21:55:59]line Контрольно-Кассовый Чек [21:55:59]line ПРОДАЖА [21:55:59]line Товар: 4700000310258 [21:55:59]line Напиток Лимонад Келечек 1л [21:55:59]line 1.000 * 75.00 [21:55:59]line = 75.00 [21:55:59]line НДС 12% НСП 1% [21:55:59]line > о реализуемом товаре [21:55:59]line ИТОГО: 75.00 [21:55:59]line НСП 1% : 0.66 [21:55:59]line НДС 12% : 7.96 [21:55:59]line Наличными: 75.00 [21:55:59]line Безнал.: 0.00 [21:55:59]line Место: АЗС № 133 "Партнер Нефть" [21:55:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:55:59]line СНО: Общий режим [21:55:59]line Чек 347 20.10.2024 21:56 [21:55:59]line Смена: 170 ФФД: 1.0 [21:55:59]line ЗНМ: 0300000020 [21:55:59]line РНМ: 0000000000161154 [21:55:59]line Версия ККМ: v1.0 [21:55:59]line ФМ: 0000000000963323 [21:55:59]line ФД: 74021 [21:55:59]line ФПД: 152290615494096 [21:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215601&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74021&fm=152290615494096&tin=02508201610067®Number=0000000000161154&sum=7500 [21:55:59]line 0 [21:55:59]Connected sock=10 [21:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 36 01 00 00 69 A1 2E 01 6D 1E 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 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 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 5B 01 00 00 F4 03 04 00 71 7C 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 21 01 00 35 04 06 00 8A 81 EC 0A 05 D0 07 A7 E6 01 19 71 0A 40 [21:55:59]written 0, free lines is 4095 [21:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 56 D0 47 00 58 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 39 36 33 33 32 33 10 04 04 00 25 21 01 00 F4 03 04 00 54 25 15 67 B6 04 01 00 00 BC AE C5 24 E1 57 AA 10 [21:55:59]CommunicateWithHost err = 0 [21:55:59]CheckOFDResponse [21:55:59]1017 (14) - 77093643461234 [21:55:59]1041 (16) - 0000000000963323 [21:55:59]1040 (4) - 74021 [21:55:59]1012 (4) - 20.10.2024 15:44 [21:55:59]1206 (1) - 0 [21:55:59]OFD Sender: Remove packet 74021 [21:55:59]ProducePacketName [21:55:59]name=ofd_packets/00074021 [21:55:59]NVStorageDeleteData [21:56:00]Write to MH i2c: 01 00 00 31 5C 8D [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: 01 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: 01 07 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: 01 07 00 31 5C 00 00 00 00 00 DE 0C 7E [21:56:00]RasterBufferAndPrint [21:56:00]line [21:56:00]line [21:56:00]line [21:56:00]line [21:56:00]line [21:56:00]written 0, free lines is 3301 [21:56:00]MH_Cut [21:56:00]Write to MH i2c: D1 01 00 38 5C 01 66 [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: D1 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: D1 01 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: D1 01 00 38 5C 00 65 [21:56:00]Write to MH i2c: 01 00 00 39 5C 95 [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]OFD Sender: No OFD packet to send [21:56:00]*** Cut start [21:56:00]*** Partial cut [21:56:00]*** CUTSNS_PIN = 1 [21:56:01]*** CUTSNS_PIN = 0 [21:56:01]*** Brake cut motor [21:56:01]Read from MH i2c: 01 [21:56:01]MH_I2C_Read... [21:56:01]*** Stop cut motor [21:56:01]*** Cut end [21:56:01]Read from MH i2c: 01 07 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: 01 07 00 39 5C 00 00 00 00 00 FF 0F AA [21:56:01]process_action close_receipt done [21:56:01]requested_data is exist [21:56:01]produce_requested_data [21:56:01]requested_item fm.sn is exist - process it [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 11 00 00 [21:56:01]Write to MH i2c: E2 08 00 3A 5C 80 11 00 00 00 00 00 00 10 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 17 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 17 00 3A 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [21:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:56:01]wFMCommunicate OK [21:56:01]requested_item fd.num is exist - process it [21:56:01]SAM_PROTO_GetFieldsCounters [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 13 00 00 [21:56:01]Write to MH i2c: E2 08 00 3B 5C 80 13 00 00 00 00 00 00 13 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 62 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 62 00 3B 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_GetFieldsCounters done [21:56:01]requested_item shift.num is exist - process it [21:56:01]requested_item shift.opened is exist - process it [21:56:01]req_shift_opened [21:56:01]FM_GetShiftState [21:56:01]SAM_PROTO_GetShiftState [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 13 01 00 [21:56:01]Write to MH i2c: E2 08 00 3C 5C 80 13 01 00 00 00 00 00 15 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 3C 5C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5A [21:56:01]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_GetShiftState done [21:56:01]FM_GetShiftState done [21:56:01]req_shift_opened done [21:56:01]requested_item shift.open_date is exist - process it [21:56:01]req_shift_open_date [21:56:01]req_shift_open_date done [21:56:01]produce_requested_data done [21:56:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74021,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:56:01]process_action_free close_receipt [21:56:01]json_value_free [21:56:01]json_value_free done [21:56:01]process_json_proto returns [21:56:01]Send response to host [21:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74021,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:56:01]free response buf [21:56:01]execute_script done [21:56:01]execute_script returns [21:56:01]free content buf [21:56:01]Sock 9.Close socket [21:56:01]Sock 9.Thread stoped [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]accept exits with 8 [21:58:30]New connection [21:58:30]New thread 3067575652 created [21:58:30]Thread 3067432292 joined [21:58:30]Waiting for new connection... [21:58:30] Sock 8.Parse request [21:58:30]Sock 8.Check first char [21:58:30]Sock 8.First char is OK [21:58:30]request: POST /json_proto HTTP/1.0 [21:58:30]Method: POST [21:58:30]URL: /json_proto [21:58:30]Method is POST - this is cgi request [21:58:30]url: /json_proto [21:58:30]query_string will be loaded in cgi processing [21:58:30]execute_cgi json_proto POST (null) [21:58:30]execute_cgi path=json_proto method=POST [21:58:30]POST find Content-Length [21:58:30]Host: 172.17.44.196:8080 [21:58:30]Content-Length: 753 [21:58:30]Content-Type: application/json [21:58:30] [21:58:30]POST finish read [21:58:30]Found Content-Length = 753 [21:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:30]execute_script... [21:58: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 : (1)1963363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:30]POST & json_proto [21:58:30]process_json_proto [21:58:30]json parsed OK: [21:58:30]protocol is kg_v1.0 [21:58:30]action value=close_receipt [21:58:30]process_action close_receipt [21:58:30]cmd_close_receipt [21:58:30]MH_GetDate [21:58:30]Write to MH i2c: F0 00 00 3D 5C 88 [21:58:30]Write i2c OK [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: F0 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: F0 09 00 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: F0 09 00 3D 5C 00 0A 7D 15 67 E7 19 F8 65 F1 [21:58:30]GetLastDocTimeStamp 1729461361 [21:58:30]current date 1729461514 [21:58:30]FM_GetShiftState [21:58:30]SAM_PROTO_GetShiftState [21:58:30]wFMCommunicate request_size=4 [21:58:30]MH_SAM_APDU [21:58:30]CAPDU: 80 13 01 00 [21:58:30]Write to MH i2c: E2 08 00 3E 5C 80 13 01 00 00 00 00 00 17 [21:58:30]Write i2c OK [21:58:30]MH_I2C_Read... [21:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:30]Read from MH i2c: E2 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: E2 0E 00 [21:58:30]MH_I2C_Read... [21:58:30]Read from MH i2c: E2 0E 00 3E 5C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 5C [21:58:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:58:30]wFMCommunicate OK [21:58:30]SAM_PROTO_GetShiftState done [21:58:30]FM_GetShiftState done [21:58:30]opened in 1729384303 [21:58:30]opened+sec_in_day 1729470703 [21:58:30]quantity*price = 0 [21:58:30]sum+1 = 1 [21:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 348 20.10.2024 21:58 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30093365 ФМ: 0000000000963323 ФД: 74022 ФПД: 39166738932689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215834&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74022&fm=39166738932689&tin=02508201610067®Number=0000000000161154&sum=0 [21:58:31]StoreToDocumentArchive [21:58:31]shift 170 fd 74022 [21:58:31]save to /storage/0170/doc_00074022 [21:58:31]save last doc name /storage/0170/doc_00074022 to /storage/kkm_last_doc_name [21:58:31]save OK [21:58:31]Clear old archive folders... [21:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:58:31]tlvbuf is 005691E0 [21:58:31]SAM_PROTO_ClearQueue [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 09 00 00 [21:58:31]Write to MH i2c: E2 08 00 4B 5C 80 09 00 00 00 00 00 00 19 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 4B 5C 00 90 00 1B [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]SAM_PROTO_ClearQueue done [21:58:31]KKMCreateOFDPacket [21:58:31]OFDProtocolAddRootSTLVToBuf [21:58:31]FM_MakeSignedData [21:58:31]FM_MakeSignedData [21:58:31]SAM_PROTO_SignData [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 0D 01 02 [21:58:31]Write to MH i2c: E2 08 00 4C 5C 80 0D 01 02 00 00 00 00 21 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 4C 5C 00 90 00 1C [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]wFMCommunicate request_size=255 [21:58:31]MH_SAM_APDU [21:58:31]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 D0 FB 01 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 5C 01 00 00 F4 03 04 00 0A 7D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 21 01 00 35 04 06 00 23 9F 37 8F [21:58:31]Write to MH i2c: E2 02 01 4D 5C 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 D0 FB 01 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 5C 01 00 00 F4 03 04 00 0A 7D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 21 01 00 35 04 06 00 23 9F 37 8F 00 00 17 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 4D 5C 00 90 00 1D [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]wFMCommunicate request_size=7 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 0D 02 02 02 A3 D1 [21:58:31]Write to MH i2c: E2 0A 00 4E 5C 80 0D 02 02 02 00 A3 D1 00 00 9C [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 03 00 4E 5C 00 90 00 1E [21:58:31]RAPDU: 90 00 [21:58:31]wFMCommunicate OK [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 0D 03 02 [21:58:31]Write to MH i2c: E2 08 00 4F 5C 80 0D 03 02 00 00 00 00 26 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 0B 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 0B 00 4F 5C 00 3A 0B 87 E8 7E E2 36 3E 90 00 AF [21:58:31]RAPDU: 3A 0B 87 E8 7E E2 36 3E 90 00 [21:58:31]wFMCommunicate OK [21:58:31]SAM_PROTO_SignData done [21:58:31]FM_MakeSignedData done [21:58:31]CreateOFDProtocolMessage [21:58:31]wFMCommunicate request_size=4 [21:58:31]MH_SAM_APDU [21:58:31]CAPDU: 80 11 00 00 [21:58:31]Write to MH i2c: E2 08 00 50 5C 80 11 00 00 00 00 00 00 26 [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:31]Read from MH i2c: E2 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 17 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: E2 17 00 50 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [21:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:58:31]wFMCommunicate OK [21:58:31]CreateOFDProtocolMessage done [21:58:31]OFDSenderStorePacket 74022 [21:58:31]StoreOFDPacket docnum=74022 [21:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C4 AF 04 01 CC F0 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 D0 FB 01 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 5C 01 00 00 F4 03 04 00 0A 7D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 21 01 00 35 04 06 00 23 9F 37 8F A3 D1 3A 0B 87 E8 7E E2 36 3E [21:58:31]CheckFolder [21:58:31]dirname=/storage/ofd_packets [21:58:31]CheckFolder done [21:58:31]ProducePacketName [21:58:31]name=ofd_packets/00074022 [21:58:31]NVStorageSaveData ofd_packets/00074022 [21:58:31]File name is /storage/ofd_packets/00074022 [21:58:31]Write 298 bytes [21:58:31]NVStorageSaveData done [21:58:31]OFDSenderStorePacket done [21:58:31]KKMCreateOFDPacket done [21:58:31]NVStorageSaveData kkm_last_timestamp [21:58:31]File name is /storage/kkm_last_timestamp [21:58:31]Write 4 bytes [21:58:31]NVStorageSaveData done [21:58:31]ExternCall_PrintAddStr [21:58:31]wPrintStart [21:58:31]Write to MH i2c: 01 00 00 51 5C AD [21:58:31]Write i2c OK [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: 01 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: 01 07 00 [21:58:31]MH_I2C_Read... [21:58:31]Read from MH i2c: 01 07 00 51 5C 00 00 00 00 00 FF 0F C2 [21:58:31]RasterBufferAndPrint [21:58:31]line Счет N : (1)1963363 [21:58:31]line ИНН: 02508201610067 [21:58:31]line Контрольно-Кассовый Чек [21:58:31]line ПРОДАЖА [21:58:31]line ТРК (МРК, ГНК) : 21 [21:58:31]line Товар: 2710194210 [21:58:31]line ДТ-К-5 [21:58:31]line 130.000 * 0.00 [21:58:31]line = 0.00 [21:58:31]line НДС 12% НСП 1% [21:58:31]line > о реализуемом товаре [21:58:31]line ИТОГО: 0.00 [21:58:31]line НСП 1% : 0.00 [21:58:31]line НДС 12% : 0.00 [21:58:31]line Наличными: 0.00 [21:58:31]line Безнал.: 0.00 [21:58:31]line Место: АЗС № 133 "Партнер Нефть" [21:58:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:58:31]line СНО: Общий режим [21:58:31]line Чек 348 20.10.2024 21:58 [21:58:31]line Смена: 170 ФФД: 1.0 [21:58:31]line ЗНМ: 0300000020 [21:58:31]line РНМ: 0000000000161154 [21:58:31]line Версия ККМ: v1.0 [21:58:31]line Талоны: ТК ГПНА Online [21:58:31]line 30093365 [21:58:31]line ФМ: 0000000000963323 [21:58:31]line ФД: 74022 [21:58:31]line ФПД: 39166738932689 [21:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215834&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74022&fm=39166738932689&tin=02508201610067®Number=0000000000161154&sum=0 [21:58:32]OFD Sender: Processing packet 74022 [packets to send 15, broken 14] [21:58:32]ProducePacketName [21:58:32]name=ofd_packets/00074022 [21:58:32]OFD Sender: To server: pG, [21:58:32]CommunicateWithHost lk.salyk.kg:30040 [21:58:32]ConnectInit lk.salyk.kg [21:58:32]written 0, free lines is 4095 [21:58:32]Connected sock=10 [21:58:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C4 AF 04 01 CC F0 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 D0 FB 01 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 5C 01 00 00 F4 03 04 00 0A 7D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 21 01 00 35 04 06 00 23 9F 37 8F A3 D1 3A 0B 87 E8 7E E2 36 3E [21:58:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B8 F8 47 00 A5 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 39 36 33 33 32 33 10 04 04 00 26 21 01 00 F4 03 04 00 ED 25 15 67 B6 04 01 00 00 D0 D6 6E 8A 3E 7D DC 5C [21:58:32]CommunicateWithHost err = 0 [21:58:32]CheckOFDResponse [21:58:32]1017 (14) - 77093643461234 [21:58:32]1041 (16) - 0000000000963323 [21:58:32]1040 (4) - 74022 [21:58:32]1012 (4) - 20.10.2024 15:46 [21:58:32]1206 (1) - 0 [21:58:32]OFD Sender: Remove packet 74022 [21:58:32]ProducePacketName [21:58:32]name=ofd_packets/00074022 [21:58:32]NVStorageDeleteData [21:58:32]Write to MH i2c: 01 00 00 7A 5C D6 [21:58:32]Write i2c OK [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: 01 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: 01 07 00 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: 01 07 00 7A 5C 00 00 00 00 00 D3 0C BC [21:58:32]RasterBufferAndPrint [21:58:32]line [21:58:32]line [21:58:32]line [21:58:32]line [21:58:32]line [21:58:32]written 0, free lines is 3289 [21:58:32]MH_Cut [21:58:32]Write to MH i2c: D1 01 00 81 5C 01 AF [21:58:32]Write i2c OK [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: D1 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: D1 01 00 [21:58:32]MH_I2C_Read... [21:58:32]Read from MH i2c: D1 01 00 81 5C 00 AE [21:58:32]Write to MH i2c: 01 00 00 82 5C DE [21:58:32]Write i2c OK [21:58:32]MH_I2C_Read... [21:58:33]OFD Sender: No OFD packet to send [21:58:33]*** Cut start [21:58:33]*** Partial cut [21:58:33]*** CUTSNS_PIN = 1 [21:58:33]*** CUTSNS_PIN = 0 [21:58:33]*** Brake cut motor [21:58:34]Read from MH i2c: 01 [21:58:34]MH_I2C_Read... [21:58:34]*** Stop cut motor [21:58:34]*** Cut end [21:58:34]Read from MH i2c: 01 07 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: 01 07 00 82 5C 00 00 00 00 00 FF 0F F3 [21:58:34]process_action close_receipt done [21:58:34]requested_data is exist [21:58:34]produce_requested_data [21:58:34]requested_item fm.sn is exist - process it [21:58:34]wFMCommunicate request_size=4 [21:58:34]MH_SAM_APDU [21:58:34]CAPDU: 80 11 00 00 [21:58:34]Write to MH i2c: E2 08 00 83 5C 80 11 00 00 00 00 00 00 59 [21:58:34]Write i2c OK [21:58:34]MH_I2C_Read... [21:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:34]Read from MH i2c: E2 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 17 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 17 00 83 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A6 [21:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:58:34]wFMCommunicate OK [21:58:34]requested_item fd.num is exist - process it [21:58:34]SAM_PROTO_GetFieldsCounters [21:58:34]wFMCommunicate request_size=4 [21:58:34]MH_SAM_APDU [21:58:34]CAPDU: 80 13 00 00 [21:58:34]Write to MH i2c: E2 08 00 84 5C 80 13 00 00 00 00 00 00 5C [21:58:34]Write i2c OK [21:58:34]MH_I2C_Read... [21:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:34]Read from MH i2c: E2 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 62 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 62 00 84 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 26 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 26 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:34]wFMCommunicate OK [21:58:34]SAM_PROTO_GetFieldsCounters done [21:58:34]requested_item shift.num is exist - process it [21:58:34]requested_item shift.opened is exist - process it [21:58:34]req_shift_opened [21:58:34]FM_GetShiftState [21:58:34]SAM_PROTO_GetShiftState [21:58:34]wFMCommunicate request_size=4 [21:58:34]MH_SAM_APDU [21:58:34]CAPDU: 80 13 01 00 [21:58:34]Write to MH i2c: E2 08 00 85 5C 80 13 01 00 00 00 00 00 5E [21:58:34]Write i2c OK [21:58:34]MH_I2C_Read... [21:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:34]Read from MH i2c: E2 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 0E 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 0E 00 85 5C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A3 [21:58:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [21:58:34]wFMCommunicate OK [21:58:34]SAM_PROTO_GetShiftState done [21:58:34]FM_GetShiftState done [21:58:34]req_shift_opened done [21:58:34]requested_item shift.open_date is exist - process it [21:58:34]req_shift_open_date [21:58:34]req_shift_open_date done [21:58:34]produce_requested_data done [21:58:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74022,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [21:58:34]process_action_free close_receipt [21:58:34]json_value_free [21:58:34]json_value_free done [21:58:34]process_json_proto returns [21:58:34]Send response to host [21:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74022,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [21:58:34]free response buf [21:58:34]execute_script done [21:58:34]execute_script returns [21:58:34]free content buf [21:58:34]Sock 8.Close socket [21:58:34]Sock 8.Thread stoped [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:26]accept exits with 9 [22:07:26]New connection [22:07:26]New thread 3067432292 created [22:07:26]Thread 3067575652 joined [22:07:26]Waiting for new connection... [22:07:26] Sock 9.Parse request [22:07:26]Sock 9.Check first char [22:07:26]Sock 9.First char is OK [22:07:26]request: POST /json_proto HTTP/1.0 [22:07:26]Method: POST [22:07:26]URL: /json_proto [22:07:26]Method is POST - this is cgi request [22:07:26]url: /json_proto [22:07:26]query_string will be loaded in cgi processing [22:07:26]execute_cgi json_proto POST (null) [22:07:26]execute_cgi path=json_proto method=POST [22:07:26]POST find Content-Length [22:07:26]Host: 172.17.44.196:8080 [22:07:26]Content-Length: 664 [22:07:26]Content-Type: application/json [22:07:26] [22:07:26]POST finish read [22:07:26]Found Content-Length = 664 [22:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:07:26]execute_script... [22:07: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)1963375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:07:26]POST & json_proto [22:07:26]process_json_proto [22:07:26]json parsed OK: [22:07:26]protocol is kg_v1.0 [22:07:26]action value=close_receipt [22:07:26]process_action close_receipt [22:07:26]cmd_close_receipt [22:07:26]MH_GetDate [22:07:26]Write to MH i2c: F0 00 00 86 5C D1 [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: F0 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: F0 09 00 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: F0 09 00 86 5C 00 22 7F 15 67 E7 19 F8 65 54 [22:07:26]GetLastDocTimeStamp 1729461514 [22:07:26]current date 1729462050 [22:07:26]FM_GetShiftState [22:07:26]SAM_PROTO_GetShiftState [22:07:26]wFMCommunicate request_size=4 [22:07:26]MH_SAM_APDU [22:07:26]CAPDU: 80 13 01 00 [22:07:26]Write to MH i2c: E2 08 00 87 5C 80 13 01 00 00 00 00 00 60 [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:26]Read from MH i2c: E2 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: E2 0E 00 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: E2 0E 00 87 5C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 A5 [22:07:26]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:07:26]wFMCommunicate OK [22:07:26]SAM_PROTO_GetShiftState done [22:07:26]FM_GetShiftState done [22:07:26]opened in 1729384303 [22:07:26]opened+sec_in_day 1729470703 [22:07:26]quantity*price = 100000 [22:07:26]sum+1 = 100002 [22:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 349 20.10.2024 22:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74023 ФПД: 88522773780228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220730&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74023&fm=88522773780228&tin=02508201610067®Number=0000000000161154&sum=100000 [22:07:27]StoreToDocumentArchive [22:07:27]shift 170 fd 74023 [22:07:27]save to /storage/0170/doc_00074023 [22:07:27]save last doc name /storage/0170/doc_00074023 to /storage/kkm_last_doc_name [22:07:27]save OK [22:07:27]Clear old archive folders... [22:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:07:27]tlvbuf is 00568ED0 [22:07:27]SAM_PROTO_ClearQueue [22:07:27]wFMCommunicate request_size=4 [22:07:27]MH_SAM_APDU [22:07:27]CAPDU: 80 09 00 00 [22:07:27]Write to MH i2c: E2 08 00 94 5C 80 09 00 00 00 00 00 00 62 [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:27]Read from MH i2c: E2 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 03 00 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 03 00 94 5C 00 90 00 64 [22:07:27]RAPDU: 90 00 [22:07:27]wFMCommunicate OK [22:07:27]SAM_PROTO_ClearQueue done [22:07:27]KKMCreateOFDPacket [22:07:27]OFDProtocolAddRootSTLVToBuf [22:07:27]FM_MakeSignedData [22:07:27]FM_MakeSignedData [22:07:27]SAM_PROTO_SignData [22:07:27]wFMCommunicate request_size=4 [22:07:27]MH_SAM_APDU [22:07:27]CAPDU: 80 0D 01 02 [22:07:27]Write to MH i2c: E2 08 00 95 5C 80 0D 01 02 00 00 00 00 6A [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:27]Read from MH i2c: E2 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 03 00 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 03 00 95 5C 00 90 00 65 [22:07:27]RAPDU: 90 00 [22:07:27]wFMCommunicate OK [22:07:27]wFMCommunicate request_size=253 [22:07:27]MH_SAM_APDU [22:07:27]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5D 01 00 00 F4 03 04 00 22 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 21 01 00 35 04 06 00 50 82 D0 7C 57 04 [22:07:27]Write to MH i2c: E2 00 01 96 5C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5D 01 00 00 F4 03 04 00 22 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 21 01 00 35 04 06 00 50 82 D0 7C 57 04 00 00 B6 [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 03 00 96 5C 00 90 00 66 [22:07:28]RAPDU: 90 00 [22:07:28]wFMCommunicate OK [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 0D 03 02 [22:07:28]Write to MH i2c: E2 08 00 97 5C 80 0D 03 02 00 00 00 00 6E [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0B 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0B 00 97 5C 00 35 DA 74 CF 3C 35 FA 04 90 00 30 [22:07:28]RAPDU: 35 DA 74 CF 3C 35 FA 04 90 00 [22:07:28]wFMCommunicate OK [22:07:28]SAM_PROTO_SignData done [22:07:28]FM_MakeSignedData done [22:07:28]CreateOFDProtocolMessage [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 11 00 00 [22:07:28]Write to MH i2c: E2 08 00 98 5C 80 11 00 00 00 00 00 00 6E [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 17 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 17 00 98 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [22:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:07:28]wFMCommunicate OK [22:07:28]CreateOFDProtocolMessage done [22:07:28]OFDSenderStorePacket 74023 [22:07:28]StoreOFDPacket docnum=74023 [22:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 76 9B 00 01 71 03 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5D 01 00 00 F4 03 04 00 22 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 21 01 00 35 04 06 00 50 82 D0 7C 57 04 35 DA 74 CF 3C 35 FA 04 [22:07:28]CheckFolder [22:07:28]dirname=/storage/ofd_packets [22:07:28]CheckFolder done [22:07:28]ProducePacketName [22:07:28]name=ofd_packets/00074023 [22:07:28]NVStorageSaveData ofd_packets/00074023 [22:07:28]File name is /storage/ofd_packets/00074023 [22:07:28]Write 294 bytes [22:07:28]NVStorageSaveData done [22:07:28]OFDSenderStorePacket done [22:07:28]KKMCreateOFDPacket done [22:07:28]NVStorageSaveData kkm_last_timestamp [22:07:28]File name is /storage/kkm_last_timestamp [22:07:28]Write 4 bytes [22:07:28]NVStorageSaveData done [22:07:28]ExternCall_PrintAddStr [22:07:28]wPrintStart [22:07:28]Write to MH i2c: 01 00 00 99 5C F5 [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: 01 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: 01 07 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: 01 07 00 99 5C 00 00 00 00 00 FF 0F 0A [22:07:28]RasterBufferAndPrint [22:07:28]line Счет N : (1)1963375 [22:07:28]line ИНН: 02508201610067 [22:07:28]line Контрольно-Кассовый Чек [22:07:28]line ПРОДАЖА [22:07:28]line ТРК (МРК, ГНК) : 32 [22:07:28]line Товар: 2710124130 [22:07:28]line SU-92 [22:07:28]line 14.620 * 68.40 [22:07:28]line = 1000.01 [22:07:28]line НДС 12% НСП 1% [22:07:28]line > о реализуемом товаре [22:07:28]line ОКРУГЛЕНИЕ: -0.01 [22:07:28]line ИТОГО: 1000.00 [22:07:28]line Внесено: 1000.00 [22:07:28]line СДАЧА: 0.00 [22:07:28]line НСП 1% : 8.85 [22:07:28]line НДС 12% : 106.20 [22:07:28]line Наличными: 1000.00 [22:07:28]line Безнал.: 0.00 [22:07:28]line Место: АЗС № 133 "Партнер Нефть" [22:07:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:07:28]line СНО: Общий режим [22:07:28]line Чек 349 20.10.2024 22:07 [22:07:28]line Смена: 170 ФФД: 1.0 [22:07:28]line ЗНМ: 0300000020 [22:07:28]line РНМ: 0000000000161154 [22:07:28]line Версия ККМ: v1.0 [22:07:28]line ФМ: 0000000000963323 [22:07:28]line ФД: 74023 [22:07:28]line ФПД: 88522773780228 [22:07:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220730&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74023&fm=88522773780228&tin=02508201610067®Number=0000000000161154&sum=100000 [22:07:28]OFD Sender: Processing packet 74023 [packets to send 15, broken 14] [22:07:28]ProducePacketName [22:07:28]name=ofd_packets/00074023 [22:07:28]OFD Sender: To server: pG, [22:07:28]CommunicateWithHost lk.salyk.kg:30040 [22:07:28]ConnectInit lk.salyk.kg [22:07:28]written 0, free lines is 4095 [22:07:28]Connected sock=10 [22:07:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 76 9B 00 01 71 03 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5D 01 00 00 F4 03 04 00 22 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 21 01 00 35 04 06 00 50 82 D0 7C 57 04 35 DA 74 CF 3C 35 FA 04 [22:07:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 25 C0 47 00 B1 33 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 39 36 33 33 32 33 10 04 04 00 27 21 01 00 F4 03 04 00 06 28 15 67 B6 04 01 00 00 F0 93 02 18 1F 83 A2 3F [22:07:28]CommunicateWithHost err = 0 [22:07:28]CheckOFDResponse [22:07:28]1017 (14) - 77093643461234 [22:07:28]1041 (16) - 0000000000963323 [22:07:28]1040 (4) - 74023 [22:07:28]1012 (4) - 20.10.2024 15:55 [22:07:28]1206 (1) - 0 [22:07:28]OFD Sender: Remove packet 74023 [22:07:28]ProducePacketName [22:07:28]name=ofd_packets/00074023 [22:07:28]NVStorageDeleteData [22:07:29]Write to MH i2c: 01 00 00 C3 5C 1F [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 07 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 07 00 C3 5C 00 00 00 00 00 AE 0C E0 [22:07:29]RasterBufferAndPrint [22:07:29]line [22:07:29]line [22:07:29]line [22:07:29]line [22:07:29]line [22:07:29]written 0, free lines is 3250 [22:07:29]MH_Cut [22:07:29]Write to MH i2c: D1 01 00 CA 5C 01 F8 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: D1 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: D1 01 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: D1 01 00 CA 5C 00 F7 [22:07:29]Write to MH i2c: 01 00 00 CB 5C 27 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]OFD Sender: No OFD packet to send [22:07:30]*** Cut start [22:07:30]*** Partial cut [22:07:30]*** CUTSNS_PIN = 1 [22:07:30]*** CUTSNS_PIN = 0 [22:07:30]*** Brake cut motor [22:07:30]Read from MH i2c: 01 [22:07:30]MH_I2C_Read... [22:07:30]*** Stop cut motor [22:07:30]*** Cut end [22:07:30]Read from MH i2c: 01 07 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 CB 5C 00 00 00 00 00 FF 0F 3C [22:07:30]process_action close_receipt done [22:07:30]requested_data is exist [22:07:30]produce_requested_data [22:07:30]requested_item fm.sn is exist - process it [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 11 00 00 [22:07:30]Write to MH i2c: E2 08 00 CC 5C 80 11 00 00 00 00 00 00 A2 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 17 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 17 00 CC 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EF [22:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:07:30]wFMCommunicate OK [22:07:30]requested_item fd.num is exist - process it [22:07:30]SAM_PROTO_GetFieldsCounters [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 13 00 00 [22:07:30]Write to MH i2c: E2 08 00 CD 5C 80 13 00 00 00 00 00 00 A5 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 62 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 62 00 CD 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 27 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [22:07:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 27 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:30]wFMCommunicate OK [22:07:30]SAM_PROTO_GetFieldsCounters done [22:07:30]requested_item shift.num is exist - process it [22:07:30]requested_item shift.opened is exist - process it [22:07:30]req_shift_opened [22:07:30]FM_GetShiftState [22:07:30]SAM_PROTO_GetShiftState [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 13 01 00 [22:07:30]Write to MH i2c: E2 08 00 CE 5C 80 13 01 00 00 00 00 00 A7 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:30]Read from MH i2c: E2 0E 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 0E 00 CE 5C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EC [22:07:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:07:30]wFMCommunicate OK [22:07:30]SAM_PROTO_GetShiftState done [22:07:30]FM_GetShiftState done [22:07:30]req_shift_opened done [22:07:30]requested_item shift.open_date is exist - process it [22:07:30]req_shift_open_date [22:07:30]req_shift_open_date done [22:07:30]produce_requested_data done [22:07:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74023,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:07:30]process_action_free close_receipt [22:07:30]json_value_free [22:07:30]json_value_free done [22:07:30]process_json_proto returns [22:07:30]Send response to host [22:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74023,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:07:30]free response buf [22:07:30]execute_script done [22:07:30]execute_script returns [22:07:30]free content buf [22:07:30]Sock 9.Close socket [22:07:30]Sock 9.Thread stoped [22:07:34]OFD Sender: No OFD packet to send [22:07:34]accept exits with 8 [22:07:34]New connection [22:07:34]New thread 3067575652 created [22:07:34]Thread 3067432292 joined [22:07:34]Waiting for new connection... [22:07:34] Sock 8.Parse request [22:07:34]Sock 8.Check first char [22:07:34]Sock 8.First char is OK [22:07:34]request: POST /json_proto HTTP/1.0 [22:07:34]Method: POST [22:07:34]URL: /json_proto [22:07:34]Method is POST - this is cgi request [22:07:34]url: /json_proto [22:07:34]query_string will be loaded in cgi processing [22:07:34]execute_cgi json_proto POST (null) [22:07:34]execute_cgi path=json_proto method=POST [22:07:34]POST find Content-Length [22:07:34]Host: 172.17.44.196:8080 [22:07:34]Content-Length: 720 [22:07:34]Content-Type: application/json [22:07:34] [22:07:34]POST finish read [22:07:34]Found Content-Length = 720 [22:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 74023, "base_FM": "0000000000963323", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:07:34]execute_script... [22:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 74023, "base_FM": "0000000000963323", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:07:34]POST & json_proto [22:07:34]process_json_proto [22:07:34]json parsed OK: [22:07:34]protocol is kg_v1.0 [22:07:34]action value=close_receipt [22:07:34]process_action close_receipt [22:07:34]cmd_close_receipt [22:07:34]MH_GetDate [22:07:34]Write to MH i2c: F0 00 00 CF 5C 1A [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: F0 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: F0 09 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: F0 09 00 CF 5C 00 2A 7F 15 67 E7 19 F8 65 A5 [22:07:34]GetLastDocTimeStamp 1729462050 [22:07:34]current date 1729462058 [22:07:34]FM_GetShiftState [22:07:34]SAM_PROTO_GetShiftState [22:07:34]wFMCommunicate request_size=4 [22:07:34]MH_SAM_APDU [22:07:34]CAPDU: 80 13 01 00 [22:07:34]Write to MH i2c: E2 08 00 D0 5C 80 13 01 00 00 00 00 00 A9 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:34]Read from MH i2c: E2 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: E2 0E 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: E2 0E 00 D0 5C 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 EE [22:07:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:07:34]wFMCommunicate OK [22:07:34]SAM_PROTO_GetShiftState done [22:07:34]FM_GetShiftState done [22:07:34]opened in 1729384303 [22:07:34]opened+sec_in_day 1729470703 [22:07:34]quantity*price = 100000 [22:07:34]sum+1 = 100002 [22:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 350 20.10.2024 22:07 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФД осн.: 74023 ФМ осн.: 0000000000963323 ФМ: 0000000000963323 ФД: 74024 ФПД: 93876964419812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220738&type=2&operation_type=1&fn_number=0000000000963323&fd_number=74024&fm=93876964419812&tin=02508201610067®Number=0000000000161154&sum=100000 [22:07:36]StoreToDocumentArchive [22:07:36]shift 170 fd 74024 [22:07:36]save to /storage/0170/doc_00074024 [22:07:36]save last doc name /storage/0170/doc_00074024 to /storage/kkm_last_doc_name [22:07:36]save OK [22:07:36]Clear old archive folders... [22:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=272 [22:07:36]tlvbuf is 004EBD60 [22:07:36]SAM_PROTO_ClearQueue [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 09 00 00 [22:07:36]Write to MH i2c: E2 08 00 DF 5C 80 09 00 00 00 00 00 00 AD [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 DF 5C 00 90 00 AF [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_ClearQueue done [22:07:36]KKMCreateOFDPacket [22:07:36]OFDProtocolAddRootSTLVToBuf [22:07:36]FM_MakeSignedData [22:07:36]FM_MakeSignedData [22:07:36]SAM_PROTO_SignData [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 01 02 [22:07:36]Write to MH i2c: E2 08 00 E0 5C 80 0D 01 02 00 00 00 00 B5 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 E0 5C 00 90 00 B0 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]wFMCommunicate request_size=255 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 02 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5E 01 00 00 F4 03 04 00 2A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 27 21 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [22:07:36]Write to MH i2c: E2 02 01 E1 5C 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 02 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5E 01 00 00 F4 03 04 00 2A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 27 21 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 47 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 E1 5C 00 90 00 B1 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]wFMCommunicate request_size=31 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 28 21 01 00 35 04 06 00 55 61 6F 1D E8 E4 [22:07:36]Write to MH i2c: E2 22 00 E2 5C 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 28 21 01 00 35 04 06 00 55 61 6F 1D E8 E4 00 00 35 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 03 00 E2 5C 00 90 00 B2 [22:07:36]RAPDU: 90 00 [22:07:36]wFMCommunicate OK [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 0D 03 02 [22:07:36]Write to MH i2c: E2 08 00 E3 5C 80 0D 03 02 00 00 00 00 BA [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 0B 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 0B 00 E3 5C 00 A7 FC DE 7F 2A 94 A0 F6 90 00 0F [22:07:36]RAPDU: A7 FC DE 7F 2A 94 A0 F6 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_SignData done [22:07:36]FM_MakeSignedData done [22:07:36]CreateOFDProtocolMessage [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 11 00 00 [22:07:36]Write to MH i2c: E2 08 00 E4 5C 80 11 00 00 00 00 00 00 BA [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 17 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 17 00 E4 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [22:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:07:36]wFMCommunicate OK [22:07:36]CreateOFDProtocolMessage done [22:07:36]OFDSenderStorePacket 74024 [22:07:36]StoreOFDPacket docnum=74024 [22:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 4F E1 1C 01 FE EC 5A 03 01 00 03 00 10 01 1E 04 01 00 02 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5E 01 00 00 F4 03 04 00 2A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 27 21 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 21 01 00 35 04 06 00 55 61 6F 1D E8 E4 A7 FC DE 7F 2A 94 A0 F6 [22:07:36]CheckFolder [22:07:36]dirname=/storage/ofd_packets [22:07:36]CheckFolder done [22:07:36]ProducePacketName [22:07:36]name=ofd_packets/00074024 [22:07:36]NVStorageSaveData ofd_packets/00074024 [22:07:36]File name is /storage/ofd_packets/00074024 [22:07:36]Write 322 bytes [22:07:36]NVStorageSaveData done [22:07:36]OFDSenderStorePacket done [22:07:36]KKMCreateOFDPacket done [22:07:36]NVStorageSaveData kkm_last_timestamp [22:07:36]File name is /storage/kkm_last_timestamp [22:07:36]Write 4 bytes [22:07:36]NVStorageSaveData done [22:07:36]ExternCall_PrintAddStr [22:07:36]wPrintStart [22:07:36]Write to MH i2c: 01 00 00 E5 5C 41 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 07 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 07 00 E5 5C 00 00 00 00 00 FF 0F 56 [22:07:36]RasterBufferAndPrint [22:07:36]line Счет N : (1)1963375 [22:07:36]line ИНН: 02508201610067 [22:07:36]line Контрольно-Кассовый Чек [22:07:36]line ВОЗВРАТ ПРОДАЖИ [22:07:36]line ТРК (МРК, ГНК) : 32 [22:07:36]line Товар: 2710124130 [22:07:36]line SU-92 [22:07:36]line 14.620 * 68.40 [22:07:36]line = 1000.01 [22:07:36]line НДС 12% НСП 1% [22:07:36]line > о реализуемом товаре [22:07:36]line ОКРУГЛЕНИЕ: -0.01 [22:07:36]line ИТОГО: 1000.00 [22:07:36]line НСП 1% : 8.85 [22:07:36]line НДС 12% : 106.20 [22:07:36]line Наличными: 1000.00 [22:07:36]line Безнал.: 0.00 [22:07:36]line Место: АЗС № 133 "Партнер Нефть" [22:07:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:07:36]line СНО: Общий режим [22:07:36]line Чек 350 20.10.2024 22:07 [22:07:36]line Смена: 170 ФФД: 1.0 [22:07:36]line ЗНМ: 0300000020 [22:07:36]line РНМ: 0000000000161154 [22:07:36]line Версия ККМ: v1.0 [22:07:36]line ФД осн.: 74023 [22:07:36]line ФМ осн.: 0000000000963323 [22:07:36]line ФМ: 0000000000963323 [22:07:36]line ФД: 74024 [22:07:36]line ФПД: 93876964419812 [22:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220738&type=2&operation_type=1&fn_number=0000000000963323&fd_number=74024&fm=93876964419812&tin=02508201610067®Number=0000000000161154&sum=100000 [22:07:36]written 0, free lines is 4095 [22:07:36]OFD Sender: Processing packet 74024 [packets to send 15, broken 14] [22:07:36]ProducePacketName [22:07:36]name=ofd_packets/00074024 [22:07:36]OFD Sender: To server: pG, [22:07:36]CommunicateWithHost lk.salyk.kg:30040 [22:07:36]ConnectInit lk.salyk.kg [22:07:36]Connected sock=10 [22:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 4F E1 1C 01 FE EC 5A 03 01 00 03 00 10 01 1E 04 01 00 02 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 5E 01 00 00 F4 03 04 00 2A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 27 04 04 00 27 21 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 21 01 00 35 04 06 00 55 61 6F 1D E8 E4 A7 FC DE 7F 2A 94 A0 F6 [22:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5A B6 47 00 F9 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 39 36 33 33 32 33 10 04 04 00 28 21 01 00 F4 03 04 00 0E 28 15 67 B6 04 01 00 00 FD 0C 1B 2F 27 15 A2 A1 [22:07:37]CommunicateWithHost err = 0 [22:07:37]CheckOFDResponse [22:07:37]1017 (14) - 77093643461234 [22:07:37]1041 (16) - 0000000000963323 [22:07:37]1040 (4) - 74024 [22:07:37]1012 (4) - 20.10.2024 15:55 [22:07:37]1206 (1) - 0 [22:07:37]OFD Sender: Remove packet 74024 [22:07:37]ProducePacketName [22:07:37]name=ofd_packets/00074024 [22:07:37]NVStorageDeleteData [22:07:37]Write to MH i2c: 01 00 00 0F 5D 6C [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 07 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: 01 07 00 0F 5D 00 00 00 00 00 BF 0C 3E [22:07:37]RasterBufferAndPrint [22:07:37]line [22:07:37]line [22:07:37]line [22:07:37]line [22:07:37]line [22:07:37]written 0, free lines is 3272 [22:07:37]MH_Cut [22:07:37]Write to MH i2c: D1 01 00 16 5D 01 45 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: D1 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: D1 01 00 [22:07:37]MH_I2C_Read... [22:07:37]Read from MH i2c: D1 01 00 16 5D 00 44 [22:07:37]Write to MH i2c: 01 00 00 17 5D 74 [22:07:37]Write i2c OK [22:07:37]MH_I2C_Read... [22:07:37]OFD Sender: No OFD packet to send [22:07:38]*** Cut start [22:07:38]*** Partial cut [22:07:38]*** CUTSNS_PIN = 1 [22:07:38]*** CUTSNS_PIN = 0 [22:07:38]*** Brake cut motor [22:07:38]Read from MH i2c: 01 [22:07:38]MH_I2C_Read... [22:07:38]*** Stop cut motor [22:07:38]*** Cut end [22:07:38]Read from MH i2c: 01 07 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: 01 07 00 17 5D 00 00 00 00 00 FF 0F 89 [22:07:38]process_action close_receipt done [22:07:38]requested_data is exist [22:07:38]produce_requested_data [22:07:38]requested_item fm.sn is exist - process it [22:07:38]wFMCommunicate request_size=4 [22:07:38]MH_SAM_APDU [22:07:38]CAPDU: 80 11 00 00 [22:07:38]Write to MH i2c: E2 08 00 18 5D 80 11 00 00 00 00 00 00 EF [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:38]Read from MH i2c: E2 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 17 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 17 00 18 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [22:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:07:38]wFMCommunicate OK [22:07:38]requested_item fd.num is exist - process it [22:07:38]SAM_PROTO_GetFieldsCounters [22:07:38]wFMCommunicate request_size=4 [22:07:38]MH_SAM_APDU [22:07:38]CAPDU: 80 13 00 00 [22:07:38]Write to MH i2c: E2 08 00 19 5D 80 13 00 00 00 00 00 00 F2 [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:38]Read from MH i2c: E2 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 62 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 62 00 19 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 28 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [22:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 28 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:39]wFMCommunicate OK [22:07:39]SAM_PROTO_GetFieldsCounters done [22:07:39]requested_item shift.num is exist - process it [22:07:39]requested_item shift.opened is exist - process it [22:07:39]req_shift_opened [22:07:39]FM_GetShiftState [22:07:39]SAM_PROTO_GetShiftState [22:07:39]wFMCommunicate request_size=4 [22:07:39]MH_SAM_APDU [22:07:39]CAPDU: 80 13 01 00 [22:07:39]Write to MH i2c: E2 08 00 1A 5D 80 13 01 00 00 00 00 00 F4 [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:39]Read from MH i2c: E2 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 0E 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 0E 00 1A 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 39 [22:07:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:07:39]wFMCommunicate OK [22:07:39]SAM_PROTO_GetShiftState done [22:07:39]FM_GetShiftState done [22:07:39]req_shift_opened done [22:07:39]requested_item shift.open_date is exist - process it [22:07:39]req_shift_open_date [22:07:39]req_shift_open_date done [22:07:39]produce_requested_data done [22:07:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74024,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:07:39]process_action_free close_receipt [22:07:39]json_value_free [22:07:39]json_value_free done [22:07:39]process_json_proto returns [22:07:39]Send response to host [22:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74024,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:07:39]free response buf [22:07:39]execute_script done [22:07:39]execute_script returns [22:07:39]free content buf [22:07:39]Sock 8.Close socket [22:07:39]Sock 8.Thread stoped [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:02]accept exits with 9 [22:08:02]New connection [22:08:02]New thread 3067432292 created [22:08:02]Thread 3067575652 joined [22:08:02]Waiting for new connection... [22:08:02] Sock 9.Parse request [22:08:02]Sock 9.Check first char [22:08:02]Sock 9.First char is OK [22:08:02]request: POST /json_proto HTTP/1.0 [22:08:02]Method: POST [22:08:02]URL: /json_proto [22:08:02]Method is POST - this is cgi request [22:08:02]url: /json_proto [22:08:02]query_string will be loaded in cgi processing [22:08:02]execute_cgi json_proto POST (null) [22:08:02]execute_cgi path=json_proto method=POST [22:08:02]POST find Content-Length [22:08:02]Host: 172.17.44.196:8080 [22:08:02]Content-Length: 660 [22:08:02]Content-Type: application/json [22:08:02] [22:08:02]POST finish read [22:08:02]Found Content-Length = 660 [22:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:02]execute_script... [22:08: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 : (1)1963374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:02]POST & json_proto [22:08:02]process_json_proto [22:08:02]json parsed OK: [22:08:02]protocol is kg_v1.0 [22:08:02]action value=close_receipt [22:08:02]process_action close_receipt [22:08:02]cmd_close_receipt [22:08:02]MH_GetDate [22:08:02]Write to MH i2c: F0 00 00 1B 5D 67 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: F0 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: F0 09 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: F0 09 00 1B 5D 00 46 7F 15 67 E7 19 F8 65 0E [22:08:02]GetLastDocTimeStamp 1729462058 [22:08:02]current date 1729462086 [22:08:02]FM_GetShiftState [22:08:02]SAM_PROTO_GetShiftState [22:08:02]wFMCommunicate request_size=4 [22:08:02]MH_SAM_APDU [22:08:02]CAPDU: 80 13 01 00 [22:08:02]Write to MH i2c: E2 08 00 1C 5D 80 13 01 00 00 00 00 00 F6 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:02]Read from MH i2c: E2 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 0E 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 0E 00 1C 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 3B [22:08:02]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:08:02]wFMCommunicate OK [22:08:02]SAM_PROTO_GetShiftState done [22:08:02]FM_GetShiftState done [22:08:02]opened in 1729384303 [22:08:02]opened+sec_in_day 1729470703 [22:08:02]quantity*price = 80028 [22:08:02]sum+1 = 80029 [22:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 351 20.10.2024 22:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74025 ФПД: 191114258490746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220806&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74025&fm=191114258490746&tin=02508201610067®Number=0000000000161154&sum=80000 [22:08:04]StoreToDocumentArchive [22:08:04]shift 170 fd 74025 [22:08:04]save to /storage/0170/doc_00074025 [22:08:04]save last doc name /storage/0170/doc_00074025 to /storage/kkm_last_doc_name [22:08:04]save OK [22:08:04]Clear old archive folders... [22:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:08:04]tlvbuf is 003CBE50 [22:08:04]SAM_PROTO_ClearQueue [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 09 00 00 [22:08:04]Write to MH i2c: E2 08 00 29 5D 80 09 00 00 00 00 00 00 F8 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 29 5D 00 90 00 FA [22:08:04]RAPDU: 90 00 [22:08:04]wFMCommunicate OK [22:08:04]SAM_PROTO_ClearQueue done [22:08:04]KKMCreateOFDPacket [22:08:04]OFDProtocolAddRootSTLVToBuf [22:08:04]FM_MakeSignedData [22:08:04]FM_MakeSignedData [22:08:04]SAM_PROTO_SignData [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 0D 01 02 [22:08:04]Write to MH i2c: E2 08 00 2A 5D 80 0D 01 02 00 00 00 00 00 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 2A 5D 00 90 00 FB [22:08:04]RAPDU: 90 00 [22:08:04]wFMCommunicate OK [22:08:04]wFMCommunicate request_size=253 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 46 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 21 01 00 35 04 06 00 AD D1 41 7D 25 7A [22:08:04]Write to MH i2c: E2 00 01 2B 5D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 46 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 21 01 00 35 04 06 00 AD D1 41 7D 25 7A 00 00 2F [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 2B 5D 00 90 00 FC [22:08:04]RAPDU: 90 00 [22:08:04]wFMCommunicate OK [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 0D 03 02 [22:08:04]Write to MH i2c: E2 08 00 2C 5D 80 0D 03 02 00 00 00 00 04 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 0B 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 0B 00 2C 5D 00 01 7A D1 90 58 73 C8 DE 90 00 52 [22:08:04]RAPDU: 01 7A D1 90 58 73 C8 DE 90 00 [22:08:04]wFMCommunicate OK [22:08:04]SAM_PROTO_SignData done [22:08:04]FM_MakeSignedData done [22:08:04]CreateOFDProtocolMessage [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 11 00 00 [22:08:04]Write to MH i2c: E2 08 00 2D 5D 80 11 00 00 00 00 00 00 04 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 17 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 17 00 2D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [22:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:08:04]wFMCommunicate OK [22:08:04]CreateOFDProtocolMessage done [22:08:04]OFDSenderStorePacket 74025 [22:08:04]StoreOFDPacket docnum=74025 [22:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 DE EE 00 01 84 02 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 46 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 21 01 00 35 04 06 00 AD D1 41 7D 25 7A 01 7A D1 90 58 73 C8 DE [22:08:04]CheckFolder [22:08:04]dirname=/storage/ofd_packets [22:08:04]CheckFolder done [22:08:04]ProducePacketName [22:08:04]name=ofd_packets/00074025 [22:08:04]NVStorageSaveData ofd_packets/00074025 [22:08:04]File name is /storage/ofd_packets/00074025 [22:08:04]Write 294 bytes [22:08:04]NVStorageSaveData done [22:08:04]OFDSenderStorePacket done [22:08:04]KKMCreateOFDPacket done [22:08:04]NVStorageSaveData kkm_last_timestamp [22:08:04]File name is /storage/kkm_last_timestamp [22:08:04]Write 4 bytes [22:08:04]NVStorageSaveData done [22:08:04]ExternCall_PrintAddStr [22:08:04]wPrintStart [22:08:04]Write to MH i2c: 01 00 00 2E 5D 8B [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: 01 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: 01 07 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: 01 07 00 2E 5D 00 00 00 00 00 FF 0F A0 [22:08:04]RasterBufferAndPrint [22:08:04]line Счет N : (1)1963374 [22:08:04]line ИНН: 02508201610067 [22:08:04]line Контрольно-Кассовый Чек [22:08:04]line ПРОДАЖА [22:08:04]line ТРК (МРК, ГНК) : 62 [22:08:04]line Товар: 2710124130 [22:08:04]line SU-92 [22:08:04]line 11.700 * 68.40 [22:08:04]line = 800.28 [22:08:04]line НДС 12% НСП 1% [22:08:04]line > о реализуемом товаре [22:08:04]line ОКРУГЛЕНИЕ: -0.28 [22:08:04]line ИТОГО: 800.00 [22:08:04]line Внесено: 800.00 [22:08:04]line СДАЧА: 0.00 [22:08:04]line НСП 1% : 7.08 [22:08:04]line НДС 12% : 84.98 [22:08:04]line Наличными: 800.00 [22:08:04]line Безнал.: 0.00 [22:08:04]line Место: АЗС № 133 "Партнер Нефть" [22:08:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:08:04]line СНО: Общий режим [22:08:04]line Чек 351 20.10.2024 22:08 [22:08:04]line Смена: 170 ФФД: 1.0 [22:08:04]line ЗНМ: 0300000020 [22:08:04]line РНМ: 0000000000161154 [22:08:04]line Версия ККМ: v1.0 [22:08:04]line ФМ: 0000000000963323 [22:08:04]line ФД: 74025 [22:08:04]line ФПД: 191114258490746 [22:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220806&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74025&fm=191114258490746&tin=02508201610067®Number=0000000000161154&sum=80000 [22:08:04]OFD Sender: Processing packet 74025 [packets to send 15, broken 14] [22:08:04]ProducePacketName [22:08:04]name=ofd_packets/00074025 [22:08:04]OFD Sender: To server: pG, [22:08:04]CommunicateWithHost lk.salyk.kg:30040 [22:08:04]ConnectInit lk.salyk.kg [22:08:04]written 0, free lines is 4095 [22:08:04]Connected sock=10 [22:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 DE EE 00 01 84 02 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 46 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 21 01 00 35 04 06 00 AD D1 41 7D 25 7A 01 7A D1 90 58 73 C8 DE [22:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 89 2E 47 00 A2 EF 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 39 36 33 33 32 33 10 04 04 00 29 21 01 00 F4 03 04 00 2A 28 15 67 B6 04 01 00 00 3F 5A 1A B7 F2 1F B6 59 [22:08:05]CommunicateWithHost err = 0 [22:08:05]CheckOFDResponse [22:08:05]1017 (14) - 77093643461234 [22:08:05]1041 (16) - 0000000000963323 [22:08:05]1040 (4) - 74025 [22:08:05]1012 (4) - 20.10.2024 15:56 [22:08:05]1206 (1) - 0 [22:08:05]OFD Sender: Remove packet 74025 [22:08:05]ProducePacketName [22:08:05]name=ofd_packets/00074025 [22:08:05]NVStorageDeleteData [22:08:05]Write to MH i2c: 01 00 00 58 5D B5 [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: 01 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: 01 07 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: 01 07 00 58 5D 00 00 00 00 00 AD 0C 75 [22:08:05]RasterBufferAndPrint [22:08:05]line [22:08:05]line [22:08:05]line [22:08:05]line [22:08:05]line [22:08:05]written 0, free lines is 3248 [22:08:05]MH_Cut [22:08:05]Write to MH i2c: D1 01 00 5F 5D 01 8E [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: D1 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: D1 01 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: D1 01 00 5F 5D 00 8D [22:08:05]Write to MH i2c: 01 00 00 60 5D BD [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]OFD Sender: No OFD packet to send [22:08:06]*** Cut start [22:08:06]*** Partial cut [22:08:06]*** CUTSNS_PIN = 1 [22:08:06]*** CUTSNS_PIN = 0 [22:08:06]*** Brake cut motor [22:08:06]Read from MH i2c: 01 [22:08:06]MH_I2C_Read... [22:08:06]*** Stop cut motor [22:08:06]*** Cut end [22:08:06]Read from MH i2c: 01 07 00 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: 01 07 00 60 5D 00 00 00 00 00 FF 0F D2 [22:08:06]process_action close_receipt done [22:08:06]requested_data is exist [22:08:06]produce_requested_data [22:08:06]requested_item fm.sn is exist - process it [22:08:06]wFMCommunicate request_size=4 [22:08:06]MH_SAM_APDU [22:08:06]CAPDU: 80 11 00 00 [22:08:06]Write to MH i2c: E2 08 00 61 5D 80 11 00 00 00 00 00 00 38 [22:08:06]Write i2c OK [22:08:06]MH_I2C_Read... [22:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:06]Read from MH i2c: E2 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: E2 17 00 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: E2 17 00 61 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 85 [22:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:08:06]wFMCommunicate OK [22:08:06]requested_item fd.num is exist - process it [22:08:06]SAM_PROTO_GetFieldsCounters [22:08:06]wFMCommunicate request_size=4 [22:08:06]MH_SAM_APDU [22:08:06]CAPDU: 80 13 00 00 [22:08:06]Write to MH i2c: E2 08 00 62 5D 80 13 00 00 00 00 00 00 3B [22:08:06]Write i2c OK [22:08:06]MH_I2C_Read... [22:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:06]Read from MH i2c: E2 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: E2 62 00 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: E2 62 00 62 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 29 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [22:08:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 29 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:06]wFMCommunicate OK [22:08:06]SAM_PROTO_GetFieldsCounters done [22:08:06]requested_item shift.num is exist - process it [22:08:06]requested_item shift.opened is exist - process it [22:08:06]req_shift_opened [22:08:06]FM_GetShiftState [22:08:06]SAM_PROTO_GetShiftState [22:08:06]wFMCommunicate request_size=4 [22:08:06]MH_SAM_APDU [22:08:06]CAPDU: 80 13 01 00 [22:08:06]Write to MH i2c: E2 08 00 63 5D 80 13 01 00 00 00 00 00 3D [22:08:06]Write i2c OK [22:08:06]MH_I2C_Read... [22:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:07]Read from MH i2c: E2 [22:08:07]MH_I2C_Read... [22:08:07]Read from MH i2c: E2 0E 00 [22:08:07]MH_I2C_Read... [22:08:07]Read from MH i2c: E2 0E 00 63 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 82 [22:08:07]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:08:07]wFMCommunicate OK [22:08:07]SAM_PROTO_GetShiftState done [22:08:07]FM_GetShiftState done [22:08:07]req_shift_opened done [22:08:07]requested_item shift.open_date is exist - process it [22:08:07]req_shift_open_date [22:08:07]req_shift_open_date done [22:08:07]produce_requested_data done [22:08:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74025,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:08:07]process_action_free close_receipt [22:08:07]json_value_free [22:08:07]json_value_free done [22:08:07]process_json_proto returns [22:08:07]Send response to host [22:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74025,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:08:07]free response buf [22:08:07]execute_script done [22:08:07]execute_script returns [22:08:07]free content buf [22:08:07]Sock 9.Close socket [22:08:07]Sock 9.Thread stoped [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:54]accept exits with 8 [22:08:54]New connection [22:08:54]New thread 3067575652 created [22:08:54]Thread 3067432292 joined [22:08:54]Waiting for new connection... [22:08:54] Sock 8.Parse request [22:08:54]Sock 8.Check first char [22:08:54]Sock 8.First char is OK [22:08:54]request: POST /json_proto HTTP/1.0 [22:08:54]Method: POST [22:08:54]URL: /json_proto [22:08:54]Method is POST - this is cgi request [22:08:54]url: /json_proto [22:08:54]query_string will be loaded in cgi processing [22:08:54]execute_cgi json_proto POST (null) [22:08:54]execute_cgi path=json_proto method=POST [22:08:54]POST find Content-Length [22:08:54]Host: 172.17.44.196:8080 [22:08:54]Content-Length: 664 [22:08:54]Content-Type: application/json [22:08:54] [22:08:54]POST finish read [22:08:54]Found Content-Length = 664 [22:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:08:54]execute_script... [22:08: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)1963376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:08:54]POST & json_proto [22:08:54]process_json_proto [22:08:54]json parsed OK: [22:08:54]protocol is kg_v1.0 [22:08:54]action value=close_receipt [22:08:54]process_action close_receipt [22:08:54]cmd_close_receipt [22:08:54]MH_GetDate [22:08:54]Write to MH i2c: F0 00 00 64 5D B0 [22:08:54]Write i2c OK [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: F0 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: F0 09 00 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: F0 09 00 64 5D 00 79 7F 15 67 E7 19 F8 65 8A [22:08:54]GetLastDocTimeStamp 1729462086 [22:08:54]current date 1729462137 [22:08:54]FM_GetShiftState [22:08:54]SAM_PROTO_GetShiftState [22:08:54]wFMCommunicate request_size=4 [22:08:54]MH_SAM_APDU [22:08:54]CAPDU: 80 13 01 00 [22:08:54]Write to MH i2c: E2 08 00 65 5D 80 13 01 00 00 00 00 00 3F [22:08:54]Write i2c OK [22:08:54]MH_I2C_Read... [22:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:54]Read from MH i2c: E2 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: E2 0E 00 [22:08:54]MH_I2C_Read... [22:08:54]Read from MH i2c: E2 0E 00 65 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 84 [22:08:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:08:54]wFMCommunicate OK [22:08:54]SAM_PROTO_GetShiftState done [22:08:54]FM_GetShiftState done [22:08:54]opened in 1729384303 [22:08:54]opened+sec_in_day 1729470703 [22:08:54]quantity*price = 100000 [22:08:54]sum+1 = 100002 [22:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 352 20.10.2024 22:08 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74026 ФПД: 271642607107276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220858&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74026&fm=271642607107276&tin=02508201610067®Number=0000000000161154&sum=100000 [22:08:55]StoreToDocumentArchive [22:08:55]shift 170 fd 74026 [22:08:55]save to /storage/0170/doc_00074026 [22:08:55]save last doc name /storage/0170/doc_00074026 to /storage/kkm_last_doc_name [22:08:55]save OK [22:08:55]Clear old archive folders... [22:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:08:55]tlvbuf is 003CBC90 [22:08:55]SAM_PROTO_ClearQueue [22:08:55]wFMCommunicate request_size=4 [22:08:55]MH_SAM_APDU [22:08:55]CAPDU: 80 09 00 00 [22:08:55]Write to MH i2c: E2 08 00 72 5D 80 09 00 00 00 00 00 00 41 [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:55]Read from MH i2c: E2 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 03 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 03 00 72 5D 00 90 00 43 [22:08:55]RAPDU: 90 00 [22:08:55]wFMCommunicate OK [22:08:55]SAM_PROTO_ClearQueue done [22:08:55]KKMCreateOFDPacket [22:08:55]OFDProtocolAddRootSTLVToBuf [22:08:55]FM_MakeSignedData [22:08:55]FM_MakeSignedData [22:08:55]SAM_PROTO_SignData [22:08:55]wFMCommunicate request_size=4 [22:08:55]MH_SAM_APDU [22:08:55]CAPDU: 80 0D 01 02 [22:08:55]Write to MH i2c: E2 08 00 73 5D 80 0D 01 02 00 00 00 00 49 [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:55]Read from MH i2c: E2 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 03 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 03 00 73 5D 00 90 00 44 [22:08:55]RAPDU: 90 00 [22:08:55]wFMCommunicate OK [22:08:55]wFMCommunicate request_size=253 [22:08:55]MH_SAM_APDU [22:08:55]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 60 01 00 00 F4 03 04 00 7A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 21 01 00 35 04 06 00 F7 0E B9 1A 3C CC [22:08:55]Write to MH i2c: E2 00 01 74 5D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 60 01 00 00 F4 03 04 00 7A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 21 01 00 35 04 06 00 F7 0E B9 1A 3C CC 00 00 5A [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:55]Read from MH i2c: E2 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 03 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 03 00 74 5D 00 90 00 45 [22:08:55]RAPDU: 90 00 [22:08:55]wFMCommunicate OK [22:08:55]wFMCommunicate request_size=4 [22:08:55]MH_SAM_APDU [22:08:55]CAPDU: 80 0D 03 02 [22:08:55]Write to MH i2c: E2 08 00 75 5D 80 0D 03 02 00 00 00 00 4D [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:55]Read from MH i2c: E2 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 0B 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 0B 00 75 5D 00 EF A1 55 3B 90 BC 08 5F 90 00 21 [22:08:55]RAPDU: EF A1 55 3B 90 BC 08 5F 90 00 [22:08:55]wFMCommunicate OK [22:08:55]SAM_PROTO_SignData done [22:08:55]FM_MakeSignedData done [22:08:55]CreateOFDProtocolMessage [22:08:55]wFMCommunicate request_size=4 [22:08:55]MH_SAM_APDU [22:08:55]CAPDU: 80 11 00 00 [22:08:55]Write to MH i2c: E2 08 00 76 5D 80 11 00 00 00 00 00 00 4D [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:55]Read from MH i2c: E2 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 17 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: E2 17 00 76 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [22:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:08:55]wFMCommunicate OK [22:08:55]CreateOFDProtocolMessage done [22:08:55]OFDSenderStorePacket 74026 [22:08:55]StoreOFDPacket docnum=74026 [22:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 68 A2 00 01 9A 2E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 60 01 00 00 F4 03 04 00 7A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 21 01 00 35 04 06 00 F7 0E B9 1A 3C CC EF A1 55 3B 90 BC 08 5F [22:08:55]CheckFolder [22:08:55]dirname=/storage/ofd_packets [22:08:55]CheckFolder done [22:08:55]ProducePacketName [22:08:55]name=ofd_packets/00074026 [22:08:55]NVStorageSaveData ofd_packets/00074026 [22:08:55]File name is /storage/ofd_packets/00074026 [22:08:55]Write 294 bytes [22:08:55]NVStorageSaveData done [22:08:55]OFDSenderStorePacket done [22:08:55]KKMCreateOFDPacket done [22:08:55]NVStorageSaveData kkm_last_timestamp [22:08:55]File name is /storage/kkm_last_timestamp [22:08:55]Write 4 bytes [22:08:55]NVStorageSaveData done [22:08:55]ExternCall_PrintAddStr [22:08:55]wPrintStart [22:08:55]Write to MH i2c: 01 00 00 77 5D D4 [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: 01 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: 01 07 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: 01 07 00 77 5D 00 00 00 00 00 FF 0F E9 [22:08:55]RasterBufferAndPrint [22:08:55]line Счет N : (1)1963376 [22:08:55]line ИНН: 02508201610067 [22:08:55]line Контрольно-Кассовый Чек [22:08:55]line ПРОДАЖА [22:08:55]line ТРК (МРК, ГНК) : 42 [22:08:55]line Товар: 2710124130 [22:08:55]line SU-92 [22:08:55]line 14.620 * 68.40 [22:08:55]line = 1000.01 [22:08:55]line НДС 12% НСП 1% [22:08:55]line > о реализуемом товаре [22:08:55]line ОКРУГЛЕНИЕ: -0.01 [22:08:55]line ИТОГО: 1000.00 [22:08:55]line Внесено: 1000.00 [22:08:55]line СДАЧА: 0.00 [22:08:55]line НСП 1% : 8.85 [22:08:55]line НДС 12% : 106.20 [22:08:55]line Наличными: 1000.00 [22:08:55]line Безнал.: 0.00 [22:08:55]line Место: АЗС № 133 "Партнер Нефть" [22:08:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:08:55]line СНО: Общий режим [22:08:55]line Чек 352 20.10.2024 22:08 [22:08:55]line Смена: 170 ФФД: 1.0 [22:08:55]line ЗНМ: 0300000020 [22:08:55]line РНМ: 0000000000161154 [22:08:55]line Версия ККМ: v1.0 [22:08:55]line ФМ: 0000000000963323 [22:08:55]line ФД: 74026 [22:08:55]line ФПД: 271642607107276 [22:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220858&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74026&fm=271642607107276&tin=02508201610067®Number=0000000000161154&sum=100000 [22:08:56]OFD Sender: Processing packet 74026 [packets to send 15, broken 14] [22:08:56]ProducePacketName [22:08:56]name=ofd_packets/00074026 [22:08:56]OFD Sender: To server: pG, [22:08:56]CommunicateWithHost lk.salyk.kg:30040 [22:08:56]ConnectInit lk.salyk.kg [22:08:56]written 0, free lines is 4095 [22:08:56]Connected sock=10 [22:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 68 A2 00 01 9A 2E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 60 01 00 00 F4 03 04 00 7A 7F 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 21 01 00 35 04 06 00 F7 0E B9 1A 3C CC EF A1 55 3B 90 BC 08 5F [22:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3B FA 47 00 C9 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 39 36 33 33 32 33 10 04 04 00 2A 21 01 00 F4 03 04 00 5D 28 15 67 B6 04 01 00 00 F4 05 F6 64 7B 23 13 81 [22:08:56]CommunicateWithHost err = 0 [22:08:56]CheckOFDResponse [22:08:56]1017 (14) - 77093643461234 [22:08:56]1041 (16) - 0000000000963323 [22:08:56]1040 (4) - 74026 [22:08:56]1012 (4) - 20.10.2024 15:57 [22:08:56]1206 (1) - 0 [22:08:56]OFD Sender: Remove packet 74026 [22:08:56]ProducePacketName [22:08:56]name=ofd_packets/00074026 [22:08:56]NVStorageDeleteData [22:08:56]Write to MH i2c: 01 00 00 A1 5D FE [22:08:56]Write i2c OK [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: 01 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: 01 07 00 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: 01 07 00 A1 5D 00 00 00 00 00 AB 0C BC [22:08:56]RasterBufferAndPrint [22:08:56]line [22:08:56]line [22:08:56]line [22:08:56]line [22:08:56]line [22:08:56]written 0, free lines is 3248 [22:08:56]MH_Cut [22:08:56]Write to MH i2c: D1 01 00 A8 5D 01 D7 [22:08:56]Write i2c OK [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: D1 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: D1 01 00 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: D1 01 00 A8 5D 00 D6 [22:08:56]Write to MH i2c: 01 00 00 A9 5D 06 [22:08:56]Write i2c OK [22:08:56]MH_I2C_Read... [22:08:56]OFD Sender: No OFD packet to send [22:08:57]*** Cut start [22:08:57]*** Partial cut [22:08:57]*** CUTSNS_PIN = 1 [22:08:57]*** CUTSNS_PIN = 0 [22:08:57]*** Brake cut motor [22:08:58]Read from MH i2c: 01 [22:08:58]MH_I2C_Read... [22:08:58]*** Stop cut motor [22:08:58]*** Cut end [22:08:58]Read from MH i2c: 01 07 00 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: 01 07 00 A9 5D 00 00 00 00 00 FF 0F 1B [22:08:58]process_action close_receipt done [22:08:58]requested_data is exist [22:08:58]produce_requested_data [22:08:58]requested_item fm.sn is exist - process it [22:08:58]wFMCommunicate request_size=4 [22:08:58]MH_SAM_APDU [22:08:58]CAPDU: 80 11 00 00 [22:08:58]Write to MH i2c: E2 08 00 AA 5D 80 11 00 00 00 00 00 00 81 [22:08:58]Write i2c OK [22:08:58]MH_I2C_Read... [22:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:58]Read from MH i2c: E2 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 17 00 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 17 00 AA 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [22:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:08:58]wFMCommunicate OK [22:08:58]requested_item fd.num is exist - process it [22:08:58]SAM_PROTO_GetFieldsCounters [22:08:58]wFMCommunicate request_size=4 [22:08:58]MH_SAM_APDU [22:08:58]CAPDU: 80 13 00 00 [22:08:58]Write to MH i2c: E2 08 00 AB 5D 80 13 00 00 00 00 00 00 84 [22:08:58]Write i2c OK [22:08:58]MH_I2C_Read... [22:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:58]Read from MH i2c: E2 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 62 00 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 62 00 AB 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2A 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [22:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2A 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:58]wFMCommunicate OK [22:08:58]SAM_PROTO_GetFieldsCounters done [22:08:58]requested_item shift.num is exist - process it [22:08:58]requested_item shift.opened is exist - process it [22:08:58]req_shift_opened [22:08:58]FM_GetShiftState [22:08:58]SAM_PROTO_GetShiftState [22:08:58]wFMCommunicate request_size=4 [22:08:58]MH_SAM_APDU [22:08:58]CAPDU: 80 13 01 00 [22:08:58]Write to MH i2c: E2 08 00 AC 5D 80 13 01 00 00 00 00 00 86 [22:08:58]Write i2c OK [22:08:58]MH_I2C_Read... [22:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:58]Read from MH i2c: E2 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 0E 00 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 0E 00 AC 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CB [22:08:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:08:58]wFMCommunicate OK [22:08:58]SAM_PROTO_GetShiftState done [22:08:58]FM_GetShiftState done [22:08:58]req_shift_opened done [22:08:58]requested_item shift.open_date is exist - process it [22:08:58]req_shift_open_date [22:08:58]req_shift_open_date done [22:08:58]produce_requested_data done [22:08:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74026,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:08:58]process_action_free close_receipt [22:08:58]json_value_free [22:08:58]json_value_free done [22:08:58]process_json_proto returns [22:08:58]Send response to host [22:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74026,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:08:58]free response buf [22:08:58]execute_script done [22:08:58]execute_script returns [22:08:58]free content buf [22:08:58]Sock 8.Close socket [22:08:58]Sock 8.Thread stoped [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:30]accept exits with 9 [22:12:30]New connection [22:12:30]New thread 3067432292 created [22:12:30]Thread 3067575652 joined [22:12:30]Waiting for new connection... [22:12:30] Sock 9.Parse request [22:12:30]Sock 9.Check first char [22:12:30]Sock 9.First char is OK [22:12:30]request: POST /json_proto HTTP/1.0 [22:12:30]Method: POST [22:12:30]URL: /json_proto [22:12:30]Method is POST - this is cgi request [22:12:30]url: /json_proto [22:12:30]query_string will be loaded in cgi processing [22:12:30]execute_cgi json_proto POST (null) [22:12:30]execute_cgi path=json_proto method=POST [22:12:30]POST find Content-Length [22:12:30]Host: 172.17.44.196:8080 [22:12:30]Content-Length: 678 [22:12:30]Content-Type: application/json [22:12:30] [22:12:30]POST finish read [22:12:30]Found Content-Length = 678 [22:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [22:12:30]execute_script... [22: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 : (1)1963377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [22:12:30]POST & json_proto [22:12:30]process_json_proto [22:12:30]json parsed OK: [22:12:30]protocol is kg_v1.0 [22:12:30]action value=close_receipt [22:12:30]process_action close_receipt [22:12:30]cmd_close_receipt [22:12:30]MH_GetDate [22:12:30]Write to MH i2c: F0 00 00 AD 5D F9 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: F0 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: F0 09 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: F0 09 00 AD 5D 00 52 80 15 67 E7 19 F8 65 AD [22:12:30]GetLastDocTimeStamp 1729462138 [22:12:30]current date 1729462354 [22:12:30]FM_GetShiftState [22:12:30]SAM_PROTO_GetShiftState [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 13 01 00 [22:12:30]Write to MH i2c: E2 08 00 AE 5D 80 13 01 00 00 00 00 00 88 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0E 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0E 00 AE 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 CD [22:12:30]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_GetShiftState done [22:12:30]FM_GetShiftState done [22:12:30]opened in 1729384303 [22:12:30]opened+sec_in_day 1729470703 [22:12:30]quantity*price = 50010 [22:12:30]sum+1 = 50012 [22:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 353 20.10.2024 22:12 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74027 ФПД: 157841592830330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221234&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74027&fm=157841592830330&tin=02508201610067®Number=0000000000161154&sum=50000 [22:12:31]StoreToDocumentArchive [22:12:31]shift 170 fd 74027 [22:12:31]save to /storage/0170/doc_00074027 [22:12:31]save last doc name /storage/0170/doc_00074027 to /storage/kkm_last_doc_name [22:12:31]save OK [22:12:31]Clear old archive folders... [22:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:31]tlvbuf is 0039B570 [22:12:31]SAM_PROTO_ClearQueue [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 09 00 00 [22:12:31]Write to MH i2c: E2 08 00 BB 5D 80 09 00 00 00 00 00 00 8A [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 BB 5D 00 90 00 8C [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_ClearQueue done [22:12:31]KKMCreateOFDPacket [22:12:31]OFDProtocolAddRootSTLVToBuf [22:12:31]FM_MakeSignedData [22:12:31]FM_MakeSignedData [22:12:31]SAM_PROTO_SignData [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 01 02 [22:12:31]Write to MH i2c: E2 08 00 BC 5D 80 0D 01 02 00 00 00 00 92 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 BC 5D 00 90 00 8D [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=255 [22:12:31]MH_SAM_APDU [22:12:31]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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 61 01 00 00 F4 03 04 00 52 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 21 01 00 35 04 06 00 8F [22:12:31]Write to MH i2c: E2 02 01 BD 5D 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 61 01 00 00 F4 03 04 00 52 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 21 01 00 35 04 06 00 8F 00 00 22 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 BD 5D 00 90 00 8E [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=10 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 02 02 05 8E 5C 12 49 7A [22:12:31]Write to MH i2c: E2 0D 00 BE 5D 80 0D 02 02 05 00 8E 5C 12 49 7A 00 00 5E [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 BE 5D 00 90 00 8F [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 03 02 [22:12:31]Write to MH i2c: E2 08 00 BF 5D 80 0D 03 02 00 00 00 00 97 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0B 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0B 00 BF 5D 00 55 5A 5C E9 E1 B7 0E 9A 90 00 CC [22:12:32]RAPDU: 55 5A 5C E9 E1 B7 0E 9A 90 00 [22:12:32]wFMCommunicate OK [22:12:32]SAM_PROTO_SignData done [22:12:32]FM_MakeSignedData done [22:12:32]CreateOFDProtocolMessage [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 11 00 00 [22:12:32]Write to MH i2c: E2 08 00 C0 5D 80 11 00 00 00 00 00 00 97 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 17 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 17 00 C0 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E4 [22:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:12:32]wFMCommunicate OK [22:12:32]CreateOFDProtocolMessage done [22:12:32]OFDSenderStorePacket 74027 [22:12:32]StoreOFDPacket docnum=74027 [22:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FF D6 07 01 01 12 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 61 01 00 00 F4 03 04 00 52 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 21 01 00 35 04 06 00 8F 8E 5C 12 49 7A 55 5A 5C E9 E1 B7 0E 9A [22:12:32]CheckFolder [22:12:32]dirname=/storage/ofd_packets [22:12:32]CheckFolder done [22:12:32]ProducePacketName [22:12:32]name=ofd_packets/00074027 [22:12:32]NVStorageSaveData ofd_packets/00074027 [22:12:32]File name is /storage/ofd_packets/00074027 [22:12:32]Write 301 bytes [22:12:32]NVStorageSaveData done [22:12:32]OFDSenderStorePacket done [22:12:32]KKMCreateOFDPacket done [22:12:32]NVStorageSaveData kkm_last_timestamp [22:12:32]File name is /storage/kkm_last_timestamp [22:12:32]Write 4 bytes [22:12:32]NVStorageSaveData done [22:12:32]ExternCall_PrintAddStr [22:12:32]wPrintStart [22:12:32]Write to MH i2c: 01 00 00 C1 5D 1E [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 C1 5D 00 00 00 00 00 FF 0F 33 [22:12:32]RasterBufferAndPrint [22:12:32]line Счет N : (1)1963377 [22:12:32]line ИНН: 02508201610067 [22:12:32]line Контрольно-Кассовый Чек [22:12:32]line ПРОДАЖА [22:12:32]line ТРК (МРК, ГНК) : 54 [22:12:32]line Товар: 2710124500 [22:12:32]line Аи-95-К-5 [22:12:32]line 6.740 * 74.20 [22:12:32]line = 500.11 [22:12:32]line НДС 12% НСП 1% [22:12:32]line > о реализуемом товаре [22:12:32]line ОКРУГЛЕНИЕ: -0.11 [22:12:32]line ИТОГО: 500.00 [22:12:32]line Внесено: 500.00 [22:12:32]line СДАЧА: 0.00 [22:12:32]line НСП 1% : 4.43 [22:12:32]line НДС 12% : 53.11 [22:12:32]line Наличными: 500.00 [22:12:32]line Безнал.: 0.00 [22:12:32]line Место: АЗС № 133 "Партнер Нефть" [22:12:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:12:32]line СНО: Общий режим [22:12:32]line Чек 353 20.10.2024 22:12 [22:12:32]line Смена: 170 ФФД: 1.0 [22:12:32]line ЗНМ: 0300000020 [22:12:32]line РНМ: 0000000000161154 [22:12:32]line Версия ККМ: v1.0 [22:12:32]line ФМ: 0000000000963323 [22:12:32]line ФД: 74027 [22:12:32]line ФПД: 157841592830330 [22:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221234&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74027&fm=157841592830330&tin=02508201610067®Number=0000000000161154&sum=50000 [22:12:32]OFD Sender: Processing packet 74027 [packets to send 15, broken 14] [22:12:32]ProducePacketName [22:12:32]name=ofd_packets/00074027 [22:12:32]OFD Sender: To server: pG, [22:12:32]CommunicateWithHost lk.salyk.kg:30040 [22:12:32]ConnectInit lk.salyk.kg [22:12:32]written 0, free lines is 4095 [22:12:32]Connected sock=10 [22:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FF D6 07 01 01 12 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 61 01 00 00 F4 03 04 00 52 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 21 01 00 35 04 06 00 8F 8E 5C 12 49 7A 55 5A 5C E9 E1 B7 0E 9A [22:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4C 81 47 00 D7 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 39 36 33 33 32 33 10 04 04 00 2B 21 01 00 F4 03 04 00 35 29 15 67 B6 04 01 00 00 A2 2E 77 07 52 8C 9A F2 [22:12:32]CommunicateWithHost err = 0 [22:12:32]CheckOFDResponse [22:12:32]1017 (14) - 77093643461234 [22:12:32]1041 (16) - 0000000000963323 [22:12:32]1040 (4) - 74027 [22:12:32]1012 (4) - 20.10.2024 16:00 [22:12:32]1206 (1) - 0 [22:12:32]OFD Sender: Remove packet 74027 [22:12:32]ProducePacketName [22:12:32]name=ofd_packets/00074027 [22:12:32]NVStorageDeleteData [22:12:32]Write to MH i2c: 01 00 00 EB 5D 48 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 EB 5D 00 00 00 00 00 AA 0C 05 [22:12:32]RasterBufferAndPrint [22:12:32]line [22:12:32]line [22:12:32]line [22:12:32]line [22:12:32]line [22:12:32]written 0, free lines is 3246 [22:12:32]MH_Cut [22:12:32]Write to MH i2c: D1 01 00 F2 5D 01 21 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: D1 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: D1 01 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: D1 01 00 F2 5D 00 20 [22:12:32]Write to MH i2c: 01 00 00 F3 5D 50 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:33]OFD Sender: No OFD packet to send [22:12:33]*** Cut start [22:12:33]*** Partial cut [22:12:33]*** CUTSNS_PIN = 1 [22:12:33]*** CUTSNS_PIN = 0 [22:12:34]*** Brake cut motor [22:12:34]Read from MH i2c: 01 [22:12:34]MH_I2C_Read... [22:12:34]*** Stop cut motor [22:12:34]*** Cut end [22:12:34]Read from MH i2c: 01 07 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: 01 07 00 F3 5D 00 00 00 00 00 FF 0F 65 [22:12:34]process_action close_receipt done [22:12:34]requested_data is exist [22:12:34]produce_requested_data [22:12:34]requested_item fm.sn is exist - process it [22:12:34]wFMCommunicate request_size=4 [22:12:34]MH_SAM_APDU [22:12:34]CAPDU: 80 11 00 00 [22:12:34]Write to MH i2c: E2 08 00 F4 5D 80 11 00 00 00 00 00 00 CB [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:34]Read from MH i2c: E2 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 17 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 17 00 F4 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [22:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:12:34]wFMCommunicate OK [22:12:34]requested_item fd.num is exist - process it [22:12:34]SAM_PROTO_GetFieldsCounters [22:12:34]wFMCommunicate request_size=4 [22:12:34]MH_SAM_APDU [22:12:34]CAPDU: 80 13 00 00 [22:12:34]Write to MH i2c: E2 08 00 F5 5D 80 13 00 00 00 00 00 00 CE [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:34]Read from MH i2c: E2 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 62 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 62 00 F5 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2B 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [22:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2B 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:34]wFMCommunicate OK [22:12:34]SAM_PROTO_GetFieldsCounters done [22:12:34]requested_item shift.num is exist - process it [22:12:34]requested_item shift.opened is exist - process it [22:12:34]req_shift_opened [22:12:34]FM_GetShiftState [22:12:34]SAM_PROTO_GetShiftState [22:12:34]wFMCommunicate request_size=4 [22:12:34]MH_SAM_APDU [22:12:34]CAPDU: 80 13 01 00 [22:12:34]Write to MH i2c: E2 08 00 F6 5D 80 13 01 00 00 00 00 00 D0 [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:34]Read from MH i2c: E2 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 0E 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 0E 00 F6 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 15 [22:12:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:12:34]wFMCommunicate OK [22:12:34]SAM_PROTO_GetShiftState done [22:12:34]FM_GetShiftState done [22:12:34]req_shift_opened done [22:12:34]requested_item shift.open_date is exist - process it [22:12:34]req_shift_open_date [22:12:34]req_shift_open_date done [22:12:34]produce_requested_data done [22:12:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74027,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:12:34]process_action_free close_receipt [22:12:34]json_value_free [22:12:34]json_value_free done [22:12:34]process_json_proto returns [22:12:34]Send response to host [22:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74027,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:12:34]free response buf [22:12:34]execute_script done [22:12:34]execute_script returns [22:12:34]free content buf [22:12:34]Sock 9.Close socket [22:12:34]Sock 9.Thread stoped [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]accept exits with 8 [22:14:53]New connection [22:14:53]New thread 3067575652 created [22:14:53]Thread 3067432292 joined [22:14:53]Waiting for new connection... [22:14:53] Sock 8.Parse request [22:14:53]Sock 8.Check first char [22:14:53]Sock 8.First char is OK [22:14:53]request: POST /json_proto HTTP/1.0 [22:14:53]Method: POST [22:14:53]URL: /json_proto [22:14:53]Method is POST - this is cgi request [22:14:53]url: /json_proto [22:14:53]query_string will be loaded in cgi processing [22:14:53]execute_cgi json_proto POST (null) [22:14:53]execute_cgi path=json_proto method=POST [22:14:53]POST find Content-Length [22:14:53]Host: 172.17.44.196:8080 [22:14:53]Content-Length: 1539 [22:14:53]Content-Type: application/json [22:14:53] [22:14:53]POST finish read [22:14:53]Found Content-Length = 1539 [22:14:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272862", "tax_sys" : 0, "items" : [ { "code": "4860103356611", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,5\u043B \u0441\u0442", "price" : 260.00, "quantity" : 2.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "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 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 771.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:53]execute_script... [22:14: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)272862", "tax_sys" : 0, "items" : [ { "code": "4860103356611", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,5\u043B \u0441\u0442", "price" : 260.00, "quantity" : 2.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "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 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 771.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:53]POST & json_proto [22:14:53]process_json_proto [22:14:53]json parsed OK: [22:14:53]protocol is kg_v1.0 [22:14:53]action value=close_receipt [22:14:53]process_action close_receipt [22:14:53]cmd_close_receipt [22:14:53]MH_GetDate [22:14:53]Write to MH i2c: F0 00 00 F7 5D 43 [22:14:53]Write i2c OK [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: F0 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: F0 09 00 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: F0 09 00 F7 5D 00 E1 80 15 67 E7 19 F8 65 86 [22:14:53]GetLastDocTimeStamp 1729462354 [22:14:53]current date 1729462497 [22:14:53]FM_GetShiftState [22:14:53]SAM_PROTO_GetShiftState [22:14:53]wFMCommunicate request_size=4 [22:14:53]MH_SAM_APDU [22:14:53]CAPDU: 80 13 01 00 [22:14:53]Write to MH i2c: E2 08 00 F8 5D 80 13 01 00 00 00 00 00 D2 [22:14:53]OFD Sender: No OFD packet to send [22:14:53]Write i2c OK [22:14:53]MH_I2C_Read... [22:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:53]Read from MH i2c: E2 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 0E 00 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 0E 00 F8 5D 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 17 [22:14:53]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:14:53]wFMCommunicate OK [22:14:53]SAM_PROTO_GetShiftState done [22:14:53]FM_GetShiftState done [22:14:53]opened in 1729384303 [22:14:53]opened+sec_in_day 1729470703 [22:14:53]quantity*price = 52000 [22:14:53]sum+1 = 52001 [22:14:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54492509 Напиток Кока-Кола 0,25л 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 771.00 НСП 1% : 6.81 НДС 12% : 81.86 Наличными: 771.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 354 20.10.2024 22:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74028 ФПД: 128372452763495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221457&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74028&fm=128372452763495&tin=02508201610067®Number=0000000000161154&sum=77100 0 [22:14:54]StoreToDocumentArchive [22:14:54]shift 170 fd 74028 [22:14:54]save to /storage/0170/doc_00074028 [22:14:54]save last doc name /storage/0170/doc_00074028 to /storage/kkm_last_doc_name [22:14:54]save OK [22:14:54]Clear old archive folders... [22:14:54]ProcessDocumentItem done err = 0, tmpTLVsize=628 [22:14:54]tlvbuf is 003E6800 [22:14:54]SAM_PROTO_ClearQueue [22:14:54]wFMCommunicate request_size=4 [22:14:54]MH_SAM_APDU [22:14:54]CAPDU: 80 09 00 00 [22:14:54]Write to MH i2c: E2 08 00 05 5E 80 09 00 00 00 00 00 00 D5 [22:14:54]Write i2c OK [22:14:54]MH_I2C_Read... [22:14:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:54]Read from MH i2c: E2 [22:14:54]MH_I2C_Read... [22:14:54]Read from MH i2c: E2 03 00 [22:14:54]MH_I2C_Read... [22:14:54]Read from MH i2c: E2 03 00 05 5E 00 90 00 D7 [22:14:54]RAPDU: 90 00 [22:14:54]wFMCommunicate OK [22:14:54]SAM_PROTO_ClearQueue done [22:14:54]KKMCreateOFDPacket [22:14:54]OFDProtocolAddRootSTLVToBuf [22:14:54]FM_MakeSignedData [22:14:54]FM_MakeSignedData [22:14:54]SAM_PROTO_SignData [22:14:54]wFMCommunicate request_size=4 [22:14:54]MH_SAM_APDU [22:14:54]CAPDU: 80 0D 01 02 [22:14:54]Write to MH i2c: E2 08 00 06 5E 80 0D 01 02 00 00 00 00 DD [22:14:54]Write i2c OK [22:14:54]MH_I2C_Read... [22:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:54]Read from MH i2c: E2 [22:14:54]MH_I2C_Read... [22:14:54]Read from MH i2c: E2 03 00 [22:14:54]MH_I2C_Read... [22:14:54]Read from MH i2c: E2 03 00 06 5E 00 90 00 D8 [22:14:54]RAPDU: 90 00 [22:14:54]wFMCommunicate OK [22:14:54]wFMCommunicate request_size=255 [22:14:54]MH_SAM_APDU [22:14:54]CAPDU: 80 0D 02 02 FA 03 00 74 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 90 65 00 00 00 00 13 04 06 00 20 CB 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 08 00 35 34 34 39 32 35 30 39 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 32 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 23 04 6E 00 8A [22:14:54]Write to MH i2c: E2 02 01 07 5E 80 0D 02 02 FA 00 03 00 74 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 90 65 00 00 00 00 13 04 06 00 20 CB 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 08 00 35 34 34 39 32 35 30 39 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 32 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 23 04 6E 00 8A 00 00 F0 [22:14:54]Write i2c OK [22:14:54]MH_I2C_Read... [22:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:55]Read from MH i2c: E2 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 03 00 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 03 00 07 5E 00 90 00 D9 [22:14:55]RAPDU: 90 00 [22:14:55]wFMCommunicate OK [22:14:55]wFMCommunicate request_size=255 [22:14:55]MH_SAM_APDU [22:14:55]CAPDU: 80 0D 02 02 FA 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 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 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 [22:14:55]Write to MH i2c: E2 02 01 08 5E 80 0D 02 02 FA 00 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 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 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 00 00 0E [22:14:55]Write i2c OK [22:14:55]MH_I2C_Read... [22:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:55]Read from MH i2c: E2 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 03 00 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 03 00 08 5E 00 90 00 DA [22:14:55]RAPDU: 90 00 [22:14:55]wFMCommunicate OK [22:14:55]wFMCommunicate request_size=137 [22:14:55]MH_SAM_APDU [22:14:55]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1F 00 00 00 00 07 04 06 00 2C 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E1 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 21 01 00 35 04 06 00 74 C1 0A 72 27 67 [22:14:55]Write to MH i2c: E2 8C 00 09 5E 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1F 00 00 00 00 07 04 06 00 2C 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E1 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 21 01 00 35 04 06 00 74 C1 0A 72 27 67 00 00 F3 [22:14:55]Write i2c OK [22:14:55]MH_I2C_Read... [22:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:55]Read from MH i2c: E2 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 03 00 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 03 00 09 5E 00 90 00 DB [22:14:55]RAPDU: 90 00 [22:14:55]wFMCommunicate OK [22:14:55]wFMCommunicate request_size=4 [22:14:55]MH_SAM_APDU [22:14:55]CAPDU: 80 0D 03 02 [22:14:55]Write to MH i2c: E2 08 00 0A 5E 80 0D 03 02 00 00 00 00 E3 [22:14:55]Write i2c OK [22:14:55]MH_I2C_Read... [22:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:55]Read from MH i2c: E2 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 0B 00 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 0B 00 0A 5E 00 F7 36 AA C2 0B 8A 8A 18 90 00 B4 [22:14:55]RAPDU: F7 36 AA C2 0B 8A 8A 18 90 00 [22:14:55]wFMCommunicate OK [22:14:55]SAM_PROTO_SignData done [22:14:55]FM_MakeSignedData done [22:14:55]CreateOFDProtocolMessage [22:14:55]wFMCommunicate request_size=4 [22:14:55]MH_SAM_APDU [22:14:55]CAPDU: 80 11 00 00 [22:14:55]Write to MH i2c: E2 08 00 0B 5E 80 11 00 00 00 00 00 00 E3 [22:14:55]Write i2c OK [22:14:55]MH_I2C_Read... [22:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:55]Read from MH i2c: E2 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 17 00 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: E2 17 00 0B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [22:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:14:55]wFMCommunicate OK [22:14:55]CreateOFDProtocolMessage done [22:14:55]OFDSenderStorePacket 74028 [22:14:55]StoreOFDPacket docnum=74028 [22:14:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 88 02 00 00 6D 28 80 02 12 70 5A 03 01 00 03 00 74 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 90 65 00 00 00 00 13 04 06 00 20 CB 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 08 00 35 34 34 39 32 35 30 39 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 32 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 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 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 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1F 00 00 00 00 07 04 06 00 2C 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E1 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 21 01 00 35 04 06 00 74 C1 0A 72 27 67 F7 36 AA C2 0B 8A 8A 18 [22:14:55]CheckFolder [22:14:55]dirname=/storage/ofd_packets [22:14:55]CheckFolder done [22:14:55]ProducePacketName [22:14:55]name=ofd_packets/00074028 [22:14:55]NVStorageSaveData ofd_packets/00074028 [22:14:55]File name is /storage/ofd_packets/00074028 [22:14:55]Write 678 bytes [22:14:55]NVStorageSaveData done [22:14:55]OFDSenderStorePacket done [22:14:55]KKMCreateOFDPacket done [22:14:55]NVStorageSaveData kkm_last_timestamp [22:14:55]File name is /storage/kkm_last_timestamp [22:14:55]Write 4 bytes [22:14:55]NVStorageSaveData done [22:14:55]ExternCall_PrintAddStr [22:14:55]wPrintStart [22:14:55]Write to MH i2c: 01 00 00 0C 5E 6A [22:14:55]Write i2c OK [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: 01 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: 01 07 00 [22:14:55]MH_I2C_Read... [22:14:55]Read from MH i2c: 01 07 00 0C 5E 00 00 00 00 00 FF 0F 7F [22:14:55]RasterBufferAndPrint [22:14:55]line Счет N : (3)272862 [22:14:55]line ИНН: 02508201610067 [22:14:55]line Контрольно-Кассовый Чек [22:14:55]line ПРОДАЖА [22:14:55]line Товар: 4860103356611 [22:14:55]line Пиво Миллер Дженьюн Драфт 0,5л ст [22:14:55]line 2.000 * 260.00 [22:14:55]line = 520.00 [22:14:55]line НДС 12% НСП 1% [22:14:55]line > о реализуемом товаре [22:14:55]line Товар: 54492509 [22:14:55]line Напиток Кока-Кола 0,25л [22:14:55]line 2.000 * 90.00 [22:14:55]line = 180.00 [22:14:55]line НДС 12% НСП 1% [22:14:55]line > о реализуемом товаре [22:14:55]line Товар: 6931280300549 [22:14:55]line Зажигалка Cricket ПН пьезо [22:14:55]line 1.000 * 67.00 [22:14:55]line = 67.00 [22:14:55]line НДС 12% НСП 1% [22:14:55]line > о реализуемом товаре [22:14:55]line Товар: 2000031750019 [22:14:55]line Пакет Партнер Нефть [22:14:55]line 1.000 * 4.00 [22:14:55]line = 4.00 [22:14:55]line НДС 12% НСП 1% [22:14:55]line > о реализуемом товаре [22:14:55]line ИТОГО: 771.00 [22:14:55]line НСП 1% : 6.81 [22:14:55]line НДС 12% : 81.86 [22:14:55]line Наличными: 771.00 [22:14:55]line Безнал.: 0.00 [22:14:55]line Место: АЗС № 133 "Партнер Нефть" [22:14:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:14:55]line СНО: Общий режим [22:14:55]line Чек 354 20.10.2024 22:14 [22:14:55]line Смена: 170 ФФД: 1.0 [22:14:55]line ЗНМ: 0300000020 [22:14:55]line РНМ: 0000000000161154 [22:14:55]line Версия ККМ: v1.0 [22:14:55]line ФМ: 0000000000963323 [22:14:55]line ФД: 74028 [22:14:55]line ФПД: 128372452763495 [22:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221457&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74028&fm=128372452763495&tin=02508201610067®Number=0000000000161154&sum=77100 [22:14:55]OFD Sender: Processing packet 74028 [packets to send 15, broken 14] [22:14:55]ProducePacketName [22:14:55]name=ofd_packets/00074028 [22:14:55]OFD Sender: To server: pG, [22:14:55]CommunicateWithHost lk.salyk.kg:30040 [22:14:55]ConnectInit lk.salyk.kg [22:14:55]line 0 [22:14:55]written 0, free lines is 4095 [22:14:56]Connected sock=11 [22:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 88 02 00 00 6D 28 80 02 12 70 5A 03 01 00 03 00 74 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 90 65 00 00 00 00 13 04 06 00 20 CB 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 08 00 35 34 34 39 32 35 30 39 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 32 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 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 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 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 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1F 00 00 00 00 07 04 06 00 2C 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E1 80 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 21 01 00 35 04 06 00 74 C1 0A 72 27 67 F7 36 AA C2 0B 8A 8A 18 [22:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2F 5A 47 00 9F 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 39 36 33 33 32 33 10 04 04 00 2C 21 01 00 F4 03 04 00 C5 29 15 67 B6 04 01 00 00 E4 00 38 E5 E9 56 AD BC [22:14:56]CommunicateWithHost err = 0 [22:14:56]CheckOFDResponse [22:14:56]1017 (14) - 77093643461234 [22:14:56]1041 (16) - 0000000000963323 [22:14:56]1040 (4) - 74028 [22:14:56]1012 (4) - 20.10.2024 16:03 [22:14:56]1206 (1) - 0 [22:14:56]OFD Sender: Remove packet 74028 [22:14:56]ProducePacketName [22:14:56]name=ofd_packets/00074028 [22:14:56]NVStorageDeleteData [22:14:56]Write to MH i2c: 01 00 00 46 5E A4 [22:14:56]Write i2c OK [22:14:56]MH_I2C_Read... [22:14:56]Read from MH i2c: 01 [22:14:56]MH_I2C_Read... [22:14:56]Read from MH i2c: 01 07 00 [22:14:56]MH_I2C_Read... [22:14:56]Read from MH i2c: 01 07 00 46 5E 00 00 00 00 00 87 0B 3D [22:14:56]RasterBufferAndPrint [22:14:56]line [22:14:56]line [22:14:56]line [22:14:56]line [22:14:56]line [22:14:56]written 0, free lines is 2958 [22:14:56]MH_Cut [22:14:56]Write to MH i2c: D1 01 00 4D 5E 01 7D [22:14:56]Write i2c OK [22:14:56]MH_I2C_Read... [22:14:56]Read from MH i2c: D1 [22:14:56]MH_I2C_Read... [22:14:56]Read from MH i2c: D1 01 00 [22:14:56]MH_I2C_Read... [22:14:56]Read from MH i2c: D1 01 00 4D 5E 00 7C [22:14:56]Write to MH i2c: 01 00 00 4E 5E AC [22:14:56]Write i2c OK [22:14:56]MH_I2C_Read... [22:14:56]OFD Sender: No OFD packet to send [22:14:57]*** Cut start [22:14:57]*** Partial cut [22:14:57]*** CUTSNS_PIN = 1 [22:14:57]*** CUTSNS_PIN = 0 [22:14:57]*** Brake cut motor [22:14:58]Read from MH i2c: 01 [22:14:58]MH_I2C_Read... [22:14:58]*** Stop cut motor [22:14:58]*** Cut end [22:14:58]Read from MH i2c: 01 07 00 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: 01 07 00 4E 5E 00 00 00 00 00 FF 0F C1 [22:14:58]process_action close_receipt done [22:14:58]requested_data is exist [22:14:58]produce_requested_data [22:14:58]requested_item fm.sn is exist - process it [22:14:58]wFMCommunicate request_size=4 [22:14:58]MH_SAM_APDU [22:14:58]CAPDU: 80 11 00 00 [22:14:58]Write to MH i2c: E2 08 00 4F 5E 80 11 00 00 00 00 00 00 27 [22:14:58]Write i2c OK [22:14:58]MH_I2C_Read... [22:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:58]Read from MH i2c: E2 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 17 00 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 17 00 4F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [22:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:14:58]wFMCommunicate OK [22:14:58]requested_item fd.num is exist - process it [22:14:58]SAM_PROTO_GetFieldsCounters [22:14:58]wFMCommunicate request_size=4 [22:14:58]MH_SAM_APDU [22:14:58]CAPDU: 80 13 00 00 [22:14:58]Write to MH i2c: E2 08 00 50 5E 80 13 00 00 00 00 00 00 2A [22:14:58]Write i2c OK [22:14:58]MH_I2C_Read... [22:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:58]Read from MH i2c: E2 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 62 00 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 62 00 50 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2C 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [22:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2C 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:58]wFMCommunicate OK [22:14:58]SAM_PROTO_GetFieldsCounters done [22:14:58]requested_item shift.num is exist - process it [22:14:58]requested_item shift.opened is exist - process it [22:14:58]req_shift_opened [22:14:58]FM_GetShiftState [22:14:58]SAM_PROTO_GetShiftState [22:14:58]wFMCommunicate request_size=4 [22:14:58]MH_SAM_APDU [22:14:58]CAPDU: 80 13 01 00 [22:14:58]Write to MH i2c: E2 08 00 51 5E 80 13 01 00 00 00 00 00 2C [22:14:58]Write i2c OK [22:14:58]MH_I2C_Read... [22:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:58]Read from MH i2c: E2 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 0E 00 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 0E 00 51 5E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [22:14:58]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:14:58]wFMCommunicate OK [22:14:58]SAM_PROTO_GetShiftState done [22:14:58]FM_GetShiftState done [22:14:58]req_shift_opened done [22:14:58]requested_item shift.open_date is exist - process it [22:14:58]req_shift_open_date [22:14:58]req_shift_open_date done [22:14:58]produce_requested_data done [22:14:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74028,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:14:58]process_action_free close_receipt [22:14:58]json_value_free [22:14:58]json_value_free done [22:14:58]process_json_proto returns [22:14:58]Send response to host [22:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74028,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:14:58]free response buf [22:14:58]execute_script done [22:14:58]execute_script returns [22:14:58]free content buf [22:14:58]Sock 8.Close socket [22:14:58]Sock 8.Thread stoped [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:15:59]accept exits with 9 [22:15:59]New connection [22:15:59]New thread 3067432292 created [22:15:59]Thread 3067575652 joined [22:15:59]Waiting for new connection... [22:15:59] Sock 9.Parse request [22:15:59]Sock 9.Check first char [22:15:59]Sock 9.First char is OK [22:15:59]request: POST /json_proto HTTP/1.0 [22:15:59]Method: POST [22:15:59]URL: /json_proto [22:15:59]Method is POST - this is cgi request [22:15:59]url: /json_proto [22:15:59]query_string will be loaded in cgi processing [22:15:59]execute_cgi json_proto POST (null) [22:15:59]execute_cgi path=json_proto method=POST [22:15:59]POST find Content-Length [22:15:59]Host: 172.17.44.196:8080 [22:15:59]Content-Length: 626 [22:15:59]Content-Type: application/json [22:15:59] [22:15:59]POST finish read [22:15:59]Found Content-Length = 626 [22:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272863", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:59]execute_script... [22:15:59]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)272863", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:59]POST & json_proto [22:15:59]process_json_proto [22:15:59]json parsed OK: [22:15:59]protocol is kg_v1.0 [22:15:59]action value=close_receipt [22:15:59]process_action close_receipt [22:15:59]cmd_close_receipt [22:15:59]MH_GetDate [22:15:59]Write to MH i2c: F0 00 00 52 5E 9F [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: F0 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: F0 09 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: F0 09 00 52 5E 00 23 81 15 67 E7 19 F8 65 25 [22:15:59]GetLastDocTimeStamp 1729462497 [22:15:59]current date 1729462563 [22:15:59]FM_GetShiftState [22:15:59]SAM_PROTO_GetShiftState [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 01 00 [22:15:59]Write to MH i2c: E2 08 00 53 5E 80 13 01 00 00 00 00 00 2E [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 0E 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 0E 00 53 5E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [22:15:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:15:59]wFMCommunicate OK [22:15:59]SAM_PROTO_GetShiftState done [22:15:59]FM_GetShiftState done [22:15:59]opened in 1729384303 [22:15:59]opened+sec_in_day 1729470703 [22:15:59]quantity*price = 23000 [22:15:59]sum+1 = 23001 [22:15:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 355 20.10.2024 22:16 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74029 ФПД: 98530293796956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221603&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74029&fm=98530293796956&tin=02508201610067®Number=0000000000161154&sum=23000 0 [22:16:00]StoreToDocumentArchive [22:16:00]shift 170 fd 74029 [22:16:00]save to /storage/0170/doc_00074029 [22:16:00]save last doc name /storage/0170/doc_00074029 to /storage/kkm_last_doc_name [22:16:00]save OK [22:16:00]Clear old archive folders... [22:16:00]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:16:00]tlvbuf is 0039B280 [22:16:00]SAM_PROTO_ClearQueue [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 09 00 00 [22:16:00]Write to MH i2c: E2 08 00 60 5E 80 09 00 00 00 00 00 00 30 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 03 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 03 00 60 5E 00 90 00 32 [22:16:00]RAPDU: 90 00 [22:16:00]wFMCommunicate OK [22:16:00]SAM_PROTO_ClearQueue done [22:16:00]KKMCreateOFDPacket [22:16:00]OFDProtocolAddRootSTLVToBuf [22:16:00]FM_MakeSignedData [22:16:00]FM_MakeSignedData [22:16:00]SAM_PROTO_SignData [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 0D 01 02 [22:16:00]Write to MH i2c: E2 08 00 61 5E 80 0D 01 02 00 00 00 00 38 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 03 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 03 00 61 5E 00 90 00 33 [22:16:00]RAPDU: 90 00 [22:16:00]wFMCommunicate OK [22:16:00]wFMCommunicate request_size=255 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 01 00 00 F4 03 04 00 23 81 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [22:16:00]Write to MH i2c: E2 02 01 62 5E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 01 00 00 F4 03 04 00 23 81 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 61 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 62 5E 00 90 00 34 [22:16:01]RAPDU: 90 00 [22:16:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=33 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 21 01 00 35 04 06 00 59 9C DF 29 50 5C [22:16:01]Write to MH i2c: E2 24 00 63 5E 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 21 01 00 35 04 06 00 59 9C DF 29 50 5C 00 00 BC [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 63 5E 00 90 00 35 [22:16:01]RAPDU: 90 00 [22:16:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 0D 03 02 [22:16:01]Write to MH i2c: E2 08 00 64 5E 80 0D 03 02 00 00 00 00 3D [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 0B 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 0B 00 64 5E 00 A3 72 CE A9 71 96 69 01 90 00 3B [22:16:01]RAPDU: A3 72 CE A9 71 96 69 01 90 00 [22:16:01]wFMCommunicate OK [22:16:01]SAM_PROTO_SignData done [22:16:01]FM_MakeSignedData done [22:16:01]CreateOFDProtocolMessage [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 11 00 00 [22:16:01]Write to MH i2c: E2 08 00 65 5E 80 11 00 00 00 00 00 00 3D [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 17 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 17 00 65 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [22:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:16:01]wFMCommunicate OK [22:16:01]CreateOFDProtocolMessage done [22:16:01]OFDSenderStorePacket 74029 [22:16:01]StoreOFDPacket docnum=74029 [22:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 1C 79 1E 01 64 3D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 01 00 00 F4 03 04 00 23 81 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 21 01 00 35 04 06 00 59 9C DF 29 50 5C A3 72 CE A9 71 96 69 01 [22:16:01]CheckFolder [22:16:01]dirname=/storage/ofd_packets [22:16:01]CheckFolder done [22:16:01]ProducePacketName [22:16:01]name=ofd_packets/00074029 [22:16:01]NVStorageSaveData ofd_packets/00074029 [22:16:01]File name is /storage/ofd_packets/00074029 [22:16:01]Write 324 bytes [22:16:01]NVStorageSaveData done [22:16:01]OFDSenderStorePacket done [22:16:01]KKMCreateOFDPacket done [22:16:01]NVStorageSaveData kkm_last_timestamp [22:16:01]File name is /storage/kkm_last_timestamp [22:16:01]Write 4 bytes [22:16:01]NVStorageSaveData done [22:16:01]ExternCall_PrintAddStr [22:16:01]wPrintStart [22:16:01]Write to MH i2c: 01 00 00 66 5E C4 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 07 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 07 00 66 5E 00 00 00 00 00 FF 0F D9 [22:16:01]RasterBufferAndPrint [22:16:01]line Счет N : (3)272863 [22:16:01]line ИНН: 02508201610067 [22:16:01]line Контрольно-Кассовый Чек [22:16:01]line ПРОДАЖА [22:16:01]line Товар: 2000036240010 [22:16:01]line Кофе Латте (GABB TRADE) [22:16:01]line 2.000 * 115.00 [22:16:01]line = 230.00 [22:16:01]line НДС 12% НСП 1% [22:16:01]line > о реализуемом товаре [22:16:01]line ИТОГО: 230.00 [22:16:01]line НСП 1% : 2.03 [22:16:01]line НДС 12% : 24.42 [22:16:01]line Наличными: 230.00 [22:16:01]line Безнал.: 0.00 [22:16:01]line Место: АЗС № 133 "Партнер Нефть" [22:16:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:16:01]line СНО: Общий режим [22:16:01]line Чек 355 20.10.2024 22:16 [22:16:01]line Смена: 170 ФФД: 1.0 [22:16:01]line ЗНМ: 0300000020 [22:16:01]line РНМ: 0000000000161154 [22:16:01]line Версия ККМ: v1.0 [22:16:01]line ФМ: 0000000000963323 [22:16:01]line ФД: 74029 [22:16:01]line ФПД: 98530293796956 [22:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221603&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74029&fm=98530293796956&tin=02508201610067®Number=0000000000161154&sum=23000 [22:16:01]line 0 [22:16:01]OFD Sender: Processing packet 74029 [packets to send 15, broken 14] [22:16:01]ProducePacketName [22:16:01]name=ofd_packets/00074029 [22:16:01]OFD Sender: To server: pG, [22:16:01]CommunicateWithHost lk.salyk.kg:30040 [22:16:01]ConnectInit lk.salyk.kg [22:16:01]written 0, free lines is 4095 [22:16:01]Connected sock=10 [22:16:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 1C 79 1E 01 64 3D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 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 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 01 00 00 F4 03 04 00 23 81 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 21 01 00 35 04 06 00 59 9C DF 29 50 5C A3 72 CE A9 71 96 69 01 [22:16:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E8 29 47 00 E4 7D 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 39 36 33 33 32 33 10 04 04 00 2D 21 01 00 F4 03 04 00 06 2A 15 67 B6 04 01 00 00 62 27 25 50 AF D0 C2 02 [22:16:01]CommunicateWithHost err = 0 [22:16:01]CheckOFDResponse [22:16:01]1017 (14) - 77093643461234 [22:16:01]1041 (16) - 0000000000963323 [22:16:01]1040 (4) - 74029 [22:16:01]1012 (4) - 20.10.2024 16:04 [22:16:01]1206 (1) - 0 [22:16:01]OFD Sender: Remove packet 74029 [22:16:01]ProducePacketName [22:16:01]name=ofd_packets/00074029 [22:16:01]NVStorageDeleteData [22:16:01]Write to MH i2c: 01 00 00 8D 5E EB [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 07 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 07 00 8D 5E 00 00 00 00 00 E2 0C E0 [22:16:01]RasterBufferAndPrint [22:16:01]line [22:16:01]line [22:16:01]line [22:16:01]line [22:16:01]line [22:16:01]written 0, free lines is 3304 [22:16:01]MH_Cut [22:16:01]Write to MH i2c: D1 01 00 94 5E 01 C4 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: D1 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: D1 01 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: D1 01 00 94 5E 00 C3 [22:16:01]Write to MH i2c: 01 00 00 95 5E F3 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:02]OFD Sender: No OFD packet to send [22:16:02]*** Cut start [22:16:02]*** Partial cut [22:16:02]*** CUTSNS_PIN = 1 [22:16:02]*** CUTSNS_PIN = 0 [22:16:03]*** Brake cut motor [22:16:03]Read from MH i2c: 01 [22:16:03]MH_I2C_Read... [22:16:03]*** Stop cut motor [22:16:03]*** Cut end [22:16:03]Read from MH i2c: 01 07 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: 01 07 00 95 5E 00 00 00 00 00 FF 0F 08 [22:16:03]process_action close_receipt done [22:16:03]requested_data is exist [22:16:03]produce_requested_data [22:16:03]requested_item fm.sn is exist - process it [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 11 00 00 [22:16:03]Write to MH i2c: E2 08 00 96 5E 80 11 00 00 00 00 00 00 6E [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 17 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 17 00 96 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [22:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:16:03]wFMCommunicate OK [22:16:03]requested_item fd.num is exist - process it [22:16:03]SAM_PROTO_GetFieldsCounters [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 13 00 00 [22:16:03]Write to MH i2c: E2 08 00 97 5E 80 13 00 00 00 00 00 00 71 [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 62 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 62 00 97 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2D 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [22:16:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2D 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:03]wFMCommunicate OK [22:16:03]SAM_PROTO_GetFieldsCounters done [22:16:03]requested_item shift.num is exist - process it [22:16:03]requested_item shift.opened is exist - process it [22:16:03]req_shift_opened [22:16:03]FM_GetShiftState [22:16:03]SAM_PROTO_GetShiftState [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 13 01 00 [22:16:03]Write to MH i2c: E2 08 00 98 5E 80 13 01 00 00 00 00 00 73 [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 0E 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 0E 00 98 5E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 B8 [22:16:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:16:03]wFMCommunicate OK [22:16:03]SAM_PROTO_GetShiftState done [22:16:03]FM_GetShiftState done [22:16:03]req_shift_opened done [22:16:03]requested_item shift.open_date is exist - process it [22:16:03]req_shift_open_date [22:16:03]req_shift_open_date done [22:16:03]produce_requested_data done [22:16:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74029,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:16:03]process_action_free close_receipt [22:16:03]json_value_free [22:16:03]json_value_free done [22:16:03]process_json_proto returns [22:16:03]Send response to host [22:16:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74029,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:16:03]free response buf [22:16:03]execute_script done [22:16:03]execute_script returns [22:16:03]free content buf [22:16:03]Sock 9.Close socket [22:16:03]Sock 9.Thread stoped [22:16:07]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]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:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:35]accept exits with 8 [22:33:35]New connection [22:33:35]New thread 3067575652 created [22:33:35]Thread 3067432292 joined [22:33:35]Waiting for new connection... [22:33:35] Sock 8.Parse request [22:33:35]Sock 8.Check first char [22:33:35]Sock 8.First char is OK [22:33:35]request: POST /json_proto HTTP/1.0 [22:33:35]Method: POST [22:33:35]URL: /json_proto [22:33:35]Method is POST - this is cgi request [22:33:35]url: /json_proto [22:33:35]query_string will be loaded in cgi processing [22:33:35]execute_cgi json_proto POST (null) [22:33:35]execute_cgi path=json_proto method=POST [22:33:35]POST find Content-Length [22:33:35]Host: 172.17.44.196:8080 [22:33:35]Content-Length: 622 [22:33:35]Content-Type: application/json [22:33:35] [22:33:35]POST finish read [22:33:35]Found Content-Length = 622 [22:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272864", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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:33:35]execute_script... [22:33:35]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)272864", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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:33:35]POST & json_proto [22:33:35]process_json_proto [22:33:35]json parsed OK: [22:33:35]protocol is kg_v1.0 [22:33:35]action value=close_receipt [22:33:35]process_action close_receipt [22:33:35]cmd_close_receipt [22:33:35]MH_GetDate [22:33:35]Write to MH i2c: F0 00 00 99 5E E6 [22:33:35]Write i2c OK [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: F0 [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: F0 09 00 [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: F0 09 00 99 5E 00 43 85 15 67 E7 19 F8 65 90 [22:33:35]GetLastDocTimeStamp 1729462563 [22:33:35]current date 1729463619 [22:33:35]FM_GetShiftState [22:33:35]SAM_PROTO_GetShiftState [22:33:35]wFMCommunicate request_size=4 [22:33:35]MH_SAM_APDU [22:33:35]CAPDU: 80 13 01 00 [22:33:35]Write to MH i2c: E2 08 00 9A 5E 80 13 01 00 00 00 00 00 75 [22:33:35]Write i2c OK [22:33:35]MH_I2C_Read... [22:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:35]Read from MH i2c: E2 [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: E2 0E 00 [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: E2 0E 00 9A 5E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BA [22:33:35]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:33:35]wFMCommunicate OK [22:33:35]SAM_PROTO_GetShiftState done [22:33:35]FM_GetShiftState done [22:33:35]opened in 1729384303 [22:33:35]opened+sec_in_day 1729470703 [22:33:35]quantity*price = 15000 [22:33:35]sum+1 = 15001 [22:33:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 356 20.10.2024 22:33 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74030 ФПД: 263815784395612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223339&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74030&fm=263815784395612&tin=02508201610067®Number=0000000000161154&sum=15000 0 [22:33:36]StoreToDocumentArchive [22:33:36]shift 170 fd 74030 [22:33:36]save to /storage/0170/doc_00074030 [22:33:36]save last doc name /storage/0170/doc_00074030 to /storage/kkm_last_doc_name [22:33:36]save OK [22:33:36]Clear old archive folders... [22:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:33:36]tlvbuf is 0052A500 [22:33:36]SAM_PROTO_ClearQueue [22:33:36]wFMCommunicate request_size=4 [22:33:36]MH_SAM_APDU [22:33:36]CAPDU: 80 09 00 00 [22:33:36]Write to MH i2c: E2 08 00 A7 5E 80 09 00 00 00 00 00 00 77 [22:33:36]Write i2c OK [22:33:36]MH_I2C_Read... [22:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:36]Read from MH i2c: E2 [22:33:36]MH_I2C_Read... [22:33:36]Read from MH i2c: E2 03 00 [22:33:36]MH_I2C_Read... [22:33:36]Read from MH i2c: E2 03 00 A7 5E 00 90 00 79 [22:33:36]RAPDU: 90 00 [22:33:36]wFMCommunicate OK [22:33:36]SAM_PROTO_ClearQueue done [22:33:36]KKMCreateOFDPacket [22:33:36]OFDProtocolAddRootSTLVToBuf [22:33:36]FM_MakeSignedData [22:33:36]FM_MakeSignedData [22:33:36]SAM_PROTO_SignData [22:33:36]wFMCommunicate request_size=4 [22:33:36]MH_SAM_APDU [22:33:36]CAPDU: 80 0D 01 02 [22:33:36]Write to MH i2c: E2 08 00 A8 5E 80 0D 01 02 00 00 00 00 7F [22:33:36]Write i2c OK [22:33:36]MH_I2C_Read... [22:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:36]Read from MH i2c: E2 [22:33:36]MH_I2C_Read... [22:33:36]Read from MH i2c: E2 03 00 [22:33:36]MH_I2C_Read... [22:33:36]Read from MH i2c: E2 03 00 A8 5E 00 90 00 7A [22:33:36]RAPDU: 90 00 [22:33:36]wFMCommunicate OK [22:33:36]wFMCommunicate request_size=255 [22:33:36]MH_SAM_APDU [22:33:36]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 34 35 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 4D 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 64 01 00 00 F4 03 04 00 43 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [22:33:36]Write to MH i2c: E2 02 01 A9 5E 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 34 35 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 4D 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 64 01 00 00 F4 03 04 00 43 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 68 [22:33:36]Write i2c OK [22:33:36]MH_I2C_Read... [22:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:37]Read from MH i2c: E2 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 03 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 03 00 A9 5E 00 90 00 7B [22:33:37]RAPDU: 90 00 [22:33:37]wFMCommunicate OK [22:33:37]wFMCommunicate request_size=33 [22:33:37]MH_SAM_APDU [22:33:37]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 21 01 00 35 04 06 00 EF F0 66 1D 73 5C [22:33:37]Write to MH i2c: E2 24 00 AA 5E 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 21 01 00 35 04 06 00 EF F0 66 1D 73 5C 00 00 8C [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:37]Read from MH i2c: E2 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 03 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 03 00 AA 5E 00 90 00 7C [22:33:37]RAPDU: 90 00 [22:33:37]wFMCommunicate OK [22:33:37]wFMCommunicate request_size=4 [22:33:37]MH_SAM_APDU [22:33:37]CAPDU: 80 0D 03 02 [22:33:37]Write to MH i2c: E2 08 00 AB 5E 80 0D 03 02 00 00 00 00 84 [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:37]Read from MH i2c: E2 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 0B 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 0B 00 AB 5E 00 F6 D9 C1 25 93 42 51 70 90 00 D0 [22:33:37]RAPDU: F6 D9 C1 25 93 42 51 70 90 00 [22:33:37]wFMCommunicate OK [22:33:37]SAM_PROTO_SignData done [22:33:37]FM_MakeSignedData done [22:33:37]CreateOFDProtocolMessage [22:33:37]wFMCommunicate request_size=4 [22:33:37]MH_SAM_APDU [22:33:37]CAPDU: 80 11 00 00 [22:33:37]Write to MH i2c: E2 08 00 AC 5E 80 11 00 00 00 00 00 00 84 [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:37]Read from MH i2c: E2 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 17 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 17 00 AC 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [22:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:33:37]wFMCommunicate OK [22:33:37]CreateOFDProtocolMessage done [22:33:37]OFDSenderStorePacket 74030 [22:33:37]StoreOFDPacket docnum=74030 [22:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 B0 FB 1E 01 6A 19 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 34 35 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 4D 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 64 01 00 00 F4 03 04 00 43 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 21 01 00 35 04 06 00 EF F0 66 1D 73 5C F6 D9 C1 25 93 42 51 70 [22:33:37]CheckFolder [22:33:37]dirname=/storage/ofd_packets [22:33:37]CheckFolder done [22:33:37]ProducePacketName [22:33:37]name=ofd_packets/00074030 [22:33:37]NVStorageSaveData ofd_packets/00074030 [22:33:37]File name is /storage/ofd_packets/00074030 [22:33:37]Write 324 bytes [22:33:37]NVStorageSaveData done [22:33:37]OFDSenderStorePacket done [22:33:37]KKMCreateOFDPacket done [22:33:37]NVStorageSaveData kkm_last_timestamp [22:33:37]File name is /storage/kkm_last_timestamp [22:33:37]Write 4 bytes [22:33:37]NVStorageSaveData done [22:33:37]ExternCall_PrintAddStr [22:33:37]wPrintStart [22:33:37]Write to MH i2c: 01 00 00 AD 5E 0B [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: 01 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: 01 07 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: 01 07 00 AD 5E 00 00 00 00 00 FF 0F 20 [22:33:37]RasterBufferAndPrint [22:33:37]line Счет N : (3)272864 [22:33:37]line ИНН: 02508201610067 [22:33:37]line Контрольно-Кассовый Чек [22:33:37]line ПРОДАЖА [22:33:37]line Товар: 4640030091645 [22:33:37]line Сигареты ESSE Exchange M [22:33:37]line 1.000 * 150.00 [22:33:37]line = 150.00 [22:33:37]line НДС 12% НСП 1% [22:33:37]line > о реализуемом товаре [22:33:37]line ИТОГО: 150.00 [22:33:37]line НСП 1% : 1.33 [22:33:37]line НДС 12% : 15.93 [22:33:37]line Наличными: 150.00 [22:33:37]line Безнал.: 0.00 [22:33:37]line Место: АЗС № 133 "Партнер Нефть" [22:33:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:33:37]line СНО: Общий режим [22:33:37]line Чек 356 20.10.2024 22:33 [22:33:37]line Смена: 170 ФФД: 1.0 [22:33:37]line ЗНМ: 0300000020 [22:33:37]line РНМ: 0000000000161154 [22:33:37]line Версия ККМ: v1.0 [22:33:37]line ФМ: 0000000000963323 [22:33:37]line ФД: 74030 [22:33:37]line ФПД: 263815784395612 [22:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223339&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74030&fm=263815784395612&tin=02508201610067®Number=0000000000161154&sum=15000 [22:33:37]line 0 [22:33:37]OFD Sender: Processing packet 74030 [packets to send 15, broken 14] [22:33:37]ProducePacketName [22:33:37]name=ofd_packets/00074030 [22:33:37]OFD Sender: To server: pG, [22:33:37]CommunicateWithHost lk.salyk.kg:30040 [22:33:37]ConnectInit lk.salyk.kg [22:33:37]written 0, free lines is 4095 [22:33:37]Connected sock=10 [22:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 B0 FB 1E 01 6A 19 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 34 35 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 4D 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 64 01 00 00 F4 03 04 00 43 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 21 01 00 35 04 06 00 EF F0 66 1D 73 5C F6 D9 C1 25 93 42 51 70 [22:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B 9B 47 00 33 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 39 36 33 33 32 33 10 04 04 00 2E 21 01 00 F4 03 04 00 26 2E 15 67 B6 04 01 00 00 28 13 66 C0 59 92 73 01 [22:33:37]CommunicateWithHost err = 0 [22:33:37]CheckOFDResponse [22:33:37]1017 (14) - 77093643461234 [22:33:37]1041 (16) - 0000000000963323 [22:33:37]1040 (4) - 74030 [22:33:37]1012 (4) - 20.10.2024 16:21 [22:33:37]1206 (1) - 0 [22:33:37]OFD Sender: Remove packet 74030 [22:33:37]ProducePacketName [22:33:37]name=ofd_packets/00074030 [22:33:37]NVStorageDeleteData [22:33:37]Write to MH i2c: 01 00 00 D4 5E 32 [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: 01 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: 01 07 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: 01 07 00 D4 5E 00 00 00 00 00 DF 0C 24 [22:33:37]RasterBufferAndPrint [22:33:37]line [22:33:37]line [22:33:37]line [22:33:37]line [22:33:37]line [22:33:37]written 0, free lines is 3301 [22:33:37]MH_Cut [22:33:37]Write to MH i2c: D1 01 00 DB 5E 01 0B [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: D1 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: D1 01 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: D1 01 00 DB 5E 00 0A [22:33:37]Write to MH i2c: 01 00 00 DC 5E 3A [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:38]OFD Sender: No OFD packet to send [22:33:38]*** Cut start [22:33:38]*** Partial cut [22:33:38]*** CUTSNS_PIN = 1 [22:33:38]*** CUTSNS_PIN = 0 [22:33:39]*** Brake cut motor [22:33:39]Read from MH i2c: 01 [22:33:39]MH_I2C_Read... [22:33:39]*** Stop cut motor [22:33:39]*** Cut end [22:33:39]Read from MH i2c: 01 07 00 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: 01 07 00 DC 5E 00 00 00 00 00 FF 0F 4F [22:33:39]process_action close_receipt done [22:33:39]requested_data is exist [22:33:39]produce_requested_data [22:33:39]requested_item fm.sn is exist - process it [22:33:39]wFMCommunicate request_size=4 [22:33:39]MH_SAM_APDU [22:33:39]CAPDU: 80 11 00 00 [22:33:39]Write to MH i2c: E2 08 00 DD 5E 80 11 00 00 00 00 00 00 B5 [22:33:39]Write i2c OK [22:33:39]MH_I2C_Read... [22:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:39]Read from MH i2c: E2 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: E2 17 00 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: E2 17 00 DD 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [22:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:33:39]wFMCommunicate OK [22:33:39]requested_item fd.num is exist - process it [22:33:39]SAM_PROTO_GetFieldsCounters [22:33:39]wFMCommunicate request_size=4 [22:33:39]MH_SAM_APDU [22:33:39]CAPDU: 80 13 00 00 [22:33:39]Write to MH i2c: E2 08 00 DE 5E 80 13 00 00 00 00 00 00 B8 [22:33:39]Write i2c OK [22:33:39]MH_I2C_Read... [22:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:39]Read from MH i2c: E2 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: E2 62 00 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: E2 62 00 DE 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2E 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [22:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2E 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:39]wFMCommunicate OK [22:33:39]SAM_PROTO_GetFieldsCounters done [22:33:39]requested_item shift.num is exist - process it [22:33:39]requested_item shift.opened is exist - process it [22:33:39]req_shift_opened [22:33:39]FM_GetShiftState [22:33:39]SAM_PROTO_GetShiftState [22:33:39]wFMCommunicate request_size=4 [22:33:39]MH_SAM_APDU [22:33:39]CAPDU: 80 13 01 00 [22:33:39]Write to MH i2c: E2 08 00 DF 5E 80 13 01 00 00 00 00 00 BA [22:33:39]Write i2c OK [22:33:39]MH_I2C_Read... [22:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:39]Read from MH i2c: E2 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: E2 0E 00 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: E2 0E 00 DF 5E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 FF [22:33:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:33:39]wFMCommunicate OK [22:33:39]SAM_PROTO_GetShiftState done [22:33:39]FM_GetShiftState done [22:33:39]req_shift_opened done [22:33:39]requested_item shift.open_date is exist - process it [22:33:39]req_shift_open_date [22:33:39]req_shift_open_date done [22:33:39]produce_requested_data done [22:33:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74030,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:33:39]process_action_free close_receipt [22:33:39]json_value_free [22:33:39]json_value_free done [22:33:39]process_json_proto returns [22:33:39]Send response to host [22:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74030,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:33:39]free response buf [22:33:39]execute_script done [22:33:39]execute_script returns [22:33:39]free content buf [22:33:39]Sock 8.Close socket [22:33:39]Sock 8.Thread stoped [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:40]accept exits with 9 [22:34:40]New connection [22:34:40]New thread 3067432292 created [22:34:40]Thread 3067575652 joined [22:34:40]Waiting for new connection... [22:34:40] Sock 9.Parse request [22:34:40]Sock 9.Check first char [22:34:40]Sock 9.First char is OK [22:34:40]request: POST /json_proto HTTP/1.0 [22:34:40]Method: POST [22:34:40]URL: /json_proto [22:34:40]Method is POST - this is cgi request [22:34:40]url: /json_proto [22:34:40]query_string will be loaded in cgi processing [22:34:40]execute_cgi json_proto POST (null) [22:34:40]execute_cgi path=json_proto method=POST [22:34:40]POST find Content-Length [22:34:40]Host: 172.17.44.196:8080 [22:34:40]Content-Length: 678 [22:34:40]Content-Type: application/json [22:34:40] [22:34:40]POST finish read [22:34:40]Found Content-Length = 678 [22:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:40]execute_script... [22:34: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 : (1)1963384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:40]POST & json_proto [22:34:40]process_json_proto [22:34:40]json parsed OK: [22:34:40]protocol is kg_v1.0 [22:34:40]action value=close_receipt [22:34:40]process_action close_receipt [22:34:40]cmd_close_receipt [22:34:40]MH_GetDate [22:34:40]Write to MH i2c: F0 00 00 E0 5E 2D [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: F0 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: F0 09 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: F0 09 00 E0 5E 00 84 85 15 67 E7 19 F8 65 18 [22:34:40]GetLastDocTimeStamp 1729463619 [22:34:40]current date 1729463684 [22:34:40]FM_GetShiftState [22:34:40]SAM_PROTO_GetShiftState [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 13 01 00 [22:34:40]Write to MH i2c: E2 08 00 E1 5E 80 13 01 00 00 00 00 00 BC [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0E 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0E 00 E1 5E 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [22:34:40]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:34:40]wFMCommunicate OK [22:34:40]SAM_PROTO_GetShiftState done [22:34:40]FM_GetShiftState done [22:34:40]opened in 1729384303 [22:34:40]opened+sec_in_day 1729470703 [22:34:40]quantity*price = 30051 [22:34:40]sum+1 = 30052 [22:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 357 20.10.2024 22:34 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74031 ФПД: 109439987556734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223444&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74031&fm=109439987556734&tin=02508201610067®Number=0000000000161154&sum=30000 [22:34:41]StoreToDocumentArchive [22:34:41]shift 170 fd 74031 [22:34:41]save to /storage/0170/doc_00074031 [22:34:41]save last doc name /storage/0170/doc_00074031 to /storage/kkm_last_doc_name [22:34:41]save OK [22:34:41]Clear old archive folders... [22:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:41]tlvbuf is 0039B660 [22:34:41]SAM_PROTO_ClearQueue [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 09 00 00 [22:34:41]Write to MH i2c: E2 08 00 EE 5E 80 09 00 00 00 00 00 00 BE [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 EE 5E 00 90 00 C0 [22:34:41]RAPDU: 90 00 [22:34:41]wFMCommunicate OK [22:34:41]SAM_PROTO_ClearQueue done [22:34:41]KKMCreateOFDPacket [22:34:41]OFDProtocolAddRootSTLVToBuf [22:34:41]FM_MakeSignedData [22:34:41]FM_MakeSignedData [22:34:41]SAM_PROTO_SignData [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 0D 01 02 [22:34:41]Write to MH i2c: E2 08 00 EF 5E 80 0D 01 02 00 00 00 00 C6 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 EF 5E 00 90 00 C1 [22:34:41]RAPDU: 90 00 [22:34:41]wFMCommunicate OK [22:34:41]wFMCommunicate request_size=255 [22:34:41]MH_SAM_APDU [22:34:41]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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 65 01 00 00 F4 03 04 00 84 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 21 01 00 35 04 06 00 63 [22:34:41]Write to MH i2c: E2 02 01 F0 5E 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 65 01 00 00 F4 03 04 00 84 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 21 01 00 35 04 06 00 63 00 00 B9 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 F0 5E 00 90 00 C2 [22:34:41]RAPDU: 90 00 [22:34:41]wFMCommunicate OK [22:34:41]wFMCommunicate request_size=10 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 0D 02 02 05 88 FB 95 21 7E [22:34:41]Write to MH i2c: E2 0D 00 F1 5E 80 0D 02 02 05 00 88 FB 95 21 7E 00 00 8A [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 03 00 F1 5E 00 90 00 C3 [22:34:41]RAPDU: 90 00 [22:34:41]wFMCommunicate OK [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 0D 03 02 [22:34:41]Write to MH i2c: E2 08 00 F2 5E 80 0D 03 02 00 00 00 00 CB [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 0B 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 0B 00 F2 5E 00 19 B5 06 B5 F8 55 44 F3 90 00 D9 [22:34:41]RAPDU: 19 B5 06 B5 F8 55 44 F3 90 00 [22:34:41]wFMCommunicate OK [22:34:41]SAM_PROTO_SignData done [22:34:41]FM_MakeSignedData done [22:34:41]CreateOFDProtocolMessage [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 11 00 00 [22:34:41]Write to MH i2c: E2 08 00 F3 5E 80 11 00 00 00 00 00 00 CB [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 17 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 17 00 F3 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [22:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:34:41]wFMCommunicate OK [22:34:41]CreateOFDProtocolMessage done [22:34:41]OFDSenderStorePacket 74031 [22:34:41]StoreOFDPacket docnum=74031 [22:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EE B5 07 01 5F 1C 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 65 01 00 00 F4 03 04 00 84 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 21 01 00 35 04 06 00 63 88 FB 95 21 7E 19 B5 06 B5 F8 55 44 F3 [22:34:41]CheckFolder [22:34:41]dirname=/storage/ofd_packets [22:34:41]CheckFolder done [22:34:41]ProducePacketName [22:34:41]name=ofd_packets/00074031 [22:34:41]NVStorageSaveData ofd_packets/00074031 [22:34:41]File name is /storage/ofd_packets/00074031 [22:34:41]Write 301 bytes [22:34:41]NVStorageSaveData done [22:34:41]OFDSenderStorePacket done [22:34:41]KKMCreateOFDPacket done [22:34:41]NVStorageSaveData kkm_last_timestamp [22:34:41]File name is /storage/kkm_last_timestamp [22:34:41]Write 4 bytes [22:34:41]NVStorageSaveData done [22:34:41]ExternCall_PrintAddStr [22:34:41]wPrintStart [22:34:41]Write to MH i2c: 01 00 00 F4 5E 52 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 F4 5E 00 00 00 00 00 FF 0F 67 [22:34:41]RasterBufferAndPrint [22:34:41]line Счет N : (1)1963384 [22:34:41]line ИНН: 02508201610067 [22:34:41]line Контрольно-Кассовый Чек [22:34:41]line ПРОДАЖА [22:34:41]line ТРК (МРК, ГНК) : 54 [22:34:41]line Товар: 2710124500 [22:34:41]line Аи-95-К-5 [22:34:41]line 4.050 * 74.20 [22:34:41]line = 300.51 [22:34:41]line НДС 12% НСП 1% [22:34:41]line > о реализуемом товаре [22:34:41]line ОКРУГЛЕНИЕ: -0.51 [22:34:41]line ИТОГО: 300.00 [22:34:41]line Внесено: 300.00 [22:34:41]line СДАЧА: 0.00 [22:34:41]line НСП 1% : 2.66 [22:34:41]line НДС 12% : 31.91 [22:34:41]line Наличными: 300.00 [22:34:41]line Безнал.: 0.00 [22:34:41]line Место: АЗС № 133 "Партнер Нефть" [22:34:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:34:41]line СНО: Общий режим [22:34:41]line Чек 357 20.10.2024 22:34 [22:34:41]line Смена: 170 ФФД: 1.0 [22:34:41]line ЗНМ: 0300000020 [22:34:41]line РНМ: 0000000000161154 [22:34:41]line Версия ККМ: v1.0 [22:34:41]line ФМ: 0000000000963323 [22:34:41]line ФД: 74031 [22:34:41]line ФПД: 109439987556734 [22:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223444&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74031&fm=109439987556734&tin=02508201610067®Number=0000000000161154&sum=30000 [22:34:42]OFD Sender: Processing packet 74031 [packets to send 15, broken 14] [22:34:42]ProducePacketName [22:34:42]name=ofd_packets/00074031 [22:34:42]OFD Sender: To server: pG, [22:34:42]CommunicateWithHost lk.salyk.kg:30040 [22:34:42]ConnectInit lk.salyk.kg [22:34:42]written 0, free lines is 4095 [22:34:42]Connected sock=10 [22:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 EE B5 07 01 5F 1C 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 65 01 00 00 F4 03 04 00 84 85 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 21 01 00 35 04 06 00 63 88 FB 95 21 7E 19 B5 06 B5 F8 55 44 F3 [22:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8F EE 47 00 3F 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 39 36 33 33 32 33 10 04 04 00 2F 21 01 00 F4 03 04 00 67 2E 15 67 B6 04 01 00 00 10 70 7C E6 71 1F C4 0A [22:34:42]CommunicateWithHost err = 0 [22:34:42]CheckOFDResponse [22:34:42]1017 (14) - 77093643461234 [22:34:42]1041 (16) - 0000000000963323 [22:34:42]1040 (4) - 74031 [22:34:42]1012 (4) - 20.10.2024 16:23 [22:34:42]1206 (1) - 0 [22:34:42]OFD Sender: Remove packet 74031 [22:34:42]ProducePacketName [22:34:42]name=ofd_packets/00074031 [22:34:42]NVStorageDeleteData [22:34:42]Write to MH i2c: 01 00 00 1E 5F 7D [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: 01 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: 01 07 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: 01 07 00 1E 5F 00 00 00 00 00 B1 0C 41 [22:34:42]RasterBufferAndPrint [22:34:42]line [22:34:42]line [22:34:42]line [22:34:42]line [22:34:42]line [22:34:42]written 0, free lines is 3254 [22:34:42]MH_Cut [22:34:42]Write to MH i2c: D1 01 00 25 5F 01 56 [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: D1 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: D1 01 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: D1 01 00 25 5F 00 55 [22:34:42]Write to MH i2c: 01 00 00 26 5F 85 [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:43]OFD Sender: No OFD packet to send [22:34:43]*** Cut start [22:34:43]*** Partial cut [22:34:43]*** CUTSNS_PIN = 1 [22:34:43]*** CUTSNS_PIN = 0 [22:34:43]*** Brake cut motor [22:34:44]Read from MH i2c: 01 [22:34:44]MH_I2C_Read... [22:34:44]*** Stop cut motor [22:34:44]*** Cut end [22:34:44]Read from MH i2c: 01 07 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: 01 07 00 26 5F 00 00 00 00 00 FF 0F 9A [22:34:44]process_action close_receipt done [22:34:44]requested_data is exist [22:34:44]produce_requested_data [22:34:44]requested_item fm.sn is exist - process it [22:34:44]wFMCommunicate request_size=4 [22:34:44]MH_SAM_APDU [22:34:44]CAPDU: 80 11 00 00 [22:34:44]Write to MH i2c: E2 08 00 27 5F 80 11 00 00 00 00 00 00 00 [22:34:44]Write i2c OK [22:34:44]MH_I2C_Read... [22:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:44]Read from MH i2c: E2 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 17 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 17 00 27 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4D [22:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:34:44]wFMCommunicate OK [22:34:44]requested_item fd.num is exist - process it [22:34:44]SAM_PROTO_GetFieldsCounters [22:34:44]wFMCommunicate request_size=4 [22:34:44]MH_SAM_APDU [22:34:44]CAPDU: 80 13 00 00 [22:34:44]Write to MH i2c: E2 08 00 28 5F 80 13 00 00 00 00 00 00 03 [22:34:44]Write i2c OK [22:34:44]MH_I2C_Read... [22:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:44]Read from MH i2c: E2 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 62 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 62 00 28 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2F 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2F 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:44]wFMCommunicate OK [22:34:44]SAM_PROTO_GetFieldsCounters done [22:34:44]requested_item shift.num is exist - process it [22:34:44]requested_item shift.opened is exist - process it [22:34:44]req_shift_opened [22:34:44]FM_GetShiftState [22:34:44]SAM_PROTO_GetShiftState [22:34:44]wFMCommunicate request_size=4 [22:34:44]MH_SAM_APDU [22:34:44]CAPDU: 80 13 01 00 [22:34:44]Write to MH i2c: E2 08 00 29 5F 80 13 01 00 00 00 00 00 05 [22:34:44]Write i2c OK [22:34:44]MH_I2C_Read... [22:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:44]Read from MH i2c: E2 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 0E 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 0E 00 29 5F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4A [22:34:44]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:34:44]wFMCommunicate OK [22:34:44]SAM_PROTO_GetShiftState done [22:34:44]FM_GetShiftState done [22:34:44]req_shift_opened done [22:34:44]requested_item shift.open_date is exist - process it [22:34:44]req_shift_open_date [22:34:44]req_shift_open_date done [22:34:44]produce_requested_data done [22:34:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74031,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:34:44]process_action_free close_receipt [22:34:44]json_value_free [22:34:44]json_value_free done [22:34:44]process_json_proto returns [22:34:44]Send response to host [22:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74031,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:34:44]free response buf [22:34:44]execute_script done [22:34:44]execute_script returns [22:34:44]free content buf [22:34:44]Sock 9.Close socket [22:34:44]Sock 9.Thread stoped [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]accept exits with 8 [22:52:18]New connection [22:52:18]New thread 3067575652 created [22:52:18]Thread 3067432292 joined [22:52:18]Waiting for new connection... [22:52:18] Sock 8.Parse request [22:52:18]Sock 8.Check first char [22:52:18]Sock 8.First char is OK [22:52:18]request: POST /json_proto HTTP/1.0 [22:52:18]Method: POST [22:52:18]URL: /json_proto [22:52:18]Method is POST - this is cgi request [22:52:18]url: /json_proto [22:52:18]query_string will be loaded in cgi processing [22:52:18]execute_cgi json_proto POST (null) [22:52:18]execute_cgi path=json_proto method=POST [22:52:18]POST find Content-Length [22:52:18]Host: 172.17.44.196:8080 [22:52:18]Content-Length: 664 [22:52:18]Content-Type: application/json [22:52:18] [22:52:18]POST finish read [22:52:18]Found Content-Length = 664 [22:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1963386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:52:18]execute_script... [22:52: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 : (1)1963386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [22:52:18]POST & json_proto [22:52:18]process_json_proto [22:52:18]json parsed OK: [22:52:18]protocol is kg_v1.0 [22:52:18]action value=close_receipt [22:52:18]process_action close_receipt [22:52:18]cmd_close_receipt [22:52:18]MH_GetDate [22:52:18]Write to MH i2c: F0 00 00 2A 5F 78 [22:52:18]Write i2c OK [22:52:18]MH_I2C_Read... [22:52:18]Read from MH i2c: F0 [22:52:18]MH_I2C_Read... [22:52:18]Read from MH i2c: F0 09 00 [22:52:18]MH_I2C_Read... [22:52:18]Read from MH i2c: F0 09 00 2A 5F 00 A6 89 15 67 E7 19 F8 65 89 [22:52:18]GetLastDocTimeStamp 1729463684 [22:52:18]current date 1729464742 [22:52:18]FM_GetShiftState [22:52:18]SAM_PROTO_GetShiftState [22:52:18]wFMCommunicate request_size=4 [22:52:18]MH_SAM_APDU [22:52:18]CAPDU: 80 13 01 00 [22:52:18]Write to MH i2c: E2 08 00 2B 5F 80 13 01 00 00 00 00 00 07 [22:52:18]Write i2c OK [22:52:18]MH_I2C_Read... [22:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:18]Read from MH i2c: E2 [22:52:18]MH_I2C_Read... [22:52:18]Read from MH i2c: E2 0E 00 [22:52:18]MH_I2C_Read... [22:52:18]Read from MH i2c: E2 0E 00 2B 5F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4C [22:52:18]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:52:18]wFMCommunicate OK [22:52:18]SAM_PROTO_GetShiftState done [22:52:18]FM_GetShiftState done [22:52:18]opened in 1729384303 [22:52:18]opened+sec_in_day 1729470703 [22:52:18]quantity*price = 100000 [22:52:18]sum+1 = 100002 [22:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 358 20.10.2024 22:52 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74032 ФПД: 261213534200623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225222&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74032&fm=261213534200623&tin=02508201610067®Number=0000000000161154&sum=100000 [22:52:19]StoreToDocumentArchive [22:52:19]shift 170 fd 74032 [22:52:19]save to /storage/0170/doc_00074032 [22:52:19]save last doc name /storage/0170/doc_00074032 to /storage/kkm_last_doc_name [22:52:19]save OK [22:52:19]Clear old archive folders... [22:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:52:19]tlvbuf is 0039D910 [22:52:19]SAM_PROTO_ClearQueue [22:52:19]wFMCommunicate request_size=4 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 09 00 00 [22:52:19]Write to MH i2c: E2 08 00 38 5F 80 09 00 00 00 00 00 00 09 [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 03 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 03 00 38 5F 00 90 00 0B [22:52:19]RAPDU: 90 00 [22:52:19]wFMCommunicate OK [22:52:19]SAM_PROTO_ClearQueue done [22:52:19]KKMCreateOFDPacket [22:52:19]OFDProtocolAddRootSTLVToBuf [22:52:19]FM_MakeSignedData [22:52:19]FM_MakeSignedData [22:52:19]SAM_PROTO_SignData [22:52:19]wFMCommunicate request_size=4 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 0D 01 02 [22:52:19]Write to MH i2c: E2 08 00 39 5F 80 0D 01 02 00 00 00 00 11 [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 03 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 03 00 39 5F 00 90 00 0C [22:52:19]RAPDU: 90 00 [22:52:19]wFMCommunicate OK [22:52:19]wFMCommunicate request_size=253 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 66 01 00 00 F4 03 04 00 A6 89 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 21 01 00 35 04 06 00 ED 92 83 EA A3 2F [22:52:19]Write to MH i2c: E2 00 01 3A 5F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 66 01 00 00 F4 03 04 00 A6 89 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 21 01 00 35 04 06 00 ED 92 83 EA A3 2F 00 00 42 [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 03 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 03 00 3A 5F 00 90 00 0D [22:52:19]RAPDU: 90 00 [22:52:19]wFMCommunicate OK [22:52:19]wFMCommunicate request_size=4 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 0D 03 02 [22:52:19]Write to MH i2c: E2 08 00 3B 5F 80 0D 03 02 00 00 00 00 15 [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 0B 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 0B 00 3B 5F 00 61 D0 E6 31 7A B1 91 B1 90 00 CB [22:52:19]RAPDU: 61 D0 E6 31 7A B1 91 B1 90 00 [22:52:19]wFMCommunicate OK [22:52:19]SAM_PROTO_SignData done [22:52:19]FM_MakeSignedData done [22:52:19]CreateOFDProtocolMessage [22:52:19]wFMCommunicate request_size=4 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 11 00 00 [22:52:19]Write to MH i2c: E2 08 00 3C 5F 80 11 00 00 00 00 00 00 15 [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 17 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 17 00 3C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [22:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:52:19]wFMCommunicate OK [22:52:19]CreateOFDProtocolMessage done [22:52:19]OFDSenderStorePacket 74032 [22:52:19]StoreOFDPacket docnum=74032 [22:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 43 51 00 01 23 71 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 66 01 00 00 F4 03 04 00 A6 89 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 21 01 00 35 04 06 00 ED 92 83 EA A3 2F 61 D0 E6 31 7A B1 91 B1 [22:52:19]CheckFolder [22:52:19]dirname=/storage/ofd_packets [22:52:19]CheckFolder done [22:52:19]ProducePacketName [22:52:19]name=ofd_packets/00074032 [22:52:19]NVStorageSaveData ofd_packets/00074032 [22:52:19]File name is /storage/ofd_packets/00074032 [22:52:19]Write 294 bytes [22:52:19]NVStorageSaveData done [22:52:19]OFDSenderStorePacket done [22:52:19]KKMCreateOFDPacket done [22:52:19]NVStorageSaveData kkm_last_timestamp [22:52:19]File name is /storage/kkm_last_timestamp [22:52:19]Write 4 bytes [22:52:19]NVStorageSaveData done [22:52:19]ExternCall_PrintAddStr [22:52:19]wPrintStart [22:52:19]Write to MH i2c: 01 00 00 3D 5F 9C [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: 01 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: 01 07 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: 01 07 00 3D 5F 00 00 00 00 00 FF 0F B1 [22:52:19]RasterBufferAndPrint [22:52:19]line Счет N : (1)1963386 [22:52:19]line ИНН: 02508201610067 [22:52:19]line Контрольно-Кассовый Чек [22:52:19]line ПРОДАЖА [22:52:19]line ТРК (МРК, ГНК) : 42 [22:52:19]line Товар: 2710124130 [22:52:19]line SU-92 [22:52:19]line 14.620 * 68.40 [22:52:19]line = 1000.01 [22:52:19]line НДС 12% НСП 1% [22:52:19]line > о реализуемом товаре [22:52:19]line ОКРУГЛЕНИЕ: -0.01 [22:52:19]line ИТОГО: 1000.00 [22:52:19]line Внесено: 1000.00 [22:52:19]line СДАЧА: 0.00 [22:52:19]line НСП 1% : 8.85 [22:52:19]line НДС 12% : 106.20 [22:52:19]line Наличными: 1000.00 [22:52:19]line Безнал.: 0.00 [22:52:19]line Место: АЗС № 133 "Партнер Нефть" [22:52:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:52:19]line СНО: Общий режим [22:52:19]line Чек 358 20.10.2024 22:52 [22:52:19]line Смена: 170 ФФД: 1.0 [22:52:19]line ЗНМ: 0300000020 [22:52:19]line РНМ: 0000000000161154 [22:52:19]line Версия ККМ: v1.0 [22:52:19]line ФМ: 0000000000963323 [22:52:19]line ФД: 74032 [22:52:19]line ФПД: 261213534200623 [22:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225222&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74032&fm=261213534200623&tin=02508201610067®Number=0000000000161154&sum=100000 [22:52:19]OFD Sender: Processing packet 74032 [packets to send 15, broken 14] [22:52:20]ProducePacketName [22:52:20]name=ofd_packets/00074032 [22:52:20]OFD Sender: To server: pG, [22:52:20]CommunicateWithHost lk.salyk.kg:30040 [22:52:20]ConnectInit lk.salyk.kg [22:52:20]written 0, free lines is 4095 [22:52:20]Connected sock=10 [22:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 43 51 00 01 23 71 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 7C 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 66 01 00 00 F4 03 04 00 A6 89 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 21 01 00 35 04 06 00 ED 92 83 EA A3 2F 61 D0 E6 31 7A B1 91 B1 [22:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3A DC 47 00 29 85 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 39 36 33 33 32 33 10 04 04 00 30 21 01 00 F4 03 04 00 89 32 15 67 B6 04 01 00 00 E9 6F 11 6D A3 FC 65 96 [22:52:20]CommunicateWithHost err = 0 [22:52:20]CheckOFDResponse [22:52:20]1017 (14) - 77093643461234 [22:52:20]1041 (16) - 0000000000963323 [22:52:20]1040 (4) - 74032 [22:52:20]1012 (4) - 20.10.2024 16:40 [22:52:20]1206 (1) - 0 [22:52:20]OFD Sender: Remove packet 74032 [22:52:20]ProducePacketName [22:52:20]name=ofd_packets/00074032 [22:52:20]NVStorageDeleteData [22:52:20]Write to MH i2c: 01 00 00 67 5F C6 [22:52:20]Write i2c OK [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: 01 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: 01 07 00 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: 01 07 00 67 5F 00 00 00 00 00 A9 0C 82 [22:52:20]RasterBufferAndPrint [22:52:20]line [22:52:20]line [22:52:20]line [22:52:20]line [22:52:20]line [22:52:20]written 0, free lines is 3245 [22:52:20]MH_Cut [22:52:20]Write to MH i2c: D1 01 00 6E 5F 01 9F [22:52:20]Write i2c OK [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: D1 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: D1 01 00 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: D1 01 00 6E 5F 00 9E [22:52:20]Write to MH i2c: 01 00 00 6F 5F CE [22:52:20]Write i2c OK [22:52:20]MH_I2C_Read... [22:52:20]OFD Sender: No OFD packet to send [22:52:21]*** Cut start [22:52:21]*** Partial cut [22:52:21]*** CUTSNS_PIN = 1 [22:52:21]*** CUTSNS_PIN = 0 [22:52:21]*** Brake cut motor [22:52:21]Read from MH i2c: 01 [22:52:21]MH_I2C_Read... [22:52:21]*** Stop cut motor [22:52:21]*** Cut end [22:52:21]Read from MH i2c: 01 07 00 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: 01 07 00 6F 5F 00 00 00 00 00 FF 0F E3 [22:52:21]process_action close_receipt done [22:52:21]requested_data is exist [22:52:21]produce_requested_data [22:52:21]requested_item fm.sn is exist - process it [22:52:21]wFMCommunicate request_size=4 [22:52:21]MH_SAM_APDU [22:52:21]CAPDU: 80 11 00 00 [22:52:21]Write to MH i2c: E2 08 00 70 5F 80 11 00 00 00 00 00 00 49 [22:52:21]Write i2c OK [22:52:21]MH_I2C_Read... [22:52:22]Read from MH i2c: E2 [22:52:22]MH_I2C_Read... [22:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:22]Read from MH i2c: E2 17 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: E2 17 00 70 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 96 [22:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:52:22]wFMCommunicate OK [22:52:22]requested_item fd.num is exist - process it [22:52:22]SAM_PROTO_GetFieldsCounters [22:52:22]wFMCommunicate request_size=4 [22:52:22]MH_SAM_APDU [22:52:22]CAPDU: 80 13 00 00 [22:52:22]Write to MH i2c: E2 08 00 71 5F 80 13 00 00 00 00 00 00 4C [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:22]Read from MH i2c: E2 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: E2 62 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: E2 62 00 71 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 30 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [22:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 30 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:22]wFMCommunicate OK [22:52:22]SAM_PROTO_GetFieldsCounters done [22:52:22]requested_item shift.num is exist - process it [22:52:22]requested_item shift.opened is exist - process it [22:52:22]req_shift_opened [22:52:22]FM_GetShiftState [22:52:22]SAM_PROTO_GetShiftState [22:52:22]wFMCommunicate request_size=4 [22:52:22]MH_SAM_APDU [22:52:22]CAPDU: 80 13 01 00 [22:52:22]Write to MH i2c: E2 08 00 72 5F 80 13 01 00 00 00 00 00 4E [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:22]Read from MH i2c: E2 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: E2 0E 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: E2 0E 00 72 5F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 93 [22:52:22]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [22:52:22]wFMCommunicate OK [22:52:22]SAM_PROTO_GetShiftState done [22:52:22]FM_GetShiftState done [22:52:22]req_shift_opened done [22:52:22]requested_item shift.open_date is exist - process it [22:52:22]req_shift_open_date [22:52:22]req_shift_open_date done [22:52:22]produce_requested_data done [22:52:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74032,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [22:52:22]process_action_free close_receipt [22:52:22]json_value_free [22:52:22]json_value_free done [22:52:22]process_json_proto returns [22:52:22]Send response to host [22:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74032,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [22:52:22]free response buf [22:52:22]execute_script done [22:52:22]execute_script returns [22:52:22]free content buf [22:52:22]Sock 8.Close socket [22:52:22]Sock 8.Thread stoped [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]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:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:50]accept exits with 9 [23:09:50]New connection [23:09:50]New thread 3067432292 created [23:09:50]Thread 3067575652 joined [23:09:50]Waiting for new connection... [23:09:50] Sock 9.Parse request [23:09:50]Sock 9.Check first char [23:09:50]Sock 9.First char is OK [23:09:50]request: POST /json_proto HTTP/1.0 [23:09:50]Method: POST [23:09:50]URL: /json_proto [23:09:50]Method is POST - this is cgi request [23:09:50]url: /json_proto [23:09:50]query_string will be loaded in cgi processing [23:09:50]execute_cgi json_proto POST (null) [23:09:50]execute_cgi path=json_proto method=POST [23:09:50]POST find Content-Length [23:09:50]Host: 172.17.44.196:8080 [23:09:50]Content-Length: 639 [23:09:50]Content-Type: application/json [23:09:50] [23:09:50]POST finish read [23:09:50]Found Content-Length = 639 [23:09:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272865", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:50]execute_script... [23:09: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)272865", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:50]POST & json_proto [23:09:50]process_json_proto [23:09:50]json parsed OK: [23:09:50]protocol is kg_v1.0 [23:09:50]action value=close_receipt [23:09:50]process_action close_receipt [23:09:50]cmd_close_receipt [23:09:50]MH_GetDate [23:09:50]Write to MH i2c: F0 00 00 73 5F C1 [23:09:50]Write i2c OK [23:09:50]MH_I2C_Read... [23:09:50]Read from MH i2c: F0 [23:09:50]MH_I2C_Read... [23:09:50]Read from MH i2c: F0 09 00 [23:09:50]MH_I2C_Read... [23:09:50]Read from MH i2c: F0 09 00 73 5F 00 C2 8D 15 67 E7 19 F8 65 F2 [23:09:50]GetLastDocTimeStamp 1729464742 [23:09:50]current date 1729465794 [23:09:50]FM_GetShiftState [23:09:50]SAM_PROTO_GetShiftState [23:09:50]wFMCommunicate request_size=4 [23:09:50]MH_SAM_APDU [23:09:50]CAPDU: 80 13 01 00 [23:09:50]Write to MH i2c: E2 08 00 74 5F 80 13 01 00 00 00 00 00 50 [23:09:50]Write i2c OK [23:09:50]MH_I2C_Read... [23:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:50]Read from MH i2c: E2 [23:09:50]MH_I2C_Read... [23:09:50]Read from MH i2c: E2 0E 00 [23:09:50]MH_I2C_Read... [23:09:50]Read from MH i2c: E2 0E 00 74 5F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 95 [23:09:50]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:09:50]wFMCommunicate OK [23:09:50]SAM_PROTO_GetShiftState done [23:09:50]FM_GetShiftState done [23:09:50]opened in 1729384303 [23:09:50]opened+sec_in_day 1729470703 [23:09:50]quantity*price = 12500 [23:09:50]sum+1 = 12501 [23:09:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 359 20.10.2024 23:09 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74033 ФПД: 119496673969453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230954&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74033&fm=119496673969453&tin=02508201610067®Number=0000000000161154&sum=12500 0 [23:09:51]StoreToDocumentArchive [23:09:51]shift 170 fd 74033 [23:09:51]save to /storage/0170/doc_00074033 [23:09:51]save last doc name /storage/0170/doc_00074033 to /storage/kkm_last_doc_name [23:09:51]save OK [23:09:51]Clear old archive folders... [23:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=271 [23:09:51]tlvbuf is 0039B280 [23:09:51]SAM_PROTO_ClearQueue [23:09:51]wFMCommunicate request_size=4 [23:09:51]MH_SAM_APDU [23:09:51]CAPDU: 80 09 00 00 [23:09:51]Write to MH i2c: E2 08 00 81 5F 80 09 00 00 00 00 00 00 52 [23:09:51]Write i2c OK [23:09:51]MH_I2C_Read... [23:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:51]Read from MH i2c: E2 [23:09:51]MH_I2C_Read... [23:09:51]Read from MH i2c: E2 03 00 [23:09:51]MH_I2C_Read... [23:09:51]Read from MH i2c: E2 03 00 81 5F 00 90 00 54 [23:09:51]RAPDU: 90 00 [23:09:51]wFMCommunicate OK [23:09:51]SAM_PROTO_ClearQueue done [23:09:51]KKMCreateOFDPacket [23:09:51]OFDProtocolAddRootSTLVToBuf [23:09:51]FM_MakeSignedData [23:09:51]FM_MakeSignedData [23:09:51]SAM_PROTO_SignData [23:09:51]wFMCommunicate request_size=4 [23:09:51]MH_SAM_APDU [23:09:51]CAPDU: 80 0D 01 02 [23:09:51]Write to MH i2c: E2 08 00 82 5F 80 0D 01 02 00 00 00 00 5A [23:09:51]Write i2c OK [23:09:51]MH_I2C_Read... [23:09:51]OFD Sender: No OFD packet to send [23:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:51]Read from MH i2c: E2 [23:09:51]MH_I2C_Read... [23:09:51]Read from MH i2c: E2 03 00 [23:09:51]MH_I2C_Read... [23:09:51]Read from MH i2c: E2 03 00 82 5F 00 90 00 55 [23:09:51]RAPDU: 90 00 [23:09:51]wFMCommunicate OK [23:09:51]wFMCommunicate request_size=255 [23:09:51]MH_SAM_APDU [23:09:51]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 67 01 00 00 F4 03 04 00 C2 8D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [23:09:51]Write to MH i2c: E2 02 01 83 5F 80 0D 02 02 FA 00 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 67 01 00 00 F4 03 04 00 C2 8D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 35 [23:09:51]Write i2c OK [23:09:51]MH_I2C_Read... [23:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:51]Read from MH i2c: E2 [23:09:51]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 03 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 03 00 83 5F 00 90 00 56 [23:09:52]RAPDU: 90 00 [23:09:52]wFMCommunicate OK [23:09:52]wFMCommunicate request_size=30 [23:09:52]MH_SAM_APDU [23:09:52]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 31 21 01 00 35 04 06 00 6C AE 7C CD C5 2D [23:09:52]Write to MH i2c: E2 21 00 84 5F 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 31 21 01 00 35 04 06 00 6C AE 7C CD C5 2D 00 00 F8 [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:52]Read from MH i2c: E2 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 03 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 03 00 84 5F 00 90 00 57 [23:09:52]RAPDU: 90 00 [23:09:52]wFMCommunicate OK [23:09:52]wFMCommunicate request_size=4 [23:09:52]MH_SAM_APDU [23:09:52]CAPDU: 80 0D 03 02 [23:09:52]Write to MH i2c: E2 08 00 85 5F 80 0D 03 02 00 00 00 00 5F [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:52]Read from MH i2c: E2 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 0B 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 0B 00 85 5F 00 3E EB C9 8D 42 C6 D7 F9 90 00 B7 [23:09:52]RAPDU: 3E EB C9 8D 42 C6 D7 F9 90 00 [23:09:52]wFMCommunicate OK [23:09:52]SAM_PROTO_SignData done [23:09:52]FM_MakeSignedData done [23:09:52]CreateOFDProtocolMessage [23:09:52]wFMCommunicate request_size=4 [23:09:52]MH_SAM_APDU [23:09:52]CAPDU: 80 11 00 00 [23:09:52]Write to MH i2c: E2 08 00 86 5F 80 11 00 00 00 00 00 00 5F [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:52]Read from MH i2c: E2 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 17 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: E2 17 00 86 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [23:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:09:52]wFMCommunicate OK [23:09:52]CreateOFDProtocolMessage done [23:09:52]OFDSenderStorePacket 74033 [23:09:52]StoreOFDPacket docnum=74033 [23:09:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 7E 77 1B 01 BC C0 5A 03 01 00 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 67 01 00 00 F4 03 04 00 C2 8D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 21 01 00 35 04 06 00 6C AE 7C CD C5 2D 3E EB C9 8D 42 C6 D7 F9 [23:09:52]CheckFolder [23:09:52]dirname=/storage/ofd_packets [23:09:52]CheckFolder done [23:09:52]ProducePacketName [23:09:52]name=ofd_packets/00074033 [23:09:52]NVStorageSaveData ofd_packets/00074033 [23:09:52]File name is /storage/ofd_packets/00074033 [23:09:52]Write 321 bytes [23:09:52]NVStorageSaveData done [23:09:52]OFDSenderStorePacket done [23:09:52]KKMCreateOFDPacket done [23:09:52]NVStorageSaveData kkm_last_timestamp [23:09:52]File name is /storage/kkm_last_timestamp [23:09:52]Write 4 bytes [23:09:52]NVStorageSaveData done [23:09:52]ExternCall_PrintAddStr [23:09:52]wPrintStart [23:09:52]Write to MH i2c: 01 00 00 87 5F E6 [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: 01 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: 01 07 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: 01 07 00 87 5F 00 00 00 00 00 FF 0F FB [23:09:52]RasterBufferAndPrint [23:09:52]line Счет N : (3)272865 [23:09:52]line ИНН: 02508201610067 [23:09:52]line Контрольно-Кассовый Чек [23:09:52]line ПРОДАЖА [23:09:52]line Товар: 5449000006271 [23:09:52]line Напиток Фанта 1л [23:09:52]line 1.000 * 125.00 [23:09:52]line = 125.00 [23:09:52]line НДС 12% НСП 1% [23:09:52]line > о реализуемом товаре [23:09:52]line ИТОГО: 125.00 [23:09:52]line НСП 1% : 1.11 [23:09:52]line НДС 12% : 13.27 [23:09:52]line Наличными: 125.00 [23:09:52]line Безнал.: 0.00 [23:09:52]line Место: АЗС № 133 "Партнер Нефть" [23:09:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:09:52]line СНО: Общий режим [23:09:52]line Чек 359 20.10.2024 23:09 [23:09:52]line Смена: 170 ФФД: 1.0 [23:09:52]line ЗНМ: 0300000020 [23:09:52]line РНМ: 0000000000161154 [23:09:52]line Версия ККМ: v1.0 [23:09:52]line ФМ: 0000000000963323 [23:09:52]line ФД: 74033 [23:09:52]line ФПД: 119496673969453 [23:09:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230954&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74033&fm=119496673969453&tin=02508201610067®Number=0000000000161154&sum=12500 [23:09:52]line 0 [23:09:52]OFD Sender: Processing packet 74033 [packets to send 15, broken 14] [23:09:52]ProducePacketName [23:09:52]name=ofd_packets/00074033 [23:09:52]OFD Sender: To server: pG, [23:09:52]CommunicateWithHost lk.salyk.kg:30040 [23:09:52]ConnectInit lk.salyk.kg [23:09:52]written 0, free lines is 4095 [23:09:52]Connected sock=10 [23:09:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 7E 77 1B 01 BC C0 5A 03 01 00 03 00 0F 01 1E 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 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 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 67 01 00 00 F4 03 04 00 C2 8D 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 21 01 00 35 04 06 00 6C AE 7C CD C5 2D 3E EB C9 8D 42 C6 D7 F9 [23:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 ED CE 47 00 4B 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 39 36 33 33 32 33 10 04 04 00 31 21 01 00 F4 03 04 00 A6 36 15 67 B6 04 01 00 00 40 C3 B4 AE F5 F2 05 A3 [23:09:52]CommunicateWithHost err = 0 [23:09:52]CheckOFDResponse [23:09:52]1017 (14) - 77093643461234 [23:09:52]1041 (16) - 0000000000963323 [23:09:52]1040 (4) - 74033 [23:09:52]1012 (4) - 20.10.2024 16:58 [23:09:52]1206 (1) - 0 [23:09:52]OFD Sender: Remove packet 74033 [23:09:52]ProducePacketName [23:09:52]name=ofd_packets/00074033 [23:09:52]NVStorageDeleteData [23:09:52]Write to MH i2c: 01 00 00 AE 5F 0D [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: 01 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: 01 07 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: 01 07 00 AE 5F 00 00 00 00 00 D7 0C F7 [23:09:52]RasterBufferAndPrint [23:09:52]line [23:09:52]line [23:09:52]line [23:09:52]line [23:09:52]line [23:09:52]written 0, free lines is 3292 [23:09:52]MH_Cut [23:09:52]Write to MH i2c: D1 01 00 B5 5F 01 E6 [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: D1 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: D1 01 00 [23:09:52]MH_I2C_Read... [23:09:52]Read from MH i2c: D1 01 00 B5 5F 00 E5 [23:09:52]Write to MH i2c: 01 00 00 B6 5F 15 [23:09:52]Write i2c OK [23:09:52]MH_I2C_Read... [23:09:53]OFD Sender: No OFD packet to send [23:09:53]*** Cut start [23:09:53]*** Partial cut [23:09:53]*** CUTSNS_PIN = 1 [23:09:53]*** CUTSNS_PIN = 0 [23:09:54]*** Brake cut motor [23:09:54]Read from MH i2c: 01 [23:09:54]MH_I2C_Read... [23:09:54]*** Stop cut motor [23:09:54]*** Cut end [23:09:54]Read from MH i2c: 01 07 00 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: 01 07 00 B6 5F 00 00 00 00 00 FF 0F 2A [23:09:54]process_action close_receipt done [23:09:54]requested_data is exist [23:09:54]produce_requested_data [23:09:54]requested_item fm.sn is exist - process it [23:09:54]wFMCommunicate request_size=4 [23:09:54]MH_SAM_APDU [23:09:54]CAPDU: 80 11 00 00 [23:09:54]Write to MH i2c: E2 08 00 B7 5F 80 11 00 00 00 00 00 00 90 [23:09:54]Write i2c OK [23:09:54]MH_I2C_Read... [23:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:54]Read from MH i2c: E2 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: E2 17 00 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: E2 17 00 B7 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DD [23:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:09:54]wFMCommunicate OK [23:09:54]requested_item fd.num is exist - process it [23:09:54]SAM_PROTO_GetFieldsCounters [23:09:54]wFMCommunicate request_size=4 [23:09:54]MH_SAM_APDU [23:09:54]CAPDU: 80 13 00 00 [23:09:54]Write to MH i2c: E2 08 00 B8 5F 80 13 00 00 00 00 00 00 93 [23:09:54]Write i2c OK [23:09:54]MH_I2C_Read... [23:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:54]Read from MH i2c: E2 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: E2 62 00 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: E2 62 00 B8 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 31 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [23:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 31 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:54]wFMCommunicate OK [23:09:54]SAM_PROTO_GetFieldsCounters done [23:09:54]requested_item shift.num is exist - process it [23:09:54]requested_item shift.opened is exist - process it [23:09:54]req_shift_opened [23:09:54]FM_GetShiftState [23:09:54]SAM_PROTO_GetShiftState [23:09:54]wFMCommunicate request_size=4 [23:09:54]MH_SAM_APDU [23:09:54]CAPDU: 80 13 01 00 [23:09:54]Write to MH i2c: E2 08 00 B9 5F 80 13 01 00 00 00 00 00 95 [23:09:54]Write i2c OK [23:09:54]MH_I2C_Read... [23:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:54]Read from MH i2c: E2 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: E2 0E 00 [23:09:54]MH_I2C_Read... [23:09:54]Read from MH i2c: E2 0E 00 B9 5F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DA [23:09:54]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:09:54]wFMCommunicate OK [23:09:54]SAM_PROTO_GetShiftState done [23:09:54]FM_GetShiftState done [23:09:54]req_shift_opened done [23:09:54]requested_item shift.open_date is exist - process it [23:09:54]req_shift_open_date [23:09:54]req_shift_open_date done [23:09:54]produce_requested_data done [23:09:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74033,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [23:09:54]process_action_free close_receipt [23:09:54]json_value_free [23:09:54]json_value_free done [23:09:54]process_json_proto returns [23:09:54]Send response to host [23:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74033,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [23:09:54]free response buf [23:09:54]execute_script done [23:09:54]execute_script returns [23:09:54]free content buf [23:09:54]Sock 9.Close socket [23:09:54]Sock 9.Thread stoped [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:37]int [23:10:37]Write to MH i2c: 01 00 00 BA 5F 19 [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 [23:10:37]MH_I2C_Read... [23:10:37]*** FLAG_PRN_PAP1 set [23:10:37]*** FLAG_PRN_PAP1 reset [23:10:37]Read from MH i2c: 01 07 00 BA 5F 00 00 00 00 00 FF 0F 2E [23:10:37]state=0 [23:10:37]int [23:10:37]Write to MH i2c: 01 00 00 BB 5F 1A [23:10:37]*** FLAG_PRN_PAP1 set [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 BB 5F 00 01 00 00 00 FF 0F 30 [23:10:37]state=0 [23:10:37]No paper [23:10:37]int [23:10:37]Write to MH i2c: 01 00 00 BC 5F 1B [23:10:37]*** FLAG_PRN_PAP2 set [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 BC 5F 00 03 00 00 00 FF 0F 33 [23:10:37]state=0 [23:10:37]No paper [23:10:37]Cover opened [23:10:38]OFD Sender: No OFD packet to send [23:10:42]Write to MH i2c: 01 00 00 BD 5F 1C [23:10:42]Write i2c OK [23:10:42]MH_I2C_Read... [23:10:42]Read from MH i2c: 01 [23:10:42]MH_I2C_Read... [23:10:42]Read from MH i2c: 01 07 00 [23:10:42]MH_I2C_Read... [23:10:42]Read from MH i2c: 01 07 00 BD 5F 00 03 00 00 00 FF 0F 34 [23:10:42]state=3 [23:10:42]No paper [23:10:42]Cover opened [23:10:43]OFD Sender: No OFD packet to send [23:10:47]Write to MH i2c: 01 00 00 BE 5F 1D [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 BE 5F 00 03 00 00 00 FF 0F 35 [23:10:47]state=3 [23:10:47]No paper [23:10:47]Cover opened [23:10:48]OFD Sender: No OFD packet to send [23:10:51]int [23:10:51]Write to MH i2c: 01 00 00 BF 5F 1E [23:10:51]*** FLAG_PRN_PAP1 reset [23:10:51]*** FLAG_PRN_PAP2 reset [23:10:51]Write i2c OK [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: 01 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: 01 07 00 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: 01 07 00 BF 5F 00 00 00 00 00 FF 0F 33 [23:10:51]state=3 [23:10:51]Cover closed [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:13:59]accept exits with 8 [23:13:59]New connection [23:13:59]New thread 3067575652 created [23:13:59]Thread 3067432292 joined [23:13:59]Waiting for new connection... [23:13:59] Sock 8.Parse request [23:13:59]Sock 8.Check first char [23:13:59]Sock 8.First char is OK [23:13:59]request: POST /json_proto HTTP/1.0 [23:13:59]Method: POST [23:13:59]URL: /json_proto [23:13:59]Method is POST - this is cgi request [23:13:59]url: /json_proto [23:13:59]query_string will be loaded in cgi processing [23:13:59]execute_cgi json_proto POST (null) [23:13:59]execute_cgi path=json_proto method=POST [23:13:59]POST find Content-Length [23:13:59]Host: 172.17.44.196:8080 [23:13:59]Content-Length: 792 [23:13:59]Content-Type: application/json [23:13:59] [23:13:59]POST finish read [23:13:59]Found Content-Length = 792 [23:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272866", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\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: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:59]execute_script... [23:13:59]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)272866", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\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: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:59]POST & json_proto [23:13:59]process_json_proto [23:13:59]json parsed OK: [23:13:59]protocol is kg_v1.0 [23:13:59]action value=close_receipt [23:13:59]process_action close_receipt [23:13:59]cmd_close_receipt [23:13:59]MH_GetDate [23:13:59]Write to MH i2c: F0 00 00 C0 5F 0E [23:13:59]Write i2c OK [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: F0 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: F0 09 00 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: F0 09 00 C0 5F 00 BB 8E 15 67 E7 19 F8 65 39 [23:13:59]GetLastDocTimeStamp 1729465794 [23:13:59]current date 1729466043 [23:13:59]FM_GetShiftState [23:13:59]SAM_PROTO_GetShiftState [23:13:59]wFMCommunicate request_size=4 [23:13:59]MH_SAM_APDU [23:13:59]CAPDU: 80 13 01 00 [23:13:59]Write to MH i2c: E2 08 00 C1 5F 80 13 01 00 00 00 00 00 9D [23:13:59]Write i2c OK [23:13:59]MH_I2C_Read... [23:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:59]Read from MH i2c: E2 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: E2 0E 00 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: E2 0E 00 C1 5F 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 E2 [23:13:59]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:13:59]wFMCommunicate OK [23:13:59]SAM_PROTO_GetShiftState done [23:13:59]FM_GetShiftState done [23:13:59]opened in 1729384303 [23:13:59]opened+sec_in_day 1729470703 [23:13:59]quantity*price = 9500 [23:13:59]sum+1 = 9501 [23:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 360 20.10.2024 23:14 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 74034 ФПД: 156288703602980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231403&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74034&fm=156288703602980&tin=02508201610067®Number=0000000000161154&sum=9500 0 [23:14:00]StoreToDocumentArchive [23:14:00]shift 170 fd 74034 [23:14:00]save to /storage/0170/doc_00074034 [23:14:00]save last doc name /storage/0170/doc_00074034 to /storage/kkm_last_doc_name [23:14:00]save OK [23:14:00]Clear old archive folders... [23:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=296 [23:14:00]tlvbuf is 0043BE80 [23:14:00]SAM_PROTO_ClearQueue [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 09 00 00 [23:14:00]Write to MH i2c: E2 08 00 CE 5F 80 09 00 00 00 00 00 00 9F [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 CE 5F 00 90 00 A1 [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]SAM_PROTO_ClearQueue done [23:14:00]KKMCreateOFDPacket [23:14:00]OFDProtocolAddRootSTLVToBuf [23:14:00]FM_MakeSignedData [23:14:00]FM_MakeSignedData [23:14:00]SAM_PROTO_SignData [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 01 02 [23:14:00]Write to MH i2c: E2 08 00 CF 5F 80 0D 01 02 00 00 00 00 A7 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 CF 5F 00 90 00 A2 [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]wFMCommunicate request_size=255 [23:14:00]MH_SAM_APDU [23:14:00]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 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 BB 8E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [23:14:00]Write to MH i2c: E2 02 01 D0 5F 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 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 BB 8E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 FF [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:01]Read from MH i2c: E2 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 03 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 03 00 D0 5F 00 90 00 A3 [23:14:01]RAPDU: 90 00 [23:14:01]wFMCommunicate OK [23:14:01]wFMCommunicate request_size=55 [23:14:01]MH_SAM_APDU [23:14:01]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 21 01 00 35 04 06 00 8E 24 CC A9 21 24 [23:14:01]Write to MH i2c: E2 3A 00 D1 5F 80 0D 02 02 32 00 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 21 01 00 35 04 06 00 8E 24 CC A9 21 24 00 00 B6 [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:01]Read from MH i2c: E2 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 03 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 03 00 D1 5F 00 90 00 A4 [23:14:01]RAPDU: 90 00 [23:14:01]wFMCommunicate OK [23:14:01]wFMCommunicate request_size=4 [23:14:01]MH_SAM_APDU [23:14:01]CAPDU: 80 0D 03 02 [23:14:01]Write to MH i2c: E2 08 00 D2 5F 80 0D 03 02 00 00 00 00 AC [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:01]Read from MH i2c: E2 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 0B 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 0B 00 D2 5F 00 C8 44 77 3C 4F 31 CB 8D 90 00 44 [23:14:01]RAPDU: C8 44 77 3C 4F 31 CB 8D 90 00 [23:14:01]wFMCommunicate OK [23:14:01]SAM_PROTO_SignData done [23:14:01]FM_MakeSignedData done [23:14:01]CreateOFDProtocolMessage [23:14:01]wFMCommunicate request_size=4 [23:14:01]MH_SAM_APDU [23:14:01]CAPDU: 80 11 00 00 [23:14:01]Write to MH i2c: E2 08 00 D3 5F 80 11 00 00 00 00 00 00 AC [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:01]Read from MH i2c: E2 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 17 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: E2 17 00 D3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [23:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:14:01]wFMCommunicate OK [23:14:01]CreateOFDProtocolMessage done [23:14:01]OFDSenderStorePacket 74034 [23:14:01]StoreOFDPacket docnum=74034 [23:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 C0 1C 34 01 89 6B 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 BB 8E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 21 01 00 35 04 06 00 8E 24 CC A9 21 24 C8 44 77 3C 4F 31 CB 8D [23:14:01]CheckFolder [23:14:01]dirname=/storage/ofd_packets [23:14:01]CheckFolder done [23:14:01]ProducePacketName [23:14:01]name=ofd_packets/00074034 [23:14:01]NVStorageSaveData ofd_packets/00074034 [23:14:01]File name is /storage/ofd_packets/00074034 [23:14:01]Write 346 bytes [23:14:01]NVStorageSaveData done [23:14:01]OFDSenderStorePacket done [23:14:01]KKMCreateOFDPacket done [23:14:01]NVStorageSaveData kkm_last_timestamp [23:14:01]File name is /storage/kkm_last_timestamp [23:14:01]Write 4 bytes [23:14:01]NVStorageSaveData done [23:14:01]ExternCall_PrintAddStr [23:14:01]wPrintStart [23:14:01]Write to MH i2c: 01 00 00 D4 5F 33 [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: 01 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: 01 07 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: 01 07 00 D4 5F 00 00 00 00 00 FF 0F 48 [23:14:01]RasterBufferAndPrint [23:14:01]line Счет N : (3)272866 [23:14:01]line ИНН: 02508201610067 [23:14:01]line Контрольно-Кассовый Чек [23:14:01]line ПРОДАЖА [23:14:01]line Товар: 4631150682851 [23:14:01]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [23:14:01]line 1.000 * 95.00 [23:14:01]line = 95.00 [23:14:01]line НДС 12% НСП 1% [23:14:01]line > о реализуемом товаре [23:14:01]line ИТОГО: 95.00 [23:14:01]line НСП 1% : 0.84 [23:14:01]line НДС 12% : 10.09 [23:14:01]line Наличными: 0.00 [23:14:01]line Безнал.: 95.00 [23:14:01]line Место: АЗС № 133 "Партнер Нефть" [23:14:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:14:01]line СНО: Общий режим [23:14:01]line Чек 360 20.10.2024 23:14 [23:14:01]line Смена: 170 ФФД: 1.0 [23:14:01]line ЗНМ: 0300000020 [23:14:01]line РНМ: 0000000000161154 [23:14:01]line Версия ККМ: v1.0 [23:14:01]line Платежная система: Mbank [23:14:01]line ФМ: 0000000000963323 [23:14:01]line ФД: 74034 [23:14:01]line ФПД: 156288703602980 [23:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231403&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74034&fm=156288703602980&tin=02508201610067®Number=0000000000161154&sum=9500 [23:14:01]line 0 [23:14:01]OFD Sender: Processing packet 74034 [packets to send 15, broken 14] [23:14:01]ProducePacketName [23:14:01]name=ofd_packets/00074034 [23:14:01]OFD Sender: To server: pG, [23:14:01]CommunicateWithHost lk.salyk.kg:30040 [23:14:01]ConnectInit lk.salyk.kg [23:14:01]written 0, free lines is 4095 [23:14:01]Connected sock=10 [23:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 C0 1C 34 01 89 6B 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 BB 8E 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 21 01 00 35 04 06 00 8E 24 CC A9 21 24 C8 44 77 3C 4F 31 CB 8D [23:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 2C 47 00 CF A5 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 39 36 33 33 32 33 10 04 04 00 32 21 01 00 F4 03 04 00 9F 37 15 67 B6 04 01 00 00 0E 2D 36 FB C5 F2 83 F3 [23:14:01]CommunicateWithHost err = 0 [23:14:01]CheckOFDResponse [23:14:01]1017 (14) - 77093643461234 [23:14:01]1041 (16) - 0000000000963323 [23:14:01]1040 (4) - 74034 [23:14:01]1012 (4) - 20.10.2024 17:02 [23:14:01]1206 (1) - 0 [23:14:01]OFD Sender: Remove packet 74034 [23:14:01]ProducePacketName [23:14:01]name=ofd_packets/00074034 [23:14:01]NVStorageDeleteData [23:14:02]Write to MH i2c: 01 00 00 FD 5F 5C [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: 01 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: 01 07 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: 01 07 00 FD 5F 00 00 00 00 00 DA 0C 49 [23:14:02]RasterBufferAndPrint [23:14:02]line [23:14:02]line [23:14:02]line [23:14:02]line [23:14:02]line [23:14:02]written 0, free lines is 3300 [23:14:02]MH_Cut [23:14:02]Write to MH i2c: D1 01 00 04 60 01 36 [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: D1 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: D1 01 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: D1 01 00 04 60 00 35 [23:14:02]Write to MH i2c: 01 00 00 05 60 65 [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]OFD Sender: No OFD packet to send [23:14:02]*** Cut start [23:14:02]*** Partial cut [23:14:02]*** CUTSNS_PIN = 1 [23:14:03]*** CUTSNS_PIN = 0 [23:14:03]*** Brake cut motor [23:14:03]Read from MH i2c: 01 [23:14:03]MH_I2C_Read... [23:14:03]*** Stop cut motor [23:14:03]*** Cut end [23:14:03]Read from MH i2c: 01 07 00 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: 01 07 00 05 60 00 00 00 00 00 FF 0F 7A [23:14:03]process_action close_receipt done [23:14:03]requested_data is exist [23:14:03]produce_requested_data [23:14:03]requested_item fm.sn is exist - process it [23:14:03]wFMCommunicate request_size=4 [23:14:03]MH_SAM_APDU [23:14:03]CAPDU: 80 11 00 00 [23:14:03]Write to MH i2c: E2 08 00 06 60 80 11 00 00 00 00 00 00 E0 [23:14:03]Write i2c OK [23:14:03]MH_I2C_Read... [23:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:03]Read from MH i2c: E2 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: E2 17 00 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: E2 17 00 06 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2D [23:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:14:03]wFMCommunicate OK [23:14:03]requested_item fd.num is exist - process it [23:14:03]SAM_PROTO_GetFieldsCounters [23:14:03]wFMCommunicate request_size=4 [23:14:03]MH_SAM_APDU [23:14:03]CAPDU: 80 13 00 00 [23:14:03]Write to MH i2c: E2 08 00 07 60 80 13 00 00 00 00 00 00 E3 [23:14:03]Write i2c OK [23:14:03]MH_I2C_Read... [23:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:03]Read from MH i2c: E2 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: E2 62 00 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: E2 62 00 07 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 32 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [23:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 32 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:03]wFMCommunicate OK [23:14:03]SAM_PROTO_GetFieldsCounters done [23:14:03]requested_item shift.num is exist - process it [23:14:03]requested_item shift.opened is exist - process it [23:14:03]req_shift_opened [23:14:03]FM_GetShiftState [23:14:03]SAM_PROTO_GetShiftState [23:14:03]wFMCommunicate request_size=4 [23:14:03]MH_SAM_APDU [23:14:03]CAPDU: 80 13 01 00 [23:14:03]Write to MH i2c: E2 08 00 08 60 80 13 01 00 00 00 00 00 E5 [23:14:03]Write i2c OK [23:14:03]MH_I2C_Read... [23:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:03]Read from MH i2c: E2 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: E2 0E 00 [23:14:03]MH_I2C_Read... [23:14:03]Read from MH i2c: E2 0E 00 08 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2A [23:14:03]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:14:03]wFMCommunicate OK [23:14:03]SAM_PROTO_GetShiftState done [23:14:03]FM_GetShiftState done [23:14:03]req_shift_opened done [23:14:03]requested_item shift.open_date is exist - process it [23:14:03]req_shift_open_date [23:14:03]req_shift_open_date done [23:14:03]produce_requested_data done [23:14:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74034,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [23:14:03]process_action_free close_receipt [23:14:03]json_value_free [23:14:03]json_value_free done [23:14:03]process_json_proto returns [23:14:03]Send response to host [23:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74034,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [23:14:03]free response buf [23:14:03]execute_script done [23:14:03]execute_script returns [23:14:03]free content buf [23:14:03]Sock 8.Close socket [23:14:03]Sock 8.Thread stoped [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:17]accept exits with 9 [23:29:17]New connection [23:29:17]New thread 3067432292 created [23:29:17]Thread 3067575652 joined [23:29:17]Waiting for new connection... [23:29:17] Sock 9.Parse request [23:29:17]Sock 9.Check first char [23:29:17]Sock 9.First char is OK [23:29:17]request: POST /json_proto HTTP/1.0 [23:29:17]Method: POST [23:29:17]URL: /json_proto [23:29:17]Method is POST - this is cgi request [23:29:17]url: /json_proto [23:29:17]query_string will be loaded in cgi processing [23:29:17]execute_cgi json_proto POST (null) [23:29:17]execute_cgi path=json_proto method=POST [23:29:17]POST find Content-Length [23:29:17]Host: 172.17.44.196:8080 [23:29:17]Content-Length: 617 [23:29:17]Content-Type: application/json [23:29:17] [23:29:17]POST finish read [23:29:17]Found Content-Length = 617 [23:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272867", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "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" ] } } [23:29:17]execute_script... [23:29: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)272867", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "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" ] } } [23:29:17]POST & json_proto [23:29:17]process_json_proto [23:29:17]json parsed OK: [23:29:17]protocol is kg_v1.0 [23:29:17]action value=close_receipt [23:29:17]process_action close_receipt [23:29:17]cmd_close_receipt [23:29:17]MH_GetDate [23:29:17]Write to MH i2c: F0 00 00 09 60 58 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: F0 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: F0 09 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: F0 09 00 09 60 00 51 92 15 67 E7 19 F8 65 1D [23:29:17]GetLastDocTimeStamp 1729466043 [23:29:17]current date 1729466961 [23:29:17]FM_GetShiftState [23:29:17]SAM_PROTO_GetShiftState [23:29:17]wFMCommunicate request_size=4 [23:29:17]MH_SAM_APDU [23:29:17]CAPDU: 80 13 01 00 [23:29:17]Write to MH i2c: E2 08 00 0A 60 80 13 01 00 00 00 00 00 E7 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 0E 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 0E 00 0A 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 2C [23:29:17]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:29:17]wFMCommunicate OK [23:29:17]SAM_PROTO_GetShiftState done [23:29:17]FM_GetShiftState done [23:29:17]opened in 1729384303 [23:29:17]opened+sec_in_day 1729470703 [23:29:17]quantity*price = 14000 [23:29:17]sum+1 = 14001 [23:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 361 20.10.2024 23:29 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74035 ФПД: 121677506724505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232921&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74035&fm=121677506724505&tin=02508201610067®Number=0000000000161154&sum=14000 0 [23:29:18]StoreToDocumentArchive [23:29:18]shift 170 fd 74035 [23:29:18]save to /storage/0170/doc_00074035 [23:29:18]save last doc name /storage/0170/doc_00074035 to /storage/kkm_last_doc_name [23:29:18]save OK [23:29:18]Clear old archive folders... [23:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:29:18]tlvbuf is 00393480 [23:29:18]SAM_PROTO_ClearQueue [23:29:18]wFMCommunicate request_size=4 [23:29:18]MH_SAM_APDU [23:29:18]CAPDU: 80 09 00 00 [23:29:18]Write to MH i2c: E2 08 00 17 60 80 09 00 00 00 00 00 00 E9 [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:18]Read from MH i2c: E2 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 17 60 00 90 00 EB [23:29:18]RAPDU: 90 00 [23:29:18]wFMCommunicate OK [23:29:18]SAM_PROTO_ClearQueue done [23:29:18]KKMCreateOFDPacket [23:29:18]OFDProtocolAddRootSTLVToBuf [23:29:18]FM_MakeSignedData [23:29:18]FM_MakeSignedData [23:29:18]SAM_PROTO_SignData [23:29:18]wFMCommunicate request_size=4 [23:29:18]MH_SAM_APDU [23:29:18]CAPDU: 80 0D 01 02 [23:29:18]Write to MH i2c: E2 08 00 18 60 80 0D 01 02 00 00 00 00 F1 [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:18]Read from MH i2c: E2 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 18 60 00 90 00 EC [23:29:18]RAPDU: 90 00 [23:29:18]wFMCommunicate OK [23:29:18]wFMCommunicate request_size=255 [23:29:18]MH_SAM_APDU [23:29:18]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 69 01 00 00 F4 03 04 00 51 92 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [23:29:18]Write to MH i2c: E2 02 01 19 60 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 69 01 00 00 F4 03 04 00 51 92 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 49 [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:18]Read from MH i2c: E2 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 19 60 00 90 00 ED [23:29:18]RAPDU: 90 00 [23:29:18]wFMCommunicate OK [23:29:18]wFMCommunicate request_size=28 [23:29:18]MH_SAM_APDU [23:29:18]CAPDU: 80 0D 02 02 17 36 33 33 32 33 10 04 04 00 33 21 01 00 35 04 06 00 6E AA 40 90 C2 99 [23:29:18]Write to MH i2c: E2 1F 00 1A 60 80 0D 02 02 17 00 36 33 33 32 33 10 04 04 00 33 21 01 00 35 04 06 00 6E AA 40 90 C2 99 00 00 12 [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:18]Read from MH i2c: E2 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: E2 03 00 1A 60 00 90 00 EE [23:29:18]RAPDU: 90 00 [23:29:18]wFMCommunicate OK [23:29:18]wFMCommunicate request_size=4 [23:29:18]MH_SAM_APDU [23:29:18]CAPDU: 80 0D 03 02 [23:29:18]Write to MH i2c: E2 08 00 1B 60 80 0D 03 02 00 00 00 00 F6 [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:19]Read from MH i2c: E2 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: E2 0B 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: E2 0B 00 1B 60 00 6F 81 63 D5 63 DC EF D6 90 00 23 [23:29:19]RAPDU: 6F 81 63 D5 63 DC EF D6 90 00 [23:29:19]wFMCommunicate OK [23:29:19]SAM_PROTO_SignData done [23:29:19]FM_MakeSignedData done [23:29:19]CreateOFDProtocolMessage [23:29:19]wFMCommunicate request_size=4 [23:29:19]MH_SAM_APDU [23:29:19]CAPDU: 80 11 00 00 [23:29:19]Write to MH i2c: E2 08 00 1C 60 80 11 00 00 00 00 00 00 F6 [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:19]Read from MH i2c: E2 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: E2 17 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: E2 17 00 1C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 43 [23:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:29:19]wFMCommunicate OK [23:29:19]CreateOFDProtocolMessage done [23:29:19]OFDSenderStorePacket 74035 [23:29:19]StoreOFDPacket docnum=74035 [23:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 10 7B 19 01 0D CB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 69 01 00 00 F4 03 04 00 51 92 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 21 01 00 35 04 06 00 6E AA 40 90 C2 99 6F 81 63 D5 63 DC EF D6 [23:29:19]CheckFolder [23:29:19]dirname=/storage/ofd_packets [23:29:19]CheckFolder done [23:29:19]ProducePacketName [23:29:19]name=ofd_packets/00074035 [23:29:19]NVStorageSaveData ofd_packets/00074035 [23:29:19]File name is /storage/ofd_packets/00074035 [23:29:19]Write 319 bytes [23:29:19]NVStorageSaveData done [23:29:19]OFDSenderStorePacket done [23:29:19]KKMCreateOFDPacket done [23:29:19]NVStorageSaveData kkm_last_timestamp [23:29:19]File name is /storage/kkm_last_timestamp [23:29:19]Write 4 bytes [23:29:19]NVStorageSaveData done [23:29:19]ExternCall_PrintAddStr [23:29:19]wPrintStart [23:29:19]Write to MH i2c: 01 00 00 1D 60 7D [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: 01 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: 01 07 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: 01 07 00 1D 60 00 00 00 00 00 FF 0F 92 [23:29:19]RasterBufferAndPrint [23:29:19]line Счет N : (3)272867 [23:29:19]line ИНН: 02508201610067 [23:29:19]line Контрольно-Кассовый Чек [23:29:19]line ПРОДАЖА [23:29:19]line Товар: 47803008 [23:29:19]line Сигареты Winston XS Blue [23:29:19]line 1.000 * 140.00 [23:29:19]line = 140.00 [23:29:19]line НДС 12% НСП 1% [23:29:19]line > о реализуемом товаре [23:29:19]line ИТОГО: 140.00 [23:29:19]line НСП 1% : 1.24 [23:29:19]line НДС 12% : 14.87 [23:29:19]line Наличными: 140.00 [23:29:19]line Безнал.: 0.00 [23:29:19]line Место: АЗС № 133 "Партнер Нефть" [23:29:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:29:19]line СНО: Общий режим [23:29:19]line Чек 361 20.10.2024 23:29 [23:29:19]line Смена: 170 ФФД: 1.0 [23:29:19]line ЗНМ: 0300000020 [23:29:19]line РНМ: 0000000000161154 [23:29:19]line Версия ККМ: v1.0 [23:29:19]line ФМ: 0000000000963323 [23:29:19]line ФД: 74035 [23:29:19]line ФПД: 121677506724505 [23:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232921&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74035&fm=121677506724505&tin=02508201610067®Number=0000000000161154&sum=14000 [23:29:19]line 0 [23:29:19]OFD Sender: Processing packet 74035 [packets to send 15, broken 14] [23:29:19]ProducePacketName [23:29:19]name=ofd_packets/00074035 [23:29:19]OFD Sender: To server: pG, [23:29:19]CommunicateWithHost lk.salyk.kg:30040 [23:29:19]ConnectInit lk.salyk.kg [23:29:19]written 0, free lines is 4095 [23:29:19]Connected sock=10 [23:29:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 21 01 00 00 10 7B 19 01 0D CB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 42 6C 75 65 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 69 01 00 00 F4 03 04 00 51 92 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 21 01 00 35 04 06 00 6E AA 40 90 C2 99 6F 81 63 D5 63 DC EF D6 [23:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 30 BF 47 00 B9 26 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 39 36 33 33 32 33 10 04 04 00 33 21 01 00 F4 03 04 00 34 3B 15 67 B6 04 01 00 00 96 D0 E8 FE 1A CB 33 B7 [23:29:19]CommunicateWithHost err = 0 [23:29:19]CheckOFDResponse [23:29:19]1017 (14) - 77093643461234 [23:29:19]1041 (16) - 0000000000963323 [23:29:19]1040 (4) - 74035 [23:29:19]1012 (4) - 20.10.2024 17:17 [23:29:19]1206 (1) - 0 [23:29:19]OFD Sender: Remove packet 74035 [23:29:19]ProducePacketName [23:29:19]name=ofd_packets/00074035 [23:29:19]NVStorageDeleteData [23:29:19]Write to MH i2c: 01 00 00 44 60 A4 [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: 01 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: 01 07 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: 01 07 00 44 60 00 00 00 00 00 D7 0C 8E [23:29:19]RasterBufferAndPrint [23:29:19]line [23:29:19]line [23:29:19]line [23:29:19]line [23:29:19]line [23:29:19]written 0, free lines is 3290 [23:29:19]MH_Cut [23:29:19]Write to MH i2c: D1 01 00 4B 60 01 7D [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: D1 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: D1 01 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: D1 01 00 4B 60 00 7C [23:29:19]Write to MH i2c: 01 00 00 4C 60 AC [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:20]OFD Sender: No OFD packet to send [23:29:20]*** Cut start [23:29:20]*** Partial cut [23:29:20]*** CUTSNS_PIN = 1 [23:29:20]*** CUTSNS_PIN = 0 [23:29:20]*** Brake cut motor [23:29:21]Read from MH i2c: 01 [23:29:21]MH_I2C_Read... [23:29:21]*** Stop cut motor [23:29:21]*** Cut end [23:29:21]Read from MH i2c: 01 07 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 07 00 4C 60 00 00 00 00 00 FF 0F C1 [23:29:21]process_action close_receipt done [23:29:21]requested_data is exist [23:29:21]produce_requested_data [23:29:21]requested_item fm.sn is exist - process it [23:29:21]wFMCommunicate request_size=4 [23:29:21]MH_SAM_APDU [23:29:21]CAPDU: 80 11 00 00 [23:29:21]Write to MH i2c: E2 08 00 4D 60 80 11 00 00 00 00 00 00 27 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 17 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 17 00 4D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [23:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:29:21]wFMCommunicate OK [23:29:21]requested_item fd.num is exist - process it [23:29:21]SAM_PROTO_GetFieldsCounters [23:29:21]wFMCommunicate request_size=4 [23:29:21]MH_SAM_APDU [23:29:21]CAPDU: 80 13 00 00 [23:29:21]Write to MH i2c: E2 08 00 4E 60 80 13 00 00 00 00 00 00 2A [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 62 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 62 00 4E 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 33 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [23:29:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 33 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:21]wFMCommunicate OK [23:29:21]SAM_PROTO_GetFieldsCounters done [23:29:21]requested_item shift.num is exist - process it [23:29:21]requested_item shift.opened is exist - process it [23:29:21]req_shift_opened [23:29:21]FM_GetShiftState [23:29:21]SAM_PROTO_GetShiftState [23:29:21]wFMCommunicate request_size=4 [23:29:21]MH_SAM_APDU [23:29:21]CAPDU: 80 13 01 00 [23:29:21]Write to MH i2c: E2 08 00 4F 60 80 13 01 00 00 00 00 00 2C [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 0E 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 0E 00 4F 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 71 [23:29:21]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:29:21]wFMCommunicate OK [23:29:21]SAM_PROTO_GetShiftState done [23:29:21]FM_GetShiftState done [23:29:21]req_shift_opened done [23:29:21]requested_item shift.open_date is exist - process it [23:29:21]req_shift_open_date [23:29:21]req_shift_open_date done [23:29:21]produce_requested_data done [23:29:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74035,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [23:29:21]process_action_free close_receipt [23:29:21]json_value_free [23:29:21]json_value_free done [23:29:21]process_json_proto returns [23:29:21]Send response to host [23:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74035,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [23:29:21]free response buf [23:29:21]execute_script done [23:29:21]execute_script returns [23:29:21]free content buf [23:29:21]Sock 9.Close socket [23:29:21]Sock 9.Thread stoped [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:39]accept exits with 8 [23:34:39]New connection [23:34:39]New thread 3067575652 created [23:34:39]Thread 3067432292 joined [23:34:39]Waiting for new connection... [23:34:39] Sock 8.Parse request [23:34:39]Sock 8.Check first char [23:34:39]Sock 8.First char is OK [23:34:39]request: POST /json_proto HTTP/1.0 [23:34:39]Method: POST [23:34:39]URL: /json_proto [23:34:39]Method is POST - this is cgi request [23:34:39]url: /json_proto [23:34:39]query_string will be loaded in cgi processing [23:34:39]execute_cgi json_proto POST (null) [23:34:39]execute_cgi path=json_proto method=POST [23:34:39]POST find Content-Length [23:34:39]Host: 172.17.44.196:8080 [23:34:39]Content-Length: 751 [23:34:39]Content-Type: application/json [23:34:39] [23:34:39]POST finish read [23:34:39]Found Content-Length = 751 [23:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272868", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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: Mbank", "payments": [ { "type": 1, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:39]execute_script... [23:34:39]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)272868", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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: Mbank", "payments": [ { "type": 1, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:39]POST & json_proto [23:34:39]process_json_proto [23:34:39]json parsed OK: [23:34:39]protocol is kg_v1.0 [23:34:39]action value=close_receipt [23:34:39]process_action close_receipt [23:34:39]cmd_close_receipt [23:34:39]MH_GetDate [23:34:39]Write to MH i2c: F0 00 00 50 60 9F [23:34:39]Write i2c OK [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: F0 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: F0 09 00 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: F0 09 00 50 60 00 93 93 15 67 E7 19 F8 65 A7 [23:34:39]GetLastDocTimeStamp 1729466961 [23:34:39]current date 1729467283 [23:34:39]FM_GetShiftState [23:34:39]SAM_PROTO_GetShiftState [23:34:39]wFMCommunicate request_size=4 [23:34:39]MH_SAM_APDU [23:34:39]CAPDU: 80 13 01 00 [23:34:39]Write to MH i2c: E2 08 00 51 60 80 13 01 00 00 00 00 00 2E [23:34:39]Write i2c OK [23:34:39]MH_I2C_Read... [23:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:39]Read from MH i2c: E2 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: E2 0E 00 [23:34:39]MH_I2C_Read... [23:34:39]Read from MH i2c: E2 0E 00 51 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 73 [23:34:39]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:34:39]wFMCommunicate OK [23:34:39]SAM_PROTO_GetShiftState done [23:34:39]FM_GetShiftState done [23:34:39]opened in 1729384303 [23:34:39]opened+sec_in_day 1729470703 [23:34:39]quantity*price = 14300 [23:34:39]sum+1 = 14301 [23:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 0.00 Безнал.: 143.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 362 20.10.2024 23:34 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 74036 ФПД: 97232321748748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233443&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74036&fm=97232321748748&tin=02508201610067®Number=0000000000161154&sum=14300 0 [23:34:40]StoreToDocumentArchive [23:34:40]shift 170 fd 74036 [23:34:40]save to /storage/0170/doc_00074036 [23:34:40]save last doc name /storage/0170/doc_00074036 to /storage/kkm_last_doc_name [23:34:40]save OK [23:34:40]Clear old archive folders... [23:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:34:40]tlvbuf is 00392F60 [23:34:40]SAM_PROTO_ClearQueue [23:34:40]wFMCommunicate request_size=4 [23:34:40]MH_SAM_APDU [23:34:40]CAPDU: 80 09 00 00 [23:34:40]Write to MH i2c: E2 08 00 5E 60 80 09 00 00 00 00 00 00 30 [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 5E 60 00 90 00 32 [23:34:40]RAPDU: 90 00 [23:34:40]wFMCommunicate OK [23:34:40]SAM_PROTO_ClearQueue done [23:34:40]KKMCreateOFDPacket [23:34:40]OFDProtocolAddRootSTLVToBuf [23:34:40]FM_MakeSignedData [23:34:40]FM_MakeSignedData [23:34:40]SAM_PROTO_SignData [23:34:40]wFMCommunicate request_size=4 [23:34:40]MH_SAM_APDU [23:34:40]CAPDU: 80 0D 01 02 [23:34:40]Write to MH i2c: E2 08 00 5F 60 80 0D 01 02 00 00 00 00 38 [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:40]Read from MH i2c: E2 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 [23:34:40]MH_I2C_Read... [23:34:40]Read from MH i2c: E2 03 00 5F 60 00 90 00 33 [23:34:40]RAPDU: 90 00 [23:34:40]wFMCommunicate OK [23:34:40]wFMCommunicate request_size=255 [23:34:40]MH_SAM_APDU [23:34:40]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 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 93 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 [23:34:40]Write to MH i2c: E2 02 01 60 60 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 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 93 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 00 00 37 [23:34:40]Write i2c OK [23:34:40]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 03 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 03 00 60 60 00 90 00 34 [23:34:41]RAPDU: 90 00 [23:34:41]wFMCommunicate OK [23:34:41]wFMCommunicate request_size=35 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 21 01 00 35 04 06 00 58 6E A9 FF 9F 0C [23:34:41]Write to MH i2c: E2 26 00 61 60 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 21 01 00 35 04 06 00 58 6E A9 FF 9F 0C 00 00 97 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 03 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 03 00 61 60 00 90 00 35 [23:34:41]RAPDU: 90 00 [23:34:41]wFMCommunicate OK [23:34:41]wFMCommunicate request_size=4 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 0D 03 02 [23:34:41]Write to MH i2c: E2 08 00 62 60 80 0D 03 02 00 00 00 00 3D [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 0B 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 0B 00 62 60 00 0D 98 A0 2A E2 F6 9E 9E 90 00 C1 [23:34:41]RAPDU: 0D 98 A0 2A E2 F6 9E 9E 90 00 [23:34:41]wFMCommunicate OK [23:34:41]SAM_PROTO_SignData done [23:34:41]FM_MakeSignedData done [23:34:41]CreateOFDProtocolMessage [23:34:41]wFMCommunicate request_size=4 [23:34:41]MH_SAM_APDU [23:34:41]CAPDU: 80 11 00 00 [23:34:41]Write to MH i2c: E2 08 00 63 60 80 11 00 00 00 00 00 00 3D [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:41]Read from MH i2c: E2 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 17 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: E2 17 00 63 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [23:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:34:41]wFMCommunicate OK [23:34:41]CreateOFDProtocolMessage done [23:34:41]OFDSenderStorePacket 74036 [23:34:41]StoreOFDPacket docnum=74036 [23:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 E4 5B 20 01 E6 D9 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 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 93 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 21 01 00 35 04 06 00 58 6E A9 FF 9F 0C 0D 98 A0 2A E2 F6 9E 9E [23:34:41]CheckFolder [23:34:41]dirname=/storage/ofd_packets [23:34:41]CheckFolder done [23:34:41]ProducePacketName [23:34:41]name=ofd_packets/00074036 [23:34:41]NVStorageSaveData ofd_packets/00074036 [23:34:41]File name is /storage/ofd_packets/00074036 [23:34:41]Write 326 bytes [23:34:41]NVStorageSaveData done [23:34:41]OFDSenderStorePacket done [23:34:41]KKMCreateOFDPacket done [23:34:41]NVStorageSaveData kkm_last_timestamp [23:34:41]File name is /storage/kkm_last_timestamp [23:34:41]Write 4 bytes [23:34:41]NVStorageSaveData done [23:34:41]ExternCall_PrintAddStr [23:34:41]wPrintStart [23:34:41]Write to MH i2c: 01 00 00 64 60 C4 [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 64 60 00 00 00 00 00 FF 0F D9 [23:34:41]RasterBufferAndPrint [23:34:41]line Счет N : (3)272868 [23:34:41]line ИНН: 02508201610067 [23:34:41]line Контрольно-Кассовый Чек [23:34:41]line ПРОДАЖА [23:34:41]line Товар: 48744683 [23:34:41]line Сигареты Winston XStyle Caster+ [23:34:41]line 1.000 * 143.00 [23:34:41]line = 143.00 [23:34:41]line НДС 12% НСП 1% [23:34:41]line > о реализуемом товаре [23:34:41]line ИТОГО: 143.00 [23:34:41]line НСП 1% : 1.26 [23:34:41]line НДС 12% : 15.19 [23:34:41]line Наличными: 0.00 [23:34:41]line Безнал.: 143.00 [23:34:41]line Место: АЗС № 133 "Партнер Нефть" [23:34:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:34:41]line СНО: Общий режим [23:34:41]line Чек 362 20.10.2024 23:34 [23:34:41]line Смена: 170 ФФД: 1.0 [23:34:41]line ЗНМ: 0300000020 [23:34:41]line РНМ: 0000000000161154 [23:34:41]line Версия ККМ: v1.0 [23:34:41]line Платежная система: Mbank [23:34:41]line ФМ: 0000000000963323 [23:34:41]line ФД: 74036 [23:34:41]line ФПД: 97232321748748 [23:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233443&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74036&fm=97232321748748&tin=02508201610067®Number=0000000000161154&sum=14300 [23:34:41]line 0 [23:34:41]OFD Sender: Processing packet 74036 [packets to send 15, broken 14] [23:34:41]ProducePacketName [23:34:41]name=ofd_packets/00074036 [23:34:41]OFD Sender: To server: pG, [23:34:41]CommunicateWithHost lk.salyk.kg:30040 [23:34:41]ConnectInit lk.salyk.kg [23:34:41]written 0, free lines is 4095 [23:34:41]Write to MH i2c: 01 00 00 8D 60 ED [23:34:41]Write i2c OK [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 [23:34:41]MH_I2C_Read... [23:34:41]Read from MH i2c: 01 07 00 8D 60 00 00 00 00 00 C1 0C C1 [23:34:41]RasterBufferAndPrint [23:34:41]line [23:34:41]line [23:34:41]line [23:34:41]line [23:34:41]line [23:34:41]written 0, free lines is 3269 [23:34:42]MH_Cut [23:34:42]Write to MH i2c: D1 01 00 94 60 01 C6 [23:34:42]Write i2c OK [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: D1 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: D1 01 00 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: D1 01 00 94 60 00 C5 [23:34:42]Write to MH i2c: 01 00 00 95 60 F5 [23:34:42]Write i2c OK [23:34:42]MH_I2C_Read... [23:34:42]*** Cut start [23:34:42]*** Partial cut [23:34:42]*** CUTSNS_PIN = 1 [23:34:42]*** CUTSNS_PIN = 0 [23:34:43]*** Brake cut motor [23:34:43]Read from MH i2c: 01 [23:34:43]MH_I2C_Read... [23:34:43]*** Stop cut motor [23:34:43]*** Cut end [23:34:43]Read from MH i2c: 01 07 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: 01 07 00 95 60 00 00 00 00 00 FF 0F 0A [23:34:43]process_action close_receipt done [23:34:43]requested_data is exist [23:34:43]produce_requested_data [23:34:43]requested_item fm.sn is exist - process it [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 11 00 00 [23:34:43]Write to MH i2c: E2 08 00 96 60 80 11 00 00 00 00 00 00 70 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 17 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 17 00 96 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BD [23:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:34:43]wFMCommunicate OK [23:34:43]requested_item fd.num is exist - process it [23:34:43]SAM_PROTO_GetFieldsCounters [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 13 00 00 [23:34:43]Write to MH i2c: E2 08 00 97 60 80 13 00 00 00 00 00 00 73 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 62 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 62 00 97 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 34 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [23:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 34 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_GetFieldsCounters done [23:34:43]requested_item shift.num is exist - process it [23:34:43]requested_item shift.opened is exist - process it [23:34:43]req_shift_opened [23:34:43]FM_GetShiftState [23:34:43]SAM_PROTO_GetShiftState [23:34:43]wFMCommunicate request_size=4 [23:34:43]MH_SAM_APDU [23:34:43]CAPDU: 80 13 01 00 [23:34:43]Write to MH i2c: E2 08 00 98 60 80 13 01 00 00 00 00 00 75 [23:34:43]Write i2c OK [23:34:43]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 0E 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 0E 00 98 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BA [23:34:43]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_GetShiftState done [23:34:43]FM_GetShiftState done [23:34:43]req_shift_opened done [23:34:43]requested_item shift.open_date is exist - process it [23:34:43]req_shift_open_date [23:34:43]req_shift_open_date done [23:34:43]produce_requested_data done [23:34:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74036,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [23:34:43]process_action_free close_receipt [23:34:43]json_value_free [23:34:43]json_value_free done [23:34:43]process_json_proto returns [23:34:43]Send response to host [23:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74036,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [23:34:43]free response buf [23:34:43]execute_script done [23:34:43]execute_script returns [23:34:43]free content buf [23:34:43]Sock 8.Close socket [23:34:43]Sock 8.Thread stoped [23:35:27]accept exits with 9 [23:35:27]New connection [23:35:27]New thread 3067432292 created [23:35:27]Thread 3067575652 joined [23:35:27]Waiting for new connection... [23:35:27] Sock 9.Parse request [23:35:27]Sock 9.Check first char [23:35:27]Sock 9.First char is OK [23:35:27]request: POST /json_proto HTTP/1.0 [23:35:27]Method: POST [23:35:27]URL: /json_proto [23:35:27]Method is POST - this is cgi request [23:35:27]url: /json_proto [23:35:27]query_string will be loaded in cgi processing [23:35:27]execute_cgi json_proto POST (null) [23:35:27]execute_cgi path=json_proto method=POST [23:35:27]POST find Content-Length [23:35:27]Host: 172.17.44.196:8080 [23:35:27]Content-Length: 621 [23:35:27]Content-Type: application/json [23:35:27] [23:35:27]POST finish read [23:35:27]Found Content-Length = 621 [23:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272869", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [23:35:27]execute_script... [23:35: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)272869", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "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" ] } } [23:35:27]POST & json_proto [23:35:27]process_json_proto [23:35:27]json parsed OK: [23:35:27]protocol is kg_v1.0 [23:35:27]action value=close_receipt [23:35:27]process_action close_receipt [23:35:27]cmd_close_receipt [23:35:27]MH_GetDate [23:35:27]Write to MH i2c: F0 00 00 99 60 E8 [23:35:27]Write i2c OK [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: F0 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: F0 09 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: F0 09 00 99 60 00 C3 93 15 67 E7 19 F8 65 20 [23:35:27]GetLastDocTimeStamp 1729467283 [23:35:27]current date 1729467331 [23:35:27]FM_GetShiftState [23:35:27]SAM_PROTO_GetShiftState [23:35:27]wFMCommunicate request_size=4 [23:35:27]MH_SAM_APDU [23:35:27]CAPDU: 80 13 01 00 [23:35:27]Write to MH i2c: E2 08 00 9A 60 80 13 01 00 00 00 00 00 77 [23:35:27]Write i2c OK [23:35:27]MH_I2C_Read... [23:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:27]Read from MH i2c: E2 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 0E 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 0E 00 9A 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 BC [23:35:27]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:35:27]wFMCommunicate OK [23:35:27]SAM_PROTO_GetShiftState done [23:35:27]FM_GetShiftState done [23:35:27]opened in 1729384303 [23:35:27]opened+sec_in_day 1729470703 [23:35:27]quantity*price = 14000 [23:35:27]sum+1 = 14001 [23:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 363 20.10.2024 23:35 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74037 ФПД: 31920420643168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233531&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74037&fm=31920420643168&tin=02508201610067®Number=0000000000161154&sum=14000 0 [23:35:28]StoreToDocumentArchive [23:35:28]shift 170 fd 74037 [23:35:28]save to /storage/0170/doc_00074037 [23:35:28]save last doc name /storage/0170/doc_00074037 to /storage/kkm_last_doc_name [23:35:28]save OK [23:35:28]Clear old archive folders... [23:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:35:28]tlvbuf is 003132C0 [23:35:28]SAM_PROTO_ClearQueue [23:35:28]wFMCommunicate request_size=4 [23:35:28]MH_SAM_APDU [23:35:28]CAPDU: 80 09 00 00 [23:35:28]Write to MH i2c: E2 08 00 A7 60 80 09 00 00 00 00 00 00 79 [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:28]Read from MH i2c: E2 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 A7 60 00 90 00 7B [23:35:28]RAPDU: 90 00 [23:35:28]wFMCommunicate OK [23:35:28]SAM_PROTO_ClearQueue done [23:35:28]KKMCreateOFDPacket [23:35:28]OFDProtocolAddRootSTLVToBuf [23:35:28]FM_MakeSignedData [23:35:28]FM_MakeSignedData [23:35:28]SAM_PROTO_SignData [23:35:28]wFMCommunicate request_size=4 [23:35:28]MH_SAM_APDU [23:35:28]CAPDU: 80 0D 01 02 [23:35:28]Write to MH i2c: E2 08 00 A8 60 80 0D 01 02 00 00 00 00 81 [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:28]Read from MH i2c: E2 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 A8 60 00 90 00 7C [23:35:28]RAPDU: 90 00 [23:35:28]wFMCommunicate OK [23:35:28]wFMCommunicate request_size=255 [23:35:28]MH_SAM_APDU [23:35:28]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 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 6B 01 00 00 F4 03 04 00 C3 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [23:35:28]Write to MH i2c: E2 02 01 A9 60 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 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 6B 01 00 00 F4 03 04 00 C3 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 57 [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:28]Read from MH i2c: E2 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 A9 60 00 90 00 7D [23:35:28]RAPDU: 90 00 [23:35:28]wFMCommunicate OK [23:35:28]wFMCommunicate request_size=32 [23:35:28]MH_SAM_APDU [23:35:28]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 35 21 01 00 35 04 06 00 1D 08 0D 55 61 60 [23:35:28]Write to MH i2c: E2 23 00 AA 60 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 35 21 01 00 35 04 06 00 1D 08 0D 55 61 60 00 00 7A [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:28]Read from MH i2c: E2 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: E2 03 00 AA 60 00 90 00 7E [23:35:28]RAPDU: 90 00 [23:35:28]wFMCommunicate OK [23:35:28]wFMCommunicate request_size=4 [23:35:28]MH_SAM_APDU [23:35:28]CAPDU: 80 0D 03 02 [23:35:28]Write to MH i2c: E2 08 00 AB 60 80 0D 03 02 00 00 00 00 86 [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:29]Read from MH i2c: E2 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 0B 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 0B 00 AB 60 00 30 35 C9 F6 AD 2D 93 67 90 00 7F [23:35:29]RAPDU: 30 35 C9 F6 AD 2D 93 67 90 00 [23:35:29]wFMCommunicate OK [23:35:29]SAM_PROTO_SignData done [23:35:29]FM_MakeSignedData done [23:35:29]CreateOFDProtocolMessage [23:35:29]wFMCommunicate request_size=4 [23:35:29]MH_SAM_APDU [23:35:29]CAPDU: 80 11 00 00 [23:35:29]Write to MH i2c: E2 08 00 AC 60 80 11 00 00 00 00 00 00 86 [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:29]Read from MH i2c: E2 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 17 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 17 00 AC 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D3 [23:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:35:29]wFMCommunicate OK [23:35:29]CreateOFDProtocolMessage done [23:35:29]OFDSenderStorePacket 74037 [23:35:29]StoreOFDPacket docnum=74037 [23:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 37 AE 1D 01 13 20 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 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 6B 01 00 00 F4 03 04 00 C3 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 21 01 00 35 04 06 00 1D 08 0D 55 61 60 30 35 C9 F6 AD 2D 93 67 [23:35:29]CheckFolder [23:35:29]dirname=/storage/ofd_packets [23:35:29]CheckFolder done [23:35:29]ProducePacketName [23:35:29]name=ofd_packets/00074037 [23:35:29]NVStorageSaveData ofd_packets/00074037 [23:35:29]File name is /storage/ofd_packets/00074037 [23:35:29]Write 323 bytes [23:35:29]NVStorageSaveData done [23:35:29]OFDSenderStorePacket done [23:35:29]KKMCreateOFDPacket done [23:35:29]NVStorageSaveData kkm_last_timestamp [23:35:29]File name is /storage/kkm_last_timestamp [23:35:29]Write 4 bytes [23:35:29]NVStorageSaveData done [23:35:29]ExternCall_PrintAddStr [23:35:29]wPrintStart [23:35:29]Write to MH i2c: 01 00 00 AD 60 0D [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 07 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 07 00 AD 60 00 00 00 00 00 FF 0F 22 [23:35:29]RasterBufferAndPrint [23:35:29]line Счет N : (3)272869 [23:35:29]line ИНН: 02508201610067 [23:35:29]line Контрольно-Кассовый Чек [23:35:29]line ПРОДАЖА [23:35:29]line Товар: 48743570 [23:35:29]line Сигареты Winston XStyle Blue [23:35:29]line 1.000 * 140.00 [23:35:29]line = 140.00 [23:35:29]line НДС 12% НСП 1% [23:35:29]line > о реализуемом товаре [23:35:29]line ИТОГО: 140.00 [23:35:29]line НСП 1% : 1.24 [23:35:29]line НДС 12% : 14.87 [23:35:29]line Наличными: 140.00 [23:35:29]line Безнал.: 0.00 [23:35:29]line Место: АЗС № 133 "Партнер Нефть" [23:35:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:35:29]line СНО: Общий режим [23:35:29]line Чек 363 20.10.2024 23:35 [23:35:29]line Смена: 170 ФФД: 1.0 [23:35:29]line ЗНМ: 0300000020 [23:35:29]line РНМ: 0000000000161154 [23:35:29]line Версия ККМ: v1.0 [23:35:29]line ФМ: 0000000000963323 [23:35:29]line ФД: 74037 [23:35:29]line ФПД: 31920420643168 [23:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233531&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74037&fm=31920420643168&tin=02508201610067®Number=0000000000161154&sum=14000 [23:35:29]line 0 [23:35:29]written 0, free lines is 4095 [23:35:29]Write to MH i2c: 01 00 00 D4 60 34 [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 07 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 07 00 D4 60 00 00 00 00 00 DC 0C 23 [23:35:29]RasterBufferAndPrint [23:35:29]line [23:35:29]line [23:35:29]line [23:35:29]line [23:35:29]line [23:35:29]written 0, free lines is 3298 [23:35:29]MH_Cut [23:35:29]Write to MH i2c: D1 01 00 DB 60 01 0D [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: D1 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: D1 01 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: D1 01 00 DB 60 00 0C [23:35:29]Write to MH i2c: 01 00 00 DC 60 3C [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:30]*** Cut start [23:35:30]*** Partial cut [23:35:30]*** CUTSNS_PIN = 1 [23:35:30]*** CUTSNS_PIN = 0 [23:35:30]*** Brake cut motor [23:35:31]Read from MH i2c: 01 [23:35:31]MH_I2C_Read... [23:35:31]*** Stop cut motor [23:35:31]*** Cut end [23:35:31]Read from MH i2c: 01 07 00 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: 01 07 00 DC 60 00 00 00 00 00 FF 0F 51 [23:35:31]process_action close_receipt done [23:35:31]requested_data is exist [23:35:31]produce_requested_data [23:35:31]requested_item fm.sn is exist - process it [23:35:31]wFMCommunicate request_size=4 [23:35:31]MH_SAM_APDU [23:35:31]CAPDU: 80 11 00 00 [23:35:31]Write to MH i2c: E2 08 00 DD 60 80 11 00 00 00 00 00 00 B7 [23:35:31]Write i2c OK [23:35:31]MH_I2C_Read... [23:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:31]Read from MH i2c: E2 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: E2 17 00 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: E2 17 00 DD 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 04 [23:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:35:31]wFMCommunicate OK [23:35:31]requested_item fd.num is exist - process it [23:35:31]SAM_PROTO_GetFieldsCounters [23:35:31]wFMCommunicate request_size=4 [23:35:31]MH_SAM_APDU [23:35:31]CAPDU: 80 13 00 00 [23:35:31]Write to MH i2c: E2 08 00 DE 60 80 13 00 00 00 00 00 00 BA [23:35:31]Write i2c OK [23:35:31]MH_I2C_Read... [23:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:31]Read from MH i2c: E2 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: E2 62 00 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: E2 62 00 DE 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 35 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [23:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 35 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:31]wFMCommunicate OK [23:35:31]SAM_PROTO_GetFieldsCounters done [23:35:31]requested_item shift.num is exist - process it [23:35:31]requested_item shift.opened is exist - process it [23:35:31]req_shift_opened [23:35:31]FM_GetShiftState [23:35:31]SAM_PROTO_GetShiftState [23:35:31]wFMCommunicate request_size=4 [23:35:31]MH_SAM_APDU [23:35:31]CAPDU: 80 13 01 00 [23:35:31]Write to MH i2c: E2 08 00 DF 60 80 13 01 00 00 00 00 00 BC [23:35:31]Write i2c OK [23:35:31]MH_I2C_Read... [23:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:31]Read from MH i2c: E2 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: E2 0E 00 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: E2 0E 00 DF 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 01 [23:35:31]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:35:31]wFMCommunicate OK [23:35:31]SAM_PROTO_GetShiftState done [23:35:31]FM_GetShiftState done [23:35:31]req_shift_opened done [23:35:31]requested_item shift.open_date is exist - process it [23:35:31]req_shift_open_date [23:35:31]req_shift_open_date done [23:35:31]produce_requested_data done [23:35:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74037,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [23:35:31]process_action_free close_receipt [23:35:31]json_value_free [23:35:31]json_value_free done [23:35:31]process_json_proto returns [23:35:31]Send response to host [23:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74037,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [23:35:31]free response buf [23:35:31]execute_script done [23:35:31]execute_script returns [23:35:31]free content buf [23:35:31]Sock 9.Close socket [23:35:31]Sock 9.Thread stoped [23:36:53]ConnectInit Can't connect to host [23:36:53]CommunicateWithHost connect error [23:36:53]CommunicateWithHost err = -1 [23:36:53]OFD Sender: Server communicate error [23:36:54]OFD Sender: Processing packet 74036 [packets to send 16, broken 14] [23:36:54]ProducePacketName [23:36:54]name=ofd_packets/00074036 [23:36:54]OFD Sender: To server: pG, [23:36:54]CommunicateWithHost lk.salyk.kg:30040 [23:36:54]ConnectInit lk.salyk.kg [23:36:54]Connected sock=9 [23:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 E4 5B 20 01 E6 D9 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 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 93 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 21 01 00 35 04 06 00 58 6E A9 FF 9F 0C 0D 98 A0 2A E2 F6 9E 9E [23:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 11 47 00 C2 A5 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 39 36 33 33 32 33 10 04 04 00 34 21 01 00 F4 03 04 00 FB 3C 15 67 B6 04 01 00 00 0D 86 86 F2 F2 95 03 0C [23:36:54]CommunicateWithHost err = 0 [23:36:54]CheckOFDResponse [23:36:54]1017 (14) - 77093643461234 [23:36:54]1041 (16) - 0000000000963323 [23:36:54]1040 (4) - 74036 [23:36:54]1012 (4) - 20.10.2024 17:25 [23:36:54]1206 (1) - 0 [23:36:54]OFD Sender: Remove packet 74036 [23:36:54]ProducePacketName [23:36:54]name=ofd_packets/00074036 [23:36:54]NVStorageDeleteData [23:36:54]OFD Sender: Processing packet 74037 [packets to send 15, broken 14] [23:36:54]ProducePacketName [23:36:54]name=ofd_packets/00074037 [23:36:54]OFD Sender: To server: pG, [23:36:54]CommunicateWithHost lk.salyk.kg:30040 [23:36:54]ConnectInit lk.salyk.kg [23:36:55]Connected sock=9 [23:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 37 AE 1D 01 13 20 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 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 6B 01 00 00 F4 03 04 00 C3 93 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 21 01 00 35 04 06 00 1D 08 0D 55 61 60 30 35 C9 F6 AD 2D 93 67 [23:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 72 61 47 00 04 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 39 36 33 33 32 33 10 04 04 00 35 21 01 00 F4 03 04 00 FD 3C 15 67 B6 04 01 00 00 F4 FE 0A C8 C4 2D 00 8C [23:36:55]CommunicateWithHost err = 0 [23:36:55]CheckOFDResponse [23:36:55]1017 (14) - 77093643461234 [23:36:55]1041 (16) - 0000000000963323 [23:36:55]1040 (4) - 74037 [23:36:55]1012 (4) - 20.10.2024 17:25 [23:36:55]1206 (1) - 0 [23:36:55]OFD Sender: Remove packet 74037 [23:36:55]ProducePacketName [23:36:55]name=ofd_packets/00074037 [23:36:55]NVStorageDeleteData [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]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]accept exits with 8 [23:57:47]New connection [23:57:47]New thread 3067575652 created [23:57:47]Thread 3067432292 joined [23:57:47]Waiting for new connection... [23:57:47] Sock 8.Parse request [23:57:47]Sock 8.Check first char [23:57:47]Sock 8.First char is OK [23:57:47]request: POST /json_proto HTTP/1.0 [23:57:47]Method: POST [23:57:47]URL: /json_proto [23:57:47]Method is POST - this is cgi request [23:57:47]url: /json_proto [23:57:47]query_string will be loaded in cgi processing [23:57:47]execute_cgi json_proto POST (null) [23:57:47]execute_cgi path=json_proto method=POST [23:57:47]POST find Content-Length [23:57:47]Host: 172.17.44.196:8080 [23:57:47]Content-Length: 647 [23:57:47]Content-Type: application/json [23:57:47] [23:57:47]POST finish read [23:57:47]Found Content-Length = 647 [23:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272870", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 555.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:47]execute_script... [23:57: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)272870", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 555.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:47]POST & json_proto [23:57:47]process_json_proto [23:57:47]json parsed OK: [23:57:47]protocol is kg_v1.0 [23:57:47]action value=close_receipt [23:57:47]process_action close_receipt [23:57:47]cmd_close_receipt [23:57:47]MH_GetDate [23:57:47]Write to MH i2c: F0 00 00 E0 60 2F [23:57:47]Write i2c OK [23:57:47]MH_I2C_Read... [23:57:47]Read from MH i2c: F0 [23:57:47]MH_I2C_Read... [23:57:47]Read from MH i2c: F0 09 00 [23:57:47]MH_I2C_Read... [23:57:47]Read from MH i2c: F0 09 00 E0 60 00 FF 98 15 67 E7 19 F8 65 A8 [23:57:47]GetLastDocTimeStamp 1729467331 [23:57:47]current date 1729468671 [23:57:47]FM_GetShiftState [23:57:47]SAM_PROTO_GetShiftState [23:57:47]wFMCommunicate request_size=4 [23:57:47]MH_SAM_APDU [23:57:47]CAPDU: 80 13 01 00 [23:57:47]Write to MH i2c: E2 08 00 E1 60 80 13 01 00 00 00 00 00 BE [23:57:47]Write i2c OK [23:57:47]MH_I2C_Read... [23:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:47]Read from MH i2c: E2 [23:57:47]MH_I2C_Read... [23:57:47]Read from MH i2c: E2 0E 00 [23:57:47]MH_I2C_Read... [23:57:47]Read from MH i2c: E2 0E 00 E1 60 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 03 [23:57:47]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:57:47]wFMCommunicate OK [23:57:47]SAM_PROTO_GetShiftState done [23:57:47]FM_GetShiftState done [23:57:47]opened in 1729384303 [23:57:47]opened+sec_in_day 1729470703 [23:57:47]quantity*price = 55500 [23:57:47]sum+1 = 55501 [23:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 555.00 НСП 1% : 4.91 НДС 12% : 58.94 Наличными: 555.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 364 20.10.2024 23:57 Смена: 170 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74038 ФПД: 46110248568787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235751&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74038&fm=46110248568787&tin=02508201610067®Number=0000000000161154&sum=55500 0 [23:57:48]StoreToDocumentArchive [23:57:48]shift 170 fd 74038 [23:57:48]save to /storage/0170/doc_00074038 [23:57:48]save last doc name /storage/0170/doc_00074038 to /storage/kkm_last_doc_name [23:57:48]save OK [23:57:48]Clear old archive folders... [23:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:57:48]tlvbuf is 0042FD90 [23:57:48]SAM_PROTO_ClearQueue [23:57:48]wFMCommunicate request_size=4 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 09 00 00 [23:57:48]Write to MH i2c: E2 08 00 EE 60 80 09 00 00 00 00 00 00 C0 [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 EE 60 00 90 00 C2 [23:57:48]RAPDU: 90 00 [23:57:48]wFMCommunicate OK [23:57:48]SAM_PROTO_ClearQueue done [23:57:48]KKMCreateOFDPacket [23:57:48]OFDProtocolAddRootSTLVToBuf [23:57:48]FM_MakeSignedData [23:57:48]FM_MakeSignedData [23:57:48]SAM_PROTO_SignData [23:57:48]wFMCommunicate request_size=4 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 0D 01 02 [23:57:48]Write to MH i2c: E2 08 00 EF 60 80 0D 01 02 00 00 00 00 C8 [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 EF 60 00 90 00 C3 [23:57:48]RAPDU: 90 00 [23:57:48]wFMCommunicate OK [23:57:48]wFMCommunicate request_size=255 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 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 01 00 00 F4 03 04 00 FF 98 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [23:57:48]Write to MH i2c: E2 02 01 F0 60 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 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 01 00 00 F4 03 04 00 FF 98 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 F1 [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 F0 60 00 90 00 C4 [23:57:48]RAPDU: 90 00 [23:57:48]wFMCommunicate OK [23:57:48]wFMCommunicate request_size=34 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 21 01 00 35 04 06 00 29 EF E0 FC 87 D3 [23:57:48]Write to MH i2c: E2 25 00 F1 60 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 21 01 00 35 04 06 00 29 EF E0 FC 87 D3 00 00 2C [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 03 00 F1 60 00 90 00 C5 [23:57:48]RAPDU: 90 00 [23:57:48]wFMCommunicate OK [23:57:48]wFMCommunicate request_size=4 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 0D 03 02 [23:57:48]Write to MH i2c: E2 08 00 F2 60 80 0D 03 02 00 00 00 00 CD [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 0B 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 0B 00 F2 60 00 F7 FF 75 17 95 5D 61 20 90 00 C3 [23:57:48]RAPDU: F7 FF 75 17 95 5D 61 20 90 00 [23:57:48]wFMCommunicate OK [23:57:48]SAM_PROTO_SignData done [23:57:48]FM_MakeSignedData done [23:57:48]CreateOFDProtocolMessage [23:57:48]wFMCommunicate request_size=4 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 11 00 00 [23:57:48]Write to MH i2c: E2 08 00 F3 60 80 11 00 00 00 00 00 00 CD [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 17 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 17 00 F3 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [23:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:57:48]wFMCommunicate OK [23:57:48]CreateOFDProtocolMessage done [23:57:48]OFDSenderStorePacket 74038 [23:57:48]StoreOFDPacket docnum=74038 [23:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 1C 44 1F 01 0F 45 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 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 01 00 00 F4 03 04 00 FF 98 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 21 01 00 35 04 06 00 29 EF E0 FC 87 D3 F7 FF 75 17 95 5D 61 20 [23:57:48]CheckFolder [23:57:48]dirname=/storage/ofd_packets [23:57:48]CheckFolder done [23:57:48]ProducePacketName [23:57:48]name=ofd_packets/00074038 [23:57:48]NVStorageSaveData ofd_packets/00074038 [23:57:48]File name is /storage/ofd_packets/00074038 [23:57:48]Write 325 bytes [23:57:48]NVStorageSaveData done [23:57:48]OFDSenderStorePacket done [23:57:48]KKMCreateOFDPacket done [23:57:48]NVStorageSaveData kkm_last_timestamp [23:57:48]File name is /storage/kkm_last_timestamp [23:57:48]Write 4 bytes [23:57:48]NVStorageSaveData done [23:57:48]ExternCall_PrintAddStr [23:57:48]wPrintStart [23:57:48]Write to MH i2c: 01 00 00 F4 60 54 [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: 01 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: 01 07 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: 01 07 00 F4 60 00 00 00 00 00 FF 0F 69 [23:57:48]RasterBufferAndPrint [23:57:48]line Счет N : (3)272870 [23:57:48]line ИНН: 02508201610067 [23:57:48]line Контрольно-Кассовый Чек [23:57:48]line ПРОДАЖА [23:57:48]line Товар: 4700001061098 [23:57:48]line Коньяк Семетей 0,5л [23:57:48]line 1.000 * 555.00 [23:57:48]line = 555.00 [23:57:48]line НДС 12% НСП 1% [23:57:48]line > о реализуемом товаре [23:57:48]line ИТОГО: 555.00 [23:57:48]line НСП 1% : 4.91 [23:57:48]line НДС 12% : 58.94 [23:57:48]line Наличными: 555.00 [23:57:48]line Безнал.: 0.00 [23:57:48]line Место: АЗС № 133 "Партнер Нефть" [23:57:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:57:48]line СНО: Общий режим [23:57:48]line Чек 364 20.10.2024 23:57 [23:57:48]line Смена: 170 ФФД: 1.0 [23:57:48]line ЗНМ: 0300000020 [23:57:48]line РНМ: 0000000000161154 [23:57:48]line Версия ККМ: v1.0 [23:57:48]line ФМ: 0000000000963323 [23:57:48]line ФД: 74038 [23:57:48]line ФПД: 46110248568787 [23:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235751&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74038&fm=46110248568787&tin=02508201610067®Number=0000000000161154&sum=55500 [23:57:49]line 0 [23:57:49]OFD Sender: Processing packet 74038 [packets to send 15, broken 14] [23:57:49]ProducePacketName [23:57:49]name=ofd_packets/00074038 [23:57:49]OFD Sender: To server: pG, [23:57:49]CommunicateWithHost lk.salyk.kg:30040 [23:57:49]ConnectInit lk.salyk.kg [23:57:49]written 0, free lines is 4095 [23:57:49]Connected sock=10 [23:57:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 1C 44 1F 01 0F 45 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 CC D8 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 01 00 00 F4 03 04 00 FF 98 15 67 0E 04 04 00 AA 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 21 01 00 35 04 06 00 29 EF E0 FC 87 D3 F7 FF 75 17 95 5D 61 20 [23:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6B DE 47 00 0E 96 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 39 36 33 33 32 33 10 04 04 00 36 21 01 00 F4 03 04 00 E2 41 15 67 B6 04 01 00 00 54 C6 79 13 D3 43 C9 2E [23:57:49]CommunicateWithHost err = 0 [23:57:49]CheckOFDResponse [23:57:49]1017 (14) - 77093643461234 [23:57:49]1041 (16) - 0000000000963323 [23:57:49]1040 (4) - 74038 [23:57:49]1012 (4) - 20.10.2024 17:46 [23:57:49]1206 (1) - 0 [23:57:49]OFD Sender: Remove packet 74038 [23:57:49]ProducePacketName [23:57:49]name=ofd_packets/00074038 [23:57:49]NVStorageDeleteData [23:57:49]Write to MH i2c: 01 00 00 1B 61 7C [23:57:49]Write i2c OK [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: 01 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: 01 07 00 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: 01 07 00 1B 61 00 00 00 00 00 D5 0C 64 [23:57:49]RasterBufferAndPrint [23:57:49]line [23:57:49]line [23:57:49]line [23:57:49]line [23:57:49]line [23:57:49]written 0, free lines is 3289 [23:57:49]MH_Cut [23:57:49]Write to MH i2c: D1 01 00 22 61 01 55 [23:57:49]Write i2c OK [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: D1 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: D1 01 00 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: D1 01 00 22 61 00 54 [23:57:49]Write to MH i2c: 01 00 00 23 61 84 [23:57:49]Write i2c OK [23:57:49]MH_I2C_Read... [23:57:50]OFD Sender: No OFD packet to send [23:57:50]*** Cut start [23:57:50]*** Partial cut [23:57:50]*** CUTSNS_PIN = 1 [23:57:50]*** CUTSNS_PIN = 0 [23:57:50]*** Brake cut motor [23:57:51]Read from MH i2c: 01 [23:57:51]MH_I2C_Read... [23:57:51]*** Stop cut motor [23:57:51]*** Cut end [23:57:51]Read from MH i2c: 01 07 00 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: 01 07 00 23 61 00 00 00 00 00 FF 0F 99 [23:57:51]process_action close_receipt done [23:57:51]requested_data is exist [23:57:51]produce_requested_data [23:57:51]requested_item fm.sn is exist - process it [23:57:51]wFMCommunicate request_size=4 [23:57:51]MH_SAM_APDU [23:57:51]CAPDU: 80 11 00 00 [23:57:51]Write to MH i2c: E2 08 00 24 61 80 11 00 00 00 00 00 00 FF [23:57:51]Write i2c OK [23:57:51]MH_I2C_Read... [23:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:51]Read from MH i2c: E2 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: E2 17 00 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: E2 17 00 24 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [23:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:57:51]wFMCommunicate OK [23:57:51]requested_item fd.num is exist - process it [23:57:51]SAM_PROTO_GetFieldsCounters [23:57:51]wFMCommunicate request_size=4 [23:57:51]MH_SAM_APDU [23:57:51]CAPDU: 80 13 00 00 [23:57:51]Write to MH i2c: E2 08 00 25 61 80 13 00 00 00 00 00 00 02 [23:57:51]Write i2c OK [23:57:51]MH_I2C_Read... [23:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:51]Read from MH i2c: E2 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: E2 62 00 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: E2 62 00 25 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [23:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:51]wFMCommunicate OK [23:57:51]SAM_PROTO_GetFieldsCounters done [23:57:51]requested_item shift.num is exist - process it [23:57:51]requested_item shift.opened is exist - process it [23:57:51]req_shift_opened [23:57:51]FM_GetShiftState [23:57:51]SAM_PROTO_GetShiftState [23:57:51]wFMCommunicate request_size=4 [23:57:51]MH_SAM_APDU [23:57:51]CAPDU: 80 13 01 00 [23:57:51]Write to MH i2c: E2 08 00 26 61 80 13 01 00 00 00 00 00 04 [23:57:51]Write i2c OK [23:57:51]MH_I2C_Read... [23:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:51]Read from MH i2c: E2 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: E2 0E 00 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: E2 0E 00 26 61 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 49 [23:57:51]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [23:57:51]wFMCommunicate OK [23:57:51]SAM_PROTO_GetShiftState done [23:57:51]FM_GetShiftState done [23:57:51]req_shift_opened done [23:57:51]requested_item shift.open_date is exist - process it [23:57:51]req_shift_open_date [23:57:51]req_shift_open_date done [23:57:51]produce_requested_data done [23:57:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [23:57:51]process_action_free close_receipt [23:57:51]json_value_free [23:57:51]json_value_free done [23:57:51]process_json_proto returns [23:57:51]Send response to host [23:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [23:57:51]free response buf [23:57:51]execute_script done [23:57:51]execute_script returns [23:57:51]free content buf [23:57:51]Sock 8.Close socket [23:57:51]Sock 8.Thread stoped [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [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:14]accept exits with 9 [00:16:14]New connection [00:16:14]New thread 3067432292 created [00:16:14]Thread 3067575652 joined [00:16:14]Waiting for new connection... [00:16:14] Sock 9.Parse request [00:16:14]Sock 9.Check first char [00:16:14]Sock 9.First char is OK [00:16:14]request: POST /json_proto HTTP/1.0 [00:16:14]Method: POST [00:16:14]URL: /json_proto [00:16:14]Method is POST - this is cgi request [00:16:14]url: /json_proto [00:16:14]query_string will be loaded in cgi processing [00:16:14]execute_cgi json_proto POST (null) [00:16:14]execute_cgi path=json_proto method=POST [00:16:14]POST find Content-Length [00:16:14]Host: 172.17.44.196:8080 [00:16:14]Content-Length: 215 [00:16:14]Content-Type: application/json [00:16:14] [00:16:14]POST finish read [00:16:14]Found Content-Length = 215 [00:16:14]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:16:14]execute_script... [00:16:14]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:16:14]POST & json_proto [00:16:14]process_json_proto [00:16:14]json parsed OK: [00:16:14]protocol is kg_v1.0 [00:16:14]action value=get_value [00:16:14]process_action get_value [00:16:14]cmd_get_value [00:16:14]process_action get_value done [00:16:14]requested_data is exist [00:16:14]produce_requested_data [00:16:14]requested_item kkm.sn is exist - process it [00:16:14]requested_item kkm.ver is exist - process it [00:16:14]requested_item fm.sn is exist - process it [00:16:14]wFMCommunicate request_size=4 [00:16:14]MH_SAM_APDU [00:16:14]CAPDU: 80 11 00 00 [00:16:14]Write to MH i2c: E2 08 00 27 61 80 11 00 00 00 00 00 00 02 [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:14]Read from MH i2c: E2 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 17 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 17 00 27 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4F [00:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:16:14]wFMCommunicate OK [00:16:14]requested_item fd.num is exist - process it [00:16:14]SAM_PROTO_GetFieldsCounters [00:16:14]wFMCommunicate request_size=4 [00:16:14]MH_SAM_APDU [00:16:14]CAPDU: 80 13 00 00 [00:16:14]Write to MH i2c: E2 08 00 28 61 80 13 00 00 00 00 00 00 05 [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:14]Read from MH i2c: E2 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 62 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 62 00 28 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [00:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:14]wFMCommunicate OK [00:16:14]SAM_PROTO_GetFieldsCounters done [00:16:14]requested_item shift.num is exist - process it [00:16:14]requested_item shift.opened is exist - process it [00:16:14]req_shift_opened [00:16:14]FM_GetShiftState [00:16:14]SAM_PROTO_GetShiftState [00:16:14]wFMCommunicate request_size=4 [00:16:14]MH_SAM_APDU [00:16:14]CAPDU: 80 13 01 00 [00:16:14]Write to MH i2c: E2 08 00 29 61 80 13 01 00 00 00 00 00 07 [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:14]Read from MH i2c: E2 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 0E 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 0E 00 29 61 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 4C [00:16:14]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [00:16:14]wFMCommunicate OK [00:16:14]SAM_PROTO_GetShiftState done [00:16:14]FM_GetShiftState done [00:16:14]req_shift_opened done [00:16:14]requested_item shift.open_date is exist - process it [00:16:14]req_shift_open_date [00:16:14]req_shift_open_date done [00:16:14]produce_requested_data done [00:16:14]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [00:16:14]process_action_free get_value [00:16:14]json_value_free [00:16:14]json_value_free done [00:16:14]process_json_proto returns [00:16:14]Send response to host [00:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [00:16:14]free response buf [00:16:14]execute_script done [00:16:14]execute_script returns [00:16:14]free content buf [00:16:14]Sock 9.Close socket [00:16:14]Sock 9.Thread stoped [00:16:14]accept exits with 8 [00:16:14]New connection [00:16:14]New thread 3067575652 created [00:16:14]Thread 3067432292 joined [00:16:14]Waiting for new connection... [00:16:14] Sock 8.Parse request [00:16:14]Sock 8.Check first char [00:16:14]Sock 8.First char is OK [00:16:14]request: POST /json_proto HTTP/1.0 [00:16:14]Method: POST [00:16:14]URL: /json_proto [00:16:14]Method is POST - this is cgi request [00:16:14]url: /json_proto [00:16:14]query_string will be loaded in cgi processing [00:16:14]execute_cgi json_proto POST (null) [00:16:14]execute_cgi path=json_proto method=POST [00:16:14]POST find Content-Length [00:16:14]Host: 172.17.44.196:8080 [00:16:14]Content-Length: 331 [00:16:14]Content-Type: application/json [00:16:14] [00:16:14]POST finish read [00:16:14]Found Content-Length = 331 [00:16:14]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:16:14]execute_script... [00:16:15]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:16:15]POST & json_proto [00:16:15]process_json_proto [00:16:15]json parsed OK: [00:16:15]protocol is kg_v1.0 [00:16:15]action value=get_value [00:16:15]process_action get_value [00:16:15]cmd_get_value [00:16:15]process_action get_value done [00:16:15]requested_data is exist [00:16:15]produce_requested_data [00:16:15]requested_item fm.sale.total is exist - process it [00:16:15]SAM_PROTO_GetFMData [00:16:15]wFMCommunicate request_size=4 [00:16:15]MH_SAM_APDU [00:16:15]CAPDU: 80 13 03 00 [00:16:15]Write to MH i2c: E2 08 00 2A 61 80 13 03 00 00 00 00 00 0A [00:16:15]Write i2c OK [00:16:15]MH_I2C_Read... [00:16:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:15]Read from MH i2c: E2 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 FD 00 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 FD 00 2A 61 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 79 [00:16:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:16:15]wFMCommunicate OK [00:16:15]wFMCommunicate request_size=4 [00:16:15]MH_SAM_APDU [00:16:15]CAPDU: 80 17 00 00 [00:16:15]Write to MH i2c: E2 08 00 2B 61 80 17 00 00 00 00 00 00 0C [00:16:15]Write i2c OK [00:16:15]MH_I2C_Read... [00:16:15]OFD Sender: No OFD packet to send [00:16:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:15]Read from MH i2c: E2 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 FD 00 [00:16:15]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 FD 00 2B 61 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [00:16:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 17 00 00 [00:16:16]Write to MH i2c: E2 08 00 2C 61 80 17 00 00 00 00 00 00 0D [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 FD 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 FD 00 2C 61 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 1F [00:16:16]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:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 17 00 00 [00:16:16]Write to MH i2c: E2 08 00 2D 61 80 17 00 00 00 00 00 00 0E [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 FD 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 FD 00 2D 61 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 9A [00:16:16]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:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 17 00 00 [00:16:16]Write to MH i2c: E2 08 00 2E 61 80 17 00 00 00 00 00 00 0F [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 E2 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 E2 00 2E 61 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [00:16:16]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:16:16]wFMCommunicate OK [00:16:16]SAM_PROTO_GetFMData done [00:16:16]requested_item fm.sale_refund.total is exist - process it [00:16:16]requested_item fm.buy.total is exist - process it [00:16:16]requested_item shift.sale.total is exist - process it [00:16:16]SAM_PROTO_GetShiftData [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 13 02 00 [00:16:16]Write to MH i2c: E2 08 00 2F 61 80 13 02 00 00 00 00 00 0E [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:17]Read from MH i2c: E2 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: E2 FD 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: E2 FD 00 2F 61 00 BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 6F [00:16:17]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:16:17]wFMCommunicate OK [00:16:17]wFMCommunicate request_size=4 [00:16:17]MH_SAM_APDU [00:16:17]CAPDU: 80 17 00 00 [00:16:17]Write to MH i2c: E2 08 00 30 61 80 17 00 00 00 00 00 00 11 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:17]Read from MH i2c: E2 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: E2 FD 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: E2 FD 00 30 61 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:16:17]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:17]wFMCommunicate OK [00:16:17]wFMCommunicate request_size=4 [00:16:17]MH_SAM_APDU [00:16:17]CAPDU: 80 17 00 00 [00:16:17]Write to MH i2c: E2 08 00 31 61 80 17 00 00 00 00 00 00 12 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:17]Read from MH i2c: E2 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: E2 FD 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: E2 FD 00 31 61 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:16:17]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 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 90 00 [00:16:17]wFMCommunicate OK [00:16:17]wFMCommunicate request_size=4 [00:16:17]MH_SAM_APDU [00:16:17]CAPDU: 80 17 00 00 [00:16:17]Write to MH i2c: E2 08 00 32 61 80 17 00 00 00 00 00 00 13 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:18]Read from MH i2c: E2 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 FD 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 FD 00 32 61 00 03 00 00 EF 03 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 90 00 94 [00:16:18]RAPDU: 03 00 00 EF 03 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 90 00 [00:16:18]wFMCommunicate OK [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 17 00 00 [00:16:18]Write to MH i2c: E2 08 00 33 61 80 17 00 00 00 00 00 00 14 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:16:18]Read from MH i2c: E2 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 D9 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 D9 00 33 61 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [00:16:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:18]wFMCommunicate OK [00:16:18]SAM_PROTO_GetShiftData done [00:16:18]requested_item shift.sale.total_cash is exist - process it [00:16:18]requested_item shift.sale_refund.total is exist - process it [00:16:18]requested_item shift.sale_refund.total_cash is exist - process it [00:16:18]requested_item shift.buy.total is exist - process it [00:16:18]requested_item shift.buy.total_cash is exist - process it [00:16:18]produce_requested_data done [00:16:18]produce_requested_data return {"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:16:18]process_action_free get_value [00:16:18]json_value_free [00:16:18]json_value_free done [00:16:18]process_json_proto returns [00:16:18]Send response to host [00:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:16:18]free response buf [00:16:18]execute_script done [00:16:18]execute_script returns [00:16:18]free content buf [00:16:18]Sock 8.Close socket [00:16:18]Sock 8.Thread stoped [00:16:18]accept exits with 9 [00:16:18]New connection [00:16:18]New thread 3067432292 created [00:16:18]Thread 3067575652 joined [00:16:18]Waiting for new connection... [00:16:18] Sock 9.Parse request [00:16:18]Sock 9.Check first char [00:16:18]Sock 9.First char is OK [00:16:18]request: POST /json_proto HTTP/1.0 [00:16:18]Method: POST [00:16:18]URL: /json_proto [00:16:18]Method is POST - this is cgi request [00:16:18]url: /json_proto [00:16:18]query_string will be loaded in cgi processing [00:16:18]execute_cgi json_proto POST (null) [00:16:18]execute_cgi path=json_proto method=POST [00:16:18]POST find Content-Length [00:16:18]Host: 172.17.44.196:8080 [00:16:18]Content-Length: 331 [00:16:18]Content-Type: application/json [00:16:18] [00:16:18]POST finish read [00:16:18]Found Content-Length = 331 [00:16: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" ] } } [00:16:18]execute_script... [00:16: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" ] } } [00:16:18]POST & json_proto [00:16:18]process_json_proto [00:16:18]json parsed OK: [00:16:18]protocol is kg_v1.0 [00:16:18]action value=get_value [00:16:18]process_action get_value [00:16:18]cmd_get_value [00:16:18]process_action get_value done [00:16:18]requested_data is exist [00:16:18]produce_requested_data [00:16:18]requested_item fm.sale.total is exist - process it [00:16:18]SAM_PROTO_GetFMData [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 13 03 00 [00:16:18]Write to MH i2c: E2 08 00 34 61 80 13 03 00 00 00 00 00 14 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:19]Read from MH i2c: E2 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 FD 00 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 FD 00 34 61 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 83 [00:16:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:16:19]wFMCommunicate OK [00:16:19]wFMCommunicate request_size=4 [00:16:19]MH_SAM_APDU [00:16:19]CAPDU: 80 17 00 00 [00:16:19]Write to MH i2c: E2 08 00 35 61 80 17 00 00 00 00 00 00 16 [00:16:19]Write i2c OK [00:16:19]MH_I2C_Read... [00:16:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:19]Read from MH i2c: E2 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 FD 00 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 FD 00 35 61 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [00:16: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 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:19]wFMCommunicate OK [00:16:19]wFMCommunicate request_size=4 [00:16:19]MH_SAM_APDU [00:16:19]CAPDU: 80 17 00 00 [00:16:19]Write to MH i2c: E2 08 00 36 61 80 17 00 00 00 00 00 00 17 [00:16:19]Write i2c OK [00:16:19]MH_I2C_Read... [00:16:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:19]Read from MH i2c: E2 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 FD 00 [00:16:19]MH_I2C_Read... [00:16:19]Read from MH i2c: E2 FD 00 36 61 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 29 [00:16:20]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:16:20]wFMCommunicate OK [00:16:20]wFMCommunicate request_size=4 [00:16:20]MH_SAM_APDU [00:16:20]CAPDU: 80 17 00 00 [00:16:20]Write to MH i2c: E2 08 00 37 61 80 17 00 00 00 00 00 00 18 [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:20]Read from MH i2c: E2 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: E2 FD 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: E2 FD 00 37 61 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 A4 [00:16:20]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:16:20]wFMCommunicate OK [00:16:20]wFMCommunicate request_size=4 [00:16:20]MH_SAM_APDU [00:16:20]CAPDU: 80 17 00 00 [00:16:20]Write to MH i2c: E2 08 00 38 61 80 17 00 00 00 00 00 00 19 [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:16:20]Read from MH i2c: E2 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: E2 E2 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: E2 E2 00 38 61 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F7 [00:16: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 [00:16:20]wFMCommunicate OK [00:16:20]SAM_PROTO_GetFMData done [00:16:20]requested_item fm.sale_refund.total is exist - process it [00:16:20]requested_item fm.buy.total is exist - process it [00:16:20]requested_item shift.sale.total is exist - process it [00:16:20]SAM_PROTO_GetShiftData [00:16:20]wFMCommunicate request_size=4 [00:16:20]MH_SAM_APDU [00:16:20]CAPDU: 80 13 02 00 [00:16:20]Write to MH i2c: E2 08 00 39 61 80 13 02 00 00 00 00 00 18 [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:21]OFD Sender: No OFD packet to send [00:16:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:21]Read from MH i2c: E2 [00:16:21]MH_I2C_Read... [00:16:21]Read from MH i2c: E2 FD 00 [00:16:21]MH_I2C_Read... [00:16:21]Read from MH i2c: E2 FD 00 39 61 00 BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 79 [00:16:21]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:16:21]wFMCommunicate OK [00:16:21]wFMCommunicate request_size=4 [00:16:21]MH_SAM_APDU [00:16:21]CAPDU: 80 17 00 00 [00:16:21]Write to MH i2c: E2 08 00 3A 61 80 17 00 00 00 00 00 00 1B [00:16:21]Write i2c OK [00:16:21]MH_I2C_Read... [00:16:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:21]Read from MH i2c: E2 [00:16:21]MH_I2C_Read... [00:16:21]Read from MH i2c: E2 FD 00 [00:16:21]MH_I2C_Read... [00:16:21]Read from MH i2c: E2 FD 00 3A 61 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:16:21]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:21]wFMCommunicate OK [00:16:21]wFMCommunicate request_size=4 [00:16:21]MH_SAM_APDU [00:16:21]CAPDU: 80 17 00 00 [00:16:21]Write to MH i2c: E2 08 00 3B 61 80 17 00 00 00 00 00 00 1C [00:16:21]Write i2c OK [00:16:21]MH_I2C_Read... [00:16:22]Read from MH i2c: E2 [00:16:22]MH_I2C_Read... [00:16:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:22]Read from MH i2c: E2 FD 00 [00:16:22]MH_I2C_Read... [00:16:22]Read from MH i2c: E2 FD 00 3B 61 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:16:22]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 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 90 00 [00:16:22]wFMCommunicate OK [00:16:22]wFMCommunicate request_size=4 [00:16:22]MH_SAM_APDU [00:16:22]CAPDU: 80 17 00 00 [00:16:22]Write to MH i2c: E2 08 00 3C 61 80 17 00 00 00 00 00 00 1D [00:16:22]Write i2c OK [00:16:22]MH_I2C_Read... [00:16:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:22]Read from MH i2c: E2 [00:16:22]MH_I2C_Read... [00:16:22]Read from MH i2c: E2 FD 00 [00:16:22]MH_I2C_Read... [00:16:22]Read from MH i2c: E2 FD 00 3C 61 00 03 00 00 EF 03 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 90 00 9E [00:16:22]RAPDU: 03 00 00 EF 03 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 90 00 [00:16:22]wFMCommunicate OK [00:16:22]wFMCommunicate request_size=4 [00:16:22]MH_SAM_APDU [00:16:22]CAPDU: 80 17 00 00 [00:16:22]Write to MH i2c: E2 08 00 3D 61 80 17 00 00 00 00 00 00 1E [00:16:22]Write i2c OK [00:16:22]MH_I2C_Read... [00:16:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:16:22]Read from MH i2c: E2 [00:16:22]MH_I2C_Read... [00:16:22]Read from MH i2c: E2 D9 00 [00:16:22]MH_I2C_Read... [00:16:22]Read from MH i2c: E2 D9 00 3D 61 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [00:16:23]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:23]wFMCommunicate OK [00:16:23]SAM_PROTO_GetShiftData done [00:16:23]requested_item shift.sale.total_cash is exist - process it [00:16:23]requested_item shift.sale_refund.total is exist - process it [00:16:23]requested_item shift.sale_refund.total_cash is exist - process it [00:16:23]requested_item shift.buy.total is exist - process it [00:16:23]requested_item shift.buy.total_cash is exist - process it [00:16:23]produce_requested_data done [00:16:23]produce_requested_data return {"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:16:23]process_action_free get_value [00:16:23]json_value_free [00:16:23]json_value_free done [00:16:23]process_json_proto returns [00:16:23]Send response to host [00:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:16:23]free response buf [00:16:23]execute_script done [00:16:23]execute_script returns [00:16:23]free content buf [00:16:23]Sock 9.Close socket [00:16:23]Sock 9.Thread stoped [00:16:23]accept exits with 8 [00:16:23]New connection [00:16:23]New thread 3067575652 created [00:16:23]Thread 3067432292 joined [00:16:23]Waiting for new connection... [00:16:23] Sock 8.Parse request [00:16:23]Sock 8.Check first char [00:16:23]Sock 8.First char is OK [00:16:23]request: POST /json_proto HTTP/1.0 [00:16:23]Method: POST [00:16:23]URL: /json_proto [00:16:23]Method is POST - this is cgi request [00:16:23]url: /json_proto [00:16:23]query_string will be loaded in cgi processing [00:16:23]execute_cgi json_proto POST (null) [00:16:23]execute_cgi path=json_proto method=POST [00:16:23]POST find Content-Length [00:16:23]Host: 172.17.44.196:8080 [00:16:23]Content-Length: 257 [00:16:23]Content-Type: application/json [00:16:23] [00:16:23]POST finish read [00:16:23]Found Content-Length = 257 [00:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:23]execute_script... [00:16:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:23]POST & json_proto [00:16:23]process_json_proto [00:16:23]json parsed OK: [00:16:23]protocol is kg_v1.0 [00:16:23]action value=x_report [00:16:23]process_action x_report [00:16:23]cmd_x_report [00:16:23]MH_GetDate [00:16:23]Write to MH i2c: F0 00 00 3E 61 8E [00:16:23]Write i2c OK [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: F0 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: F0 09 00 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: F0 09 00 3E 61 00 5B 9D 15 67 E7 19 F8 65 68 [00:16:23]GetLastDocTimeStamp 1729468671 [00:16:23]current date 1729469787 [00:16:23]FM_GetShiftState [00:16:23]SAM_PROTO_GetShiftState [00:16:23]wFMCommunicate request_size=4 [00:16:23]MH_SAM_APDU [00:16:23]CAPDU: 80 13 01 00 [00:16:23]Write to MH i2c: E2 08 00 3F 61 80 13 01 00 00 00 00 00 1D [00:16:23]Write i2c OK [00:16:23]MH_I2C_Read... [00:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:23]Read from MH i2c: E2 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: E2 0E 00 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: E2 0E 00 3F 61 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 62 [00:16:23]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [00:16:23]wFMCommunicate OK [00:16:23]SAM_PROTO_GetShiftState done [00:16:23]FM_GetShiftState done [00:16:23]KKMCreateXReportDocument [00:16:23]Load OK [00:16:23]Malloc new data [00:16:23]MH_GetDate [00:16:23]Write to MH i2c: F0 00 00 40 61 90 [00:16:23]Write i2c OK [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: F0 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: F0 09 00 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: F0 09 00 40 61 00 5B 9D 15 67 E7 19 F8 65 6A [00:16:23]Malloc new data [00:16:23]Malloc new data [00:16:23]wFMCommunicate request_size=4 [00:16:23]MH_SAM_APDU [00:16:23]CAPDU: 80 11 00 00 [00:16:23]Write to MH i2c: E2 08 00 41 61 80 11 00 00 00 00 00 00 1C [00:16:23]Write i2c OK [00:16:23]MH_I2C_Read... [00:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:23]Read from MH i2c: E2 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: E2 17 00 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: E2 17 00 41 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [00:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:16:23]wFMCommunicate OK [00:16:23]SAM_PROTO_GetFieldsCounters [00:16:23]wFMCommunicate request_size=4 [00:16:23]MH_SAM_APDU [00:16:23]CAPDU: 80 13 00 00 [00:16:23]Write to MH i2c: E2 08 00 42 61 80 13 00 00 00 00 00 00 1F [00:16:23]Write i2c OK [00:16:23]MH_I2C_Read... [00:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:23]Read from MH i2c: E2 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: E2 62 00 [00:16:23]MH_I2C_Read... [00:16:23]Read from MH i2c: E2 62 00 42 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [00:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:23]wFMCommunicate OK [00:16:23]SAM_PROTO_GetFieldsCounters done [00:16:23]Malloc new data [00:16:23]Malloc new data [00:16:23]Malloc new data [00:16:23]KKMCreateXReportDocument OK [00:16:23]KKMSetXReportData OK [00:16:23]KKMPrepareXReportFMData [00:16:23]SAM_PROTO_GetShiftData [00:16:23]wFMCommunicate request_size=4 [00:16:23]MH_SAM_APDU [00:16:23]CAPDU: 80 13 02 00 [00:16:23]Write to MH i2c: E2 08 00 43 61 80 13 02 00 00 00 00 00 22 [00:16:23]Write i2c OK [00:16:23]MH_I2C_Read... [00:16:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:24]Read from MH i2c: E2 [00:16:24]MH_I2C_Read... [00:16:24]Read from MH i2c: E2 FD 00 [00:16:24]MH_I2C_Read... [00:16:24]Read from MH i2c: E2 FD 00 43 61 00 BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 83 [00:16:24]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:16:24]wFMCommunicate OK [00:16:24]wFMCommunicate request_size=4 [00:16:24]MH_SAM_APDU [00:16:24]CAPDU: 80 17 00 00 [00:16:24]Write to MH i2c: E2 08 00 44 61 80 17 00 00 00 00 00 00 25 [00:16:24]Write i2c OK [00:16:24]MH_I2C_Read... [00:16:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:24]Read from MH i2c: E2 [00:16:24]MH_I2C_Read... [00:16:24]Read from MH i2c: E2 FD 00 [00:16:24]MH_I2C_Read... [00:16:24]Read from MH i2c: E2 FD 00 44 61 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [00:16:24]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:24]wFMCommunicate OK [00:16:24]wFMCommunicate request_size=4 [00:16:24]MH_SAM_APDU [00:16:24]CAPDU: 80 17 00 00 [00:16:24]Write to MH i2c: E2 08 00 45 61 80 17 00 00 00 00 00 00 26 [00:16:24]Write i2c OK [00:16:24]MH_I2C_Read... [00:16:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:25]Read from MH i2c: E2 [00:16:25]MH_I2C_Read... [00:16:25]Read from MH i2c: E2 FD 00 [00:16:25]MH_I2C_Read... [00:16:25]Read from MH i2c: E2 FD 00 45 61 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [00:16:25]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 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 90 00 [00:16:25]wFMCommunicate OK [00:16:25]wFMCommunicate request_size=4 [00:16:25]MH_SAM_APDU [00:16:25]CAPDU: 80 17 00 00 [00:16:25]Write to MH i2c: E2 08 00 46 61 80 17 00 00 00 00 00 00 27 [00:16:25]Write i2c OK [00:16:25]MH_I2C_Read... [00:16:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:25]Read from MH i2c: E2 [00:16:25]MH_I2C_Read... [00:16:25]Read from MH i2c: E2 FD 00 [00:16:25]MH_I2C_Read... [00:16:25]Read from MH i2c: E2 FD 00 46 61 00 03 00 00 EF 03 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 90 00 A8 [00:16:25]RAPDU: 03 00 00 EF 03 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 90 00 [00:16:25]wFMCommunicate OK [00:16:25]wFMCommunicate request_size=4 [00:16:25]MH_SAM_APDU [00:16:25]CAPDU: 80 17 00 00 [00:16:25]Write to MH i2c: E2 08 00 47 61 80 17 00 00 00 00 00 00 28 [00:16:25]Write i2c OK [00:16:25]MH_I2C_Read... [00:16:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:16:25]Read from MH i2c: E2 [00:16:25]MH_I2C_Read... [00:16:25]Read from MH i2c: E2 D9 00 [00:16:25]MH_I2C_Read... [00:16:25]Read from MH i2c: E2 D9 00 47 61 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [00:16:26]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:26]wFMCommunicate OK [00:16:26]SAM_PROTO_GetShiftData done [00:16:26]1194 (1208) - счетчики итогов смены [00:16:26] 1134 (4) - 364 - количество чеков со всеми признаками расчетов [00:16:26] 1129 (158) - счетчики операций «приход» [00:16:26] 1135 (4) - 361 - количество чеков по признаку расчетов [00:16:26] 1201 (4) - 261407.42 - общая итоговая сумма в чеках [00:16:26] 1136 (4) - 233343.00 - итоговая сумма в чеках наличными [00:16:26] 1138 (3) - 28064.42 - итоговая сумма в чеках безналичными [00:16:26] 1024 (123) - суммы налогов [00:16:26] 1006 (9) - суммы НДС [00:16:26] 1010 (1) - 0% - код ставки НДС [00:16:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:26] 1006 (12) - суммы НДС [00:16:26] OFD Sender: No OFD packet to send [00:16:26] 1010 (1) - 12% - код ставки НДС [00:16:26] 1011 (3) - 27765.86 - сумма НДС по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (12) - суммы НСП [00:16:26] 1014 (1) - 1% - код ставки НСП [00:16:26] 1015 (3) - 2313.70 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 2% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 3% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 5% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 1,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1130 (152) - счетчики операций «возврат прихода» [00:16:26] 1135 (4) - 3 - количество чеков по признаку расчетов [00:16:26] 1201 (3) - 21000.00 - общая итоговая сумма в чеках [00:16:26] 1136 (3) - 21000.00 - итоговая сумма в чеках наличными [00:16:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:16:26] 1024 (122) - суммы налогов [00:16:26] 1006 (9) - суммы НДС [00:16:26] 1010 (1) - 0% - код ставки НДС [00:16:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:26] 1006 (12) - суммы НДС [00:16:26] 1010 (1) - 12% - код ставки НДС [00:16:26] 1011 (3) - 2230.12 - сумма НДС по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (11) - суммы НСП [00:16:26] 1014 (1) - 1% - код ставки НСП [00:16:26] 1015 (2) - 185.85 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 2% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 3% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 5% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 1,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1131 (141) - счетчики операций «расход» [00:16:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:16:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:16:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:16:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:16:26] 1024 (117) - суммы налогов [00:16:26] 1006 (9) - суммы НДС [00:16:26] 1010 (1) - 0% - код ставки НДС [00:16:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:26] 1006 (9) - суммы НДС [00:16:26] 1010 (1) - 12% - код ставки НДС [00:16:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 1% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 2% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 3% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 5% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 1,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1132 (141) - счетчики операций «возврат расхода» [00:16:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:16:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:16:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:16:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:16:26] 1024 (117) - суммы налогов [00:16:26] 1006 (9) - суммы НДС [00:16:26] 1010 (1) - 0% - код ставки НДС [00:16:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:26] 1006 (9) - суммы НДС [00:16:26] 1010 (1) - 12% - код ставки НДС [00:16:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 1% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 2% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 3% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 5% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 0,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1007 (9) - суммы НСП [00:16:26] 1014 (1) - 1,50% - код ставки НСП [00:16:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:16:26] 1133 (588) - - счетчики коррекции - не используются [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1194 (04AA) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1134 (046E) [00:16:26]Malloc new data [00:16:26]Processing tag 1129 (0469) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1135 (046F) [00:16:26]Malloc new data [00:16:26]Processing tag 1201 (04B1) [00:16:26]Malloc new data [00:16:26]Processing tag 1136 (0470) [00:16:26]Malloc new data [00:16:26]Processing tag 1138 (0472) [00:16:26]Malloc new data [00:16:26]Processing tag 1024 (0400) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1006 (03EE) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1010 (03F2) [00:16:26]Malloc new data [00:16:26]Processing tag 1011 (03F3) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1006 (03EE) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1010 (03F2) [00:16:26]Malloc new data [00:16:26]Processing tag 1011 (03F3) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]SetTLVBufToDocument err=0 [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1130 (046A) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1135 (046F) [00:16:26]Malloc new data [00:16:26]Processing tag 1201 (04B1) [00:16:26]Malloc new data [00:16:26]Processing tag 1136 (0470) [00:16:26]Malloc new data [00:16:26]Processing tag 1138 (0472) [00:16:26]Malloc new data [00:16:26]Processing tag 1024 (0400) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1006 (03EE) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1010 (03F2) [00:16:26]Malloc new data [00:16:26]Processing tag 1011 (03F3) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1006 (03EE) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1010 (03F2) [00:16:26]Malloc new data [00:16:26]Processing tag 1011 (03F3) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1007 (03EF) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1014 (03F6) [00:16:26]Malloc new data [00:16:26]Processing tag 1015 (03F7) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]SetTLVBufToDocument err=0 [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1131 (046B) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1135 (046F) [00:16:26]Malloc new data [00:16:26]Processing tag 1201 (04B1) [00:16:26]Malloc new data [00:16:26]Processing tag 1136 (0470) [00:16:26]Malloc new data [00:16:26]Processing tag 1138 (0472) [00:16:26]Malloc new data [00:16:26]Processing tag 1024 (0400) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1006 (03EE) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1010 (03F2) [00:16:26]Malloc new data [00:16:26]Processing tag 1011 (03F3) [00:16:26]Malloc new data [00:16:26]SetTLVBufToDocument err=0 [00:16:26]Processing tag 1006 (03EE) [00:16:26]Load OK [00:16:26]SetTLVBufToDocument [00:16:26]Processing tag 1010 (03F2) [00:16:26]Malloc new data [00:16:26]Processing tag 1011 (03F3) [00:16:26]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]SetTLVBufToDocument err=0 [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1132 (046C) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1135 (046F) [00:16:27]Malloc new data [00:16:27]Processing tag 1201 (04B1) [00:16:27]Malloc new data [00:16:27]Processing tag 1136 (0470) [00:16:27]Malloc new data [00:16:27]Processing tag 1138 (0472) [00:16:27]Malloc new data [00:16:27]Processing tag 1024 (0400) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1006 (03EE) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1010 (03F2) [00:16:27]Malloc new data [00:16:27]Processing tag 1011 (03F3) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1006 (03EE) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1010 (03F2) [00:16:27]Malloc new data [00:16:27]Processing tag 1011 (03F3) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1007 (03EF) [00:16:27]Load OK [00:16:27]SetTLVBufToDocument [00:16:27]Processing tag 1014 (03F6) [00:16:27]Malloc new data [00:16:27]Processing tag 1015 (03F7) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]SetTLVBufToDocument err=0 [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Processing tag 1133 (046D) [00:16:27]Malloc new data [00:16:27]SetTLVBufToDocument err=0 [00:16:27]SetTLVBufToDocument err=0 [00:16:27]Malloc new data [00:16:27]SAM_PROTO_GetFMData [00:16:27]wFMCommunicate request_size=4 [00:16:27]MH_SAM_APDU [00:16:27]CAPDU: 80 13 03 00 [00:16:27]Write to MH i2c: E2 08 00 48 61 80 13 03 00 00 00 00 00 28 [00:16:27]Write i2c OK [00:16:27]MH_I2C_Read... [00:16:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:27]Read from MH i2c: E2 [00:16:27]MH_I2C_Read... [00:16:27]Read from MH i2c: E2 FD 00 [00:16:27]MH_I2C_Read... [00:16:27]Read from MH i2c: E2 FD 00 48 61 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 97 [00:16:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:16:28]wFMCommunicate OK [00:16:28]wFMCommunicate request_size=4 [00:16:28]MH_SAM_APDU [00:16:28]CAPDU: 80 17 00 00 [00:16:28]Write to MH i2c: E2 08 00 49 61 80 17 00 00 00 00 00 00 2A [00:16:28]Write i2c OK [00:16:28]MH_I2C_Read... [00:16:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:28]Read from MH i2c: E2 [00:16:28]MH_I2C_Read... [00:16:28]Read from MH i2c: E2 FD 00 [00:16:28]MH_I2C_Read... [00:16:28]Read from MH i2c: E2 FD 00 49 61 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F [00:16:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:28]wFMCommunicate OK [00:16:28]wFMCommunicate request_size=4 [00:16:28]MH_SAM_APDU [00:16:28]CAPDU: 80 17 00 00 [00:16:28]Write to MH i2c: E2 08 00 4A 61 80 17 00 00 00 00 00 00 2B [00:16:28]Write i2c OK [00:16:28]MH_I2C_Read... [00:16:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:28]Read from MH i2c: E2 [00:16:28]MH_I2C_Read... [00:16:28]Read from MH i2c: E2 FD 00 [00:16:28]MH_I2C_Read... [00:16:28]Read from MH i2c: E2 FD 00 4A 61 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 3D [00:16:29]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:16:29]wFMCommunicate OK [00:16:29]wFMCommunicate request_size=4 [00:16:29]MH_SAM_APDU [00:16:29]CAPDU: 80 17 00 00 [00:16:29]Write to MH i2c: E2 08 00 4B 61 80 17 00 00 00 00 00 00 2C [00:16:29]Write i2c OK [00:16:29]MH_I2C_Read... [00:16:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:29]Read from MH i2c: E2 [00:16:29]MH_I2C_Read... [00:16:29]Read from MH i2c: E2 FD 00 [00:16:29]MH_I2C_Read... [00:16:29]Read from MH i2c: E2 FD 00 4B 61 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 B8 [00:16:29]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:16:29]wFMCommunicate OK [00:16:29]wFMCommunicate request_size=4 [00:16:29]MH_SAM_APDU [00:16:29]CAPDU: 80 17 00 00 [00:16:29]Write to MH i2c: E2 08 00 4C 61 80 17 00 00 00 00 00 00 2D [00:16:29]Write i2c OK [00:16:29]MH_I2C_Read... [00:16:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:16:29]Read from MH i2c: E2 [00:16:29]MH_I2C_Read... [00:16:30]Read from MH i2c: E2 E2 00 [00:16:30]MH_I2C_Read... [00:16:30]Read from MH i2c: E2 E2 00 4C 61 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B [00:16:30]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:16:30]wFMCommunicate OK [00:16:30]SAM_PROTO_GetFMData done [00:16:30]FM_GetFMData:85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 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 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:30]oper:6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:31]total:C0 7E 02 2C 01 [00:16:31]Malloc new data [00:16:31]oper:6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 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 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:31]total:8C EF 2A 04 [00:16:31]Malloc new data [00:16:31]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:16:31]total: [00:16:31]Malloc new data [00:16:31]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:16:31]total: [00:16:31]Malloc new data [00:16:31]KKMPrepareXReportFMData err=0 [00:16:31]Х отчет ИНН: 02508201610067 Кассир: Ормонова Д. 21.10.2024 00:16 Смена: 10 РНМ: 0000000000161154 ЗНМ: 0300000020 СНО: Общий режим Всего чеков: 364 ИТОГИ ПРИХОД Чеков: 361 Общий итог: 261407.42 Итого наличными: 233343.00 Итого безнал.: 28064.42 НДС 0% : 0.00 НДС 12% : 27765.86 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2313.70 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 21000.00 Итого наличными: 21000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 2230.12 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 185.85 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 212343.00 НС Приход: 50333283.20 НС Возвр.Прихода: 699227.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963323 [00:16:31]StoreToDocumentArchive [00:16:31]MH_GetDate [00:16:31]Write to MH i2c: F0 00 00 4D 61 9D [00:16:31]OFD Sender: No OFD packet to send [00:16:31]Write i2c OK [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: F0 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: F0 09 00 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: F0 09 00 4D 61 00 63 9D 15 67 E7 19 F8 65 7F [00:16:31]shift 10 fd 1729469795 [00:16:31]Create dir for shift 0010 [00:16:31]save to /storage/0010/doc_1729469795 [00:16:31]save last doc name /storage/0010/doc_1729469795 to /storage/kkm_last_doc_name [00:16:31]save OK [00:16:31]Clear old archive folders... [00:16:31]NVStorageSaveData kkm_last_timestamp [00:16:31]File name is /storage/kkm_last_timestamp [00:16:31]Write 4 bytes [00:16:31]NVStorageSaveData done [00:16:31]ExternCall_PrintAddStr [00:16:31]wPrintStart [00:16:31]Write to MH i2c: 01 00 00 4E 61 AF [00:16:31]Write i2c OK [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: 01 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: 01 07 00 [00:16:31]MH_I2C_Read... [00:16:31]Read from MH i2c: 01 07 00 4E 61 00 00 00 00 00 FF 0F C4 [00:16:31]RasterBufferAndPrint [00:16:31]line Х отчет [00:16:31]line ИНН: 02508201610067 [00:16:31]line Кассир: Ормонова Д. [00:16:31]line 21.10.2024 00:16 [00:16:31]line Смена: 10 [00:16:31]line РНМ: 0000000000161154 [00:16:31]line ЗНМ: 0300000020 [00:16:31]line СНО: Общий режим [00:16:31]line Всего чеков: 364 [00:16:31]line ИТОГИ ПРИХОД [00:16:31]line Чеков: 361 [00:16:31]line Общий итог: 261407.42 [00:16:31]line Итого наличными: 233343.00 [00:16:31]line Итого безнал.: 28064.42 [00:16:31]line НДС 0% : 0.00 [00:16:31]line НДС 12% : 27765.86 [00:16:31]line НСП 0% : 0.00 [00:16:31]line НСП 1,50% : 0.00 [00:16:31]line НСП 0,50% : 0.00 [00:16:31]line НСП 5% : 0.00 [00:16:31]line НСП 3% : 0.00 [00:16:31]line НСП 2% : 0.00 [00:16:31]line НСП 1% : 2313.70 [00:16:31]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:16:31]line Чеков: 3 [00:16:31]line Общий итог: 21000.00 [00:16:31]line Итого наличными: 21000.00 [00:16:31]line Итого безнал.: 0.00 [00:16:31]line НДС 0% : 0.00 [00:16:31]line НДС 12% : 2230.12 [00:16:31]line НСП 0% : 0.00 [00:16:31]line НСП 1,50% : 0.00 [00:16:31]line НСП 0,50% : 0.00 [00:16:31]line НСП 5% : 0.00 [00:16:31]line НСП 3% : 0.00 [00:16:31]line НСП 2% : 0.00 [00:16:31]line НСП 1% : 185.85 [00:16:31]line ИТОГИ РАСХОД [00:16:31]line Чеков: 0 [00:16:31]line Общий итог: 0.00 [00:16:31]line Итого наличными: 0.00 [00:16:31]line Итого безнал.: 0.00 [00:16:31]line НДС 0% : 0.00 [00:16:31]line НДС 12% : 0.00 [00:16:31]line НСП 0% : 0.00 [00:16:31]line НСП 1,50% : 0.00 [00:16:31]line НСП 0,50% : 0.00 [00:16:31]line НСП 5% : 0.00 [00:16:31]line НСП 3% : 0.00 [00:16:31]line НСП 2% : 0.00 [00:16:31]line НСП 1% : 0.00 [00:16:31]line ИТОГИ ВОЗВРАТ РАСХОДА [00:16:31]line Чеков: 0 [00:16:31]line Общий итог: 0.00 [00:16:31]line Итого наличными: 0.00 [00:16:31]line Итого безнал.: 0.00 [00:16:31]line НДС 0% : 0.00 [00:16:31]line НДС 12% : 0.00 [00:16:31]line НСП 0% : 0.00 [00:16:31]line НСП 1,50% : 0.00 [00:16:31]line НСП 0,50% : 0.00 [00:16:31]line НСП 5% : 0.00 [00:16:31]line НСП 3% : 0.00 [00:16:31]line НСП 2% : 0.00 [00:16:31]line НСП 1% : 0.00 [00:16:31]line Сумма внесений: 0.00 [00:16:31]line Сумма выплат: 0.00 [00:16:31]line Нал. в кассе: 212343.00 [00:16:31]line НС Приход: 50333283.20 [00:16:31]line НС Возвр.Прихода: 699227.00 [00:16:31]line НС Расход: 0.00 [00:16:31]line НС Возвр.Расхода: 0.00 [00:16:31]line ФМ: 0000000000963323 [00:16:31]written 0, free lines is 4095 [00:16:32]Write to MH i2c: 01 00 00 99 61 FA [00:16:32]Write i2c OK [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: 01 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: 01 07 00 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: 01 07 00 99 61 00 00 00 00 00 48 0A 53 [00:16:32]RasterBufferAndPrint [00:16:32]line [00:16:32]line [00:16:32]line [00:16:32]line [00:16:32]line [00:16:32]written 0, free lines is 2660 [00:16:32]MH_Cut [00:16:32]Write to MH i2c: D1 01 00 A0 61 01 D3 [00:16:32]Write i2c OK [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: D1 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: D1 01 00 [00:16:32]MH_I2C_Read... [00:16:32]Read from MH i2c: D1 01 00 A0 61 00 D2 [00:16:32]Write to MH i2c: 01 00 00 A1 61 02 [00:16:32]Write i2c OK [00:16:32]MH_I2C_Read... [00:16:33]*** Cut start [00:16:33]*** Partial cut [00:16:33]*** CUTSNS_PIN = 1 [00:16:33]*** CUTSNS_PIN = 0 [00:16:33]*** Brake cut motor [00:16:34]Read from MH i2c: 01 [00:16:34]MH_I2C_Read... [00:16:34]*** Stop cut motor [00:16:34]*** Cut end [00:16:34]Read from MH i2c: 01 07 00 [00:16:34]MH_I2C_Read... [00:16:34]Read from MH i2c: 01 07 00 A1 61 00 00 00 00 00 FF 0F 17 [00:16:34]process_action x_report done [00:16:34]requested_data is exist [00:16:34]produce_requested_data [00:16:34]requested_item fd.num is exist - process it [00:16:34]SAM_PROTO_GetFieldsCounters [00:16:34]wFMCommunicate request_size=4 [00:16:34]MH_SAM_APDU [00:16:34]CAPDU: 80 13 00 00 [00:16:34]Write to MH i2c: E2 08 00 A2 61 80 13 00 00 00 00 00 00 7F [00:16:34]Write i2c OK [00:16:34]MH_I2C_Read... [00:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:34]Read from MH i2c: E2 [00:16:34]MH_I2C_Read... [00:16:34]Read from MH i2c: E2 62 00 [00:16:34]MH_I2C_Read... [00:16:34]Read from MH i2c: E2 62 00 A2 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [00:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:34]wFMCommunicate OK [00:16:34]SAM_PROTO_GetFieldsCounters done [00:16:34]requested_item shift.num is exist - process it [00:16:34]requested_item shift.opened is exist - process it [00:16:34]req_shift_opened [00:16:34]FM_GetShiftState [00:16:34]SAM_PROTO_GetShiftState [00:16:34]wFMCommunicate request_size=4 [00:16:34]MH_SAM_APDU [00:16:34]CAPDU: 80 13 01 00 [00:16:34]Write to MH i2c: E2 08 00 A3 61 80 13 01 00 00 00 00 00 81 [00:16:34]Write i2c OK [00:16:34]MH_I2C_Read... [00:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:34]Read from MH i2c: E2 [00:16:34]MH_I2C_Read... [00:16:34]Read from MH i2c: E2 0E 00 [00:16:34]MH_I2C_Read... [00:16:34]Read from MH i2c: E2 0E 00 A3 61 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C6 [00:16:34]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [00:16:34]wFMCommunicate OK [00:16:34]SAM_PROTO_GetShiftState done [00:16:34]FM_GetShiftState done [00:16:34]req_shift_opened done [00:16:34]requested_item shift.open_date is exist - process it [00:16:34]req_shift_open_date [00:16:34]req_shift_open_date done [00:16:34]produce_requested_data done [00:16:34]produce_requested_data return {"fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [00:16:34]process_action_free x_report [00:16:34]json_value_free [00:16:34]json_value_free done [00:16:34]process_json_proto returns [00:16:34]Send response to host [00:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [00:16:34]free response buf [00:16:34]execute_script done [00:16:34]execute_script returns [00:16:34]free content buf [00:16:34]Sock 8.Close socket [00:16:34]Sock 8.Thread stoped [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]accept exits with 9 [00:17:06]New connection [00:17:06]New thread 3067432292 created [00:17:06]Thread 3067575652 joined [00:17:06]Waiting for new connection... [00:17:06] Sock 9.Parse request [00:17:06]Sock 9.Check first char [00:17:06]Sock 9.First char is OK [00:17:06]request: POST /json_proto HTTP/1.0 [00:17:06]Method: POST [00:17:06]URL: /json_proto [00:17:06]Method is POST - this is cgi request [00:17:06]url: /json_proto [00:17:06]query_string will be loaded in cgi processing [00:17:06]execute_cgi json_proto POST (null) [00:17:06]execute_cgi path=json_proto method=POST [00:17:06]POST find Content-Length [00:17:06]Host: 172.17.44.196:8080 [00:17:06]Content-Length: 215 [00:17:06]Content-Type: application/json [00:17:06] [00:17:06]POST finish read [00:17:06]Found Content-Length = 215 [00:17:06]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:17:06]execute_script... [00:17:06]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:17:06]POST & json_proto [00:17:06]process_json_proto [00:17:06]json parsed OK: [00:17:06]protocol is kg_v1.0 [00:17:06]action value=get_value [00:17:06]process_action get_value [00:17:06]cmd_get_value [00:17:06]process_action get_value done [00:17:06]requested_data is exist [00:17:06]produce_requested_data [00:17:06]requested_item kkm.sn is exist - process it [00:17:06]requested_item kkm.ver is exist - process it [00:17:06]requested_item fm.sn is exist - process it [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 11 00 00 [00:17:06]Write to MH i2c: E2 08 00 A4 61 80 11 00 00 00 00 00 00 7F [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]OFD Sender: No OFD packet to send [00:17:06]Read from MH i2c: E2 [00:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 17 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 17 00 A4 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CC [00:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:17:06]wFMCommunicate OK [00:17:06]requested_item fd.num is exist - process it [00:17:06]SAM_PROTO_GetFieldsCounters [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 13 00 00 [00:17:06]Write to MH i2c: E2 08 00 A5 61 80 13 00 00 00 00 00 00 82 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 62 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 62 00 A5 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [00:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:06]wFMCommunicate OK [00:17:06]SAM_PROTO_GetFieldsCounters done [00:17:06]requested_item shift.num is exist - process it [00:17:06]requested_item shift.opened is exist - process it [00:17:06]req_shift_opened [00:17:06]FM_GetShiftState [00:17:06]SAM_PROTO_GetShiftState [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 13 01 00 [00:17:06]Write to MH i2c: E2 08 00 A6 61 80 13 01 00 00 00 00 00 84 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 0E 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 0E 00 A6 61 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 C9 [00:17:06]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [00:17:06]wFMCommunicate OK [00:17:06]SAM_PROTO_GetShiftState done [00:17:06]FM_GetShiftState done [00:17:06]req_shift_opened done [00:17:06]requested_item shift.open_date is exist - process it [00:17:06]req_shift_open_date [00:17:06]req_shift_open_date done [00:17:06]produce_requested_data done [00:17:06]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303} [00:17:06]process_action_free get_value [00:17:06]json_value_free [00:17:06]json_value_free done [00:17:06]process_json_proto returns [00:17:06]Send response to host [00:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":74038,"shift.num":170,"shift.opened":1,"shift.open_date":1729384303}}} [00:17:06]free response buf [00:17:06]execute_script done [00:17:06]execute_script returns [00:17:06]free content buf [00:17:06]Sock 9.Close socket [00:17:06]Sock 9.Thread stoped [00:17:06]accept exits with 8 [00:17:06]New connection [00:17:06]New thread 3067575652 created [00:17:06]Thread 3067432292 joined [00:17:06]Waiting for new connection... [00:17:06] Sock 8.Parse request [00:17:06]Sock 8.Check first char [00:17:06]Sock 8.First char is OK [00:17:06]request: POST /json_proto HTTP/1.0 [00:17:06]Method: POST [00:17:06]URL: /json_proto [00:17:06]Method is POST - this is cgi request [00:17:06]url: /json_proto [00:17:06]query_string will be loaded in cgi processing [00:17:06]execute_cgi json_proto POST (null) [00:17:06]execute_cgi path=json_proto method=POST [00:17:06]POST find Content-Length [00:17:06]Host: 172.17.44.196:8080 [00:17:06]Content-Length: 331 [00:17:06]Content-Type: application/json [00:17:06] [00:17:06]POST finish read [00:17:06]Found Content-Length = 331 [00:17:06]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:17:06]execute_script... [00:17:06]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:17:06]POST & json_proto [00:17:06]process_json_proto [00:17:06]json parsed OK: [00:17:06]protocol is kg_v1.0 [00:17:06]action value=get_value [00:17:06]process_action get_value [00:17:06]cmd_get_value [00:17:06]process_action get_value done [00:17:06]requested_data is exist [00:17:06]produce_requested_data [00:17:06]requested_item fm.sale.total is exist - process it [00:17:06]SAM_PROTO_GetFMData [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 13 03 00 [00:17:06]Write to MH i2c: E2 08 00 A7 61 80 13 03 00 00 00 00 00 87 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 FD 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 FD 00 A7 61 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 F6 [00:17:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:17:07]wFMCommunicate OK [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 17 00 00 [00:17:07]Write to MH i2c: E2 08 00 A8 61 80 17 00 00 00 00 00 00 89 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 FD 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 FD 00 A8 61 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FE [00:17:07]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:07]wFMCommunicate OK [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 17 00 00 [00:17:07]Write to MH i2c: E2 08 00 A9 61 80 17 00 00 00 00 00 00 8A [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 FD 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 FD 00 A9 61 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 9C [00:17:07]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:17:07]wFMCommunicate OK [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 17 00 00 [00:17:07]Write to MH i2c: E2 08 00 AA 61 80 17 00 00 00 00 00 00 8B [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 AA 61 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 17 [00:17: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:17:08]wFMCommunicate OK [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 17 00 00 [00:17:08]Write to MH i2c: E2 08 00 AB 61 80 17 00 00 00 00 00 00 8C [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 E2 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 E2 00 AB 61 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6A [00:17:08]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:17:08]wFMCommunicate OK [00:17:08]SAM_PROTO_GetFMData done [00:17:08]requested_item fm.sale_refund.total is exist - process it [00:17:08]requested_item fm.buy.total is exist - process it [00:17:08]requested_item shift.sale.total is exist - process it [00:17:08]SAM_PROTO_GetShiftData [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 13 02 00 [00:17:08]Write to MH i2c: E2 08 00 AC 61 80 13 02 00 00 00 00 00 8B [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 FD 00 AC 61 00 BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 EC [00:17:08]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:17:08]wFMCommunicate OK [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 17 00 00 [00:17:08]Write to MH i2c: E2 08 00 AD 61 80 17 00 00 00 00 00 00 8E [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 AD 61 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 19 [00:17:09]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 17 00 00 [00:17:09]Write to MH i2c: E2 08 00 AE 61 80 17 00 00 00 00 00 00 8F [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 AE 61 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [00:17:09]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 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 90 00 [00:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 17 00 00 [00:17:09]Write to MH i2c: E2 08 00 AF 61 80 17 00 00 00 00 00 00 90 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 FD 00 AF 61 00 03 00 00 EF 03 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 90 00 11 [00:17:09]RAPDU: 03 00 00 EF 03 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 90 00 [00:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 17 00 00 [00:17:09]Write to MH i2c: E2 08 00 B0 61 80 17 00 00 00 00 00 00 91 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 D9 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 D9 00 B0 61 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [00:17:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:10]wFMCommunicate OK [00:17:10]SAM_PROTO_GetShiftData done [00:17:10]requested_item shift.sale.total_cash is exist - process it [00:17:10]requested_item shift.sale_refund.total is exist - process it [00:17:10]requested_item shift.sale_refund.total_cash is exist - process it [00:17:10]requested_item shift.buy.total is exist - process it [00:17:10]requested_item shift.buy.total_cash is exist - process it [00:17:10]produce_requested_data done [00:17:10]produce_requested_data return {"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:17:10]process_action_free get_value [00:17:10]json_value_free [00:17:10]json_value_free done [00:17:10]process_json_proto returns [00:17:10]Send response to host [00:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:17:10]free response buf [00:17:10]execute_script done [00:17:10]execute_script returns [00:17:10]free content buf [00:17:10]Sock 8.Close socket [00:17:10]Sock 8.Thread stoped [00:17:10]accept exits with 9 [00:17:10]New connection [00:17:10]New thread 3067432292 created [00:17:10]Thread 3067575652 joined [00:17:10]Waiting for new connection... [00:17:10] Sock 9.Parse request [00:17:10]Sock 9.Check first char [00:17:10]Sock 9.First char is OK [00:17:10]request: POST /json_proto HTTP/1.0 [00:17:10]Method: POST [00:17:10]URL: /json_proto [00:17:10]Method is POST - this is cgi request [00:17:10]url: /json_proto [00:17:10]query_string will be loaded in cgi processing [00:17:10]execute_cgi json_proto POST (null) [00:17:10]execute_cgi path=json_proto method=POST [00:17:10]POST find Content-Length [00:17:10]Host: 172.17.44.196:8080 [00:17:10]Content-Length: 331 [00:17:10]Content-Type: application/json [00:17:10] [00:17:10]POST finish read [00:17:10]Found Content-Length = 331 [00:17:10]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:17:10]execute_script... [00:17:10]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:17:10]POST & json_proto [00:17:10]process_json_proto [00:17:10]json parsed OK: [00:17:10]protocol is kg_v1.0 [00:17:10]action value=get_value [00:17:10]process_action get_value [00:17:10]cmd_get_value [00:17:10]process_action get_value done [00:17:10]requested_data is exist [00:17:10]produce_requested_data [00:17:10]requested_item fm.sale.total is exist - process it [00:17:10]SAM_PROTO_GetFMData [00:17:10]wFMCommunicate request_size=4 [00:17:10]MH_SAM_APDU [00:17:10]CAPDU: 80 13 03 00 [00:17:10]Write to MH i2c: E2 08 00 B1 61 80 13 03 00 00 00 00 00 91 [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:10]Read from MH i2c: E2 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 FD 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: E2 FD 00 B1 61 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 00 [00:17:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:17:10]wFMCommunicate OK [00:17:10]wFMCommunicate request_size=4 [00:17:10]MH_SAM_APDU [00:17:10]CAPDU: 80 17 00 00 [00:17:10]Write to MH i2c: E2 08 00 B2 61 80 17 00 00 00 00 00 00 93 [00:17:11]Write i2c OK [00:17:11]MH_I2C_Read... [00:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:11]Read from MH i2c: E2 [00:17:11]MH_I2C_Read... [00:17:11]Read from MH i2c: E2 FD 00 [00:17:11]MH_I2C_Read... [00:17:11]Read from MH i2c: E2 FD 00 B2 61 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 08 [00:17:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:11]wFMCommunicate OK [00:17:11]wFMCommunicate request_size=4 [00:17:11]MH_SAM_APDU [00:17:11]CAPDU: 80 17 00 00 [00:17:11]Write to MH i2c: E2 08 00 B3 61 80 17 00 00 00 00 00 00 94 [00:17:11]Write i2c OK [00:17:11]MH_I2C_Read... [00:17:11]OFD Sender: No OFD packet to send [00:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:11]Read from MH i2c: E2 [00:17:11]MH_I2C_Read... [00:17:11]Read from MH i2c: E2 FD 00 [00:17:11]MH_I2C_Read... [00:17:11]Read from MH i2c: E2 FD 00 B3 61 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 A6 [00:17:11]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:17:11]wFMCommunicate OK [00:17:11]wFMCommunicate request_size=4 [00:17:11]MH_SAM_APDU [00:17:11]CAPDU: 80 17 00 00 [00:17:11]Write to MH i2c: E2 08 00 B4 61 80 17 00 00 00 00 00 00 95 [00:17:11]Write i2c OK [00:17:11]MH_I2C_Read... [00:17:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:12]Read from MH i2c: E2 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 FD 00 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 FD 00 B4 61 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 21 [00:17: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:17:12]wFMCommunicate OK [00:17:12]wFMCommunicate request_size=4 [00:17:12]MH_SAM_APDU [00:17:12]CAPDU: 80 17 00 00 [00:17:12]Write to MH i2c: E2 08 00 B5 61 80 17 00 00 00 00 00 00 96 [00:17:12]Write i2c OK [00:17:12]MH_I2C_Read... [00:17:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:17:12]Read from MH i2c: E2 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 E2 00 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 E2 00 B5 61 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [00:17:12]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:17:12]wFMCommunicate OK [00:17:12]SAM_PROTO_GetFMData done [00:17:12]requested_item fm.sale_refund.total is exist - process it [00:17:12]requested_item fm.buy.total is exist - process it [00:17:12]requested_item shift.sale.total is exist - process it [00:17:12]SAM_PROTO_GetShiftData [00:17:12]wFMCommunicate request_size=4 [00:17:12]MH_SAM_APDU [00:17:12]CAPDU: 80 13 02 00 [00:17:12]Write to MH i2c: E2 08 00 B6 61 80 13 02 00 00 00 00 00 95 [00:17:12]Write i2c OK [00:17:12]MH_I2C_Read... [00:17:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:13]Read from MH i2c: E2 [00:17:13]MH_I2C_Read... [00:17:13]Read from MH i2c: E2 FD 00 [00:17:13]MH_I2C_Read... [00:17:13]Read from MH i2c: E2 FD 00 B6 61 00 BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 F6 [00:17:13]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:17:13]wFMCommunicate OK [00:17:13]wFMCommunicate request_size=4 [00:17:13]MH_SAM_APDU [00:17:13]CAPDU: 80 17 00 00 [00:17:13]Write to MH i2c: E2 08 00 B7 61 80 17 00 00 00 00 00 00 98 [00:17:13]Write i2c OK [00:17:13]MH_I2C_Read... [00:17:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:13]Read from MH i2c: E2 [00:17:13]MH_I2C_Read... [00:17:13]Read from MH i2c: E2 FD 00 [00:17:13]MH_I2C_Read... [00:17:13]Read from MH i2c: E2 FD 00 B7 61 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 23 [00:17:13]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:13]wFMCommunicate OK [00:17:13]wFMCommunicate request_size=4 [00:17:13]MH_SAM_APDU [00:17:13]CAPDU: 80 17 00 00 [00:17:13]Write to MH i2c: E2 08 00 B8 61 80 17 00 00 00 00 00 00 99 [00:17:13]Write i2c OK [00:17:13]MH_I2C_Read... [00:17:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:14]Read from MH i2c: E2 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: E2 FD 00 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: E2 FD 00 B8 61 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [00:17:14]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 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 90 00 [00:17:14]wFMCommunicate OK [00:17:14]wFMCommunicate request_size=4 [00:17:14]MH_SAM_APDU [00:17:14]CAPDU: 80 17 00 00 [00:17:14]Write to MH i2c: E2 08 00 B9 61 80 17 00 00 00 00 00 00 9A [00:17:14]Write i2c OK [00:17:14]MH_I2C_Read... [00:17:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:14]Read from MH i2c: E2 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: E2 FD 00 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: E2 FD 00 B9 61 00 03 00 00 EF 03 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 90 00 1B [00:17:14]RAPDU: 03 00 00 EF 03 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 90 00 [00:17:14]wFMCommunicate OK [00:17:14]wFMCommunicate request_size=4 [00:17:14]MH_SAM_APDU [00:17:14]CAPDU: 80 17 00 00 [00:17:14]Write to MH i2c: E2 08 00 BA 61 80 17 00 00 00 00 00 00 9B [00:17:14]Write i2c OK [00:17:14]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 D9 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 D9 00 BA 61 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [00:17:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:15]wFMCommunicate OK [00:17:15]SAM_PROTO_GetShiftData done [00:17:15]requested_item shift.sale.total_cash is exist - process it [00:17:15]requested_item shift.sale_refund.total is exist - process it [00:17:15]requested_item shift.sale_refund.total_cash is exist - process it [00:17:15]requested_item shift.buy.total is exist - process it [00:17:15]requested_item shift.buy.total_cash is exist - process it [00:17:15]produce_requested_data done [00:17:15]produce_requested_data return {"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:17:15]process_action_free get_value [00:17:15]json_value_free [00:17:15]json_value_free done [00:17:15]process_json_proto returns [00:17:15]Send response to host [00:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:17:15]free response buf [00:17:15]execute_script done [00:17:15]execute_script returns [00:17:15]free content buf [00:17:15]Sock 9.Close socket [00:17:15]Sock 9.Thread stoped [00:17:15]accept exits with 8 [00:17:15]New connection [00:17:15]New thread 3067575652 created [00:17:15]Thread 3067432292 joined [00:17:15]Waiting for new connection... [00:17:15] Sock 8.Parse request [00:17:15]Sock 8.Check first char [00:17:15]Sock 8.First char is OK [00:17:15]request: POST /json_proto HTTP/1.0 [00:17:15]Method: POST [00:17:15]URL: /json_proto [00:17:15]Method is POST - this is cgi request [00:17:15]url: /json_proto [00:17:15]query_string will be loaded in cgi processing [00:17:15]execute_cgi json_proto POST (null) [00:17:15]execute_cgi path=json_proto method=POST [00:17:15]POST find Content-Length [00:17:15]Host: 172.17.44.196:8080 [00:17:15]Content-Length: 260 [00:17:15]Content-Type: application/json [00:17:15] [00:17:15]POST finish read [00:17:15]Found Content-Length = 260 [00:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:15]execute_script... [00:17:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:15]POST & json_proto [00:17:15]process_json_proto [00:17:15]json parsed OK: [00:17:15]protocol is kg_v1.0 [00:17:15]action value=close_shift [00:17:15]process_action close_shift [00:17:15]cmd_close_shift [00:17:15]MH_GetDate [00:17:15]Write to MH i2c: F0 00 00 BB 61 0B [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: F0 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: F0 09 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: F0 09 00 BB 61 00 8F 9D 15 67 E7 19 F8 65 19 [00:17:15]GetLastDocTimeStamp 1729469787 [00:17:15]current date 1729469839 [00:17:15]FM_GetShiftState [00:17:15]SAM_PROTO_GetShiftState [00:17:15]wFMCommunicate request_size=4 [00:17:15]MH_SAM_APDU [00:17:15]CAPDU: 80 13 01 00 [00:17:15]Write to MH i2c: E2 08 00 BC 61 80 13 01 00 00 00 00 00 9A [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 0E 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 0E 00 BC 61 00 09 00 01 6F 4F 14 67 00 00 00 00 90 00 DF [00:17:15]RAPDU: 09 00 01 6F 4F 14 67 00 00 00 00 90 00 [00:17:15]wFMCommunicate OK [00:17:15]SAM_PROTO_GetShiftState done [00:17:15]FM_GetShiftState done [00:17:15]KKMCreateCloseShiftDocument [00:17:15]Load OK [00:17:15]Malloc new data [00:17:15]MH_GetDate [00:17:15]Write to MH i2c: F0 00 00 BD 61 0D [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: F0 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: F0 09 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: F0 09 00 BD 61 00 8F 9D 15 67 E7 19 F8 65 1B [00:17:15]Malloc new data [00:17:15]Malloc new data [00:17:15]Malloc new data [00:17:15]Malloc new data [00:17:15]KKMCreateCloseShiftDocument OK [00:17:15]KKMSetCloseShiftData OK [00:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:17:15]tlvbuf is 005AEF60 [00:17:15]KKMLoadAndSignCloseShiftData [00:17:15]SAM_PROTO_ProcessDocument [00:17:15]wFMCommunicate request_size=9 [00:17:15]MH_SAM_APDU [00:17:15]CAPDU: 80 15 01 00 04 05 00 47 00 [00:17:15]Write to MH i2c: E2 0C 00 BE 61 80 15 01 00 04 00 05 00 47 00 00 00 F2 [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 BE 61 00 90 00 93 [00:17:15]RAPDU: 90 00 [00:17:15]wFMCommunicate OK [00:17:15]wFMCommunicate request_size=23 [00:17:15]MH_SAM_APDU [00:17:15]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:17:15]Write to MH i2c: E2 1A 00 BF 61 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 95 [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 BF 61 00 90 00 94 [00:17:15]RAPDU: 90 00 [00:17:15]wFMCommunicate OK [00:17:15]wFMCommunicate request_size=30 [00:17:15]MH_SAM_APDU [00:17:15]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 [00:17:15]Write to MH i2c: E2 21 00 C0 61 80 15 02 00 19 00 FD 03 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 00 00 B0 [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 C0 61 00 90 00 95 [00:17:15]RAPDU: 90 00 [00:17:15]wFMCommunicate OK [00:17:15]wFMCommunicate request_size=13 [00:17:15]MH_SAM_APDU [00:17:15]CAPDU: 80 15 02 00 08 F4 03 04 00 8F 9D 15 67 [00:17:15]Write to MH i2c: E2 10 00 C1 61 80 15 02 00 08 00 F4 03 04 00 8F 9D 15 67 00 00 55 [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 C1 61 00 90 00 96 [00:17:15]RAPDU: 90 00 [00:17:15]wFMCommunicate OK [00:17:15]wFMCommunicate request_size=25 [00:17:15]MH_SAM_APDU [00:17:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 [00:17:15]Write to MH i2c: E2 1C 00 C2 61 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 00 00 FE [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:15]Read from MH i2c: E2 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 [00:17:15]MH_I2C_Read... [00:17:15]Read from MH i2c: E2 03 00 C2 61 00 90 00 97 [00:17:15]RAPDU: 90 00 [00:17:15]wFMCommunicate OK [00:17:15]wFMCommunicate request_size=4 [00:17:15]MH_SAM_APDU [00:17:15]CAPDU: 80 15 03 00 [00:17:15]Write to MH i2c: E2 08 00 C3 61 80 15 03 00 00 00 00 00 A5 [00:17:15]Write i2c OK [00:17:15]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 FD 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 FD 00 C3 61 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 21 01 00 0E 04 04 00 AA 00 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 90 00 E5 [00:17:16]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 21 01 00 0E 04 04 00 AA 00 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 OFD Sender: No OFD packet to send [00:17:16]00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 90 00 [00:17:16]wFMCommunicate OK [00:17:16]SAM_PROTO_ProcessDocument answer len = 1279 [00:17:16]SAM_PROTO_ProcessDocument remain to read = 1031 [00:17:16]wFMCommunicate request_size=4 [00:17:16]MH_SAM_APDU [00:17:16]CAPDU: 80 17 00 00 [00:17:16]Write to MH i2c: E2 08 00 C4 61 80 17 00 00 00 00 00 00 A5 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:17]Read from MH i2c: E2 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: E2 FD 00 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: E2 FD 00 C4 61 00 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 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 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [00:17:17]RAPDU: 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 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 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:17]wFMCommunicate OK [00:17:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:17:17]SAM_PROTO_ProcessDocument remain to read = 781 [00:17:17]wFMCommunicate request_size=4 [00:17:17]MH_SAM_APDU [00:17:17]CAPDU: 80 17 00 00 [00:17:17]Write to MH i2c: E2 08 00 C5 61 80 17 00 00 00 00 00 00 A6 [00:17:17]Write i2c OK [00:17:17]MH_I2C_Read... [00:17:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:17]Read from MH i2c: E2 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: E2 FD 00 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: E2 FD 00 C5 61 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:17:17]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:17]wFMCommunicate OK [00:17:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:17:17]SAM_PROTO_ProcessDocument remain to read = 531 [00:17:17]wFMCommunicate request_size=4 [00:17:17]MH_SAM_APDU [00:17:17]CAPDU: 80 17 00 00 [00:17:17]Write to MH i2c: E2 08 00 C6 61 80 17 00 00 00 00 00 00 A7 [00:17:17]Write i2c OK [00:17:17]MH_I2C_Read... [00:17:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:18]Read from MH i2c: E2 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 FD 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 FD 00 C6 61 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 48 [00:17:18]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:18]wFMCommunicate OK [00:17:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:17:18]SAM_PROTO_ProcessDocument remain to read = 281 [00:17:18]wFMCommunicate request_size=4 [00:17:18]MH_SAM_APDU [00:17:18]CAPDU: 80 17 00 00 [00:17:18]Write to MH i2c: E2 08 00 C7 61 80 17 00 00 00 00 00 00 A8 [00:17:18]Write i2c OK [00:17:18]MH_I2C_Read... [00:17:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:18]Read from MH i2c: E2 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 FD 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 FD 00 C7 61 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [00:17:18]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:19]wFMCommunicate OK [00:17:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:17:19]SAM_PROTO_ProcessDocument remain to read = 31 [00:17:19]wFMCommunicate request_size=4 [00:17:19]MH_SAM_APDU [00:17:19]CAPDU: 80 17 00 00 [00:17:19]Write to MH i2c: E2 08 00 C8 61 80 17 00 00 00 00 00 00 A9 [00:17:19]Write i2c OK [00:17:19]MH_I2C_Read... [00:17:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:17:19]Read from MH i2c: E2 [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: E2 22 00 [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: E2 22 00 C8 61 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FF 71 E2 68 C7 B1 90 00 25 [00:17:19]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FF 71 E2 68 C7 B1 90 00 [00:17:19]wFMCommunicate OK [00:17:19]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:17:19]SAM_PROTO_ProcessDocument done [00:17:19]1209 (1) - 1.0 - номер версии ФФД [00:17:19]1041 (16) - 0000000000963323 - номер ФМ [00:17:19]1040 (4) - 74039 - номер ФД [00:17:19]1038 (4) - 170 - номер смены [00:17:19]1118 (4) - 364 - количество кассовых чеков за смену [00:17:19]1111 (4) - 366 - общее количество ФД за смену [00:17:19]1194 (1208) - счетчики итогов смены [00:17:19] 1134 (4) - 364 - количество чеков со всеми признаками расчетов [00:17:19] 1129 (158) - счетчики операций «приход» [00:17:19] 1135 (4) - 361 - количество чеков по признаку расчетов [00:17:19] 1201 (4) - 261407.42 - общая итоговая сумма в чеках [00:17:19] 1136 (4) - 233343.00 - итоговая сумма в чеках наличными [00:17:19] 1138 (3) - 28064.42 - итоговая сумма в чеках безналичными [00:17:19] 1024 (123) - суммы налогов [00:17:19] 1006 (9) - суммы НДС [00:17:19] 1010 (1) - 0% - код ставки НДС [00:17:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:19] 1006 (12) - суммы НДС [00:17:19] 1010 (1) - 12% - код ставки НДС [00:17:19] 1011 (3) - 27765.86 - сумма НДС по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (12) - суммы НСП [00:17:19] 1014 (1) - 1% - код ставки НСП [00:17:19] 1015 (3) - 2313.70 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 2% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 3% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 5% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 1,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1130 (152) - счетчики операций «возврат прихода» [00:17:19] 1135 (4) - 3 - количество чеков по признаку расчетов [00:17:19] 1201 (3) - 21000.00 - общая итоговая сумма в чеках [00:17:19] 1136 (3) - 21000.00 - итоговая сумма в чеках наличными [00:17:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:17:19] 1024 (122) - суммы налогов [00:17:19] 1006 (9) - суммы НДС [00:17:19] 1010 (1) - 0% - код ставки НДС [00:17:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:19] 1006 (12) - суммы НДС [00:17:19] 1010 (1) - 12% - код ставки НДС [00:17:19] 1011 (3) - 2230.12 - сумма НДС по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (11) - суммы НСП [00:17:19] 1014 (1) - 1% - код ставки НСП [00:17:19] 1015 (2) - 185.85 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 2% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 3% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 5% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 1,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1131 (141) - счетчики операций «расход» [00:17:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:17:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:17:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:17:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:17:19] 1024 (117) - суммы налогов [00:17:19] 1006 (9) - суммы НДС [00:17:19] 1010 (1) - 0% - код ставки НДС [00:17:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:19] 1006 (9) - суммы НДС [00:17:19] 1010 (1) - 12% - код ставки НДС [00:17:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 1% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 2% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 3% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 5% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 1,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1132 (141) - счетчики операций «возврат расхода» [00:17:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:17:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:17:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:17:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:17:19] 1024 (117) - суммы налогов [00:17:19] 1006 (9) - суммы НДС [00:17:19] 1010 (1) - 0% - код ставки НДС [00:17:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:19] 1006 (9) - суммы НДС [00:17:19] 1010 (1) - 12% - код ставки НДС [00:17:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 1% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 2% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 3% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 5% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 0,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1007 (9) - суммы НСП [00:17:19] 1014 (1) - 1,50% - код ставки НСП [00:17:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:17:19] 1133 (588) - - счетчики коррекции - не используются [00:17:19]1077 (6) - 280864594905009 - ФПД [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1209 (04B9) [00:17:19]Malloc new data [00:17:19]Processing tag 1041 (0411) [00:17:19]Processing tag 1040 (0410) [00:17:19]Malloc new data [00:17:19]Processing tag 1038 (040E) [00:17:19]Malloc new data [00:17:19]Processing tag 1118 (045E) [00:17:19]Malloc new data [00:17:19]Processing tag 1111 (0457) [00:17:19]Malloc new data [00:17:19]Processing tag 1194 (04AA) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1134 (046E) [00:17:19]Malloc new data [00:17:19]Processing tag 1129 (0469) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1135 (046F) [00:17:19]Malloc new data [00:17:19]Processing tag 1201 (04B1) [00:17:19]Malloc new data [00:17:19]Processing tag 1136 (0470) [00:17:19]Malloc new data [00:17:19]Processing tag 1138 (0472) [00:17:19]Malloc new data [00:17:19]Processing tag 1024 (0400) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1006 (03EE) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1010 (03F2) [00:17:19]Malloc new data [00:17:19]Processing tag 1011 (03F3) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1006 (03EE) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1010 (03F2) [00:17:19]Malloc new data [00:17:19]Processing tag 1011 (03F3) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1007 (03EF) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1014 (03F6) [00:17:19]Malloc new data [00:17:19]Processing tag 1015 (03F7) [00:17:19]Malloc new data [00:17:19]SetTLVBufToDocument err=0 [00:17:19]SetTLVBufToDocument err=0 [00:17:19]SetTLVBufToDocument err=0 [00:17:19]Processing tag 1130 (046A) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1135 (046F) [00:17:19]Malloc new data [00:17:19]Processing tag 1201 (04B1) [00:17:19]Malloc new data [00:17:19]Processing tag 1136 (0470) [00:17:19]Malloc new data [00:17:19]Processing tag 1138 (0472) [00:17:19]Malloc new data [00:17:19]Processing tag 1024 (0400) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1006 (03EE) [00:17:19]Load OK [00:17:19]SetTLVBufToDocument [00:17:19]Processing tag 1010 (03F2) [00:17:20]Malloc new data [00:17:20]Processing tag 1011 (03F3) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1006 (03EE) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1010 (03F2) [00:17:20]Malloc new data [00:17:20]Processing tag 1011 (03F3) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]SetTLVBufToDocument err=0 [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1131 (046B) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1135 (046F) [00:17:20]Malloc new data [00:17:20]Processing tag 1201 (04B1) [00:17:20]Malloc new data [00:17:20]Processing tag 1136 (0470) [00:17:20]Malloc new data [00:17:20]Processing tag 1138 (0472) [00:17:20]Malloc new data [00:17:20]Processing tag 1024 (0400) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1006 (03EE) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1010 (03F2) [00:17:20]Malloc new data [00:17:20]Processing tag 1011 (03F3) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1006 (03EE) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1010 (03F2) [00:17:20]Malloc new data [00:17:20]Processing tag 1011 (03F3) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]SetTLVBufToDocument err=0 [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1132 (046C) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1135 (046F) [00:17:20]Malloc new data [00:17:20]Processing tag 1201 (04B1) [00:17:20]Malloc new data [00:17:20]Processing tag 1136 (0470) [00:17:20]Malloc new data [00:17:20]Processing tag 1138 (0472) [00:17:20]Malloc new data [00:17:20]Processing tag 1024 (0400) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1006 (03EE) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1010 (03F2) [00:17:20]Malloc new data [00:17:20]Processing tag 1011 (03F3) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1006 (03EE) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1010 (03F2) [00:17:20]Malloc new data [00:17:20]Processing tag 1011 (03F3) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1007 (03EF) [00:17:20]Load OK [00:17:20]SetTLVBufToDocument [00:17:20]Processing tag 1014 (03F6) [00:17:20]Malloc new data [00:17:20]Processing tag 1015 (03F7) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]SetTLVBufToDocument err=0 [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1133 (046D) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Processing tag 1077 (0435) [00:17:20]Malloc new data [00:17:20]SetTLVBufToDocument err=0 [00:17:20]Malloc new data [00:17:20]SAM_PROTO_GetFMData [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 13 03 00 [00:17:20]Write to MH i2c: E2 08 00 C9 61 80 13 03 00 00 00 00 00 A9 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 FD 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 FD 00 C9 61 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 18 [00:17:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 17 00 00 [00:17:21]Write to MH i2c: E2 08 00 CA 61 80 17 00 00 00 00 00 00 AB [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:21]Read from MH i2c: E2 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: E2 FD 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: E2 FD 00 CA 61 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 [00:17: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 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:21]wFMCommunicate OK [00:17:21]wFMCommunicate request_size=4 [00:17:21]MH_SAM_APDU [00:17:21]CAPDU: 80 17 00 00 [00:17:21]Write to MH i2c: E2 08 00 CB 61 80 17 00 00 00 00 00 00 AC [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]OFD Sender: No OFD packet to send [00:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:21]Read from MH i2c: E2 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: E2 FD 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: E2 FD 00 CB 61 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 BE [00:17: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:17:22]wFMCommunicate OK [00:17:22]wFMCommunicate request_size=4 [00:17:22]MH_SAM_APDU [00:17:22]CAPDU: 80 17 00 00 [00:17:22]Write to MH i2c: E2 08 00 CC 61 80 17 00 00 00 00 00 00 AD [00:17:22]Write i2c OK [00:17:22]MH_I2C_Read... [00:17:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:22]Read from MH i2c: E2 [00:17:22]MH_I2C_Read... [00:17:22]Read from MH i2c: E2 FD 00 [00:17:22]MH_I2C_Read... [00:17:22]Read from MH i2c: E2 FD 00 CC 61 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 39 [00:17:22]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:17:22]wFMCommunicate OK [00:17:22]wFMCommunicate request_size=4 [00:17:22]MH_SAM_APDU [00:17:22]CAPDU: 80 17 00 00 [00:17:22]Write to MH i2c: E2 08 00 CD 61 80 17 00 00 00 00 00 00 AE [00:17:22]Write i2c OK [00:17:22]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 E2 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 E2 00 CD 61 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8C [00:17: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:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_GetFMData done [00:17:23]Malloc new data [00:17:23]Malloc new data [00:17:23]Malloc new data [00:17:23]Malloc new data [00:17:23]KKMLoadAndSignCloseShiftData err=0 [00:17:23]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ормонова Д. 21.10.2024 00:17 Смена: 170 РНМ: 0000000000161154 ЗНМ: 0300000020 СНО: Общий режим Чеков за смену: 364 ФД за смену: 366 Всего чеков: 364 ИТОГИ ПРИХОД Чеков: 361 Общий итог: 261407.42 Итого наличными: 233343.00 Итого безнал.: 28064.42 НДС 0% : 0.00 НДС 12% : 27765.86 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2313.70 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 21000.00 Итого наличными: 21000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 2230.12 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 185.85 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 212343.00 НС Приход: 50333283.20 НС Возвр.Прихода: 699227.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 74039 ФМ: 0000000000963323 ФПД: 280864594905009 [00:17:23]StoreToDocumentArchive [00:17:23]shift 170 fd 74039 [00:17:23]save to /storage/0170/doc_00074039 [00:17:23]save last doc name /storage/0170/doc_00074039 to /storage/kkm_last_doc_name [00:17:23]save OK [00:17:23]Clear old archive folders... [00:17:23]Remove dir /storage/0010 [00:17:23]opendir ok [00:17:23]file . [00:17:23]file .. [00:17:23]file doc_1729469795 [00:17:23]remove file /storage/0010/doc_1729469795 [00:17:23]remove dir /storage/0010 [00:17:23]NVStorageSaveData kkm_registers [00:17:23]File name is /storage/kkm_registers [00:17:23]Write 24 bytes [00:17:23]NVStorageSaveData done [00:17:23]NVStorageSaveData kkm_registers [00:17:23]File name is /storage/kkm_registers [00:17:23]Write 24 bytes [00:17:23]NVStorageSaveData done [00:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:17:23]tlvbuf is 0053CE40 [00:17:23]SAM_PROTO_ClearQueue [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 09 00 00 [00:17:23]Write to MH i2c: E2 08 00 CE 61 80 09 00 00 00 00 00 00 A1 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 CE 61 00 90 00 A3 [00:17:23]RAPDU: 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_ClearQueue done [00:17:23]KKMCreateOFDPacket [00:17:23]OFDProtocolAddRootSTLVToBuf [00:17:23]FM_MakeSignedData [00:17:23]FM_MakeSignedData [00:17:23]SAM_PROTO_SignData [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 0D 01 02 [00:17:23]Write to MH i2c: E2 08 00 CF 61 80 0D 01 02 00 00 00 00 A9 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 CF 61 00 90 00 A4 [00:17:23]RAPDU: 90 00 [00:17:23]wFMCommunicate OK [00:17:23]wFMCommunicate request_size=255 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 0D 02 02 FA 05 00 6D 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 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 8F 9D 15 67 0E 04 04 00 AA 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 AA 04 DF 04 6E 04 04 00 6C 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 00 04 82 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 0A 5E 2A 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 [00:17:23]Write to MH i2c: E2 02 01 D0 61 80 0D 02 02 FA 00 05 00 6D 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 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 8F 9D 15 67 0E 04 04 00 AA 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 AA 04 DF 04 6E 04 04 00 6C 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 00 04 82 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 0A 5E 2A 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 00 00 EE [00:17:24]Write i2c OK [00:17:24]MH_I2C_Read... [00:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:24]Read from MH i2c: E2 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: E2 03 00 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: E2 03 00 D0 61 00 90 00 A5 [00:17:24]RAPDU: 90 00 [00:17:24]wFMCommunicate OK [00:17:24]wFMCommunicate request_size=255 [00:17:24]MH_SAM_APDU [00:17:24]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 87 03 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 01 00 00 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 24 67 03 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 99 48 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 [00:17:24]Write to MH i2c: E2 02 01 D1 61 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 87 03 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 01 00 00 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 24 67 03 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 99 48 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 00 00 8F [00:17:24]Write i2c OK [00:17:24]MH_I2C_Read... [00:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:24]Read from MH i2c: E2 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: E2 03 00 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: E2 03 00 D1 61 00 90 00 A6 [00:17:24]RAPDU: 90 00 [00:17:24]wFMCommunicate OK [00:17:24]wFMCommunicate request_size=255 [00:17:24]MH_SAM_APDU [00:17:24]CAPDU: 80 0D 02 02 FA 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 [00:17:25]Write to MH i2c: E2 02 01 D2 61 80 0D 02 02 FA 00 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 00 00 65 [00:17:25]Write i2c OK [00:17:25]MH_I2C_Read... [00:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:25]Read from MH i2c: E2 [00:17:25]MH_I2C_Read... [00:17:25]Read from MH i2c: E2 03 00 [00:17:25]MH_I2C_Read... [00:17:25]Read from MH i2c: E2 03 00 D2 61 00 90 00 A7 [00:17:25]RAPDU: 90 00 [00:17:25]wFMCommunicate OK [00:17:25]wFMCommunicate request_size=255 [00:17:25]MH_SAM_APDU [00:17:25]CAPDU: 80 0D 02 02 FA 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 [00:17:25]Write to MH i2c: E2 02 01 D3 61 80 0D 02 02 FA 00 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 00 00 85 [00:17:26]Write i2c OK [00:17:26]MH_I2C_Read... [00:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:26]Read from MH i2c: E2 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 03 00 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 03 00 D3 61 00 90 00 A8 [00:17:26]RAPDU: 90 00 [00:17:26]wFMCommunicate OK [00:17:26]wFMCommunicate request_size=255 [00:17:26]MH_SAM_APDU [00:17:26]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:26]Write to MH i2c: E2 02 01 D4 61 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 3F [00:17:26]Write i2c OK [00:17:26]MH_I2C_Read... [00:17:26]OFD Sender: No OFD packet to send [00:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:26]Read from MH i2c: E2 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 03 00 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 03 00 D4 61 00 90 00 A9 [00:17:26]RAPDU: 90 00 [00:17:26]wFMCommunicate OK [00:17:26]wFMCommunicate request_size=148 [00:17:26]MH_SAM_APDU [00:17:26]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 FF 71 E2 68 C7 B1 [00:17:27]Write to MH i2c: E2 97 00 D5 61 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 FF 71 E2 68 C7 B1 00 00 74 [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:27]Read from MH i2c: E2 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: E2 03 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: E2 03 00 D5 61 00 90 00 AA [00:17:27]RAPDU: 90 00 [00:17:27]wFMCommunicate OK [00:17:27]wFMCommunicate request_size=4 [00:17:27]MH_SAM_APDU [00:17:27]CAPDU: 80 0D 03 02 [00:17:27]Write to MH i2c: E2 08 00 D6 61 80 0D 03 02 00 00 00 00 B2 [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:27]Read from MH i2c: E2 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: E2 0B 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: E2 0B 00 D6 61 00 16 1C A3 8F 0B 88 31 88 90 00 63 [00:17:27]RAPDU: 16 1C A3 8F 0B 88 31 88 90 00 [00:17:27]wFMCommunicate OK [00:17:27]SAM_PROTO_SignData done [00:17:27]FM_MakeSignedData done [00:17:27]CreateOFDProtocolMessage [00:17:27]wFMCommunicate request_size=4 [00:17:27]MH_SAM_APDU [00:17:27]CAPDU: 80 11 00 00 [00:17:27]Write to MH i2c: E2 08 00 D7 61 80 11 00 00 00 00 00 00 B2 [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: E2 [00:17:27]MH_I2C_Read... [00:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:27]Read from MH i2c: E2 17 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: E2 17 00 D7 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FF [00:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:17:27]wFMCommunicate OK [00:17:27]CreateOFDProtocolMessage done [00:17:27]OFDSenderStorePacket 74039 [00:17:27]StoreOFDPacket docnum=74039 [00:17:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 81 05 00 00 9A 0A 79 05 74 01 5A 05 01 00 05 00 6D 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 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 8F 9D 15 67 0E 04 04 00 AA 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 AA 04 DF 04 6E 04 04 00 6C 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 00 04 82 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 0A 5E 2A 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 0C 00 F6 03 01 00 01 F7 03 03 00 CA 87 03 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 01 00 00 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 24 67 03 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 99 48 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 37 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 FF 71 E2 68 C7 B1 16 1C A3 8F 0B 88 31 88 [00:17:27]CheckFolder [00:17:27]dirname=/storage/ofd_packets [00:17:27]CheckFolder done [00:17:27]ProducePacketName [00:17:27]name=ofd_packets/00074039 [00:17:27]NVStorageSaveData ofd_packets/00074039 [00:17:27]File name is /storage/ofd_packets/00074039 [00:17:27]Write 1439 bytes [00:17:27]NVStorageSaveData done [00:17:27]OFDSenderStorePacket done [00:17:27]KKMCreateOFDPacket done [00:17:27]NVStorageSaveData kkm_last_timestamp [00:17:27]File name is /storage/kkm_last_timestamp [00:17:27]Write 4 bytes [00:17:27]NVStorageSaveData done [00:17:27]ExternCall_PrintAddStr [00:17:27]wPrintStart [00:17:27]Write to MH i2c: 01 00 00 D8 61 39 [00:17:27]OFD Sender: Processing packet 74039 [packets to send 15, broken 14] [00:17:27]ProducePacketName [00:17:27]name=ofd_packets/00074039 [00:17:27]OFD Sender: To server: pG, [00:17:27]CommunicateWithHost lk.salyk.kg:30040 [00:17:27]ConnectInit lk.salyk.kg [00:17:27]Write i2c OK [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 [00:17:27]MH_I2C_Read... [00:17:27]Read from MH i2c: 01 07 00 D8 61 00 00 00 00 00 FF 0F 4E [00:17:28]RasterBufferAndPrint [00:17:28]line Отчет о закрытии смены [00:17:28]line ФФД: 1.0 [00:17:28]line ИНН: 02508201610067 [00:17:28]line Кассир: Ормонова Д. [00:17:28]line 21.10.2024 00:17 [00:17:28]line Смена: 170 [00:17:28]line РНМ: 0000000000161154 [00:17:28]line ЗНМ: 0300000020 [00:17:28]line СНО: Общий режим [00:17:28]line Чеков за смену: 364 [00:17:28]line ФД за смену: 366 [00:17:28]line Всего чеков: 364 [00:17:28]line ИТОГИ ПРИХОД [00:17:28]line Чеков: 361 [00:17:28]line Общий итог: 261407.42 [00:17:28]line Итого наличными: 233343.00 [00:17:28]line Итого безнал.: 28064.42 [00:17:28]line НДС 0% : 0.00 [00:17:28]line НДС 12% : 27765.86 [00:17:28]line НСП 0% : 0.00 [00:17:28]line НСП 1,50% : 0.00 [00:17:28]line НСП 0,50% : 0.00 [00:17:28]line НСП 5% : 0.00 [00:17:28]line НСП 3% : 0.00 [00:17:28]line НСП 2% : 0.00 [00:17:28]line НСП 1% : 2313.70 [00:17:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:17:28]line Чеков: 3 [00:17:28]line Общий итог: 21000.00 [00:17:28]line Итого наличными: 21000.00 [00:17:28]line Итого безнал.: 0.00 [00:17:28]line НДС 0% : 0.00 [00:17:28]line НДС 12% : 2230.12 [00:17:28]line НСП 0% : 0.00 [00:17:28]line НСП 1,50% : 0.00 [00:17:28]line НСП 0,50% : 0.00 [00:17:28]line НСП 5% : 0.00 [00:17:28]line НСП 3% : 0.00 [00:17:28]line НСП 2% : 0.00 [00:17:28]line НСП 1% : 185.85 [00:17:28]line ИТОГИ РАСХОД [00:17:28]line Чеков: 0 [00:17:28]line Общий итог: 0.00 [00:17:28]line Итого наличными: 0.00 [00:17:28]line Итого безнал.: 0.00 [00:17:28]line НДС 0% : 0.00 [00:17:28]line НДС 12% : 0.00 [00:17:28]line НСП 0% : 0.00 [00:17:28]line НСП 1,50% : 0.00 [00:17:28]line НСП 0,50% : 0.00 [00:17:28]line НСП 5% : 0.00 [00:17:28]line НСП 3% : 0.00 [00:17:28]line НСП 2% : 0.00 [00:17:28]line НСП 1% : 0.00 [00:17:28]line ИТОГИ ВОЗВРАТ РАСХОДА [00:17:28]line Чеков: 0 [00:17:28]line Общий итог: 0.00 [00:17:28]line Итого наличными: 0.00 [00:17:28]line Итого безнал.: 0.00 [00:17:28]line НДС 0% : 0.00 [00:17:28]line НДС 12% : 0.00 [00:17:28]line НСП 0% : 0.00 [00:17:28]line НСП 1,50% : 0.00 [00:17:28]line НСП 0,50% : 0.00 [00:17:28]line НСП 5% : 0.00 [00:17:28]line НСП 3% : 0.00 [00:17:28]line НСП 2% : 0.00 [00:17:28]line НСП 1% : 0.00 [00:17:28]line Сумма внесений: 0.00 [00:17:28]line Сумма выплат: 0.00 [00:17:28]line Нал. в кассе: 212343.00 [00:17:28]line НС Приход: 50333283.20 [00:17:28]line НС Возвр.Прихода: 699227.00 [00:17:28]line НС Расход: 0.00 [00:17:28]line НС Возвр.Расхода: 0.00 [00:17:28]line ФД: 74039 [00:17:28]line ФМ: 0000000000963323 [00:17:28]line ФПД: 280864594905009 [00:17:28]Connected sock=10 [00:17:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 81 05 00 00 9A 0A 79 05 74 01 5A 05 01 00 05 00 6D 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 15 00 D0 9E D1 80 D0 BC D0 BE D0 BD D0 BE D0 B2 D0 B0 20 D0 written 0, free lines is 4095 [00:17:28]94 2E 20 F4 03 04 00 8F 9D 15 67 0E 04 04 00 AA 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 AA 04 DF 04 6E 04 04 00 6C 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 00 04 82 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 0A 5E 2A 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 0C 00 F6 03 01 00 01 F7 03 03 00 CA 87 03 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 01 00 00 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 24 67 03 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 99 48 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 Write to MH i2c: 01 00 00 28 62 8A [00:17:29]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:17:29]00 MH_I2C_Read... [00:17:29]03 Read from MH i2c: F7 01 03 [00:17:29]00 MH_I2C_Read... [00:17:29]00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 Read from MH i2c: EF 01 03 07 09 00 00 [00:17:29]F6 MH_I2C_Read... [00:17:29]03 Read from MH i2c: 01 01 00 07 05 00 F7 28 03 62 00 00 00 00 EF 00 03 00 09 00 00 4F F6 0A 03 EA 01 [00:17:29]00 RasterBufferAndPrint [00:17:29]06 line [00:17:29]F7 line [00:17:29]03 line [00:17:29]00 line [00:17:29]00 line [00:17:29]D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 written 0, free lines is 2831 [00:17:29]00 70 04 00 00 72 04 00 00 00 04 75 00 EE MH_Cut [00:17:29]03 Write to MH i2c: 09 D1 00 01 F2 00 03 2F 01 62 00 01 00 63 F3 [00:17:29]03 00 00 EE 03 09 00 F2 03 01 00 Write i2c OK [00:17:29]01 MH_I2C_Read... [00:17:29]F3 Read from MH i2c: 03 D1 00 [00:17:29]00 MH_I2C_Read... [00:17:29]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 [00:17:29]03 MH_I2C_Read... [00:17:29]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 02 D1 F7 01 03 00 00 2F 00 62 EF 00 03 62 09 [00:17:29]00 Write to MH i2c: F6 01 03 00 01 00 00 30 03 62 F7 92 03 [00:17:29]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:17:29]01 MH_I2C_Read... [00:17:29]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 37 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 FF 71 E2 68 C7 B1 16 1C A3 8F 0B 88 31 88 [00:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C9 F1 47 00 CD 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 39 36 33 33 32 33 10 04 04 00 37 21 01 00 F4 03 04 00 7F 46 15 67 B6 04 01 00 00 A7 D8 00 18 BD B1 BC C7 [00:17:30]CommunicateWithHost err = 0 [00:17:30]CheckOFDResponse [00:17:30]1017 (14) - 77093643461234 [00:17:30]1041 (16) - 0000000000963323 [00:17:30]1040 (4) - 74039 [00:17:30]1012 (4) - 20.10.2024 18:05 [00:17:30]1206 (1) - 0 [00:17:30]OFD Sender: Remove packet 74039 [00:17:30]ProducePacketName [00:17:30]name=ofd_packets/00074039 [00:17:30]NVStorageDeleteData [00:17:30]*** Cut start [00:17:30]*** Partial cut [00:17:30]*** CUTSNS_PIN = 1 [00:17:30]*** CUTSNS_PIN = 0 [00:17:30]*** Brake cut motor [00:17:30]OFD Sender: No OFD packet to send [00:17:30]Read from MH i2c: 01 [00:17:31]MH_I2C_Read... [00:17:31]*** Stop cut motor [00:17:31]*** Cut end [00:17:31]Read from MH i2c: 01 07 00 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: 01 07 00 30 62 00 00 00 00 00 FF 0F A7 [00:17:31]process_action close_shift done [00:17:31]requested_data is exist [00:17:31]produce_requested_data [00:17:31]requested_item fd.num is exist - process it [00:17:31]SAM_PROTO_GetFieldsCounters [00:17:31]wFMCommunicate request_size=4 [00:17:31]MH_SAM_APDU [00:17:31]CAPDU: 80 13 00 00 [00:17:31]Write to MH i2c: E2 08 00 31 62 80 13 00 00 00 00 00 00 0F [00:17:31]Write i2c OK [00:17:31]MH_I2C_Read... [00:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:31]Read from MH i2c: E2 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: E2 62 00 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: E2 62 00 31 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [00:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:31]wFMCommunicate OK [00:17:31]SAM_PROTO_GetFieldsCounters done [00:17:31]requested_item shift.num is exist - process it [00:17:31]requested_item shift.opened is exist - process it [00:17:31]req_shift_opened [00:17:31]FM_GetShiftState [00:17:31]SAM_PROTO_GetShiftState [00:17:31]wFMCommunicate request_size=4 [00:17:31]MH_SAM_APDU [00:17:31]CAPDU: 80 13 01 00 [00:17:31]Write to MH i2c: E2 08 00 32 62 80 13 01 00 00 00 00 00 11 [00:17:31]Write i2c OK [00:17:31]MH_I2C_Read... [00:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:31]Read from MH i2c: E2 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: E2 0E 00 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: E2 0E 00 32 62 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1C [00:17:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:31]wFMCommunicate OK [00:17:31]SAM_PROTO_GetShiftState done [00:17:31]FM_GetShiftState done [00:17:31]req_shift_opened done [00:17:31]requested_item shift.open_date is exist - process it [00:17:31]req_shift_open_date [00:17:31]FM_GetShiftState [00:17:31]SAM_PROTO_GetShiftState [00:17:31]wFMCommunicate request_size=4 [00:17:31]MH_SAM_APDU [00:17:31]CAPDU: 80 13 01 00 [00:17:31]Write to MH i2c: E2 08 00 33 62 80 13 01 00 00 00 00 00 12 [00:17:31]Write i2c OK [00:17:31]MH_I2C_Read... [00:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:31]Read from MH i2c: E2 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: E2 0E 00 [00:17:31]MH_I2C_Read... [00:17:31]Read from MH i2c: E2 0E 00 33 62 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1D [00:17:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:31]wFMCommunicate OK [00:17:31]SAM_PROTO_GetShiftState done [00:17:31]FM_GetShiftState done [00:17:31]req_shift_open_date done [00:17:31]produce_requested_data done [00:17:31]produce_requested_data return {"fd.num":74039,"shift.num":170,"shift.opened":0,"shift.open_date":0} [00:17:31]process_action_free close_shift [00:17:31]json_value_free [00:17:31]json_value_free done [00:17:31]process_json_proto returns [00:17:31]Send response to host [00:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":74039,"shift.num":170,"shift.opened":0,"shift.open_date":0}}} [00:17:31]free response buf [00:17:31]execute_script done [00:17:31]execute_script returns [00:17:31]free content buf [00:17:31]Sock 8.Close socket [00:17:31]Sock 8.Thread stoped [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:32]accept exits with 9 [00:19:32]New connection [00:19:32]New thread 3067432292 created [00:19:32]Thread 3067575652 joined [00:19:32]Waiting for new connection... [00:19:32] Sock 9.Parse request [00:19:32]Sock 9.Check first char [00:19:32]Sock 9.First char is OK [00:19:32]request: POST /json_proto HTTP/1.0 [00:19:32]Method: POST [00:19:32]URL: /json_proto [00:19:32]Method is POST - this is cgi request [00:19:32]url: /json_proto [00:19:32]query_string will be loaded in cgi processing [00:19:32]execute_cgi json_proto POST (null) [00:19:32]execute_cgi path=json_proto method=POST [00:19:32]POST find Content-Length [00:19:32]Host: 172.17.44.196:8080 [00:19:32]Content-Length: 215 [00:19:32]Content-Type: application/json [00:19:32] [00:19:32]POST finish read [00:19:32]Found Content-Length = 215 [00:19:32]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:19:32]execute_script... [00:19:32]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:19:32]POST & json_proto [00:19:32]process_json_proto [00:19:32]json parsed OK: [00:19:32]protocol is kg_v1.0 [00:19:32]action value=get_value [00:19:32]process_action get_value [00:19:32]cmd_get_value [00:19:32]process_action get_value done [00:19:32]requested_data is exist [00:19:32]produce_requested_data [00:19:32]requested_item kkm.sn is exist - process it [00:19:32]requested_item kkm.ver is exist - process it [00:19:32]requested_item fm.sn is exist - process it [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 11 00 00 [00:19:32]Write to MH i2c: E2 08 00 34 62 80 11 00 00 00 00 00 00 10 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 17 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 17 00 34 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [00:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:19:32]wFMCommunicate OK [00:19:32]requested_item fd.num is exist - process it [00:19:32]SAM_PROTO_GetFieldsCounters [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 13 00 00 [00:19:32]Write to MH i2c: E2 08 00 35 62 80 13 00 00 00 00 00 00 13 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 62 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 62 00 35 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [00:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 21 01 00 0E 04 04 00 AA 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:33]wFMCommunicate OK [00:19:33]SAM_PROTO_GetFieldsCounters done [00:19:33]requested_item shift.num is exist - process it [00:19:33]requested_item shift.opened is exist - process it [00:19:33]req_shift_opened [00:19:33]FM_GetShiftState [00:19:33]SAM_PROTO_GetShiftState [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 13 01 00 [00:19:33]Write to MH i2c: E2 08 00 36 62 80 13 01 00 00 00 00 00 15 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 0E 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 0E 00 36 62 00 09 00 00 00 00 00 00 00 00 00 00 90 00 20 [00:19:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:33]wFMCommunicate OK [00:19:33]SAM_PROTO_GetShiftState done [00:19:33]FM_GetShiftState done [00:19:33]req_shift_opened done [00:19:33]requested_item shift.open_date is exist - process it [00:19:33]req_shift_open_date [00:19:33]FM_GetShiftState [00:19:33]SAM_PROTO_GetShiftState [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 13 01 00 [00:19:33]Write to MH i2c: E2 08 00 37 62 80 13 01 00 00 00 00 00 16 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 0E 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 0E 00 37 62 00 09 00 00 00 00 00 00 00 00 00 00 90 00 21 [00:19:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:33]wFMCommunicate OK [00:19:33]SAM_PROTO_GetShiftState done [00:19:33]FM_GetShiftState done [00:19:33]req_shift_open_date done [00:19:33]produce_requested_data done [00:19:33]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":74039,"shift.num":170,"shift.opened":0,"shift.open_date":0} [00:19:33]process_action_free get_value [00:19:33]json_value_free [00:19:33]json_value_free done [00:19:33]process_json_proto returns [00:19:33]Send response to host [00:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":74039,"shift.num":170,"shift.opened":0,"shift.open_date":0}}} [00:19:33]free response buf [00:19:33]execute_script done [00:19:33]execute_script returns [00:19:33]free content buf [00:19:33]Sock 9.Close socket [00:19:33]Sock 9.Thread stoped [00:19:33]accept exits with 8 [00:19:33]New connection [00:19:33]New thread 3067575652 created [00:19:33]Thread 3067432292 joined [00:19:33]Waiting for new connection... [00:19:33] Sock 8.Parse request [00:19:33]Sock 8.Check first char [00:19:33]Sock 8.First char is OK [00:19:33]request: POST /json_proto HTTP/1.0 [00:19:33]Method: POST [00:19:33]URL: /json_proto [00:19:33]Method is POST - this is cgi request [00:19:33]url: /json_proto [00:19:33]query_string will be loaded in cgi processing [00:19:33]execute_cgi json_proto POST (null) [00:19:33]execute_cgi path=json_proto method=POST [00:19:33]POST find Content-Length [00:19:33]Host: 172.17.44.196:8080 [00:19:33]Content-Length: 331 [00:19:33]Content-Type: application/json [00:19:33] [00:19:33]POST finish read [00:19:33]Found Content-Length = 331 [00:19: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:19:33]execute_script... [00:19:33]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:19:33]POST & json_proto [00:19:33]process_json_proto [00:19:33]json parsed OK: [00:19:33]protocol is kg_v1.0 [00:19:33]action value=get_value [00:19:33]process_action get_value [00:19:33]cmd_get_value [00:19:33]process_action get_value done [00:19:33]requested_data is exist [00:19:33]produce_requested_data [00:19:33]requested_item fm.sale.total is exist - process it [00:19:33]SAM_PROTO_GetFMData [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 13 03 00 [00:19:33]Write to MH i2c: E2 08 00 38 62 80 13 03 00 00 00 00 00 19 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 38 62 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 88 [00:19:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:19:33]wFMCommunicate OK [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 17 00 00 [00:19:33]Write to MH i2c: E2 08 00 39 62 80 17 00 00 00 00 00 00 1B [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 39 62 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 [00:19: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 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 3A 62 80 17 00 00 00 00 00 00 1C [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 3A 62 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 2E [00:19:34]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:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 3B 62 80 17 00 00 00 00 00 00 1D [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 3B 62 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 A9 [00:19:34]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:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 3C 62 80 17 00 00 00 00 00 00 1E [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 E2 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 E2 00 3C 62 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [00:19:34]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:19:34]wFMCommunicate OK [00:19:34]SAM_PROTO_GetFMData done [00:19:34]requested_item fm.sale_refund.total is exist - process it [00:19:34]requested_item fm.buy.total is exist - process it [00:19:34]requested_item shift.sale.total is exist - process it [00:19:34]SAM_PROTO_GetShiftData [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 13 02 00 [00:19:34]Write to MH i2c: E2 08 00 3D 62 80 13 02 00 00 00 00 00 1D [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 3D 62 00 BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 7E [00:19:35]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 6C 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 46 E0 8E 01 70 04 04 00 9C 0D 64 01 72 04 03 00 AA D2 2A 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 0A 5E 2A 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 CA 87 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 0B 20 70 04 03 00 20 0B 20 72 04 00 00 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 24 67 03 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 3E 62 80 17 00 00 00 00 00 00 20 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 3E 62 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:19:35]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 99 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 3F 62 80 17 00 00 00 00 00 00 21 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]OFD Sender: No OFD packet to send [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 3F 62 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:19:36]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 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 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 17 00 00 [00:19:36]Write to MH i2c: E2 08 00 40 62 80 17 00 00 00 00 00 00 22 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 40 62 00 03 00 00 EF 03 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 90 00 A3 [00:19:36]RAPDU: 03 00 00 EF 03 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 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 17 00 00 [00:19:36]Write to MH i2c: E2 08 00 41 62 80 17 00 00 00 00 00 00 23 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 D9 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 D9 00 41 62 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [00:19:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:36]wFMCommunicate OK [00:19:36]SAM_PROTO_GetShiftData done [00:19:36]requested_item shift.sale.total_cash is exist - process it [00:19:36]requested_item shift.sale_refund.total is exist - process it [00:19:36]requested_item shift.sale_refund.total_cash is exist - process it [00:19:36]requested_item shift.buy.total is exist - process it [00:19:36]requested_item shift.buy.total_cash is exist - process it [00:19:36]produce_requested_data done [00:19:36]produce_requested_data return {"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:36]process_action_free get_value [00:19:36]json_value_free [00:19:36]json_value_free done [00:19:36]process_json_proto returns [00:19:36]Send response to host [00:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"fm.buy.total":0.00,"shift.sale.total":261407.42,"shift.sale.total_cash":233343.00,"shift.sale_refund.total":21000.00,"shift.sale_refund.total_cash":21000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:36]free response buf [00:19:36]execute_script done [00:19:36]execute_script returns [00:19:36]free content buf [00:19:36]Sock 8.Close socket [00:19:36]Sock 8.Thread stoped [00:19:36]accept exits with 9 [00:19:36]New connection [00:19:36]New thread 3067432292 created [00:19:36]Thread 3067575652 joined [00:19:36]Waiting for new connection... [00:19:36] Sock 9.Parse request [00:19:36]Sock 9.Check first char [00:19:36]Sock 9.First char is OK [00:19:36]request: POST /json_proto HTTP/1.0 [00:19:36]Method: POST [00:19:36]URL: /json_proto [00:19:36]Method is POST - this is cgi request [00:19:36]url: /json_proto [00:19:36]query_string will be loaded in cgi processing [00:19:36]execute_cgi json_proto POST (null) [00:19:36]execute_cgi path=json_proto method=POST [00:19:36]POST find Content-Length [00:19:36]Host: 172.17.44.196:8080 [00:19:36]Content-Length: 277 [00:19:36]Content-Type: application/json [00:19:36] [00:19:36]POST finish read [00:19:36]Found Content-Length = 277 [00:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0441\u0443\u043D\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:36]execute_script... [00:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0441\u0443\u043D\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:36]POST & json_proto [00:19:36]process_json_proto [00:19:36]json parsed OK: [00:19:36]protocol is kg_v1.0 [00:19:36]action value=open_shift [00:19:36]process_action open_shift [00:19:36]cmd_open_shift [00:19:36]MH_GetDate [00:19:36]Write to MH i2c: F0 00 00 42 62 93 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: F0 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: F0 09 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: F0 09 00 42 62 00 1D 9E 15 67 E7 19 F8 65 30 [00:19:36]GetLastDocTimeStamp 1729469839 [00:19:36]current date 1729469981 [00:19:36]FM_GetShiftState [00:19:36]SAM_PROTO_GetShiftState [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 13 01 00 [00:19:36]Write to MH i2c: E2 08 00 43 62 80 13 01 00 00 00 00 00 22 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 0E 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 0E 00 43 62 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2D [00:19:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:36]wFMCommunicate OK [00:19:36]SAM_PROTO_GetShiftState done [00:19:36]FM_GetShiftState done [00:19:36]KKMCreateOpenShiftDocument [00:19:36]Load OK [00:19:36]Malloc new data [00:19:36]MH_GetDate [00:19:36]Write to MH i2c: F0 00 00 44 62 95 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: F0 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: F0 09 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: F0 09 00 44 62 00 1D 9E 15 67 E7 19 F8 65 32 [00:19:36]Malloc new data [00:19:36]KKMCreateOpenShiftDocument OK [00:19:36]KKMSetOpenShiftData OK [00:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=191 [00:19:36]tlvbuf is 0035D8C0 [00:19:36]KKMLoadAndSignOpenShiftData [00:19:36]SAM_PROTO_ProcessDocument [00:19:36]wFMCommunicate request_size=9 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 15 01 00 04 02 00 BF 00 [00:19:36]Write to MH i2c: E2 0C 00 45 62 80 15 01 00 04 00 02 00 BF 00 00 00 EF [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 45 62 00 90 00 1B [00:19:36]RAPDU: 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=23 [00:19:36]MH_SAM_APDU [00:19:36]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:19:36]Write to MH i2c: E2 1A 00 46 62 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 1D [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 46 62 00 90 00 1C [00:19:36]RAPDU: 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=36 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:19:36]Write to MH i2c: E2 27 00 47 62 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 7E [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 47 62 00 90 00 1D [00:19:36]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=73 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 15 02 00 44 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 37 32 2E 36 34 39 31 36 31 [00:19:37]Write to MH i2c: E2 4C 00 48 62 80 15 02 00 44 00 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 37 32 2E 36 34 39 31 36 31 00 00 BD [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 48 62 00 90 00 1E [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=51 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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:19:37]Write to MH i2c: E2 36 00 49 62 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 D4 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 49 62 00 90 00 1F [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=13 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 15 02 00 08 F4 03 04 00 1D 9E 15 67 [00:19:37]Write to MH i2c: E2 10 00 4A 62 80 15 02 00 08 00 F4 03 04 00 1D 9E 15 67 00 00 6E [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 4A 62 00 90 00 20 [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=25 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 [00:19:37]Write to MH i2c: E2 1C 00 4B 62 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 00 00 88 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 4B 62 00 90 00 21 [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 15 03 00 [00:19:37]Write to MH i2c: E2 08 00 4C 62 80 15 03 00 00 00 00 00 2F [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 38 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 38 00 4C 62 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 21 01 00 0E 04 04 00 AB 00 00 00 35 04 06 00 E1 21 BE A8 A3 A6 90 00 AB [00:19:37]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 21 01 00 0E 04 04 00 AB 00 00 00 35 04 06 00 E1 21 BE A8 A3 A6 90 00 [00:19:37]wFMCommunicate OK [00:19:37]SAM_PROTO_ProcessDocument answer len = 51 [00:19:37]SAM_PROTO_ProcessDocument done [00:19:37]SetTLVBufToDocument [00:19:37]Processing tag 1209 (04B9) [00:19:37]Malloc new data [00:19:37]Processing tag 1041 (0411) [00:19:37]Processing tag 1040 (0410) [00:19:37]Malloc new data [00:19:37]Processing tag 1038 (040E) [00:19:37]Malloc new data [00:19:37]Processing tag 1077 (0435) [00:19:37]Malloc new data [00:19:37]SetTLVBufToDocument err=0 [00:19:37]KKMLoadAndSignOpenShiftData store KKM data [00:19:37]KKMLoadAndSignOpenShiftData err=0 [00:19:37]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токтосунова А. Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 Место: АЗС № 133 "Партнер Нефть" 21.10.2024 00:19 Смена: 171 РНМ: 0000000000161154 ЗНМ: 0300000020 ФД: 74040 ФМ: 0000000000963323 ФПД: 247535048893350 [00:19:37]StoreToDocumentArchive [00:19:37]shift 171 fd 74040 [00:19:37]Create dir for shift 0171 [00:19:37]save to /storage/0171/doc_00074040 [00:19:37]save last doc name /storage/0171/doc_00074040 to /storage/kkm_last_doc_name [00:19:37]save OK [00:19:37]Clear old archive folders... [00:19:37]Remove dir /storage/0170 [00:19:37]opendir ok [00:19:37]file . [00:19:37]file .. [00:19:37]file doc_00073674 [00:19:37]remove file /storage/0170/doc_00073674 [00:19:37]file doc_00073675 [00:19:37]remove file /storage/0170/doc_00073675 [00:19:37]file doc_00073676 [00:19:37]remove file /storage/0170/doc_00073676 [00:19:37]file doc_00073677 [00:19:37]remove file /storage/0170/doc_00073677 [00:19:37]file doc_00073678 [00:19:37]remove file /storage/0170/doc_00073678 [00:19:37]file doc_00073679 [00:19:37]remove file /storage/0170/doc_00073679 [00:19:37]file doc_00073680 [00:19:37]remove file /storage/0170/doc_00073680 [00:19:37]file doc_00073681 [00:19:37]remove file /storage/0170/doc_00073681 [00:19:37]file doc_00073682 [00:19:37]remove file /storage/0170/doc_00073682 [00:19:37]file doc_00073683 [00:19:37]remove file /storage/0170/doc_00073683 [00:19:37]file doc_00073684 [00:19:37]remove file /storage/0170/doc_00073684 [00:19:37]file doc_00073685 [00:19:37]remove file /storage/0170/doc_00073685 [00:19:37]file doc_00073686 [00:19:37]remove file /storage/0170/doc_00073686 [00:19:37]file doc_00073687 [00:19:37]remove file /storage/0170/doc_00073687 [00:19:37]file doc_00073688 [00:19:37]remove file /storage/0170/doc_00073688 [00:19:37]file doc_00073689 [00:19:37]remove file /storage/0170/doc_00073689 [00:19:37]file doc_00073690 [00:19:37]remove file /storage/0170/doc_00073690 [00:19:37]file doc_00073691 [00:19:37]remove file /storage/0170/doc_00073691 [00:19:37]file doc_00073692 [00:19:37]remove file /storage/0170/doc_00073692 [00:19:37]file doc_00073693 [00:19:37]remove file /storage/0170/doc_00073693 [00:19:37]file doc_00073694 [00:19:37]remove file /storage/0170/doc_00073694 [00:19:37]file doc_00073695 [00:19:37]remove file /storage/0170/doc_00073695 [00:19:37]file doc_00073696 [00:19:37]remove file /storage/0170/doc_00073696 [00:19:37]file doc_00073697 [00:19:37]remove file /storage/0170/doc_00073697 [00:19:37]file doc_00073698 [00:19:37]remove file /storage/0170/doc_00073698 [00:19:37]file doc_00073699 [00:19:37]remove file /storage/0170/doc_00073699 [00:19:37]file doc_00073700 [00:19:37]remove file /storage/0170/doc_00073700 [00:19:37]file doc_00073701 [00:19:37]remove file /storage/0170/doc_00073701 [00:19:37]file doc_00073702 [00:19:37]remove file /storage/0170/doc_00073702 [00:19:37]file doc_00073703 [00:19:37]remove file /storage/0170/doc_00073703 [00:19:37]file doc_00073704 [00:19:37]remove file /storage/0170/doc_00073704 [00:19:37]file doc_00073705 [00:19:37]remove file /storage/0170/doc_00073705 [00:19:37]file doc_00073706 [00:19:37]remove file /storage/0170/doc_00073706 [00:19:37]file doc_00073707 [00:19:37]remove file /storage/0170/doc_00073707 [00:19:37]file doc_00073708 [00:19:37]remove file /storage/0170/doc_00073708 [00:19:37]file doc_00073709 [00:19:37]remove file /storage/0170/doc_00073709 [00:19:37]file doc_00073710 [00:19:37]remove file /storage/0170/doc_00073710 [00:19:37]file doc_00073711 [00:19:37]remove file /storage/0170/doc_00073711 [00:19:37]file doc_00073712 [00:19:37]remove file /storage/0170/doc_00073712 [00:19:37]file doc_00073713 [00:19:37]remove file /storage/0170/doc_00073713 [00:19:37]file doc_00073714 [00:19:37]remove file /storage/0170/doc_00073714 [00:19:37]file doc_00073715 [00:19:37]remove file /storage/0170/doc_00073715 [00:19:37]file doc_00073716 [00:19:37]remove file /storage/0170/doc_00073716 [00:19:37]file doc_00073717 [00:19:37]remove file /storage/0170/doc_00073717 [00:19:37]file doc_00073718 [00:19:37]remove file /storage/0170/doc_00073718 [00:19:37]file doc_00073719 [00:19:37]remove file /storage/0170/doc_00073719 [00:19:37]file doc_00073720 [00:19:37]remove file /storage/0170/doc_00073720 [00:19:37]file doc_00073721 [00:19:37]remove file /storage/0170/doc_00073721 [00:19:37]file doc_00073722 [00:19:37]remove file /storage/0170/doc_00073722 [00:19:37]file doc_00073723 [00:19:37]remove file /storage/0170/doc_00073723 [00:19:37]file doc_00073724 [00:19:37]remove file /storage/0170/doc_00073724 [00:19:37]file doc_00073725 [00:19:38]remove file /storage/0170/doc_00073725 [00:19:38]file doc_00073726 [00:19:38]remove file /storage/0170/doc_00073726 [00:19:38]file doc_00073727 [00:19:38]remove file /storage/0170/doc_00073727 [00:19:38]file doc_00073728 [00:19:38]remove file /storage/0170/doc_00073728 [00:19:38]file doc_00073729 [00:19:38]remove file /storage/0170/doc_00073729 [00:19:38]file doc_00073730 [00:19:38]remove file /storage/0170/doc_00073730 [00:19:38]file doc_00073731 [00:19:38]remove file /storage/0170/doc_00073731 [00:19:38]file doc_00073732 [00:19:38]remove file /storage/0170/doc_00073732 [00:19:38]file doc_00073733 [00:19:38]remove file /storage/0170/doc_00073733 [00:19:38]file doc_00073734 [00:19:38]remove file /storage/0170/doc_00073734 [00:19:38]file doc_00073735 [00:19:38]remove file /storage/0170/doc_00073735 [00:19:38]file doc_00073736 [00:19:38]remove file /storage/0170/doc_00073736 [00:19:38]file doc_00073737 [00:19:38]remove file /storage/0170/doc_00073737 [00:19:38]file doc_00073738 [00:19:38]remove file /storage/0170/doc_00073738 [00:19:38]file doc_00073739 [00:19:38]remove file /storage/0170/doc_00073739 [00:19:38]file doc_00073740 [00:19:38]remove file /storage/0170/doc_00073740 [00:19:38]file doc_00073741 [00:19:38]remove file /storage/0170/doc_00073741 [00:19:38]file doc_00073742 [00:19:38]remove file /storage/0170/doc_00073742 [00:19:38]file doc_00073743 [00:19:38]remove file /storage/0170/doc_00073743 [00:19:38]file doc_00073744 [00:19:38]remove file /storage/0170/doc_00073744 [00:19:38]file doc_00073745 [00:19:38]remove file /storage/0170/doc_00073745 [00:19:38]file doc_00073746 [00:19:38]remove file /storage/0170/doc_00073746 [00:19:38]file doc_00073747 [00:19:38]remove file /storage/0170/doc_00073747 [00:19:38]file doc_00073748 [00:19:38]remove file /storage/0170/doc_00073748 [00:19:38]file doc_00073749 [00:19:38]remove file /storage/0170/doc_00073749 [00:19:38]file doc_00073750 [00:19:38]remove file /storage/0170/doc_00073750 [00:19:38]file doc_00073751 [00:19:38]remove file /storage/0170/doc_00073751 [00:19:38]file doc_00073752 [00:19:38]remove file /storage/0170/doc_00073752 [00:19:38]file doc_00073753 [00:19:38]remove file /storage/0170/doc_00073753 [00:19:38]file doc_00073754 [00:19:38]remove file /storage/0170/doc_00073754 [00:19:38]file doc_00073755 [00:19:38]remove file /storage/0170/doc_00073755 [00:19:38]file doc_00073756 [00:19:38]remove file /storage/0170/doc_00073756 [00:19:38]file doc_00073757 [00:19:38]remove file /storage/0170/doc_00073757 [00:19:38]file doc_00073758 [00:19:38]remove file /storage/0170/doc_00073758 [00:19:38]file doc_00073759 [00:19:38]remove file /storage/0170/doc_00073759 [00:19:38]file doc_00073760 [00:19:38]remove file /storage/0170/doc_00073760 [00:19:38]file doc_00073761 [00:19:38]remove file /storage/0170/doc_00073761 [00:19:38]file doc_00073762 [00:19:38]remove file /storage/0170/doc_00073762 [00:19:38]file doc_00073763 [00:19:38]remove file /storage/0170/doc_00073763 [00:19:38]file doc_00073764 [00:19:38]remove file /storage/0170/doc_00073764 [00:19:38]file doc_00073765 [00:19:38]remove file /storage/0170/doc_00073765 [00:19:38]file doc_00073766 [00:19:38]remove file /storage/0170/doc_00073766 [00:19:38]file doc_00073767 [00:19:38]remove file /storage/0170/doc_00073767 [00:19:38]file doc_00073768 [00:19:38]remove file /storage/0170/doc_00073768 [00:19:38]file doc_00073769 [00:19:38]remove file /storage/0170/doc_00073769 [00:19:38]file doc_00073770 [00:19:38]remove file /storage/0170/doc_00073770 [00:19:38]file doc_00073771 [00:19:38]remove file /storage/0170/doc_00073771 [00:19:38]file doc_00073772 [00:19:38]remove file /storage/0170/doc_00073772 [00:19:38]file doc_00073773 [00:19:38]remove file /storage/0170/doc_00073773 [00:19:38]file doc_00073774 [00:19:38]remove file /storage/0170/doc_00073774 [00:19:38]file doc_00073775 [00:19:38]remove file /storage/0170/doc_00073775 [00:19:38]file doc_00073776 [00:19:38]remove file /storage/0170/doc_00073776 [00:19:38]file doc_00073777 [00:19:38]remove file /storage/0170/doc_00073777 [00:19:38]file doc_00073778 [00:19:38]remove file /storage/0170/doc_00073778 [00:19:38]file doc_00073779 [00:19:38]remove file /storage/0170/doc_00073779 [00:19:38]file doc_00073780 [00:19:38]remove file /storage/0170/doc_00073780 [00:19:38]file doc_00073781 [00:19:38]remove file /storage/0170/doc_00073781 [00:19:38]file doc_00073782 [00:19:38]remove file /storage/0170/doc_00073782 [00:19:38]file doc_00073783 [00:19:38]remove file /storage/0170/doc_00073783 [00:19:38]file doc_00073784 [00:19:38]remove file /storage/0170/doc_00073784 [00:19:38]file doc_00073785 [00:19:38]remove file /storage/0170/doc_00073785 [00:19:38]file doc_00073786 [00:19:38]remove file /storage/0170/doc_00073786 [00:19:38]file doc_00073787 [00:19:38]remove file /storage/0170/doc_00073787 [00:19:38]file doc_00073788 [00:19:38]remove file /storage/0170/doc_00073788 [00:19:38]file doc_00073789 [00:19:38]remove file /storage/0170/doc_00073789 [00:19:38]file doc_00073790 [00:19:38]remove file /storage/0170/doc_00073790 [00:19:38]file doc_00073791 [00:19:38]remove file /storage/0170/doc_00073791 [00:19:38]file doc_00073792 [00:19:38]remove file /storage/0170/doc_00073792 [00:19:38]file doc_00073793 [00:19:38]remove file /storage/0170/doc_00073793 [00:19:38]file doc_00073794 [00:19:38]remove file /storage/0170/doc_00073794 [00:19:38]file doc_00073795 [00:19:38]remove file /storage/0170/doc_00073795 [00:19:38]file doc_00073796 [00:19:38]remove file /storage/0170/doc_00073796 [00:19:38]file doc_00073797 [00:19:38]remove file /storage/0170/doc_00073797 [00:19:38]file doc_00073798 [00:19:38]remove file /storage/0170/doc_00073798 [00:19:38]file doc_00073799 [00:19:38]remove file /storage/0170/doc_00073799 [00:19:38]file doc_00073800 [00:19:38]remove file /storage/0170/doc_00073800 [00:19:38]file doc_00073801 [00:19:38]remove file /storage/0170/doc_00073801 [00:19:38]file doc_00073802 [00:19:38]remove file /storage/0170/doc_00073802 [00:19:38]file doc_00073803 [00:19:38]remove file /storage/0170/doc_00073803 [00:19:38]file doc_00073804 [00:19:38]remove file /storage/0170/doc_00073804 [00:19:38]file doc_00073805 [00:19:38]remove file /storage/0170/doc_00073805 [00:19:38]file doc_00073806 [00:19:38]remove file /storage/0170/doc_00073806 [00:19:38]file doc_00073807 [00:19:38]remove file /storage/0170/doc_00073807 [00:19:38]file doc_00073808 [00:19:38]remove file /storage/0170/doc_00073808 [00:19:38]file doc_00073809 [00:19:38]remove file /storage/0170/doc_00073809 [00:19:38]file doc_00073810 [00:19:38]remove file /storage/0170/doc_00073810 [00:19:38]file doc_00073811 [00:19:38]remove file /storage/0170/doc_00073811 [00:19:38]file doc_00073812 [00:19:38]remove file /storage/0170/doc_00073812 [00:19:38]file doc_00073813 [00:19:38]remove file /storage/0170/doc_00073813 [00:19:38]file doc_00073814 [00:19:38]remove file /storage/0170/doc_00073814 [00:19:38]file doc_00073815 [00:19:38]remove file /storage/0170/doc_00073815 [00:19:38]file doc_00073816 [00:19:38]remove file /storage/0170/doc_00073816 [00:19:38]file doc_00073817 [00:19:38]remove file /storage/0170/doc_00073817 [00:19:38]file doc_00073818 [00:19:38]remove file /storage/0170/doc_00073818 [00:19:38]file doc_00073819 [00:19:38]remove file /storage/0170/doc_00073819 [00:19:38]file doc_00073820 [00:19:38]remove file /storage/0170/doc_00073820 [00:19:38]file doc_00073821 [00:19:38]remove file /storage/0170/doc_00073821 [00:19:38]file doc_00073822 [00:19:38]remove file /storage/0170/doc_00073822 [00:19:38]file doc_00073823 [00:19:38]remove file /storage/0170/doc_00073823 [00:19:38]file doc_00073824 [00:19:38]remove file /storage/0170/doc_00073824 [00:19:38]file doc_00073825 [00:19:38]remove file /storage/0170/doc_00073825 [00:19:38]file doc_00073826 [00:19:38]remove file /storage/0170/doc_00073826 [00:19:38]file doc_00073827 [00:19:38]remove file /storage/0170/doc_00073827 [00:19:38]file doc_00073828 [00:19:38]remove file /storage/0170/doc_00073828 [00:19:38]file doc_00073829 [00:19:38]remove file /storage/0170/doc_00073829 [00:19:38]file doc_00073830 [00:19:38]remove file /storage/0170/doc_00073830 [00:19:38]file doc_00073831 [00:19:38]remove file /storage/0170/doc_00073831 [00:19:38]file doc_00073832 [00:19:38]remove file /storage/0170/doc_00073832 [00:19:38]file doc_00073833 [00:19:38]remove file /storage/0170/doc_00073833 [00:19:38]file doc_00073834 [00:19:38]remove file /storage/0170/doc_00073834 [00:19:38]file doc_00073835 [00:19:38]remove file /storage/0170/doc_00073835 [00:19:38]file doc_00073836 [00:19:38]remove file /storage/0170/doc_00073836 [00:19:38]file doc_00073837 [00:19:38]remove file /storage/0170/doc_00073837 [00:19:38]file doc_00073838 [00:19:38]remove file /storage/0170/doc_00073838 [00:19:38]file doc_00073839 [00:19:38]remove file /storage/0170/doc_00073839 [00:19:38]file doc_00073840 [00:19:38]remove file /storage/0170/doc_00073840 [00:19:38]file doc_00073841 [00:19:38]remove file /storage/0170/doc_00073841 [00:19:38]file doc_00073842 [00:19:38]remove file /storage/0170/doc_00073842 [00:19:38]file doc_00073843 [00:19:38]remove file /storage/0170/doc_00073843 [00:19:38]file doc_00073844 [00:19:38]remove file /storage/0170/doc_00073844 [00:19:38]file doc_00073845 [00:19:38]remove file /storage/0170/doc_00073845 [00:19:38]file doc_00073846 [00:19:38]remove file /storage/0170/doc_00073846 [00:19:38]file doc_00073847 [00:19:38]remove file /storage/0170/doc_00073847 [00:19:38]file doc_00073848 [00:19:38]remove file /storage/0170/doc_00073848 [00:19:38]file doc_00073849 [00:19:38]remove file /storage/0170/doc_00073849 [00:19:38]file doc_00073850 [00:19:38]remove file /storage/0170/doc_00073850 [00:19:38]file doc_00073851 [00:19:38]remove file /storage/0170/doc_00073851 [00:19:38]file doc_00073852 [00:19:38]remove file /storage/0170/doc_00073852 [00:19:38]file doc_00073853 [00:19:38]remove file /storage/0170/doc_00073853 [00:19:38]file doc_00073854 [00:19:38]remove file /storage/0170/doc_00073854 [00:19:38]file doc_00073855 [00:19:38]remove file /storage/0170/doc_00073855 [00:19:38]file doc_00073856 [00:19:38]remove file /storage/0170/doc_00073856 [00:19:38]file doc_00073857 [00:19:38]remove file /storage/0170/doc_00073857 [00:19:38]file doc_00073858 [00:19:38]remove file /storage/0170/doc_00073858 [00:19:38]file doc_00073859 [00:19:38]remove file /storage/0170/doc_00073859 [00:19:38]file doc_00073860 [00:19:38]remove file /storage/0170/doc_00073860 [00:19:38]file doc_00073861 [00:19:38]remove file /storage/0170/doc_00073861 [00:19:38]file doc_00073862 [00:19:38]remove file /storage/0170/doc_00073862 [00:19:38]file doc_00073863 [00:19:38]remove file /storage/0170/doc_00073863 [00:19:38]file doc_00073864 [00:19:38]remove file /storage/0170/doc_00073864 [00:19:38]file doc_00073865 [00:19:38]remove file /storage/0170/doc_00073865 [00:19:38]file doc_00073866 [00:19:38]remove file /storage/0170/doc_00073866 [00:19:38]file doc_00073867 [00:19:38]remove file /storage/0170/doc_00073867 [00:19:38]file doc_00073868 [00:19:38]remove file /storage/0170/doc_00073868 [00:19:38]file doc_00073869 [00:19:38]remove file /storage/0170/doc_00073869 [00:19:38]file doc_00073870 [00:19:38]remove file /storage/0170/doc_00073870 [00:19:38]file doc_00073871 [00:19:38]remove file /storage/0170/doc_00073871 [00:19:38]file doc_00073872 [00:19:38]remove file /storage/0170/doc_00073872 [00:19:38]file doc_00073873 [00:19:38]remove file /storage/0170/doc_00073873 [00:19:38]file doc_00073874 [00:19:38]remove file /storage/0170/doc_00073874 [00:19:38]file doc_00073875 [00:19:38]remove file /storage/0170/doc_00073875 [00:19:38]file doc_00073876 [00:19:38]remove file /storage/0170/doc_00073876 [00:19:38]file doc_00073877 [00:19:38]remove file /storage/0170/doc_00073877 [00:19:38]file doc_00073878 [00:19:38]remove file /storage/0170/doc_00073878 [00:19:38]file doc_00073879 [00:19:38]remove file /storage/0170/doc_00073879 [00:19:38]file doc_00073880 [00:19:38]remove file /storage/0170/doc_00073880 [00:19:38]file doc_00073881 [00:19:38]remove file /storage/0170/doc_00073881 [00:19:38]file doc_00073882 [00:19:38]remove file /storage/0170/doc_00073882 [00:19:38]file doc_00073883 [00:19:38]remove file /storage/0170/doc_00073883 [00:19:38]file doc_00073884 [00:19:38]remove file /storage/0170/doc_00073884 [00:19:38]file doc_00073885 [00:19:38]remove file /storage/0170/doc_00073885 [00:19:38]file doc_00073886 [00:19:38]remove file /storage/0170/doc_00073886 [00:19:38]file doc_00073887 [00:19:38]remove file /storage/0170/doc_00073887 [00:19:38]file doc_00073888 [00:19:38]remove file /storage/0170/doc_00073888 [00:19:38]file doc_00073889 [00:19:38]remove file /storage/0170/doc_00073889 [00:19:38]file doc_00073890 [00:19:38]remove file /storage/0170/doc_00073890 [00:19:38]file doc_00073891 [00:19:38]remove file /storage/0170/doc_00073891 [00:19:38]file doc_00073892 [00:19:38]remove file /storage/0170/doc_00073892 [00:19:38]file doc_00073893 [00:19:38]remove file /storage/0170/doc_00073893 [00:19:38]file doc_00073894 [00:19:38]remove file /storage/0170/doc_00073894 [00:19:38]file doc_00073895 [00:19:38]remove file /storage/0170/doc_00073895 [00:19:38]file doc_00073896 [00:19:38]remove file /storage/0170/doc_00073896 [00:19:38]file doc_00073897 [00:19:38]remove file /storage/0170/doc_00073897 [00:19:38]file doc_00073898 [00:19:38]remove file /storage/0170/doc_00073898 [00:19:38]file doc_00073899 [00:19:38]remove file /storage/0170/doc_00073899 [00:19:39]file doc_00073900 [00:19:39]remove file /storage/0170/doc_00073900 [00:19:39]file doc_00073901 [00:19:39]remove file /storage/0170/doc_00073901 [00:19:39]file doc_00073902 [00:19:39]remove file /storage/0170/doc_00073902 [00:19:39]file doc_00073903 [00:19:39]remove file /storage/0170/doc_00073903 [00:19:39]file doc_00073904 [00:19:39]remove file /storage/0170/doc_00073904 [00:19:39]file doc_00073905 [00:19:39]remove file /storage/0170/doc_00073905 [00:19:39]file doc_00073906 [00:19:39]remove file /storage/0170/doc_00073906 [00:19:39]file doc_00073907 [00:19:39]remove file /storage/0170/doc_00073907 [00:19:39]file doc_00073908 [00:19:39]remove file /storage/0170/doc_00073908 [00:19:39]file doc_00073909 [00:19:39]remove file /storage/0170/doc_00073909 [00:19:39]file doc_00073910 [00:19:39]remove file /storage/0170/doc_00073910 [00:19:39]file doc_00073911 [00:19:39]remove file /storage/0170/doc_00073911 [00:19:39]file doc_00073912 [00:19:39]remove file /storage/0170/doc_00073912 [00:19:39]file doc_00073913 [00:19:39]remove file /storage/0170/doc_00073913 [00:19:39]file doc_00073914 [00:19:39]remove file /storage/0170/doc_00073914 [00:19:39]file doc_00073915 [00:19:39]remove file /storage/0170/doc_00073915 [00:19:39]file doc_00073916 [00:19:39]remove file /storage/0170/doc_00073916 [00:19:39]file doc_00073917 [00:19:39]remove file /storage/0170/doc_00073917 [00:19:39]file doc_00073918 [00:19:39]remove file /storage/0170/doc_00073918 [00:19:39]file doc_00073919 [00:19:39]remove file /storage/0170/doc_00073919 [00:19:39]file doc_00073920 [00:19:39]remove file /storage/0170/doc_00073920 [00:19:39]file doc_00073921 [00:19:39]remove file /storage/0170/doc_00073921 [00:19:39]file doc_00073922 [00:19:39]remove file /storage/0170/doc_00073922 [00:19:39]file doc_00073923 [00:19:39]remove file /storage/0170/doc_00073923 [00:19:39]file doc_00073924 [00:19:39]remove file /storage/0170/doc_00073924 [00:19:39]file doc_00073925 [00:19:39]remove file /storage/0170/doc_00073925 [00:19:39]file doc_00073926 [00:19:39]remove file /storage/0170/doc_00073926 [00:19:39]file doc_00073927 [00:19:39]remove file /storage/0170/doc_00073927 [00:19:39]file doc_00073928 [00:19:39]remove file /storage/0170/doc_00073928 [00:19:39]file doc_00073929 [00:19:39]remove file /storage/0170/doc_00073929 [00:19:39]file doc_00073930 [00:19:39]remove file /storage/0170/doc_00073930 [00:19:39]file doc_00073931 [00:19:39]remove file /storage/0170/doc_00073931 [00:19:39]file doc_00073932 [00:19:39]remove file /storage/0170/doc_00073932 [00:19:39]file doc_00073933 [00:19:39]remove file /storage/0170/doc_00073933 [00:19:39]file doc_00073934 [00:19:39]remove file /storage/0170/doc_00073934 [00:19:39]file doc_00073935 [00:19:39]remove file /storage/0170/doc_00073935 [00:19:39]file doc_00073936 [00:19:39]remove file /storage/0170/doc_00073936 [00:19:39]file doc_00073937 [00:19:39]remove file /storage/0170/doc_00073937 [00:19:39]file doc_00073938 [00:19:39]remove file /storage/0170/doc_00073938 [00:19:39]file doc_00073939 [00:19:39]remove file /storage/0170/doc_00073939 [00:19:39]file doc_00073940 [00:19:39]remove file /storage/0170/doc_00073940 [00:19:39]file doc_00073941 [00:19:39]remove file /storage/0170/doc_00073941 [00:19:39]file doc_00073942 [00:19:39]remove file /storage/0170/doc_00073942 [00:19:39]file doc_00073943 [00:19:39]remove file /storage/0170/doc_00073943 [00:19:39]file doc_00073944 [00:19:39]remove file /storage/0170/doc_00073944 [00:19:39]file doc_00073945 [00:19:39]remove file /storage/0170/doc_00073945 [00:19:39]file doc_00073946 [00:19:39]remove file /storage/0170/doc_00073946 [00:19:39]file doc_00073947 [00:19:39]remove file /storage/0170/doc_00073947 [00:19:39]file doc_00073948 [00:19:39]remove file /storage/0170/doc_00073948 [00:19:39]file doc_00073949 [00:19:39]remove file /storage/0170/doc_00073949 [00:19:39]file doc_00073950 [00:19:39]remove file /storage/0170/doc_00073950 [00:19:39]file doc_00073951 [00:19:39]remove file /storage/0170/doc_00073951 [00:19:39]file doc_00073952 [00:19:39]remove file /storage/0170/doc_00073952 [00:19:39]file doc_00073953 [00:19:39]remove file /storage/0170/doc_00073953 [00:19:39]file doc_00073954 [00:19:39]remove file /storage/0170/doc_00073954 [00:19:39]file doc_00073955 [00:19:39]remove file /storage/0170/doc_00073955 [00:19:39]file doc_00073956 [00:19:39]remove file /storage/0170/doc_00073956 [00:19:39]file doc_00073957 [00:19:39]remove file /storage/0170/doc_00073957 [00:19:39]file doc_00073958 [00:19:39]remove file /storage/0170/doc_00073958 [00:19:39]file doc_00073959 [00:19:39]remove file /storage/0170/doc_00073959 [00:19:39]file doc_00073960 [00:19:39]remove file /storage/0170/doc_00073960 [00:19:39]file doc_00073961 [00:19:39]remove file /storage/0170/doc_00073961 [00:19:39]file doc_00073962 [00:19:39]remove file /storage/0170/doc_00073962 [00:19:39]file doc_00073963 [00:19:39]remove file /storage/0170/doc_00073963 [00:19:39]file doc_00073964 [00:19:39]remove file /storage/0170/doc_00073964 [00:19:39]file doc_00073965 [00:19:39]remove file /storage/0170/doc_00073965 [00:19:39]file doc_00073966 [00:19:39]remove file /storage/0170/doc_00073966 [00:19:39]file doc_00073967 [00:19:39]remove file /storage/0170/doc_00073967 [00:19:39]file doc_00073968 [00:19:39]remove file /storage/0170/doc_00073968 [00:19:39]file doc_00073969 [00:19:39]remove file /storage/0170/doc_00073969 [00:19:39]file doc_00073970 [00:19:39]remove file /storage/0170/doc_00073970 [00:19:39]file doc_00073971 [00:19:39]remove file /storage/0170/doc_00073971 [00:19:39]file doc_00073972 [00:19:39]remove file /storage/0170/doc_00073972 [00:19:39]file doc_00073973 [00:19:39]remove file /storage/0170/doc_00073973 [00:19:39]file doc_00073974 [00:19:39]remove file /storage/0170/doc_00073974 [00:19:39]file doc_00073975 [00:19:39]remove file /storage/0170/doc_00073975 [00:19:39]file doc_00073976 [00:19:39]remove file /storage/0170/doc_00073976 [00:19:39]file doc_00073977 [00:19:39]remove file /storage/0170/doc_00073977 [00:19:39]file doc_00073978 [00:19:39]remove file /storage/0170/doc_00073978 [00:19:39]file doc_00073979 [00:19:39]remove file /storage/0170/doc_00073979 [00:19:39]file doc_00073980 [00:19:39]remove file /storage/0170/doc_00073980 [00:19:39]file doc_00073981 [00:19:39]remove file /storage/0170/doc_00073981 [00:19:39]file doc_00073982 [00:19:39]remove file /storage/0170/doc_00073982 [00:19:39]file doc_00073983 [00:19:39]remove file /storage/0170/doc_00073983 [00:19:39]file doc_00073984 [00:19:39]remove file /storage/0170/doc_00073984 [00:19:39]file doc_00073985 [00:19:39]remove file /storage/0170/doc_00073985 [00:19:39]file doc_00073986 [00:19:39]remove file /storage/0170/doc_00073986 [00:19:39]file doc_00073987 [00:19:39]remove file /storage/0170/doc_00073987 [00:19:39]file doc_00073988 [00:19:39]remove file /storage/0170/doc_00073988 [00:19:39]file doc_00073989 [00:19:39]remove file /storage/0170/doc_00073989 [00:19:39]file doc_00073990 [00:19:39]remove file /storage/0170/doc_00073990 [00:19:39]file doc_00073991 [00:19:39]remove file /storage/0170/doc_00073991 [00:19:39]file doc_00073992 [00:19:39]remove file /storage/0170/doc_00073992 [00:19:39]file doc_00073993 [00:19:39]remove file /storage/0170/doc_00073993 [00:19:39]file doc_00073994 [00:19:39]remove file /storage/0170/doc_00073994 [00:19:39]file doc_00073995 [00:19:39]remove file /storage/0170/doc_00073995 [00:19:39]file doc_00073996 [00:19:39]remove file /storage/0170/doc_00073996 [00:19:39]file doc_00073997 [00:19:39]remove file /storage/0170/doc_00073997 [00:19:39]file doc_00073998 [00:19:39]remove file /storage/0170/doc_00073998 [00:19:39]file doc_00073999 [00:19:39]remove file /storage/0170/doc_00073999 [00:19:39]file doc_00074000 [00:19:39]remove file /storage/0170/doc_00074000 [00:19:39]file doc_00074001 [00:19:39]remove file /storage/0170/doc_00074001 [00:19:39]file doc_00074002 [00:19:39]remove file /storage/0170/doc_00074002 [00:19:39]file doc_00074003 [00:19:39]remove file /storage/0170/doc_00074003 [00:19:39]file doc_00074004 [00:19:39]remove file /storage/0170/doc_00074004 [00:19:39]file doc_00074005 [00:19:39]remove file /storage/0170/doc_00074005 [00:19:39]file doc_00074006 [00:19:39]remove file /storage/0170/doc_00074006 [00:19:39]file doc_00074007 [00:19:39]remove file /storage/0170/doc_00074007 [00:19:39]file doc_00074008 [00:19:39]remove file /storage/0170/doc_00074008 [00:19:39]file doc_00074009 [00:19:39]remove file /storage/0170/doc_00074009 [00:19:39]file doc_00074010 [00:19:39]remove file /storage/0170/doc_00074010 [00:19:39]file doc_00074011 [00:19:39]remove file /storage/0170/doc_00074011 [00:19:39]file doc_00074012 [00:19:39]remove file /storage/0170/doc_00074012 [00:19:39]file doc_00074013 [00:19:39]remove file /storage/0170/doc_00074013 [00:19:39]file doc_00074014 [00:19:39]remove file /storage/0170/doc_00074014 [00:19:39]file doc_00074015 [00:19:39]remove file /storage/0170/doc_00074015 [00:19:39]file doc_00074016 [00:19:39]remove file /storage/0170/doc_00074016 [00:19:39]file doc_00074017 [00:19:39]remove file /storage/0170/doc_00074017 [00:19:39]file doc_00074018 [00:19:39]remove file /storage/0170/doc_00074018 [00:19:39]file doc_00074019 [00:19:39]remove file /storage/0170/doc_00074019 [00:19:39]file doc_00074020 [00:19:39]remove file /storage/0170/doc_00074020 [00:19:39]file doc_00074021 [00:19:39]remove file /storage/0170/doc_00074021 [00:19:39]file doc_00074022 [00:19:39]remove file /storage/0170/doc_00074022 [00:19:39]file doc_00074023 [00:19:39]remove file /storage/0170/doc_00074023 [00:19:39]file doc_00074024 [00:19:39]remove file /storage/0170/doc_00074024 [00:19:39]file doc_00074025 [00:19:39]remove file /storage/0170/doc_00074025 [00:19:39]file doc_00074026 [00:19:39]remove file /storage/0170/doc_00074026 [00:19:39]file doc_00074027 [00:19:39]remove file /storage/0170/doc_00074027 [00:19:39]file doc_00074028 [00:19:39]remove file /storage/0170/doc_00074028 [00:19:39]file doc_00074029 [00:19:39]remove file /storage/0170/doc_00074029 [00:19:39]file doc_00074030 [00:19:39]remove file /storage/0170/doc_00074030 [00:19:39]file doc_00074031 [00:19:39]remove file /storage/0170/doc_00074031 [00:19:39]file doc_00074032 [00:19:39]remove file /storage/0170/doc_00074032 [00:19:39]file doc_00074033 [00:19:39]remove file /storage/0170/doc_00074033 [00:19:39]file doc_00074034 [00:19:39]remove file /storage/0170/doc_00074034 [00:19:39]file doc_00074035 [00:19:39]remove file /storage/0170/doc_00074035 [00:19:39]file doc_00074036 [00:19:39]remove file /storage/0170/doc_00074036 [00:19:39]file doc_00074037 [00:19:39]remove file /storage/0170/doc_00074037 [00:19:39]file doc_00074038 [00:19:39]remove file /storage/0170/doc_00074038 [00:19:39]file doc_00074039 [00:19:39]remove file /storage/0170/doc_00074039 [00:19:39]remove dir /storage/0170 [00:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=242 [00:19:39]tlvbuf is 0049AD70 [00:19:39]SAM_PROTO_ClearQueue [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 09 00 00 [00:19:39]Write to MH i2c: E2 08 00 4D 62 80 09 00 00 00 00 00 00 21 [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 4D 62 00 90 00 23 [00:19:39]RAPDU: 90 00 [00:19:39]wFMCommunicate OK [00:19:39]SAM_PROTO_ClearQueue done [00:19:39]KKMCreateOFDPacket [00:19:39]OFDProtocolAddRootSTLVToBuf [00:19:39]FM_MakeSignedData [00:19:39]FM_MakeSignedData [00:19:39]SAM_PROTO_SignData [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 0D 01 02 [00:19:39]Write to MH i2c: E2 08 00 4E 62 80 0D 01 02 00 00 00 00 29 [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 4E 62 00 90 00 24 [00:19:39]RAPDU: 90 00 [00:19:39]wFMCommunicate OK [00:19:39]wFMCommunicate request_size=251 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 0D 02 02 F6 02 00 F2 00 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 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 1D 9E 15 67 0E 04 04 00 AB 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 E1 21 BE A8 A3 A6 [00:19:39]Write to MH i2c: E2 FE 00 4F 62 80 0D 02 02 F6 00 02 00 F2 00 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 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 1D 9E 15 67 0E 04 04 00 AB 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 E1 21 BE A8 A3 A6 00 00 D1 [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 4F 62 00 90 00 25 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 03 02 [00:19:40]Write to MH i2c: E2 08 00 50 62 80 0D 03 02 00 00 00 00 2D [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 0B 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 0B 00 50 62 00 8A 1C 62 03 3B 7F 38 9D 90 00 C8 [00:19:40]RAPDU: 8A 1C 62 03 3B 7F 38 9D 90 00 [00:19:40]wFMCommunicate OK [00:19:40]SAM_PROTO_SignData done [00:19:40]FM_MakeSignedData done [00:19:40]CreateOFDProtocolMessage [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 11 00 00 [00:19:40]Write to MH i2c: E2 08 00 51 62 80 11 00 00 00 00 00 00 2D [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 17 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 17 00 51 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7A [00:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:19:40]wFMCommunicate OK [00:19:40]CreateOFDProtocolMessage done [00:19:40]OFDSenderStorePacket 74040 [00:19:40]StoreOFDPacket docnum=74040 [00:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 06 01 00 00 88 B5 FE 00 0B B0 5A 02 01 00 02 00 F2 00 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 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 1D 9E 15 67 0E 04 04 00 AB 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 E1 21 BE A8 A3 A6 8A 1C 62 03 3B 7F 38 9D [00:19:40]CheckFolder [00:19:40]dirname=/storage/ofd_packets [00:19:40]CheckFolder done [00:19:40]ProducePacketName [00:19:40]name=ofd_packets/00074040 [00:19:40]NVStorageSaveData ofd_packets/00074040 [00:19:40]File name is /storage/ofd_packets/00074040 [00:19:40]Write 292 bytes [00:19:40]NVStorageSaveData done [00:19:40]OFDSenderStorePacket done [00:19:40]KKMCreateOFDPacket done [00:19:40]NVStorageSaveData kkm_last_timestamp [00:19:40]File name is /storage/kkm_last_timestamp [00:19:40]Write 4 bytes [00:19:40]NVStorageSaveData done [00:19:40]ExternCall_PrintAddStr [00:19:40]wPrintStart [00:19:40]Write to MH i2c: 01 00 00 52 62 B4 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]OFD Sender: Processing packet 74040 [packets to send 15, broken 14] [00:19:40]ProducePacketName [00:19:40]name=ofd_packets/00074040 [00:19:40]OFD Sender: To server: pG, [00:19:40]CommunicateWithHost lk.salyk.kg:30040 [00:19:40]ConnectInit lk.salyk.kg [00:19:40]Read from MH i2c: 01 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 07 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 07 00 52 62 00 00 00 00 00 FF 0F C9 [00:19:40]RasterBufferAndPrint [00:19:40]line Отчет об открытии смены [00:19:40]line ФФД: 1.0 [00:19:40]line ИНН: 02508201610067 [00:19:40]line Кассир: Токтосунова А. [00:19:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [00:19:40]line Место: АЗС № 133 "Партнер Нефть" [00:19:40]line 21.10.2024 00:19 [00:19:40]line Смена: 171 [00:19:40]line РНМ: 0000000000161154 [00:19:40]line ЗНМ: 0300000020 [00:19:40]line ФД: 74040 [00:19:40]line ФМ: 0000000000963323 [00:19:40]line ФПД: 247535048893350 [00:19:40]written 0, free lines is 4095 [00:19:40]Connected sock=10 [00:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 06 01 00 00 88 B5 FE 00 0B B0 5A 02 01 00 02 00 F2 00 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 A2 D0 BE D0 BA D1 82 D0 BE D1 81 D1 83 D0 BD D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 35 30 2C 20 34 31 2E 30 36 34 36 37 33 2C 37 32 2E 36 34 39 31 36 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 33 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 1D 9E 15 67 0E 04 04 00 AB 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 35 04 06 00 E1 21 BE A8 A3 A6 8A 1C 62 03 3B 7F 38 9D [00:19:40]Write to MH i2c: 01 00 00 63 62 C5 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 07 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 07 00 63 62 00 00 00 00 00 78 0E 52 [00:19:40]RasterBufferAndPrint [00:19:40]line [00:19:40]line [00:19:40]line [00:19:40]line [00:19:40]line [00:19:40]written 0, free lines is 3721 [00:19:40]MH_Cut [00:19:40]Write to MH i2c: D1 01 00 6A 62 01 9E [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: D1 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: D1 01 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: D1 01 00 6A 62 00 9D [00:19:40]Write to MH i2c: 01 00 00 6B 62 CD [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 2D 47 00 F3 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 39 36 33 33 32 33 10 04 04 00 38 21 01 00 F4 03 04 00 02 47 15 67 B6 04 01 00 00 B7 F1 59 BD 93 DE 95 F7 [00:19:40]CommunicateWithHost err = 0 [00:19:40]CheckOFDResponse [00:19:40]1017 (14) - 77093643461234 [00:19:40]1041 (16) - 0000000000963323 [00:19:40]1040 (4) - 74040 [00:19:40]1012 (4) - 20.10.2024 18:08 [00:19:40]1206 (1) - 0 [00:19:40]OFD Sender: Remove packet 74040 [00:19:40]ProducePacketName [00:19:40]name=ofd_packets/00074040 [00:19:40]NVStorageDeleteData [00:19:41]*** Cut start [00:19:41]*** Partial cut [00:19:41]*** CUTSNS_PIN = 1 [00:19:41]*** CUTSNS_PIN = 0 [00:19:41]OFD Sender: No OFD packet to send [00:19:41]*** Brake cut motor [00:19:41]Read from MH i2c: 01 [00:19:41]MH_I2C_Read... [00:19:41]*** Stop cut motor [00:19:41]*** Cut end [00:19:41]Read from MH i2c: 01 07 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 07 00 6B 62 00 00 00 00 00 FF 0F E2 [00:19:41]process_action open_shift done [00:19:41]requested_data is exist [00:19:41]produce_requested_data [00:19:41]requested_item fd.num is exist - process it [00:19:41]SAM_PROTO_GetFieldsCounters [00:19:41]wFMCommunicate request_size=4 [00:19:41]MH_SAM_APDU [00:19:41]CAPDU: 80 13 00 00 [00:19:41]Write to MH i2c: E2 08 00 6C 62 80 13 00 00 00 00 00 00 4A [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:41]Read from MH i2c: E2 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 62 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 62 00 6C 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 21 01 00 0E 04 04 00 AB 00 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 63 [00:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 21 01 00 0E 04 04 00 AB 00 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:19:41]wFMCommunicate OK [00:19:41]SAM_PROTO_GetFieldsCounters done [00:19:41]requested_item shift.num is exist - process it [00:19:41]requested_item shift.opened is exist - process it [00:19:41]req_shift_opened [00:19:41]FM_GetShiftState [00:19:41]SAM_PROTO_GetShiftState [00:19:41]wFMCommunicate request_size=4 [00:19:41]MH_SAM_APDU [00:19:41]CAPDU: 80 13 01 00 [00:19:41]Write to MH i2c: E2 08 00 6D 62 80 13 01 00 00 00 00 00 4C [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:41]Read from MH i2c: E2 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 0E 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 0E 00 6D 62 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 8F [00:19:41]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:19:41]wFMCommunicate OK [00:19:41]SAM_PROTO_GetShiftState done [00:19:41]FM_GetShiftState done [00:19:41]req_shift_opened done [00:19:41]requested_item shift.open_date is exist - process it [00:19:41]req_shift_open_date [00:19:41]req_shift_open_date done [00:19:41]produce_requested_data done [00:19:41]produce_requested_data return {"fd.num":74040,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [00:19:41]process_action_free open_shift [00:19:41]json_value_free [00:19:41]json_value_free done [00:19:41]process_json_proto returns [00:19:41]Send response to host [00:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":74040,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [00:19:41]free response buf [00:19:41]execute_script done [00:19:41]execute_script returns [00:19:41]free content buf [00:19:41]Sock 9.Close socket [00:19:41]Sock 9.Thread stoped [00:19:41]accept exits with 8 [00:19:41]New connection [00:19:41]New thread 3067575652 created [00:19:41]Thread 3067432292 joined [00:19:41]Waiting for new connection... [00:19:41] Sock 8.Parse request [00:19:41]Sock 8.Check first char [00:19:41]Sock 8.First char is OK [00:19:41]request: POST /json_proto HTTP/1.0 [00:19:41]Method: POST [00:19:41]URL: /json_proto [00:19:41]Method is POST - this is cgi request [00:19:41]url: /json_proto [00:19:41]query_string will be loaded in cgi processing [00:19:41]execute_cgi json_proto POST (null) [00:19:41]execute_cgi path=json_proto method=POST [00:19:41]POST find Content-Length [00:19:41]Host: 172.17.44.196:8080 [00:19:41]Content-Length: 331 [00:19:41]Content-Type: application/json [00:19:41] [00:19:41]POST finish read [00:19:41]Found Content-Length = 331 [00:19:41]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:19:41]execute_script... [00:19:41]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:19:41]POST & json_proto [00:19:41]process_json_proto [00:19:41]json parsed OK: [00:19:41]protocol is kg_v1.0 [00:19:41]action value=get_value [00:19:41]process_action get_value [00:19:41]cmd_get_value [00:19:41]process_action get_value done [00:19:41]requested_data is exist [00:19:41]produce_requested_data [00:19:41]requested_item fm.sale.total is exist - process it [00:19:41]SAM_PROTO_GetFMData [00:19:41]wFMCommunicate request_size=4 [00:19:41]MH_SAM_APDU [00:19:41]CAPDU: 80 13 03 00 [00:19:41]Write to MH i2c: E2 08 00 6E 62 80 13 03 00 00 00 00 00 4F [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:42]Read from MH i2c: E2 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 6E 62 00 C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 BE [00:19:42]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E2 1F 01 00 69 04 A2 00 6F 04 04 00 F4 1E 01 00 B1 04 05 00 C0 7E 02 2C 01 70 04 04 00 4A A6 2D FC 72 04 04 00 76 D8 D4 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 07 25 DE 1F 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 E2 C9 A7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 EE 00 00 00 B1 04 04 00 8C EF 2A 04 70 04 04 00 E4 8D 2A 04 72 04 02 00 A8 61 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 E5 4F 71 EF 03 09 90 00 [00:19:42]wFMCommunicate OK [00:19:42]wFMCommunicate request_size=4 [00:19:42]MH_SAM_APDU [00:19:42]CAPDU: 80 17 00 00 [00:19:42]Write to MH i2c: E2 08 00 6F 62 80 17 00 00 00 00 00 00 51 [00:19:42]Write i2c OK [00:19:42]MH_I2C_Read... [00:19:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:42]Read from MH i2c: E2 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 6F 62 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [00:19:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 71 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:42]wFMCommunicate OK [00:19:42]wFMCommunicate request_size=4 [00:19:42]MH_SAM_APDU [00:19:42]CAPDU: 80 17 00 00 [00:19:42]Write to MH i2c: E2 08 00 70 62 80 17 00 00 00 00 00 00 52 [00:19:42]Write i2c OK [00:19:42]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 FD 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 FD 00 70 62 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 64 [00:19:43]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:19:43]wFMCommunicate OK [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 17 00 00 [00:19:43]Write to MH i2c: E2 08 00 71 62 80 17 00 00 00 00 00 00 53 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 FD 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 FD 00 71 62 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 DF [00:19:43]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:19:43]wFMCommunicate OK [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 17 00 00 [00:19:43]Write to MH i2c: E2 08 00 72 62 80 17 00 00 00 00 00 00 54 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 E2 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 E2 00 72 62 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [00:19:44]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:19:44]wFMCommunicate OK [00:19:44]SAM_PROTO_GetFMData done [00:19:44]requested_item fm.sale_refund.total is exist - process it [00:19:44]requested_item fm.buy.total is exist - process it [00:19:44]requested_item shift.sale.total is exist - process it [00:19:44]SAM_PROTO_GetShiftData [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 13 02 00 [00:19:44]Write to MH i2c: E2 08 00 73 62 80 13 02 00 00 00 00 00 53 [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 73 62 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 C6 [00:19:44]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:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 17 00 00 [00:19:44]Write to MH i2c: E2 08 00 74 62 80 17 00 00 00 00 00 00 56 [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 74 62 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 5E [00:19:45]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:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 75 62 80 17 00 00 00 00 00 00 57 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 75 62 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 29 [00:19:45]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:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 76 62 80 17 00 00 00 00 00 00 58 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 76 62 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 CA [00:19:46]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 OFD Sender: No OFD packet to send [00:19:46]00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 77 62 80 17 00 00 00 00 00 00 59 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 BD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 BD 00 77 62 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 3F [00:19:46]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:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetShiftData done [00:19:46]requested_item shift.sale.total_cash is exist - process it [00:19:46]requested_item shift.sale_refund.total is exist - process it [00:19:46]requested_item shift.sale_refund.total_cash is exist - process it [00:19:46]requested_item shift.buy.total is exist - process it [00:19:46]requested_item shift.buy.total_cash is exist - process it [00:19:46]produce_requested_data done [00:19:46]produce_requested_data return {"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"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:19:46]process_action_free get_value [00:19:46]json_value_free [00:19:46]json_value_free done [00:19:46]process_json_proto returns [00:19:46]Send response to host [00:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":50333283.20,"fm.sale_refund.total":699227.00,"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:19:46]free response buf [00:19:46]execute_script done [00:19:46]execute_script returns [00:19:46]free content buf [00:19:46]Sock 8.Close socket [00:19:46]Sock 8.Thread stoped [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]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:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:40]accept exits with 9 [00:31:40]New connection [00:31:40]New thread 3067432292 created [00:31:40]Thread 3067575652 joined [00:31:40]Waiting for new connection... [00:31:40] Sock 9.Parse request [00:31:40]Sock 9.Check first char [00:31:40]Sock 9.First char is OK [00:31:40]request: POST /json_proto HTTP/1.0 [00:31:40]Method: POST [00:31:40]URL: /json_proto [00:31:40]Method is POST - this is cgi request [00:31:40]url: /json_proto [00:31:40]query_string will be loaded in cgi processing [00:31:40]execute_cgi json_proto POST (null) [00:31:40]execute_cgi path=json_proto method=POST [00:31:40]POST find Content-Length [00:31:40]Host: 172.17.44.196:8080 [00:31:40]Content-Length: 818 [00:31:40]Content-Type: application/json [00:31:40] [00:31:40]POST finish read [00:31:40]Found Content-Length = 818 [00:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272872", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.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: Mbank", "payments": [ { "type": 1, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:40]execute_script... [00:31: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)272872", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.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: Mbank", "payments": [ { "type": 1, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:40]POST & json_proto [00:31:40]process_json_proto [00:31:40]json parsed OK: [00:31:40]protocol is kg_v1.0 [00:31:40]action value=close_receipt [00:31:40]process_action close_receipt [00:31:40]cmd_close_receipt [00:31:40]MH_GetDate [00:31:40]Write to MH i2c: F0 00 00 78 62 C9 [00:31:40]Write i2c OK [00:31:40]MH_I2C_Read... [00:31:40]Read from MH i2c: F0 [00:31:40]MH_I2C_Read... [00:31:40]Read from MH i2c: F0 09 00 [00:31:40]MH_I2C_Read... [00:31:40]Read from MH i2c: F0 09 00 78 62 00 F0 A0 15 67 E7 19 F8 65 3B [00:31:40]GetLastDocTimeStamp 1729469981 [00:31:40]current date 1729470704 [00:31:40]FM_GetShiftState [00:31:40]SAM_PROTO_GetShiftState [00:31:40]wFMCommunicate request_size=4 [00:31:40]MH_SAM_APDU [00:31:40]CAPDU: 80 13 01 00 [00:31:40]Write to MH i2c: E2 08 00 79 62 80 13 01 00 00 00 00 00 58 [00:31:40]Write i2c OK [00:31:40]MH_I2C_Read... [00:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:40]Read from MH i2c: E2 [00:31:40]MH_I2C_Read... [00:31:40]Read from MH i2c: E2 0E 00 [00:31:40]MH_I2C_Read... [00:31:40]Read from MH i2c: E2 0E 00 79 62 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 9B [00:31:40]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:31:40]wFMCommunicate OK [00:31:40]SAM_PROTO_GetShiftState done [00:31:40]FM_GetShiftState done [00:31:40]opened in 1729469981 [00:31:40]opened+sec_in_day 1729556381 [00:31:40]quantity*price = 4300 [00:31:40]sum+1 = 4301 [00:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 43.00 НСП 1% : 0.38 НДС 12% : 4.57 Наличными: 0.00 Безнал.: 43.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 1 21.10.2024 00:31 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 74041 ФПД: 135390668602730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003144&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74041&fm=135390668602730&tin=02508201610067®Number=0000000000161154&sum=4300 0 [00:31:41]StoreToDocumentArchive [00:31:41]shift 171 fd 74041 [00:31:41]save to /storage/0171/doc_00074041 [00:31:41]save last doc name /storage/0171/doc_00074041 to /storage/kkm_last_doc_name [00:31:41]save OK [00:31:41]Clear old archive folders... [00:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=294 [00:31:41]tlvbuf is 00338A10 [00:31:41]SAM_PROTO_ClearQueue [00:31:41]wFMCommunicate request_size=4 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 09 00 00 [00:31:41]Write to MH i2c: E2 08 00 86 62 80 09 00 00 00 00 00 00 5A [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 86 62 00 90 00 5C [00:31:41]RAPDU: 90 00 [00:31:41]wFMCommunicate OK [00:31:41]SAM_PROTO_ClearQueue done [00:31:41]KKMCreateOFDPacket [00:31:41]OFDProtocolAddRootSTLVToBuf [00:31:41]FM_MakeSignedData [00:31:41]FM_MakeSignedData [00:31:41]SAM_PROTO_SignData [00:31:41]wFMCommunicate request_size=4 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 0D 01 02 [00:31:41]Write to MH i2c: E2 08 00 87 62 80 0D 01 02 00 00 00 00 62 [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 87 62 00 90 00 5D [00:31:41]RAPDU: 90 00 [00:31:41]wFMCommunicate OK [00:31:41]wFMCommunicate request_size=255 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 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 00 00 00 00 00 00 39 04 06 00 CC 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F0 A0 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [00:31:41]Write to MH i2c: E2 02 01 88 62 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 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 00 00 00 00 00 00 39 04 06 00 CC 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F0 A0 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 7B [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 88 62 00 90 00 5E [00:31:41]RAPDU: 90 00 [00:31:41]wFMCommunicate OK [00:31:41]wFMCommunicate request_size=53 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 0D 02 02 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 21 01 00 35 04 06 00 7B 23 18 B5 3D 6A [00:31:41]Write to MH i2c: E2 38 00 89 62 80 0D 02 02 30 00 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 21 01 00 35 04 06 00 7B 23 18 B5 3D 6A 00 00 BA [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 03 00 89 62 00 90 00 5F [00:31:41]RAPDU: 90 00 [00:31:41]wFMCommunicate OK [00:31:41]wFMCommunicate request_size=4 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 0D 03 02 [00:31:41]Write to MH i2c: E2 08 00 8A 62 80 0D 03 02 00 00 00 00 67 [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 0B 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 0B 00 8A 62 00 4E 8E 38 18 96 FE 78 0D 90 00 AD [00:31:41]RAPDU: 4E 8E 38 18 96 FE 78 0D 90 00 [00:31:41]wFMCommunicate OK [00:31:41]SAM_PROTO_SignData done [00:31:41]FM_MakeSignedData done [00:31:41]CreateOFDProtocolMessage [00:31:41]wFMCommunicate request_size=4 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 11 00 00 [00:31:41]Write to MH i2c: E2 08 00 8B 62 80 11 00 00 00 00 00 00 67 [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 17 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 17 00 8B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B4 [00:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:31:41]wFMCommunicate OK [00:31:41]CreateOFDProtocolMessage done [00:31:41]OFDSenderStorePacket 74041 [00:31:41]StoreOFDPacket docnum=74041 [00:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 29 90 32 01 D7 F0 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 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 00 00 00 00 00 00 39 04 06 00 CC 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F0 A0 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 21 01 00 35 04 06 00 7B 23 18 B5 3D 6A 4E 8E 38 18 96 FE 78 0D [00:31:41]CheckFolder [00:31:41]dirname=/storage/ofd_packets [00:31:41]CheckFolder done [00:31:41]ProducePacketName [00:31:41]name=ofd_packets/00074041 [00:31:41]NVStorageSaveData ofd_packets/00074041 [00:31:41]File name is /storage/ofd_packets/00074041 [00:31:41]Write 344 bytes [00:31:41]NVStorageSaveData done [00:31:41]OFDSenderStorePacket done [00:31:41]KKMCreateOFDPacket done [00:31:41]NVStorageSaveData kkm_last_timestamp [00:31:41]File name is /storage/kkm_last_timestamp [00:31:41]Write 4 bytes [00:31:41]NVStorageSaveData done [00:31:41]ExternCall_PrintAddStr [00:31:41]wPrintStart [00:31:41]Write to MH i2c: 01 00 00 8C 62 EE [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: 01 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: 01 07 00 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: 01 07 00 8C 62 00 00 00 00 00 FF 0F 03 [00:31:42]RasterBufferAndPrint [00:31:42]line Счет N : (3)272872 [00:31:42]line ИНН: 02508201610067 [00:31:42]line Контрольно-Кассовый Чек [00:31:42]line ПРОДАЖА [00:31:42]line Товар: 4700321005017 [00:31:42]line Арахис Mike жареный соленый 50г [00:31:42]line 1.000 * 43.00 [00:31:42]line = 43.00 [00:31:42]line НДС 12% НСП 1% [00:31:42]line > о реализуемом товаре [00:31:42]line ИТОГО: 43.00 [00:31:42]line НСП 1% : 0.38 [00:31:42]line НДС 12% : 4.57 [00:31:42]line Наличными: 0.00 [00:31:42]line Безнал.: 43.00 [00:31:42]line Место: АЗС № 133 "Партнер Нефть" [00:31:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [00:31:42]line СНО: Общий режим [00:31:42]line Чек 1 21.10.2024 00:31 [00:31:42]line Смена: 171 ФФД: 1.0 [00:31:42]line ЗНМ: 0300000020 [00:31:42]line РНМ: 0000000000161154 [00:31:42]line Версия ККМ: v1.0 [00:31:42]line Платежная система: Mbank [00:31:42]line ФМ: 0000000000963323 [00:31:42]line ФД: 74041 [00:31:42]line ФПД: 135390668602730 [00:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003144&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74041&fm=135390668602730&tin=02508201610067®Number=0000000000161154&sum=4300 [00:31:42]line 0 [00:31:42]OFD Sender: Processing packet 74041 [packets to send 15, broken 14] [00:31:42]ProducePacketName [00:31:42]name=ofd_packets/00074041 [00:31:42]OFD Sender: To server: pG, [00:31:42]CommunicateWithHost lk.salyk.kg:30040 [00:31:42]ConnectInit lk.salyk.kg [00:31:42]written 0, free lines is 4095 [00:31:42]Connected sock=8 [00:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 29 90 32 01 D7 F0 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 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 00 00 00 00 00 00 39 04 06 00 CC 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F0 A0 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 21 01 00 35 04 06 00 7B 23 18 B5 3D 6A 4E 8E 38 18 96 FE 78 0D [00:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FB 28 47 00 A2 FE 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 39 36 33 33 32 33 10 04 04 00 39 21 01 00 F4 03 04 00 D4 49 15 67 B6 04 01 00 00 89 92 94 0F 18 2E 93 6C [00:31:42]CommunicateWithHost err = 0 [00:31:42]CheckOFDResponse [00:31:42]1017 (14) - 77093643461234 [00:31:42]1041 (16) - 0000000000963323 [00:31:42]1040 (4) - 74041 [00:31:42]1012 (4) - 20.10.2024 18:20 [00:31:42]1206 (1) - 0 [00:31:42]OFD Sender: Remove packet 74041 [00:31:42]ProducePacketName [00:31:42]name=ofd_packets/00074041 [00:31:42]NVStorageDeleteData [00:31:42]Write to MH i2c: 01 00 00 B5 62 17 [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: 01 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: 01 07 00 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: 01 07 00 B5 62 00 00 00 00 00 B2 0C DC [00:31:42]RasterBufferAndPrint [00:31:42]line [00:31:42]line [00:31:42]line [00:31:42]line [00:31:42]line [00:31:42]written 0, free lines is 3255 [00:31:42]MH_Cut [00:31:42]Write to MH i2c: D1 01 00 BC 62 01 F0 [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: D1 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: D1 01 00 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: D1 01 00 BC 62 00 EF [00:31:42]Write to MH i2c: 01 00 00 BD 62 1F [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:43]OFD Sender: No OFD packet to send [00:31:43]*** Cut start [00:31:43]*** Partial cut [00:31:43]*** CUTSNS_PIN = 1 [00:31:43]*** CUTSNS_PIN = 0 [00:31:43]*** Brake cut motor [00:31:44]Read from MH i2c: 01 [00:31:44]MH_I2C_Read... [00:31:44]*** Stop cut motor [00:31:44]*** Cut end [00:31:44]Read from MH i2c: 01 07 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: 01 07 00 BD 62 00 00 00 00 00 FF 0F 34 [00:31:44]process_action close_receipt done [00:31:44]requested_data is exist [00:31:44]produce_requested_data [00:31:44]requested_item fm.sn is exist - process it [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 11 00 00 [00:31:44]Write to MH i2c: E2 08 00 BE 62 80 11 00 00 00 00 00 00 9A [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:44]Read from MH i2c: E2 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 17 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 17 00 BE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E7 [00:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:31:44]wFMCommunicate OK [00:31:44]requested_item fd.num is exist - process it [00:31:44]SAM_PROTO_GetFieldsCounters [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 13 00 00 [00:31:44]Write to MH i2c: E2 08 00 BF 62 80 13 00 00 00 00 00 00 9D [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:44]Read from MH i2c: E2 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 62 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 62 00 BF 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 39 21 01 00 0E 04 04 00 AB 00 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 BA [00:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 39 21 01 00 0E 04 04 00 AB 00 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:31:44]wFMCommunicate OK [00:31:44]SAM_PROTO_GetFieldsCounters done [00:31:44]requested_item shift.num is exist - process it [00:31:44]requested_item shift.opened is exist - process it [00:31:44]req_shift_opened [00:31:44]FM_GetShiftState [00:31:44]SAM_PROTO_GetShiftState [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 13 01 00 [00:31:44]Write to MH i2c: E2 08 00 C0 62 80 13 01 00 00 00 00 00 9F [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:44]Read from MH i2c: E2 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 0E 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 0E 00 C0 62 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 E2 [00:31:44]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:31:44]wFMCommunicate OK [00:31:44]SAM_PROTO_GetShiftState done [00:31:44]FM_GetShiftState done [00:31:44]req_shift_opened done [00:31:44]requested_item shift.open_date is exist - process it [00:31:44]req_shift_open_date [00:31:44]req_shift_open_date done [00:31:44]produce_requested_data done [00:31:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74041,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [00:31:44]process_action_free close_receipt [00:31:44]json_value_free [00:31:44]json_value_free done [00:31:44]process_json_proto returns [00:31:44]Send response to host [00:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74041,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [00:31:44]free response buf [00:31:44]execute_script done [00:31:44]execute_script returns [00:31:44]free content buf [00:31:44]Sock 9.Close socket [00:31:44]Sock 9.Thread stoped [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]accept exits with 10 [00:42:23]New connection [00:42:23]New thread 3067575652 created [00:42:23]Thread 3067432292 joined [00:42:23]Waiting for new connection... [00:42:23] Sock 10.Parse request [00:42:23]Sock 10.Check first char [00:42:23]Sock 10.First char is OK [00:42:23]request: POST /json_proto HTTP/1.0 [00:42:23]Method: POST [00:42:23]URL: /json_proto [00:42:23]Method is POST - this is cgi request [00:42:23]url: /json_proto [00:42:23]query_string will be loaded in cgi processing [00:42:23]execute_cgi json_proto POST (null) [00:42:23]execute_cgi path=json_proto method=POST [00:42:23]POST find Content-Length [00:42:23]Host: 172.17.44.196:8080 [00:42:23]Content-Length: 622 [00:42:23]Content-Type: application/json [00:42:23] [00:42:23]POST finish read [00:42:23]Found Content-Length = 622 [00:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272873", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:23]execute_script... [00:42: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)272873", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:23]POST & json_proto [00:42:23]process_json_proto [00:42:23]json parsed OK: [00:42:23]protocol is kg_v1.0 [00:42:23]action value=close_receipt [00:42:23]process_action close_receipt [00:42:23]cmd_close_receipt [00:42:23]MH_GetDate [00:42:23]Write to MH i2c: F0 00 00 C1 62 12 [00:42:23]Write i2c OK [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: F0 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: F0 09 00 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: F0 09 00 C1 62 00 73 A3 15 67 E7 19 F8 65 0A [00:42:23]GetLastDocTimeStamp 1729470704 [00:42:23]current date 1729471347 [00:42:23]FM_GetShiftState [00:42:23]SAM_PROTO_GetShiftState [00:42:23]wFMCommunicate request_size=4 [00:42:23]MH_SAM_APDU [00:42:23]CAPDU: 80 13 01 00 [00:42:23]Write to MH i2c: E2 08 00 C2 62 80 13 01 00 00 00 00 00 A1 [00:42:23]Write i2c OK [00:42:23]MH_I2C_Read... [00:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:23]Read from MH i2c: E2 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: E2 0E 00 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: E2 0E 00 C2 62 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 E4 [00:42:23]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:42:23]wFMCommunicate OK [00:42:23]SAM_PROTO_GetShiftState done [00:42:23]FM_GetShiftState done [00:42:23]opened in 1729469981 [00:42:23]opened+sec_in_day 1729556381 [00:42:23]quantity*price = 15100 [00:42:23]sum+1 = 15101 [00:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 2 21.10.2024 00:42 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74042 ФПД: 226661323995166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004227&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74042&fm=226661323995166&tin=02508201610067®Number=0000000000161154&sum=15100 0 [00:42:24]StoreToDocumentArchive [00:42:24]shift 171 fd 74042 [00:42:24]save to /storage/0171/doc_00074042 [00:42:24]save last doc name /storage/0171/doc_00074042 to /storage/kkm_last_doc_name [00:42:24]save OK [00:42:24]Clear old archive folders... [00:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=274 [00:42:24]tlvbuf is 004B8AE0 [00:42:24]SAM_PROTO_ClearQueue [00:42:24]wFMCommunicate request_size=4 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 09 00 00 [00:42:24]Write to MH i2c: E2 08 00 CF 62 80 09 00 00 00 00 00 00 A3 [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 CF 62 00 90 00 A5 [00:42:24]RAPDU: 90 00 [00:42:24]wFMCommunicate OK [00:42:24]SAM_PROTO_ClearQueue done [00:42:24]KKMCreateOFDPacket [00:42:24]OFDProtocolAddRootSTLVToBuf [00:42:24]FM_MakeSignedData [00:42:24]FM_MakeSignedData [00:42:24]SAM_PROTO_SignData [00:42:24]wFMCommunicate request_size=4 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 0D 01 02 [00:42:24]Write to MH i2c: E2 08 00 D0 62 80 0D 01 02 00 00 00 00 AB [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 D0 62 00 90 00 A6 [00:42:24]RAPDU: 90 00 [00:42:24]wFMCommunicate OK [00:42:24]wFMCommunicate request_size=255 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 02 00 00 00 F4 03 04 00 73 A3 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [00:42:24]Write to MH i2c: E2 02 01 D1 62 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 02 00 00 00 F4 03 04 00 73 A3 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 AC [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 D1 62 00 90 00 A7 [00:42:24]RAPDU: 90 00 [00:42:24]wFMCommunicate OK [00:42:24]wFMCommunicate request_size=33 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 21 01 00 35 04 06 00 CE 25 B3 B3 78 1E [00:42:24]Write to MH i2c: E2 24 00 D2 62 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 21 01 00 35 04 06 00 CE 25 B3 B3 78 1E 00 00 82 [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 03 00 D2 62 00 90 00 A8 [00:42:24]RAPDU: 90 00 [00:42:24]wFMCommunicate OK [00:42:24]wFMCommunicate request_size=4 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 0D 03 02 [00:42:24]Write to MH i2c: E2 08 00 D3 62 80 0D 03 02 00 00 00 00 B0 [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 0B 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 0B 00 D3 62 00 49 04 D1 DA 92 0A C6 03 90 00 0E [00:42:24]RAPDU: 49 04 D1 DA 92 0A C6 03 90 00 [00:42:24]wFMCommunicate OK [00:42:24]SAM_PROTO_SignData done [00:42:24]FM_MakeSignedData done [00:42:24]CreateOFDProtocolMessage [00:42:24]wFMCommunicate request_size=4 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 11 00 00 [00:42:24]Write to MH i2c: E2 08 00 D4 62 80 11 00 00 00 00 00 00 B0 [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 17 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 17 00 D4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [00:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:42:24]wFMCommunicate OK [00:42:24]CreateOFDProtocolMessage done [00:42:24]OFDSenderStorePacket 74042 [00:42:24]StoreOFDPacket docnum=74042 [00:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 39 DE 1E 01 47 17 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 02 00 00 00 F4 03 04 00 73 A3 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 21 01 00 35 04 06 00 CE 25 B3 B3 78 1E 49 04 D1 DA 92 0A C6 03 [00:42:24]CheckFolder [00:42:24]dirname=/storage/ofd_packets [00:42:24]CheckFolder done [00:42:24]ProducePacketName [00:42:24]name=ofd_packets/00074042 [00:42:24]NVStorageSaveData ofd_packets/00074042 [00:42:24]File name is /storage/ofd_packets/00074042 [00:42:24]Write 324 bytes [00:42:24]NVStorageSaveData done [00:42:24]OFDSenderStorePacket done [00:42:24]KKMCreateOFDPacket done [00:42:24]NVStorageSaveData kkm_last_timestamp [00:42:24]File name is /storage/kkm_last_timestamp [00:42:24]Write 4 bytes [00:42:24]NVStorageSaveData done [00:42:24]ExternCall_PrintAddStr [00:42:24]wPrintStart [00:42:24]Write to MH i2c: 01 00 00 D5 62 37 [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: 01 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: 01 07 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: 01 07 00 D5 62 00 00 00 00 00 FF 0F 4C [00:42:24]RasterBufferAndPrint [00:42:24]line Счет N : (3)272873 [00:42:24]line ИНН: 02508201610067 [00:42:24]line Контрольно-Кассовый Чек [00:42:24]line ПРОДАЖА [00:42:24]line Товар: 48741958 [00:42:24]line Сигареты Parliament Aqua Blue [00:42:24]line 1.000 * 151.00 [00:42:24]line = 151.00 [00:42:24]line НДС 12% НСП 1% [00:42:24]line > о реализуемом товаре [00:42:24]line ИТОГО: 151.00 [00:42:24]line НСП 1% : 1.34 [00:42:24]line НДС 12% : 16.03 [00:42:24]line Наличными: 151.00 [00:42:24]line Безнал.: 0.00 [00:42:24]line Место: АЗС № 133 "Партнер Нефть" [00:42:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [00:42:24]line СНО: Общий режим [00:42:24]line Чек 2 21.10.2024 00:42 [00:42:24]line Смена: 171 ФФД: 1.0 [00:42:24]line ЗНМ: 0300000020 [00:42:24]line РНМ: 0000000000161154 [00:42:24]line Версия ККМ: v1.0 [00:42:24]line ФМ: 0000000000963323 [00:42:24]line ФД: 74042 [00:42:24]line ФПД: 226661323995166 [00:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004227&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74042&fm=226661323995166&tin=02508201610067®Number=0000000000161154&sum=15100 [00:42:25]line 0 [00:42:25]OFD Sender: Processing packet 74042 [packets to send 15, broken 14] [00:42:25]ProducePacketName [00:42:25]name=ofd_packets/00074042 [00:42:25]OFD Sender: To server: pG, [00:42:25]CommunicateWithHost lk.salyk.kg:30040 [00:42:25]ConnectInit lk.salyk.kg [00:42:25]written 0, free lines is 4095 [00:42:25]Connected sock=9 [00:42:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 39 DE 1E 01 47 17 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 02 00 00 00 F4 03 04 00 73 A3 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 21 01 00 35 04 06 00 CE 25 B3 B3 78 1E 49 04 D1 DA 92 0A C6 03 [00:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1D 16 47 00 8D 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 39 36 33 33 32 33 10 04 04 00 3A 21 01 00 F4 03 04 00 56 4C 15 67 B6 04 01 00 00 1A BC BE DB 3D 95 0F BB [00:42:25]CommunicateWithHost err = 0 [00:42:25]CheckOFDResponse [00:42:25]1017 (14) - 77093643461234 [00:42:25]1041 (16) - 0000000000963323 [00:42:25]1040 (4) - 74042 [00:42:25]1012 (4) - 20.10.2024 18:30 [00:42:25]1206 (1) - 0 [00:42:25]OFD Sender: Remove packet 74042 [00:42:25]ProducePacketName [00:42:25]name=ofd_packets/00074042 [00:42:25]NVStorageDeleteData [00:42:25]Write to MH i2c: 01 00 00 FD 62 5F [00:42:25]Write i2c OK [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: 01 [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: 01 07 00 [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: 01 07 00 FD 62 00 00 00 00 00 C5 0C 37 [00:42:25]RasterBufferAndPrint [00:42:25]line [00:42:25]line [00:42:25]line [00:42:25]line [00:42:25]line [00:42:25]written 0, free lines is 3273 [00:42:25]MH_Cut [00:42:25]Write to MH i2c: D1 01 00 04 63 01 39 [00:42:25]Write i2c OK [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: D1 [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: D1 01 00 [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: D1 01 00 04 63 00 38 [00:42:25]Write to MH i2c: 01 00 00 05 63 68 [00:42:25]Write i2c OK [00:42:25]MH_I2C_Read... [00:42:26]OFD Sender: No OFD packet to send [00:42:26]*** Cut start [00:42:26]*** Partial cut [00:42:26]*** CUTSNS_PIN = 1 [00:42:26]*** CUTSNS_PIN = 0 [00:42:26]*** Brake cut motor [00:42:27]Read from MH i2c: 01 [00:42:27]MH_I2C_Read... [00:42:27]*** Stop cut motor [00:42:27]*** Cut end [00:42:27]Read from MH i2c: 01 07 00 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: 01 07 00 05 63 00 00 00 00 00 FF 0F 7D [00:42:27]process_action close_receipt done [00:42:27]requested_data is exist [00:42:27]produce_requested_data [00:42:27]requested_item fm.sn is exist - process it [00:42:27]wFMCommunicate request_size=4 [00:42:27]MH_SAM_APDU [00:42:27]CAPDU: 80 11 00 00 [00:42:27]Write to MH i2c: E2 08 00 06 63 80 11 00 00 00 00 00 00 E3 [00:42:27]Write i2c OK [00:42:27]MH_I2C_Read... [00:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:27]Read from MH i2c: E2 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 17 00 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 17 00 06 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [00:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:42:27]wFMCommunicate OK [00:42:27]requested_item fd.num is exist - process it [00:42:27]SAM_PROTO_GetFieldsCounters [00:42:27]wFMCommunicate request_size=4 [00:42:27]MH_SAM_APDU [00:42:27]CAPDU: 80 13 00 00 [00:42:27]Write to MH i2c: E2 08 00 07 63 80 13 00 00 00 00 00 00 E6 [00:42:27]Write i2c OK [00:42:27]MH_I2C_Read... [00:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:27]Read from MH i2c: E2 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 62 00 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 62 00 07 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3A 21 01 00 0E 04 04 00 AB 00 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 07 [00:42:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3A 21 01 00 0E 04 04 00 AB 00 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:42:27]wFMCommunicate OK [00:42:27]SAM_PROTO_GetFieldsCounters done [00:42:27]requested_item shift.num is exist - process it [00:42:27]requested_item shift.opened is exist - process it [00:42:27]req_shift_opened [00:42:27]FM_GetShiftState [00:42:27]SAM_PROTO_GetShiftState [00:42:27]wFMCommunicate request_size=4 [00:42:27]MH_SAM_APDU [00:42:27]CAPDU: 80 13 01 00 [00:42:27]Write to MH i2c: E2 08 00 08 63 80 13 01 00 00 00 00 00 E8 [00:42:27]Write i2c OK [00:42:27]MH_I2C_Read... [00:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:27]Read from MH i2c: E2 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 0E 00 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 0E 00 08 63 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 2B [00:42:27]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:42:27]wFMCommunicate OK [00:42:27]SAM_PROTO_GetShiftState done [00:42:27]FM_GetShiftState done [00:42:27]req_shift_opened done [00:42:27]requested_item shift.open_date is exist - process it [00:42:27]req_shift_open_date [00:42:27]req_shift_open_date done [00:42:27]produce_requested_data done [00:42:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74042,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [00:42:27]process_action_free close_receipt [00:42:27]json_value_free [00:42:27]json_value_free done [00:42:27]process_json_proto returns [00:42:27]Send response to host [00:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74042,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [00:42:27]free response buf [00:42:27]execute_script done [00:42:27]execute_script returns [00:42:27]free content buf [00:42:27]Sock 10.Close socket [00:42:27]Sock 10.Thread stoped [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:20]accept exits with 8 [00:52:20]New connection [00:52:20]New thread 3067432292 created [00:52:20]Thread 3067575652 joined [00:52:20]Waiting for new connection... [00:52:20] Sock 8.Parse request [00:52:20]Sock 8.Check first char [00:52:20]Sock 8.First char is OK [00:52:20]request: POST /json_proto HTTP/1.0 [00:52:20]Method: POST [00:52:20]URL: /json_proto [00:52:20]Method is POST - this is cgi request [00:52:20]url: /json_proto [00:52:20]query_string will be loaded in cgi processing [00:52:20]execute_cgi json_proto POST (null) [00:52:20]execute_cgi path=json_proto method=POST [00:52:20]POST find Content-Length [00:52:20]Host: 172.17.44.196:8080 [00:52:20]Content-Length: 717 [00:52:20]Content-Type: application/json [00:52:20] [00:52:20]POST finish read [00:52:20]Found Content-Length = 717 [00:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272874", "tax_sys" : 0, "items" : [ { "code": "4860103356604", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,33\u043B \u0441\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.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" ] } } [00:52:20]execute_script... [00:52: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)272874", "tax_sys" : 0, "items" : [ { "code": "4860103356604", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,33\u043B \u0441\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.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" ] } } [00:52:20]POST & json_proto [00:52:20]process_json_proto [00:52:20]json parsed OK: [00:52:20]protocol is kg_v1.0 [00:52:20]action value=close_receipt [00:52:20]process_action close_receipt [00:52:20]cmd_close_receipt [00:52:20]MH_GetDate [00:52:20]Write to MH i2c: F0 00 00 09 63 5B [00:52:20]Write i2c OK [00:52:20]MH_I2C_Read... [00:52:20]Read from MH i2c: F0 [00:52:20]MH_I2C_Read... [00:52:20]Read from MH i2c: F0 09 00 [00:52:20]MH_I2C_Read... [00:52:20]Read from MH i2c: F0 09 00 09 63 00 C8 A5 15 67 E7 19 F8 65 AA [00:52:20]GetLastDocTimeStamp 1729471347 [00:52:20]current date 1729471944 [00:52:20]FM_GetShiftState [00:52:20]SAM_PROTO_GetShiftState [00:52:20]wFMCommunicate request_size=4 [00:52:20]MH_SAM_APDU [00:52:20]CAPDU: 80 13 01 00 [00:52:20]Write to MH i2c: E2 08 00 0A 63 80 13 01 00 00 00 00 00 EA [00:52:20]Write i2c OK [00:52:20]MH_I2C_Read... [00:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:20]Read from MH i2c: E2 [00:52:20]MH_I2C_Read... [00:52:20]Read from MH i2c: E2 0E 00 [00:52:20]MH_I2C_Read... [00:52:20]Read from MH i2c: E2 0E 00 0A 63 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 2D [00:52:20]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:52:20]wFMCommunicate OK [00:52:20]SAM_PROTO_GetShiftState done [00:52:20]FM_GetShiftState done [00:52:20]opened in 1729469981 [00:52:20]opened+sec_in_day 1729556381 [00:52:20]quantity*price = 19000 [00:52:20]sum+1 = 19001 [00:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 3 21.10.2024 00:52 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74043 ФПД: 56096345790234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005224&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74043&fm=56096345790234&tin=02508201610067®Number=0000000000161154&sum=19000 0 [00:52:21]StoreToDocumentArchive [00:52:21]shift 171 fd 74043 [00:52:21]save to /storage/0171/doc_00074043 [00:52:21]save last doc name /storage/0171/doc_00074043 to /storage/kkm_last_doc_name [00:52:21]save OK [00:52:21]Clear old archive folders... [00:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=301 [00:52:21]tlvbuf is 00523630 [00:52:21]SAM_PROTO_ClearQueue [00:52:21]wFMCommunicate request_size=4 [00:52:21]MH_SAM_APDU [00:52:21]CAPDU: 80 09 00 00 [00:52:21]Write to MH i2c: E2 08 00 17 63 80 09 00 00 00 00 00 00 EC [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:21]Read from MH i2c: E2 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 17 63 00 90 00 EE [00:52:21]RAPDU: 90 00 [00:52:21]wFMCommunicate OK [00:52:21]SAM_PROTO_ClearQueue done [00:52:21]KKMCreateOFDPacket [00:52:21]OFDProtocolAddRootSTLVToBuf [00:52:21]FM_MakeSignedData [00:52:21]FM_MakeSignedData [00:52:21]SAM_PROTO_SignData [00:52:21]wFMCommunicate request_size=4 [00:52:21]MH_SAM_APDU [00:52:21]CAPDU: 80 0D 01 02 [00:52:21]Write to MH i2c: E2 08 00 18 63 80 0D 01 02 00 00 00 00 F4 [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:21]Read from MH i2c: E2 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 18 63 00 90 00 EF [00:52:21]RAPDU: 90 00 [00:52:21]wFMCommunicate OK [00:52:21]wFMCommunicate request_size=255 [00:52:21]MH_SAM_APDU [00:52:21]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 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 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 03 00 00 00 F4 03 04 00 C8 A5 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 [00:52:21]Write to MH i2c: E2 02 01 19 63 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 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 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 03 00 00 00 F4 03 04 00 C8 A5 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 00 C6 [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]OFD Sender: No OFD packet to send [00:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:21]Read from MH i2c: E2 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 19 63 00 90 00 F0 [00:52:21]RAPDU: 90 00 [00:52:21]wFMCommunicate OK [00:52:21]wFMCommunicate request_size=60 [00:52:21]MH_SAM_APDU [00:52:21]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 21 01 00 35 04 06 00 33 04 F2 C3 97 1A [00:52:21]Write to MH i2c: E2 3F 00 1A 63 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 21 01 00 35 04 06 00 33 04 F2 C3 97 1A 00 00 07 [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:21]Read from MH i2c: E2 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 03 00 1A 63 00 90 00 F1 [00:52:21]RAPDU: 90 00 [00:52:21]wFMCommunicate OK [00:52:21]wFMCommunicate request_size=4 [00:52:21]MH_SAM_APDU [00:52:21]CAPDU: 80 0D 03 02 [00:52:21]Write to MH i2c: E2 08 00 1B 63 80 0D 03 02 00 00 00 00 F9 [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:21]Read from MH i2c: E2 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 0B 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 0B 00 1B 63 00 41 A2 B1 7E FC BC 0F 83 90 00 56 [00:52:21]RAPDU: 41 A2 B1 7E FC BC 0F 83 90 00 [00:52:21]wFMCommunicate OK [00:52:21]SAM_PROTO_SignData done [00:52:21]FM_MakeSignedData done [00:52:21]CreateOFDProtocolMessage [00:52:21]wFMCommunicate request_size=4 [00:52:21]MH_SAM_APDU [00:52:21]CAPDU: 80 11 00 00 [00:52:21]Write to MH i2c: E2 08 00 1C 63 80 11 00 00 00 00 00 00 F9 [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:21]Read from MH i2c: E2 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 17 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: E2 17 00 1C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 46 [00:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:52:21]wFMCommunicate OK [00:52:21]CreateOFDProtocolMessage done [00:52:21]OFDSenderStorePacket 74043 [00:52:21]StoreOFDPacket docnum=74043 [00:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 41 01 00 00 D7 23 39 01 A1 1B 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 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 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 03 00 00 00 F4 03 04 00 C8 A5 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 21 01 00 35 04 06 00 33 04 F2 C3 97 1A 41 A2 B1 7E FC BC 0F 83 [00:52:21]CheckFolder [00:52:21]dirname=/storage/ofd_packets [00:52:21]CheckFolder done [00:52:21]ProducePacketName [00:52:21]name=ofd_packets/00074043 [00:52:21]NVStorageSaveData ofd_packets/00074043 [00:52:21]File name is /storage/ofd_packets/00074043 [00:52:21]Write 351 bytes [00:52:21]NVStorageSaveData done [00:52:21]OFDSenderStorePacket done [00:52:21]KKMCreateOFDPacket done [00:52:21]NVStorageSaveData kkm_last_timestamp [00:52:21]File name is /storage/kkm_last_timestamp [00:52:21]Write 4 bytes [00:52:21]NVStorageSaveData done [00:52:21]ExternCall_PrintAddStr [00:52:21]wPrintStart [00:52:21]Write to MH i2c: 01 00 00 1D 63 80 [00:52:21]Write i2c OK [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: 01 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: 01 07 00 [00:52:21]MH_I2C_Read... [00:52:21]Read from MH i2c: 01 07 00 1D 63 00 00 00 00 00 FF 0F 95 [00:52:21]RasterBufferAndPrint [00:52:21]line Счет N : (3)272874 [00:52:21]line ИНН: 02508201610067 [00:52:21]line Контрольно-Кассовый Чек [00:52:21]line ПРОДАЖА [00:52:21]line Товар: 4860103356604 [00:52:21]line Пиво Миллер Дженьюн Драфт 0,33л ст [00:52:21]line 1.000 * 190.00 [00:52:21]line = 190.00 [00:52:21]line НДС 12% НСП 1% [00:52:21]line > о реализуемом товаре [00:52:21]line ИТОГО: 190.00 [00:52:21]line НСП 1% : 1.68 [00:52:21]line НДС 12% : 20.18 [00:52:21]line Наличными: 190.00 [00:52:21]line Безнал.: 0.00 [00:52:21]line Место: АЗС № 133 "Партнер Нефть" [00:52:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [00:52:21]line СНО: Общий режим [00:52:21]line Чек 3 21.10.2024 00:52 [00:52:21]line Смена: 171 ФФД: 1.0 [00:52:21]line ЗНМ: 0300000020 [00:52:21]line РНМ: 0000000000161154 [00:52:21]line Версия ККМ: v1.0 [00:52:21]line ФМ: 0000000000963323 [00:52:21]line ФД: 74043 [00:52:21]line ФПД: 56096345790234 [00:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005224&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74043&fm=56096345790234&tin=02508201610067®Number=0000000000161154&sum=19000 [00:52:22]line 0 [00:52:22]OFD Sender: Processing packet 74043 [packets to send 15, broken 14] [00:52:22]ProducePacketName [00:52:22]name=ofd_packets/00074043 [00:52:22]OFD Sender: To server: pG, [00:52:22]CommunicateWithHost lk.salyk.kg:30040 [00:52:22]ConnectInit lk.salyk.kg [00:52:22]written 0, free lines is 4095 [00:52:22]Connected sock=10 [00:52:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 41 01 00 00 D7 23 39 01 A1 1B 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 30 34 06 04 3B 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 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 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 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 03 00 00 00 F4 03 04 00 C8 A5 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 21 01 00 35 04 06 00 33 04 F2 C3 97 1A 41 A2 B1 7E FC BC 0F 83 [00:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D6 A5 47 00 91 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 39 36 33 33 32 33 10 04 04 00 3B 21 01 00 F4 03 04 00 AB 4E 15 67 B6 04 01 00 00 C6 44 18 AB 3B 40 3E D8 [00:52:22]CommunicateWithHost err = 0 [00:52:22]CheckOFDResponse [00:52:22]1017 (14) - 77093643461234 [00:52:22]1041 (16) - 0000000000963323 [00:52:22]1040 (4) - 74043 [00:52:22]1012 (4) - 20.10.2024 18:40 [00:52:22]1206 (1) - 0 [00:52:22]OFD Sender: Remove packet 74043 [00:52:22]ProducePacketName [00:52:22]name=ofd_packets/00074043 [00:52:22]NVStorageDeleteData [00:52:22]Write to MH i2c: 01 00 00 45 63 A8 [00:52:22]Write i2c OK [00:52:22]MH_I2C_Read... [00:52:22]Read from MH i2c: 01 [00:52:22]MH_I2C_Read... [00:52:22]Read from MH i2c: 01 07 00 [00:52:22]MH_I2C_Read... [00:52:22]Read from MH i2c: 01 07 00 45 63 00 00 00 00 00 B4 0C 6F [00:52:22]RasterBufferAndPrint [00:52:22]line [00:52:22]line [00:52:22]line [00:52:22]line [00:52:22]line [00:52:22]written 0, free lines is 3256 [00:52:22]MH_Cut [00:52:22]Write to MH i2c: D1 01 00 4C 63 01 81 [00:52:22]Write i2c OK [00:52:22]MH_I2C_Read... [00:52:22]Read from MH i2c: D1 [00:52:22]MH_I2C_Read... [00:52:22]Read from MH i2c: D1 01 00 [00:52:22]MH_I2C_Read... [00:52:22]Read from MH i2c: D1 01 00 4C 63 00 80 [00:52:22]Write to MH i2c: 01 00 00 4D 63 B0 [00:52:22]Write i2c OK [00:52:22]MH_I2C_Read... [00:52:23]OFD Sender: No OFD packet to send [00:52:23]*** Cut start [00:52:23]*** Partial cut [00:52:23]*** CUTSNS_PIN = 1 [00:52:23]*** CUTSNS_PIN = 0 [00:52:23]*** Brake cut motor [00:52:24]Read from MH i2c: 01 [00:52:24]MH_I2C_Read... [00:52:24]*** Stop cut motor [00:52:24]*** Cut end [00:52:24]Read from MH i2c: 01 07 00 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: 01 07 00 4D 63 00 00 00 00 00 FF 0F C5 [00:52:24]process_action close_receipt done [00:52:24]requested_data is exist [00:52:24]produce_requested_data [00:52:24]requested_item fm.sn is exist - process it [00:52:24]wFMCommunicate request_size=4 [00:52:24]MH_SAM_APDU [00:52:24]CAPDU: 80 11 00 00 [00:52:24]Write to MH i2c: E2 08 00 4E 63 80 11 00 00 00 00 00 00 2B [00:52:24]Write i2c OK [00:52:24]MH_I2C_Read... [00:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:24]Read from MH i2c: E2 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: E2 17 00 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: E2 17 00 4E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 78 [00:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:52:24]wFMCommunicate OK [00:52:24]requested_item fd.num is exist - process it [00:52:24]SAM_PROTO_GetFieldsCounters [00:52:24]wFMCommunicate request_size=4 [00:52:24]MH_SAM_APDU [00:52:24]CAPDU: 80 13 00 00 [00:52:24]Write to MH i2c: E2 08 00 4F 63 80 13 00 00 00 00 00 00 2E [00:52:24]Write i2c OK [00:52:24]MH_I2C_Read... [00:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:24]Read from MH i2c: E2 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: E2 62 00 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: E2 62 00 4F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3B 21 01 00 0E 04 04 00 AB 00 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 53 [00:52:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3B 21 01 00 0E 04 04 00 AB 00 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:52:24]wFMCommunicate OK [00:52:24]SAM_PROTO_GetFieldsCounters done [00:52:24]requested_item shift.num is exist - process it [00:52:24]requested_item shift.opened is exist - process it [00:52:24]req_shift_opened [00:52:24]FM_GetShiftState [00:52:24]SAM_PROTO_GetShiftState [00:52:24]wFMCommunicate request_size=4 [00:52:24]MH_SAM_APDU [00:52:24]CAPDU: 80 13 01 00 [00:52:24]Write to MH i2c: E2 08 00 50 63 80 13 01 00 00 00 00 00 30 [00:52:24]Write i2c OK [00:52:24]MH_I2C_Read... [00:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:24]Read from MH i2c: E2 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: E2 0E 00 [00:52:24]MH_I2C_Read... [00:52:24]Read from MH i2c: E2 0E 00 50 63 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 73 [00:52:24]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:52:24]wFMCommunicate OK [00:52:24]SAM_PROTO_GetShiftState done [00:52:24]FM_GetShiftState done [00:52:24]req_shift_opened done [00:52:24]requested_item shift.open_date is exist - process it [00:52:24]req_shift_open_date [00:52:24]req_shift_open_date done [00:52:24]produce_requested_data done [00:52:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74043,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [00:52:24]process_action_free close_receipt [00:52:24]json_value_free [00:52:24]json_value_free done [00:52:24]process_json_proto returns [00:52:24]Send response to host [00:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74043,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [00:52:24]free response buf [00:52:24]execute_script done [00:52:24]execute_script returns [00:52:24]free content buf [00:52:24]Sock 8.Close socket [00:52:24]Sock 8.Thread stoped [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:34]accept exits with 9 [00:56:34]New connection [00:56:34]New thread 3067575652 created [00:56:34]Thread 3067432292 joined [00:56:34]Waiting for new connection... [00:56:34] Sock 9.Parse request [00:56:34]Sock 9.Check first char [00:56:34]Sock 9.First char is OK [00:56:34]request: POST /json_proto HTTP/1.0 [00:56:34]Method: POST [00:56:34]URL: /json_proto [00:56:34]Method is POST - this is cgi request [00:56:34]url: /json_proto [00:56:34]query_string will be loaded in cgi processing [00:56:34]execute_cgi json_proto POST (null) [00:56:34]execute_cgi path=json_proto method=POST [00:56:34]POST find Content-Length [00:56:34]Host: 172.17.44.196:8080 [00:56:34]Content-Length: 1213 [00:56:34]Content-Type: application/json [00:56:34] [00:56:34]POST finish read [00:56:34]Found Content-Length = 1213 [00:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272875", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" ] } } [00:56:34]execute_script... [00:56: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)272875", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" ] } } [00:56:34]POST & json_proto [00:56:34]process_json_proto [00:56:34]json parsed OK: [00:56:34]protocol is kg_v1.0 [00:56:34]action value=close_receipt [00:56:34]process_action close_receipt [00:56:34]cmd_close_receipt [00:56:34]MH_GetDate [00:56:34]Write to MH i2c: F0 00 00 51 63 A3 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: F0 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: F0 09 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: F0 09 00 51 63 00 C7 A6 15 67 E7 19 F8 65 F2 [00:56:34]GetLastDocTimeStamp 1729471944 [00:56:34]current date 1729472199 [00:56:34]FM_GetShiftState [00:56:34]SAM_PROTO_GetShiftState [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 13 01 00 [00:56:34]Write to MH i2c: E2 08 00 52 63 80 13 01 00 00 00 00 00 32 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0E 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0E 00 52 63 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 75 [00:56:34]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_GetShiftState done [00:56:34]FM_GetShiftState done [00:56:34]opened in 1729469981 [00:56:34]opened+sec_in_day 1729556381 [00:56:34]quantity*price = 13000 [00:56:34]sum+1 = 13001 [00:56:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400990 Семечки ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.85 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 4 21.10.2024 00:56 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74044 ФПД: 80757389775922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74044&fm=80757389775922&tin=02508201610067®Number=0000000000161154&sum=30000 0 [00:56:35]StoreToDocumentArchive [00:56:35]shift 171 fd 74044 [00:56:35]save to /storage/0171/doc_00074044 [00:56:35]save last doc name /storage/0171/doc_00074044 to /storage/kkm_last_doc_name [00:56:35]save OK [00:56:35]Clear old archive folders... [00:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=507 [00:56:35]tlvbuf is 00564AE0 [00:56:35]SAM_PROTO_ClearQueue [00:56:35]wFMCommunicate request_size=4 [00:56:35]MH_SAM_APDU [00:56:35]CAPDU: 80 09 00 00 [00:56:35]Write to MH i2c: E2 08 00 5F 63 80 09 00 00 00 00 00 00 34 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:35]Read from MH i2c: E2 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 5F 63 00 90 00 36 [00:56:35]RAPDU: 90 00 [00:56:35]wFMCommunicate OK [00:56:35]SAM_PROTO_ClearQueue done [00:56:35]KKMCreateOFDPacket [00:56:35]OFDProtocolAddRootSTLVToBuf [00:56:35]FM_MakeSignedData [00:56:35]FM_MakeSignedData [00:56:35]SAM_PROTO_SignData [00:56:35]wFMCommunicate request_size=4 [00:56:35]MH_SAM_APDU [00:56:35]CAPDU: 80 0D 01 02 [00:56:35]Write to MH i2c: E2 08 00 60 63 80 0D 01 02 00 00 00 00 3C [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:35]Read from MH i2c: E2 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: E2 03 00 60 63 00 90 00 37 [00:56:35]RAPDU: 90 00 [00:56:35]wFMCommunicate OK [00:56:35]wFMCommunicate request_size=255 [00:56:35]MH_SAM_APDU [00:56:35]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 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 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 [00:56:36]Write to MH i2c: E2 02 01 61 63 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 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 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 00 A8 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 61 63 00 90 00 38 [00:56:36]RAPDU: 90 00 [00:56:36]wFMCommunicate OK [00:56:36]wFMCommunicate request_size=255 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 0D 02 02 FA 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 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 71 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 04 00 00 00 F4 03 04 00 C7 A6 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 21 01 [00:56:36]Write to MH i2c: E2 02 01 62 63 80 0D 02 02 FA 00 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 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 71 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 04 00 00 00 F4 03 04 00 C7 A6 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 21 01 00 00 EA [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 62 63 00 90 00 39 [00:56:36]RAPDU: 90 00 [00:56:36]wFMCommunicate OK [00:56:36]wFMCommunicate request_size=16 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 49 72 CB 87 D4 32 [00:56:36]Write to MH i2c: E2 13 00 63 63 80 0D 02 02 0B 00 00 35 04 06 00 49 72 CB 87 D4 32 00 00 A8 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 03 00 63 63 00 90 00 3A [00:56:36]RAPDU: 90 00 [00:56:36]wFMCommunicate OK [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 0D 03 02 [00:56:36]Write to MH i2c: E2 08 00 64 63 80 0D 03 02 00 00 00 00 42 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0B 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0B 00 64 63 00 AF 0F 59 3D 48 47 16 1D 90 00 59 [00:56:36]RAPDU: AF 0F 59 3D 48 47 16 1D 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_SignData done [00:56:36]FM_MakeSignedData done [00:56:36]CreateOFDProtocolMessage [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 11 00 00 [00:56:36]Write to MH i2c: E2 08 00 65 63 80 11 00 00 00 00 00 00 42 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 65 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [00:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:56:36]wFMCommunicate OK [00:56:36]CreateOFDProtocolMessage done [00:56:36]OFDSenderStorePacket 74044 [00:56:36]StoreOFDPacket docnum=74044 [00:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 02 00 00 F9 C8 07 02 9C 90 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 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 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 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 71 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 04 00 00 00 F4 03 04 00 C7 A6 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 21 01 00 35 04 06 00 49 72 CB 87 D4 32 AF 0F 59 3D 48 47 16 1D [00:56:36]CheckFolder [00:56:36]dirname=/storage/ofd_packets [00:56:36]CheckFolder done [00:56:36]ProducePacketName [00:56:36]name=ofd_packets/00074044 [00:56:36]NVStorageSaveData ofd_packets/00074044 [00:56:36]File name is /storage/ofd_packets/00074044 [00:56:36]Write 557 bytes [00:56:36]NVStorageSaveData done [00:56:36]OFDSenderStorePacket done [00:56:36]KKMCreateOFDPacket done [00:56:36]NVStorageSaveData kkm_last_timestamp [00:56:36]File name is /storage/kkm_last_timestamp [00:56:36]Write 4 bytes [00:56:36]NVStorageSaveData done [00:56:36]ExternCall_PrintAddStr [00:56:36]wPrintStart [00:56:36]Write to MH i2c: 01 00 00 66 63 C9 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 07 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 07 00 66 63 00 00 00 00 00 FF 0F DE [00:56:36]RasterBufferAndPrint [00:56:36]line Счет N : (3)272875 [00:56:36]line ИНН: 02508201610067 [00:56:36]line Контрольно-Кассовый Чек [00:56:36]line ПРОДАЖА [00:56:36]line Товар: 2000036220012 [00:56:36]line Кофе Капучино XL(GABB TRADE) [00:56:36]line 1.000 * 130.00 [00:56:36]line = 130.00 [00:56:36]line НДС 12% НСП 1% [00:56:36]line > о реализуемом товаре [00:56:36]line Товар: 5449000005489 [00:56:36]line Вода Бонаква 1л б/г [00:56:36]line 1.000 * 50.00 [00:56:36]line = 50.00 [00:56:36]line НДС 12% НСП 1% [00:56:36]line > о реализуемом товаре [00:56:36]line Товар: 4630007400990 [00:56:36]line Семечки ДЖИНН Великан 100гр [00:56:36]line 1.000 * 120.00 [00:56:36]line = 120.00 [00:56:36]line НДС 12% НСП 1% [00:56:36]line > о реализуемом товаре [00:56:36]line ИТОГО: 300.00 [00:56:36]line НСП 1% : 2.65 [00:56:36]line НДС 12% : 31.85 [00:56:36]line Наличными: 300.00 [00:56:36]line Безнал.: 0.00 [00:56:36]line Место: АЗС № 133 "Партнер Нефть" [00:56:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [00:56:36]line СНО: Общий режим [00:56:36]line Чек 4 21.10.2024 00:56 [00:56:36]line Смена: 171 ФФД: 1.0 [00:56:36]line ЗНМ: 0300000020 [00:56:36]line РНМ: 0000000000161154 [00:56:36]line Версия ККМ: v1.0 [00:56:36]line ФМ: 0000000000963323 [00:56:36]line ФД: 74044 [00:56:36]line ФПД: 80757389775922 [00:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74044&fm=80757389775922&tin=02508201610067®Number=0000000000161154&sum=30000 [00:56:37]line 0 [00:56:37]OFD Sender: Processing packet 74044 [packets to send 15, broken 14] [00:56:37]ProducePacketName [00:56:37]name=ofd_packets/00074044 [00:56:37]OFD Sender: To server: pG, [00:56:37]CommunicateWithHost lk.salyk.kg:30040 [00:56:37]ConnectInit lk.salyk.kg [00:56:37]written 0, free lines is 4095 [00:56:37]Connected sock=10 [00:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 02 00 00 F9 C8 07 02 9C 90 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 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 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 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 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 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 71 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 04 00 00 00 F4 03 04 00 C7 A6 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 21 01 00 35 04 06 00 49 72 CB 87 D4 32 AF 0F 59 3D 48 47 16 1D [00:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 11 91 47 00 87 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 39 36 33 33 32 33 10 04 04 00 3C 21 01 00 F4 03 04 00 AB 4F 15 67 B6 04 01 00 00 10 3D FA CC CE B4 39 15 [00:56:37]CommunicateWithHost err = 0 [00:56:37]CheckOFDResponse [00:56:37]1017 (14) - 77093643461234 [00:56:37]1041 (16) - 0000000000963323 [00:56:37]1040 (4) - 74044 [00:56:37]1012 (4) - 20.10.2024 18:44 [00:56:37]1206 (1) - 0 [00:56:37]OFD Sender: Remove packet 74044 [00:56:37]ProducePacketName [00:56:37]name=ofd_packets/00074044 [00:56:37]NVStorageDeleteData [00:56:37]Write to MH i2c: 01 00 00 9B 63 FE [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: 01 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: 01 07 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: 01 07 00 9B 63 00 00 00 00 00 E3 0B F3 [00:56:37]RasterBufferAndPrint [00:56:37]line [00:56:37]line [00:56:37]line [00:56:37]line [00:56:37]line [00:56:37]written 0, free lines is 3048 [00:56:37]MH_Cut [00:56:37]Write to MH i2c: D1 01 00 A2 63 01 D7 [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: D1 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: D1 01 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: D1 01 00 A2 63 00 D6 [00:56:37]Write to MH i2c: 01 00 00 A3 63 06 [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:38]OFD Sender: No OFD packet to send [00:56:38]*** Cut start [00:56:38]*** Partial cut [00:56:38]*** CUTSNS_PIN = 1 [00:56:39]*** CUTSNS_PIN = 0 [00:56:39]*** Brake cut motor [00:56:39]Read from MH i2c: 01 [00:56:39]MH_I2C_Read... [00:56:39]*** Stop cut motor [00:56:39]*** Cut end [00:56:39]Read from MH i2c: 01 07 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: 01 07 00 A3 63 00 00 00 00 00 FF 0F 1B [00:56:39]process_action close_receipt done [00:56:39]requested_data is exist [00:56:39]produce_requested_data [00:56:39]requested_item fm.sn is exist - process it [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 11 00 00 [00:56:39]Write to MH i2c: E2 08 00 A4 63 80 11 00 00 00 00 00 00 81 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 17 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 17 00 A4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [00:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [00:56:39]wFMCommunicate OK [00:56:39]requested_item fd.num is exist - process it [00:56:39]SAM_PROTO_GetFieldsCounters [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 13 00 00 [00:56:39]Write to MH i2c: E2 08 00 A5 63 80 13 00 00 00 00 00 00 84 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:39]Read from MH i2c: E2 62 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 62 00 A5 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3C 21 01 00 0E 04 04 00 AB 00 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 AD [00:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3C 21 01 00 0E 04 04 00 AB 00 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:56:39]wFMCommunicate OK [00:56:39]SAM_PROTO_GetFieldsCounters done [00:56:39]requested_item shift.num is exist - process it [00:56:39]requested_item shift.opened is exist - process it [00:56:39]req_shift_opened [00:56:39]FM_GetShiftState [00:56:39]SAM_PROTO_GetShiftState [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 13 01 00 [00:56:39]Write to MH i2c: E2 08 00 A6 63 80 13 01 00 00 00 00 00 86 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 0E 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 0E 00 A6 63 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 C9 [00:56:39]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [00:56:39]wFMCommunicate OK [00:56:39]SAM_PROTO_GetShiftState done [00:56:39]FM_GetShiftState done [00:56:39]req_shift_opened done [00:56:39]requested_item shift.open_date is exist - process it [00:56:39]req_shift_open_date [00:56:39]req_shift_open_date done [00:56:39]produce_requested_data done [00:56:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74044,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [00:56:39]process_action_free close_receipt [00:56:39]json_value_free [00:56:39]json_value_free done [00:56:39]process_json_proto returns [00:56:39]Send response to host [00:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74044,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [00:56:39]free response buf [00:56:39]execute_script done [00:56:39]execute_script returns [00:56:39]free content buf [00:56:39]Sock 9.Close socket [00:56:39]Sock 9.Thread stoped [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:45]accept exits with 8 [01:01:45]New connection [01:01:45]New thread 3067432292 created [01:01:45]Thread 3067575652 joined [01:01:45]Waiting for new connection... [01:01:45] Sock 8.Parse request [01:01:45]Sock 8.Check first char [01:01:45]Sock 8.First char is OK [01:01:45]request: POST /json_proto HTTP/1.0 [01:01:45]Method: POST [01:01:45]URL: /json_proto [01:01:45]Method is POST - this is cgi request [01:01:45]url: /json_proto [01:01:45]query_string will be loaded in cgi processing [01:01:45]execute_cgi json_proto POST (null) [01:01:45]execute_cgi path=json_proto method=POST [01:01:45]POST find Content-Length [01:01:45]Host: 172.17.44.196:8080 [01:01:45]Content-Length: 1526 [01:01:45]Content-Type: application/json [01:01:45] [01:01:45]POST finish read [01:01:45]Found Content-Length = 1526 [01:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272876", "tax_sys" : 0, "items" : [ { "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" : 4.000, "sum" : 480.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 3.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 600.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:45]execute_script... [01:01: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)272876", "tax_sys" : 0, "items" : [ { "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" : 4.000, "sum" : 480.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 3.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 600.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:45]POST & json_proto [01:01:45]process_json_proto [01:01:45]json parsed OK: [01:01:45]protocol is kg_v1.0 [01:01:45]action value=close_receipt [01:01:45]process_action close_receipt [01:01:45]cmd_close_receipt [01:01:45]MH_GetDate [01:01:45]Write to MH i2c: F0 00 00 A7 63 F9 [01:01:45]Write i2c OK [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: F0 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: F0 09 00 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: F0 09 00 A7 63 00 FE A7 15 67 E7 19 F8 65 80 [01:01:46]GetLastDocTimeStamp 1729472199 [01:01:46]current date 1729472510 [01:01:46]FM_GetShiftState [01:01:46]SAM_PROTO_GetShiftState [01:01:46]wFMCommunicate request_size=4 [01:01:46]MH_SAM_APDU [01:01:46]CAPDU: 80 13 01 00 [01:01:46]Write to MH i2c: E2 08 00 A8 63 80 13 01 00 00 00 00 00 88 [01:01:46]Write i2c OK [01:01:46]MH_I2C_Read... [01:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:46]Read from MH i2c: E2 [01:01:46]MH_I2C_Read... [01:01:46]Read from MH i2c: E2 0E 00 [01:01:46]MH_I2C_Read... [01:01:46]Read from MH i2c: E2 0E 00 A8 63 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 CB [01:01:46]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [01:01:46]wFMCommunicate OK [01:01:46]SAM_PROTO_GetShiftState done [01:01:46]FM_GetShiftState done [01:01:46]opened in 1729469981 [01:01:46]opened+sec_in_day 1729556381 [01:01:46]quantity*price = 48000 [01:01:46]sum+1 = 48001 [01:01:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740757 Чипсы Чипсоны сметана, лук 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 3.000 * 10.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 5 21.10.2024 01:01 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74045 ФПД: 254076366285669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T010150&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74045&fm=254076366285669&tin=02508201610067®Number=0000000000161154&sum=60000 0 [01:01:47]StoreToDocumentArchive [01:01:47]shift 171 fd 74045 [01:01:47]save to /storage/0171/doc_00074045 [01:01:47]save last doc name /storage/0171/doc_00074045 to /storage/kkm_last_doc_name [01:01:47]save OK [01:01:47]Clear old archive folders... [01:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=630 [01:01:47]tlvbuf is 0039B5F0 [01:01:47]SAM_PROTO_ClearQueue [01:01:47]wFMCommunicate request_size=4 [01:01:47]MH_SAM_APDU [01:01:47]CAPDU: 80 09 00 00 [01:01:47]Write to MH i2c: E2 08 00 B5 63 80 09 00 00 00 00 00 00 8A [01:01:47]Write i2c OK [01:01:47]MH_I2C_Read... [01:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:47]Read from MH i2c: E2 [01:01:47]MH_I2C_Read... [01:01:47]Read from MH i2c: E2 03 00 [01:01:47]MH_I2C_Read... [01:01:47]Read from MH i2c: E2 03 00 B5 63 00 90 00 8C [01:01:47]RAPDU: 90 00 [01:01:47]wFMCommunicate OK [01:01:47]SAM_PROTO_ClearQueue done [01:01:47]KKMCreateOFDPacket [01:01:47]OFDProtocolAddRootSTLVToBuf [01:01:47]FM_MakeSignedData [01:01:47]FM_MakeSignedData [01:01:47]SAM_PROTO_SignData [01:01:47]wFMCommunicate request_size=4 [01:01:47]MH_SAM_APDU [01:01:47]CAPDU: 80 0D 01 02 [01:01:47]Write to MH i2c: E2 08 00 B6 63 80 0D 01 02 00 00 00 00 92 [01:01:47]Write i2c OK [01:01:47]MH_I2C_Read... [01:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:47]Read from MH i2c: E2 [01:01:47]MH_I2C_Read... [01:01:47]Read from MH i2c: E2 03 00 [01:01:47]MH_I2C_Read... [01:01:47]Read from MH i2c: E2 03 00 B6 63 00 90 00 8D [01:01:47]RAPDU: 90 00 [01:01:47]wFMCommunicate OK [01:01:47]wFMCommunicate request_size=255 [01:01:47]MH_SAM_APDU [01:01:47]CAPDU: 80 0D 02 02 FA 03 00 76 02 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 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 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 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:01:47]Write to MH i2c: E2 02 01 B7 63 80 0D 02 02 FA 00 03 00 76 02 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 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 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 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 00 00 65 [01:01:47]Write i2c OK [01:01:47]MH_I2C_Read... [01:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:47]Read from MH i2c: E2 [01:01:47]MH_I2C_Read... [01:01:47]Read from MH i2c: E2 03 00 [01:01:47]MH_I2C_Read... [01:01:47]Read from MH i2c: E2 03 00 B7 63 00 90 00 8E [01:01:47]RAPDU: 90 00 [01:01:47]wFMCommunicate OK [01:01:47]wFMCommunicate request_size=255 [01:01:47]MH_SAM_APDU [01:01:47]CAPDU: 80 0D 02 02 FA 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 [01:01:47]Write to MH i2c: E2 02 01 B8 63 80 0D 02 02 FA 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 2B [01:01:47]Write i2c OK [01:01:47]MH_I2C_Read... [01:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:48]Read from MH i2c: E2 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 03 00 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 03 00 B8 63 00 90 00 8F [01:01:48]RAPDU: 90 00 [01:01:48]wFMCommunicate OK [01:01:48]wFMCommunicate request_size=139 [01:01:48]MH_SAM_APDU [01:01:48]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 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 FE A7 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 21 01 00 35 04 06 00 E7 14 C3 8E EB 65 [01:01:48]Write to MH i2c: E2 8E 00 B9 63 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 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 FE A7 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 21 01 00 35 04 06 00 E7 14 C3 8E EB 65 00 00 D4 [01:01:48]Write i2c OK [01:01:48]MH_I2C_Read... [01:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:48]Read from MH i2c: E2 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 03 00 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 03 00 B9 63 00 90 00 90 [01:01:48]RAPDU: 90 00 [01:01:48]wFMCommunicate OK [01:01:48]wFMCommunicate request_size=4 [01:01:48]MH_SAM_APDU [01:01:48]CAPDU: 80 0D 03 02 [01:01:48]Write to MH i2c: E2 08 00 BA 63 80 0D 03 02 00 00 00 00 98 [01:01:48]Write i2c OK [01:01:48]MH_I2C_Read... [01:01:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:48]Read from MH i2c: E2 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 0B 00 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 0B 00 BA 63 00 C7 5B 31 E9 D0 8B C5 AD 90 00 A2 [01:01:48]RAPDU: C7 5B 31 E9 D0 8B C5 AD 90 00 [01:01:48]wFMCommunicate OK [01:01:48]SAM_PROTO_SignData done [01:01:48]FM_MakeSignedData done [01:01:48]CreateOFDProtocolMessage [01:01:48]wFMCommunicate request_size=4 [01:01:48]MH_SAM_APDU [01:01:48]CAPDU: 80 11 00 00 [01:01:48]Write to MH i2c: E2 08 00 BB 63 80 11 00 00 00 00 00 00 98 [01:01:48]Write i2c OK [01:01:48]MH_I2C_Read... [01:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:48]Read from MH i2c: E2 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 17 00 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: E2 17 00 BB 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [01:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [01:01:48]wFMCommunicate OK [01:01:48]CreateOFDProtocolMessage done [01:01:48]OFDSenderStorePacket 74045 [01:01:48]StoreOFDPacket docnum=74045 [01:01:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8A 02 00 00 3B F1 82 02 60 4C 5A 03 01 00 03 00 76 02 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 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 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 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 FE A7 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 21 01 00 35 04 06 00 E7 14 C3 8E EB 65 C7 5B 31 E9 D0 8B C5 AD [01:01:48]CheckFolder [01:01:48]dirname=/storage/ofd_packets [01:01:48]CheckFolder done [01:01:48]ProducePacketName [01:01:48]name=ofd_packets/00074045 [01:01:48]NVStorageSaveData ofd_packets/00074045 [01:01:48]File name is /storage/ofd_packets/00074045 [01:01:48]Write 680 bytes [01:01:48]NVStorageSaveData done [01:01:48]OFDSenderStorePacket done [01:01:48]KKMCreateOFDPacket done [01:01:48]NVStorageSaveData kkm_last_timestamp [01:01:48]File name is /storage/kkm_last_timestamp [01:01:48]Write 4 bytes [01:01:48]NVStorageSaveData done [01:01:48]ExternCall_PrintAddStr [01:01:48]wPrintStart [01:01:48]Write to MH i2c: 01 00 00 BC 63 1F [01:01:48]Write i2c OK [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: 01 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: 01 07 00 [01:01:48]MH_I2C_Read... [01:01:48]Read from MH i2c: 01 07 00 BC 63 00 00 00 00 00 FF 0F 34 [01:01:48]RasterBufferAndPrint [01:01:48]line Счет N : (3)272876 [01:01:48]line ИНН: 02508201610067 [01:01:48]line Контрольно-Кассовый Чек [01:01:48]line ПРОДАЖА [01:01:48]line Товар: 4600682009450 [01:01:48]line Пиво Балтика 9 креп 0,5л ст [01:01:48]line 4.000 * 120.00 [01:01:48]line = 480.00 [01:01:48]line НДС 12% НСП 1% [01:01:48]line > о реализуемом товаре [01:01:48]line Товар: 4607010740757 [01:01:48]line Чипсы Чипсоны сметана, лук 40г [01:01:48]line 1.000 * 45.00 [01:01:48]line = 45.00 [01:01:48]line НДС 12% НСП 1% [01:01:48]line > о реализуемом товаре [01:01:48]line Товар: 4607010740733 [01:01:48]line Чипсы Чипсоны шашлык 40г [01:01:48]line 1.000 * 45.00 [01:01:48]line = 45.00 [01:01:48]line НДС 12% НСП 1% [01:01:48]line > о реализуемом товаре [01:01:48]line Товар: 46226624 [01:01:48]line Mentos ПВ Клубника 6*100*2 [01:01:48]line 3.000 * 10.00 [01:01:48]line = 30.00 [01:01:48]line НДС 12% НСП 1% [01:01:48]line > о реализуемом товаре [01:01:48]line ИТОГО: 600.00 [01:01:48]line НСП 1% : 5.31 [01:01:48]line НДС 12% : 63.72 [01:01:48]line Наличными: 600.00 [01:01:48]line Безнал.: 0.00 [01:01:48]line Место: АЗС № 133 "Партнер Нефть" [01:01:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [01:01:48]line СНО: Общий режим [01:01:48]line Чек 5 21.10.2024 01:01 [01:01:48]line Смена: 171 ФФД: 1.0 [01:01:48]line ЗНМ: 0300000020 [01:01:48]line РНМ: 0000000000161154 [01:01:48]line Версия ККМ: v1.0 [01:01:48]line ФМ: 0000000000963323 [01:01:48]line ФД: 74045 [01:01:48]line ФПД: 254076366285669 [01:01:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T010150&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74045&fm=254076366285669&tin=02508201610067®Number=0000000000161154&sum=60000 [01:01:48]line 0 [01:01:48]OFD Sender: Processing packet 74045 [packets to send 15, broken 14] [01:01:48]ProducePacketName [01:01:48]name=ofd_packets/00074045 [01:01:48]OFD Sender: To server: pG, [01:01:48]CommunicateWithHost lk.salyk.kg:30040 [01:01:48]ConnectInit lk.salyk.kg [01:01:48]written 0, free lines is 4095 [01:01:48]Connected sock=10 [01:01:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8A 02 00 00 3B F1 82 02 60 4C 5A 03 01 00 03 00 76 02 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 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 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 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 FE A7 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 21 01 00 35 04 06 00 E7 14 C3 8E EB 65 C7 5B 31 E9 D0 8B C5 AD [01:01:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 83 7D 47 00 7D 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 39 36 33 33 32 33 10 04 04 00 3D 21 01 00 F4 03 04 00 E2 50 15 67 B6 04 01 00 00 05 7A DD D7 95 E8 58 A8 [01:01:49]CommunicateWithHost err = 0 [01:01:49]CheckOFDResponse [01:01:49]1017 (14) - 77093643461234 [01:01:49]1041 (16) - 0000000000963323 [01:01:49]1040 (4) - 74045 [01:01:49]1012 (4) - 20.10.2024 18:50 [01:01:49]1206 (1) - 0 [01:01:49]OFD Sender: Remove packet 74045 [01:01:49]ProducePacketName [01:01:49]name=ofd_packets/00074045 [01:01:49]NVStorageDeleteData [01:01:49]Write to MH i2c: 01 00 00 F6 63 59 [01:01:49]Write i2c OK [01:01:49]MH_I2C_Read... [01:01:49]Read from MH i2c: 01 [01:01:49]MH_I2C_Read... [01:01:49]Read from MH i2c: 01 07 00 [01:01:49]MH_I2C_Read... [01:01:49]Read from MH i2c: 01 07 00 F6 63 00 00 00 00 00 94 0B FF [01:01:49]RasterBufferAndPrint [01:01:49]line [01:01:49]line [01:01:49]line [01:01:49]line [01:01:49]line [01:01:49]written 0, free lines is 2971 [01:01:49]MH_Cut [01:01:49]Write to MH i2c: D1 01 00 FD 63 01 32 [01:01:49]Write i2c OK [01:01:49]MH_I2C_Read... [01:01:49]Read from MH i2c: D1 [01:01:49]MH_I2C_Read... [01:01:49]Read from MH i2c: D1 01 00 [01:01:49]MH_I2C_Read... [01:01:49]Read from MH i2c: D1 01 00 FD 63 00 31 [01:01:49]Write to MH i2c: 01 00 00 FE 63 61 [01:01:49]Write i2c OK [01:01:49]MH_I2C_Read... [01:01:49]OFD Sender: No OFD packet to send [01:01:50]*** Cut start [01:01:50]*** Partial cut [01:01:50]*** CUTSNS_PIN = 1 [01:01:50]*** CUTSNS_PIN = 0 [01:01:50]*** Brake cut motor [01:01:51]Read from MH i2c: 01 [01:01:51]MH_I2C_Read... [01:01:51]*** Stop cut motor [01:01:51]*** Cut end [01:01:51]Read from MH i2c: 01 07 00 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: 01 07 00 FE 63 00 00 00 00 00 FF 0F 76 [01:01:51]process_action close_receipt done [01:01:51]requested_data is exist [01:01:51]produce_requested_data [01:01:51]requested_item fm.sn is exist - process it [01:01:51]wFMCommunicate request_size=4 [01:01:51]MH_SAM_APDU [01:01:51]CAPDU: 80 11 00 00 [01:01:51]Write to MH i2c: E2 08 00 FF 63 80 11 00 00 00 00 00 00 DC [01:01:51]Write i2c OK [01:01:51]MH_I2C_Read... [01:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:51]Read from MH i2c: E2 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 17 00 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 17 00 FF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 29 [01:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [01:01:51]wFMCommunicate OK [01:01:51]requested_item fd.num is exist - process it [01:01:51]SAM_PROTO_GetFieldsCounters [01:01:51]wFMCommunicate request_size=4 [01:01:51]MH_SAM_APDU [01:01:51]CAPDU: 80 13 00 00 [01:01:51]Write to MH i2c: E2 08 00 00 64 80 13 00 00 00 00 00 00 E0 [01:01:51]Write i2c OK [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 [01:01:51]MH_I2C_Read... [01:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:51]Read from MH i2c: E2 62 00 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 62 00 00 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3D 21 01 00 0E 04 04 00 AB 00 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 0D [01:01:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3D 21 01 00 0E 04 04 00 AB 00 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 [01:01:51]wFMCommunicate OK [01:01:51]SAM_PROTO_GetFieldsCounters done [01:01:51]requested_item shift.num is exist - process it [01:01:51]requested_item shift.opened is exist - process it [01:01:51]req_shift_opened [01:01:51]FM_GetShiftState [01:01:51]SAM_PROTO_GetShiftState [01:01:51]wFMCommunicate request_size=4 [01:01:51]MH_SAM_APDU [01:01:51]CAPDU: 80 13 01 00 [01:01:51]Write to MH i2c: E2 08 00 01 64 80 13 01 00 00 00 00 00 E2 [01:01:51]Write i2c OK [01:01:51]MH_I2C_Read... [01:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:51]Read from MH i2c: E2 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 0E 00 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 0E 00 01 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 25 [01:01:51]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [01:01:51]wFMCommunicate OK [01:01:51]SAM_PROTO_GetShiftState done [01:01:51]FM_GetShiftState done [01:01:51]req_shift_opened done [01:01:51]requested_item shift.open_date is exist - process it [01:01:51]req_shift_open_date [01:01:51]req_shift_open_date done [01:01:51]produce_requested_data done [01:01:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74045,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [01:01:51]process_action_free close_receipt [01:01:51]json_value_free [01:01:51]json_value_free done [01:01:51]process_json_proto returns [01:01:51]Send response to host [01:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74045,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [01:01:51]free response buf [01:01:51]execute_script done [01:01:51]execute_script returns [01:01:51]free content buf [01:01:51]Sock 8.Close socket [01:01:51]Sock 8.Thread stoped [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:28]accept exits with 9 [01:16:28]New connection [01:16:28]New thread 3067575652 created [01:16:28]Thread 3067432292 joined [01:16:28]Waiting for new connection... [01:16:28] Sock 9.Parse request [01:16:28]Sock 9.Check first char [01:16:28]Sock 9.First char is OK [01:16:28]request: POST /json_proto HTTP/1.0 [01:16:28]Method: POST [01:16:28]URL: /json_proto [01:16:28]Method is POST - this is cgi request [01:16:28]url: /json_proto [01:16:28]query_string will be loaded in cgi processing [01:16:28]execute_cgi json_proto POST (null) [01:16:28]execute_cgi path=json_proto method=POST [01:16:28]POST find Content-Length [01:16:28]Host: 172.17.44.196:8080 [01:16:28]Content-Length: 669 [01:16:28]Content-Type: application/json [01:16:28] [01:16:28]POST finish read [01:16:28]Found Content-Length = 669 [01:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272877", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:28]execute_script... [01:16: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)272877", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:28]POST & json_proto [01:16:28]process_json_proto [01:16:28]json parsed OK: [01:16:28]protocol is kg_v1.0 [01:16:28]action value=close_receipt [01:16:28]process_action close_receipt [01:16:28]cmd_close_receipt [01:16:28]MH_GetDate [01:16:28]Write to MH i2c: F0 00 00 02 64 55 [01:16:28]Write i2c OK [01:16:28]MH_I2C_Read... [01:16:28]Read from MH i2c: F0 [01:16:28]MH_I2C_Read... [01:16:28]Read from MH i2c: F0 09 00 [01:16:28]MH_I2C_Read... [01:16:28]Read from MH i2c: F0 09 00 02 64 00 70 AB 15 67 E7 19 F8 65 52 [01:16:28]GetLastDocTimeStamp 1729472510 [01:16:28]current date 1729473392 [01:16:28]FM_GetShiftState [01:16:28]SAM_PROTO_GetShiftState [01:16:28]wFMCommunicate request_size=4 [01:16:28]MH_SAM_APDU [01:16:28]CAPDU: 80 13 01 00 [01:16:28]Write to MH i2c: E2 08 00 03 64 80 13 01 00 00 00 00 00 E4 [01:16:28]Write i2c OK [01:16:28]MH_I2C_Read... [01:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:28]Read from MH i2c: E2 [01:16:28]MH_I2C_Read... [01:16:28]Read from MH i2c: E2 0E 00 [01:16:28]MH_I2C_Read... [01:16:28]Read from MH i2c: E2 0E 00 03 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 27 [01:16:28]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [01:16:28]wFMCommunicate OK [01:16:28]SAM_PROTO_GetShiftState done [01:16:28]FM_GetShiftState done [01:16:28]opened in 1729469981 [01:16:28]opened+sec_in_day 1729556381 [01:16:28]quantity*price = 9300 [01:16:28]sum+1 = 9301 [01:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 93.00 НСП 1% : 0.82 НДС 12% : 9.88 Наличными: 93.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 6 21.10.2024 01:16 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74046 ФПД: 260651001343795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74046&fm=260651001343795&tin=02508201610067®Number=0000000000161154&sum=9300 0 [01:16:29]StoreToDocumentArchive [01:16:29]shift 171 fd 74046 [01:16:29]save to /storage/0171/doc_00074046 [01:16:29]save last doc name /storage/0171/doc_00074046 to /storage/kkm_last_doc_name [01:16:29]save OK [01:16:29]Clear old archive folders... [01:16:29]ProcessDocumentItem done err = 0, tmpTLVsize=288 [01:16:29]tlvbuf is 0032A200 [01:16:29]SAM_PROTO_ClearQueue [01:16:29]wFMCommunicate request_size=4 [01:16:29]MH_SAM_APDU [01:16:29]CAPDU: 80 09 00 00 [01:16:29]Write to MH i2c: E2 08 00 10 64 80 09 00 00 00 00 00 00 E6 [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:29]Read from MH i2c: E2 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 10 64 00 90 00 E8 [01:16:29]RAPDU: 90 00 [01:16:29]wFMCommunicate OK [01:16:29]SAM_PROTO_ClearQueue done [01:16:29]KKMCreateOFDPacket [01:16:29]OFDProtocolAddRootSTLVToBuf [01:16:29]FM_MakeSignedData [01:16:29]FM_MakeSignedData [01:16:29]SAM_PROTO_SignData [01:16:29]wFMCommunicate request_size=4 [01:16:29]MH_SAM_APDU [01:16:29]CAPDU: 80 0D 01 02 [01:16:29]Write to MH i2c: E2 08 00 11 64 80 0D 01 02 00 00 00 00 EE [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:29]Read from MH i2c: E2 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 11 64 00 90 00 E9 [01:16:29]RAPDU: 90 00 [01:16:29]wFMCommunicate OK [01:16:29]wFMCommunicate request_size=255 [01:16:29]MH_SAM_APDU [01:16:29]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 70 AB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 [01:16:29]Write to MH i2c: E2 02 01 12 64 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 70 AB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 00 00 4A [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:29]Read from MH i2c: E2 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 12 64 00 90 00 EA [01:16:29]RAPDU: 90 00 [01:16:29]wFMCommunicate OK [01:16:29]wFMCommunicate request_size=47 [01:16:29]MH_SAM_APDU [01:16:29]CAPDU: 80 0D 02 02 2A 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 21 01 00 35 04 06 00 ED 0F 8A 58 6F 33 [01:16:29]Write to MH i2c: E2 32 00 13 64 80 0D 02 02 2A 00 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 21 01 00 35 04 06 00 ED 0F 8A 58 6F 33 00 00 86 [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:29]Read from MH i2c: E2 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 03 00 13 64 00 90 00 EB [01:16:29]RAPDU: 90 00 [01:16:29]wFMCommunicate OK [01:16:29]wFMCommunicate request_size=4 [01:16:29]MH_SAM_APDU [01:16:29]CAPDU: 80 0D 03 02 [01:16:29]Write to MH i2c: E2 08 00 14 64 80 0D 03 02 00 00 00 00 F3 [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:29]Read from MH i2c: E2 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 0B 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 0B 00 14 64 00 27 AE 09 26 CC 4F B7 DF 90 00 A9 [01:16:29]RAPDU: 27 AE 09 26 CC 4F B7 DF 90 00 [01:16:29]wFMCommunicate OK [01:16:29]SAM_PROTO_SignData done [01:16:29]FM_MakeSignedData done [01:16:29]CreateOFDProtocolMessage [01:16:29]wFMCommunicate request_size=4 [01:16:29]MH_SAM_APDU [01:16:29]CAPDU: 80 11 00 00 [01:16:29]Write to MH i2c: E2 08 00 15 64 80 11 00 00 00 00 00 00 F3 [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:29]Read from MH i2c: E2 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 17 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: E2 17 00 15 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [01:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [01:16:29]wFMCommunicate OK [01:16:29]CreateOFDProtocolMessage done [01:16:29]OFDSenderStorePacket 74046 [01:16:29]StoreOFDPacket docnum=74046 [01:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 34 01 00 00 3A A6 2C 01 5A 87 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 70 AB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 21 01 00 35 04 06 00 ED 0F 8A 58 6F 33 27 AE 09 26 CC 4F B7 DF [01:16:29]CheckFolder [01:16:29]dirname=/storage/ofd_packets [01:16:29]CheckFolder done [01:16:29]ProducePacketName [01:16:29]name=ofd_packets/00074046 [01:16:29]NVStorageSaveData ofd_packets/00074046 [01:16:29]File name is /storage/ofd_packets/00074046 [01:16:29]Write 338 bytes [01:16:29]NVStorageSaveData done [01:16:29]OFDSenderStorePacket done [01:16:29]KKMCreateOFDPacket done [01:16:29]NVStorageSaveData kkm_last_timestamp [01:16:29]File name is /storage/kkm_last_timestamp [01:16:29]Write 4 bytes [01:16:29]NVStorageSaveData done [01:16:29]ExternCall_PrintAddStr [01:16:29]wPrintStart [01:16:29]Write to MH i2c: 01 00 00 16 64 7A [01:16:29]Write i2c OK [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: 01 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: 01 07 00 [01:16:29]MH_I2C_Read... [01:16:29]Read from MH i2c: 01 07 00 16 64 00 00 00 00 00 FF 0F 8F [01:16:29]RasterBufferAndPrint [01:16:29]line Счет N : (3)272877 [01:16:29]line ИНН: 02508201610067 [01:16:29]line Контрольно-Кассовый Чек [01:16:29]line ПРОДАЖА [01:16:29]line Товар: 4603290004879 [01:16:29]line Печ.сах.FORSITE Сэнд.кокос.вк [01:16:29]line 1.000 * 93.00 [01:16:29]line = 93.00 [01:16:29]line НДС 12% НСП 1% [01:16:29]line > о реализуемом товаре [01:16:29]line ИТОГО: 93.00 [01:16:29]line НСП 1% : 0.82 [01:16:29]line НДС 12% : 9.88 [01:16:29]line Наличными: 93.00 [01:16:29]line Безнал.: 0.00 [01:16:29]line Место: АЗС № 133 "Партнер Нефть" [01:16:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [01:16:29]line СНО: Общий режим [01:16:29]line Чек 6 21.10.2024 01:16 [01:16:29]line Смена: 171 ФФД: 1.0 [01:16:29]line ЗНМ: 0300000020 [01:16:29]line РНМ: 0000000000161154 [01:16:29]line Версия ККМ: v1.0 [01:16:29]line ФМ: 0000000000963323 [01:16:29]line ФД: 74046 [01:16:29]line ФПД: 260651001343795 [01:16:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74046&fm=260651001343795&tin=02508201610067®Number=0000000000161154&sum=9300 [01:16:30]line 0 [01:16:30]OFD Sender: Processing packet 74046 [packets to send 15, broken 14] [01:16:30]ProducePacketName [01:16:30]name=ofd_packets/00074046 [01:16:30]OFD Sender: To server: pG, [01:16:30]CommunicateWithHost lk.salyk.kg:30040 [01:16:30]ConnectInit lk.salyk.kg [01:16:30]written 0, free lines is 4095 [01:16:30]Connected sock=10 [01:16:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 34 01 00 00 3A A6 2C 01 5A 87 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 70 AB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 21 01 00 35 04 06 00 ED 0F 8A 58 6F 33 27 AE 09 26 CC 4F B7 DF [01:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 97 D1 47 00 13 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 39 36 33 33 32 33 10 04 04 00 3E 21 01 00 F4 03 04 00 54 54 15 67 B6 04 01 00 00 E3 A3 39 16 22 63 58 FD [01:16:30]CommunicateWithHost err = 0 [01:16:30]CheckOFDResponse [01:16:30]1017 (14) - 77093643461234 [01:16:30]1041 (16) - 0000000000963323 [01:16:30]1040 (4) - 74046 [01:16:30]1012 (4) - 20.10.2024 19:04 [01:16:30]1206 (1) - 0 [01:16:30]OFD Sender: Remove packet 74046 [01:16:30]ProducePacketName [01:16:30]name=ofd_packets/00074046 [01:16:30]NVStorageDeleteData [01:16:30]Write to MH i2c: 01 00 00 3D 64 A1 [01:16:30]Write i2c OK [01:16:30]MH_I2C_Read... [01:16:30]Read from MH i2c: 01 [01:16:30]MH_I2C_Read... [01:16:30]Read from MH i2c: 01 07 00 [01:16:30]MH_I2C_Read... [01:16:30]Read from MH i2c: 01 07 00 3D 64 00 00 00 00 00 CA 0C 7E [01:16:30]RasterBufferAndPrint [01:16:30]line [01:16:30]line [01:16:30]line [01:16:30]line [01:16:30]line [01:16:30]written 0, free lines is 3277 [01:16:30]MH_Cut [01:16:30]Write to MH i2c: D1 01 00 44 64 01 7A [01:16:30]Write i2c OK [01:16:30]MH_I2C_Read... [01:16:30]Read from MH i2c: D1 [01:16:30]MH_I2C_Read... [01:16:30]Read from MH i2c: D1 01 00 [01:16:30]MH_I2C_Read... [01:16:30]Read from MH i2c: D1 01 00 44 64 00 79 [01:16:30]Write to MH i2c: 01 00 00 45 64 A9 [01:16:30]Write i2c OK [01:16:30]MH_I2C_Read... [01:16:31]OFD Sender: No OFD packet to send [01:16:31]*** Cut start [01:16:31]*** Partial cut [01:16:31]*** CUTSNS_PIN = 1 [01:16:31]*** CUTSNS_PIN = 0 [01:16:31]*** Brake cut motor [01:16:32]Read from MH i2c: 01 [01:16:32]MH_I2C_Read... [01:16:32]*** Stop cut motor [01:16:32]*** Cut end [01:16:32]Read from MH i2c: 01 07 00 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: 01 07 00 45 64 00 00 00 00 00 FF 0F BE [01:16:32]process_action close_receipt done [01:16:32]requested_data is exist [01:16:32]produce_requested_data [01:16:32]requested_item fm.sn is exist - process it [01:16:32]wFMCommunicate request_size=4 [01:16:32]MH_SAM_APDU [01:16:32]CAPDU: 80 11 00 00 [01:16:32]Write to MH i2c: E2 08 00 46 64 80 11 00 00 00 00 00 00 24 [01:16:32]Write i2c OK [01:16:32]MH_I2C_Read... [01:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:32]Read from MH i2c: E2 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: E2 17 00 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: E2 17 00 46 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 71 [01:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [01:16:32]wFMCommunicate OK [01:16:32]requested_item fd.num is exist - process it [01:16:32]SAM_PROTO_GetFieldsCounters [01:16:32]wFMCommunicate request_size=4 [01:16:32]MH_SAM_APDU [01:16:32]CAPDU: 80 13 00 00 [01:16:32]Write to MH i2c: E2 08 00 47 64 80 13 00 00 00 00 00 00 27 [01:16:32]Write i2c OK [01:16:32]MH_I2C_Read... [01:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:32]Read from MH i2c: E2 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: E2 62 00 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: E2 62 00 47 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3E 21 01 00 0E 04 04 00 AB 00 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 58 [01:16:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3E 21 01 00 0E 04 04 00 AB 00 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 [01:16:32]wFMCommunicate OK [01:16:32]SAM_PROTO_GetFieldsCounters done [01:16:32]requested_item shift.num is exist - process it [01:16:32]requested_item shift.opened is exist - process it [01:16:32]req_shift_opened [01:16:32]FM_GetShiftState [01:16:32]SAM_PROTO_GetShiftState [01:16:32]wFMCommunicate request_size=4 [01:16:32]MH_SAM_APDU [01:16:32]CAPDU: 80 13 01 00 [01:16:32]Write to MH i2c: E2 08 00 48 64 80 13 01 00 00 00 00 00 29 [01:16:32]Write i2c OK [01:16:32]MH_I2C_Read... [01:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:32]Read from MH i2c: E2 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: E2 0E 00 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: E2 0E 00 48 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 6C [01:16:32]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [01:16:32]wFMCommunicate OK [01:16:32]SAM_PROTO_GetShiftState done [01:16:32]FM_GetShiftState done [01:16:32]req_shift_opened done [01:16:32]requested_item shift.open_date is exist - process it [01:16:32]req_shift_open_date [01:16:32]req_shift_open_date done [01:16:32]produce_requested_data done [01:16:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74046,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [01:16:32]process_action_free close_receipt [01:16:32]json_value_free [01:16:32]json_value_free done [01:16:32]process_json_proto returns [01:16:32]Send response to host [01:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74046,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [01:16:32]free response buf [01:16:32]execute_script done [01:16:32]execute_script returns [01:16:32]free content buf [01:16:32]Sock 9.Close socket [01:16:32]Sock 9.Thread stoped [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]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:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:04]accept exits with 8 [01:48:04]New connection [01:48:04]New thread 3067432292 created [01:48:04]Thread 3067575652 joined [01:48:04]Waiting for new connection... [01:48:04] Sock 8.Parse request [01:48:04]Sock 8.Check first char [01:48:04]Sock 8.First char is OK [01:48:04]request: POST /json_proto HTTP/1.0 [01:48:04]Method: POST [01:48:04]URL: /json_proto [01:48:04]Method is POST - this is cgi request [01:48:04]url: /json_proto [01:48:04]query_string will be loaded in cgi processing [01:48:04]execute_cgi json_proto POST (null) [01:48:04]execute_cgi path=json_proto method=POST [01:48:04]POST find Content-Length [01:48:04]Host: 172.17.44.196:8080 [01:48:04]Content-Length: 1269 [01:48:04]Content-Type: application/json [01:48:04] [01:48:04]POST finish read [01:48:04]Found Content-Length = 1269 [01:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272878", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.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: Mbank", "payments": [ { "type": 1, "sum" : 875.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:48:04]execute_script... [01:48: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)272878", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.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: Mbank", "payments": [ { "type": 1, "sum" : 875.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:48:04]POST & json_proto [01:48:04]process_json_proto [01:48:04]json parsed OK: [01:48:04]protocol is kg_v1.0 [01:48:04]action value=close_receipt [01:48:04]process_action close_receipt [01:48:04]cmd_close_receipt [01:48:04]MH_GetDate [01:48:04]Write to MH i2c: F0 00 00 49 64 9C [01:48:04]Write i2c OK [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: F0 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: F0 09 00 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: F0 09 00 49 64 00 D9 B2 15 67 E7 19 F8 65 09 [01:48:04]GetLastDocTimeStamp 1729473392 [01:48:04]current date 1729475289 [01:48:04]FM_GetShiftState [01:48:04]SAM_PROTO_GetShiftState [01:48:04]wFMCommunicate request_size=4 [01:48:04]MH_SAM_APDU [01:48:04]CAPDU: 80 13 01 00 [01:48:04]Write to MH i2c: E2 08 00 4A 64 80 13 01 00 00 00 00 00 2B [01:48:04]Write i2c OK [01:48:04]MH_I2C_Read... [01:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:04]Read from MH i2c: E2 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: E2 0E 00 [01:48:04]MH_I2C_Read... [01:48:04]Read from MH i2c: E2 0E 00 4A 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 6E [01:48:04]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [01:48:04]wFMCommunicate OK [01:48:04]SAM_PROTO_GetShiftState done [01:48:04]FM_GetShiftState done [01:48:04]opened in 1729469981 [01:48:04]opened+sec_in_day 1729556381 [01:48:04]quantity*price = 55500 [01:48:04]sum+1 = 55501 [01:48:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480517 Пиво Живое 1л ПЭТ 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 875.00 НСП 1% : 7.74 НДС 12% : 92.92 Наличными: 0.00 Безнал.: 875.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 7 21.10.2024 01:48 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 74047 ФПД: 87308263804126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014809&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74047&fm=87308263804126&tin=02508201610067®Number=0000000000161154&sum=87500 0 [01:48:05]StoreToDocumentArchive [01:48:05]shift 171 fd 74047 [01:48:05]save to /storage/0171/doc_00074047 [01:48:05]save last doc name /storage/0171/doc_00074047 to /storage/kkm_last_doc_name [01:48:05]save OK [01:48:05]Clear old archive folders... [01:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=482 [01:48:05]tlvbuf is 00329D50 [01:48:05]SAM_PROTO_ClearQueue [01:48:05]wFMCommunicate request_size=4 [01:48:05]MH_SAM_APDU [01:48:05]CAPDU: 80 09 00 00 [01:48:05]Write to MH i2c: E2 08 00 57 64 80 09 00 00 00 00 00 00 2D [01:48:05]Write i2c OK [01:48:05]MH_I2C_Read... [01:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:48:05]Read from MH i2c: E2 [01:48:05]MH_I2C_Read... [01:48:05]Read from MH i2c: E2 03 00 [01:48:05]MH_I2C_Read... [01:48:05]Read from MH i2c: E2 03 00 57 64 00 90 00 2F [01:48:05]RAPDU: 90 00 [01:48:05]wFMCommunicate OK [01:48:05]SAM_PROTO_ClearQueue done [01:48:05]KKMCreateOFDPacket [01:48:05]OFDProtocolAddRootSTLVToBuf [01:48:05]FM_MakeSignedData [01:48:05]FM_MakeSignedData [01:48:05]SAM_PROTO_SignData [01:48:05]wFMCommunicate request_size=4 [01:48:05]MH_SAM_APDU [01:48:05]CAPDU: 80 0D 01 02 [01:48:05]Write to MH i2c: E2 08 00 58 64 80 0D 01 02 00 00 00 00 35 [01:48:05]Write i2c OK [01:48:05]MH_I2C_Read... [01:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:48:05]Read from MH i2c: E2 [01:48:05]MH_I2C_Read... [01:48:05]Read from MH i2c: E2 03 00 [01:48:05]MH_I2C_Read... [01:48:05]Read from MH i2c: E2 03 00 58 64 00 90 00 30 [01:48:05]RAPDU: 90 00 [01:48:05]wFMCommunicate OK [01:48:05]wFMCommunicate request_size=255 [01:48:05]MH_SAM_APDU [01:48:05]CAPDU: 80 0D 02 02 FA 03 00 E2 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 [01:48:06]Write to MH i2c: E2 02 01 59 64 80 0D 02 02 FA 00 03 00 E2 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 00 00 DE [01:48:06]Write i2c OK [01:48:06]MH_I2C_Read... [01:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:06]Read from MH i2c: E2 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 03 00 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [01:48:06]RAPDU: 90 00 [01:48:06]wFMCommunicate OK [01:48:06]wFMCommunicate request_size=241 [01:48:06]MH_SAM_APDU [01:48:06]CAPDU: 80 0D 02 02 EC D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 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 50 46 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 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 55 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D9 B2 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 21 01 00 35 04 06 00 4F 68 0A 0C CC DE [01:48:06]Write to MH i2c: E2 F4 00 5A 64 80 0D 02 02 EC 00 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 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 50 46 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 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 55 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D9 B2 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 21 01 00 35 04 06 00 4F 68 0A 0C CC DE 00 00 54 [01:48:06]Write i2c OK [01:48:06]MH_I2C_Read... [01:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:06]Read from MH i2c: E2 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 03 00 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 03 00 5A 64 00 90 00 32 [01:48:06]RAPDU: 90 00 [01:48:06]wFMCommunicate OK [01:48:06]wFMCommunicate request_size=4 [01:48:06]MH_SAM_APDU [01:48:06]CAPDU: 80 0D 03 02 [01:48:06]Write to MH i2c: E2 08 00 5B 64 80 0D 03 02 00 00 00 00 3A [01:48:06]Write i2c OK [01:48:06]MH_I2C_Read... [01:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:48:06]Read from MH i2c: E2 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 0B 00 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 0B 00 5B 64 00 11 B0 69 7B A6 8A D5 20 90 00 05 [01:48:06]RAPDU: 11 B0 69 7B A6 8A D5 20 90 00 [01:48:06]wFMCommunicate OK [01:48:06]SAM_PROTO_SignData done [01:48:06]FM_MakeSignedData done [01:48:06]CreateOFDProtocolMessage [01:48:06]wFMCommunicate request_size=4 [01:48:06]MH_SAM_APDU [01:48:06]CAPDU: 80 11 00 00 [01:48:06]Write to MH i2c: E2 08 00 5C 64 80 11 00 00 00 00 00 00 3A [01:48:06]Write i2c OK [01:48:06]MH_I2C_Read... [01:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:06]Read from MH i2c: E2 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 17 00 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: E2 17 00 5C 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 87 [01:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [01:48:06]wFMCommunicate OK [01:48:06]CreateOFDProtocolMessage done [01:48:06]OFDSenderStorePacket 74047 [01:48:06]StoreOFDPacket docnum=74047 [01:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F6 01 00 00 18 BA EE 01 4A B4 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 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 50 46 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 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 55 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D9 B2 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 21 01 00 35 04 06 00 4F 68 0A 0C CC DE 11 B0 69 7B A6 8A D5 20 [01:48:06]CheckFolder [01:48:06]dirname=/storage/ofd_packets [01:48:06]CheckFolder done [01:48:06]ProducePacketName [01:48:06]name=ofd_packets/00074047 [01:48:06]NVStorageSaveData ofd_packets/00074047 [01:48:06]File name is /storage/ofd_packets/00074047 [01:48:06]Write 532 bytes [01:48:06]NVStorageSaveData done [01:48:06]OFDSenderStorePacket done [01:48:06]KKMCreateOFDPacket done [01:48:06]NVStorageSaveData kkm_last_timestamp [01:48:06]File name is /storage/kkm_last_timestamp [01:48:06]Write 4 bytes [01:48:06]NVStorageSaveData done [01:48:06]ExternCall_PrintAddStr [01:48:06]wPrintStart [01:48:06]Write to MH i2c: 01 00 00 5D 64 C1 [01:48:06]Write i2c OK [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: 01 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: 01 07 00 [01:48:06]MH_I2C_Read... [01:48:06]Read from MH i2c: 01 07 00 5D 64 00 00 00 00 00 FF 0F D6 [01:48:06]RasterBufferAndPrint [01:48:06]line Счет N : (3)272878 [01:48:06]line ИНН: 02508201610067 [01:48:06]line Контрольно-Кассовый Чек [01:48:06]line ПРОДАЖА [01:48:06]line Товар: 4700001061098 [01:48:06]line Коньяк Семетей 0,5л [01:48:06]line 1.000 * 555.00 [01:48:06]line = 555.00 [01:48:06]line НДС 12% НСП 1% [01:48:06]line > о реализуемом товаре [01:48:06]line Товар: 48743587 [01:48:06]line Сигареты Winston XStyle Silver [01:48:06]line 1.000 * 140.00 [01:48:06]line = 140.00 [01:48:06]line НДС 12% НСП 1% [01:48:06]line > о реализуемом товаре [01:48:06]line Товар: 4700000480517 [01:48:06]line Пиво Живое 1л ПЭТ [01:48:06]line 1.000 * 180.00 [01:48:06]line = 180.00 [01:48:06]line НДС 12% НСП 1% [01:48:06]line > о реализуемом товаре [01:48:06]line ИТОГО: 875.00 [01:48:06]line НСП 1% : 7.74 [01:48:06]line НДС 12% : 92.92 [01:48:06]line Наличными: 0.00 [01:48:06]line Безнал.: 875.00 [01:48:06]line Место: АЗС № 133 "Партнер Нефть" [01:48:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [01:48:06]line СНО: Общий режим [01:48:06]line Чек 7 21.10.2024 01:48 [01:48:06]line Смена: 171 ФФД: 1.0 [01:48:06]line ЗНМ: 0300000020 [01:48:06]line РНМ: 0000000000161154 [01:48:06]line Версия ККМ: v1.0 [01:48:06]line Платежная система: Mbank [01:48:06]line ФМ: 0000000000963323 [01:48:06]line ФД: 74047 [01:48:06]line ФПД: 87308263804126 [01:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014809&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74047&fm=87308263804126&tin=02508201610067®Number=0000000000161154&sum=87500 [01:48:06]line 0 [01:48:06]written 0, free lines is 4095 [01:48:06]OFD Sender: Processing packet 74047 [packets to send 15, broken 14] [01:48:06]ProducePacketName [01:48:06]name=ofd_packets/00074047 [01:48:06]OFD Sender: To server: pG, [01:48:06]CommunicateWithHost lk.salyk.kg:30040 [01:48:06]ConnectInit lk.salyk.kg [01:48:06]Connected sock=10 [01:48:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F6 01 00 00 18 BA EE 01 4A B4 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 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 50 46 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 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 55 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D9 B2 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 21 01 00 35 04 06 00 4F 68 0A 0C CC DE 11 B0 69 7B A6 8A D5 20 [01:48:07]Write to MH i2c: 01 00 00 92 64 F6 [01:48:07]Write i2c OK [01:48:07]MH_I2C_Read... [01:48:07]Read from MH i2c: 01 [01:48:07]MH_I2C_Read... [01:48:07]Read from MH i2c: 01 07 00 [01:48:07]MH_I2C_Read... [01:48:07]Read from MH i2c: 01 07 00 92 64 00 00 00 00 00 F3 0B FB [01:48:07]RasterBufferAndPrint [01:48:07]line [01:48:07]line [01:48:07]line [01:48:07]line [01:48:07]line [01:48:07]written 0, free lines is 3064 [01:48:07]MH_Cut [01:48:07]Write to MH i2c: D1 01 00 99 64 01 CF [01:48:07]Write i2c OK [01:48:07]MH_I2C_Read... [01:48:07]Read from MH i2c: D1 [01:48:07]MH_I2C_Read... [01:48:07]Read from MH i2c: D1 01 00 [01:48:07]MH_I2C_Read... [01:48:07]Read from MH i2c: D1 01 00 99 64 00 CE [01:48:07]Write to MH i2c: 01 00 00 9A 64 FE [01:48:07]Write i2c OK [01:48:07]MH_I2C_Read... [01:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4C 27 47 00 57 87 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 39 36 33 33 32 33 10 04 04 00 3F 21 01 00 F4 03 04 00 BC 5B 15 67 B6 04 01 00 00 5B C4 D2 00 80 FD C2 59 [01:48:07]CommunicateWithHost err = 0 [01:48:07]CheckOFDResponse [01:48:07]1017 (14) - 77093643461234 [01:48:07]1041 (16) - 0000000000963323 [01:48:07]1040 (4) - 74047 [01:48:07]1012 (4) - 20.10.2024 19:36 [01:48:07]1206 (1) - 0 [01:48:07]OFD Sender: Remove packet 74047 [01:48:07]ProducePacketName [01:48:07]name=ofd_packets/00074047 [01:48:07]NVStorageDeleteData [01:48:07]OFD Sender: No OFD packet to send [01:48:08]*** Cut start [01:48:08]*** Partial cut [01:48:08]*** CUTSNS_PIN = 1 [01:48:08]*** CUTSNS_PIN = 0 [01:48:08]*** Brake cut motor [01:48:09]Read from MH i2c: 01 [01:48:09]MH_I2C_Read... [01:48:09]*** Stop cut motor [01:48:09]*** Cut end [01:48:09]Read from MH i2c: 01 07 00 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: 01 07 00 9A 64 00 00 00 00 00 FF 0F 13 [01:48:09]process_action close_receipt done [01:48:09]requested_data is exist [01:48:09]produce_requested_data [01:48:09]requested_item fm.sn is exist - process it [01:48:09]wFMCommunicate request_size=4 [01:48:09]MH_SAM_APDU [01:48:09]CAPDU: 80 11 00 00 [01:48:09]Write to MH i2c: E2 08 00 9B 64 80 11 00 00 00 00 00 00 79 [01:48:09]Write i2c OK [01:48:09]MH_I2C_Read... [01:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:09]Read from MH i2c: E2 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: E2 17 00 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: E2 17 00 9B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C6 [01:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [01:48:09]wFMCommunicate OK [01:48:09]requested_item fd.num is exist - process it [01:48:09]SAM_PROTO_GetFieldsCounters [01:48:09]wFMCommunicate request_size=4 [01:48:09]MH_SAM_APDU [01:48:09]CAPDU: 80 13 00 00 [01:48:09]Write to MH i2c: E2 08 00 9C 64 80 13 00 00 00 00 00 00 7C [01:48:09]Write i2c OK [01:48:09]MH_I2C_Read... [01:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:48:09]Read from MH i2c: E2 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: E2 62 00 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: E2 62 00 9C 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3F 21 01 00 0E 04 04 00 AB 00 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 B1 [01:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3F 21 01 00 0E 04 04 00 AB 00 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 [01:48:09]wFMCommunicate OK [01:48:09]SAM_PROTO_GetFieldsCounters done [01:48:09]requested_item shift.num is exist - process it [01:48:09]requested_item shift.opened is exist - process it [01:48:09]req_shift_opened [01:48:09]FM_GetShiftState [01:48:09]SAM_PROTO_GetShiftState [01:48:09]wFMCommunicate request_size=4 [01:48:09]MH_SAM_APDU [01:48:09]CAPDU: 80 13 01 00 [01:48:09]Write to MH i2c: E2 08 00 9D 64 80 13 01 00 00 00 00 00 7E [01:48:09]Write i2c OK [01:48:09]MH_I2C_Read... [01:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:09]Read from MH i2c: E2 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: E2 0E 00 [01:48:09]MH_I2C_Read... [01:48:09]Read from MH i2c: E2 0E 00 9D 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 C1 [01:48:09]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [01:48:09]wFMCommunicate OK [01:48:09]SAM_PROTO_GetShiftState done [01:48:09]FM_GetShiftState done [01:48:09]req_shift_opened done [01:48:09]requested_item shift.open_date is exist - process it [01:48:09]req_shift_open_date [01:48:09]req_shift_open_date done [01:48:09]produce_requested_data done [01:48:09]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74047,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [01:48:09]process_action_free close_receipt [01:48:09]json_value_free [01:48:09]json_value_free done [01:48:09]process_json_proto returns [01:48:09]Send response to host [01:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74047,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [01:48:09]free response buf [01:48:09]execute_script done [01:48:09]execute_script returns [01:48:09]free content buf [01:48:09]Sock 8.Close socket [01:48:09]Sock 8.Thread stoped [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:51]accept exits with 9 [02:12:51]New connection [02:12:51]New thread 3067575652 created [02:12:51]Thread 3067432292 joined [02:12:51]Waiting for new connection... [02:12:51] Sock 9.Parse request [02:12:51]Sock 9.Check first char [02:12:51]Sock 9.First char is OK [02:12:51]request: POST /json_proto HTTP/1.0 [02:12:51]Method: POST [02:12:51]URL: /json_proto [02:12:51]Method is POST - this is cgi request [02:12:51]url: /json_proto [02:12:51]query_string will be loaded in cgi processing [02:12:51]execute_cgi json_proto POST (null) [02:12:51]execute_cgi path=json_proto method=POST [02:12:51]POST find Content-Length [02:12:51]Host: 172.17.44.196:8080 [02:12:51]Content-Length: 1413 [02:12:51]Content-Type: application/json [02:12:51] [02:12:51]POST finish read [02:12:51]Found Content-Length = 1413 [02:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272879", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.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" : 140.00, "quantity" : 1.000, "sum" : 140.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" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 700.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:51]execute_script... [02:12: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)272879", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.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" : 140.00, "quantity" : 1.000, "sum" : 140.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" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 700.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:51]POST & json_proto [02:12:51]process_json_proto [02:12:51]json parsed OK: [02:12:51]protocol is kg_v1.0 [02:12:51]action value=close_receipt [02:12:51]process_action close_receipt [02:12:51]cmd_close_receipt [02:12:51]MH_GetDate [02:12:51]Write to MH i2c: F0 00 00 9E 64 F1 [02:12:51]Write i2c OK [02:12:51]MH_I2C_Read... [02:12:51]Read from MH i2c: F0 [02:12:51]MH_I2C_Read... [02:12:51]Read from MH i2c: F0 09 00 [02:12:51]MH_I2C_Read... [02:12:51]Read from MH i2c: F0 09 00 9E 64 00 A8 B8 15 67 E7 19 F8 65 33 [02:12:51]GetLastDocTimeStamp 1729475289 [02:12:51]current date 1729476776 [02:12:51]FM_GetShiftState [02:12:51]SAM_PROTO_GetShiftState [02:12:51]wFMCommunicate request_size=4 [02:12:51]MH_SAM_APDU [02:12:51]CAPDU: 80 13 01 00 [02:12:51]Write to MH i2c: E2 08 00 9F 64 80 13 01 00 00 00 00 00 80 [02:12:52]Write i2c OK [02:12:52]MH_I2C_Read... [02:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:52]Read from MH i2c: E2 [02:12:52]MH_I2C_Read... [02:12:52]Read from MH i2c: E2 0E 00 [02:12:52]MH_I2C_Read... [02:12:52]Read from MH i2c: E2 0E 00 9F 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 C3 [02:12:52]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:12:52]wFMCommunicate OK [02:12:52]SAM_PROTO_GetShiftState done [02:12:52]FM_GetShiftState done [02:12:52]opened in 1729469981 [02:12:52]opened+sec_in_day 1729556381 [02:12:52]quantity*price = 36000 [02:12:52]sum+1 = 36001 [02:12:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 8 21.10.2024 02:12 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74048 ФПД: 96500489234703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T021257&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74048&fm=96500489234703&tin=02508201610067®Number=0000000000161154&sum=70000 0 [02:12:53]StoreToDocumentArchive [02:12:53]shift 171 fd 74048 [02:12:53]save to /storage/0171/doc_00074048 [02:12:53]save last doc name /storage/0171/doc_00074048 to /storage/kkm_last_doc_name [02:12:53]save OK [02:12:53]Clear old archive folders... [02:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=610 [02:12:53]tlvbuf is 003C9C60 [02:12:53]SAM_PROTO_ClearQueue [02:12:53]wFMCommunicate request_size=4 [02:12:53]MH_SAM_APDU [02:12:53]CAPDU: 80 09 00 00 [02:12:53]Write to MH i2c: E2 08 00 AC 64 80 09 00 00 00 00 00 00 82 [02:12:53]Write i2c OK [02:12:53]MH_I2C_Read... [02:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:12:53]Read from MH i2c: E2 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 AC 64 00 90 00 84 [02:12:53]RAPDU: 90 00 [02:12:53]wFMCommunicate OK [02:12:53]SAM_PROTO_ClearQueue done [02:12:53]KKMCreateOFDPacket [02:12:53]OFDProtocolAddRootSTLVToBuf [02:12:53]FM_MakeSignedData [02:12:53]FM_MakeSignedData [02:12:53]SAM_PROTO_SignData [02:12:53]wFMCommunicate request_size=4 [02:12:53]MH_SAM_APDU [02:12:53]CAPDU: 80 0D 01 02 [02:12:53]Write to MH i2c: E2 08 00 AD 64 80 0D 01 02 00 00 00 00 8A [02:12:53]Write i2c OK [02:12:53]MH_I2C_Read... [02:12:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:12:53]Read from MH i2c: E2 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 AD 64 00 90 00 85 [02:12:53]RAPDU: 90 00 [02:12:53]wFMCommunicate OK [02:12:53]wFMCommunicate request_size=255 [02:12:53]MH_SAM_APDU [02:12:53]CAPDU: 80 0D 02 02 FA 03 00 62 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 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 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 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 [02:12:53]Write to MH i2c: E2 02 01 AE 64 80 0D 02 02 FA 00 03 00 62 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 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 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 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 00 00 06 [02:12:53]Write i2c OK [02:12:53]MH_I2C_Read... [02:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:53]Read from MH i2c: E2 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 AE 64 00 90 00 86 [02:12:53]RAPDU: 90 00 [02:12:53]wFMCommunicate OK [02:12:53]wFMCommunicate request_size=255 [02:12:53]MH_SAM_APDU [02:12:53]CAPDU: 80 0D 02 02 FA 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 [02:12:53]Write to MH i2c: E2 02 01 AF 64 80 0D 02 02 FA 00 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 00 A5 [02:12:53]Write i2c OK [02:12:53]MH_I2C_Read... [02:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:53]Read from MH i2c: E2 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 [02:12:53]MH_I2C_Read... [02:12:53]Read from MH i2c: E2 03 00 AF 64 00 90 00 87 [02:12:53]RAPDU: 90 00 [02:12:53]wFMCommunicate OK [02:12:53]wFMCommunicate request_size=119 [02:12:53]MH_SAM_APDU [02:12:53]CAPDU: 80 0D 02 02 72 00 07 04 06 00 70 11 01 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 A9 B8 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 21 01 00 35 04 06 00 57 C4 45 61 A9 0F [02:12:53]Write to MH i2c: E2 7A 00 B0 64 80 0D 02 02 72 00 00 07 04 06 00 70 11 01 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 A9 B8 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 21 01 00 35 04 06 00 57 C4 45 61 A9 0F 00 00 8C [02:12:53]Write i2c OK [02:12:53]MH_I2C_Read... [02:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:54]OFD Sender: No OFD packet to send [02:12:54]Read from MH i2c: E2 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: E2 03 00 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: E2 03 00 B0 64 00 90 00 88 [02:12:54]RAPDU: 90 00 [02:12:54]wFMCommunicate OK [02:12:54]wFMCommunicate request_size=4 [02:12:54]MH_SAM_APDU [02:12:54]CAPDU: 80 0D 03 02 [02:12:54]Write to MH i2c: E2 08 00 B1 64 80 0D 03 02 00 00 00 00 90 [02:12:54]Write i2c OK [02:12:54]MH_I2C_Read... [02:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:12:54]Read from MH i2c: E2 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: E2 0B 00 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: E2 0B 00 B1 64 00 CD F6 8D FF AC 05 E8 17 90 00 90 [02:12:54]RAPDU: CD F6 8D FF AC 05 E8 17 90 00 [02:12:54]wFMCommunicate OK [02:12:54]SAM_PROTO_SignData done [02:12:54]FM_MakeSignedData done [02:12:54]CreateOFDProtocolMessage [02:12:54]wFMCommunicate request_size=4 [02:12:54]MH_SAM_APDU [02:12:54]CAPDU: 80 11 00 00 [02:12:54]Write to MH i2c: E2 08 00 B2 64 80 11 00 00 00 00 00 00 90 [02:12:54]Write i2c OK [02:12:54]MH_I2C_Read... [02:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:54]Read from MH i2c: E2 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: E2 17 00 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: E2 17 00 B2 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DD [02:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:12:54]wFMCommunicate OK [02:12:54]CreateOFDProtocolMessage done [02:12:54]OFDSenderStorePacket 74048 [02:12:54]StoreOFDPacket docnum=74048 [02:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 76 02 00 00 07 43 6E 02 AC F5 5A 03 01 00 03 00 62 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 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 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 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 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 A9 B8 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 21 01 00 35 04 06 00 57 C4 45 61 A9 0F CD F6 8D FF AC 05 E8 17 [02:12:54]CheckFolder [02:12:54]dirname=/storage/ofd_packets [02:12:54]CheckFolder done [02:12:54]ProducePacketName [02:12:54]name=ofd_packets/00074048 [02:12:54]NVStorageSaveData ofd_packets/00074048 [02:12:54]File name is /storage/ofd_packets/00074048 [02:12:54]Write 660 bytes [02:12:54]NVStorageSaveData done [02:12:54]OFDSenderStorePacket done [02:12:54]KKMCreateOFDPacket done [02:12:54]NVStorageSaveData kkm_last_timestamp [02:12:54]File name is /storage/kkm_last_timestamp [02:12:54]Write 4 bytes [02:12:54]NVStorageSaveData done [02:12:54]ExternCall_PrintAddStr [02:12:54]wPrintStart [02:12:54]Write to MH i2c: 01 00 00 B3 64 17 [02:12:54]Write i2c OK [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: 01 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: 01 07 00 [02:12:54]MH_I2C_Read... [02:12:54]Read from MH i2c: 01 07 00 B3 64 00 00 00 00 00 FF 0F 2C [02:12:54]RasterBufferAndPrint [02:12:54]line Счет N : (3)272879 [02:12:54]line ИНН: 02508201610067 [02:12:54]line Контрольно-Кассовый Чек [02:12:54]line ПРОДАЖА [02:12:54]line Товар: 4700000480517 [02:12:54]line Пиво Живое 1л ПЭТ [02:12:54]line 2.000 * 180.00 [02:12:54]line = 360.00 [02:12:54]line НДС 12% НСП 1% [02:12:54]line > о реализуемом товаре [02:12:54]line Товар: 48743587 [02:12:54]line Сигареты Winston XStyle Silver [02:12:54]line 1.000 * 140.00 [02:12:54]line = 140.00 [02:12:54]line НДС 12% НСП 1% [02:12:54]line > о реализуемом товаре [02:12:54]line Товар: 4700000480050 [02:12:54]line Напиток Nitro Energy эн green ж/б 0,45л [02:12:54]line 2.000 * 95.00 [02:12:54]line = 190.00 [02:12:54]line НДС 12% НСП 1% [02:12:54]line > о реализуемом товаре [02:12:54]line Товар: 46226617 [02:12:54]line Mentos ПВ Нежная Мята 6*100*2г [02:12:54]line 1.000 * 10.00 [02:12:54]line = 10.00 [02:12:54]line НДС 12% НСП 1% [02:12:54]line > о реализуемом товаре [02:12:54]line ИТОГО: 700.00 [02:12:54]line НСП 1% : 6.20 [02:12:54]line НДС 12% : 74.34 [02:12:54]line Наличными: 700.00 [02:12:54]line Безнал.: 0.00 [02:12:54]line Место: АЗС № 133 "Партнер Нефть" [02:12:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [02:12:54]line СНО: Общий режим [02:12:54]line Чек 8 21.10.2024 02:12 [02:12:54]line Смена: 171 ФФД: 1.0 [02:12:54]line ЗНМ: 0300000020 [02:12:54]line РНМ: 0000000000161154 [02:12:54]line Версия ККМ: v1.0 [02:12:54]line ФМ: 0000000000963323 [02:12:54]line ФД: 74048 [02:12:54]line ФПД: 96500489234703 [02:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T021257&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74048&fm=96500489234703&tin=02508201610067®Number=0000000000161154&sum=70000 [02:12:54]line 0 [02:12:54]OFD Sender: Processing packet 74048 [packets to send 15, broken 14] [02:12:54]ProducePacketName [02:12:54]name=ofd_packets/00074048 [02:12:54]OFD Sender: To server: pG, [02:12:54]CommunicateWithHost lk.salyk.kg:30040 [02:12:54]ConnectInit lk.salyk.kg [02:12:54]written 0, free lines is 4095 [02:12:54]Connected sock=10 [02:12:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 76 02 00 00 07 43 6E 02 AC F5 5A 03 01 00 03 00 62 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 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 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 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 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 A9 B8 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 21 01 00 35 04 06 00 57 C4 45 61 A9 0F CD F6 8D FF AC 05 E8 17 [02:12:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4E B3 47 00 F8 68 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 39 36 33 33 32 33 10 04 04 00 40 21 01 00 F4 03 04 00 8C 61 15 67 B6 04 01 00 00 4F C4 21 26 0C 26 26 3F [02:12:54]CommunicateWithHost err = 0 [02:12:54]CheckOFDResponse [02:12:54]1017 (14) - 77093643461234 [02:12:54]1041 (16) - 0000000000963323 [02:12:54]1040 (4) - 74048 [02:12:54]1012 (4) - 20.10.2024 20:01 [02:12:54]1206 (1) - 0 [02:12:54]OFD Sender: Remove packet 74048 [02:12:54]ProducePacketName [02:12:54]name=ofd_packets/00074048 [02:12:54]NVStorageDeleteData [02:12:55]Write to MH i2c: 01 00 00 EF 64 53 [02:12:55]Write i2c OK [02:12:55]MH_I2C_Read... [02:12:55]Read from MH i2c: 01 [02:12:55]MH_I2C_Read... [02:12:55]Read from MH i2c: 01 07 00 [02:12:55]MH_I2C_Read... [02:12:55]Read from MH i2c: 01 07 00 EF 64 00 00 00 00 00 5C 0B C1 [02:12:55]RasterBufferAndPrint [02:12:55]line [02:12:55]line [02:12:55]line [02:12:55]line [02:12:55]line [02:12:55]written 0, free lines is 2912 [02:12:55]MH_Cut [02:12:55]Write to MH i2c: D1 01 00 F6 64 01 2C [02:12:55]Write i2c OK [02:12:55]MH_I2C_Read... [02:12:55]Read from MH i2c: D1 [02:12:55]MH_I2C_Read... [02:12:55]Read from MH i2c: D1 01 00 [02:12:55]MH_I2C_Read... [02:12:55]Read from MH i2c: D1 01 00 F6 64 00 2B [02:12:55]Write to MH i2c: 01 00 00 F7 64 5B [02:12:55]Write i2c OK [02:12:55]MH_I2C_Read... [02:12:55]OFD Sender: No OFD packet to send [02:12:56]*** Cut start [02:12:56]*** Partial cut [02:12:56]*** CUTSNS_PIN = 1 [02:12:56]*** CUTSNS_PIN = 0 [02:12:56]*** Brake cut motor [02:12:56]Read from MH i2c: 01 [02:12:57]MH_I2C_Read... [02:12:57]*** Stop cut motor [02:12:57]*** Cut end [02:12:57]Read from MH i2c: 01 07 00 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: 01 07 00 F7 64 00 00 00 00 00 FF 0F 70 [02:12:57]process_action close_receipt done [02:12:57]requested_data is exist [02:12:57]produce_requested_data [02:12:57]requested_item fm.sn is exist - process it [02:12:57]wFMCommunicate request_size=4 [02:12:57]MH_SAM_APDU [02:12:57]CAPDU: 80 11 00 00 [02:12:57]Write to MH i2c: E2 08 00 F8 64 80 11 00 00 00 00 00 00 D6 [02:12:57]Write i2c OK [02:12:57]MH_I2C_Read... [02:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:57]Read from MH i2c: E2 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: E2 17 00 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: E2 17 00 F8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 23 [02:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:12:57]wFMCommunicate OK [02:12:57]requested_item fd.num is exist - process it [02:12:57]SAM_PROTO_GetFieldsCounters [02:12:57]wFMCommunicate request_size=4 [02:12:57]MH_SAM_APDU [02:12:57]CAPDU: 80 13 00 00 [02:12:57]Write to MH i2c: E2 08 00 F9 64 80 13 00 00 00 00 00 00 D9 [02:12:57]Write i2c OK [02:12:57]MH_I2C_Read... [02:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:12:57]Read from MH i2c: E2 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: E2 62 00 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: E2 62 00 F9 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 40 21 01 00 0E 04 04 00 AB 00 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 12 [02:12:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 40 21 01 00 0E 04 04 00 AB 00 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 [02:12:57]wFMCommunicate OK [02:12:57]SAM_PROTO_GetFieldsCounters done [02:12:57]requested_item shift.num is exist - process it [02:12:57]requested_item shift.opened is exist - process it [02:12:57]req_shift_opened [02:12:57]FM_GetShiftState [02:12:57]SAM_PROTO_GetShiftState [02:12:57]wFMCommunicate request_size=4 [02:12:57]MH_SAM_APDU [02:12:57]CAPDU: 80 13 01 00 [02:12:57]Write to MH i2c: E2 08 00 FA 64 80 13 01 00 00 00 00 00 DB [02:12:57]Write i2c OK [02:12:57]MH_I2C_Read... [02:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:57]Read from MH i2c: E2 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: E2 0E 00 [02:12:57]MH_I2C_Read... [02:12:57]Read from MH i2c: E2 0E 00 FA 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 1E [02:12:57]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:12:57]wFMCommunicate OK [02:12:57]SAM_PROTO_GetShiftState done [02:12:57]FM_GetShiftState done [02:12:57]req_shift_opened done [02:12:57]requested_item shift.open_date is exist - process it [02:12:57]req_shift_open_date [02:12:57]req_shift_open_date done [02:12:57]produce_requested_data done [02:12:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74048,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [02:12:57]process_action_free close_receipt [02:12:57]json_value_free [02:12:57]json_value_free done [02:12:57]process_json_proto returns [02:12:57]Send response to host [02:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74048,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [02:12:57]free response buf [02:12:57]execute_script done [02:12:57]execute_script returns [02:12:57]free content buf [02:12:57]Sock 9.Close socket [02:12:57]Sock 9.Thread stoped [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:34]accept exits with 8 [02:16:34]New connection [02:16:34]New thread 3067432292 created [02:16:34]Thread 3067575652 joined [02:16:34]Waiting for new connection... [02:16:34] Sock 8.Parse request [02:16:34]Sock 8.Check first char [02:16:34]Sock 8.First char is OK [02:16:34]request: POST /json_proto HTTP/1.0 [02:16:34]Method: POST [02:16:34]URL: /json_proto [02:16:34]Method is POST - this is cgi request [02:16:34]url: /json_proto [02:16:34]query_string will be loaded in cgi processing [02:16:34]execute_cgi json_proto POST (null) [02:16:34]execute_cgi path=json_proto method=POST [02:16:34]POST find Content-Length [02:16:34]Host: 172.17.44.196:8080 [02:16:34]Content-Length: 1192 [02:16:34]Content-Type: application/json [02:16:34] [02:16:34]POST finish read [02:16:34]Found Content-Length = 1192 [02:16:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272880", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 2.000, "sum" : 540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 714.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:34]execute_script... [02:16: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)272880", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 2.000, "sum" : 540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 714.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:34]POST & json_proto [02:16:34]process_json_proto [02:16:34]json parsed OK: [02:16:34]protocol is kg_v1.0 [02:16:34]action value=close_receipt [02:16:34]process_action close_receipt [02:16:34]cmd_close_receipt [02:16:34]MH_GetDate [02:16:34]Write to MH i2c: F0 00 00 FB 64 4E [02:16:34]Write i2c OK [02:16:34]MH_I2C_Read... [02:16:34]Read from MH i2c: F0 [02:16:34]MH_I2C_Read... [02:16:34]Read from MH i2c: F0 09 00 [02:16:34]MH_I2C_Read... [02:16:34]Read from MH i2c: F0 09 00 FB 64 00 87 B9 15 67 E7 19 F8 65 70 [02:16:34]GetLastDocTimeStamp 1729476777 [02:16:34]current date 1729476999 [02:16:34]FM_GetShiftState [02:16:34]SAM_PROTO_GetShiftState [02:16:34]wFMCommunicate request_size=4 [02:16:34]MH_SAM_APDU [02:16:34]CAPDU: 80 13 01 00 [02:16:34]Write to MH i2c: E2 08 00 FC 64 80 13 01 00 00 00 00 00 DD [02:16:34]Write i2c OK [02:16:34]MH_I2C_Read... [02:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:34]Read from MH i2c: E2 [02:16:34]MH_I2C_Read... [02:16:34]Read from MH i2c: E2 0E 00 [02:16:34]MH_I2C_Read... [02:16:34]Read from MH i2c: E2 0E 00 FC 64 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 20 [02:16:34]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:16:34]wFMCommunicate OK [02:16:34]SAM_PROTO_GetShiftState done [02:16:34]FM_GetShiftState done [02:16:34]opened in 1729469981 [02:16:34]opened+sec_in_day 1729556381 [02:16:34]quantity*price = 54000 [02:16:34]sum+1 = 54001 [02:16:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214638 Р/ж mentos p.white нежная мята 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 714.00 НСП 1% : 6.32 НДС 12% : 75.81 Наличными: 714.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 9 21.10.2024 02:16 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74049 ФПД: 256058542996372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T021639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74049&fm=256058542996372&tin=02508201610067®Number=0000000000161154&sum=71400 0 [02:16:35]StoreToDocumentArchive [02:16:35]shift 171 fd 74049 [02:16:35]save to /storage/0171/doc_00074049 [02:16:35]save last doc name /storage/0171/doc_00074049 to /storage/kkm_last_doc_name [02:16:35]save OK [02:16:35]Clear old archive folders... [02:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=502 [02:16:35]tlvbuf is 00590AB0 [02:16:35]SAM_PROTO_ClearQueue [02:16:35]wFMCommunicate request_size=4 [02:16:35]MH_SAM_APDU [02:16:35]CAPDU: 80 09 00 00 [02:16:35]Write to MH i2c: E2 08 00 09 65 80 09 00 00 00 00 00 00 E0 [02:16:35]Write i2c OK [02:16:35]MH_I2C_Read... [02:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:35]Read from MH i2c: E2 [02:16:35]MH_I2C_Read... [02:16:35]Read from MH i2c: E2 03 00 [02:16:35]MH_I2C_Read... [02:16:35]Read from MH i2c: E2 03 00 09 65 00 90 00 E2 [02:16:35]RAPDU: 90 00 [02:16:35]wFMCommunicate OK [02:16:35]SAM_PROTO_ClearQueue done [02:16:35]KKMCreateOFDPacket [02:16:35]OFDProtocolAddRootSTLVToBuf [02:16:35]FM_MakeSignedData [02:16:35]FM_MakeSignedData [02:16:35]SAM_PROTO_SignData [02:16:35]wFMCommunicate request_size=4 [02:16:35]MH_SAM_APDU [02:16:35]CAPDU: 80 0D 01 02 [02:16:35]Write to MH i2c: E2 08 00 0A 65 80 0D 01 02 00 00 00 00 E8 [02:16:35]Write i2c OK [02:16:35]MH_I2C_Read... [02:16:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:35]Read from MH i2c: E2 [02:16:35]MH_I2C_Read... [02:16:35]Read from MH i2c: E2 03 00 [02:16:35]MH_I2C_Read... [02:16:35]Read from MH i2c: E2 03 00 0A 65 00 90 00 E3 [02:16:35]RAPDU: 90 00 [02:16:35]wFMCommunicate OK [02:16:35]wFMCommunicate request_size=255 [02:16:35]MH_SAM_APDU [02:16:35]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 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 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 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 [02:16:36]Write to MH i2c: E2 02 01 0B 65 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 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 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 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 00 00 38 [02:16:36]Write i2c OK [02:16:36]MH_I2C_Read... [02:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:36]Read from MH i2c: E2 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 03 00 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 03 00 0B 65 00 90 00 E4 [02:16:36]RAPDU: 90 00 [02:16:36]wFMCommunicate OK [02:16:36]wFMCommunicate request_size=255 [02:16:36]MH_SAM_APDU [02:16:36]CAPDU: 80 0D 02 02 FA 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 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 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1D 00 00 00 00 07 04 06 00 E8 16 01 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 87 B9 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 21 01 00 35 04 06 00 [02:16:36]Write to MH i2c: E2 02 01 0C 65 80 0D 02 02 FA 00 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 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 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1D 00 00 00 00 07 04 06 00 E8 16 01 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 87 B9 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 21 01 00 35 04 06 00 00 00 C6 [02:16:36]Write i2c OK [02:16:36]MH_I2C_Read... [02:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:36]Read from MH i2c: E2 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 03 00 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 03 00 0C 65 00 90 00 E5 [02:16:36]RAPDU: 90 00 [02:16:36]wFMCommunicate OK [02:16:36]wFMCommunicate request_size=11 [02:16:36]MH_SAM_APDU [02:16:36]CAPDU: 80 0D 02 02 06 E8 E2 46 7F 3B 94 [02:16:36]Write to MH i2c: E2 0E 00 0D 65 80 0D 02 02 06 00 E8 E2 46 7F 3B 94 00 00 56 [02:16:36]Write i2c OK [02:16:36]MH_I2C_Read... [02:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:36]Read from MH i2c: E2 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 03 00 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 03 00 0D 65 00 90 00 E6 [02:16:36]RAPDU: 90 00 [02:16:36]wFMCommunicate OK [02:16:36]wFMCommunicate request_size=4 [02:16:36]MH_SAM_APDU [02:16:36]CAPDU: 80 0D 03 02 [02:16:36]Write to MH i2c: E2 08 00 0E 65 80 0D 03 02 00 00 00 00 EE [02:16:36]Write i2c OK [02:16:36]MH_I2C_Read... [02:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:36]Read from MH i2c: E2 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 0B 00 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 0B 00 0E 65 00 75 DD BC 75 03 7D E9 13 90 00 EE [02:16:36]RAPDU: 75 DD BC 75 03 7D E9 13 90 00 [02:16:36]wFMCommunicate OK [02:16:36]SAM_PROTO_SignData done [02:16:36]FM_MakeSignedData done [02:16:36]CreateOFDProtocolMessage [02:16:36]wFMCommunicate request_size=4 [02:16:36]MH_SAM_APDU [02:16:36]CAPDU: 80 11 00 00 [02:16:36]Write to MH i2c: E2 08 00 0F 65 80 11 00 00 00 00 00 00 EE [02:16:36]Write i2c OK [02:16:36]MH_I2C_Read... [02:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:36]Read from MH i2c: E2 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 17 00 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: E2 17 00 0F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [02:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:16:36]wFMCommunicate OK [02:16:36]CreateOFDProtocolMessage done [02:16:36]OFDSenderStorePacket 74049 [02:16:36]StoreOFDPacket docnum=74049 [02:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0A 02 00 00 D5 03 02 02 F5 D7 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 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 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 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 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 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1D 00 00 00 00 07 04 06 00 E8 16 01 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 87 B9 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 21 01 00 35 04 06 00 E8 E2 46 7F 3B 94 75 DD BC 75 03 7D E9 13 [02:16:36]CheckFolder [02:16:36]dirname=/storage/ofd_packets [02:16:36]CheckFolder done [02:16:36]ProducePacketName [02:16:36]name=ofd_packets/00074049 [02:16:36]NVStorageSaveData ofd_packets/00074049 [02:16:36]File name is /storage/ofd_packets/00074049 [02:16:36]Write 552 bytes [02:16:36]NVStorageSaveData done [02:16:36]OFDSenderStorePacket done [02:16:36]KKMCreateOFDPacket done [02:16:36]NVStorageSaveData kkm_last_timestamp [02:16:36]File name is /storage/kkm_last_timestamp [02:16:36]Write 4 bytes [02:16:36]NVStorageSaveData done [02:16:36]ExternCall_PrintAddStr [02:16:36]wPrintStart [02:16:36]Write to MH i2c: 01 00 00 10 65 75 [02:16:36]Write i2c OK [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: 01 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: 01 07 00 [02:16:36]MH_I2C_Read... [02:16:36]Read from MH i2c: 01 07 00 10 65 00 00 00 00 00 FF 0F 8A [02:16:36]RasterBufferAndPrint [02:16:36]line Счет N : (3)272880 [02:16:36]line ИНН: 02508201610067 [02:16:36]line Контрольно-Кассовый Чек [02:16:36]line ПРОДАЖА [02:16:36]line Товар: 4700001061104 [02:16:36]line Коньяк Семетей 0,2л [02:16:36]line 2.000 * 270.00 [02:16:36]line = 540.00 [02:16:36]line НДС 12% НСП 1% [02:16:36]line > о реализуемом товаре [02:16:36]line Товар: 46214638 [02:16:36]line Р/ж mentos p.white нежная мята 16/15,5г [02:16:36]line 1.000 * 49.00 [02:16:36]line = 49.00 [02:16:36]line НДС 12% НСП 1% [02:16:36]line > о реализуемом товаре [02:16:36]line Товар: 5449000054227 [02:16:36]line Напиток Кока-Кола 1л [02:16:36]line 1.000 * 125.00 [02:16:36]line = 125.00 [02:16:36]line НДС 12% НСП 1% [02:16:36]line > о реализуемом товаре [02:16:36]line ИТОГО: 714.00 [02:16:36]line НСП 1% : 6.32 [02:16:36]line НДС 12% : 75.81 [02:16:36]line Наличными: 714.00 [02:16:36]line Безнал.: 0.00 [02:16:36]line Место: АЗС № 133 "Партнер Нефть" [02:16:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [02:16:36]line СНО: Общий режим [02:16:36]line Чек 9 21.10.2024 02:16 [02:16:36]line Смена: 171 ФФД: 1.0 [02:16:36]line ЗНМ: 0300000020 [02:16:36]line РНМ: 0000000000161154 [02:16:36]line Версия ККМ: v1.0 [02:16:36]line ФМ: 0000000000963323 [02:16:36]line ФД: 74049 [02:16:36]line ФПД: 256058542996372 [02:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T021639&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74049&fm=256058542996372&tin=02508201610067®Number=0000000000161154&sum=71400 [02:16:37]line 0 [02:16:37]OFD Sender: Processing packet 74049 [packets to send 15, broken 14] [02:16:37]ProducePacketName [02:16:37]name=ofd_packets/00074049 [02:16:37]OFD Sender: To server: pG, [02:16:37]CommunicateWithHost lk.salyk.kg:30040 [02:16:37]ConnectInit lk.salyk.kg [02:16:37]written 0, free lines is 4095 [02:16:37]Connected sock=10 [02:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0A 02 00 00 D5 03 02 02 F5 D7 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 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 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 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 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 E8 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1D 00 00 00 00 07 04 06 00 E8 16 01 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 87 B9 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 21 01 00 35 04 06 00 E8 E2 46 7F 3B 94 75 DD BC 75 03 7D E9 13 [02:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B4 AD 47 00 DA 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 39 36 33 33 32 33 10 04 04 00 41 21 01 00 F4 03 04 00 6B 62 15 67 B6 04 01 00 00 A5 50 0C 6F 3C F4 D6 EB [02:16:37]CommunicateWithHost err = 0 [02:16:37]CheckOFDResponse [02:16:37]1017 (14) - 77093643461234 [02:16:37]1041 (16) - 0000000000963323 [02:16:37]1040 (4) - 74049 [02:16:37]1012 (4) - 20.10.2024 20:04 [02:16:37]1206 (1) - 0 [02:16:37]OFD Sender: Remove packet 74049 [02:16:37]ProducePacketName [02:16:37]name=ofd_packets/00074049 [02:16:37]NVStorageDeleteData [02:16:37]Write to MH i2c: 01 00 00 44 65 A9 [02:16:37]Write i2c OK [02:16:37]MH_I2C_Read... [02:16:37]Read from MH i2c: 01 [02:16:37]MH_I2C_Read... [02:16:37]Read from MH i2c: 01 07 00 [02:16:37]MH_I2C_Read... [02:16:37]Read from MH i2c: 01 07 00 44 65 00 00 00 00 00 FC 0B B7 [02:16:37]RasterBufferAndPrint [02:16:37]line [02:16:37]line [02:16:37]line [02:16:37]line [02:16:37]line [02:16:37]written 0, free lines is 3073 [02:16:37]MH_Cut [02:16:37]Write to MH i2c: D1 01 00 4B 65 01 82 [02:16:37]Write i2c OK [02:16:37]MH_I2C_Read... [02:16:37]Read from MH i2c: D1 [02:16:37]MH_I2C_Read... [02:16:37]Read from MH i2c: D1 01 00 [02:16:37]MH_I2C_Read... [02:16:37]Read from MH i2c: D1 01 00 4B 65 00 81 [02:16:37]Write to MH i2c: 01 00 00 4C 65 B1 [02:16:37]Write i2c OK [02:16:37]MH_I2C_Read... [02:16:38]OFD Sender: No OFD packet to send [02:16:38]*** Cut start [02:16:38]*** Partial cut [02:16:38]*** CUTSNS_PIN = 1 [02:16:38]*** CUTSNS_PIN = 0 [02:16:39]*** Brake cut motor [02:16:39]Read from MH i2c: 01 [02:16:39]MH_I2C_Read... [02:16:39]*** Stop cut motor [02:16:39]*** Cut end [02:16:39]Read from MH i2c: 01 07 00 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: 01 07 00 4C 65 00 00 00 00 00 FF 0F C6 [02:16:39]process_action close_receipt done [02:16:39]requested_data is exist [02:16:39]produce_requested_data [02:16:39]requested_item fm.sn is exist - process it [02:16:39]wFMCommunicate request_size=4 [02:16:39]MH_SAM_APDU [02:16:39]CAPDU: 80 11 00 00 [02:16:39]Write to MH i2c: E2 08 00 4D 65 80 11 00 00 00 00 00 00 2C [02:16:39]Write i2c OK [02:16:39]MH_I2C_Read... [02:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:39]Read from MH i2c: E2 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: E2 17 00 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: E2 17 00 4D 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [02:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:16:39]wFMCommunicate OK [02:16:39]requested_item fd.num is exist - process it [02:16:39]SAM_PROTO_GetFieldsCounters [02:16:39]wFMCommunicate request_size=4 [02:16:39]MH_SAM_APDU [02:16:39]CAPDU: 80 13 00 00 [02:16:39]Write to MH i2c: E2 08 00 4E 65 80 13 00 00 00 00 00 00 2F [02:16:39]Write i2c OK [02:16:39]MH_I2C_Read... [02:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:39]Read from MH i2c: E2 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: E2 62 00 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: E2 62 00 4E 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 41 21 01 00 0E 04 04 00 AB 00 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 6C [02:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 41 21 01 00 0E 04 04 00 AB 00 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 [02:16:39]wFMCommunicate OK [02:16:39]SAM_PROTO_GetFieldsCounters done [02:16:39]requested_item shift.num is exist - process it [02:16:39]requested_item shift.opened is exist - process it [02:16:39]req_shift_opened [02:16:39]FM_GetShiftState [02:16:39]SAM_PROTO_GetShiftState [02:16:39]wFMCommunicate request_size=4 [02:16:39]MH_SAM_APDU [02:16:39]CAPDU: 80 13 01 00 [02:16:39]Write to MH i2c: E2 08 00 4F 65 80 13 01 00 00 00 00 00 31 [02:16:39]Write i2c OK [02:16:39]MH_I2C_Read... [02:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:39]Read from MH i2c: E2 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: E2 0E 00 [02:16:39]MH_I2C_Read... [02:16:39]Read from MH i2c: E2 0E 00 4F 65 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 74 [02:16:39]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:16:39]wFMCommunicate OK [02:16:39]SAM_PROTO_GetShiftState done [02:16:39]FM_GetShiftState done [02:16:39]req_shift_opened done [02:16:39]requested_item shift.open_date is exist - process it [02:16:39]req_shift_open_date [02:16:39]req_shift_open_date done [02:16:39]produce_requested_data done [02:16:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74049,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [02:16:39]process_action_free close_receipt [02:16:39]json_value_free [02:16:39]json_value_free done [02:16:39]process_json_proto returns [02:16:39]Send response to host [02:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74049,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [02:16:39]free response buf [02:16:39]execute_script done [02:16:39]execute_script returns [02:16:39]free content buf [02:16:39]Sock 8.Close socket [02:16:39]Sock 8.Thread stoped [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]accept exits with 9 [02:26:38]New connection [02:26:38]New thread 3067575652 created [02:26:38]Thread 3067432292 joined [02:26:38]Waiting for new connection... [02:26:38] Sock 9.Parse request [02:26:38]Sock 9.Check first char [02:26:38]Sock 9.First char is OK [02:26:38]request: POST /json_proto HTTP/1.0 [02:26:38]Method: POST [02:26:38]URL: /json_proto [02:26:38]Method is POST - this is cgi request [02:26:38]url: /json_proto [02:26:38]query_string will be loaded in cgi processing [02:26:38]execute_cgi json_proto POST (null) [02:26:38]execute_cgi path=json_proto method=POST [02:26:38]POST find Content-Length [02:26:38]Host: 172.17.44.196:8080 [02:26:38]Content-Length: 1149 [02:26:38]Content-Type: application/json [02:26:38] [02:26:38]POST finish read [02:26:38]Found Content-Length = 1149 [02:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272881", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622202395659", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 745.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:38]execute_script... [02:26: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)272881", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622202395659", "name": "\u0428\u043E\u043A Alpen Gold \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 745.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:38]POST & json_proto [02:26:38]process_json_proto [02:26:38]json parsed OK: [02:26:38]protocol is kg_v1.0 [02:26:38]action value=close_receipt [02:26:38]process_action close_receipt [02:26:38]cmd_close_receipt [02:26:38]MH_GetDate [02:26:38]Write to MH i2c: F0 00 00 50 65 A4 [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: F0 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: F0 09 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: F0 09 00 50 65 00 E3 BB 15 67 E7 19 F8 65 24 [02:26:38]GetLastDocTimeStamp 1729476999 [02:26:38]current date 1729477603 [02:26:38]FM_GetShiftState [02:26:38]SAM_PROTO_GetShiftState [02:26:38]wFMCommunicate request_size=4 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 13 01 00 [02:26:38]Write to MH i2c: E2 08 00 51 65 80 13 01 00 00 00 00 00 33 [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 0E 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 0E 00 51 65 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 76 [02:26:38]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:26:38]wFMCommunicate OK [02:26:38]SAM_PROTO_GetShiftState done [02:26:38]FM_GetShiftState done [02:26:38]opened in 1729469981 [02:26:38]opened+sec_in_day 1729556381 [02:26:38]quantity*price = 55500 [02:26:38]sum+1 = 55501 [02:26:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 7622202395659 Шок Alpen Gold молочный 90г (новый) 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 745.00 НСП 1% : 6.59 НДС 12% : 79.12 Наличными: 745.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 10 21.10.2024 02:26 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74050 ФПД: 234551163149787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T022643&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74050&fm=234551163149787&tin=02508201610067®Number=0000000000161154&sum=74500 0 [02:26:39]StoreToDocumentArchive [02:26:39]shift 171 fd 74050 [02:26:39]save to /storage/0171/doc_00074050 [02:26:39]save last doc name /storage/0171/doc_00074050 to /storage/kkm_last_doc_name [02:26:39]save OK [02:26:39]Clear old archive folders... [02:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=495 [02:26:39]tlvbuf is 00338BB0 [02:26:39]SAM_PROTO_ClearQueue [02:26:39]wFMCommunicate request_size=4 [02:26:39]MH_SAM_APDU [02:26:39]CAPDU: 80 09 00 00 [02:26:39]Write to MH i2c: E2 08 00 5E 65 80 09 00 00 00 00 00 00 35 [02:26:39]Write i2c OK [02:26:39]MH_I2C_Read... [02:26:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:39]Read from MH i2c: E2 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: E2 03 00 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: E2 03 00 5E 65 00 90 00 37 [02:26:39]RAPDU: 90 00 [02:26:39]wFMCommunicate OK [02:26:39]SAM_PROTO_ClearQueue done [02:26:39]KKMCreateOFDPacket [02:26:39]OFDProtocolAddRootSTLVToBuf [02:26:39]FM_MakeSignedData [02:26:39]FM_MakeSignedData [02:26:39]SAM_PROTO_SignData [02:26:39]wFMCommunicate request_size=4 [02:26:39]MH_SAM_APDU [02:26:39]CAPDU: 80 0D 01 02 [02:26:39]Write to MH i2c: E2 08 00 5F 65 80 0D 01 02 00 00 00 00 3D [02:26:39]Write i2c OK [02:26:39]MH_I2C_Read... [02:26:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:39]Read from MH i2c: E2 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: E2 03 00 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: E2 03 00 5F 65 00 90 00 38 [02:26:39]RAPDU: 90 00 [02:26:39]wFMCommunicate OK [02:26:39]wFMCommunicate request_size=255 [02:26:39]MH_SAM_APDU [02:26:39]CAPDU: 80 0D 02 02 FA 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 37 36 32 32 32 30 32 33 39 35 36 35 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 32 30 36 [02:26:40]Write to MH i2c: E2 02 01 60 65 80 0D 02 02 FA 00 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 37 36 32 32 32 30 32 33 39 35 36 35 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 32 30 36 00 00 3E [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:40]Read from MH i2c: E2 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 03 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 03 00 60 65 00 90 00 39 [02:26:40]RAPDU: 90 00 [02:26:40]wFMCommunicate OK [02:26:40]wFMCommunicate request_size=254 [02:26:40]MH_SAM_APDU [02:26:40]CAPDU: 80 0D 02 02 F9 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 1E 00 00 00 00 07 04 06 00 04 23 01 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 E3 BB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 21 01 00 35 04 06 00 D5 52 B2 C2 DD DB [02:26:40]Write to MH i2c: E2 01 01 61 65 80 0D 02 02 F9 00 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 1E 00 00 00 00 07 04 06 00 04 23 01 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 E3 BB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 21 01 00 35 04 06 00 D5 52 B2 C2 DD DB 00 00 AA [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:40]Read from MH i2c: E2 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 03 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 03 00 61 65 00 90 00 3A [02:26:40]RAPDU: 90 00 [02:26:40]wFMCommunicate OK [02:26:40]wFMCommunicate request_size=4 [02:26:40]MH_SAM_APDU [02:26:40]CAPDU: 80 0D 03 02 [02:26:40]Write to MH i2c: E2 08 00 62 65 80 0D 03 02 00 00 00 00 42 [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:40]Read from MH i2c: E2 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 0B 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 0B 00 62 65 00 91 3E 17 EB 36 E1 58 8E 90 00 11 [02:26:40]RAPDU: 91 3E 17 EB 36 E1 58 8E 90 00 [02:26:40]wFMCommunicate OK [02:26:40]SAM_PROTO_SignData done [02:26:40]FM_MakeSignedData done [02:26:40]CreateOFDProtocolMessage [02:26:40]wFMCommunicate request_size=4 [02:26:40]MH_SAM_APDU [02:26:40]CAPDU: 80 11 00 00 [02:26:40]Write to MH i2c: E2 08 00 63 65 80 11 00 00 00 00 00 00 42 [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:40]Read from MH i2c: E2 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 17 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 17 00 63 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8F [02:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:26:40]wFMCommunicate OK [02:26:40]CreateOFDProtocolMessage done [02:26:40]OFDSenderStorePacket 74050 [02:26:40]StoreOFDPacket docnum=74050 [02:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 03 02 00 00 88 94 FB 01 58 E7 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 37 36 32 32 32 30 32 33 39 35 36 35 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 1E 00 00 00 00 07 04 06 00 04 23 01 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 E3 BB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 21 01 00 35 04 06 00 D5 52 B2 C2 DD DB 91 3E 17 EB 36 E1 58 8E [02:26:40]CheckFolder [02:26:40]dirname=/storage/ofd_packets [02:26:40]CheckFolder done [02:26:40]ProducePacketName [02:26:40]name=ofd_packets/00074050 [02:26:40]NVStorageSaveData ofd_packets/00074050 [02:26:40]File name is /storage/ofd_packets/00074050 [02:26:40]Write 545 bytes [02:26:40]NVStorageSaveData done [02:26:40]OFDSenderStorePacket done [02:26:40]KKMCreateOFDPacket done [02:26:40]NVStorageSaveData kkm_last_timestamp [02:26:40]File name is /storage/kkm_last_timestamp [02:26:40]Write 4 bytes [02:26:40]NVStorageSaveData done [02:26:40]ExternCall_PrintAddStr [02:26:40]wPrintStart [02:26:40]Write to MH i2c: 01 00 00 64 65 C9 [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: 01 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: 01 07 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: 01 07 00 64 65 00 00 00 00 00 FF 0F DE [02:26:40]RasterBufferAndPrint [02:26:40]line Счет N : (3)272881 [02:26:40]line ИНН: 02508201610067 [02:26:40]line Контрольно-Кассовый Чек [02:26:40]line ПРОДАЖА [02:26:40]line Товар: 4700001061098 [02:26:40]line Коньяк Семетей 0,5л [02:26:40]line 1.000 * 555.00 [02:26:40]line = 555.00 [02:26:40]line НДС 12% НСП 1% [02:26:40]line > о реализуемом товаре [02:26:40]line Товар: 7622202395659 [02:26:40]line Шок Alpen Gold молочный 90г (новый) [02:26:40]line 1.000 * 145.00 [02:26:40]line = 145.00 [02:26:40]line НДС 12% НСП 1% [02:26:40]line > о реализуемом товаре [02:26:40]line Товар: 42069942 [02:26:40]line Жев Orbit White Fresh Mint [02:26:40]line 1.000 * 45.00 [02:26:40]line = 45.00 [02:26:40]line НДС 12% НСП 1% [02:26:40]line > о реализуемом товаре [02:26:40]line ИТОГО: 745.00 [02:26:40]line НСП 1% : 6.59 [02:26:40]line НДС 12% : 79.12 [02:26:40]line Наличными: 745.00 [02:26:40]line Безнал.: 0.00 [02:26:40]line Место: АЗС № 133 "Партнер Нефть" [02:26:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [02:26:40]line СНО: Общий режим [02:26:40]line Чек 10 21.10.2024 02:26 [02:26:40]line Смена: 171 ФФД: 1.0 [02:26:40]line ЗНМ: 0300000020 [02:26:40]line РНМ: 0000000000161154 [02:26:40]line Версия ККМ: v1.0 [02:26:40]line ФМ: 0000000000963323 [02:26:40]line ФД: 74050 [02:26:40]line ФПД: 234551163149787 [02:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T022643&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74050&fm=234551163149787&tin=02508201610067®Number=0000000000161154&sum=74500 [02:26:40]line 0 [02:26:40]written 0, free lines is 4095 [02:26:40]OFD Sender: Processing packet 74050 [packets to send 15, broken 14] [02:26:40]ProducePacketName [02:26:40]name=ofd_packets/00074050 [02:26:40]OFD Sender: To server: pG, [02:26:40]CommunicateWithHost lk.salyk.kg:30040 [02:26:40]ConnectInit lk.salyk.kg [02:26:40]Connected sock=10 [02:26:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 03 02 00 00 88 94 FB 01 58 E7 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 37 36 32 32 32 30 32 33 39 35 36 35 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 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 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 1E 00 00 00 00 07 04 06 00 04 23 01 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 E3 BB 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 21 01 00 35 04 06 00 D5 52 B2 C2 DD DB 91 3E 17 EB 36 E1 58 8E [02:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AF CE 47 00 FD 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 39 36 33 33 32 33 10 04 04 00 42 21 01 00 F4 03 04 00 C6 64 15 67 B6 04 01 00 00 A9 BF 58 28 11 78 2B C3 [02:26:41]CommunicateWithHost err = 0 [02:26:41]CheckOFDResponse [02:26:41]1017 (14) - 77093643461234 [02:26:41]1041 (16) - 0000000000963323 [02:26:41]1040 (4) - 74050 [02:26:41]1012 (4) - 20.10.2024 20:15 [02:26:41]1206 (1) - 0 [02:26:41]OFD Sender: Remove packet 74050 [02:26:41]ProducePacketName [02:26:41]name=ofd_packets/00074050 [02:26:41]NVStorageDeleteData [02:26:41]Write to MH i2c: 01 00 00 98 65 FD [02:26:41]Write i2c OK [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: 01 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: 01 07 00 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: 01 07 00 98 65 00 00 00 00 00 F7 0B 06 [02:26:41]RasterBufferAndPrint [02:26:41]line [02:26:41]line [02:26:41]line [02:26:41]line [02:26:41]line [02:26:41]written 0, free lines is 3069 [02:26:41]MH_Cut [02:26:41]Write to MH i2c: D1 01 00 9F 65 01 D6 [02:26:41]Write i2c OK [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: D1 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: D1 01 00 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: D1 01 00 9F 65 00 D5 [02:26:41]Write to MH i2c: 01 00 00 A0 65 05 [02:26:41]Write i2c OK [02:26:41]MH_I2C_Read... [02:26:41]OFD Sender: No OFD packet to send [02:26:42]*** Cut start [02:26:42]*** Partial cut [02:26:42]*** CUTSNS_PIN = 1 [02:26:42]*** CUTSNS_PIN = 0 [02:26:42]*** Brake cut motor [02:26:42]Read from MH i2c: 01 [02:26:43]MH_I2C_Read... [02:26:43]*** Stop cut motor [02:26:43]*** Cut end [02:26:43]Read from MH i2c: 01 07 00 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: 01 07 00 A0 65 00 00 00 00 00 FF 0F 1A [02:26:43]process_action close_receipt done [02:26:43]requested_data is exist [02:26:43]produce_requested_data [02:26:43]requested_item fm.sn is exist - process it [02:26:43]wFMCommunicate request_size=4 [02:26:43]MH_SAM_APDU [02:26:43]CAPDU: 80 11 00 00 [02:26:43]Write to MH i2c: E2 08 00 A1 65 80 11 00 00 00 00 00 00 80 [02:26:43]Write i2c OK [02:26:43]MH_I2C_Read... [02:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:43]Read from MH i2c: E2 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: E2 17 00 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: E2 17 00 A1 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CD [02:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:26:43]wFMCommunicate OK [02:26:43]requested_item fd.num is exist - process it [02:26:43]SAM_PROTO_GetFieldsCounters [02:26:43]wFMCommunicate request_size=4 [02:26:43]MH_SAM_APDU [02:26:43]CAPDU: 80 13 00 00 [02:26:43]Write to MH i2c: E2 08 00 A2 65 80 13 00 00 00 00 00 00 83 [02:26:43]Write i2c OK [02:26:43]MH_I2C_Read... [02:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:43]Read from MH i2c: E2 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: E2 62 00 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: E2 62 00 A2 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 42 21 01 00 0E 04 04 00 AB 00 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 C4 [02:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 42 21 01 00 0E 04 04 00 AB 00 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 [02:26:43]wFMCommunicate OK [02:26:43]SAM_PROTO_GetFieldsCounters done [02:26:43]requested_item shift.num is exist - process it [02:26:43]requested_item shift.opened is exist - process it [02:26:43]req_shift_opened [02:26:43]FM_GetShiftState [02:26:43]SAM_PROTO_GetShiftState [02:26:43]wFMCommunicate request_size=4 [02:26:43]MH_SAM_APDU [02:26:43]CAPDU: 80 13 01 00 [02:26:43]Write to MH i2c: E2 08 00 A3 65 80 13 01 00 00 00 00 00 85 [02:26:43]Write i2c OK [02:26:43]MH_I2C_Read... [02:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:43]Read from MH i2c: E2 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: E2 0E 00 [02:26:43]MH_I2C_Read... [02:26:43]Read from MH i2c: E2 0E 00 A3 65 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 C8 [02:26:43]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:26:43]wFMCommunicate OK [02:26:43]SAM_PROTO_GetShiftState done [02:26:43]FM_GetShiftState done [02:26:43]req_shift_opened done [02:26:43]requested_item shift.open_date is exist - process it [02:26:43]req_shift_open_date [02:26:43]req_shift_open_date done [02:26:43]produce_requested_data done [02:26:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74050,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [02:26:43]process_action_free close_receipt [02:26:43]json_value_free [02:26:43]json_value_free done [02:26:43]process_json_proto returns [02:26:43]Send response to host [02:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74050,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [02:26:43]free response buf [02:26:43]execute_script done [02:26:43]execute_script returns [02:26:43]free content buf [02:26:43]Sock 9.Close socket [02:26:43]Sock 9.Thread stoped [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [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:51:59]accept exits with 8 [02:51:59]New connection [02:51:59]New thread 3067432292 created [02:51:59]Thread 3067575652 joined [02:51:59]Waiting for new connection... [02:51:59] Sock 8.Parse request [02:51:59]Sock 8.Check first char [02:51:59]Sock 8.First char is OK [02:51:59]request: POST /json_proto HTTP/1.0 [02:51:59]Method: POST [02:51:59]URL: /json_proto [02:51:59]Method is POST - this is cgi request [02:51:59]url: /json_proto [02:51:59]query_string will be loaded in cgi processing [02:51:59]execute_cgi json_proto POST (null) [02:51:59]execute_cgi path=json_proto method=POST [02:51:59]POST find Content-Length [02:51:59]Host: 172.17.44.196:8080 [02:51:59]Content-Length: 1873 [02:51:59]Content-Type: application/json [02:51:59] [02:51:59]POST finish read [02:51:59]Found Content-Length = 1873 [02:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272882", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 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" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:59]execute_script... [02:52: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)272882", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 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" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:00]POST & json_proto [02:52:00]process_json_proto [02:52:00]json parsed OK: [02:52:00]protocol is kg_v1.0 [02:52:00]action value=close_receipt [02:52:00]process_action close_receipt [02:52:00]cmd_close_receipt [02:52:00]MH_GetDate [02:52:00]Write to MH i2c: F0 00 00 A4 65 F8 [02:52:00]Write i2c OK [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: F0 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: F0 09 00 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: F0 09 00 A4 65 00 D5 C1 15 67 E7 19 F8 65 70 [02:52:00]GetLastDocTimeStamp 1729477603 [02:52:00]current date 1729479125 [02:52:00]FM_GetShiftState [02:52:00]SAM_PROTO_GetShiftState [02:52:00]wFMCommunicate request_size=4 [02:52:00]MH_SAM_APDU [02:52:00]CAPDU: 80 13 01 00 [02:52:00]Write to MH i2c: E2 08 00 A5 65 80 13 01 00 00 00 00 00 87 [02:52:00]Write i2c OK [02:52:00]MH_I2C_Read... [02:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:00]Read from MH i2c: E2 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: E2 0E 00 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: E2 0E 00 A5 65 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 CA [02:52:00]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:52:00]wFMCommunicate OK [02:52:00]SAM_PROTO_GetShiftState done [02:52:00]FM_GetShiftState done [02:52:00]opened in 1729469981 [02:52:00]opened+sec_in_day 1729556381 [02:52:00]quantity*price = 55500 [02:52:00]sum+1 = 55501 [02:52:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010346 Напиток Let`s Go! с/с груша ПЭТ 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681062 Grizzly волнистые Колбаски с горчицей 55 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 900.00 НСП 1% : 7.97 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 11 21.10.2024 02:52 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74051 ФПД: 144067568991666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025205&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74051&fm=144067568991666&tin=02508201610067®Number=0000000000161154&sum=90000 0 [02:52:01]StoreToDocumentArchive [02:52:01]shift 171 fd 74051 [02:52:01]save to /storage/0171/doc_00074051 [02:52:01]save last doc name /storage/0171/doc_00074051 to /storage/kkm_last_doc_name [02:52:01]save OK [02:52:01]Clear old archive folders... [02:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=775 [02:52:01]tlvbuf is 00338C20 [02:52:01]SAM_PROTO_ClearQueue [02:52:01]wFMCommunicate request_size=4 [02:52:01]MH_SAM_APDU [02:52:01]CAPDU: 80 09 00 00 [02:52:01]Write to MH i2c: E2 08 00 B2 65 80 09 00 00 00 00 00 00 89 [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:01]Read from MH i2c: E2 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 B2 65 00 90 00 8B [02:52:01]RAPDU: 90 00 [02:52:01]wFMCommunicate OK [02:52:01]SAM_PROTO_ClearQueue done [02:52:01]KKMCreateOFDPacket [02:52:01]OFDProtocolAddRootSTLVToBuf [02:52:01]FM_MakeSignedData [02:52:01]FM_MakeSignedData [02:52:01]SAM_PROTO_SignData [02:52:01]wFMCommunicate request_size=4 [02:52:01]MH_SAM_APDU [02:52:01]CAPDU: 80 0D 01 02 [02:52:01]Write to MH i2c: E2 08 00 B3 65 80 0D 01 02 00 00 00 00 91 [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:01]Read from MH i2c: E2 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 B3 65 00 90 00 8C [02:52:01]RAPDU: 90 00 [02:52:01]wFMCommunicate OK [02:52:01]wFMCommunicate request_size=255 [02:52:01]MH_SAM_APDU [02:52:01]CAPDU: 80 0D 02 02 FA 03 00 07 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 [02:52:01]Write to MH i2c: E2 02 01 B4 65 80 0D 02 02 FA 00 03 00 07 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 00 00 91 [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:02]Read from MH i2c: E2 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 B4 65 00 90 00 8D [02:52:02]RAPDU: 90 00 [02:52:02]wFMCommunicate OK [02:52:02]wFMCommunicate request_size=255 [02:52:02]MH_SAM_APDU [02:52:02]CAPDU: 80 0D 02 02 FA D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 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 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 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 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 [02:52:02]Write to MH i2c: E2 02 01 B5 65 80 0D 02 02 FA 00 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 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 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 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 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 00 00 C9 [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:02]Read from MH i2c: E2 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 B5 65 00 90 00 8E [02:52:02]RAPDU: 90 00 [02:52:02]wFMCommunicate OK [02:52:02]wFMCommunicate request_size=255 [02:52:02]MH_SAM_APDU [02:52:02]CAPDU: 80 0D 02 02 FA 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 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 D5 C1 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [02:52:02]Write to MH i2c: E2 02 01 B6 65 80 0D 02 02 FA 00 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 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 D5 C1 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 76 [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:02]Read from MH i2c: E2 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 B6 65 00 90 00 8F [02:52:02]RAPDU: 90 00 [02:52:02]wFMCommunicate OK [02:52:02]wFMCommunicate request_size=34 [02:52:02]MH_SAM_APDU [02:52:02]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 21 01 00 35 04 06 00 83 07 58 45 FD B2 [02:52:02]Write to MH i2c: E2 25 00 B7 65 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 21 01 00 35 04 06 00 83 07 58 45 FD B2 00 00 8C [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:02]Read from MH i2c: E2 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 03 00 B7 65 00 90 00 90 [02:52:02]RAPDU: 90 00 [02:52:02]wFMCommunicate OK [02:52:02]wFMCommunicate request_size=4 [02:52:02]MH_SAM_APDU [02:52:02]CAPDU: 80 0D 03 02 [02:52:02]Write to MH i2c: E2 08 00 B8 65 80 0D 03 02 00 00 00 00 98 [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:02]Read from MH i2c: E2 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 0B 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 0B 00 B8 65 00 F5 51 44 81 69 54 3E 4A 90 00 E9 [02:52:02]RAPDU: F5 51 44 81 69 54 3E 4A 90 00 [02:52:02]wFMCommunicate OK [02:52:02]SAM_PROTO_SignData done [02:52:02]FM_MakeSignedData done [02:52:02]CreateOFDProtocolMessage [02:52:02]wFMCommunicate request_size=4 [02:52:02]MH_SAM_APDU [02:52:02]CAPDU: 80 11 00 00 [02:52:02]Write to MH i2c: E2 08 00 B9 65 80 11 00 00 00 00 00 00 98 [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:02]Read from MH i2c: E2 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 17 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: E2 17 00 B9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E5 [02:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:52:02]wFMCommunicate OK [02:52:02]CreateOFDProtocolMessage done [02:52:02]OFDSenderStorePacket 74051 [02:52:02]StoreOFDPacket docnum=74051 [02:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1B 03 00 00 EA 6E 13 03 D5 E7 5A 03 01 00 03 00 07 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 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 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 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 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 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 D5 C1 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 21 01 00 35 04 06 00 83 07 58 45 FD B2 F5 51 44 81 69 54 3E 4A [02:52:02]CheckFolder [02:52:02]dirname=/storage/ofd_packets [02:52:02]CheckFolder done [02:52:02]ProducePacketName [02:52:02]name=ofd_packets/00074051 [02:52:02]NVStorageSaveData ofd_packets/00074051 [02:52:02]File name is /storage/ofd_packets/00074051 [02:52:02]Write 825 bytes [02:52:02]NVStorageSaveData done [02:52:02]OFDSenderStorePacket done [02:52:02]KKMCreateOFDPacket done [02:52:02]NVStorageSaveData kkm_last_timestamp [02:52:02]File name is /storage/kkm_last_timestamp [02:52:02]Write 4 bytes [02:52:02]NVStorageSaveData done [02:52:02]ExternCall_PrintAddStr [02:52:02]wPrintStart [02:52:02]Write to MH i2c: 01 00 00 BA 65 1F [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: 01 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: 01 07 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: 01 07 00 BA 65 00 00 00 00 00 FF 0F 34 [02:52:02]RasterBufferAndPrint [02:52:02]line Счет N : (3)272882 [02:52:02]line ИНН: 02508201610067 [02:52:02]line Контрольно-Кассовый Чек [02:52:02]line ПРОДАЖА [02:52:02]line Товар: 4700001061098 [02:52:02]line Коньяк Семетей 0,5л [02:52:02]line 1.000 * 555.00 [02:52:02]line = 555.00 [02:52:02]line НДС 12% НСП 1% [02:52:02]line > о реализуемом товаре [02:52:02]line Товар: 5449000006271 [02:52:02]line Напиток Фанта 1л [02:52:02]line 1.000 * 125.00 [02:52:02]line = 125.00 [02:52:02]line НДС 12% НСП 1% [02:52:02]line > о реализуемом товаре [02:52:02]line Товар: 4700003010346 [02:52:02]line Напиток Let`s Go! с/с груша ПЭТ 0,5л [02:52:02]line 1.000 * 40.00 [02:52:02]line = 40.00 [02:52:02]line НДС 12% НСП 1% [02:52:02]line > о реализуемом товаре [02:52:02]line Товар: 4870235681062 [02:52:02]line Grizzly волнистые Колбаски с горчицей 55 [02:52:02]line 1.000 * 90.00 [02:52:02]line = 90.00 [02:52:02]line НДС 12% НСП 1% [02:52:02]line > о реализуемом товаре [02:52:03]line Товар: 4870235681086 [02:52:03]line Grizzly волнистые Сыр с халапеньо 55 гр [02:52:03]line 1.000 * 90.00 [02:52:03]line = 90.00 [02:52:03]line НДС 12% НСП 1% [02:52:03]line > о реализуемом товаре [02:52:03]line ИТОГО: 900.00 [02:52:03]line НСП 1% : 7.97 [02:52:03]line НДС 12% : 95.58 [02:52:03]line Наличными: 900.00 [02:52:03]line Безнал.: 0.00 [02:52:03]line Место: АЗС № 133 "Партнер Нефть" [02:52:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [02:52:03]line СНО: Общий режим [02:52:03]line Чек 11 21.10.2024 02:52 [02:52:03]line Смена: 171 ФФД: 1.0 [02:52:03]line ЗНМ: 0300000020 [02:52:03]line РНМ: 0000000000161154 [02:52:03]line Версия ККМ: v1.0 [02:52:03]line ФМ: 0000000000963323 [02:52:03]line ФД: 74051 [02:52:03]line ФПД: 144067568991666 [02:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025205&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74051&fm=144067568991666&tin=02508201610067®Number=0000000000161154&sum=90000 [02:52:03]line 0 [02:52:03]OFD Sender: Processing packet 74051 [packets to send 15, broken 14] [02:52:03]ProducePacketName [02:52:03]name=ofd_packets/00074051 [02:52:03]OFD Sender: To server: pG, [02:52:03]CommunicateWithHost lk.salyk.kg:30040 [02:52:03]ConnectInit lk.salyk.kg [02:52:03]written 0, free lines is 4095 [02:52:03]Connected sock=10 [02:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1B 03 00 00 EA 6E 13 03 D5 E7 5A 03 01 00 03 00 07 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 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 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 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 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 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 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 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 D5 C1 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 21 01 00 35 04 06 00 83 07 58 45 FD B2 F5 51 44 81 69 54 3E 4A [02:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A1 FA 47 00 88 B7 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 39 36 33 33 32 33 10 04 04 00 43 21 01 00 F4 03 04 00 B9 6A 15 67 B6 04 01 00 00 E4 AE 0F 4F 53 53 2A E6 [02:52:03]CommunicateWithHost err = 0 [02:52:03]CheckOFDResponse [02:52:03]1017 (14) - 77093643461234 [02:52:03]1041 (16) - 0000000000963323 [02:52:03]1040 (4) - 74051 [02:52:03]1012 (4) - 20.10.2024 20:40 [02:52:03]1206 (1) - 0 [02:52:03]OFD Sender: Remove packet 74051 [02:52:03]ProducePacketName [02:52:03]name=ofd_packets/00074051 [02:52:03]NVStorageDeleteData [02:52:03]Write to MH i2c: 01 00 00 FC 65 61 [02:52:03]Write i2c OK [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: 01 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: 01 07 00 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: 01 07 00 FC 65 00 00 00 00 00 FD 0A 6F [02:52:03]RasterBufferAndPrint [02:52:03]line [02:52:03]line [02:52:03]line [02:52:03]line [02:52:03]line [02:52:03]written 0, free lines is 2822 [02:52:03]MH_Cut [02:52:03]Write to MH i2c: D1 01 00 03 66 01 3B [02:52:03]Write i2c OK [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: D1 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: D1 01 00 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: D1 01 00 03 66 00 3A [02:52:03]Write to MH i2c: 01 00 00 04 66 6A [02:52:03]Write i2c OK [02:52:03]MH_I2C_Read... [02:52:03]OFD Sender: No OFD packet to send [02:52:05]*** Cut start [02:52:05]*** Partial cut [02:52:05]*** CUTSNS_PIN = 1 [02:52:05]*** CUTSNS_PIN = 0 [02:52:05]*** Brake cut motor [02:52:05]Read from MH i2c: 01 [02:52:05]MH_I2C_Read... [02:52:05]*** Stop cut motor [02:52:05]*** Cut end [02:52:05]Read from MH i2c: 01 07 00 [02:52:05]MH_I2C_Read... [02:52:05]Read from MH i2c: 01 07 00 04 66 00 00 00 00 00 FF 0F 7F [02:52:05]process_action close_receipt done [02:52:05]requested_data is exist [02:52:05]produce_requested_data [02:52:05]requested_item fm.sn is exist - process it [02:52:05]wFMCommunicate request_size=4 [02:52:05]MH_SAM_APDU [02:52:05]CAPDU: 80 11 00 00 [02:52:05]Write to MH i2c: E2 08 00 05 66 80 11 00 00 00 00 00 00 E5 [02:52:05]Write i2c OK [02:52:05]MH_I2C_Read... [02:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:05]Read from MH i2c: E2 [02:52:05]MH_I2C_Read... [02:52:05]Read from MH i2c: E2 17 00 [02:52:05]MH_I2C_Read... [02:52:05]Read from MH i2c: E2 17 00 05 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 32 [02:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [02:52:05]wFMCommunicate OK [02:52:05]requested_item fd.num is exist - process it [02:52:05]SAM_PROTO_GetFieldsCounters [02:52:05]wFMCommunicate request_size=4 [02:52:05]MH_SAM_APDU [02:52:05]CAPDU: 80 13 00 00 [02:52:05]Write to MH i2c: E2 08 00 06 66 80 13 00 00 00 00 00 00 E8 [02:52:05]Write i2c OK [02:52:05]MH_I2C_Read... [02:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:05]Read from MH i2c: E2 [02:52:05]MH_I2C_Read... [02:52:05]Read from MH i2c: E2 62 00 [02:52:05]MH_I2C_Read... [02:52:05]Read from MH i2c: E2 62 00 06 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 43 21 01 00 0E 04 04 00 AB 00 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 2D [02:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 43 21 01 00 0E 04 04 00 AB 00 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 [02:52:05]wFMCommunicate OK [02:52:05]SAM_PROTO_GetFieldsCounters done [02:52:05]requested_item shift.num is exist - process it [02:52:05]requested_item shift.opened is exist - process it [02:52:05]req_shift_opened [02:52:05]FM_GetShiftState [02:52:05]SAM_PROTO_GetShiftState [02:52:05]wFMCommunicate request_size=4 [02:52:05]MH_SAM_APDU [02:52:05]CAPDU: 80 13 01 00 [02:52:05]Write to MH i2c: E2 08 00 07 66 80 13 01 00 00 00 00 00 EA [02:52:05]Write i2c OK [02:52:05]MH_I2C_Read... [02:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:06]Read from MH i2c: E2 [02:52:06]MH_I2C_Read... [02:52:06]Read from MH i2c: E2 0E 00 [02:52:06]MH_I2C_Read... [02:52:06]Read from MH i2c: E2 0E 00 07 66 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 2D [02:52:06]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [02:52:06]wFMCommunicate OK [02:52:06]SAM_PROTO_GetShiftState done [02:52:06]FM_GetShiftState done [02:52:06]req_shift_opened done [02:52:06]requested_item shift.open_date is exist - process it [02:52:06]req_shift_open_date [02:52:06]req_shift_open_date done [02:52:06]produce_requested_data done [02:52:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74051,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [02:52:06]process_action_free close_receipt [02:52:06]json_value_free [02:52:06]json_value_free done [02:52:06]process_json_proto returns [02:52:06]Send response to host [02:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74051,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [02:52:06]free response buf [02:52:06]execute_script done [02:52:06]execute_script returns [02:52:06]free content buf [02:52:06]Sock 8.Close socket [02:52:06]Sock 8.Thread stoped [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:17]accept exits with 9 [03:05:17]New connection [03:05:17]New thread 3067575652 created [03:05:17]Thread 3067432292 joined [03:05:17]Waiting for new connection... [03:05:17] Sock 9.Parse request [03:05:17]Sock 9.Check first char [03:05:17]Sock 9.First char is OK [03:05:17]request: POST /json_proto HTTP/1.0 [03:05:17]Method: POST [03:05:17]URL: /json_proto [03:05:17]Method is POST - this is cgi request [03:05:17]url: /json_proto [03:05:17]query_string will be loaded in cgi processing [03:05:17]execute_cgi json_proto POST (null) [03:05:17]execute_cgi path=json_proto method=POST [03:05:17]POST find Content-Length [03:05:17]Host: 172.17.44.196:8080 [03:05:17]Content-Length: 1257 [03:05:17]Content-Type: application/json [03:05:17] [03:05:17]POST finish read [03:05:17]Found Content-Length = 1257 [03:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)272883", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 752.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:05:17]execute_script... [03:05: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)272883", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 752.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:05:17]POST & json_proto [03:05:17]process_json_proto [03:05:17]json parsed OK: [03:05:17]protocol is kg_v1.0 [03:05:17]action value=close_receipt [03:05:17]process_action close_receipt [03:05:17]cmd_close_receipt [03:05:17]MH_GetDate [03:05:17]Write to MH i2c: F0 00 00 08 66 5D [03:05:17]Write i2c OK [03:05:17]MH_I2C_Read... [03:05:17]Read from MH i2c: F0 [03:05:17]MH_I2C_Read... [03:05:17]Read from MH i2c: F0 09 00 [03:05:17]MH_I2C_Read... [03:05:17]Read from MH i2c: F0 09 00 08 66 00 F2 C4 15 67 E7 19 F8 65 F5 [03:05:17]GetLastDocTimeStamp 1729479125 [03:05:17]current date 1729479922 [03:05:17]FM_GetShiftState [03:05:17]SAM_PROTO_GetShiftState [03:05:17]wFMCommunicate request_size=4 [03:05:17]MH_SAM_APDU [03:05:17]CAPDU: 80 13 01 00 [03:05:17]Write to MH i2c: E2 08 00 09 66 80 13 01 00 00 00 00 00 EC [03:05:17]Write i2c OK [03:05:17]MH_I2C_Read... [03:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:17]Read from MH i2c: E2 [03:05:17]MH_I2C_Read... [03:05:17]Read from MH i2c: E2 0E 00 [03:05:17]MH_I2C_Read... [03:05:17]Read from MH i2c: E2 0E 00 09 66 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 2F [03:05:17]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [03:05:17]wFMCommunicate OK [03:05:17]SAM_PROTO_GetShiftState done [03:05:17]FM_GetShiftState done [03:05:17]opened in 1729469981 [03:05:17]opened+sec_in_day 1729556381 [03:05:17]quantity*price = 55500 [03:05:17]sum+1 = 55501 [03:05:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000133328 Напиток Кока-Кола Zero 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 752.00 НСП 1% : 6.66 НДС 12% : 79.86 Наличными: 752.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 12 21.10.2024 03:05 Смена: 171 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 74052 ФПД: 13761309193935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030522&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74052&fm=13761309193935&tin=02508201610067®Number=0000000000161154&sum=75200 0 [03:05:18]StoreToDocumentArchive [03:05:18]shift 171 fd 74052 [03:05:18]save to /storage/0171/doc_00074052 [03:05:18]save last doc name /storage/0171/doc_00074052 to /storage/kkm_last_doc_name [03:05:18]save OK [03:05:18]Clear old archive folders... [03:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=523 [03:05:18]tlvbuf is 0047D4B0 [03:05:18]SAM_PROTO_ClearQueue [03:05:18]wFMCommunicate request_size=4 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 09 00 00 [03:05:18]Write to MH i2c: E2 08 00 16 66 80 09 00 00 00 00 00 00 EE [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 16 66 00 90 00 F0 [03:05:18]RAPDU: 90 00 [03:05:18]wFMCommunicate OK [03:05:18]SAM_PROTO_ClearQueue done [03:05:18]KKMCreateOFDPacket [03:05:18]OFDProtocolAddRootSTLVToBuf [03:05:18]FM_MakeSignedData [03:05:18]FM_MakeSignedData [03:05:18]SAM_PROTO_SignData [03:05:18]wFMCommunicate request_size=4 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 0D 01 02 [03:05:18]Write to MH i2c: E2 08 00 17 66 80 0D 01 02 00 00 00 00 F6 [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:05:18]Read from MH i2c: E2 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 [03:05:18]MH_I2C_Read... [03:05:18]Read from MH i2c: E2 03 00 17 66 00 90 00 F1 [03:05:18]RAPDU: 90 00 [03:05:18]wFMCommunicate OK [03:05:18]wFMCommunicate request_size=255 [03:05:18]MH_SAM_APDU [03:05:18]CAPDU: 80 0D 02 02 FA 03 00 0B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 [03:05:18]Write to MH i2c: E2 02 01 18 66 80 0D 02 02 FA 00 03 00 0B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 00 00 F0 [03:05:18]Write i2c OK [03:05:18]MH_I2C_Read... [03:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:19]Read from MH i2c: E2 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 03 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 03 00 18 66 00 90 00 F2 [03:05:19]RAPDU: 90 00 [03:05:19]wFMCommunicate OK [03:05:19]wFMCommunicate request_size=255 [03:05:19]MH_SAM_APDU [03:05:19]CAPDU: 80 0D 02 02 FA 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1F 00 00 00 00 07 04 06 00 C0 25 01 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 F2 C4 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [03:05:19]Write to MH i2c: E2 02 01 19 66 80 0D 02 02 FA 00 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1F 00 00 00 00 07 04 06 00 C0 25 01 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 F2 C4 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 CE [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:19]Read from MH i2c: E2 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 03 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 03 00 19 66 00 90 00 F3 [03:05:19]RAPDU: 90 00 [03:05:19]wFMCommunicate OK [03:05:19]wFMCommunicate request_size=32 [03:05:19]MH_SAM_APDU [03:05:19]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 44 21 01 00 35 04 06 00 0C 84 0D F2 36 CF [03:05:19]Write to MH i2c: E2 23 00 1A 66 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 44 21 01 00 35 04 06 00 0C 84 0D F2 36 CF 00 00 4B [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:19]Read from MH i2c: E2 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 03 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 03 00 1A 66 00 90 00 F4 [03:05:19]RAPDU: 90 00 [03:05:19]wFMCommunicate OK [03:05:19]wFMCommunicate request_size=4 [03:05:19]MH_SAM_APDU [03:05:19]CAPDU: 80 0D 03 02 [03:05:19]Write to MH i2c: E2 08 00 1B 66 80 0D 03 02 00 00 00 00 FC [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:05:19]Read from MH i2c: E2 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 0B 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 0B 00 1B 66 00 07 50 3C EA 11 3D F8 FD 90 00 BD [03:05:19]RAPDU: 07 50 3C EA 11 3D F8 FD 90 00 [03:05:19]wFMCommunicate OK [03:05:19]SAM_PROTO_SignData done [03:05:19]FM_MakeSignedData done [03:05:19]CreateOFDProtocolMessage [03:05:19]wFMCommunicate request_size=4 [03:05:19]MH_SAM_APDU [03:05:19]CAPDU: 80 11 00 00 [03:05:19]Write to MH i2c: E2 08 00 1C 66 80 11 00 00 00 00 00 00 FC [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:19]Read from MH i2c: E2 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 17 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: E2 17 00 1C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 49 [03:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:05:19]wFMCommunicate OK [03:05:19]CreateOFDProtocolMessage done [03:05:19]OFDSenderStorePacket 74052 [03:05:19]StoreOFDPacket docnum=74052 [03:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1F 02 00 00 BE 9A 17 02 34 AF 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1F 00 00 00 00 07 04 06 00 C0 25 01 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 F2 C4 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 21 01 00 35 04 06 00 0C 84 0D F2 36 CF 07 50 3C EA 11 3D F8 FD [03:05:19]CheckFolder [03:05:19]dirname=/storage/ofd_packets [03:05:19]CheckFolder done [03:05:19]ProducePacketName [03:05:19]name=ofd_packets/00074052 [03:05:19]NVStorageSaveData ofd_packets/00074052 [03:05:19]File name is /storage/ofd_packets/00074052 [03:05:19]Write 573 bytes [03:05:19]NVStorageSaveData done [03:05:19]OFDSenderStorePacket done [03:05:19]KKMCreateOFDPacket done [03:05:19]NVStorageSaveData kkm_last_timestamp [03:05:19]File name is /storage/kkm_last_timestamp [03:05:19]Write 4 bytes [03:05:19]NVStorageSaveData done [03:05:19]ExternCall_PrintAddStr [03:05:19]wPrintStart [03:05:19]Write to MH i2c: 01 00 00 1D 66 83 [03:05:19]Write i2c OK [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: 01 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: 01 07 00 [03:05:19]MH_I2C_Read... [03:05:19]Read from MH i2c: 01 07 00 1D 66 00 00 00 00 00 FF 0F 98 [03:05:19]RasterBufferAndPrint [03:05:19]line Счет N : (3)272883 [03:05:19]line ИНН: 02508201610067 [03:05:19]line Контрольно-Кассовый Чек [03:05:19]line ПРОДАЖА [03:05:19]line Товар: 4700001061098 [03:05:19]line Коньяк Семетей 0,5л [03:05:19]line 1.000 * 555.00 [03:05:19]line = 555.00 [03:05:19]line НДС 12% НСП 1% [03:05:19]line > о реализуемом товаре [03:05:19]line Товар: 4870235681086 [03:05:19]line Grizzly волнистые Сыр с халапеньо 55 гр [03:05:19]line 1.000 * 90.00 [03:05:19]line = 90.00 [03:05:19]line НДС 12% НСП 1% [03:05:19]line > о реализуемом товаре [03:05:19]line Товар: 5449000133328 [03:05:19]line Напиток Кока-Кола Zero 1л [03:05:19]line 1.000 * 107.00 [03:05:19]line = 107.00 [03:05:19]line НДС 12% НСП 1% [03:05:19]line > о реализуемом товаре [03:05:19]line ИТОГО: 752.00 [03:05:19]line НСП 1% : 6.66 [03:05:19]line НДС 12% : 79.86 [03:05:19]line Наличными: 752.00 [03:05:19]line Безнал.: 0.00 [03:05:19]line Место: АЗС № 133 "Партнер Нефть" [03:05:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [03:05:19]line СНО: Общий режим [03:05:19]line Чек 12 21.10.2024 03:05 [03:05:19]line Смена: 171 ФФД: 1.0 [03:05:19]line ЗНМ: 0300000020 [03:05:19]line РНМ: 0000000000161154 [03:05:19]line Версия ККМ: v1.0 [03:05:19]line ФМ: 0000000000963323 [03:05:19]line ФД: 74052 [03:05:19]line ФПД: 13761309193935 [03:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030522&type=1&operation_type=1&fn_number=0000000000963323&fd_number=74052&fm=13761309193935&tin=02508201610067®Number=0000000000161154&sum=75200 [03:05:19]line 0 [03:05:19]OFD Sender: Processing packet 74052 [packets to send 15, broken 14] [03:05:19]ProducePacketName [03:05:19]name=ofd_packets/00074052 [03:05:19]OFD Sender: To server: pG, [03:05:19]CommunicateWithHost lk.salyk.kg:30040 [03:05:19]ConnectInit lk.salyk.kg [03:05:19]written 0, free lines is 4095 [03:05:20]Connected sock=11 [03:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1F 02 00 00 BE 9A 17 02 34 AF 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1F 00 00 00 00 07 04 06 00 C0 25 01 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 F2 C4 15 67 0E 04 04 00 AB 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 21 01 00 35 04 06 00 0C 84 0D F2 36 CF 07 50 3C EA 11 3D F8 FD [03:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1B B5 47 00 1F 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 39 36 33 33 32 33 10 04 04 00 44 21 01 00 F4 03 04 00 D5 6D 15 67 B6 04 01 00 00 5E 68 BB A0 45 84 0F FC [03:05:20]CommunicateWithHost err = 0 [03:05:20]CheckOFDResponse [03:05:20]1017 (14) - 77093643461234 [03:05:20]1041 (16) - 0000000000963323 [03:05:20]1040 (4) - 74052 [03:05:20]1012 (4) - 20.10.2024 20:53 [03:05:20]1206 (1) - 0 [03:05:20]OFD Sender: Remove packet 74052 [03:05:20]ProducePacketName [03:05:20]name=ofd_packets/00074052 [03:05:20]NVStorageDeleteData [03:05:20]Write to MH i2c: 01 00 00 51 66 B7 [03:05:20]Write i2c OK [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: 01 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: 01 07 00 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: 01 07 00 51 66 00 00 00 00 00 FE 0B C7 [03:05:20]RasterBufferAndPrint [03:05:20]line [03:05:20]line [03:05:20]line [03:05:20]line [03:05:20]line [03:05:20]written 0, free lines is 3076 [03:05:20]MH_Cut [03:05:20]Write to MH i2c: D1 01 00 58 66 01 90 [03:05:20]Write i2c OK [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: D1 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: D1 01 00 [03:05:20]MH_I2C_Read... [03:05:20]Read from MH i2c: D1 01 00 58 66 00 8F [03:05:20]Write to MH i2c: 01 00 00 59 66 BF [03:05:20]Write i2c OK [03:05:20]MH_I2C_Read... [03:05:20]OFD Sender: No OFD packet to send [03:05:21]*** Cut start [03:05:21]*** Partial cut [03:05:21]*** CUTSNS_PIN = 1 [03:05:21]*** CUTSNS_PIN = 0 [03:05:21]*** Brake cut motor [03:05:22]Read from MH i2c: 01 [03:05:22]MH_I2C_Read... [03:05:22]*** Stop cut motor [03:05:22]*** Cut end [03:05:22]Read from MH i2c: 01 07 00 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: 01 07 00 59 66 00 00 00 00 00 FF 0F D4 [03:05:22]process_action close_receipt done [03:05:22]requested_data is exist [03:05:22]produce_requested_data [03:05:22]requested_item fm.sn is exist - process it [03:05:22]wFMCommunicate request_size=4 [03:05:22]MH_SAM_APDU [03:05:22]CAPDU: 80 11 00 00 [03:05:22]Write to MH i2c: E2 08 00 5A 66 80 11 00 00 00 00 00 00 3A [03:05:22]Write i2c OK [03:05:22]MH_I2C_Read... [03:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:22]Read from MH i2c: E2 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: E2 17 00 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: E2 17 00 5A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 87 [03:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [03:05:22]wFMCommunicate OK [03:05:22]requested_item fd.num is exist - process it [03:05:22]SAM_PROTO_GetFieldsCounters [03:05:22]wFMCommunicate request_size=4 [03:05:22]MH_SAM_APDU [03:05:22]CAPDU: 80 13 00 00 [03:05:22]Write to MH i2c: E2 08 00 5B 66 80 13 00 00 00 00 00 00 3D [03:05:22]Write i2c OK [03:05:22]MH_I2C_Read... [03:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:22]Read from MH i2c: E2 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: E2 62 00 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: E2 62 00 5B 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 44 21 01 00 0E 04 04 00 AB 00 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 86 [03:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 44 21 01 00 0E 04 04 00 AB 00 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:05:22]wFMCommunicate OK [03:05:22]SAM_PROTO_GetFieldsCounters done [03:05:22]requested_item shift.num is exist - process it [03:05:22]requested_item shift.opened is exist - process it [03:05:22]req_shift_opened [03:05:22]FM_GetShiftState [03:05:22]SAM_PROTO_GetShiftState [03:05:22]wFMCommunicate request_size=4 [03:05:22]MH_SAM_APDU [03:05:22]CAPDU: 80 13 01 00 [03:05:22]Write to MH i2c: E2 08 00 5C 66 80 13 01 00 00 00 00 00 3F [03:05:22]Write i2c OK [03:05:22]MH_I2C_Read... [03:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:22]Read from MH i2c: E2 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: E2 0E 00 [03:05:22]MH_I2C_Read... [03:05:22]Read from MH i2c: E2 0E 00 5C 66 00 09 00 01 1D 9E 15 67 00 00 00 00 90 00 82 [03:05:22]RAPDU: 09 00 01 1D 9E 15 67 00 00 00 00 90 00 [03:05:22]wFMCommunicate OK [03:05:22]SAM_PROTO_GetShiftState done [03:05:22]FM_GetShiftState done [03:05:22]req_shift_opened done [03:05:22]requested_item shift.open_date is exist - process it [03:05:22]req_shift_open_date [03:05:22]req_shift_open_date done [03:05:22]produce_requested_data done [03:05:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":74052,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981} [03:05:22]process_action_free close_receipt [03:05:22]json_value_free [03:05:22]json_value_free done [03:05:22]process_json_proto returns [03:05:22]Send response to host [03:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":74052,"shift.num":171,"shift.opened":1,"shift.open_date":1729469981}}} [03:05:22]free response buf [03:05:22]execute_script done [03:05:22]execute_script returns [03:05:22]free content buf [03:05:22]Sock 9.Close socket [03:05:22]Sock 9.Thread stoped [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send